@mycompbox/compbox-cli 1.18.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.tsbuildinfo +1 -1
  2. package/commands/configure.d.ts.map +1 -1
  3. package/commands/configure.js +31 -11
  4. package/commands/configure.js.map +1 -1
  5. package/commands/doctor.d.ts.map +1 -1
  6. package/commands/doctor.js +1 -1
  7. package/commands/doctor.js.map +1 -1
  8. package/commands/login.d.ts +2 -0
  9. package/commands/login.d.ts.map +1 -1
  10. package/commands/login.js +28 -6
  11. package/commands/login.js.map +1 -1
  12. package/commands/run.d.ts +12 -1
  13. package/commands/run.d.ts.map +1 -1
  14. package/commands/run.js +110 -30
  15. package/commands/run.js.map +1 -1
  16. package/index.js +1264 -540
  17. package/package.json +1 -1
  18. package/utils/agent-invoker.d.ts +59 -101
  19. package/utils/agent-invoker.d.ts.map +1 -1
  20. package/utils/agent-invoker.js +183 -508
  21. package/utils/agent-invoker.js.map +1 -1
  22. package/utils/autostart.d.ts +41 -0
  23. package/utils/autostart.d.ts.map +1 -0
  24. package/utils/autostart.js +122 -0
  25. package/utils/autostart.js.map +1 -0
  26. package/utils/key-run.d.ts +32 -0
  27. package/utils/key-run.d.ts.map +1 -0
  28. package/utils/key-run.js +77 -0
  29. package/utils/key-run.js.map +1 -0
  30. package/utils/loopback.d.ts +3 -3
  31. package/utils/loopback.d.ts.map +1 -1
  32. package/utils/loopback.js +3 -3
  33. package/utils/loopback.js.map +1 -1
  34. package/utils/mailbox-client.d.ts +31 -1
  35. package/utils/mailbox-client.d.ts.map +1 -1
  36. package/utils/mailbox-client.js +60 -2
  37. package/utils/mailbox-client.js.map +1 -1
  38. package/utils/mcp-config-writer.d.ts +2 -0
  39. package/utils/mcp-config-writer.d.ts.map +1 -1
  40. package/utils/mcp-config-writer.js +9 -1
  41. package/utils/mcp-config-writer.js.map +1 -1
  42. package/utils/repo-setup.d.ts +44 -0
  43. package/utils/repo-setup.d.ts.map +1 -0
  44. package/utils/repo-setup.js +178 -0
  45. package/utils/repo-setup.js.map +1 -0
  46. package/utils/run-workspace.d.ts +120 -0
  47. package/utils/run-workspace.d.ts.map +1 -0
  48. package/utils/run-workspace.js +298 -0
  49. package/utils/run-workspace.js.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycompbox/compbox-cli",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "CompBox CLI - Install, update, and manage Skill Packs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2,37 +2,27 @@
2
2
  * Agent invoker (ENG-E23 / ENG-122-2) — the daemon's "heart": actually runs a
3
3
  * claimed job instead of immediately reporting it as unimplemented.
4
4
  *
5
- * Two agentModes are implemented, both for `epic_request` jobs only
6
- * (`start_execution` — running planner/orchestrator locally — is NOT
7
- * implemented here):
5
+ * Request conversations (`epic_request` jobs) run one AI reply per claim
6
+ * (invokeEpicRequestStep, on the shared runConversationStep): the reply is
7
+ * posted, the job is left waiting on the person, and the server hands it back
8
+ * when they write again. Nothing waits in between, so a conversation never
9
+ * times out and stays open after the request is saved. Two ways to reply:
8
10
  * - `api`: Anthropic Messages API, directly (Anthropic API key, billed
9
- * per-token). See invokeEpicRequestViaApi.
11
+ * per-token).
10
12
  * - `claude-subscription`: shells out to the local `claude` CLI
11
13
  * non-interactively, using whichever account is already logged in on
12
14
  * this machine (personal Pro/Max or a company Team seat) — no API key
13
- * ever touches CompBox. See invokeEpicRequestViaSubscription.
15
+ * ever touches CompBox.
14
16
  *
