Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix(cli): register a Pro stub for `goals` (#384)
KageBinary43a644cce352
diff --git a/ix-cli/src/cli/__tests__/pro-stub-message.test.ts b/ix-cli/src/cli/__tests__/pro-stub-message.test.tsindex 4b57dd74..c60c9199 100644--- a/ix-cli/src/cli/__tests__/pro-stub-message.test.ts+++ b/ix-cli/src/cli/__tests__/pro-stub-message.test.ts@@ -57,6 +57,7 @@ describe("Pro stubs", () => {["truth", ["truth", "add", "Support 100k file repos"]],["truth", ["truth", "list", "--format", "json"]],["goal", ["goal", "create", "Support GitHub", "--format", "json"]],+ ["goals", ["goals", "--status", "active", "--format", "json"]],["decide", ["decide", "Use X", "--rationale", "because", "--affects", "Entity"]],["briefing", ["briefing", "--format", "json"]],["decisions", ["decisions", "--topic", "ingestion", "--limit", "10"]],@@ -71,6 +72,22 @@ describe("Pro stubs", () => {expect(exitCode).toBe(1);});+ // @ix/pro registers a plural list command alongside each singular manager+ // (`bug`/`bugs`, `plan`/`plans`, `task`/`tasks`, `goal`/`goals`). Stubbing only+ // the singular is the failure this pins: `ix goals` fell through to commander's+ // "unknown command" instead of the sentinel above, so an agent told to stop on+ // `requires Ix Pro.` saw an unrecognized error and had nothing to match.+ it.each([+ ["bug", "bugs"],+ ["plan", "plans"],+ ["task", "tasks"],+ ["goal", "goals"],+ ])("stubs both %s and %s", (singular, plural) => {+ for (const name of [singular, plural]) {+ expect(runStub([name]).err).toContain(`The '${name}' command requires Ix Pro.`);+ }+ });+it("emits the message verbatim as CLAUDE.md quotes it", () => {// Single quotes around the name, trailing period. Agents match on this.expect(runStub(["decide", "Use X"]).err).toContain("The 'decide' command requires Ix Pro.");diff --git a/ix-cli/src/cli/register/oss.ts b/ix-cli/src/cli/register/oss.tsindex 70b767e0..2a9ed170 100644--- a/ix-cli/src/cli/register/oss.ts+++ b/ix-cli/src/cli/register/oss.ts@@ -42,6 +42,7 @@ const PRO_COMMANDS: { name: string; desc: string }[] = [{ name: "decide", desc: "Record a design decision" },{ name: "decisions", desc: "List recorded design decisions" },{ name: "goal", desc: "Manage project goals" },+ { name: "goals", desc: "List all goals" },{ name: "patches", desc: "List recent patches" },{ name: "plan", desc: "Manage plans and plan tasks" },{ name: "task", desc: "Manage tasks" },