2026-02-03 07:42:07 +00:00
|
|
|
// Package rag provides RAG (Retrieval Augmented Generation) commands.
|
|
|
|
|
//
|
|
|
|
|
// Commands:
|
feat(ai,security,ide): add agentic MVP, security jobs, and Core IDE desktop app
Wire up AI infrastructure with unified pkg/ai package (metrics JSONL,
RAG integration), move RAG under `core ai rag`, add `core ai metrics`
command, and enrich task context with Qdrant documentation.
Add `--target` flag to all security commands for external repo scanning,
`core security jobs` for distributing findings as GitHub Issues, and
consistent error logging across scan/deps/alerts/secrets commands.
Add Core IDE Wails v3 desktop app with Angular 20 frontend, MCP bridge
(loopback-only HTTP server), WebSocket hub, and Claude Code bridge.
Production-ready with Lethean CIC branding, macOS code signing support,
and security hardening (origin validation, body size limits, URL scheme
checks, memory leak prevention, XSS mitigation).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 22:01:36 +00:00
|
|
|
// - core ai rag ingest: Ingest markdown files into Qdrant
|
|
|
|
|
// - core ai rag query: Query the vector database
|
|
|
|
|
// - core ai rag collections: List and manage collections
|
2026-02-03 07:42:07 +00:00
|
|
|
package rag
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
|
)
|
|
|
|
|
|
feat(ai,security,ide): add agentic MVP, security jobs, and Core IDE desktop app
Wire up AI infrastructure with unified pkg/ai package (metrics JSONL,
RAG integration), move RAG under `core ai rag`, add `core ai metrics`
command, and enrich task context with Qdrant documentation.
Add `--target` flag to all security commands for external repo scanning,
`core security jobs` for distributing findings as GitHub Issues, and
consistent error logging across scan/deps/alerts/secrets commands.
Add Core IDE Wails v3 desktop app with Angular 20 frontend, MCP bridge
(loopback-only HTTP server), WebSocket hub, and Claude Code bridge.
Production-ready with Lethean CIC branding, macOS code signing support,
and security hardening (origin validation, body size limits, URL scheme
checks, memory leak prevention, XSS mitigation).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 22:01:36 +00:00
|
|
|
// AddRAGSubcommands registers the 'rag' command as a subcommand of parent.
|
|
|
|
|
// Called from the ai command package to mount under "core ai rag".
|
|
|
|
|
func AddRAGSubcommands(parent *cobra.Command) {
|
2026-02-03 07:42:07 +00:00
|
|
|
initFlags()
|
|
|
|
|
ragCmd.AddCommand(ingestCmd)
|
|
|
|
|
ragCmd.AddCommand(queryCmd)
|
|
|
|
|
ragCmd.AddCommand(collectionsCmd)
|
feat(ai,security,ide): add agentic MVP, security jobs, and Core IDE desktop app
Wire up AI infrastructure with unified pkg/ai package (metrics JSONL,
RAG integration), move RAG under `core ai rag`, add `core ai metrics`
command, and enrich task context with Qdrant documentation.
Add `--target` flag to all security commands for external repo scanning,
`core security jobs` for distributing findings as GitHub Issues, and
consistent error logging across scan/deps/alerts/secrets commands.
Add Core IDE Wails v3 desktop app with Angular 20 frontend, MCP bridge
(loopback-only HTTP server), WebSocket hub, and Claude Code bridge.
Production-ready with Lethean CIC branding, macOS code signing support,
and security hardening (origin validation, body size limits, URL scheme
checks, memory leak prevention, XSS mitigation).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 22:01:36 +00:00
|
|
|
parent.AddCommand(ragCmd)
|
2026-02-03 07:42:07 +00:00
|
|
|
}
|