@quantiya/codevibe-core 2.0.6 → 2.0.8
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/README.md +7 -5
- package/dist/agy-cli-contract.d.ts +14 -0
- package/dist/appsync/appsync-client.d.ts +229 -61
- package/dist/appsync/event-throttle.d.ts +33 -0
- package/dist/appsync/index.d.ts +3 -2
- package/dist/appsync/queries.d.ts +6 -2
- package/dist/auth/auth-telemetry.d.ts +26 -0
- package/dist/auth/keychain-cli.d.ts +6 -0
- package/dist/auth/vendor-key-cli.d.ts +49 -0
- package/dist/companion-mode/index.d.ts +50 -22
- package/dist/companion-mode/persist-preference.d.ts +1 -5
- package/dist/companion-mode/resolve-agent.d.ts +5 -4
- package/dist/config/config.d.ts +0 -5
- package/dist/credential-broker/__tests__/oauth-refresh.test.d.ts +1 -0
- package/dist/credential-broker/__tests__/upstream-result-helpers.d.ts +21 -0
- package/dist/credential-broker/broker.d.ts +196 -12
- package/dist/credential-broker/chatgpt-config.d.ts +40 -0
- package/dist/credential-broker/index.d.ts +4 -1
- package/dist/credential-broker/oauth-account-lock.d.ts +150 -0
- package/dist/credential-broker/oauth-refresh.d.ts +72 -0
- package/dist/credential-broker/types.d.ts +165 -17
- package/dist/credential-broker/upstream-client.d.ts +3 -2
- package/dist/credential-broker/vendor-key-store.d.ts +32 -1
- package/dist/crypto/__tests__/encrypt-for-emit.test.d.ts +1 -0
- package/dist/crypto/__tests__/open-prompt-id.test.d.ts +1 -0
- package/dist/crypto/encrypt-for-emit.d.ts +39 -0
- package/dist/crypto/index.d.ts +3 -0
- package/dist/crypto/open-prompt-id.d.ts +36 -0
- package/dist/daemon/__tests__/process-guards.test.d.ts +1 -0
- package/dist/daemon/index.d.ts +2 -0
- package/dist/daemon/process-guards.d.ts +38 -0
- package/dist/e1/__tests__/prompt-raise.test.d.ts +1 -0
- package/dist/e1/index.d.ts +2 -0
- package/dist/e1/prompt-raise.d.ts +65 -0
- package/dist/index.d.ts +20 -2
- package/dist/index.js +4543 -288
- package/dist/keychain/__tests__/keychain-manager.test.d.ts +1 -0
- package/dist/keychain/__tests__/keychain-migrate.test.d.ts +1 -0
- package/dist/keychain/keychain-backend.d.ts +105 -0
- package/dist/keychain/keychain-manager.d.ts +40 -5
- package/dist/keychain/keychain-migrate.d.ts +46 -0
- package/dist/local-executor/__tests__/anchored-fs.test.d.ts +1 -0
- package/dist/local-executor/__tests__/bounded-directory.test.d.ts +1 -0
- package/dist/local-executor/__tests__/bounded-output.test.d.ts +1 -0
- package/dist/local-executor/__tests__/durable-directory.test.d.ts +1 -0
- package/dist/local-executor/__tests__/hosted-class-a-sink.test.d.ts +1 -0
- package/dist/local-executor/__tests__/process-identity.test.d.ts +1 -0
- package/dist/local-executor/__tests__/process-tree.test.d.ts +1 -0
- package/dist/local-executor/__tests__/publication-authority-capability.test.d.ts +1 -0
- package/dist/local-executor/__tests__/reviewer-rationale-flag.test.d.ts +1 -0
- package/dist/local-executor/__tests__/snapshot-merge.test.d.ts +1 -0
- package/dist/local-executor/__tests__/workspace-authority-fixture.d.ts +3 -0
- package/dist/local-executor/__tests__/workspace-authority.test.d.ts +1 -0
- package/dist/local-executor/__tests__/workspace-materializer.test.d.ts +1 -0
- package/dist/local-executor/agentic-disposable-repo.d.ts +23 -6
- package/dist/local-executor/agentic-resolve.d.ts +16 -0
- package/dist/local-executor/anchored-fs.d.ts +243 -0
- package/dist/local-executor/bounded-directory.d.ts +64 -0
- package/dist/local-executor/bounded-helper.d.ts +22 -0
- package/dist/local-executor/bounded-output.d.ts +11 -0
- package/dist/local-executor/class-a-emit.d.ts +13 -1
- package/dist/local-executor/class-a-sign.d.ts +15 -0
- package/dist/local-executor/durable-directory.d.ts +25 -0
- package/dist/local-executor/durable-store.d.ts +217 -25
- package/dist/local-executor/group-decision-outcome.d.ts +11 -0
- package/dist/local-executor/hosted-class-a-sink.d.ts +27 -0
- package/dist/local-executor/implementor-argv.d.ts +89 -7
- package/dist/local-executor/index.d.ts +3 -2
- package/dist/local-executor/local-executor-impl.d.ts +177 -76
- package/dist/local-executor/merge-conflict-resolve.d.ts +19 -0
- package/dist/local-executor/process-identity.d.ts +16 -0
- package/dist/local-executor/process-tree.d.ts +123 -0
- package/dist/local-executor/revert-reconcile.d.ts +16 -0
- package/dist/local-executor/revert-runner.d.ts +14 -1
- package/dist/local-executor/reviewer-rationale-flag.d.ts +10 -0
- package/dist/local-executor/snapshot-merge.d.ts +124 -0
- package/dist/local-executor/task-group-types.d.ts +7 -6
- package/dist/local-executor/team-execution-flag.d.ts +2 -2
- package/dist/local-executor/track-registry.d.ts +2 -0
- package/dist/local-executor/types.d.ts +34 -2
- package/dist/local-executor/verification-gates/build.d.ts +5 -0
- package/dist/local-executor/verification-gates/deploy-preflight.d.ts +2 -0
- package/dist/local-executor/verification-gates/diff-sanity.d.ts +12 -0
- package/dist/local-executor/verification-gates/hostile-grep.d.ts +2 -0
- package/dist/local-executor/verification-gates/lint.d.ts +2 -0
- package/dist/local-executor/verification-gates/shell-runner.d.ts +5 -0
- package/dist/local-executor/verification-gates/source-traceability.d.ts +2 -0
- package/dist/local-executor/verification-gates/tests.d.ts +3 -0
- package/dist/local-executor/verification-gates/typecheck.d.ts +3 -0
- package/dist/local-executor/verification-runner.d.ts +6 -0
- package/dist/local-executor/workspace-authority.d.ts +45 -0
- package/dist/local-executor/workspace-materializer.d.ts +27 -0
- package/dist/local-executor/workspace-shadow.d.ts +378 -85
- package/dist/local-model/manager.d.ts +1 -1
- package/dist/local-model/ollama.d.ts +40 -0
- package/dist/orchestration/__tests__/detect-agents.test.d.ts +1 -0
- package/dist/orchestration/detect-agents.d.ts +10 -30
- package/dist/orchestration/index.d.ts +1 -2
- package/dist/orchestration-shell/__tests__/a1a-planner-offers.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/a6-cli-surface.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/advisory-attachment-journal.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/advisory-attachments-dir-race.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/advisory-multi-mention-panel.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/advisory-panel-attachments.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/advisory-quota-stdout-result.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/agent-turn-context-batch.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/bounded-shutdown.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/brainstorm-quorum-wiring.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/brainstorm-quorum.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-team-session-key.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/command-intent.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/context-compaction.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/context-items-hosted-sync.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/context-items-wiring.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/context-items.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp8-full-team-events.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp8-team-decomposed-zk.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/explicit-tty-exit.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/mention-suggest.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/planner-offer-e1.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/route-browse-summarize-recovery.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/workspace-shutdown.test.d.ts +1 -0
- package/dist/orchestration-shell/advisory-attachment-journal.d.ts +165 -0
- package/dist/orchestration-shell/attachments.d.ts +53 -8
- package/dist/orchestration-shell/bounded-shutdown.d.ts +22 -0
- package/dist/orchestration-shell/brainstorm-quorum.d.ts +118 -0
- package/dist/orchestration-shell/cli.d.ts +97 -70
- package/dist/orchestration-shell/cli.js +51847 -33465
- package/dist/orchestration-shell/command-intent.d.ts +56 -0
- package/dist/orchestration-shell/components/InputBar.d.ts +6 -0
- package/dist/orchestration-shell/components/OrchestrationApp.d.ts +2 -0
- package/dist/orchestration-shell/context-compaction.d.ts +264 -0
- package/dist/orchestration-shell/context-items-hosted-sync.d.ts +19 -0
- package/dist/orchestration-shell/context-items.d.ts +408 -0
- package/dist/orchestration-shell/context-store.d.ts +162 -0
- package/dist/orchestration-shell/declared-test-runner.d.ts +21 -2
- package/dist/orchestration-shell/emit-shell-event.d.ts +41 -13
- package/dist/orchestration-shell/explicit-tty-exit.d.ts +17 -0
- package/dist/orchestration-shell/gate-decision-submit.d.ts +11 -0
- package/dist/orchestration-shell/gate-prompts.d.ts +78 -3
- package/dist/orchestration-shell/index.d.ts +309 -37
- package/dist/orchestration-shell/mention-suggest.d.ts +11 -0
- package/dist/orchestration-shell/mode-selection.d.ts +4 -22
- package/dist/orchestration-shell/planner-offer-e1.d.ts +97 -0
- package/dist/orchestration-shell/quorum-loop.d.ts +603 -77
- package/dist/orchestration-shell/reducer.d.ts +9 -0
- package/dist/orchestration-shell/task-progress.d.ts +17 -4
- package/dist/orchestration-shell/team-decompose.d.ts +47 -29
- package/dist/orchestration-shell/types.d.ts +103 -6
- package/dist/orchestration-shell/workspace-shutdown.d.ts +27 -0
- package/dist/planner/index.d.ts +1 -1
- package/dist/planner/local-advisory.d.ts +12 -0
- package/dist/planner/local-gemma.d.ts +27 -0
- package/dist/planner/types.d.ts +7 -0
- package/dist/reviewer/index.d.ts +0 -2
- package/dist/reviewer/output-parser.d.ts +19 -0
- package/dist/reviewer/provider.d.ts +9 -6
- package/dist/reviewer/providers/antigravity.d.ts +2 -3
- package/dist/reviewer/registry.d.ts +9 -4
- package/dist/reviewer/token-usage.d.ts +10 -0
- package/dist/reviewer/types.d.ts +3 -0
- package/dist/reviewer/verdict-classifier.d.ts +1 -0
- package/dist/session/__tests__/device-registration-lease.test.d.ts +1 -0
- package/dist/session/__tests__/pending-session-create.test.d.ts +1 -0
- package/dist/session/__tests__/session-rekey-fingerprint.test.d.ts +1 -0
- package/dist/session/__tests__/session-resume-key-reconciliation.test.d.ts +1 -0
- package/dist/session/__tests__/session-resume-pending-first.test.d.ts +1 -0
- package/dist/session/device-key-watcher.d.ts +1 -0
- package/dist/session/index.d.ts +4 -2
- package/dist/session/pending-session-create.d.ts +61 -0
- package/dist/session/register-device-key.d.ts +11 -1
- package/dist/session/session-rekey.d.ts +8 -8
- package/dist/session/session-resume.d.ts +21 -1
- package/dist/substrate/command-runner.d.ts +2 -0
- package/dist/substrate/docker.d.ts +14 -32
- package/dist/substrate/index.d.ts +0 -1
- package/dist/substrate/sandbox-exec.d.ts +17 -16
- package/dist/substrate/types.d.ts +39 -5
- package/dist/substrate-launch/__tests__/reviewer-credential-preflight.test.d.ts +1 -0
- package/dist/substrate-launch/apikey-bootstrap.d.ts +24 -1
- package/dist/substrate-launch/engage-substrate.d.ts +20 -0
- package/dist/substrate-launch/index.d.ts +2 -0
- package/dist/substrate-launch/reviewer-credential-preflight.d.ts +50 -0
- package/dist/substrate-launch/sanitized-env.d.ts +5 -5
- package/dist/test-publication-authority-setup.d.ts +1 -0
- package/dist/tool-activity/__tests__/consolidator.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/digest.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/flock-rollout-lock.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/ledger.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/outbox.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/replay-cursor.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/session-map.test.d.ts +1 -0
- package/dist/tool-activity/__tests__/socket-rollout-lock.test.d.ts +1 -0
- package/dist/tool-activity/atomic-file.d.ts +27 -0
- package/dist/tool-activity/consolidator.d.ts +253 -0
- package/dist/tool-activity/digest.d.ts +4 -0
- package/dist/tool-activity/flock-rollout-lock.d.ts +68 -0
- package/dist/tool-activity/index.d.ts +9 -0
- package/dist/tool-activity/ledger.d.ts +274 -0
- package/dist/tool-activity/outbox.d.ts +60 -0
- package/dist/tool-activity/replay-cursor.d.ts +190 -0
- package/dist/tool-activity/session-map.d.ts +133 -0
- package/dist/tool-activity/socket-rollout-lock.d.ts +57 -0
- package/dist/tool-activity/types.d.ts +368 -0
- package/dist/types/encryption.d.ts +9 -0
- package/dist/types/events.d.ts +29 -4
- package/dist/types/session.d.ts +32 -2
- package/package.json +7 -6
- package/dist/orchestration/orchestration-cli.d.ts +0 -12
- package/dist/orchestration/setup-bootstrap.d.ts +0 -146
- package/dist/orchestration/setup-failure-recourse.d.ts +0 -23
- package/dist/orchestration/setup-save.d.ts +0 -47
- package/dist/orchestration/setup-seat-picker.d.ts +0 -72
- package/dist/orchestration/setup-telemetry.d.ts +0 -54
- package/dist/orchestration/setup-test-agents.d.ts +0 -108
- package/dist/orchestration/setup-types.d.ts +0 -146
- package/dist/orchestration/setup-wizard.d.ts +0 -57
- package/dist/orchestration-shell/cohort-flag.d.ts +0 -16
- package/dist/reviewer/providers/gemini.d.ts +0 -109
- package/dist/substrate/git-proxy.d.ts +0 -35
- /package/dist/{companion-mode/__tests__/detect-parallel.test.d.ts → appsync/__tests__/appsync-client-context-items.test.d.ts} +0 -0
- /package/dist/{orchestration-shell/__tests__/cli-stub-session-adapter.test.d.ts → appsync/__tests__/heartbeat-active.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-bootstrap.test.d.ts → appsync/__tests__/orphan-sweep-null-heartbeat.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-failure-recourse.test.d.ts → appsync/__tests__/refresh-open-prompt-ttl-chunk.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-save.test.d.ts → auth/__tests__/keychain-cli.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-seat-picker.test.d.ts → auth/__tests__/vendor-key-cli.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-telemetry.test.d.ts → companion-mode/__tests__/mode-selected-emit.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-test-agents.test.d.ts → companion-mode/__tests__/private-launcher-detection.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-types.test.d.ts → companion-mode/__tests__/private-launcher-path.test.d.ts} +0 -0
- /package/dist/{orchestration/__tests__/setup-wizard.test.d.ts → credential-broker/__tests__/broker-c4.test.d.ts} +0 -0
- /package/dist/{reviewer/providers/__tests__/gemini-live-smoke.test.d.ts → credential-broker/__tests__/broker-streaming.test.d.ts} +0 -0
- /package/dist/{reviewer/providers/__tests__/gemini.test.d.ts → credential-broker/__tests__/chatgpt-config.test.d.ts} +0 -0
- /package/dist/{substrate/__tests__/git-proxy.test.d.ts → credential-broker/__tests__/oauth-account-lock.test.d.ts} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AppSyncClient } from '../appsync';
|
|
2
|
+
import { type Session } from '../types';
|
|
3
|
+
import type { E1ProducerKind } from '../e1';
|
|
2
4
|
/**
|
|
3
5
|
* §3 LOCK lines 173-181. Names + per-type metadata shapes are part of
|
|
4
6
|
* the Stage A contract. CP-1.a ships the union; CP-1.b/c/d add call
|
|
5
7
|
* sites for each emit type.
|
|
6
8
|
*/
|
|
7
|
-
export type NewEventTypeKind = 'MODE_SELECTED' | 'PLANNER_DECISION' | 'PLANNER_CACHE_HIT' | 'PLANNER_DEGRADED' | 'PLANNER_OUTAGE' | 'PLANNER_RECOVERED' | 'SLASH_COMMAND_INVOKED' | 'STRUCTURAL_SUMMARY_GENERATED' | 'LOCAL_AUTHORITY_REFUSAL' | 'NOTIFICATION' | 'ASSISTANT_RESPONSE' | 'USER_PROMPT';
|
|
9
|
+
export type NewEventTypeKind = 'MODE_SELECTED' | 'PLANNER_DECISION' | 'PLANNER_CACHE_HIT' | 'PLANNER_DEGRADED' | 'PLANNER_OUTAGE' | 'PLANNER_RECOVERED' | 'SLASH_COMMAND_INVOKED' | 'STRUCTURAL_SUMMARY_GENERATED' | 'LOCAL_AUTHORITY_REFUSAL' | 'NOTIFICATION' | 'TEAM_DECOMPOSED' | 'TEAM_TRACK_STATUS' | 'TEAM_GROUP_RESOLVED' | 'ASSISTANT_RESPONSE' | 'USER_PROMPT' | 'INTERACTIVE_PROMPT';
|
|
8
10
|
/**
|
|
9
11
|
* §3 LOCK lines 160-170. ShellEventEmit contract.
|
|
10
12
|
*
|
|
@@ -29,6 +31,16 @@ export interface ShellEventEmit {
|
|
|
29
31
|
isEncrypted: true;
|
|
30
32
|
/** RFC3339; if omitted, server fills in via existing VTL. */
|
|
31
33
|
timestamp?: string;
|
|
34
|
+
/** Pre-minted nonce when encrypted metadata must bind the response nonce. */
|
|
35
|
+
writerEventNonce?: string;
|
|
36
|
+
/** Proven local key mismatch: emit the safe legacy joined fallback. */
|
|
37
|
+
disableWriterAttestation?: boolean;
|
|
38
|
+
ownerToken?: string;
|
|
39
|
+
promptId?: string;
|
|
40
|
+
producerKind?: E1ProducerKind;
|
|
41
|
+
mobileActionable?: boolean;
|
|
42
|
+
resolvedPromptId?: string;
|
|
43
|
+
resolutionAt?: string;
|
|
32
44
|
}
|
|
33
45
|
/**
|
|
34
46
|
* Test seam — allows the unit tests to swap the AppSync client without
|
|
@@ -38,27 +50,43 @@ export interface ShellEventEmit {
|
|
|
38
50
|
export interface EmitShellEventDeps {
|
|
39
51
|
appsyncClient: Pick<AppSyncClient, 'createEvent'>;
|
|
40
52
|
getSessionKey: (sessionId: string) => Promise<string | null>;
|
|
41
|
-
|
|
53
|
+
session?: Session;
|
|
42
54
|
}
|
|
55
|
+
export type ShellEventEmitResult = {
|
|
56
|
+
emitted: true;
|
|
57
|
+
eventId: string;
|
|
58
|
+
sessionId: string;
|
|
59
|
+
type: NewEventTypeKind;
|
|
60
|
+
source: 'DESKTOP';
|
|
61
|
+
writer?: {
|
|
62
|
+
authenticated: true;
|
|
63
|
+
eventNonce: string;
|
|
64
|
+
contentCiphertextSha256: string;
|
|
65
|
+
metadataCiphertextSha256: string;
|
|
66
|
+
};
|
|
67
|
+
} | {
|
|
68
|
+
emitted: false;
|
|
69
|
+
reason: 'missing_session_key' | 'auth_required' | 'auth_unavailable' | 'create_failed' | 'definitive_rejection' | 'invalid_response' | 'writer_ineligible';
|
|
70
|
+
error?: unknown;
|
|
71
|
+
};
|
|
43
72
|
/**
|
|
44
|
-
* §3 LOCK lines 184-207. Single chokepoint enforcing the
|
|
45
|
-
*
|
|
73
|
+
* §3 LOCK lines 184-207. Single chokepoint enforcing the encryption
|
|
74
|
+
* invariants for all 9 new EventTypes.
|
|
46
75
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* (existing surface, no schema change).
|
|
76
|
+
* Encrypts content + metadata under the session key, then calls
|
|
77
|
+
* `createEvent` via Pattern B Lambda resolver (existing surface, no
|
|
78
|
+
* schema change). Emits unconditionally (the cohort gate was removed).
|
|
51
79
|
*
|
|
52
80
|
* `deps` is the test seam. Production callers omit it and the function
|
|
53
81
|
* resolves the default `keychainManager` + `cryptoService` references.
|
|
54
82
|
* The AppSync client is REQUIRED — there is no global default in
|
|
55
83
|
* codevibe-core (each plugin instantiates its own `AppSyncClient`).
|
|
56
84
|
*/
|
|
57
|
-
export declare function emitShellEvent(args: ShellEventEmit, deps: EmitShellEventDeps): Promise<
|
|
85
|
+
export declare function emitShellEvent(args: ShellEventEmit, deps: EmitShellEventDeps): Promise<ShellEventEmitResult>;
|
|
58
86
|
/**
|
|
59
87
|
* Convenience helper for production callers — binds default
|
|
60
|
-
* dependencies (`keychainManager` for session-key lookup
|
|
61
|
-
*
|
|
62
|
-
*
|
|
88
|
+
* dependencies (`keychainManager` for session-key lookup) and accepts
|
|
89
|
+
* the AppSync client separately because there's no global default in
|
|
90
|
+
* `codevibe-core`.
|
|
63
91
|
*/
|
|
64
|
-
export declare function createShellEventEmitter(appsyncClient: Pick<AppSyncClient, 'createEvent'
|
|
92
|
+
export declare function createShellEventEmitter(appsyncClient: Pick<AppSyncClient, 'createEvent'>, session?: Session): (args: ShellEventEmit) => Promise<ShellEventEmitResult>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ExplicitTtyExitDeps {
|
|
2
|
+
runTeardown: () => Promise<void>;
|
|
3
|
+
unmount: () => void;
|
|
4
|
+
}
|
|
5
|
+
export interface ExplicitTtyExitCoordinator {
|
|
6
|
+
completion: Promise<void>;
|
|
7
|
+
start: () => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Owns the explicit `/exit` and `/quit` boundary for the Ink shell.
|
|
11
|
+
*
|
|
12
|
+
* Ink's `waitUntilExit()` normally resolves after `unmount()`, but terminal
|
|
13
|
+
* stream teardown can leave that promise pending. The explicit completion
|
|
14
|
+
* promise lets the shell continue into its catch-all cleanup after the durable
|
|
15
|
+
* session retirement has finished, independent of Ink's internal exit promise.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createExplicitTtyExitCoordinator(deps: ExplicitTtyExitDeps): ExplicitTtyExitCoordinator;
|
|
@@ -152,6 +152,11 @@ export interface GroupDecisionSubmitDeps {
|
|
|
152
152
|
* after an accept-family COMMIT. ABSENT → no-op (tests).
|
|
153
153
|
*/
|
|
154
154
|
markAccepted?: (taskGroupId: string) => Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* Accept-family finalizer: retire PREPARED/APPLIED authority by exact base or
|
|
157
|
+
* post-image proof before marking accepted or clearing reviewed bundles.
|
|
158
|
+
*/
|
|
159
|
+
finalizeAcceptedGroup: (taskGroupId: string) => Promise<void>;
|
|
155
160
|
/**
|
|
156
161
|
* HIGH-1 / LOCK #589-J — persist the CLAIMED-but-not-COMMITted decision to the
|
|
157
162
|
* durable record, called IMMEDIATELY after the CLAIM phase mints `claimToken`
|
|
@@ -170,6 +175,12 @@ export interface GroupDecisionSubmitDeps {
|
|
|
170
175
|
* (so a later reconcile never re-drives it). ABSENT → no-op (tests).
|
|
171
176
|
*/
|
|
172
177
|
clearPendingDecision?: (taskGroupId: string) => Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Reclaim terminal durable group bytes after COMMIT, convergence, lifecycle
|
|
180
|
+
* transition, reissue (when requested), and pending-decision removal. The
|
|
181
|
+
* durable store rechecks every crash-authority predicate before deleting.
|
|
182
|
+
*/
|
|
183
|
+
gcTerminalGroup?: (taskGroupId: string) => Promise<void>;
|
|
173
184
|
/**
|
|
174
185
|
* Drive the per-track render flip through the SAME `emitGroupConvergence`
|
|
175
186
|
* chokepoint (D2): accept-family → tracks stay/flip `Passed`; reject-family →
|
|
@@ -71,8 +71,8 @@ export interface GatePromptOption {
|
|
|
71
71
|
readonly description: string;
|
|
72
72
|
/**
|
|
73
73
|
* PHASE-CP-10-MIN (#585) — the per-option target agent for the
|
|
74
|
-
* `continuation_offer_handoff` prompt (CLAUDE/CODEX/
|
|
75
|
-
* On the wire the 3
|
|
74
|
+
* `continuation_offer_handoff` prompt (CLAUDE/CODEX/ANTIGRAVITY).
|
|
75
|
+
* On the wire the 3 agent options all carry `id: "CONTINUE_WITH"` (a valid
|
|
76
76
|
* `UserDecisionKind`); the agent rides this NEW per-option `targetAgent`
|
|
77
77
|
* field (Rust `OptionPayload.target_agent` with
|
|
78
78
|
* `#[serde(rename="targetAgent", skip_serializing_if="Option::is_none")]`,
|
|
@@ -114,7 +114,7 @@ export interface GatePromptEnvelope {
|
|
|
114
114
|
readonly verdictDetails?: GateVerdictDetails;
|
|
115
115
|
/** The continuation offer's desktop-minted ULID (`metadata.offerId`). */
|
|
116
116
|
readonly offerId?: string;
|
|
117
|
-
/** The agent that halted (closed enum CLAUDE/CODEX/
|
|
117
|
+
/** The agent that halted (closed enum CLAUDE/CODEX/ANTIGRAVITY; `metadata.sourceAgent`). */
|
|
118
118
|
readonly sourceAgent?: string;
|
|
119
119
|
/** The authoritative 64-hex SHA-256 packet hash (`metadata.packetHash`). */
|
|
120
120
|
readonly packetHash?: string;
|
|
@@ -429,12 +429,51 @@ export interface ReviewSummaryRoundModel {
|
|
|
429
429
|
/** Aggregated REVISE seat findings (the auto-revision driver), or null. */
|
|
430
430
|
readonly reviseNotes: string | null;
|
|
431
431
|
}
|
|
432
|
+
export interface ReviewSummaryTerminalModel {
|
|
433
|
+
readonly schemaVersion: number;
|
|
434
|
+
readonly requirements: {
|
|
435
|
+
readonly problem: string;
|
|
436
|
+
readonly expectedOutputs: ReadonlyArray<string>;
|
|
437
|
+
};
|
|
438
|
+
readonly implementors: ReadonlyArray<{
|
|
439
|
+
readonly agent: string;
|
|
440
|
+
readonly trackIndex: number | null;
|
|
441
|
+
readonly taskId: string;
|
|
442
|
+
}>;
|
|
443
|
+
readonly reviewQuorum: {
|
|
444
|
+
readonly seats: ReadonlyArray<{
|
|
445
|
+
readonly seatId: number;
|
|
446
|
+
readonly role: string;
|
|
447
|
+
readonly agent: string;
|
|
448
|
+
}>;
|
|
449
|
+
readonly roundCount: number;
|
|
450
|
+
readonly revisionCount: number;
|
|
451
|
+
};
|
|
452
|
+
readonly mergeGate: {
|
|
453
|
+
readonly applicable: boolean;
|
|
454
|
+
readonly outcome: string;
|
|
455
|
+
readonly resolution: string | null;
|
|
456
|
+
};
|
|
457
|
+
readonly durations: {
|
|
458
|
+
readonly taskElapsedMs: number | null;
|
|
459
|
+
readonly reviewerElapsedMs: number | null;
|
|
460
|
+
readonly availability: string;
|
|
461
|
+
};
|
|
462
|
+
readonly tokenUsage: {
|
|
463
|
+
readonly knownTotal: number | null;
|
|
464
|
+
readonly availability: string;
|
|
465
|
+
readonly unavailableRoles: ReadonlyArray<string>;
|
|
466
|
+
};
|
|
467
|
+
readonly residualRisks: ReadonlyArray<string>;
|
|
468
|
+
}
|
|
432
469
|
/**
|
|
433
470
|
* The fully-extracted, render-ready per-round review summary model. PURE
|
|
434
471
|
* function of the decrypted summary. `null`-attached (entry has no
|
|
435
472
|
* `reviewSummary`) → the panel renders nothing extra (fail-open base prompt).
|
|
436
473
|
*/
|
|
437
474
|
export interface ReviewSummaryPanelModel {
|
|
475
|
+
/** Additive P15 schema-v2 terminal header; null for legacy schema v1. */
|
|
476
|
+
readonly terminal: ReviewSummaryTerminalModel | null;
|
|
438
477
|
readonly rounds: ReadonlyArray<ReviewSummaryRoundModel>;
|
|
439
478
|
/** finalOutcome display value (proceed | auto_revise | escalate). */
|
|
440
479
|
readonly finalOutcome: string;
|
|
@@ -448,6 +487,41 @@ export interface ReviewSummaryPanelModel {
|
|
|
448
487
|
* object degrades to an empty/safe model, never throws.
|
|
449
488
|
*/
|
|
450
489
|
export interface DecryptedReviewSummaryInput {
|
|
490
|
+
readonly schemaVersion?: number;
|
|
491
|
+
readonly requirements?: {
|
|
492
|
+
readonly problem?: string;
|
|
493
|
+
readonly expectedOutputs?: ReadonlyArray<string>;
|
|
494
|
+
};
|
|
495
|
+
readonly implementors?: ReadonlyArray<{
|
|
496
|
+
readonly agent?: string;
|
|
497
|
+
readonly trackIndex?: number;
|
|
498
|
+
readonly taskId?: string;
|
|
499
|
+
}>;
|
|
500
|
+
readonly reviewQuorum?: {
|
|
501
|
+
readonly seats?: ReadonlyArray<{
|
|
502
|
+
readonly seatId?: number;
|
|
503
|
+
readonly role?: string;
|
|
504
|
+
readonly agent?: string;
|
|
505
|
+
}>;
|
|
506
|
+
readonly roundCount?: number;
|
|
507
|
+
readonly revisionCount?: number;
|
|
508
|
+
};
|
|
509
|
+
readonly mergeGate?: {
|
|
510
|
+
readonly applicable?: boolean;
|
|
511
|
+
readonly outcome?: string;
|
|
512
|
+
readonly resolution?: string;
|
|
513
|
+
};
|
|
514
|
+
readonly durations?: {
|
|
515
|
+
readonly taskElapsedMs?: number;
|
|
516
|
+
readonly reviewerElapsedMs?: number;
|
|
517
|
+
readonly availability?: string;
|
|
518
|
+
};
|
|
519
|
+
readonly tokenUsage?: {
|
|
520
|
+
readonly knownTotal?: number;
|
|
521
|
+
readonly availability?: string;
|
|
522
|
+
readonly unavailableRoles?: ReadonlyArray<string>;
|
|
523
|
+
};
|
|
524
|
+
readonly residualRisks?: ReadonlyArray<string>;
|
|
451
525
|
readonly rounds?: ReadonlyArray<{
|
|
452
526
|
readonly round?: number;
|
|
453
527
|
readonly proposal?: string;
|
|
@@ -458,6 +532,7 @@ export interface DecryptedReviewSummaryInput {
|
|
|
458
532
|
readonly decision?: string;
|
|
459
533
|
readonly reasoning?: string;
|
|
460
534
|
readonly suggestedChanges?: ReadonlyArray<string>;
|
|
535
|
+
readonly residualObservations?: ReadonlyArray<string>;
|
|
461
536
|
}>;
|
|
462
537
|
readonly outcome?: string;
|
|
463
538
|
readonly reviseNotes?: string;
|