@quantiya/codevibe-core 2.0.0 → 2.0.2
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/__tests__/cp-5-baseline-invariants.test.d.ts +1 -0
- package/dist/__tests__/prompt-parser.test.d.ts +1 -0
- package/dist/adapter/__tests__/capabilities.test.d.ts +1 -0
- package/dist/adapter/__tests__/contract-conformance.test.d.ts +1 -0
- package/dist/adapter/__tests__/packets.test.d.ts +1 -0
- package/dist/adapter/__tests__/progress.test.d.ts +1 -0
- package/dist/adapter/__tests__/registry.test.d.ts +1 -0
- package/dist/adapter/__tests__/smoke/claude.smoke.test.d.ts +1 -0
- package/dist/adapter/__tests__/smoke/codex.smoke.test.d.ts +1 -0
- package/dist/adapter/__tests__/smoke/gemini.smoke.test.d.ts +1 -0
- package/dist/adapter/capabilities.d.ts +68 -0
- package/dist/adapter/index.d.ts +7 -0
- package/dist/adapter/packets.d.ts +129 -0
- package/dist/adapter/progress.d.ts +93 -0
- package/dist/adapter/registry.d.ts +91 -0
- package/dist/adapter/types.d.ts +22 -0
- package/dist/appsync/__tests__/appsync-client-apply-user-decision.test.d.ts +1 -0
- package/dist/appsync/__tests__/appsync-client-classb.test.d.ts +1 -0
- package/dist/appsync/__tests__/appsync-client-event-source-filter.test.d.ts +1 -0
- package/dist/appsync/__tests__/appsync-client-planner.test.d.ts +1 -0
- package/dist/appsync/__tests__/appsync-client-task-group.test.d.ts +1 -0
- package/dist/appsync/__tests__/appsync-client.test.d.ts +1 -0
- package/dist/appsync/__tests__/cleanup-subscription.test.d.ts +1 -0
- package/dist/appsync/__tests__/coerce-awsjson-and-review-summary.test.d.ts +1 -0
- package/dist/appsync/__tests__/cp1f-quorum-sdk.test.d.ts +1 -0
- package/dist/appsync/__tests__/event-throttle.test.d.ts +1 -0
- package/dist/appsync/appsync-client.d.ts +1025 -2
- package/dist/appsync/event-throttle.d.ts +28 -0
- package/dist/appsync/index.d.ts +4 -1
- package/dist/appsync/queries.d.ts +34 -0
- package/dist/audit-keys/index.d.ts +32 -0
- package/dist/auth/__tests__/auth-telemetry.test.d.ts +1 -0
- package/dist/auth/auth-service.d.ts +32 -2
- package/dist/auth/auth-telemetry.d.ts +117 -6
- package/dist/auth/index.d.ts +1 -0
- package/dist/companion-mode/__tests__/persist-preference.test.d.ts +1 -0
- package/dist/companion-mode/__tests__/resolve-agent.test.d.ts +1 -0
- package/dist/companion-mode/agent-picker.d.ts +9 -0
- package/dist/companion-mode/index.d.ts +55 -0
- package/dist/companion-mode/persist-preference.d.ts +24 -0
- package/dist/companion-mode/resolve-agent.d.ts +41 -0
- package/dist/config/config.d.ts +8 -1
- package/dist/continuation/__tests__/dirty-state-collector.test.d.ts +1 -0
- package/dist/continuation/__tests__/integration.test.d.ts +1 -0
- package/dist/continuation/__tests__/packet-reader.test.d.ts +1 -0
- package/dist/continuation/__tests__/packet-writer.test.d.ts +1 -0
- package/dist/continuation/__tests__/parity.test.d.ts +1 -0
- package/dist/continuation/__tests__/status-cli.test.d.ts +1 -0
- package/dist/continuation/dirty-state-collector.d.ts +46 -0
- package/dist/continuation/index.d.ts +8 -0
- package/dist/continuation/packet-reader.d.ts +33 -0
- package/dist/continuation/packet-writer.d.ts +86 -0
- package/dist/continuation/types.d.ts +239 -0
- package/dist/credential-broker/__tests__/broker.test.d.ts +1 -0
- package/dist/credential-broker/__tests__/canonical.test.d.ts +1 -0
- package/dist/credential-broker/__tests__/scrubber.test.d.ts +1 -0
- package/dist/credential-broker/__tests__/upstream-client.test.d.ts +1 -0
- package/dist/credential-broker/__tests__/vendor-key-store.test.d.ts +1 -0
- package/dist/credential-broker/audit-sink.d.ts +69 -0
- package/dist/credential-broker/broker-config.d.ts +39 -0
- package/dist/credential-broker/broker-token.d.ts +123 -0
- package/dist/credential-broker/broker.d.ts +165 -0
- package/dist/credential-broker/canonical.d.ts +119 -0
- package/dist/credential-broker/index.d.ts +15 -0
- package/dist/credential-broker/scrubber.d.ts +45 -0
- package/dist/credential-broker/types.d.ts +141 -0
- package/dist/credential-broker/upstream-client.d.ts +20 -0
- package/dist/credential-broker/vendor-key-store.d.ts +54 -0
- package/dist/index.d.ts +17 -4
- package/dist/index.js +559 -55
- package/dist/keychain/__tests__/keychain-backend.test.d.ts +1 -0
- package/dist/keychain/keychain-backend.d.ts +82 -0
- package/dist/keychain/keychain-manager.d.ts +16 -2
- package/dist/local-executor/__tests__/agentic-disposable-repo.test.d.ts +1 -0
- package/dist/local-executor/__tests__/agentic-resolve.test.d.ts +1 -0
- package/dist/local-executor/__tests__/agentic-resolver-flag.test.d.ts +1 -0
- package/dist/local-executor/__tests__/authority-symlink-fixture.d.ts +15 -0
- package/dist/local-executor/__tests__/authority.test.d.ts +1 -0
- package/dist/local-executor/__tests__/class-a-emit.test.d.ts +1 -0
- package/dist/local-executor/__tests__/class-a-sign.test.d.ts +1 -0
- package/dist/local-executor/__tests__/class-b-consumer.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/class-b-consumer.test.d.ts +1 -0
- package/dist/local-executor/__tests__/class1-reconcilers.test.d.ts +1 -0
- package/dist/local-executor/__tests__/class2-resolver.test.d.ts +1 -0
- package/dist/local-executor/__tests__/confined-model-caller.test.d.ts +1 -0
- package/dist/local-executor/__tests__/conflict-classifier.test.d.ts +1 -0
- package/dist/local-executor/__tests__/conflict-resolution-durable-store.test.d.ts +1 -0
- package/dist/local-executor/__tests__/conflict-resolution-store.test.d.ts +1 -0
- package/dist/local-executor/__tests__/cp1f-quorum-consumer.test.d.ts +1 -0
- package/dist/local-executor/__tests__/cp7-audit-writer.test.d.ts +1 -0
- package/dist/local-executor/__tests__/durable-store.test.d.ts +1 -0
- package/dist/local-executor/__tests__/git-lock-retry.test.d.ts +1 -0
- package/dist/local-executor/__tests__/hook-bridge.test.d.ts +1 -0
- package/dist/local-executor/__tests__/implementor-argv.test.d.ts +1 -0
- package/dist/local-executor/__tests__/local-executor-teams.test.d.ts +1 -0
- package/dist/local-executor/__tests__/local-executor.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-conflict-extract.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-conflict-git.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-conflict-resolve-agentic.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-conflict-resolve.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-journal-store.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-train-agentic-recovery.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-train-w3.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-train-waveb.integration.test.d.ts +1 -0
- package/dist/local-executor/__tests__/merge-train.test.d.ts +1 -0
- package/dist/local-executor/__tests__/promote-wal-store.test.d.ts +1 -0
- package/dist/local-executor/__tests__/revert-reconcile.test.d.ts +1 -0
- package/dist/local-executor/__tests__/revert-runner.test.d.ts +1 -0
- package/dist/local-executor/__tests__/shared-contract-detector.test.d.ts +1 -0
- package/dist/local-executor/__tests__/spawn.test.d.ts +1 -0
- package/dist/local-executor/__tests__/substrate-engage.test.d.ts +1 -0
- package/dist/local-executor/__tests__/team-execution-flag.test.d.ts +1 -0
- package/dist/local-executor/__tests__/track-registry.test.d.ts +1 -0
- package/dist/local-executor/__tests__/verification-runner.test.d.ts +1 -0
- package/dist/local-executor/__tests__/wb2-review-bundle.test.d.ts +1 -0
- package/dist/local-executor/__tests__/wb2-substrate-spawn.live.test.d.ts +1 -0
- package/dist/local-executor/__tests__/workspace-shadow.test.d.ts +1 -0
- package/dist/local-executor/__tests__/worktree-merge.test.d.ts +1 -0
- package/dist/local-executor/agentic-disposable-repo.d.ts +52 -0
- package/dist/local-executor/agentic-resolve.d.ts +54 -0
- package/dist/local-executor/agentic-resolver-flag.d.ts +9 -0
- package/dist/local-executor/authority.d.ts +61 -0
- package/dist/local-executor/class-a-emit.d.ts +140 -0
- package/dist/local-executor/class-a-sign.d.ts +57 -0
- package/dist/local-executor/class-b-consumer.d.ts +276 -0
- package/dist/local-executor/class-b-verify.d.ts +30 -0
- package/dist/local-executor/class1-reconcilers.d.ts +58 -0
- package/dist/local-executor/class2-resolver.d.ts +74 -0
- package/dist/local-executor/confined-model-caller.d.ts +39 -0
- package/dist/local-executor/conflict-classifier.d.ts +21 -0
- package/dist/local-executor/conflict-resolution-durable-store.d.ts +61 -0
- package/dist/local-executor/conflict-resolution-store.d.ts +210 -0
- package/dist/local-executor/conflict-types.d.ts +86 -0
- package/dist/local-executor/cp7-audit-writer.d.ts +152 -0
- package/dist/local-executor/durable-store.d.ts +334 -0
- package/dist/local-executor/git-lock-retry.d.ts +40 -0
- package/dist/local-executor/hook-bridge.d.ts +36 -0
- package/dist/local-executor/implementor-argv.d.ts +183 -0
- package/dist/local-executor/index.d.ts +49 -0
- package/dist/local-executor/local-executor-impl.d.ts +724 -0
- package/dist/local-executor/merge-conflict-extract.d.ts +34 -0
- package/dist/local-executor/merge-conflict-resolve.d.ts +101 -0
- package/dist/local-executor/merge-journal-store.d.ts +311 -0
- package/dist/local-executor/merge-train.d.ts +713 -0
- package/dist/local-executor/promote-wal-store.d.ts +301 -0
- package/dist/local-executor/resolution-set-index.d.ts +51 -0
- package/dist/local-executor/revert-reconcile.d.ts +89 -0
- package/dist/local-executor/revert-runner.d.ts +17 -0
- package/dist/local-executor/shared-contract-detector.d.ts +57 -0
- package/dist/local-executor/spawn.d.ts +34 -0
- package/dist/local-executor/task-group-types.d.ts +346 -0
- package/dist/local-executor/team-execution-flag.d.ts +21 -0
- package/dist/local-executor/track-registry.d.ts +50 -0
- package/dist/local-executor/types.d.ts +417 -0
- package/dist/local-executor/verification-gates/build.d.ts +6 -0
- package/dist/local-executor/verification-gates/deploy-preflight.d.ts +6 -0
- package/dist/local-executor/verification-gates/diff-sanity.d.ts +6 -0
- package/dist/local-executor/verification-gates/hostile-grep.d.ts +6 -0
- package/dist/local-executor/verification-gates/lint.d.ts +6 -0
- package/dist/local-executor/verification-gates/shell-runner.d.ts +40 -0
- package/dist/local-executor/verification-gates/source-traceability.d.ts +6 -0
- package/dist/local-executor/verification-gates/tests.d.ts +6 -0
- package/dist/local-executor/verification-gates/typecheck.d.ts +6 -0
- package/dist/local-executor/verification-runner.d.ts +28 -0
- package/dist/local-executor/wb2-review-bundle.d.ts +59 -0
- package/dist/local-executor/workspace-shadow.d.ts +290 -0
- package/dist/local-executor/worktree-merge.d.ts +601 -0
- package/dist/local-model/__tests__/installer.test.d.ts +1 -0
- package/dist/local-model/__tests__/manager.test.d.ts +1 -0
- package/dist/local-model/__tests__/ollama.test.d.ts +1 -0
- package/dist/local-model/__tests__/runtime.test.d.ts +1 -0
- package/dist/local-model/__tests__/state.test.d.ts +1 -0
- package/dist/local-model/manager.d.ts +119 -0
- package/dist/local-model/ollama.d.ts +27 -0
- package/dist/local-model/runtime.d.ts +27 -0
- package/dist/local-model/state.d.ts +32 -0
- package/dist/orchestration/__tests__/setup-bootstrap.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-failure-recourse.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-save.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-seat-picker.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-telemetry.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-test-agents.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-types.test.d.ts +1 -0
- package/dist/orchestration/__tests__/setup-wizard.test.d.ts +1 -0
- package/dist/orchestration/__tests__/v1-options.test.d.ts +1 -0
- package/dist/orchestration/detect-agents.d.ts +16 -2
- package/dist/orchestration/index.d.ts +1 -0
- package/dist/orchestration/orchestration-cli.d.ts +4 -1
- package/dist/orchestration/setup-bootstrap.d.ts +146 -0
- package/dist/orchestration/setup-failure-recourse.d.ts +23 -0
- package/dist/orchestration/setup-save.d.ts +47 -0
- package/dist/orchestration/setup-seat-picker.d.ts +72 -0
- package/dist/orchestration/setup-telemetry.d.ts +54 -0
- package/dist/orchestration/setup-test-agents.d.ts +108 -0
- package/dist/orchestration/setup-types.d.ts +141 -0
- package/dist/orchestration/setup-wizard.d.ts +57 -0
- package/dist/orchestration/v1-options.d.ts +97 -0
- package/dist/orchestration-shell/__tests__/attachments.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/audit-browser.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/audited-path-fixes.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/bracketed-paste.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-authority-bridge.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-group-halt-wiring.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-orchestration-session-bootstrap.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-planner-stack.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-probe-group-status.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-quorum-loop-tier.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-singleton-enforcement.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-stub-session-adapter.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cli-verdict-classifier-wiring.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/components.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/context-store.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp10-585-accept-echo-target.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp10-585-loop.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp10-585-prompts.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp12-w2b-team-loop.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp12-w4-team-recovery.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp1f-quorum-loop.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp606-team-track-user-resolved.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/cp7-reviewer-substrate.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/declared-test-runner.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/emit-shell-event.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/familiarize-routing.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/gate-decision-submit.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/gate-details-panel.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/gate-prompts.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/gate-verdict-details-dispatch.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/group-decision-submit.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/hostile-grep.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/image-attach-e2e.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/input-bar-autocomplete.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/live-region-cap.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/live-static-order.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/mode-selection.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/model-cli.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/non-gate-prompt-routing.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/orchestration-app-group-decision-transport.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/orchestration-app-layout.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/process-markers.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/reducer.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/reissue-team-retained-spec.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/review-summary-render.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/reviewer-wizard.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/reviewers-format.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/root-discovery.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/runOrchestrationShell-classify-dispatch.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/runOrchestrationShell-planner-wiring.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/runOrchestrationShell-signal.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/runOrchestrationShell.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/serialize-submissions.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/slash-router.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/slash-suggest.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/status-format.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/sticky-preference.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/task-progress.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/team-decompose-routing.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/team-decompose-types.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/team-decompose.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/team-e2e-smoke.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/tier2-reviewer-selection.test.d.ts +1 -0
- package/dist/orchestration-shell/__tests__/web-browsing.test.d.ts +1 -0
- package/dist/orchestration-shell/attachments.d.ts +152 -0
- package/dist/orchestration-shell/audit-browser.d.ts +115 -0
- package/dist/orchestration-shell/audit-runner.d.ts +59 -0
- package/dist/orchestration-shell/bracketed-paste.d.ts +26 -0
- package/dist/orchestration-shell/cli.d.ts +431 -0
- package/dist/orchestration-shell/cli.js +44191 -0
- package/dist/orchestration-shell/cohort-flag.d.ts +16 -0
- package/dist/orchestration-shell/components/AuditLogPanel.d.ts +11 -0
- package/dist/orchestration-shell/components/CodeVibeLogo.d.ts +2 -0
- package/dist/orchestration-shell/components/ConversationPane.d.ts +13 -0
- package/dist/orchestration-shell/components/GateDetailsPanel.d.ts +57 -0
- package/dist/orchestration-shell/components/GatePanelEntry.d.ts +9 -0
- package/dist/orchestration-shell/components/GatePromptEntry.d.ts +16 -0
- package/dist/orchestration-shell/components/InputBar.d.ts +55 -0
- package/dist/orchestration-shell/components/LiveProgressLine.d.ts +8 -0
- package/dist/orchestration-shell/components/MultiTrackStatusNode.d.ts +8 -0
- package/dist/orchestration-shell/components/OrchestrationApp.d.ts +129 -0
- package/dist/orchestration-shell/components/ReviewerSetupWizard.d.ts +24 -0
- package/dist/orchestration-shell/components/StatusBar.d.ts +20 -0
- package/dist/orchestration-shell/components/nodes/AdvisoryEntry.d.ts +8 -0
- package/dist/orchestration-shell/components/nodes/GateStatusNode.d.ts +8 -0
- package/dist/orchestration-shell/components/nodes/PlannerDecisionEntry.d.ts +8 -0
- package/dist/orchestration-shell/components/nodes/ReviewerQuorumStatusNode.d.ts +8 -0
- package/dist/orchestration-shell/components/nodes/SlashOutputEntry.d.ts +8 -0
- package/dist/orchestration-shell/components/nodes/SubagentEventEntry.d.ts +8 -0
- package/dist/orchestration-shell/components/nodes/UserMessageEntry.d.ts +8 -0
- package/dist/orchestration-shell/context-store.d.ts +389 -0
- package/dist/orchestration-shell/declared-test-runner.d.ts +84 -0
- package/dist/orchestration-shell/emit-shell-event.d.ts +64 -0
- package/dist/orchestration-shell/gate-decision-submit.d.ts +245 -0
- package/dist/orchestration-shell/gate-prompts.d.ts +481 -0
- package/dist/orchestration-shell/index.d.ts +712 -0
- package/dist/orchestration-shell/ink-runtime.d.ts +84 -0
- package/dist/orchestration-shell/live-region-cap.d.ts +70 -0
- package/dist/orchestration-shell/live-static-order.d.ts +22 -0
- package/dist/orchestration-shell/mode-selection.d.ts +46 -0
- package/dist/orchestration-shell/non-tty-fallback.d.ts +67 -0
- package/dist/orchestration-shell/process-markers.d.ts +12 -0
- package/dist/orchestration-shell/quorum-loop.d.ts +1900 -0
- package/dist/orchestration-shell/reducer.d.ts +8 -0
- package/dist/orchestration-shell/root-discovery.d.ts +25 -0
- package/dist/orchestration-shell/route-browse.d.ts +20 -0
- package/dist/orchestration-shell/slash-router.d.ts +64 -0
- package/dist/orchestration-shell/slash-routes/continuation.d.ts +71 -0
- package/dist/orchestration-shell/slash-routes/reviewers.d.ts +41 -0
- package/dist/orchestration-shell/slash-suggest.d.ts +29 -0
- package/dist/orchestration-shell/status-format.d.ts +59 -0
- package/dist/orchestration-shell/sticky-preference.d.ts +24 -0
- package/dist/orchestration-shell/store.d.ts +17 -0
- package/dist/orchestration-shell/task-progress.d.ts +122 -0
- package/dist/orchestration-shell/team-decompose.d.ts +196 -0
- package/dist/orchestration-shell/types.d.ts +777 -0
- package/dist/orchestration-shell/vendor/ink-parse-keypress.d.ts +42 -0
- package/dist/orchestration-shell/web/extract.d.ts +11 -0
- package/dist/orchestration-shell/web/fetch.d.ts +15 -0
- package/dist/orchestration-shell/web/ip.d.ts +26 -0
- package/dist/orchestration-shell/web/sanitize.d.ts +14 -0
- package/dist/orchestration-shell/web/search.d.ts +16 -0
- package/dist/planner/__tests__/cache-clarification-bypass.test.d.ts +1 -0
- package/dist/planner/__tests__/cache.test.d.ts +1 -0
- package/dist/planner/__tests__/client.test.d.ts +1 -0
- package/dist/planner/__tests__/health-machine-transitions.test.d.ts +1 -0
- package/dist/planner/__tests__/local-gemma.test.d.ts +1 -0
- package/dist/planner/__tests__/types-zod.test.d.ts +1 -0
- package/dist/planner/adapter.d.ts +16 -0
- package/dist/planner/cache.d.ts +35 -0
- package/dist/planner/client.d.ts +103 -0
- package/dist/planner/health-state.d.ts +24 -0
- package/dist/planner/index.d.ts +7 -0
- package/dist/planner/local-advisory.d.ts +84 -0
- package/dist/planner/local-gemma.d.ts +23 -0
- package/dist/planner/types.d.ts +123 -0
- package/dist/reviewer/__tests__/antigravity-provider.test.d.ts +1 -0
- package/dist/reviewer/__tests__/claude-provider-json.test.d.ts +1 -0
- package/dist/reviewer/__tests__/cp7-reviewer-sandbox.test.d.ts +1 -0
- package/dist/reviewer/__tests__/output-parser-classifier-helpers.test.d.ts +1 -0
- package/dist/reviewer/__tests__/verdict-classifier.test.d.ts +1 -0
- package/dist/reviewer/index.d.ts +2 -0
- package/dist/reviewer/output-parser.d.ts +48 -12
- package/dist/reviewer/provider.d.ts +107 -3
- package/dist/reviewer/providers/__tests__/failure-classifier.test.d.ts +1 -0
- package/dist/reviewer/providers/antigravity.d.ts +49 -0
- package/dist/reviewer/providers/claude.d.ts +19 -4
- package/dist/reviewer/providers/codex.d.ts +47 -5
- package/dist/reviewer/providers/failure-classifier.d.ts +26 -0
- package/dist/reviewer/providers/gemini.d.ts +5 -4
- package/dist/reviewer/registry.d.ts +5 -5
- package/dist/reviewer/subprocess.d.ts +37 -0
- package/dist/reviewer/token-usage.d.ts +32 -0
- package/dist/reviewer/types.d.ts +5 -5
- package/dist/reviewer/verdict-classifier.d.ts +62 -0
- package/dist/session/__tests__/prepare-event-timestamp.test.d.ts +1 -0
- package/dist/session/__tests__/session-resume-service-keys.test.d.ts +1 -0
- package/dist/session/index.d.ts +1 -0
- package/dist/session/prepare-event-timestamp.d.ts +30 -0
- package/dist/session/session-rekey.d.ts +40 -0
- package/dist/session/session-resume.d.ts +25 -0
- package/dist/structural-summary/__tests__/__fixtures__/fixture-helpers.d.ts +11 -0
- package/dist/structural-summary/__tests__/assembler.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/generator.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/language-detect.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/cargo.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/gomod.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/gradle.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/index.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/npm.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/podfile.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/manifest-parsers/pyproject.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/opt-in-store.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/privacy-filter.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/safe-file-read.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/user-ignore-matcher.test.d.ts +1 -0
- package/dist/structural-summary/__tests__/walker.test.d.ts +1 -0
- package/dist/structural-summary/generator.d.ts +8 -0
- package/dist/structural-summary/index.d.ts +7 -0
- package/dist/structural-summary/manifest-parsers/cargo.d.ts +3 -0
- package/dist/structural-summary/manifest-parsers/index.d.ts +7 -0
- package/dist/structural-summary/manifest-parsers/npm.d.ts +3 -0
- package/dist/structural-summary/manifest-parsers/other.d.ts +17 -0
- package/dist/structural-summary/opt-in-store.d.ts +24 -0
- package/dist/structural-summary/privacy-filter.d.ts +110 -0
- package/dist/structural-summary/safe-file-read.d.ts +11 -0
- package/dist/structural-summary/types.d.ts +215 -0
- package/dist/structural-summary/user-ignore-matcher.d.ts +9 -0
- package/dist/structural-summary/walker.d.ts +20 -0
- package/dist/substrate/__tests__/docker.test.d.ts +1 -0
- package/dist/substrate/__tests__/forwarder.test.d.ts +1 -0
- package/dist/substrate/__tests__/git-proxy.test.d.ts +1 -0
- package/dist/substrate/__tests__/sandbox-exec.test.d.ts +1 -0
- package/dist/substrate/__tests__/substrate-e2e.integration.test.d.ts +1 -0
- package/dist/substrate/command-runner.d.ts +19 -0
- package/dist/substrate/docker.d.ts +134 -0
- package/dist/substrate/errors.d.ts +33 -0
- package/dist/substrate/forwarder.d.ts +67 -0
- package/dist/substrate/git-proxy.d.ts +35 -0
- package/dist/substrate/index.d.ts +12 -0
- package/dist/substrate/relay-script.d.ts +27 -0
- package/dist/substrate/sandbox-exec.d.ts +116 -0
- package/dist/substrate/types.d.ts +218 -0
- package/dist/substrate-launch/__tests__/apikey-bootstrap.test.d.ts +1 -0
- package/dist/substrate-launch/__tests__/creditless-loop.integration.test.d.ts +1 -0
- package/dist/substrate-launch/__tests__/engage-substrate.test.d.ts +1 -0
- package/dist/substrate-launch/__tests__/fallback-ladder.test.d.ts +1 -0
- package/dist/substrate-launch/__tests__/le-env-scrub.test.d.ts +1 -0
- package/dist/substrate-launch/__tests__/sanitized-env.test.d.ts +1 -0
- package/dist/substrate-launch/apikey-bootstrap.d.ts +84 -0
- package/dist/substrate-launch/engage-substrate.d.ts +102 -0
- package/dist/substrate-launch/fallback-ladder.d.ts +49 -0
- package/dist/substrate-launch/index.d.ts +12 -0
- package/dist/substrate-launch/le-env-scrub.d.ts +77 -0
- package/dist/substrate-launch/sanitized-env.d.ts +73 -0
- package/dist/types/auth.d.ts +6 -1
- package/dist/types/events.d.ts +19 -2
- package/dist/types/reviewer.d.ts +6 -6
- package/package.json +21 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filesystem location of the cohort-flag file (`~/.codevibe/cohort-flags.json`).
|
|
3
|
+
* Exposed as a function so test code can monkey-patch via env override.
|
|
4
|
+
*/
|
|
5
|
+
export declare function cohortFlagFilePath(): string;
|
|
6
|
+
/**
|
|
7
|
+
* Reads the named cohort flag for the given session/user. Returns
|
|
8
|
+
* `false` on every failure mode (file missing, malformed JSON, flag
|
|
9
|
+
* unset, non-boolean value). This is fail-closed by design — per §3
|
|
10
|
+
* H6 mitigation, the cohort gate MUST default off until Phase 4 flips
|
|
11
|
+
* the flag.
|
|
12
|
+
*
|
|
13
|
+
* `sessionId` is accepted in the signature for future per-session
|
|
14
|
+
* cohort overrides; CP-1.a ignores it.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getCohortFlag(name: string, _sessionId: string): Promise<boolean>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type AuditBrowserModel } from '../audit-browser';
|
|
3
|
+
export interface AuditLogPanelProps {
|
|
4
|
+
model: AuditBrowserModel;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Render the per-task audit browser. Newest-first. An empty chain renders the
|
|
8
|
+
* neutral `No audit entries yet.` line; otherwise the titled entry list.
|
|
9
|
+
*/
|
|
10
|
+
export declare function AuditLogPanel(props: AuditLogPanelProps): React.ReactElement;
|
|
11
|
+
export default AuditLogPanel;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../types';
|
|
3
|
+
export interface ConversationPaneProps {
|
|
4
|
+
entries: ConversationEntry[];
|
|
5
|
+
/**
|
|
6
|
+
* [#469 gate-pin] `taskId → "Track N"` map (from `state.team`) so the pinned
|
|
7
|
+
* `gate-prompt` control can label WHICH team track is awaiting the user's
|
|
8
|
+
* decision. `null`/absent for single-implementor / Companion sessions.
|
|
9
|
+
*/
|
|
10
|
+
trackLabelByTaskId?: Map<string, string> | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function renderConversationEntry(entry: ConversationEntry, trackLabelByTaskId?: Map<string, string> | null): React.ReactElement;
|
|
13
|
+
export declare function ConversationPane(props: ConversationPaneProps): React.ReactElement;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../types';
|
|
3
|
+
import { type GatePromptEnvelope, type ReviewSummaryPanelModel } from '../gate-prompts';
|
|
4
|
+
export interface GateDetailsPanelProps {
|
|
5
|
+
entry: Extract<ConversationEntry, {
|
|
6
|
+
kind: 'gate-prompt';
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* [TUI re-render fix #469] Render ONLY the envelope-derived READ-ONLY context
|
|
11
|
+
* (headline / reason / timeline / cascade / reviewers / unavailable line) for a
|
|
12
|
+
* gate prompt. Extracted from `GateDetailsPanel` so the same byte-identical
|
|
13
|
+
* context block can be rendered into the write-once `<Static>` `gate-panel`
|
|
14
|
+
* snapshot (variant 'prompt') without dragging the live review-summary along.
|
|
15
|
+
* Returns `null` when there is no context to show (B.9 backward-compat:
|
|
16
|
+
* older-engine events carry none of these fields).
|
|
17
|
+
*
|
|
18
|
+
* PURE: receives the already-decrypted `envelope`; no crypto, no I/O.
|
|
19
|
+
*/
|
|
20
|
+
export declare function GateContextPanel(props: {
|
|
21
|
+
envelope: GatePromptEnvelope;
|
|
22
|
+
}): React.ReactElement | null;
|
|
23
|
+
/**
|
|
24
|
+
* [TUI re-render fix #469] Render ONLY the PHASE-CP-1-F.1 Part B per-round
|
|
25
|
+
* review summary block. Extracted from `GateDetailsPanel` so the same
|
|
26
|
+
* byte-identical block can be rendered into the write-once `<Static>`
|
|
27
|
+
* `gate-panel` snapshot (variant 'summary'). Returns `null` when there are no
|
|
28
|
+
* rounds (so the caller emits no empty Static block).
|
|
29
|
+
*
|
|
30
|
+
* Renders proposal + per-seat verdict/reasoning/suggested-changes + revise
|
|
31
|
+
* notes for EACH round (proposal gate rounds 0..N, the auto-revisions). The
|
|
32
|
+
* single-round happy path renders one round; revise rounds render the revised
|
|
33
|
+
* proposal for the next round. PURE — receives the already-decrypted model.
|
|
34
|
+
*
|
|
35
|
+
* NB: the leading `marginTop: 1` on the header preserves the spacer row that
|
|
36
|
+
* separated the summary from the context block when both were one flat column
|
|
37
|
+
* (so `GateContextPanel + renderReviewSummarySection` composes byte-identically
|
|
38
|
+
* to the original single-array render).
|
|
39
|
+
*/
|
|
40
|
+
export declare function renderReviewSummarySection(reviewSummary: ReviewSummaryPanelModel): React.ReactElement | null;
|
|
41
|
+
/**
|
|
42
|
+
* Render the GateDetailsPanel for a gate-prompt entry. Returns `null` when
|
|
43
|
+
* there is no context to show (no headline, no reason, no timeline, no
|
|
44
|
+
* reviewers, no unavailable line) AND no review summary — degrades to nothing
|
|
45
|
+
* rather than an empty box (B.9 backward-compat: older-engine events carry none
|
|
46
|
+
* of these fields).
|
|
47
|
+
*
|
|
48
|
+
* [TUI re-render fix #469] Now COMPOSED from the two extracted pieces
|
|
49
|
+
* (`GateContextPanel` + `renderReviewSummarySection`) so the live entry, the
|
|
50
|
+
* Static `gate-panel` prompt, and the Static `gate-panel` summary all render
|
|
51
|
+
* from the SAME source. Output is byte-identical to the pre-split single-array
|
|
52
|
+
* render: an outer column Box flows the context column above the summary column
|
|
53
|
+
* exactly as one flat column did, and the summary header keeps its `marginTop:
|
|
54
|
+
* 1` spacer.
|
|
55
|
+
*/
|
|
56
|
+
export declare function GateDetailsPanel(props: GateDetailsPanelProps): React.ReactElement | null;
|
|
57
|
+
export default GateDetailsPanel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../types';
|
|
3
|
+
export interface GatePanelEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'gate-panel';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function GatePanelEntry(props: GatePanelEntryProps): React.ReactElement | null;
|
|
9
|
+
export default GatePanelEntry;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../types';
|
|
3
|
+
export interface GatePromptEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'gate-prompt';
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* [#469 gate-pin] Best-effort "Track N" label for the gate's owning team
|
|
9
|
+
* track, derived by `<OrchestrationApp>` from `state.team` (taskId → index).
|
|
10
|
+
* Absent for single-implementor / Companion sessions (no team) — the header
|
|
11
|
+
* then omits the track suffix.
|
|
12
|
+
*/
|
|
13
|
+
trackLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function GatePromptEntry(props: GatePromptEntryProps): React.ReactElement;
|
|
16
|
+
export default GatePromptEntry;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SlashCommandInfo } from '../slash-router';
|
|
3
|
+
/**
|
|
4
|
+
* Worst-case dropdown height in rows: the window (MAX_SUGGESTIONS) + a
|
|
5
|
+
* `↑ N more` indicator + a `↓ N more` indicator. Exported so `<OrchestrationApp>`
|
|
6
|
+
* can reserve exactly this many rows in the live-region height cap while the
|
|
7
|
+
* dropdown can be open (Stage-2 — keeps the dropdown from re-triggering #469).
|
|
8
|
+
*/
|
|
9
|
+
export declare const DROPDOWN_MAX_ROWS: number;
|
|
10
|
+
/**
|
|
11
|
+
* Gate-prompt-aware input modes per PHASE-CP-8-MIN-DESIGN.md §7
|
|
12
|
+
* + #C8M-5. `maxOption: number` (NOT a `2 | 5` literal union) per
|
|
13
|
+
* #C8M-1 server-derived purity — the parent derives it from
|
|
14
|
+
* `envelope.options.length` at the active gate-prompt entry.
|
|
15
|
+
*/
|
|
16
|
+
export type GatePromptMode = {
|
|
17
|
+
kind: 'awaiting-number';
|
|
18
|
+
maxOption: number;
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'awaiting-notes';
|
|
21
|
+
decisionDraft: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'submitting';
|
|
24
|
+
} | null;
|
|
25
|
+
/**
|
|
26
|
+
* Sentinel string emitted via `onSubmit` when the user types the exact
|
|
27
|
+
* literal `/cancel` (case-sensitive) in `awaiting-notes` mode. The parent
|
|
28
|
+
* (`<OrchestrationApp>`) MUST intercept this sentinel and dispatch
|
|
29
|
+
* `GATE_PROMPT_NOTES_CANCELLED` instead of treating the text as notes
|
|
30
|
+
* plaintext. Without this sentinel, `/cancel` would be submitted AS the
|
|
31
|
+
* notes string to `applyUserDecision`, destroying user intent
|
|
32
|
+
* (Stage 2 r2 Codex NEW-HIGH-1).
|
|
33
|
+
*/
|
|
34
|
+
export declare const GATE_PROMPT_NOTES_CANCEL_SENTINEL = "__GATE_PROMPT_NOTES_CANCEL__";
|
|
35
|
+
export interface InputBarProps {
|
|
36
|
+
onSubmit: (text: string, images?: string[]) => void;
|
|
37
|
+
/** Optional placeholder shown when value is empty. */
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
/** Initial value (used for history recall). */
|
|
40
|
+
initialValue?: string;
|
|
41
|
+
/**
|
|
42
|
+
* CP-8 min Wave 1B. When non-null, restricts/disables input per the
|
|
43
|
+
* gate-prompt mode; when null, normal text-input behavior. See module
|
|
44
|
+
* docstring for the four states.
|
|
45
|
+
*/
|
|
46
|
+
gatePromptMode?: GatePromptMode;
|
|
47
|
+
/**
|
|
48
|
+
* TUI redesign (2026-06-29) — the tier-filtered slash catalog for
|
|
49
|
+
* autocomplete (built by the parent via `listSlashCommands(tier)`). Absent /
|
|
50
|
+
* empty (CP-1.a callers, or the parent suppressing the dropdown while a task
|
|
51
|
+
* streams / a gate is pinned) → no dropdown.
|
|
52
|
+
*/
|
|
53
|
+
slashCommands?: SlashCommandInfo[];
|
|
54
|
+
}
|
|
55
|
+
export declare function InputBar(props: InputBarProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LiveProgress } from '../types';
|
|
3
|
+
export interface LiveProgressLineProps {
|
|
4
|
+
progress: LiveProgress | null;
|
|
5
|
+
/** Test seam; otherwise derived from the live terminal width, then 80 (mirrors StatusBar). */
|
|
6
|
+
columns?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function LiveProgressLine(props: LiveProgressLineProps): React.ReactElement | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TeamState } from '../types';
|
|
3
|
+
export interface MultiTrackStatusNodeProps {
|
|
4
|
+
team: TeamState;
|
|
5
|
+
/** [P1b] Test seam; otherwise derived from live stdout, then 80 (mirrors StatusBar). */
|
|
6
|
+
columns?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function MultiTrackStatusNode(props: MultiTrackStatusNodeProps): React.ReactElement;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OrchestrationStore } from '../store';
|
|
3
|
+
import { ConversationEntry, PostDecisionAction, Tier } from '../types';
|
|
4
|
+
import type { PlannerRuntimeKind } from '../status-format';
|
|
5
|
+
import type { UpdateReviewerPolicyInput, UserReviewerPolicySnapshot } from '../../types/reviewer';
|
|
6
|
+
import { type ApplyUserDecisionClient as SharedApplyUserDecisionClient, type GroupDecisionSubmitDeps } from '../gate-decision-submit';
|
|
7
|
+
/**
|
|
8
|
+
* Minimal SDK contract for the applyUserDecision wire. Structurally
|
|
9
|
+
* compatible with the full `AppSyncClient.applyUserDecision` signature
|
|
10
|
+
* — keeps the orchestration shell decoupled from the heavier AppSync
|
|
11
|
+
* surface (tests can inject a stub).
|
|
12
|
+
*
|
|
13
|
+
* Audited-path fix (Fix 8): this is now a re-export of the shared
|
|
14
|
+
* `gate-decision-submit` contract so the TTY + non-TTY surfaces never drift.
|
|
15
|
+
*/
|
|
16
|
+
export type ApplyUserDecisionClient = SharedApplyUserDecisionClient;
|
|
17
|
+
/**
|
|
18
|
+
* Minimal SDK contract for the `/reviewer-setup` wizard's save step. Structurally
|
|
19
|
+
* compatible with `AppSyncClient.updateReviewerPolicy`. Optional on the App
|
|
20
|
+
* (CP-1.a / Companion / test callers never open the wizard); when the wizard IS
|
|
21
|
+
* open but this is absent, the save fails closed with an advisory instead of
|
|
22
|
+
* throwing (the entrypoint always provides the real client).
|
|
23
|
+
*/
|
|
24
|
+
export interface ReviewerPolicyClient {
|
|
25
|
+
updateReviewerPolicy(input: UpdateReviewerPolicyInput): Promise<UserReviewerPolicySnapshot>;
|
|
26
|
+
}
|
|
27
|
+
export interface OrchestrationAppProps {
|
|
28
|
+
store: OrchestrationStore;
|
|
29
|
+
tier: Tier;
|
|
30
|
+
/**
|
|
31
|
+
* TUI redesign (2026-06-29) — the boot-time planner runtime kind + display
|
|
32
|
+
* label, threaded from `RunOrchestrationShellArgs` for the status-bar planner
|
|
33
|
+
* badge. Absent (CP-1.a callers / tests) → treated as `hosted` (no badge).
|
|
34
|
+
*/
|
|
35
|
+
plannerRuntimeKind?: PlannerRuntimeKind;
|
|
36
|
+
plannerLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* TUI redesign (2026-06-29) — the PLAINTEXT cwd for the status bar, threaded
|
|
39
|
+
* from the shell entry (process.cwd()). Sourced here rather than from
|
|
40
|
+
* `state.session.projectPath`, which is AES-GCM-encrypted at rest and never
|
|
41
|
+
* decrypted (Stage-1 HIGH — that would render ciphertext). Absent (tests /
|
|
42
|
+
* CP-1.a callers) → falls back to the live process.cwd().
|
|
43
|
+
*/
|
|
44
|
+
cwd?: string;
|
|
45
|
+
/** Hook called when `<InputBar>` submits text AND there is no active
|
|
46
|
+
* gate-prompt. The host wires this to the slash router / planner
|
|
47
|
+
* classifier. Gate-prompt submits are intercepted internally per
|
|
48
|
+
* #C8M-11 and never reach `onUserInput`. `images` (IMAGE-ATTACHMENT-DESIGN.md
|
|
49
|
+
* §13 Option 2) carries the resolved path(s) of `[Image #N]` input chips. */
|
|
50
|
+
onUserInput: (text: string, images?: string[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
* CP-8 min Stage 1 R1 closure + Stage 2 r1 Codex HIGH-1 (REQUIRED). The
|
|
53
|
+
* desktop-side AppSync transport surface (codevibe-core's own
|
|
54
|
+
* AppSyncClient — see #C8M-6 deviation). Required so production gate
|
|
55
|
+
* submits cannot silently fail-closed at the SDK edge with "AppSync
|
|
56
|
+
* client not configured". The shell entry (`runOrchestrationShell`)
|
|
57
|
+
* always has an authenticated client by the
|
|
58
|
+
* `RunOrchestrationShellArgs` contract; tests inject a stub.
|
|
59
|
+
* Future omissions will fail TypeScript compile rather than break at
|
|
60
|
+
* runtime.
|
|
61
|
+
*/
|
|
62
|
+
appsyncClient: ApplyUserDecisionClient;
|
|
63
|
+
/**
|
|
64
|
+
* Session-key resolver invoked just-in-time when a gate-prompt submit
|
|
65
|
+
* includes notes. Returns the base64 session key for the caller's
|
|
66
|
+
* session, or `null` if the session is not E2E-encrypted.
|
|
67
|
+
*
|
|
68
|
+
* Stage 2 r2 Codex NEW-HIGH-2: this prop is now REQUIRED (non-optional)
|
|
69
|
+
* because the underlying `AppSyncClient.applyUserDecision` enforces
|
|
70
|
+
* `sessionKeyBase64 !== undefined` whenever `notes` is supplied. Without
|
|
71
|
+
* the resolver, production Path B `_WITH_NOTES` submits throw at the
|
|
72
|
+
* SDK edge with "sessionKeyBase64 is required when notes are
|
|
73
|
+
* supplied" — masked by Tests 21/22 which stub the resolver. Production
|
|
74
|
+
* callers (`runOrchestrationShell`) bind this to
|
|
75
|
+
* `keychainManager.getSessionKey(sessionId)`. Tests inject a stub.
|
|
76
|
+
*
|
|
77
|
+
* If the resolver returns `null` AND `notes` are present, the submit
|
|
78
|
+
* handler dispatches `GATE_PROMPT_SUBMIT_FAILED` with a locked error
|
|
79
|
+
* message — it MUST NOT silently submit unencrypted notes.
|
|
80
|
+
*/
|
|
81
|
+
getSessionKey: (sessionId: string) => Promise<string | null>;
|
|
82
|
+
/**
|
|
83
|
+
* CP-1.f execute-first (D5) — invoked after a gate-prompt `applyUserDecision`
|
|
84
|
+
* resolves, with the engine's `postAction`. The shell wires it to the
|
|
85
|
+
* QuorumLoop so a NON-authorize terminal (`abort_task` / `restart_proposal` /
|
|
86
|
+
* `terminate_gate`) DISCARDS the task's shadow. The APPROVE path
|
|
87
|
+
* (`final_approval_resolved`) is handled by the `TaskAuthorized` Class-B edge
|
|
88
|
+
* (promote, #PR-3) — NOT here — and a revise (`open_new_round`) KEEPS the
|
|
89
|
+
* shadow. ABSENT (tests / non-loop sessions) → no-op (back-compat).
|
|
90
|
+
*/
|
|
91
|
+
onTerminalDecision?: (taskId: string, postAction: PostDecisionAction, expectedShadow?: unknown) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Instance-pinned discard (live dogfood race 2026-06-11, option-4 "Reject and
|
|
94
|
+
* restart"): resolves the live shadow instance for a task. Read at the TOP of
|
|
95
|
+
* `submitGateDecision` (before the SDK await) so the discard pins to the OLD
|
|
96
|
+
* (rejected) shadow, not the restart's fresh one. ABSENT → no capture (no-op).
|
|
97
|
+
*/
|
|
98
|
+
captureShadow?: (taskId: string) => unknown;
|
|
99
|
+
/**
|
|
100
|
+
* PHASE-589/469 W3.2 — the two-phase group-escalation decision transport.
|
|
101
|
+
* Present ONLY for a TEAM session (built in `cli.ts`, completed in
|
|
102
|
+
* `runOrchestrationShell` as `gateDecisionDeps.groupDecision` with this shell's
|
|
103
|
+
* store merged in). Threaded straight into the SHARED `routeGatePromptInput`
|
|
104
|
+
* deps so a `task_group_halted` 5-option group-escalation prompt resolves
|
|
105
|
+
* through `submitGroupDecision` (CLAIM→revert→COMMIT) on the TTY surface — NOT
|
|
106
|
+
* just the non-TTY fallback. Without it a TTY group-escalation submit
|
|
107
|
+
* fail-closes at the SDK edge with "Team decision transport not configured"
|
|
108
|
+
* (live dogfood). ABSENT (single-impl / Companion / tests) → a group prompt can
|
|
109
|
+
* never be synthesized, so this is never consulted. The optional spread at the
|
|
110
|
+
* call site keeps the deps object byte-identical to a non-team session when
|
|
111
|
+
* absent.
|
|
112
|
+
*/
|
|
113
|
+
groupDecision?: GroupDecisionSubmitDeps;
|
|
114
|
+
/**
|
|
115
|
+
* `/reviewer-setup` wizard (2026-06-29) — the SDK surface the wizard's save
|
|
116
|
+
* step writes through. Present for real shell sessions (`runOrchestrationShell`
|
|
117
|
+
* binds `args.appsyncClient`); absent for CP-1.a / Companion / test callers,
|
|
118
|
+
* which never dispatch `REVIEWER_WIZARD_OPEN`. When absent AND a wizard is
|
|
119
|
+
* somehow open, the save fails closed with an advisory.
|
|
120
|
+
*/
|
|
121
|
+
reviewerPolicyClient?: ReviewerPolicyClient;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* A finalized entry STARTS a user turn iff it's a typed prompt or a real
|
|
125
|
+
* `/slash` command. Exported for unit testing. Synthetic non-`/` slash-outputs
|
|
126
|
+
* (e.g. `planner-error`, a natural-language failure RESPONSE) are NOT turn-starts.
|
|
127
|
+
*/
|
|
128
|
+
export declare function isTurnStart(entry: ConversationEntry): boolean;
|
|
129
|
+
export declare function OrchestrationApp(props: OrchestrationAppProps): React.ReactElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ReviewerWizardState } from '../types';
|
|
3
|
+
import { type UpdateReviewerPolicyInput } from '../../types/reviewer';
|
|
4
|
+
/**
|
|
5
|
+
* Worst-case wizard height in rows: rounded border (2) + title (1) + current
|
|
6
|
+
* context (1) + question (1) + the bounded role list (ROLE_LIST_LIMIT) + hint
|
|
7
|
+
* (1). Exported so `<OrchestrationApp>` reserves this in the #469 live-region
|
|
8
|
+
* height cap while a wizard is open (it renders in the InputBar's slot, so the
|
|
9
|
+
* cap must budget for the wizard, not the shorter InputBar).
|
|
10
|
+
*/
|
|
11
|
+
export declare const WIZARD_MAX_ROWS: number;
|
|
12
|
+
export interface ReviewerSetupWizardProps {
|
|
13
|
+
wizard: ReviewerWizardState;
|
|
14
|
+
/**
|
|
15
|
+
* Persist the chosen policy. The parent owns the network write + result
|
|
16
|
+
* advisory + `REVIEWER_WIZARD_CLOSE` (which unmounts this component). Called
|
|
17
|
+
* exactly once per wizard run; the component shows a "Saving…" step until the
|
|
18
|
+
* parent closes the modal.
|
|
19
|
+
*/
|
|
20
|
+
onSubmit: (input: UpdateReviewerPolicyInput) => void;
|
|
21
|
+
/** Abandon the wizard with NO policy change (Esc / explicit Cancel). */
|
|
22
|
+
onCancel: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function ReviewerSetupWizard(props: ReviewerSetupWizardProps): React.ReactElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Tier } from '../types';
|
|
3
|
+
import { type PlannerRuntimeKind } from '../status-format';
|
|
4
|
+
export interface StatusBarProps {
|
|
5
|
+
/**
|
|
6
|
+
* Current working directory — the PLAINTEXT cwd threaded from the shell entry
|
|
7
|
+
* (process.cwd()). NOTE: do NOT source this from `session.projectPath`, which
|
|
8
|
+
* is AES-GCM-encrypted at rest in E2E sessions and is never decrypted (Stage-1
|
|
9
|
+
* HIGH — that would render ciphertext as the path).
|
|
10
|
+
*/
|
|
11
|
+
cwd: string;
|
|
12
|
+
tier: Tier;
|
|
13
|
+
/** Boot-time planner runtime kind (NOT a live probe). */
|
|
14
|
+
plannerRuntimeKind: PlannerRuntimeKind;
|
|
15
|
+
/** Display label for the local model (e.g. `gemma4`). */
|
|
16
|
+
plannerLabel: string;
|
|
17
|
+
/** Test seam — overrides the terminal width used for cwd truncation. */
|
|
18
|
+
columns?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function StatusBar(props: StatusBarProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface AdvisoryEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'advisory';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function AdvisoryEntry(props: AdvisoryEntryProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface GateStatusNodeProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'gate-status-node';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function GateStatusNode(props: GateStatusNodeProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface PlannerDecisionEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'planner-decision';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function PlannerDecisionEntry(props: PlannerDecisionEntryProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface ReviewerQuorumStatusNodeProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'reviewer-status-node';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function ReviewerQuorumStatusNode(props: ReviewerQuorumStatusNodeProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface SlashOutputEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'slash-output';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function SlashOutputEntry(props: SlashOutputEntryProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface SubagentEventEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'subagent-event';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function SubagentEventEntry(props: SubagentEventEntryProps): React.ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ConversationEntry } from '../../types';
|
|
3
|
+
export interface UserMessageEntryProps {
|
|
4
|
+
entry: Extract<ConversationEntry, {
|
|
5
|
+
kind: 'user-message';
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function UserMessageEntry(props: UserMessageEntryProps): React.ReactElement;
|