diff --git a/cmd/sin-code/catalog_cmd.go b/cmd/sin-code/catalog_cmd.go index fc8c9853..c605558b 100644 --- a/cmd/sin-code/catalog_cmd.go +++ b/cmd/sin-code/catalog_cmd.go @@ -167,7 +167,7 @@ func renderCatalog(w io.Writer, assets []*catalog.Asset, format string) error { line := fmt.Sprintf("%-7s %-20s %s", strings.ToUpper(string(a.Kind)), a.Name, - firstLine(a.Description)) + catalogFirstLine(a.Description)) if a.Short != "" && a.Short != firstWord(a.Description) { line = fmt.Sprintf("%-7s %-20s %s", strings.ToUpper(string(a.Kind)), @@ -181,7 +181,7 @@ func renderCatalog(w io.Writer, assets []*catalog.Asset, format string) error { } // firstLine returns the first non-empty line of s, trimmed. -func firstLine(s string) string { +func catalogFirstLine(s string) string { for _, line := range strings.Split(s, "\n") { line = strings.TrimSpace(line) if line != "" { diff --git a/cmd/sin-code/main.go b/cmd/sin-code/main.go index 87462cc4..9b154ee6 100644 --- a/cmd/sin-code/main.go +++ b/cmd/sin-code/main.go @@ -36,7 +36,7 @@ It consolidates 44+ subcommands into a single cobra-based CLI: Other: completion, read, write, edit, lsp, plugin, index, orchestrator-run, orchestrator-agents, orchestrator-plan, todo, notifications, memory, assets, evalset, hooks, - instinct, prp, skills + instinct, prp, skills, catalog, compile-spec, triage Each subcommand is also a thin pass-through to the standalone tool repos for backwards compatibility — the standalone binaries are still maintained diff --git a/cmd/sin-code/testdata/golden/help.golden b/cmd/sin-code/testdata/golden/help.golden index 7e0bd256..7030d725 100644 --- a/cmd/sin-code/testdata/golden/help.golden +++ b/cmd/sin-code/testdata/golden/help.golden @@ -5,11 +5,11 @@ It consolidates 44+ subcommands into a single cobra-based CLI: Advanced tools: ibd, poc, sckg, adw, oracle, efm Utility commands: security, sbom, config, self-update, tui, serve, update Agent ecosystem: chat, sessions, mcp, goal, daemon, skill, superpowers, - vane, stack, gh, hub, ledger, summary + vane, stack, gh, hub, ledger, summary, install Other: completion, read, write, edit, lsp, plugin, index, orchestrator-run, orchestrator-agents, orchestrator-plan, todo, notifications, memory, assets, evalset, hooks, - instinct, prp, skills + instinct, prp, skills, catalog, compile-spec, triage Each subcommand is also a thin pass-through to the standalone tool repos for backwards compatibility — the standalone binaries are still maintained @@ -23,8 +23,10 @@ Available Commands: assets Manage harvested agents/commands/skills auto Ultra-autonomous mode: pursue a program.md objective on your behalf autodev Bridge to OpenSIN-Code/autodev-cli (Python autoresearch loop, never vendored) + catalog Unified tool catalog (hub + assets, one CLI) chat Run the SIN-Code agent loop (interactive REPL or headless one-shot) codegraph Bridge to CodeGraph for multi-language code analysis + compile-spec Compile .sin-code.yml into the four derived JSON artifacts completion Generate the autocompletion script for the specified shell config View and manage sin-code configuration daemon Run the autonomous worker: lease goals, execute, verify, learn @@ -45,6 +47,7 @@ Available Commands: hub Tool catalog and landing page for sin-code ibd Intent-Based Diffing — compare code changes against stated intent index Manage persistent incremental code index + install Install or verify the sin-code single-binary release instinct Manage learned instincts (continuous learning) ledger Query the semantic session ledger lsp LSP (Language Server Protocol) — IDE-grade code intelligence @@ -78,6 +81,7 @@ Available Commands: swarm Race N agent profiles on the same prompt (first verified wins) todo Issue tracker with dependencies, audit log, and project namespaces trace Configure + verify OpenTelemetry tracer setup + triage Read the open issue backlog via gh, score, group, and render tui Interactive multi-pane TUI (Tools, Sessions, EFM, Config, History) update Update SIN-Code stack (Python packages, Go binaries, skills) vane Bridge to a self-hosted Vane answering engine (citation-backed research) diff --git a/cmd/sin-code/testdata/scripts/golden_help.txt b/cmd/sin-code/testdata/scripts/golden_help.txt index 8753cd21..e48d56fe 100644 --- a/cmd/sin-code/testdata/scripts/golden_help.txt +++ b/cmd/sin-code/testdata/scripts/golden_help.txt @@ -13,7 +13,7 @@ It consolidates 44+ subcommands into a single cobra-based CLI: Other: completion, read, write, edit, lsp, plugin, index, orchestrator-run, orchestrator-agents, orchestrator-plan, todo, notifications, memory, assets, evalset, hooks, - instinct, prp, skills + instinct, prp, skills, catalog, compile-spec, triage Each subcommand is also a thin pass-through to the standalone tool repos for backwards compatibility — the standalone binaries are still maintained @@ -27,8 +27,10 @@ Available Commands: assets Manage harvested agents/commands/skills auto Ultra-autonomous mode: pursue a program.md objective on your behalf autodev Bridge to OpenSIN-Code/autodev-cli (Python autoresearch loop, never vendored) + catalog Unified tool catalog (hub + assets, one CLI) chat Run the SIN-Code agent loop (interactive REPL or headless one-shot) codegraph Bridge to CodeGraph for multi-language code analysis + compile-spec Compile .sin-code.yml into the four derived JSON artifacts completion Generate the autocompletion script for the specified shell config View and manage sin-code configuration daemon Run the autonomous worker: lease goals, execute, verify, learn @@ -83,6 +85,7 @@ Available Commands: swarm Race N agent profiles on the same prompt (first verified wins) todo Issue tracker with dependencies, audit log, and project namespaces trace Configure + verify OpenTelemetry tracer setup + triage Read the open issue backlog via gh, score, group, and render tui Interactive multi-pane TUI (Tools, Sessions, EFM, Config, History) update Update SIN-Code stack (Python packages, Go binaries, skills) vane Bridge to a self-hosted Vane answering engine (citation-backed research)