@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,245 @@
|
|
|
1
|
+
import type { OrchestrationStore } from './store';
|
|
2
|
+
import type { ConversationEntry, PostDecisionAction } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal SDK contract for the `applyUserDecision` wire. Structurally
|
|
5
|
+
* compatible with the full `AppSyncClient.applyUserDecision` signature — keeps
|
|
6
|
+
* the orchestration shell decoupled from the heavier AppSync surface (tests can
|
|
7
|
+
* inject a stub). Mirrors `ApplyUserDecisionClient` in `<OrchestrationApp>`.
|
|
8
|
+
*/
|
|
9
|
+
export interface ApplyUserDecisionClient {
|
|
10
|
+
applyUserDecision(input: {
|
|
11
|
+
gateId: string;
|
|
12
|
+
taskId: string;
|
|
13
|
+
sessionId: string;
|
|
14
|
+
currentRound: number;
|
|
15
|
+
decision: string;
|
|
16
|
+
notes?: string;
|
|
17
|
+
}, sessionKeyBase64?: string): Promise<{
|
|
18
|
+
decision: string;
|
|
19
|
+
postAction: PostDecisionAction;
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
/** Dependencies common to both the TTY + non-TTY gate-resolution paths. */
|
|
23
|
+
export interface GateDecisionSubmitDeps {
|
|
24
|
+
store: OrchestrationStore;
|
|
25
|
+
/** The desktop AppSync transport (or a stub in tests). */
|
|
26
|
+
appsyncClient: ApplyUserDecisionClient;
|
|
27
|
+
/** Just-in-time session-key resolver (only consulted when notes are present). */
|
|
28
|
+
getSessionKey: (sessionId: string) => Promise<string | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Optional — notified after a successful `applyUserDecision` with the engine's
|
|
31
|
+
* `postAction` (the QuorumLoop wires it to discard the shadow on a
|
|
32
|
+
* non-authorize terminal AND flip the resolved track's team render-terminal).
|
|
33
|
+
* ABSENT → no-op.
|
|
34
|
+
*
|
|
35
|
+
* #607 RESIDUAL #2 — the FIRST arg is the `taskId` of the GATE being resolved
|
|
36
|
+
* (`entry.envelope.taskId`), NOT the loop's global `activeTask`. For a
|
|
37
|
+
* multi-track team the resolved gate is NOT necessarily the loop's active
|
|
38
|
+
* task, so `reportTeamTrackUserResolved` MUST key on the resolved gate's
|
|
39
|
+
* taskId or it flips the WRONG track / no-ops (the user-Approved track stays
|
|
40
|
+
* `InFlight`). The shell closure threads this through to the loop.
|
|
41
|
+
*
|
|
42
|
+
* `expectedShadow` is the shadow INSTANCE captured at decision time (see
|
|
43
|
+
* `captureShadow`) so the discard is instance-pinned: a RESTART reuses the same
|
|
44
|
+
* taskId and the engine emits a fresh round-0 GATE_DISPATCH that can replace the
|
|
45
|
+
* task's mapped shadow before this fires. Pinning to the captured instance stops
|
|
46
|
+
* the discard from destroying the restart's NEW shadow (live dogfood race
|
|
47
|
+
* 2026-06-11, option-4 "Reject and restart"). `undefined` when no shadow was
|
|
48
|
+
* mapped at decision time (or no loop is wired).
|
|
49
|
+
*/
|
|
50
|
+
onTerminalDecision?: (taskId: string, postAction: PostDecisionAction, expectedShadow?: unknown) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Optional — resolves the live shadow INSTANCE for a task at decision time. Read
|
|
53
|
+
* ONCE at the TOP of `submitGateDecision` (BEFORE the `applyUserDecision` SDK
|
|
54
|
+
* await) so the captured instance is the OLD (rejected) shadow, not whatever a
|
|
55
|
+
* racing restart dispatch may have swapped into the map by the time
|
|
56
|
+
* `onTerminalDecision` fires. The QuorumLoop binds this to `shadowForTask`.
|
|
57
|
+
* Returns an opaque handle threaded straight back into `onTerminalDecision`.
|
|
58
|
+
*/
|
|
59
|
+
captureShadow?: (taskId: string) => unknown;
|
|
60
|
+
/**
|
|
61
|
+
* PHASE-589/469 W3.2 — the two-phase group-escalation decision deps. Present
|
|
62
|
+
* ONLY for a TEAM session (built in `cli.ts` alongside the team LE). When a
|
|
63
|
+
* resolved gate-prompt entry carries the `groupEscalation` marker (a desktop-
|
|
64
|
+
* synthesized team halt prompt, NOT an engine per-track gate),
|
|
65
|
+
* `routeGatePromptInput` routes its resolution through `submitGroupDecision`
|
|
66
|
+
* (CLAIM→revert→COMMIT) using these deps instead of the per-track
|
|
67
|
+
* `applyUserDecision`. ABSENT (single-impl / tests) → a group prompt can never
|
|
68
|
+
* appear, so this is never consulted.
|
|
69
|
+
*/
|
|
70
|
+
groupDecision?: GroupDecisionSubmitDeps;
|
|
71
|
+
}
|
|
72
|
+
/** The active unfinalized gate-prompt conversation entry. */
|
|
73
|
+
type GatePromptEntry = Extract<ConversationEntry, {
|
|
74
|
+
kind: 'gate-prompt';
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* §5.1 + #C8M-11 active-gate-prompt scan. Tail-to-head walk for the first
|
|
78
|
+
* `kind:'gate-prompt'` entry with `final === false`. Pure; safe to call from a
|
|
79
|
+
* render path. Returns the entry verbatim so callers can pattern-match the
|
|
80
|
+
* discriminated union directly. (Shared so the TTY component + non-TTY loop use
|
|
81
|
+
* the identical scan.)
|
|
82
|
+
*/
|
|
83
|
+
export declare function findActiveGatePromptEntry(conversation: ReadonlyArray<ConversationEntry>): GatePromptEntry | null;
|
|
84
|
+
/**
|
|
85
|
+
* Submit a gate decision: dispatch SUBMIT_STARTED, fire the SDK, dispatch
|
|
86
|
+
* RESOLVED on success (and notify `onTerminalDecision`) or SUBMIT_FAILED on
|
|
87
|
+
* error. Verbatim port of the `<OrchestrationApp>` `submitDecision` useCallback
|
|
88
|
+
* so both surfaces share one implementation. NEVER throws (every failure becomes
|
|
89
|
+
* a SUBMIT_FAILED — or, for a terminal already-resolved error, a
|
|
90
|
+
* GATE_PROMPT_RESOLVED_EXTERNALLY — dispatch).
|
|
91
|
+
*/
|
|
92
|
+
export declare function submitGateDecision(deps: GateDecisionSubmitDeps, promptEntryId: string, payload: {
|
|
93
|
+
gateId: string;
|
|
94
|
+
taskId: string;
|
|
95
|
+
sessionId: string;
|
|
96
|
+
currentRound: number;
|
|
97
|
+
decision: string;
|
|
98
|
+
notes?: string;
|
|
99
|
+
}): Promise<void>;
|
|
100
|
+
/** The closed 5-option group-escalation decision labels (mirror gate-prompts). */
|
|
101
|
+
export type GroupDecisionLabel = 'ACCEPT' | 'ACCEPT_WITH_NOTES' | 'REJECT_WITH_NOTES' | 'REJECT_RESTART' | 'ABORT_TASK';
|
|
102
|
+
/** Minimal SDK contract for the two-phase `claimGroupDecision` wire. */
|
|
103
|
+
export interface ClaimGroupDecisionClient {
|
|
104
|
+
claimGroupDecision(input: {
|
|
105
|
+
taskGroupId: string;
|
|
106
|
+
sessionId: string;
|
|
107
|
+
phase: 'claim' | 'commit';
|
|
108
|
+
decision: GroupDecisionLabel;
|
|
109
|
+
verdictIdempotencyKey: string;
|
|
110
|
+
claimToken?: string;
|
|
111
|
+
notes?: string;
|
|
112
|
+
}, sessionKeyBase64?: string): Promise<{
|
|
113
|
+
phase: 'claimed' | 'committed' | 'already_claimed' | 'already_committed';
|
|
114
|
+
decision: string;
|
|
115
|
+
claimToken: string;
|
|
116
|
+
groupStatus?: string;
|
|
117
|
+
}>;
|
|
118
|
+
}
|
|
119
|
+
/** The result the desktop surfaces after a group decision completes. */
|
|
120
|
+
export interface GroupDecisionResult {
|
|
121
|
+
/** The terminal phase the engine recorded. */
|
|
122
|
+
phase: 'committed' | 'already_committed';
|
|
123
|
+
decision: GroupDecisionLabel;
|
|
124
|
+
/** Reject-family only — the revert outcome (clean-where-safe + surface). */
|
|
125
|
+
revert?: {
|
|
126
|
+
reverted: string[];
|
|
127
|
+
alreadyReverted: string[];
|
|
128
|
+
conflicts: string[];
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/** Dependencies for the two-phase group-escalation decision. */
|
|
132
|
+
export interface GroupDecisionSubmitDeps {
|
|
133
|
+
store: OrchestrationStore;
|
|
134
|
+
/** The two-phase group-decision transport (or a stub in tests). */
|
|
135
|
+
claimClient: ClaimGroupDecisionClient;
|
|
136
|
+
/** Session-key resolver (consulted only when notes are present). */
|
|
137
|
+
getSessionKey: (sessionId: string) => Promise<string | null>;
|
|
138
|
+
/**
|
|
139
|
+
* The reject-family workspace side-effect — revert the group's applied tracks
|
|
140
|
+
* (clean-where-safe + surface). The CLAIM→revert→COMMIT ordering pins the
|
|
141
|
+
* revert BETWEEN the CLAIM lock and the terminal COMMIT (LOCK #589-J): no
|
|
142
|
+
* terminal decision is recorded before the side-effect finishes. ABSENT (tests
|
|
143
|
+
* / accept-only) → no workspace effect.
|
|
144
|
+
*/
|
|
145
|
+
revertGroup?: (taskGroupId: string) => Promise<{
|
|
146
|
+
reverted: string[];
|
|
147
|
+
alreadyReverted: string[];
|
|
148
|
+
conflicts: string[];
|
|
149
|
+
}>;
|
|
150
|
+
/**
|
|
151
|
+
* Mark the group's durable manifest ACCEPTED (the GC predicate flips). Called
|
|
152
|
+
* after an accept-family COMMIT. ABSENT → no-op (tests).
|
|
153
|
+
*/
|
|
154
|
+
markAccepted?: (taskGroupId: string) => Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* HIGH-1 / LOCK #589-J — persist the CLAIMED-but-not-COMMITted decision to the
|
|
157
|
+
* durable record, called IMMEDIATELY after the CLAIM phase mints `claimToken`
|
|
158
|
+
* and BEFORE the revert side-effect runs. This is the durable marker a startup
|
|
159
|
+
* reconcile uses to resume the revert + drive the COMMIT after a CLAIM-crash
|
|
160
|
+
* (the in-memory token is lost on crash; the persisted one is the recovery
|
|
161
|
+
* path). ABSENT → not persisted (tests that don't exercise crash recovery).
|
|
162
|
+
*/
|
|
163
|
+
persistPendingDecision?: (taskGroupId: string, pending: {
|
|
164
|
+
decision: GroupDecisionLabel;
|
|
165
|
+
claimToken: string;
|
|
166
|
+
notes?: string;
|
|
167
|
+
}) => Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* HIGH-1 — clear the persisted pending decision after the terminal COMMIT lands
|
|
170
|
+
* (so a later reconcile never re-drives it). ABSENT → no-op (tests).
|
|
171
|
+
*/
|
|
172
|
+
clearPendingDecision?: (taskGroupId: string) => Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* Drive the per-track render flip through the SAME `emitGroupConvergence`
|
|
175
|
+
* chokepoint (D2): accept-family → tracks stay/flip `Passed`; reject-family →
|
|
176
|
+
* tracks flip `Failed`/reverted + the group resolves. ABSENT → render-less
|
|
177
|
+
* (tests). This is what closes the "track stays InFlight after abort_task" gap.
|
|
178
|
+
*/
|
|
179
|
+
driveGroupConvergence?: (taskGroupId: string, outcome: string) => Promise<void>;
|
|
180
|
+
/**
|
|
181
|
+
* REJECT_RESTART only — the desktop re-issues the WHOLE team from its OWN
|
|
182
|
+
* retained ORIGINAL `/team` launch spec (work-items + briefs; the engine retains
|
|
183
|
+
* nothing, §5 RISK 1 / RESIDUAL 1). The active orchestration `store` is passed in
|
|
184
|
+
* (this dep's heavy half is built in `cli.ts` BEFORE `runOrchestrationShell`
|
|
185
|
+
* creates the store, so the store is threaded at call time from THIS deps'
|
|
186
|
+
* `store`). ABSENT → the restart degrades to a plain terminal-reject (the user
|
|
187
|
+
* re-runs `/team`). A THROW surfaces the "re-run /team" advisory.
|
|
188
|
+
*/
|
|
189
|
+
reissueTeam?: (taskGroupId: string, store: OrchestrationStore) => Promise<void>;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* PHASE-589/469 W3.2 — resolve the group 5-option escalation via the two-phase
|
|
193
|
+
* CLAIM → (desktop side-effect) → COMMIT (LOCK #589-J). The desktop OWNS the
|
|
194
|
+
* workspace regardless of which surface initiated, so it runs the revert here.
|
|
195
|
+
*
|
|
196
|
+
* Ordering (closes the cross-surface race): (1) CLAIM atomically locks the gate;
|
|
197
|
+
* (2) for a reject-family decision RUN THE REVERT to completion-or-conflict-stop;
|
|
198
|
+
* (3) COMMIT (terminal). A competing mobile Accept mid-revert is rejected by the
|
|
199
|
+
* CLAIM lock. NEVER throws — every failure surfaces a `SHELL_ADVISORY` and
|
|
200
|
+
* returns; the in-flight group's manifest survives for startup reconcile.
|
|
201
|
+
*/
|
|
202
|
+
export declare function submitGroupDecision(deps: GroupDecisionSubmitDeps, args: {
|
|
203
|
+
taskGroupId: string;
|
|
204
|
+
sessionId: string;
|
|
205
|
+
decision: GroupDecisionLabel;
|
|
206
|
+
notes?: string;
|
|
207
|
+
}): Promise<GroupDecisionResult | null>;
|
|
208
|
+
/**
|
|
209
|
+
* Outcome of routing a typed line against an active gate prompt. `handled`
|
|
210
|
+
* distinguishes "the line was consumed by gate resolution" (a digit / notes /
|
|
211
|
+
* the cancel sentinel) from "the line is not for this gate" (so the caller falls
|
|
212
|
+
* back to its normal text path — planner / slash). When `handled` is true the
|
|
213
|
+
* submit (if any) has already been kicked off via `submitGateDecision` and the
|
|
214
|
+
* returned promise resolves when it settles.
|
|
215
|
+
*/
|
|
216
|
+
export interface GateInputRouteResult {
|
|
217
|
+
handled: boolean;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Route a typed line against the active gate-prompt entry's phase, mirroring the
|
|
221
|
+
* TTY `<OrchestrationApp>` `handleInputBarSubmit` gate branch EXACTLY:
|
|
222
|
+
*
|
|
223
|
+
* • awaiting-number: a valid EXACT single digit 1..N → either transition to
|
|
224
|
+
* notes-entry (`_WITH_NOTES`) or submit immediately. A digit-SHAPED but
|
|
225
|
+
* invalid input (a partial numeric parse like `"1abc"` / `"01"` /
|
|
226
|
+
* `"1 approve"`, OR an out-of-range single digit like `"6"`) is CONSUMED
|
|
227
|
+
* (`handled:true`) WITHOUT submitting — a `SHELL_ADVISORY` hint is dispatched
|
|
228
|
+
* and the prompt stays active, so a `parseInt`-style partial parse can NEVER
|
|
229
|
+
* silently resolve a destructive option (the v1-options rule: never
|
|
230
|
+
* accept/destroy work on a typo). NON-numeric free text (no leading digit) is
|
|
231
|
+
* reported `handled:false` so it falls through to the planner — matching the
|
|
232
|
+
* TTY where `<InputBar>` only intercepts digit input and lets free text chat.
|
|
233
|
+
* NOTE: the TTY InputBar pre-validates with the identical `/^[0-9]$/` exact-
|
|
234
|
+
* single-digit rule (`components/InputBar.tsx:102`); for the non-TTY loop THIS
|
|
235
|
+
* router is the PRIMARY validation (`non-tty-fallback.ts:169`).
|
|
236
|
+
* • awaiting-notes: the `/cancel` sentinel → NOTES_CANCELLED; otherwise the
|
|
237
|
+
* text is the notes plaintext → submit with notes.
|
|
238
|
+
* • submitting: input is disabled — consumed (handled) but a no-op.
|
|
239
|
+
*
|
|
240
|
+
* Returns `{ handled:false }` when there is no active gate (the caller routes the
|
|
241
|
+
* line to its normal text path). Awaits the submit so a non-TTY caller's
|
|
242
|
+
* sequential loop blocks until the decision settles.
|
|
243
|
+
*/
|
|
244
|
+
export declare function routeGatePromptInput(deps: GateDecisionSubmitDeps, activeEntry: GatePromptEntry | null, text: string): Promise<GateInputRouteResult>;
|
|
245
|
+
export {};
|