15
- * Common to both:
16
- * - The interview is driven by the shared, declarative INTERVIEW_DEFINITION
17
- * (@mycompbox/shared, ENG-143) so the machine/mailbox interview reaches the
18
- * SAME depth as the CLI request-formulator: it covers all seven sections
19
- * (problem, solution, impact, success metrics, target audience, technical
20
- * context, alternatives) rather than only the 3 required fields. The system
21
- * prompt is rendered from that definition (buildInterviewSystemPrompt), and
22
- * the completion object carries the required fields plus any optional ones
23
- * the employee provided; there is no shortened variant left in this path.
24
- *
25
- * Turn relay: the mailbox has no "wait for a new turn" primitive for a
26
- * machine caller (next-job's "resume active job" path returns immediately
27
- * with whatever the job's current state is — see jobService.ts tryClaimOnce).
28
- * So after posting an agent question, this module polls next-job on a short
29
- * client-side interval until it observes a new trailing user turn, with a
30
- * bounded overall timeout so an abandoned interview eventually fails cleanly
31
- * instead of polling forever.
17
+ * `start_execution` jobs run the planner/orchestrator headless (below).
32
18
  */
33
19
  import Anthropic from '@anthropic-ai/sdk';
34
20
  import { spawn } from 'node:child_process';
35
- import { type PxpipeRouting, type InterviewSeedPayload } from '@mycompbox/shared';
21
+ import { type PxpipeRouting, type InterviewSeedPayload, extractCompletionJson, looksLikeCompletionAttempt, meetsComplianceTarget, buildAuditFeedback, COMPLETION_REPAIR_INSTRUCTION, type ComplianceSummary, type EpicRequestDraft } from '@mycompbox/shared';
22
+ export { extractCompletionJson, looksLikeCompletionAttempt, meetsComplianceTarget, buildAuditFeedback, COMPLETION_REPAIR_INSTRUCTION, };
23
+ export type { ComplianceSummary, EpicRequestDraft };
24
+ import { type KeyRun } from './key-run.js';
25
+ import type { FinishResult, RunWorkspaceManager } from './run-workspace.js';
36
26
  import type { MailboxAttachment, MailboxClient, MailboxJob, MailboxJobTurn } from './mailbox-client.js';
37
27
  /**
38
28
  * pxpipe routing (ENG-136). Anthropic SDK options carrying the proxy `baseURL`
@@ -94,29 +84,12 @@ export interface InvokeResult {
94
84
  status: 'done' | 'failed';
95
85
  result: Record<string, unknown>;
96
86
  }
97
- export interface EpicRequestDraft {
98
- title: string;
99
- problemStatement: string;
100
- proposedSolution: string;
101
- impactAssessment: string;
102
- /**
103
- * Plain-text markdown description synthesized by the model from the whole
104
- * conversation — sent as the Epic Request's top-level `description` field
105
- * (distinct from structuredDesc). REQUIRED: compliance-validation's
106
- * ER_NO_DESCRIPTION rule (see .github/skills/internal/compliance-validation)
107
- * fails critical if this is empty, regardless of how good structuredDesc
108
- * is — verified live: an epic request created with only the 3 structured
109
- * fields populated (no description) scored 12/100, critical-fail, on
110
- * ER_NO_DESCRIPTION, ER_NO_PROBLEM_STATEMENT, and ER_NO_IMPACT_ASSESSMENT
111
- * (the latter two because a single terse summary sentence fell just under
112
- * the rubric's 50-word/30-word minimums — 47 and 25 words respectively).
113
- */
114
- description: string;
115
- successMetrics?: string;
116
- targetAudience?: string;
117
- alternatives?: string;
118
- dependencies?: string;
119
- estimatedEffort?: string;
87
+ /**
88
+ * A request conversation step that left the job open (waiting on the person):
89
+ * the job must NOT be completed.
90
+ */
91
+ export interface YieldResult {
92
+ status: 'yield';
120
93
  }
121
94
  /**
122
95
  * ENG-149 — parse a claimed job's `payload` as an interview-CONTINUATION seed
@@ -127,20 +100,6 @@ export interface EpicRequestDraft {
127
100
  * jobB). Exported for unit testing.
128
101
  */
129
102
  export declare function parseSeedPayload(payload: unknown): InterviewSeedPayload | null;
130
- /**
131
- * ENG-149 — the interview system prompt for a job: a seed-aware RESUME/ENRICH
132
- * prompt for a continuation, otherwise the module-level fresh-start prompt.
133
- */
134
- export declare function resolveSystemPrompt(seed: InterviewSeedPayload | null): string;
135
- /** The server-computed compliance summary the daemon gates the interview on. */
136
- export interface ComplianceSummary {
137
- overall: number;
138
- tier: 'pass' | 'advisory' | 'critical-fail';
139
- issues: {
140
- message: string;
141
- tier: 'critical' | 'advisory';
142
- }[];
143
- }
144
103
  /**
145
104
  * Submit the current draft and read back the server-computed compliance score
146
105
  * (bug #2 — audit-aware finishing). Fresh interview: the FIRST submit
@@ -157,54 +116,27 @@ export declare function submitAndScore(ctx: {
157
116
  compliance: ComplianceSummary | null;
158
117
  }>;
159
118
  /**
160
- * Whether the request is good enough to finish. Reaching the target tier
161
- * (`pass` = >=90 with no criticals) finishes early. A null score is fail-open:
162
- * the gate can only act on a score the server actually returned.
119
+ * True when the person's Claude plan can't use the requested model (for
120
+ * example Fable needs usage credits on some plans): retry on their default.
163
121
  */
164
- export declare function meetsComplianceTarget(compliance: ComplianceSummary | null): boolean;
122
+ export declare function needsDefaultModel(error: unknown): boolean;
165
123
  /**
166
- * Turn a failing compliance score into a corrective instruction: fix by
167
- * EXPANDING what's already known where possible, otherwise ask ONE question.
168
- */
169
- export declare function buildAuditFeedback(compliance: ComplianceSummary): string;
170
- /**
171
- * Extracts a completion draft from a model reply, tolerant of the common LLM
172
- * JSON defects (fenced/plain/bare, trailing commas, and — the big one — literal
173
- * newlines inside string values). Returns null only when no repair strategy
174
- * yields a VALID {@link isEpicRequestDraft} object.
175
- */
176
- export declare function extractCompletionJson(text: string): EpicRequestDraft | null;
177
- /**
178
- * True when a reply is clearly an ATTEMPT to finish (a JSON completion) even if
179
- * it failed to parse/validate — so the daemon can correct the model instead of
180
- * relaying raw JSON to the employee as if it were a question (which loops).
181
- */
182
- export declare function looksLikeCompletionAttempt(text: string): boolean;
183
- /**
184
- * Runs the epic_request interview end-to-end: converses with the user via
185
- * post-turn/next-job until it has a title + the 3 required structured-desc
186
- * fields, then creates a personal-scope epic request via the real API
187
- * (POST /api/v1/me/epic-requests) using the user's own stored token.
188
- */
189
- export declare function invokeEpicRequestViaApi(job: MailboxJob, ctx: {
190
- mailboxClient: MailboxClient;
191
- machineToken: string;
192
- apiBaseUrl: string;
193
- userApiToken: string;
194
- anthropicApiKey: string;
195
- }): Promise<InvokeResult>;
196
- /**
197
- * Runs the epic_request interview end-to-end using the local `claude` CLI
198
- * (the employee's own Claude Code login) instead of the Anthropic API.
199
- * Mirrors invokeEpicRequestViaApi's turn loop and completion handling
200
- * exactly — only how a single assistant turn is produced differs.
124
+ * Takes one step of a request conversation on this computer: the AI's reply to
125
+ * the person's latest message, which may save or update their request. Then
126
+ * the job is left waiting on the person (never completed), so the chat stays
127
+ * open: there is no reply timeout, and the computer is free for other work in
128
+ * the meantime. The server hands the job back when they write again.
129
+ *
130
+ * `anthropicApiKey` set → the Anthropic API; otherwise the local `claude` CLI
131
+ * on the person's own Claude sign-in.
201
132
  */
202
- export declare function invokeEpicRequestViaSubscription(job: MailboxJob, ctx: {
133
+ export declare function invokeEpicRequestStep(job: MailboxJob, ctx: {
203
134
  mailboxClient: MailboxClient;
204
135
  machineToken: string;
205
136
  apiBaseUrl: string;
206
137
  userApiToken: string;
207
- }): Promise<InvokeResult>;
138
+ anthropicApiKey?: string;
139
+ }): Promise<YieldResult>;
208
140
  /**
209
141
  * Per-run wall-clock budget for the headless planner child (H4). Deliberately
210
142
  * FAR larger than the interview's {@link CLAUDE_CLI_TURN_TIMEOUT_MS} (~2 min):
@@ -226,6 +158,19 @@ export declare const PLANNER_RUN_TIMEOUT_MS: number;
226
158
  * connected" exactly while an agent was running.
227
159
  */
228
160
  export declare const PLANNER_HEARTBEAT_INTERVAL_MS: number;
161
+ /**
162
+ * Finishes a run made on the person's API key: reads Claude Code's JSON
163
+ * result, reports the run's usage to CompBox (best-effort), and returns the
164
+ * plain text the run would otherwise have printed.
165
+ */
166
+ export declare function takeKeyRunResult(ctx: {
167
+ mailboxClient: MailboxClient;
168
+ machineToken: string;
169
+ jobId: string;
170
+ }, keyRun: KeyRun, stdout: string): {
171
+ text: string;
172
+ reported: Promise<void>;
173
+ };
229
174
  /**
230
175
  * Build the `claude` argv for a headless planner run (H1). Pure + exported so a
231
176
  * unit test can assert the exact command shape: the `@planner` routing prompt,
@@ -280,6 +225,8 @@ export interface StartExecutionPlanCtx {
280
225
  epicRequestId: string;
281
226
  /** Resolved project repo dir (may be undefined/invalid — validated here). */
282
227
  projectDir: string | undefined;
228
+ /** Run on the person's saved API key instead of this computer's Claude sign-in. */
229
+ keyRun?: KeyRun;
283
230
  }
