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>
21 lines
639 B
Go
21 lines
639 B
Go
// Package rag provides RAG (Retrieval Augmented Generation) commands.
|
|
//
|
|
// Commands:
|
|
// - 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
|
|
package rag
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// 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) {
|
|
initFlags()
|
|
ragCmd.AddCommand(ingestCmd)
|
|
ragCmd.AddCommand(queryCmd)
|
|
ragCmd.AddCommand(collectionsCmd)
|
|
parent.AddCommand(ragCmd)
|
|
}
|