@quantiya/codevibe-core 2.0.71 → 2.0.73
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.
- package/dist/appsync/appsync-client.d.ts +42 -10
- package/dist/appsync/queries.d.ts +4 -0
- package/dist/appsync/session-freshness.d.ts +12 -0
- package/dist/appsync/sync-operation-journal.d.ts +1 -0
- package/dist/appsync/sync-session-retirement.d.ts +1 -1
- package/dist/appsync/sync-source-pair.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +650 -569
- package/dist/orchestration/detect-agents.d.ts +20 -0
- package/dist/orchestration/index.d.ts +1 -1
- package/dist/orchestration-shell/audit-summary.d.ts +2 -0
- package/dist/orchestration-shell/brainstorm-context.d.ts +11 -0
- package/dist/orchestration-shell/cli.d.ts +15 -1
- package/dist/orchestration-shell/cli.js +55791 -53028
- package/dist/orchestration-shell/conductor-reply.d.ts +37 -0
- package/dist/orchestration-shell/context-items.d.ts +64 -0
- package/dist/orchestration-shell/doctor-cli.d.ts +2 -0
- package/dist/orchestration-shell/index.d.ts +44 -2
- package/dist/orchestration-shell/quorum-loop.d.ts +17 -3
- package/dist/orchestration-shell/resume-modal.d.ts +19 -0
- package/dist/orchestration-shell/slash-router.d.ts +2 -0
- package/dist/orchestration-shell/types.d.ts +48 -2
- package/dist/session/pending-session-create.d.ts +31 -0
- package/dist/session-resume/ResumePicker.d.ts +21 -0
- package/dist/session-resume/carry-over.d.ts +81 -0
- package/dist/session-resume/clean-exit.d.ts +33 -0
- package/dist/session-resume/cli-resume.d.ts +41 -0
- package/dist/session-resume/completeness-copy.d.ts +52 -0
- package/dist/session-resume/create-outcome.d.ts +43 -0
- package/dist/session-resume/e2e-fault.d.ts +28 -0
- package/dist/session-resume/hosted-loader.d.ts +88 -0
- package/dist/session-resume/local-completeness.d.ts +10 -0
- package/dist/session-resume/local-records.d.ts +121 -0
- package/dist/session-resume/picker-rows.d.ts +17 -0
- package/dist/session-resume/publish-retire.d.ts +40 -0
- package/dist/session-resume/relaunch.d.ts +72 -0
- package/dist/session-resume/restore-conversation.d.ts +27 -0
- package/dist/session-resume/resume-candidates.d.ts +52 -0
- package/dist/session-resume/resume-chosen.d.ts +103 -0
- package/dist/session-resume/resume-create.d.ts +121 -0
- package/dist/session-resume/resume-entry.d.ts +87 -0
- package/dist/session-resume/resume-header.d.ts +25 -0
- package/dist/session-resume/resume-io.d.ts +34 -0
- package/dist/session-resume/resume-ledger.d.ts +107 -0
- package/dist/session-resume/resume-messages.d.ts +68 -0
- package/dist/session-resume/resume-rows.d.ts +24 -0
- package/dist/session-resume/resume-target.d.ts +65 -0
- package/dist/session-resume/shell-resume-io.d.ts +25 -0
- package/dist/session-resume/shell-resume.d.ts +34 -0
- package/dist/session-resume/source-choice.d.ts +37 -0
- package/dist/session-resume/successor-carry-over.d.ts +54 -0
- package/dist/session-resume/will-retire.d.ts +24 -0
- package/dist/tool-activity/ledger.d.ts +5 -0
- package/dist/tool-activity/outbox.d.ts +3 -2
- package/dist/tool-activity/replay-cursor.d.ts +17 -3
- package/dist/tool-activity/sync-transport.d.ts +3 -0
- package/dist/types/session.d.ts +67 -0
- package/package.json +1 -1
|
@@ -15,9 +15,29 @@ declare function launcherCompatiblePath(env: NodeJS.ProcessEnv, commonPaths?: st
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function detectInstalledAgents(env?: NodeJS.ProcessEnv): DetectableAgent[];
|
|
17
17
|
declare function isAgentInstalled(agent: DetectableAgent, env: NodeJS.ProcessEnv, commonPaths?: string[]): boolean;
|
|
18
|
+
declare function firstNonEmpty(...values: Array<string | undefined | null>): string | null;
|
|
19
|
+
export declare const DEFAULT_AGENT_MODELS: Record<DetectableAgent, string>;
|
|
20
|
+
export interface DetectAgentModelOptions {
|
|
21
|
+
/** If true, returns null when explicit CODEVIBE_<AGENT>_MODEL environment variable is not found. */
|
|
22
|
+
explicitOnly?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Deterministically detect the active model for an agent by probing:
|
|
26
|
+
* 1. Explicit environment overrides (`CODEVIBE_<AGENT>_MODEL`). If `explicitOnly` is true, stops here.
|
|
27
|
+
* 2. Generic agent environment overrides (`<AGENT>_MODEL`).
|
|
28
|
+
* 3. Agent local config files (`${CODEX_HOME:-~/.codex}/config.toml`, `~/.claude.json`, `~/.gemini/settings.json`).
|
|
29
|
+
* 4. Platform default for the installed agent (`DEFAULT_AGENT_MODELS`).
|
|
30
|
+
*/
|
|
31
|
+
export declare function detectAgentModel(agent: DetectableAgent, env?: NodeJS.ProcessEnv, homeDirOrOptions?: string | DetectAgentModelOptions, options?: DetectAgentModelOptions): string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a map of installed agents to their deterministically detected models.
|
|
34
|
+
*/
|
|
35
|
+
export declare function detectInstalledAgentModels(env?: NodeJS.ProcessEnv, homeDir?: string, installedAgents?: DetectableAgent[], options?: DetectAgentModelOptions): Partial<Record<DetectableAgent, string>>;
|
|
18
36
|
export declare const __testing: {
|
|
19
37
|
isAgentInstalled: typeof isAgentInstalled;
|
|
20
38
|
launcherCompatiblePath: typeof launcherCompatiblePath;
|
|
39
|
+
detectAgentModel: typeof detectAgentModel;
|
|
40
|
+
firstNonEmpty: typeof firstNonEmpty;
|
|
21
41
|
};
|
|
22
42
|
/**
|
|
23
43
|
* Detect-and-push convenience for plugin daemon startup. All three
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { detectInstalledAgents, pushDetectedAgents, type DetectableAgent, } from './detect-agents';
|
|
1
|
+
export { detectInstalledAgents, detectInstalledAgentModels, detectAgentModel, DEFAULT_AGENT_MODELS, pushDetectedAgents, type DetectableAgent, } from './detect-agents';
|
|
2
2
|
export { V1_ORCHESTRATION_PROMPT_KIND, V1_ORCHESTRATION_OPTIONS, mapOptionNumberToUserDecisionKind, mapOptionToUserDecisionKind, type V1OrchestrationOption, type V1UserDecisionKind, } from './v1-options';
|
|
@@ -69,6 +69,7 @@ export interface UserDecisionRecord {
|
|
|
69
69
|
isFinalApproval?: boolean;
|
|
70
70
|
notes?: string;
|
|
71
71
|
timestamp?: string;
|
|
72
|
+
serverRecordedAt?: string;
|
|
72
73
|
gateId?: string;
|
|
73
74
|
canonicalDecision?: string;
|
|
74
75
|
decisionClaimId?: string;
|
|
@@ -235,6 +236,7 @@ export interface CompileAuditSummaryArgs {
|
|
|
235
236
|
role: string;
|
|
236
237
|
}>;
|
|
237
238
|
workspaceApplicationStatus?: 'applied' | 'pending_merge_gate' | 'unobserved';
|
|
239
|
+
detectedAgentModels?: Partial<Record<string, string>> | Record<string, string>;
|
|
238
240
|
}
|
|
239
241
|
export declare function compileAuditSummary(args: CompileAuditSummaryArgs): TaskAuditSummaryModel;
|
|
240
242
|
export declare function renderSummaryMarkdown(summaryModel: TaskAuditSummaryModel): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brainstorm context rules, shared by the live planner path (`index.ts`) and P61's
|
|
3
|
+
* conversation seeding (`session-resume/restore-conversation.ts`, design §12.4: a restored
|
|
4
|
+
* brainstorm's `needsRepositoryContext` is recomputed at seeding with the shipped rule).
|
|
5
|
+
* Moved verbatim from `index.ts`; `hasActiveBrainstormConversation` takes the conversation
|
|
6
|
+
* instead of the whole state.
|
|
7
|
+
*/
|
|
8
|
+
import type { ConversationEntry } from './types';
|
|
9
|
+
export declare function brainstormNeedsRepositoryContext(text: string): boolean;
|
|
10
|
+
export declare function activeBrainstormNeedsRepositoryContext(conversation: readonly ConversationEntry[]): boolean;
|
|
11
|
+
export declare function hasActiveBrainstormConversation(conversation: readonly ConversationEntry[]): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RESUME_ID_PREFIX_MIN_CHARS } from '../session-resume/resume-target';
|
|
1
2
|
import { AppSyncClient } from '../appsync';
|
|
2
3
|
import { Session } from '../types';
|
|
3
4
|
import { Mode, Tier } from './types';
|
|
@@ -68,13 +69,22 @@ export interface ParsedCliArgs {
|
|
|
68
69
|
agent?: 'CLAUDE' | 'CODEX' | 'ANTIGRAVITY';
|
|
69
70
|
help: boolean;
|
|
70
71
|
passthrough: string[];
|
|
72
|
+
/** P61 §5.1 — `--resume [<id>]` / `-r [<id>]`: a full session ID or a prefix of at least 8 characters. */
|
|
73
|
+
resume?: {
|
|
74
|
+
id?: string;
|
|
75
|
+
};
|
|
76
|
+
/** P61 §5.1 — `--continue` / `-c`. */
|
|
77
|
+
continue?: true;
|
|
71
78
|
}
|
|
79
|
+
/** P61 §5.1 — the Free-account refusal for --resume and --continue. */
|
|
80
|
+
export declare const RESUME_NEEDS_PAID_TIER = "Resuming a session needs CodeVibe Pro or Max.";
|
|
81
|
+
export { RESUME_ID_PREFIX_MIN_CHARS };
|
|
72
82
|
export declare class CliUsageError extends Error {
|
|
73
83
|
constructor(message: string);
|
|
74
84
|
}
|
|
75
85
|
export declare function parseCliArgs(argv: string[]): ParsedCliArgs;
|
|
76
86
|
/** Resolve the product mode without opening the mode picker for --agent. */
|
|
77
|
-
export declare function resolveLaunchMode(args: Pick<ParsedCliArgs, 'agent'>, tier: Tier, deps?: ModeSelectionDeps): Promise<Mode>;
|
|
87
|
+
export declare function resolveLaunchMode(args: Pick<ParsedCliArgs, 'agent' | 'resume' | 'continue'>, tier: Tier, deps?: ModeSelectionDeps): Promise<Mode>;
|
|
78
88
|
/**
|
|
79
89
|
* CP-1.f §3.C.19 — resolve a REAL backend session for the orchestration loop
|
|
80
90
|
* (closes #513). When authenticated:
|
|
@@ -465,6 +475,8 @@ export declare function buildQuorumLoopExecutor(args: {
|
|
|
465
475
|
emitter: (args: ShellEventEmit) => Promise<ShellEventEmitResult>;
|
|
466
476
|
/** CP-1.f LOCK RP-6 — host-detected agents threaded into the loop. */
|
|
467
477
|
detectedAgents?: string[];
|
|
478
|
+
detectedAgentModels?: Partial<Record<string, string>> | Record<string, string>;
|
|
479
|
+
configuredAgentModels?: Partial<Record<string, string>> | Record<string, string>;
|
|
468
480
|
/** #585 auto-continuation (Max) — the resolved tier, threaded to the loop. */
|
|
469
481
|
tier?: Tier;
|
|
470
482
|
/**
|
|
@@ -499,6 +511,8 @@ export declare function buildTeamLocalExecutor(args: {
|
|
|
499
511
|
initialScope: AuthorityScope;
|
|
500
512
|
/** CP-1.f LOCK RP-6 — host-detected agents threaded into the loop. */
|
|
501
513
|
detectedAgents?: string[];
|
|
514
|
+
detectedAgentModels?: Partial<Record<string, string>> | Record<string, string>;
|
|
515
|
+
configuredAgentModels?: Partial<Record<string, string>> | Record<string, string>;
|
|
502
516
|
/** #585 auto-continuation (Max) — the resolved tier, threaded to the loop. */
|
|
503
517
|
tier?: Tier;
|
|
504
518
|
/**
|