284
231
  export interface StartExecutionPlanDeps {
285
232
  /** Injectable child spawner (defaults to node's `spawn`) — tests never spawn a real `claude`. */
@@ -361,6 +308,8 @@ export interface StartExecutionOrchestrateCtx {
361
308
  epicId: string;
362
309
  /** Resolved project repo dir (may be undefined/invalid — validated here). */
363
310
  projectDir: string | undefined;
311
+ /** Run on the person's saved API key instead of this computer's Claude sign-in. */
312
+ keyRun?: KeyRun;
364
313
  }
365
314
  export interface StartExecutionOrchestrateDeps {
366
315
  /** Injectable child spawner (defaults to node's `spawn`) — tests never spawn a real `claude`. */
@@ -377,7 +326,16 @@ export interface StartExecutionOrchestrateDeps {
377
326
  heartbeat?: () => void | Promise<void>;
378
327
  heartbeatIntervalMs?: number;
379
328
  timeoutMs?: number;
329
+ /**
330
+ * Runs the orchestrator on its own new branch in a separate git worktree and
331
+ * finishes with a pushed branch + pull request (see run-workspace.ts). The
332
+ * daemon always passes one; when omitted the run happens directly in the
333
+ * project folder, as before.
334
+ */
335
+ workspace?: Pick<RunWorkspaceManager, 'prepare' | 'finish'>;
380
336
  }
337
+ /** Plain-language summary of where a run's code ended up. */
338
+ export declare function describeRunBranch(finish: FinishResult): string;
381
339
  /**
382
340
  * Turn a detected needs-review marker into the job result the web renders
383
341
  * (ENG-165-3). Names the halting gate (and its reason/phase/feature when the
@@ -1 +1 @@
1
- {"version":3,"file":"agent-invoker.d.ts","sourceRoot":"","sources":["../../src/utils/agent-invoker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAa,MAAM,oBAAoB,CAAC;AAItD,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAO3B,OAAO,KAAK,EACV,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,cAAc,EACf,MAAM,qBAAqB,CAAC;AA0B7B;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,GACrB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAItC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,CAAC,UAAU,EACvB,OAAO,EAA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