@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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal structural logger — every plugin's `createLogger(...)` Logger satisfies
|
|
3
|
+
* it, and so does any object with an `error(message, data?)` method.
|
|
4
|
+
*/
|
|
5
|
+
export interface DaemonGuardLogger {
|
|
6
|
+
error(message: string, data?: any): void;
|
|
7
|
+
}
|
|
8
|
+
export interface DaemonProcessGuardOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Invoked for a genuinely fatal (non-network-class) `uncaughtException`. A
|
|
11
|
+
* plugin passes its existing graceful-shutdown fn here. When omitted, the guard
|
|
12
|
+
* falls back to `process.exit(1)` so a fatal fault still terminates the daemon.
|
|
13
|
+
*/
|
|
14
|
+
onFatal?: (error: Error) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* True when `err`'s `code` or `message` matches a known transient network-class
|
|
18
|
+
* signature.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isNetworkClass(err: unknown): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Install the shared daemon process guards.
|
|
23
|
+
*
|
|
24
|
+
* Both handlers are SYMMETRIC (#638 F6): a network-class fault is transient — the
|
|
25
|
+
* AppSync two-phase reconnect heals it — so log and CONTINUE; anything else is a
|
|
26
|
+
* genuinely-unexpected (programmer/app) fault that could leave a corrupted daemon
|
|
27
|
+
* lying ACTIVE (a2's heartbeat re-asserts `status: ACTIVE`), so treat it as fatal
|
|
28
|
+
* and hand off to `opts.onFatal` (a clean shutdown incl. INACTIVE) or `process.exit(1)`.
|
|
29
|
+
*
|
|
30
|
+
* - `unhandledRejection` → network-class → log + CONTINUE; otherwise fatal. EXPECTED
|
|
31
|
+
* transient app/GraphQL rejections are handled AT their emit source with `.catch()`
|
|
32
|
+
* (audited across the plugins), so they never reach here — only a truly-unhandled
|
|
33
|
+
* programmer-bug rejection is fatal. This is intentionally symmetric with
|
|
34
|
+
* `uncaughtException`: before #638 an unhandledRejection was ALWAYS non-fatal, which
|
|
35
|
+
* masked a corrupted daemon that kept advertising connected.
|
|
36
|
+
* - `uncaughtException` → network-class → log + CONTINUE; otherwise fatal.
|
|
37
|
+
*/
|
|
38
|
+
export declare function installDaemonProcessGuards(logger: DaemonGuardLogger, opts?: DaemonProcessGuardOptions): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* E1 missed-prompt recovery — the SHARED producer-side raise identity
|
|
3
|
+
* (PHASE-E1-MISSED-PROMPT-RECOVERY-DESIGN.md §4 / §6a-4). core + claude + codex +
|
|
4
|
+
* agy all mint + emit + persist the SAME shape so a retirement/resume re-raise
|
|
5
|
+
* re-commits the SAME `promptId`.
|
|
6
|
+
*
|
|
7
|
+
* A producer mints a fresh `ownerToken` at FIRST raise and stashes it in a
|
|
8
|
+
* durable `PromptRaiseRecord`. Every raise/re-raise emits
|
|
9
|
+
* `promptId = deriveOpenPromptId(ownerToken)` + the token, so the backend
|
|
10
|
+
* `classifyRaise` WRITE_ROWs the durable open-prompt row (first raise on the
|
|
11
|
+
* `attribute_not_exists` branch, a re-raise on the `ownerToken = :token` branch).
|
|
12
|
+
*
|
|
13
|
+
* SECRECY INVARIANT (design Stage-1 v37): `ownerToken` is the secret behind the
|
|
14
|
+
* commitment — it must be stripped from EVERY same-user-readable surface (it is
|
|
15
|
+
* never in a Query/fan-out/listEvents projection). Persist it ONLY in the local
|
|
16
|
+
* durable record on the producer's own machine.
|
|
17
|
+
*
|
|
18
|
+
* Scope: this is the shared E1 IDENTITY. Each plugin's persistence adapter wraps
|
|
19
|
+
* this record with its own re-raise CONTENT (the prompt text / options), because
|
|
20
|
+
* those shapes differ per agent (claude tmux options, codex tool-input, agy pane
|
|
21
|
+
* capture). Keep the identity here; keep the content in the plugin.
|
|
22
|
+
*/
|
|
23
|
+
export type E1ProducerKind = 'PLUGIN_APPROVAL' | 'CORE_OFFER';
|
|
24
|
+
/** The durable, per-producer record (§6a-4). Persisted locally; never uploaded. */
|
|
25
|
+
export interface PromptRaiseRecord {
|
|
26
|
+
/** = deriveOpenPromptId(ownerToken). The stable cross-surface prompt identity. */
|
|
27
|
+
promptId: string;
|
|
28
|
+
/** IMMUTABLE 256-bit secret minted ONCE at first raise. NEVER surface it. */
|
|
29
|
+
ownerToken: string;
|
|
30
|
+
/** The session this prompt belongs to (for the resolve-delete origin binding). */
|
|
31
|
+
sessionId: string;
|
|
32
|
+
producerKind: E1ProducerKind;
|
|
33
|
+
/** CLAUDE | CODEX | ANTIGRAVITY (for the mobile row + fan-out). */
|
|
34
|
+
agentType?: string;
|
|
35
|
+
title?: string;
|
|
36
|
+
/** false = SUPPRESSED (options unparseable → badge-only NOTIFICATION carrier). */
|
|
37
|
+
mobileActionable: boolean;
|
|
38
|
+
/** First-raise wall clock (ms); record-creation time, for local ordering/debug. */
|
|
39
|
+
raisedAtMs: number;
|
|
40
|
+
}
|
|
41
|
+
/** The additive `CreateEventInput` fields a raise/re-raise puts on the wire. */
|
|
42
|
+
export interface E1RaiseFields {
|
|
43
|
+
ownerToken: string;
|
|
44
|
+
promptId: string;
|
|
45
|
+
producerKind: E1ProducerKind;
|
|
46
|
+
mobileActionable: boolean;
|
|
47
|
+
}
|
|
48
|
+
/** Derive the wire fields from a (new or persisted) record — pure. */
|
|
49
|
+
export declare function raiseFieldsFromRecord(r: PromptRaiseRecord): E1RaiseFields;
|
|
50
|
+
/**
|
|
51
|
+
* FIRST raise: mint a fresh secret, derive its committed promptId, and return
|
|
52
|
+
* both the wire fields and the durable record to persist. The caller persists
|
|
53
|
+
* `record` (via its per-plugin adapter) so a later restart can re-raise.
|
|
54
|
+
*/
|
|
55
|
+
export declare function newPromptRaise(opts: {
|
|
56
|
+
sessionId: string;
|
|
57
|
+
producerKind: E1ProducerKind;
|
|
58
|
+
mobileActionable: boolean;
|
|
59
|
+
agentType?: string;
|
|
60
|
+
title?: string;
|
|
61
|
+
nowMs?: number;
|
|
62
|
+
}): {
|
|
63
|
+
record: PromptRaiseRecord;
|
|
64
|
+
fields: E1RaiseFields;
|
|
65
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
export { KeychainManager, keychainManager, KeychainError } from './keychain';
|
|
2
2
|
export { CryptoService, cryptoService, CryptoError, ENCRYPTION_VERSION } from './crypto';
|
|
3
|
+
export { encryptForEmit } from './crypto';
|
|
4
|
+
export type { EncryptedEmitPayload } from './crypto';
|
|
5
|
+
export { E1_PROMPT_ID_DOMAIN, deriveOpenPromptId, mintOwnerToken } from './crypto';
|
|
6
|
+
export { newPromptRaise, raiseFieldsFromRecord } from './e1';
|
|
7
|
+
export type { E1ProducerKind, PromptRaiseRecord, E1RaiseFields } from './e1';
|
|
8
|
+
export { installDaemonProcessGuards, isNetworkClass } from './daemon';
|
|
9
|
+
export type { DaemonGuardLogger, DaemonProcessGuardOptions } from './daemon';
|
|
3
10
|
export { AppSyncClient, AppSyncGraphQLError, DownloadUrlResponse } from './appsync';
|
|
4
11
|
export { queries, mutations, subscriptions } from './appsync';
|
|
12
|
+
export { isPersistedEventResult } from './appsync';
|
|
13
|
+
export type { PutContextItemInput } from './appsync';
|
|
5
14
|
export { AuthService, authService } from './auth';
|
|
6
15
|
export { bindOAuthServer, PRIMARY_PORT, PORT_RANGE_SIZE } from './auth';
|
|
7
16
|
export { runAuthCli } from './auth';
|
|
@@ -14,7 +23,7 @@ export { parseInteractivePrompt, normalizeSnapshot, } from './prompt-parser';
|
|
|
14
23
|
export type { ParsedInteractivePrompt, PromptKind, InteractivePromptOption, } from './prompt-parser';
|
|
15
24
|
export { resumeOrCreateSession, prepareSessionEncryption, rekeySessionForNewDevices, startDeviceKeyWatcher, registerDeviceEncryptionKey, prepareEventTimestamp, _resetPrepareEventTimestampForTesting, } from './session';
|
|
16
25
|
export type { ResumeOrCreateSessionInput, ResumeOrCreateSessionResult } from './session';
|
|
17
|
-
export { detectInstalledAgents, pushDetectedAgents,
|
|
26
|
+
export { detectInstalledAgents, pushDetectedAgents, V1_ORCHESTRATION_PROMPT_KIND, V1_ORCHESTRATION_OPTIONS, mapOptionNumberToUserDecisionKind, mapOptionToUserDecisionKind, } from './orchestration';
|
|
18
27
|
export type { DetectableAgent, V1OrchestrationOption, V1UserDecisionKind, } from './orchestration';
|
|
19
28
|
export * as Reviewer from './reviewer';
|
|
20
29
|
export * as AuditKeys from './audit-keys';
|
|
@@ -27,7 +36,16 @@ export * as Continuation from './continuation';
|
|
|
27
36
|
export * as StructuralSummary from './structural-summary';
|
|
28
37
|
export { runOrchestrationShell } from './orchestration-shell';
|
|
29
38
|
export { runCompanionMode } from './companion-mode';
|
|
30
|
-
export { pickMode
|
|
39
|
+
export { pickMode } from './orchestration-shell';
|
|
31
40
|
export { emitShellEvent, createShellEventEmitter } from './orchestration-shell';
|
|
32
41
|
export { processMarkers, withRoleMarker } from './orchestration-shell';
|
|
42
|
+
export { ToolActivityOutbox, type ToolActivityOutboxOptions, type ListPendingResult, } from './tool-activity';
|
|
43
|
+
export { ToolActivityLedger, LedgerEntrySchema, LedgerFileSchema, LegacyOwnedFileSchema, type LedgerEntry, type LedgerFile, type LegacyOwnedFile, type OccurrenceRef, type ToolActivityLedgerOptions, } from './tool-activity';
|
|
44
|
+
export { ToolReplayCursor, ReplayFrameTooLargeError, ReplayCursorStateSchema, DEFAULT_REPLAY_READ_BYTES, DEFAULT_REPLAY_MAX_FRAME_BYTES, type ReplayCursorState, type ReplayFrame, type ReadFramesResult, type ToolReplayCursorOptions, } from './tool-activity';
|
|
45
|
+
export { ToolActivitySessionMap, InProcessRolloutLock, SessionMapRecordSchema, type RolloutLock, type RolloutOwnership, type SessionMapRecord, type ToolActivitySessionMapOptions, } from './tool-activity';
|
|
46
|
+
export { ToolActivityConsolidator, isSessionKeyStaleError, type ObservedOccurrence, type ObserveDisposition, type ToolActivityTransport, type ToolActivityConsolidatorOptions, } from './tool-activity';
|
|
47
|
+
export { SocketRolloutLock, type SocketRolloutLockOptions, FlockRolloutLock, type FlockRolloutLockOptions, type FlockSyncFn, type FlockFlag, createRolloutLock, type CreateRolloutLockOptions, } from './tool-activity';
|
|
48
|
+
export { ToolActivityOccurrenceSchema, ToolActivityDetailSchema, ToolActivityGroupSchema, ToolActivityManifestSchema, ToolActivityOutboxEnvelopeSchema, type ToolActivityOccurrence, type ToolActivityDetail, type ToolActivityGroup, type ToolActivityManifest, type ToolActivityOutboxEnvelope, } from './tool-activity';
|
|
49
|
+
export { digestOf, stableStringify } from './tool-activity';
|
|
50
|
+
export { CONTEXT_SESSION_PSEUDO_TASK_NAMESPACE, deriveSessionPseudoTaskId, auditPartitionTaskIdFor, buildContextItemWireRow, decryptContextItemWireRow, type ContextItem, type ContextItemWireRow, } from './orchestration-shell';
|
|
33
51
|
export type { Mode, Tier, PlannerDecision, AgentKind, PlannerHealthState, OrchestrationState, OrchestrationAction, ConversationEntry, RunningTaskState, ReviewerSeatState, GateState, ExecutionEventEntry, RefusalEventEntry, BypassEventEntry, MobileEventEntry, EventStreamEntry, QueuedTask, PendingClarification, LastModeFile, } from './orchestration-shell';
|