@caupulican/pi-adaptative 0.81.38 → 0.81.40
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/CHANGELOG.md +131 -0
- package/README.md +2 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/README.md +18 -1
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.d.ts +133 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.d.ts.map +1 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.js +198 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.js.map +1 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.ts +311 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.d.ts +31 -2
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.d.ts.map +1 -1
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.js +823 -79
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.js.map +1 -1
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.ts +1043 -86
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/__init__.py +43 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/fs.py +270 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/search.py +252 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/strings.py +399 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/text.py +575 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/context.py +52 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/errors.py +49 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/exec.py +734 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/expand.py +238 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/main.py +132 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/nodes.py +116 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/parser.py +287 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/proc.py +137 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/state.py +100 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/tokens.py +579 -0
- package/dist/bundled-resources/skills/tool-call-repair/SKILL.md +19 -9
- package/dist/bundled-resources/skills/tool-call-repair/references/failure-grammar.md +22 -5
- package/dist/bundled-resources/skills/tool-call-repair/references/repair-catalogue.md +7 -7
- package/dist/bundled-resources/skills/tool-call-repair/references/text-protocol-grammar.md +28 -7
- package/dist/cli/args.d.ts +5 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +24 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/core/agent-directory-layout.d.ts +15 -0
- package/dist/core/agent-directory-layout.d.ts.map +1 -0
- package/dist/core/agent-directory-layout.js +72 -0
- package/dist/core/agent-directory-layout.js.map +1 -0
- package/dist/core/agent-paths.d.ts +66 -0
- package/dist/core/agent-paths.d.ts.map +1 -0
- package/dist/core/agent-paths.js +170 -0
- package/dist/core/agent-paths.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +52 -8
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +397 -79
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +1 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +4 -3
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +255 -103
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +754 -1173
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/autonomy/approval-gate.d.ts +3 -2
- package/dist/core/autonomy/approval-gate.d.ts.map +1 -1
- package/dist/core/autonomy/approval-gate.js +6 -28
- package/dist/core/autonomy/approval-gate.js.map +1 -1
- package/dist/core/autonomy/bounded-completion.d.ts +1 -1
- package/dist/core/autonomy/bounded-completion.d.ts.map +1 -1
- package/dist/core/autonomy/bounded-completion.js +1 -1
- package/dist/core/autonomy/bounded-completion.js.map +1 -1
- package/dist/core/autonomy/contracts.d.ts +26 -9
- package/dist/core/autonomy/contracts.d.ts.map +1 -1
- package/dist/core/autonomy/contracts.js.map +1 -1
- package/dist/core/autonomy/foreground-envelope.d.ts +8 -2
- package/dist/core/autonomy/foreground-envelope.d.ts.map +1 -1
- package/dist/core/autonomy/foreground-envelope.js +8 -25
- package/dist/core/autonomy/foreground-envelope.js.map +1 -1
- package/dist/core/autonomy/gates.d.ts.map +1 -1
- package/dist/core/autonomy/gates.js +8 -10
- package/dist/core/autonomy/gates.js.map +1 -1
- package/dist/core/autonomy/lane-private-paths.d.ts +2 -0
- package/dist/core/autonomy/lane-private-paths.d.ts.map +1 -0
- package/dist/core/autonomy/lane-private-paths.js +16 -0
- package/dist/core/autonomy/lane-private-paths.js.map +1 -0
- package/dist/core/autonomy/lane-tool-surface.d.ts +10 -0
- package/dist/core/autonomy/lane-tool-surface.d.ts.map +1 -1
- package/dist/core/autonomy/lane-tool-surface.js +46 -8
- package/dist/core/autonomy/lane-tool-surface.js.map +1 -1
- package/dist/core/autonomy/lane-tracker.d.ts +24 -1
- package/dist/core/autonomy/lane-tracker.d.ts.map +1 -1
- package/dist/core/autonomy/lane-tracker.js +43 -1
- package/dist/core/autonomy/lane-tracker.js.map +1 -1
- package/dist/core/autonomy/risk-assessment.d.ts +1 -2
- package/dist/core/autonomy/risk-assessment.d.ts.map +1 -1
- package/dist/core/autonomy/risk-assessment.js +1 -123
- package/dist/core/autonomy/risk-assessment.js.map +1 -1
- package/dist/core/autonomy/session-lane-record.d.ts +4 -4
- package/dist/core/autonomy/session-lane-record.d.ts.map +1 -1
- package/dist/core/autonomy/session-lane-record.js +16 -29
- package/dist/core/autonomy/session-lane-record.js.map +1 -1
- package/dist/core/autonomy/telemetry-events.d.ts +1 -1
- package/dist/core/autonomy/telemetry-events.d.ts.map +1 -1
- package/dist/core/autonomy/telemetry-events.js +1 -1
- package/dist/core/autonomy/telemetry-events.js.map +1 -1
- package/dist/core/autonomy-telemetry.d.ts +7 -7
- package/dist/core/autonomy-telemetry.d.ts.map +1 -1
- package/dist/core/autonomy-telemetry.js +9 -9
- package/dist/core/autonomy-telemetry.js.map +1 -1
- package/dist/core/background-lane-controller.d.ts +90 -156
- package/dist/core/background-lane-controller.d.ts.map +1 -1
- package/dist/core/background-lane-controller.js +192 -968
- package/dist/core/background-lane-controller.js.map +1 -1
- package/dist/core/bash-execution-controller.d.ts +4 -0
- package/dist/core/bash-execution-controller.d.ts.map +1 -1
- package/dist/core/bash-execution-controller.js +7 -1
- package/dist/core/bash-execution-controller.js.map +1 -1
- package/dist/core/capability-contract.d.ts +4 -0
- package/dist/core/capability-contract.d.ts.map +1 -0
- package/dist/core/capability-contract.js +28 -0
- package/dist/core/capability-contract.js.map +1 -0
- package/dist/core/compaction-controller.d.ts +90 -0
- package/dist/core/compaction-controller.d.ts.map +1 -0
- package/dist/core/compaction-controller.js +452 -0
- package/dist/core/compaction-controller.js.map +1 -0
- package/dist/core/compaction-support.d.ts +24 -13
- package/dist/core/compaction-support.d.ts.map +1 -1
- package/dist/core/compaction-support.js +43 -7
- package/dist/core/compaction-support.js.map +1 -1
- package/dist/core/context/context-artifacts.d.ts +6 -2
- package/dist/core/context/context-artifacts.d.ts.map +1 -1
- package/dist/core/context/context-artifacts.js +34 -2
- package/dist/core/context/context-artifacts.js.map +1 -1
- package/dist/core/context/context-audit.d.ts +33 -1
- package/dist/core/context/context-audit.d.ts.map +1 -1
- package/dist/core/context/context-audit.js +31 -5
- package/dist/core/context/context-audit.js.map +1 -1
- package/dist/core/context/context-store-retention.d.ts +8 -2
- package/dist/core/context/context-store-retention.d.ts.map +1 -1
- package/dist/core/context/context-store-retention.js +158 -35
- package/dist/core/context/context-store-retention.js.map +1 -1
- package/dist/core/context/okf-memory.d.ts.map +1 -1
- package/dist/core/context/okf-memory.js +9 -11
- package/dist/core/context/okf-memory.js.map +1 -1
- package/dist/core/context/sqlite-runtime-index.d.ts.map +1 -1
- package/dist/core/context/sqlite-runtime-index.js +6 -8
- package/dist/core/context/sqlite-runtime-index.js.map +1 -1
- package/dist/core/context-gc.d.ts +3 -0
- package/dist/core/context-gc.d.ts.map +1 -1
- package/dist/core/context-gc.js +26 -6
- package/dist/core/context-gc.js.map +1 -1
- package/dist/core/context-pipeline.d.ts +26 -4
- package/dist/core/context-pipeline.d.ts.map +1 -1
- package/dist/core/context-pipeline.js +146 -18
- package/dist/core/context-pipeline.js.map +1 -1
- package/dist/core/cost-guard.d.ts +19 -3
- package/dist/core/cost-guard.d.ts.map +1 -1
- package/dist/core/cost-guard.js +18 -3
- package/dist/core/cost-guard.js.map +1 -1
- package/dist/core/default-tool-surface.d.ts.map +1 -1
- package/dist/core/default-tool-surface.js +1 -0
- package/dist/core/default-tool-surface.js.map +1 -1
- package/dist/core/delegation/managed-lane-controller.d.ts +34 -0
- package/dist/core/delegation/managed-lane-controller.d.ts.map +1 -0
- package/dist/core/delegation/managed-lane-controller.js +217 -0
- package/dist/core/delegation/managed-lane-controller.js.map +1 -0
- package/dist/core/delegation/session-worker-claim.d.ts +44 -0
- package/dist/core/delegation/session-worker-claim.d.ts.map +1 -0
- package/dist/core/delegation/session-worker-claim.js +98 -0
- package/dist/core/delegation/session-worker-claim.js.map +1 -0
- package/dist/core/delegation/worker-actions.d.ts +7 -5
- package/dist/core/delegation/worker-actions.d.ts.map +1 -1
- package/dist/core/delegation/worker-actions.js +20 -4
- package/dist/core/delegation/worker-actions.js.map +1 -1
- package/dist/core/delegation/worker-claim.d.ts +56 -0
- package/dist/core/delegation/worker-claim.d.ts.map +1 -0
- package/dist/core/delegation/worker-claim.js +239 -0
- package/dist/core/delegation/worker-claim.js.map +1 -0
- package/dist/core/delegation/worker-delegation-controller.d.ts +110 -0
- package/dist/core/delegation/worker-delegation-controller.d.ts.map +1 -0
- package/dist/core/delegation/worker-delegation-controller.js +861 -0
- package/dist/core/delegation/worker-delegation-controller.js.map +1 -0
- package/dist/core/delegation/worker-delegation-request.d.ts +11 -0
- package/dist/core/delegation/worker-delegation-request.d.ts.map +1 -0
- package/dist/core/delegation/worker-delegation-request.js +2 -0
- package/dist/core/delegation/worker-delegation-request.js.map +1 -0
- package/dist/core/delegation/worker-dispatch-scheduler.d.ts +40 -0
- package/dist/core/delegation/worker-dispatch-scheduler.d.ts.map +1 -0
- package/dist/core/delegation/worker-dispatch-scheduler.js +93 -0
- package/dist/core/delegation/worker-dispatch-scheduler.js.map +1 -0
- package/dist/core/delegation/worker-execution-policy.d.ts +62 -0
- package/dist/core/delegation/worker-execution-policy.d.ts.map +1 -0
- package/dist/core/delegation/worker-execution-policy.js +160 -0
- package/dist/core/delegation/worker-execution-policy.js.map +1 -0
- package/dist/core/delegation/worker-lane-projection.d.ts +14 -0
- package/dist/core/delegation/worker-lane-projection.d.ts.map +1 -0
- package/dist/core/delegation/worker-lane-projection.js +100 -0
- package/dist/core/delegation/worker-lane-projection.js.map +1 -0
- package/dist/core/delegation/worker-lifecycle.d.ts +97 -0
- package/dist/core/delegation/worker-lifecycle.d.ts.map +1 -0
- package/dist/core/delegation/worker-lifecycle.js +339 -0
- package/dist/core/delegation/worker-lifecycle.js.map +1 -0
- package/dist/core/delegation/worker-notification-coordinator.d.ts +36 -0
- package/dist/core/delegation/worker-notification-coordinator.d.ts.map +1 -0
- package/dist/core/delegation/worker-notification-coordinator.js +90 -0
- package/dist/core/delegation/worker-notification-coordinator.js.map +1 -0
- package/dist/core/delegation/worker-profile-resolver.d.ts +55 -0
- package/dist/core/delegation/worker-profile-resolver.d.ts.map +1 -0
- package/dist/core/delegation/worker-profile-resolver.js +113 -0
- package/dist/core/delegation/worker-profile-resolver.js.map +1 -0
- package/dist/core/delegation/worker-runner.d.ts +25 -14
- package/dist/core/delegation/worker-runner.d.ts.map +1 -1
- package/dist/core/delegation/worker-runner.js +122 -53
- package/dist/core/delegation/worker-runner.js.map +1 -1
- package/dist/core/delegation/worker-task-label.d.ts +3 -0
- package/dist/core/delegation/worker-task-label.d.ts.map +1 -0
- package/dist/core/delegation/worker-task-label.js +11 -0
- package/dist/core/delegation/worker-task-label.js.map +1 -0
- package/dist/core/doctor.d.ts +8 -0
- package/dist/core/doctor.d.ts.map +1 -1
- package/dist/core/doctor.js +32 -1
- package/dist/core/doctor.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +5 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +68 -13
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +7 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/storage.d.ts +8 -0
- package/dist/core/extensions/storage.d.ts.map +1 -0
- package/dist/core/extensions/storage.js +28 -0
- package/dist/core/extensions/storage.js.map +1 -0
- package/dist/core/extensions/types.d.ts +101 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/failure-corpus.d.ts +1 -15
- package/dist/core/failure-corpus.d.ts.map +1 -1
- package/dist/core/failure-corpus.js +9 -37
- package/dist/core/failure-corpus.js.map +1 -1
- package/dist/core/foreground-recovery-controller.d.ts +52 -0
- package/dist/core/foreground-recovery-controller.d.ts.map +1 -0
- package/dist/core/foreground-recovery-controller.js +111 -0
- package/dist/core/foreground-recovery-controller.js.map +1 -0
- package/dist/core/gateways/channel-provider.d.ts +3 -0
- package/dist/core/gateways/channel-provider.d.ts.map +1 -1
- package/dist/core/gateways/channel-provider.js +31 -6
- package/dist/core/gateways/channel-provider.js.map +1 -1
- package/dist/core/goal-loop-controller.d.ts +17 -1
- package/dist/core/goal-loop-controller.d.ts.map +1 -1
- package/dist/core/goal-loop-controller.js +79 -11
- package/dist/core/goal-loop-controller.js.map +1 -1
- package/dist/core/goals/goal-acceptance.d.ts +11 -0
- package/dist/core/goals/goal-acceptance.d.ts.map +1 -0
- package/dist/core/goals/goal-acceptance.js +25 -0
- package/dist/core/goals/goal-acceptance.js.map +1 -0
- package/dist/core/goals/goal-auto-continue-controller.d.ts +27 -0
- package/dist/core/goals/goal-auto-continue-controller.d.ts.map +1 -0
- package/dist/core/goals/goal-auto-continue-controller.js +93 -0
- package/dist/core/goals/goal-auto-continue-controller.js.map +1 -0
- package/dist/core/goals/goal-continuation-controller.d.ts +48 -2
- package/dist/core/goals/goal-continuation-controller.d.ts.map +1 -1
- package/dist/core/goals/goal-continuation-controller.js +87 -0
- package/dist/core/goals/goal-continuation-controller.js.map +1 -1
- package/dist/core/goals/goal-continuation-defaults.d.ts +39 -0
- package/dist/core/goals/goal-continuation-defaults.d.ts.map +1 -1
- package/dist/core/goals/goal-continuation-defaults.js +42 -0
- package/dist/core/goals/goal-continuation-defaults.js.map +1 -1
- package/dist/core/goals/goal-continuation-prompt.d.ts +5 -1
- package/dist/core/goals/goal-continuation-prompt.d.ts.map +1 -1
- package/dist/core/goals/goal-continuation-prompt.js +56 -15
- package/dist/core/goals/goal-continuation-prompt.js.map +1 -1
- package/dist/core/goals/goal-lifecycle.d.ts +20 -0
- package/dist/core/goals/goal-lifecycle.d.ts.map +1 -0
- package/dist/core/goals/goal-lifecycle.js +17 -0
- package/dist/core/goals/goal-lifecycle.js.map +1 -0
- package/dist/core/goals/goal-runtime-snapshot.d.ts +105 -4
- package/dist/core/goals/goal-runtime-snapshot.d.ts.map +1 -1
- package/dist/core/goals/goal-runtime-snapshot.js +91 -6
- package/dist/core/goals/goal-runtime-snapshot.js.map +1 -1
- package/dist/core/goals/goal-state.d.ts +90 -1
- package/dist/core/goals/goal-state.d.ts.map +1 -1
- package/dist/core/goals/goal-state.js +78 -15
- package/dist/core/goals/goal-state.js.map +1 -1
- package/dist/core/goals/goal-tool-core.d.ts +58 -2
- package/dist/core/goals/goal-tool-core.d.ts.map +1 -1
- package/dist/core/goals/goal-tool-core.js +82 -6
- package/dist/core/goals/goal-tool-core.js.map +1 -1
- package/dist/core/goals/session-goal-state.d.ts +13 -6
- package/dist/core/goals/session-goal-state.d.ts.map +1 -1
- package/dist/core/goals/session-goal-state.js +20 -28
- package/dist/core/goals/session-goal-state.js.map +1 -1
- package/dist/core/human-input.d.ts +100 -0
- package/dist/core/human-input.d.ts.map +1 -0
- package/dist/core/human-input.js +362 -0
- package/dist/core/human-input.js.map +1 -0
- package/dist/core/index.d.ts +9 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +9 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/{telemetry.d.ts → install-telemetry.d.ts} +1 -1
- package/dist/core/install-telemetry.d.ts.map +1 -0
- package/dist/core/{telemetry.js → install-telemetry.js} +1 -1
- package/dist/core/install-telemetry.js.map +1 -0
- package/dist/core/keybindings.d.ts +27 -1
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +34 -8
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/learning/learning-audit.d.ts +2 -4
- package/dist/core/learning/learning-audit.d.ts.map +1 -1
- package/dist/core/learning/learning-audit.js +9 -29
- package/dist/core/learning/learning-audit.js.map +1 -1
- package/dist/core/learning/learning-gate.d.ts.map +1 -1
- package/dist/core/learning/learning-gate.js +1 -6
- package/dist/core/learning/learning-gate.js.map +1 -1
- package/dist/core/learning/observation-store.d.ts +12 -3
- package/dist/core/learning/observation-store.d.ts.map +1 -1
- package/dist/core/learning/observation-store.js +30 -15
- package/dist/core/learning/observation-store.js.map +1 -1
- package/dist/core/learning/session-learning-decision.d.ts +2 -4
- package/dist/core/learning/session-learning-decision.d.ts.map +1 -1
- package/dist/core/learning/session-learning-decision.js +9 -29
- package/dist/core/learning/session-learning-decision.js.map +1 -1
- package/dist/core/learning/skill-curator.d.ts +5 -1
- package/dist/core/learning/skill-curator.d.ts.map +1 -1
- package/dist/core/learning/skill-curator.js +21 -19
- package/dist/core/learning/skill-curator.js.map +1 -1
- package/dist/core/local-runtime-controller.d.ts +65 -3
- package/dist/core/local-runtime-controller.d.ts.map +1 -1
- package/dist/core/local-runtime-controller.js +186 -26
- package/dist/core/local-runtime-controller.js.map +1 -1
- package/dist/core/memory/providers/file-store.d.ts +1 -1
- package/dist/core/memory/providers/file-store.d.ts.map +1 -1
- package/dist/core/memory/providers/file-store.js +6 -6
- package/dist/core/memory/providers/file-store.js.map +1 -1
- package/dist/core/memory-controller.d.ts.map +1 -1
- package/dist/core/memory-controller.js +4 -4
- package/dist/core/memory-controller.js.map +1 -1
- package/dist/core/model-capability.d.ts +34 -0
- package/dist/core/model-capability.d.ts.map +1 -1
- package/dist/core/model-capability.js +43 -1
- package/dist/core/model-capability.js.map +1 -1
- package/dist/core/model-resolver.d.ts +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +6 -9
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-router/intent-classifier.d.ts +1 -4
- package/dist/core/model-router/intent-classifier.d.ts.map +1 -1
- package/dist/core/model-router/intent-classifier.js +1 -156
- package/dist/core/model-router/intent-classifier.js.map +1 -1
- package/dist/core/model-router/tool-escalation.d.ts +15 -0
- package/dist/core/model-router/tool-escalation.d.ts.map +1 -1
- package/dist/core/model-router/tool-escalation.js +23 -1
- package/dist/core/model-router/tool-escalation.js.map +1 -1
- package/dist/core/model-router-controller.d.ts +34 -7
- package/dist/core/model-router-controller.d.ts.map +1 -1
- package/dist/core/model-router-controller.js +95 -16
- package/dist/core/model-router-controller.js.map +1 -1
- package/dist/core/model-selection-controller.d.ts +4 -4
- package/dist/core/model-selection-controller.d.ts.map +1 -1
- package/dist/core/model-selection-controller.js.map +1 -1
- package/dist/core/model-tool-protocol.d.ts +23 -0
- package/dist/core/model-tool-protocol.d.ts.map +1 -0
- package/dist/core/model-tool-protocol.js +43 -0
- package/dist/core/model-tool-protocol.js.map +1 -0
- package/dist/core/models/adaptation-store.d.ts +10 -5
- package/dist/core/models/adaptation-store.d.ts.map +1 -1
- package/dist/core/models/adaptation-store.js +129 -81
- package/dist/core/models/adaptation-store.js.map +1 -1
- package/dist/core/models/default-model-suggestions.d.ts.map +1 -1
- package/dist/core/models/default-model-suggestions.js +17 -0
- package/dist/core/models/default-model-suggestions.js.map +1 -1
- package/dist/core/models/fitness-store.d.ts +4 -11
- package/dist/core/models/fitness-store.d.ts.map +1 -1
- package/dist/core/models/fitness-store.js +87 -51
- package/dist/core/models/fitness-store.js.map +1 -1
- package/dist/core/models/host-state-store.d.ts +34 -0
- package/dist/core/models/host-state-store.d.ts.map +1 -0
- package/dist/core/models/host-state-store.js +86 -0
- package/dist/core/models/host-state-store.js.map +1 -0
- package/dist/core/models/llamacpp-runtime.d.ts +180 -0
- package/dist/core/models/llamacpp-runtime.d.ts.map +1 -0
- package/dist/core/models/llamacpp-runtime.js +475 -0
- package/dist/core/models/llamacpp-runtime.js.map +1 -0
- package/dist/core/models/local-registration.d.ts +40 -0
- package/dist/core/models/local-registration.d.ts.map +1 -1
- package/dist/core/models/local-registration.js +94 -5
- package/dist/core/models/local-registration.js.map +1 -1
- package/dist/core/models/local-runtime.d.ts.map +1 -1
- package/dist/core/models/local-runtime.js +6 -5
- package/dist/core/models/local-runtime.js.map +1 -1
- package/dist/core/models/model-ref.d.ts +7 -0
- package/dist/core/models/model-ref.d.ts.map +1 -1
- package/dist/core/models/model-ref.js +26 -0
- package/dist/core/models/model-ref.js.map +1 -1
- package/dist/core/models/needle-runtime.d.ts +257 -0
- package/dist/core/models/needle-runtime.d.ts.map +1 -0
- package/dist/core/models/needle-runtime.js +519 -0
- package/dist/core/models/needle-runtime.js.map +1 -0
- package/dist/core/models/prism-llamacpp-lifecycle.d.ts +89 -0
- package/dist/core/models/prism-llamacpp-lifecycle.d.ts.map +1 -0
- package/dist/core/models/prism-llamacpp-lifecycle.js +121 -0
- package/dist/core/models/prism-llamacpp-lifecycle.js.map +1 -0
- package/dist/core/orchestration/agent-resume.d.ts +24 -0
- package/dist/core/orchestration/agent-resume.d.ts.map +1 -0
- package/dist/core/orchestration/agent-resume.js +90 -0
- package/dist/core/orchestration/agent-resume.js.map +1 -0
- package/dist/core/orchestration/capability-gateway.d.ts +61 -0
- package/dist/core/orchestration/capability-gateway.d.ts.map +1 -0
- package/dist/core/orchestration/capability-gateway.js +152 -0
- package/dist/core/orchestration/capability-gateway.js.map +1 -0
- package/dist/core/orchestration/contracts.d.ts +343 -0
- package/dist/core/orchestration/contracts.d.ts.map +1 -0
- package/dist/core/orchestration/contracts.js +135 -0
- package/dist/core/orchestration/contracts.js.map +1 -0
- package/dist/core/orchestration/delegation-ledger.d.ts +56 -0
- package/dist/core/orchestration/delegation-ledger.d.ts.map +1 -0
- package/dist/core/orchestration/delegation-ledger.js +197 -0
- package/dist/core/orchestration/delegation-ledger.js.map +1 -0
- package/dist/core/orchestration/event-store.d.ts +83 -0
- package/dist/core/orchestration/event-store.d.ts.map +1 -0
- package/dist/core/orchestration/event-store.js +560 -0
- package/dist/core/orchestration/event-store.js.map +1 -0
- package/dist/core/orchestration/lane-tool-manifests.d.ts +9 -0
- package/dist/core/orchestration/lane-tool-manifests.d.ts.map +1 -0
- package/dist/core/orchestration/lane-tool-manifests.js +37 -0
- package/dist/core/orchestration/lane-tool-manifests.js.map +1 -0
- package/dist/core/orchestration/model-binding.d.ts +15 -0
- package/dist/core/orchestration/model-binding.d.ts.map +1 -0
- package/dist/core/orchestration/model-binding.js +29 -0
- package/dist/core/orchestration/model-binding.js.map +1 -0
- package/dist/core/orchestration/policy-compiler.d.ts +49 -0
- package/dist/core/orchestration/policy-compiler.d.ts.map +1 -0
- package/dist/core/orchestration/policy-compiler.js +191 -0
- package/dist/core/orchestration/policy-compiler.js.map +1 -0
- package/dist/core/orchestration/policy-gate.d.ts +18 -0
- package/dist/core/orchestration/policy-gate.d.ts.map +1 -0
- package/dist/core/orchestration/policy-gate.js +24 -0
- package/dist/core/orchestration/policy-gate.js.map +1 -0
- package/dist/core/orchestration/profile-registry.d.ts +51 -0
- package/dist/core/orchestration/profile-registry.d.ts.map +1 -0
- package/dist/core/orchestration/profile-registry.js +393 -0
- package/dist/core/orchestration/profile-registry.js.map +1 -0
- package/dist/core/orchestration/profile-store.d.ts +31 -0
- package/dist/core/orchestration/profile-store.d.ts.map +1 -0
- package/dist/core/orchestration/profile-store.js +136 -0
- package/dist/core/orchestration/profile-store.js.map +1 -0
- package/dist/core/orchestration/risk-budget.d.ts +9 -0
- package/dist/core/orchestration/risk-budget.d.ts.map +1 -0
- package/dist/core/orchestration/risk-budget.js +48 -0
- package/dist/core/orchestration/risk-budget.js.map +1 -0
- package/dist/core/orchestration/task-runtime.d.ts +168 -0
- package/dist/core/orchestration/task-runtime.d.ts.map +1 -0
- package/dist/core/orchestration/task-runtime.js +1600 -0
- package/dist/core/orchestration/task-runtime.js.map +1 -0
- package/dist/core/orchestration/work-state-projection.d.ts +32 -0
- package/dist/core/orchestration/work-state-projection.d.ts.map +1 -0
- package/dist/core/orchestration/work-state-projection.js +116 -0
- package/dist/core/orchestration/work-state-projection.js.map +1 -0
- package/dist/core/orchestration/worker-execution-contract.d.ts +21 -0
- package/dist/core/orchestration/worker-execution-contract.d.ts.map +1 -0
- package/dist/core/orchestration/worker-execution-contract.js +179 -0
- package/dist/core/orchestration/worker-execution-contract.js.map +1 -0
- package/dist/core/orchestration/worker-result-adapter.d.ts +21 -0
- package/dist/core/orchestration/worker-result-adapter.d.ts.map +1 -0
- package/dist/core/orchestration/worker-result-adapter.js +109 -0
- package/dist/core/orchestration/worker-result-adapter.js.map +1 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +11 -10
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/process-identity.d.ts +11 -0
- package/dist/core/process-identity.d.ts.map +1 -0
- package/dist/core/process-identity.js +26 -0
- package/dist/core/process-identity.js.map +1 -0
- package/dist/core/process-matrix/codes.d.ts +83 -0
- package/dist/core/process-matrix/codes.d.ts.map +1 -0
- package/dist/core/process-matrix/codes.js +15 -0
- package/dist/core/process-matrix/codes.js.map +1 -0
- package/dist/core/process-matrix/resume-launcher.d.ts +26 -0
- package/dist/core/process-matrix/resume-launcher.d.ts.map +1 -0
- package/dist/core/process-matrix/resume-launcher.js +62 -0
- package/dist/core/process-matrix/resume-launcher.js.map +1 -0
- package/dist/core/process-matrix/runtime.d.ts +78 -0
- package/dist/core/process-matrix/runtime.d.ts.map +1 -0
- package/dist/core/process-matrix/runtime.js +633 -0
- package/dist/core/process-matrix/runtime.js.map +1 -0
- package/dist/core/process-matrix/store.d.ts +25 -0
- package/dist/core/process-matrix/store.d.ts.map +1 -0
- package/dist/core/process-matrix/store.js +189 -0
- package/dist/core/process-matrix/store.js.map +1 -0
- package/dist/core/process-matrix/supervisor.d.ts +75 -0
- package/dist/core/process-matrix/supervisor.d.ts.map +1 -0
- package/dist/core/process-matrix/supervisor.js +161 -0
- package/dist/core/process-matrix/supervisor.js.map +1 -0
- package/dist/core/profile-registry.d.ts +7 -0
- package/dist/core/profile-registry.d.ts.map +1 -1
- package/dist/core/profile-registry.js +25 -7
- package/dist/core/profile-registry.js.map +1 -1
- package/dist/core/python-runtime.d.ts.map +1 -1
- package/dist/core/python-runtime.js +3 -3
- package/dist/core/python-runtime.js.map +1 -1
- package/dist/core/reflection-controller.d.ts +33 -9
- package/dist/core/reflection-controller.d.ts.map +1 -1
- package/dist/core/reflection-controller.js +217 -127
- package/dist/core/reflection-controller.js.map +1 -1
- package/dist/core/reload-blockers.d.ts +36 -0
- package/dist/core/reload-blockers.d.ts.map +1 -1
- package/dist/core/reload-blockers.js +50 -8
- package/dist/core/reload-blockers.js.map +1 -1
- package/dist/core/research/evidence-bundle.d.ts.map +1 -1
- package/dist/core/research/evidence-bundle.js +1 -6
- package/dist/core/research/evidence-bundle.js.map +1 -1
- package/dist/core/research/lane-model-resolver.d.ts +33 -0
- package/dist/core/research/lane-model-resolver.d.ts.map +1 -0
- package/dist/core/research/lane-model-resolver.js +65 -0
- package/dist/core/research/lane-model-resolver.js.map +1 -0
- package/dist/core/research/model-fitness-controller.d.ts +38 -0
- package/dist/core/research/model-fitness-controller.d.ts.map +1 -0
- package/dist/core/research/model-fitness-controller.js +106 -0
- package/dist/core/research/model-fitness-controller.js.map +1 -0
- package/dist/core/research/model-fitness.d.ts +1 -1
- package/dist/core/research/model-fitness.d.ts.map +1 -1
- package/dist/core/research/model-fitness.js +4 -4
- package/dist/core/research/model-fitness.js.map +1 -1
- package/dist/core/research/research-gate.d.ts.map +1 -1
- package/dist/core/research/research-gate.js +7 -7
- package/dist/core/research/research-gate.js.map +1 -1
- package/dist/core/research/research-lane-controller.d.ts +62 -0
- package/dist/core/research/research-lane-controller.d.ts.map +1 -0
- package/dist/core/research/research-lane-controller.js +292 -0
- package/dist/core/research/research-lane-controller.js.map +1 -0
- package/dist/core/research/session-evidence-bundle.d.ts +2 -4
- package/dist/core/research/session-evidence-bundle.d.ts.map +1 -1
- package/dist/core/research/session-evidence-bundle.js +10 -46
- package/dist/core/research/session-evidence-bundle.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +15 -9
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/risk-classifier.d.ts +6 -0
- package/dist/core/risk-classifier.d.ts.map +1 -0
- package/dist/core/risk-classifier.js +225 -0
- package/dist/core/risk-classifier.js.map +1 -0
- package/dist/core/runtime-builder.d.ts +76 -17
- package/dist/core/runtime-builder.d.ts.map +1 -1
- package/dist/core/runtime-builder.js +367 -124
- package/dist/core/runtime-builder.js.map +1 -1
- package/dist/core/scout-controller.d.ts +6 -0
- package/dist/core/scout-controller.d.ts.map +1 -1
- package/dist/core/scout-controller.js +66 -52
- package/dist/core/scout-controller.js.map +1 -1
- package/dist/core/sdk.d.ts +6 -3
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +64 -27
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-analytics.d.ts.map +1 -1
- package/dist/core/session-analytics.js +28 -1
- package/dist/core/session-analytics.js.map +1 -1
- package/dist/core/session-image-store.d.ts +33 -0
- package/dist/core/session-image-store.d.ts.map +1 -0
- package/dist/core/session-image-store.js +283 -0
- package/dist/core/session-image-store.js.map +1 -0
- package/dist/core/session-role.d.ts +33 -0
- package/dist/core/session-role.d.ts.map +1 -0
- package/dist/core/session-role.js +58 -0
- package/dist/core/session-role.js.map +1 -0
- package/dist/core/session-snapshot.d.ts +34 -0
- package/dist/core/session-snapshot.d.ts.map +1 -0
- package/dist/core/session-snapshot.js +68 -0
- package/dist/core/session-snapshot.js.map +1 -0
- package/dist/core/session-supervision-runtime.d.ts +31 -0
- package/dist/core/session-supervision-runtime.d.ts.map +1 -0
- package/dist/core/session-supervision-runtime.js +97 -0
- package/dist/core/session-supervision-runtime.js.map +1 -0
- package/dist/core/settings-manager.d.ts +51 -7
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +168 -82
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/system-prompt-builder.d.ts +12 -0
- package/dist/core/system-prompt-builder.d.ts.map +1 -1
- package/dist/core/system-prompt-builder.js +6 -0
- package/dist/core/system-prompt-builder.js.map +1 -1
- package/dist/core/system-prompt.d.ts +14 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +20 -3
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tasks/session-task-state.d.ts +13 -6
- package/dist/core/tasks/session-task-state.d.ts.map +1 -1
- package/dist/core/tasks/session-task-state.js +20 -22
- package/dist/core/tasks/session-task-state.js.map +1 -1
- package/dist/core/tasks/task-contract-monitor.d.ts +45 -0
- package/dist/core/tasks/task-contract-monitor.d.ts.map +1 -0
- package/dist/core/tasks/task-contract-monitor.js +56 -0
- package/dist/core/tasks/task-contract-monitor.js.map +1 -0
- package/dist/core/tasks/task-projection.d.ts +20 -0
- package/dist/core/tasks/task-projection.d.ts.map +1 -0
- package/dist/core/tasks/task-projection.js +47 -0
- package/dist/core/tasks/task-projection.js.map +1 -0
- package/dist/core/tasks/task-state.d.ts +12 -0
- package/dist/core/tasks/task-state.d.ts.map +1 -1
- package/dist/core/tasks/task-state.js +56 -12
- package/dist/core/tasks/task-state.js.map +1 -1
- package/dist/core/tool-capability-policy.d.ts +13 -0
- package/dist/core/tool-capability-policy.d.ts.map +1 -0
- package/dist/core/tool-capability-policy.js +85 -0
- package/dist/core/tool-capability-policy.js.map +1 -0
- package/dist/core/tool-gate-controller.d.ts.map +1 -1
- package/dist/core/tool-gate-controller.js +5 -0
- package/dist/core/tool-gate-controller.js.map +1 -1
- package/dist/core/tool-protocol-controller.d.ts +91 -0
- package/dist/core/tool-protocol-controller.d.ts.map +1 -0
- package/dist/core/tool-protocol-controller.js +512 -0
- package/dist/core/tool-protocol-controller.js.map +1 -0
- package/dist/core/tool-recovery-log-records.d.ts +6 -0
- package/dist/core/tool-recovery-log-records.d.ts.map +1 -1
- package/dist/core/tool-recovery-log-records.js +13 -31
- package/dist/core/tool-recovery-log-records.js.map +1 -1
- package/dist/core/tool-selection/promotion.d.ts +54 -0
- package/dist/core/tool-selection/promotion.d.ts.map +1 -0
- package/dist/core/tool-selection/promotion.js +81 -0
- package/dist/core/tool-selection/promotion.js.map +1 -0
- package/dist/core/tool-selection/tool-performance-store.d.ts +39 -6
- package/dist/core/tool-selection/tool-performance-store.d.ts.map +1 -1
- package/dist/core/tool-selection/tool-performance-store.js +153 -110
- package/dist/core/tool-selection/tool-performance-store.js.map +1 -1
- package/dist/core/tool-selection/tool-selection-controller.d.ts +45 -0
- package/dist/core/tool-selection/tool-selection-controller.d.ts.map +1 -1
- package/dist/core/tool-selection/tool-selection-controller.js +96 -0
- package/dist/core/tool-selection/tool-selection-controller.js.map +1 -1
- package/dist/core/tools/ask-question.d.ts +124 -0
- package/dist/core/tools/ask-question.d.ts.map +1 -0
- package/dist/core/tools/ask-question.js +693 -0
- package/dist/core/tools/ask-question.js.map +1 -0
- package/dist/core/tools/bash.d.ts +18 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +95 -16
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/delegate-status.d.ts +44 -2
- package/dist/core/tools/delegate-status.d.ts.map +1 -1
- package/dist/core/tools/delegate-status.js +214 -19
- package/dist/core/tools/delegate-status.js.map +1 -1
- package/dist/core/tools/delegate.d.ts +15 -13
- package/dist/core/tools/delegate.d.ts.map +1 -1
- package/dist/core/tools/delegate.js +124 -22
- package/dist/core/tools/delegate.js.map +1 -1
- package/dist/core/tools/extensionify.d.ts.map +1 -1
- package/dist/core/tools/extensionify.js +1 -0
- package/dist/core/tools/extensionify.js.map +1 -1
- package/dist/core/tools/goal.d.ts +94 -3
- package/dist/core/tools/goal.d.ts.map +1 -1
- package/dist/core/tools/goal.js +165 -15
- package/dist/core/tools/goal.js.map +1 -1
- package/dist/core/tools/model-fitness.d.ts +7 -0
- package/dist/core/tools/model-fitness.d.ts.map +1 -1
- package/dist/core/tools/model-fitness.js +4 -4
- package/dist/core/tools/model-fitness.js.map +1 -1
- package/dist/core/tools/orchestration-panel.d.ts +43 -0
- package/dist/core/tools/orchestration-panel.d.ts.map +1 -0
- package/dist/core/tools/orchestration-panel.js +168 -0
- package/dist/core/tools/orchestration-panel.js.map +1 -0
- package/dist/core/tools/run-process.d.ts +26 -0
- package/dist/core/tools/run-process.d.ts.map +1 -0
- package/dist/core/tools/run-process.js +138 -0
- package/dist/core/tools/run-process.js.map +1 -0
- package/dist/core/tools/shell-contract-router.d.ts +6 -1
- package/dist/core/tools/shell-contract-router.d.ts.map +1 -1
- package/dist/core/tools/shell-contract-router.js +23 -2
- package/dist/core/tools/shell-contract-router.js.map +1 -1
- package/dist/core/tools/shell-session.d.ts +89 -0
- package/dist/core/tools/shell-session.d.ts.map +1 -0
- package/dist/core/tools/shell-session.js +432 -0
- package/dist/core/tools/shell-session.js.map +1 -0
- package/dist/core/tools/task-steps.d.ts +6 -0
- package/dist/core/tools/task-steps.d.ts.map +1 -1
- package/dist/core/tools/task-steps.js +165 -8
- package/dist/core/tools/task-steps.js.map +1 -1
- package/dist/core/tools/tmux-dispatch.d.ts +84 -0
- package/dist/core/tools/tmux-dispatch.d.ts.map +1 -0
- package/dist/core/tools/tmux-dispatch.js +91 -0
- package/dist/core/tools/tmux-dispatch.js.map +1 -0
- package/dist/core/tools/windows-shell-engine.d.ts +42 -0
- package/dist/core/tools/windows-shell-engine.d.ts.map +1 -0
- package/dist/core/tools/windows-shell-engine.js +151 -0
- package/dist/core/tools/windows-shell-engine.js.map +1 -0
- package/dist/core/tools/windows-shell-state.d.ts +40 -0
- package/dist/core/tools/windows-shell-state.d.ts.map +1 -0
- package/dist/core/tools/windows-shell-state.js +59 -0
- package/dist/core/tools/windows-shell-state.js.map +1 -0
- package/dist/core/tools/worktree-sync.d.ts +24 -0
- package/dist/core/tools/worktree-sync.d.ts.map +1 -0
- package/dist/core/tools/worktree-sync.js +338 -0
- package/dist/core/tools/worktree-sync.js.map +1 -0
- package/dist/core/trust-manager.d.ts +4 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +20 -2
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/util/atomic-file.d.ts +55 -0
- package/dist/core/util/atomic-file.d.ts.map +1 -0
- package/dist/core/util/atomic-file.js +255 -0
- package/dist/core/util/atomic-file.js.map +1 -0
- package/dist/core/util/bounded-jsonl.d.ts +10 -0
- package/dist/core/util/bounded-jsonl.d.ts.map +1 -0
- package/dist/core/util/bounded-jsonl.js +75 -0
- package/dist/core/util/bounded-jsonl.js.map +1 -0
- package/dist/core/util/minimatch-cache.d.ts +33 -0
- package/dist/core/util/minimatch-cache.d.ts.map +1 -0
- package/dist/core/util/minimatch-cache.js +0 -0
- package/dist/core/util/minimatch-cache.js.map +1 -0
- package/dist/core/util/value-guards.d.ts +5 -0
- package/dist/core/util/value-guards.d.ts.map +1 -0
- package/dist/core/util/value-guards.js +12 -0
- package/dist/core/util/value-guards.js.map +1 -0
- package/dist/core/worktree-sync/codes.d.ts +227 -0
- package/dist/core/worktree-sync/codes.d.ts.map +1 -0
- package/dist/core/worktree-sync/codes.js +14 -0
- package/dist/core/worktree-sync/codes.js.map +1 -0
- package/dist/core/worktree-sync/git-engine.d.ts +156 -0
- package/dist/core/worktree-sync/git-engine.d.ts.map +1 -0
- package/dist/core/worktree-sync/git-engine.js +1191 -0
- package/dist/core/worktree-sync/git-engine.js.map +1 -0
- package/dist/core/worktree-sync/lane-gate.d.ts +75 -0
- package/dist/core/worktree-sync/lane-gate.d.ts.map +1 -0
- package/dist/core/worktree-sync/lane-gate.js +360 -0
- package/dist/core/worktree-sync/lane-gate.js.map +1 -0
- package/dist/core/worktree-sync/runtime.d.ts +47 -0
- package/dist/core/worktree-sync/runtime.d.ts.map +1 -0
- package/dist/core/worktree-sync/runtime.js +96 -0
- package/dist/core/worktree-sync/runtime.js.map +1 -0
- package/dist/core/worktree-sync/store.d.ts +69 -0
- package/dist/core/worktree-sync/store.d.ts.map +1 -0
- package/dist/core/worktree-sync/store.js +252 -0
- package/dist/core/worktree-sync/store.js.map +1 -0
- package/dist/core/worktree-sync/watcher.d.ts +29 -0
- package/dist/core/worktree-sync/watcher.d.ts.map +1 -0
- package/dist/core/worktree-sync/watcher.js +93 -0
- package/dist/core/worktree-sync/watcher.js.map +1 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +179 -1
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts +7 -0
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +197 -1
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/auto-learn-controller.d.ts +16 -1
- package/dist/modes/interactive/auto-learn-controller.d.ts.map +1 -1
- package/dist/modes/interactive/auto-learn-controller.js +50 -8
- package/dist/modes/interactive/auto-learn-controller.js.map +1 -1
- package/dist/modes/interactive/clipboard-input.d.ts +7 -1
- package/dist/modes/interactive/clipboard-input.d.ts.map +1 -1
- package/dist/modes/interactive/clipboard-input.js +44 -6
- package/dist/modes/interactive/clipboard-input.js.map +1 -1
- package/dist/modes/interactive/components/profile-resource-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/profile-resource-editor.js +23 -1
- package/dist/modes/interactive/components/profile-resource-editor.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +2 -2
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/config-backup.d.ts.map +1 -1
- package/dist/modes/interactive/config-backup.js +5 -4
- package/dist/modes/interactive/config-backup.js.map +1 -1
- package/dist/modes/interactive/extension-ui-host.d.ts +14 -0
- package/dist/modes/interactive/extension-ui-host.d.ts.map +1 -1
- package/dist/modes/interactive/extension-ui-host.js +76 -15
- package/dist/modes/interactive/extension-ui-host.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +4 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +67 -1
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/key-handlers.d.ts.map +1 -1
- package/dist/modes/interactive/key-handlers.js +1 -1
- package/dist/modes/interactive/key-handlers.js.map +1 -1
- package/dist/modes/interactive/local-model-commands.d.ts +43 -0
- package/dist/modes/interactive/local-model-commands.d.ts.map +1 -1
- package/dist/modes/interactive/local-model-commands.js +290 -3
- package/dist/modes/interactive/local-model-commands.js.map +1 -1
- package/dist/modes/interactive/profile-menu-controller.d.ts.map +1 -1
- package/dist/modes/interactive/profile-menu-controller.js +7 -7
- package/dist/modes/interactive/profile-menu-controller.js.map +1 -1
- package/dist/modes/interactive/report-commands.d.ts.map +1 -1
- package/dist/modes/interactive/report-commands.js +21 -0
- package/dist/modes/interactive/report-commands.js.map +1 -1
- package/dist/modes/interactive/session-flow-commands.d.ts +17 -2
- package/dist/modes/interactive/session-flow-commands.d.ts.map +1 -1
- package/dist/modes/interactive/session-flow-commands.js +74 -21
- package/dist/modes/interactive/session-flow-commands.js.map +1 -1
- package/dist/modes/interactive/session-io-commands.d.ts.map +1 -1
- package/dist/modes/interactive/session-io-commands.js +16 -6
- package/dist/modes/interactive/session-io-commands.js.map +1 -1
- package/dist/modes/interactive/session-replacement-errors.d.ts +7 -0
- package/dist/modes/interactive/session-replacement-errors.d.ts.map +1 -0
- package/dist/modes/interactive/session-replacement-errors.js +15 -0
- package/dist/modes/interactive/session-replacement-errors.js.map +1 -0
- package/dist/modes/interactive/startup-checks.d.ts.map +1 -1
- package/dist/modes/interactive/startup-checks.js +1 -1
- package/dist/modes/interactive/startup-checks.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +82 -23
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +15 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js +138 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js +2 -13
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard-native.d.ts +1 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -1
- package/dist/utils/clipboard-native.js.map +1 -1
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +52 -1
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/fs-watch.d.ts +11 -0
- package/dist/utils/fs-watch.d.ts.map +1 -1
- package/dist/utils/fs-watch.js +20 -2
- package/dist/utils/fs-watch.js.map +1 -1
- package/dist/utils/highlight-js-languages.d.ts +4 -0
- package/dist/utils/highlight-js-languages.d.ts.map +1 -0
- package/dist/utils/highlight-js-languages.js +573 -0
- package/dist/utils/highlight-js-languages.js.map +1 -0
- package/dist/utils/platform.d.ts +3 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +8 -0
- package/dist/utils/platform.js.map +1 -0
- package/dist/utils/shell.d.ts +7 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +21 -6
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +53 -5
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +112 -1
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/work-directory.d.ts +11 -0
- package/dist/utils/work-directory.d.ts.map +1 -1
- package/dist/utils/work-directory.js +30 -9
- package/dist/utils/work-directory.js.map +1 -1
- package/docs/UI_POLISH_ORCHESTRATION.md +44 -0
- package/docs/UI_QUALITY_ORCHESTRATION.md +30 -0
- package/docs/docs.json +4 -0
- package/docs/extensions.md +62 -2
- package/docs/harness-architecture.md +156 -0
- package/docs/keybindings.md +11 -1
- package/docs/process-matrix.md +153 -0
- package/docs/rpc.md +45 -2
- package/docs/sessions.md +15 -0
- package/docs/settings.md +128 -11
- package/docs/task-steps.md +8 -0
- package/docs/telemetry.md +19 -0
- package/docs/tmux-agent-manager.md +92 -2
- package/docs/ui-reference/README.md +9 -0
- package/docs/ui-reference/orchestration-after.txt +7 -0
- package/docs/ui-reference/orchestration-before.txt +7 -0
- package/docs/ui-reference/orchestration-reference.txt +6 -0
- package/docs/usage.md +14 -2
- package/docs/windows.md +52 -3
- package/docs/work-directory.md +42 -2
- package/docs/worktree-sync.md +250 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/question.ts +34 -245
- package/examples/extensions/questionnaire.ts +41 -407
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +10 -4
- package/dist/core/delegation/session-worker-result.d.ts +0 -16
- package/dist/core/delegation/session-worker-result.d.ts.map +0 -1
- package/dist/core/delegation/session-worker-result.js +0 -53
- package/dist/core/delegation/session-worker-result.js.map +0 -1
- package/dist/core/delegation/worker-result.d.ts +0 -15
- package/dist/core/delegation/worker-result.d.ts.map +0 -1
- package/dist/core/delegation/worker-result.js +0 -161
- package/dist/core/delegation/worker-result.js.map +0 -1
- package/dist/core/telemetry.d.ts.map +0 -1
- package/dist/core/telemetry.js.map +0 -1
- package/docs/integration-sweep-builder-blueprint-2026-07-09.md +0 -365
- package/docs/integration-sweep-resume-2026-07-09.md +0 -407
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
import { CURSOR_MARKER, Input, truncateToWidth, visibleWidth, wrapTextWithAnsi, } from "@caupulican/pi-tui";
|
|
2
|
+
import { Type } from "typebox";
|
|
3
|
+
import { formatKeyText } from "../../modes/interactive/components/keybinding-hints.js";
|
|
4
|
+
import { defineTool } from "../extensions/types.js";
|
|
5
|
+
import { beginHumanInputRequest, createHumanInputRequest, formatHumanInputAnswerText, resolveHumanInput, } from "../human-input.js";
|
|
6
|
+
import { emptyOrchestrationCall, OrchestrationPanelComponent, } from "./orchestration-panel.js";
|
|
7
|
+
const optionSchema = Type.Object({
|
|
8
|
+
label: Type.String({ minLength: 1, maxLength: 120, description: "Concise option label." }),
|
|
9
|
+
description: Type.String({
|
|
10
|
+
minLength: 1,
|
|
11
|
+
maxLength: 500,
|
|
12
|
+
description: "Concrete consequence or tradeoff of choosing this option.",
|
|
13
|
+
}),
|
|
14
|
+
}, { additionalProperties: false });
|
|
15
|
+
const questionSchema = Type.Object({
|
|
16
|
+
id: Type.String({ minLength: 1, maxLength: 80, description: "Stable unique answer identifier." }),
|
|
17
|
+
header: Type.String({
|
|
18
|
+
minLength: 1,
|
|
19
|
+
maxLength: 32,
|
|
20
|
+
description: "Short topic label used in question navigation.",
|
|
21
|
+
}),
|
|
22
|
+
question: Type.String({ minLength: 1, maxLength: 1_000, description: "The specific user-facing question." }),
|
|
23
|
+
options: Type.Array(optionSchema, {
|
|
24
|
+
minItems: 2,
|
|
25
|
+
maxItems: 4,
|
|
26
|
+
description: "Two to four genuine choices. Other and Skip are supplied by the harness.",
|
|
27
|
+
}),
|
|
28
|
+
multiSelect: Type.Optional(Type.Boolean({ description: "Allow more than one listed option to be selected." })),
|
|
29
|
+
}, { additionalProperties: false });
|
|
30
|
+
const askQuestionSchema = Type.Object({
|
|
31
|
+
questions: Type.Array(questionSchema, {
|
|
32
|
+
minItems: 1,
|
|
33
|
+
maxItems: 4,
|
|
34
|
+
description: "One to four independent questions presented in one interaction.",
|
|
35
|
+
}),
|
|
36
|
+
}, { additionalProperties: false });
|
|
37
|
+
const ANSWER_PREVIEW_CHARS = 240;
|
|
38
|
+
const ANSWER_EDITOR_VIEWPORT_LINES = 8;
|
|
39
|
+
class SingleLineAnswerEditor {
|
|
40
|
+
input = new Input();
|
|
41
|
+
onSubmit;
|
|
42
|
+
constructor() {
|
|
43
|
+
this.input.onSubmit = (value) => this.onSubmit?.(value);
|
|
44
|
+
}
|
|
45
|
+
get focused() {
|
|
46
|
+
return this.input.focused;
|
|
47
|
+
}
|
|
48
|
+
set focused(value) {
|
|
49
|
+
this.input.focused = value;
|
|
50
|
+
}
|
|
51
|
+
getText() {
|
|
52
|
+
return this.input.getValue();
|
|
53
|
+
}
|
|
54
|
+
setText(text) {
|
|
55
|
+
this.input.setValue("");
|
|
56
|
+
this.insertTextAtCursor(text);
|
|
57
|
+
}
|
|
58
|
+
insertTextAtCursor(text) {
|
|
59
|
+
this.input.handleInput(`\x1b[200~${text}\x1b[201~`);
|
|
60
|
+
}
|
|
61
|
+
handleInput(data) {
|
|
62
|
+
this.input.handleInput(data);
|
|
63
|
+
}
|
|
64
|
+
render(width) {
|
|
65
|
+
return this.input.render(width);
|
|
66
|
+
}
|
|
67
|
+
invalidate() {
|
|
68
|
+
this.input.invalidate();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function normalizedIdentity(value) {
|
|
72
|
+
return value.trim().toLowerCase();
|
|
73
|
+
}
|
|
74
|
+
function validateQuestions(questions) {
|
|
75
|
+
if (questions.length < 1 || questions.length > 4)
|
|
76
|
+
return "Provide between one and four questions.";
|
|
77
|
+
const ids = new Set();
|
|
78
|
+
const prompts = new Set();
|
|
79
|
+
for (const question of questions) {
|
|
80
|
+
if (!question.id.trim() || !question.header.trim() || !question.question.trim()) {
|
|
81
|
+
return "Question ids, headers, and prompts must not be blank.";
|
|
82
|
+
}
|
|
83
|
+
const id = normalizedIdentity(question.id);
|
|
84
|
+
const prompt = normalizedIdentity(question.question);
|
|
85
|
+
if (ids.has(id))
|
|
86
|
+
return `Question id '${question.id}' is duplicated.`;
|
|
87
|
+
if (prompts.has(prompt))
|
|
88
|
+
return `Question '${question.question}' is duplicated.`;
|
|
89
|
+
ids.add(id);
|
|
90
|
+
prompts.add(prompt);
|
|
91
|
+
if (question.options.length < 2 || question.options.length > 4) {
|
|
92
|
+
return `Question '${question.header}' requires between two and four options.`;
|
|
93
|
+
}
|
|
94
|
+
const labels = new Set();
|
|
95
|
+
for (const option of question.options) {
|
|
96
|
+
const label = normalizedIdentity(option.label);
|
|
97
|
+
if (!label || !option.description.trim()) {
|
|
98
|
+
return `Question '${question.header}' has a blank option label or description.`;
|
|
99
|
+
}
|
|
100
|
+
if (label === "other" || label === "skip") {
|
|
101
|
+
return `Question '${question.header}' must not define the reserved '${option.label}' option.`;
|
|
102
|
+
}
|
|
103
|
+
if (labels.has(label))
|
|
104
|
+
return `Question '${question.header}' has duplicate option '${option.label}'.`;
|
|
105
|
+
labels.add(label);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
|
110
|
+
function displayKeys(keybindings, keybinding, limit = 2) {
|
|
111
|
+
return formatKeyText(keybindings.getKeys(keybinding).slice(0, limit).join("/"), { capitalize: true });
|
|
112
|
+
}
|
|
113
|
+
function answerFor(question, selection, attachments = []) {
|
|
114
|
+
const images = selection.custom
|
|
115
|
+
? attachments
|
|
116
|
+
.filter((attachment) => selection.custom?.includes(attachment.label))
|
|
117
|
+
.map((attachment) => ({ label: attachment.label, mimeType: attachment.content.mimeType }))
|
|
118
|
+
: [];
|
|
119
|
+
return {
|
|
120
|
+
id: question.id,
|
|
121
|
+
header: question.header,
|
|
122
|
+
question: question.question,
|
|
123
|
+
selected: [...selection.optionIndexes]
|
|
124
|
+
.sort((left, right) => left - right)
|
|
125
|
+
.map((index) => question.options[index]?.label)
|
|
126
|
+
.filter((label) => label !== undefined),
|
|
127
|
+
...(selection.custom ? { custom: selection.custom } : {}),
|
|
128
|
+
...(images.length > 0 ? { images } : {}),
|
|
129
|
+
skipped: selection.skipped,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function previewAnswer(value) {
|
|
133
|
+
if (value.length <= ANSWER_PREVIEW_CHARS)
|
|
134
|
+
return value;
|
|
135
|
+
return `${value.slice(0, ANSWER_PREVIEW_CHARS)}… (${value.length} characters)`;
|
|
136
|
+
}
|
|
137
|
+
function isResolved(selection) {
|
|
138
|
+
return selection.skipped || selection.optionIndexes.size > 0 || selection.custom !== undefined;
|
|
139
|
+
}
|
|
140
|
+
/** Native focused question interaction shared by every provider-facing ask_question call. */
|
|
141
|
+
export class AskQuestionDialog {
|
|
142
|
+
questions;
|
|
143
|
+
theme;
|
|
144
|
+
keybindings;
|
|
145
|
+
requestRender;
|
|
146
|
+
finish;
|
|
147
|
+
clipboard;
|
|
148
|
+
pasteClipboardImage;
|
|
149
|
+
createAnswerEditor;
|
|
150
|
+
selections;
|
|
151
|
+
cursors;
|
|
152
|
+
pendingClipboardImages = [];
|
|
153
|
+
clipboardImageCounter = 0;
|
|
154
|
+
currentIndex = 0;
|
|
155
|
+
input;
|
|
156
|
+
inputError;
|
|
157
|
+
inputStatus;
|
|
158
|
+
pasteInFlight = false;
|
|
159
|
+
submitAfterPaste = false;
|
|
160
|
+
cachedWidth;
|
|
161
|
+
cachedLines;
|
|
162
|
+
settled = false;
|
|
163
|
+
constructor(options) {
|
|
164
|
+
this.questions = options.questions;
|
|
165
|
+
this.theme = options.theme;
|
|
166
|
+
this.keybindings = options.keybindings;
|
|
167
|
+
this.requestRender = options.requestRender;
|
|
168
|
+
this.finish = options.finish;
|
|
169
|
+
this.clipboard = options.clipboard ?? { autoResizeImages: true, blockImages: false };
|
|
170
|
+
this.pasteClipboardImage =
|
|
171
|
+
options.pasteClipboardImage ??
|
|
172
|
+
(async (host) => {
|
|
173
|
+
host.showWarning("Clipboard paste is unavailable in this UI host.");
|
|
174
|
+
});
|
|
175
|
+
this.createAnswerEditor = options.createAnswerEditor ?? (() => new SingleLineAnswerEditor());
|
|
176
|
+
this.selections = options.questions.map(() => ({ optionIndexes: new Set(), skipped: false }));
|
|
177
|
+
this.cursors = options.questions.map(() => 0);
|
|
178
|
+
}
|
|
179
|
+
refresh() {
|
|
180
|
+
this.invalidate();
|
|
181
|
+
this.requestRender();
|
|
182
|
+
}
|
|
183
|
+
result(cancelled, reason) {
|
|
184
|
+
const answers = this.questions.map((question, index) => answerFor(question, this.selections[index], this.pendingClipboardImages));
|
|
185
|
+
const referencedLabels = new Set(answers.flatMap((answer) => answer.images?.map((image) => image.label) ?? []));
|
|
186
|
+
return {
|
|
187
|
+
answers,
|
|
188
|
+
cancelled,
|
|
189
|
+
imageContents: cancelled
|
|
190
|
+
? []
|
|
191
|
+
: this.pendingClipboardImages
|
|
192
|
+
.filter((attachment) => referencedLabels.has(attachment.label))
|
|
193
|
+
.map((attachment) => attachment.content),
|
|
194
|
+
...(reason ? { reason } : {}),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
complete(result) {
|
|
198
|
+
if (this.settled)
|
|
199
|
+
return;
|
|
200
|
+
this.settled = true;
|
|
201
|
+
if (this.input)
|
|
202
|
+
this.input.focused = false;
|
|
203
|
+
this.finish(result);
|
|
204
|
+
}
|
|
205
|
+
cancel(reason) {
|
|
206
|
+
this.complete(this.result(true, reason));
|
|
207
|
+
}
|
|
208
|
+
move(delta) {
|
|
209
|
+
const lastIndex = this.questions.length;
|
|
210
|
+
this.currentIndex = Math.max(0, Math.min(lastIndex, this.currentIndex + delta));
|
|
211
|
+
this.refresh();
|
|
212
|
+
}
|
|
213
|
+
advanceAfterSingleSelection() {
|
|
214
|
+
if (this.questions.length === 1) {
|
|
215
|
+
this.complete(this.result(false));
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
this.currentIndex = Math.min(this.questions.length, this.currentIndex + 1);
|
|
219
|
+
this.refresh();
|
|
220
|
+
}
|
|
221
|
+
beginCustomAnswer() {
|
|
222
|
+
const questionIndex = this.currentIndex;
|
|
223
|
+
const question = this.questions[questionIndex];
|
|
224
|
+
const selection = this.selections[questionIndex];
|
|
225
|
+
if (!question || !selection)
|
|
226
|
+
return;
|
|
227
|
+
const input = this.createAnswerEditor();
|
|
228
|
+
this.inputError = undefined;
|
|
229
|
+
this.inputStatus = undefined;
|
|
230
|
+
input.focused = true;
|
|
231
|
+
if (selection.custom)
|
|
232
|
+
input.setText(selection.custom);
|
|
233
|
+
input.onSubmit = (value) => {
|
|
234
|
+
const answer = value.trim();
|
|
235
|
+
if (!answer)
|
|
236
|
+
return;
|
|
237
|
+
selection.custom = answer;
|
|
238
|
+
selection.skipped = false;
|
|
239
|
+
input.focused = false;
|
|
240
|
+
this.input = undefined;
|
|
241
|
+
if (question.multiSelect)
|
|
242
|
+
this.refresh();
|
|
243
|
+
else
|
|
244
|
+
this.advanceAfterSingleSelection();
|
|
245
|
+
};
|
|
246
|
+
this.input = input;
|
|
247
|
+
this.refresh();
|
|
248
|
+
}
|
|
249
|
+
async pasteIntoCustomAnswer() {
|
|
250
|
+
const input = this.input;
|
|
251
|
+
if (!input || this.pasteInFlight)
|
|
252
|
+
return;
|
|
253
|
+
this.pasteInFlight = true;
|
|
254
|
+
this.inputError = undefined;
|
|
255
|
+
this.inputStatus = "Reading clipboard…";
|
|
256
|
+
this.refresh();
|
|
257
|
+
let reported = false;
|
|
258
|
+
const self = this;
|
|
259
|
+
const host = {
|
|
260
|
+
get pendingClipboardImages() {
|
|
261
|
+
return self.pendingClipboardImages;
|
|
262
|
+
},
|
|
263
|
+
set pendingClipboardImages(value) {
|
|
264
|
+
self.pendingClipboardImages = value;
|
|
265
|
+
},
|
|
266
|
+
get clipboardImageCounter() {
|
|
267
|
+
return self.clipboardImageCounter;
|
|
268
|
+
},
|
|
269
|
+
set clipboardImageCounter(value) {
|
|
270
|
+
self.clipboardImageCounter = value;
|
|
271
|
+
},
|
|
272
|
+
editor: {
|
|
273
|
+
handleInput: (data) => input.handleInput(data),
|
|
274
|
+
insertTextAtCursor: (text) => input.insertTextAtCursor(text),
|
|
275
|
+
},
|
|
276
|
+
ui: { requestRender: () => this.refresh() },
|
|
277
|
+
autoResizeImages: this.clipboard.autoResizeImages,
|
|
278
|
+
blockImages: this.clipboard.blockImages,
|
|
279
|
+
blockImagesReason: this.clipboard.blockImagesReason,
|
|
280
|
+
imageStore: this.clipboard.imageStore,
|
|
281
|
+
showStatus: (message) => {
|
|
282
|
+
reported = true;
|
|
283
|
+
this.inputStatus = message;
|
|
284
|
+
this.inputError = undefined;
|
|
285
|
+
},
|
|
286
|
+
showWarning: (message) => {
|
|
287
|
+
reported = true;
|
|
288
|
+
this.inputStatus = undefined;
|
|
289
|
+
this.inputError = message;
|
|
290
|
+
this.refresh();
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
try {
|
|
294
|
+
await this.pasteClipboardImage(host);
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
this.pasteInFlight = false;
|
|
298
|
+
const shouldSubmit = this.submitAfterPaste && this.input === input && !this.settled;
|
|
299
|
+
this.submitAfterPaste = false;
|
|
300
|
+
if (!reported)
|
|
301
|
+
this.inputStatus = undefined;
|
|
302
|
+
if (shouldSubmit)
|
|
303
|
+
input.onSubmit?.(input.getText());
|
|
304
|
+
if (this.input === input && !this.settled)
|
|
305
|
+
this.refresh();
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
selectCurrent() {
|
|
309
|
+
const question = this.questions[this.currentIndex];
|
|
310
|
+
const selection = this.selections[this.currentIndex];
|
|
311
|
+
if (!question || !selection)
|
|
312
|
+
return;
|
|
313
|
+
const cursor = this.cursors[this.currentIndex] ?? 0;
|
|
314
|
+
if (cursor === question.options.length) {
|
|
315
|
+
this.beginCustomAnswer();
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
if (cursor === question.options.length + 1) {
|
|
319
|
+
selection.optionIndexes.clear();
|
|
320
|
+
selection.custom = undefined;
|
|
321
|
+
selection.skipped = true;
|
|
322
|
+
this.advanceAfterSingleSelection();
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
selection.skipped = false;
|
|
326
|
+
if (question.multiSelect) {
|
|
327
|
+
if (selection.optionIndexes.has(cursor))
|
|
328
|
+
selection.optionIndexes.delete(cursor);
|
|
329
|
+
else
|
|
330
|
+
selection.optionIndexes.add(cursor);
|
|
331
|
+
this.refresh();
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
selection.optionIndexes.clear();
|
|
335
|
+
selection.optionIndexes.add(cursor);
|
|
336
|
+
selection.custom = undefined;
|
|
337
|
+
this.advanceAfterSingleSelection();
|
|
338
|
+
}
|
|
339
|
+
submitReview() {
|
|
340
|
+
const unresolved = this.selections.findIndex((selection) => !isResolved(selection));
|
|
341
|
+
if (unresolved >= 0) {
|
|
342
|
+
this.currentIndex = unresolved;
|
|
343
|
+
this.refresh();
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
this.complete(this.result(false));
|
|
347
|
+
}
|
|
348
|
+
handleInput(data) {
|
|
349
|
+
if (this.settled)
|
|
350
|
+
return;
|
|
351
|
+
if (this.input) {
|
|
352
|
+
if (this.keybindings.matches(data, "tui.select.cancel")) {
|
|
353
|
+
this.submitAfterPaste = false;
|
|
354
|
+
this.input.focused = false;
|
|
355
|
+
this.input = undefined;
|
|
356
|
+
this.refresh();
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (this.keybindings.matches(data, "app.clipboard.pasteImage")) {
|
|
360
|
+
void this.pasteIntoCustomAnswer();
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
if (this.pasteInFlight && this.keybindings.matches(data, "tui.input.submit")) {
|
|
364
|
+
this.submitAfterPaste = true;
|
|
365
|
+
this.inputStatus = "Finishing clipboard paste…";
|
|
366
|
+
this.refresh();
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
const input = this.input;
|
|
370
|
+
this.inputError = undefined;
|
|
371
|
+
this.inputStatus = undefined;
|
|
372
|
+
input.handleInput(data);
|
|
373
|
+
if (this.input === input)
|
|
374
|
+
this.refresh();
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
if (this.keybindings.matches(data, "tui.select.cancel")) {
|
|
378
|
+
this.cancel("user_cancelled");
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
if (this.keybindings.matches(data, "app.question.previous")) {
|
|
382
|
+
this.move(-1);
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
if (this.keybindings.matches(data, "app.question.next")) {
|
|
386
|
+
this.move(1);
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
if (this.currentIndex === this.questions.length) {
|
|
390
|
+
if (this.keybindings.matches(data, "tui.select.confirm"))
|
|
391
|
+
this.submitReview();
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
const question = this.questions[this.currentIndex];
|
|
395
|
+
if (!question)
|
|
396
|
+
return;
|
|
397
|
+
if (this.keybindings.matches(data, "tui.select.up")) {
|
|
398
|
+
this.cursors[this.currentIndex] = Math.max(0, (this.cursors[this.currentIndex] ?? 0) - 1);
|
|
399
|
+
this.refresh();
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
if (this.keybindings.matches(data, "tui.select.down")) {
|
|
403
|
+
this.cursors[this.currentIndex] = Math.min(question.options.length + 1, (this.cursors[this.currentIndex] ?? 0) + 1);
|
|
404
|
+
this.refresh();
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
if (this.keybindings.matches(data, "tui.select.confirm") ||
|
|
408
|
+
(question.multiSelect && this.keybindings.matches(data, "app.question.toggle"))) {
|
|
409
|
+
this.selectCurrent();
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
addWrapped(lines, text, width, indent = "") {
|
|
413
|
+
const contentWidth = Math.max(1, width - visibleWidth(indent));
|
|
414
|
+
for (const line of wrapTextWithAnsi(text, contentWidth)) {
|
|
415
|
+
lines.push(truncateToWidth(`${indent}${line}`, width, ""));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
renderProgress(lines, width) {
|
|
419
|
+
if (this.questions.length === 1 && !this.questions[0]?.multiSelect)
|
|
420
|
+
return;
|
|
421
|
+
const chips = this.questions.map((question, index) => {
|
|
422
|
+
const resolved = isResolved(this.selections[index]);
|
|
423
|
+
const text = ` ${resolved ? "●" : "○"} ${question.header} `;
|
|
424
|
+
return index === this.currentIndex
|
|
425
|
+
? this.theme.bg("selectedBg", this.theme.fg("text", text))
|
|
426
|
+
: this.theme.fg(resolved ? "success" : "muted", text);
|
|
427
|
+
});
|
|
428
|
+
const review = " Review ";
|
|
429
|
+
chips.push(this.currentIndex === this.questions.length
|
|
430
|
+
? this.theme.bg("selectedBg", this.theme.fg("text", review))
|
|
431
|
+
: this.theme.fg("dim", review));
|
|
432
|
+
lines.push(truncateToWidth(chips.join(" "), width, ""));
|
|
433
|
+
lines.push("");
|
|
434
|
+
}
|
|
435
|
+
renderQuestion(lines, width, question) {
|
|
436
|
+
const questionIndex = this.currentIndex;
|
|
437
|
+
const selection = this.selections[questionIndex];
|
|
438
|
+
const cursor = this.cursors[questionIndex] ?? 0;
|
|
439
|
+
this.addWrapped(lines, this.theme.bold(question.question), width);
|
|
440
|
+
if (question.multiSelect) {
|
|
441
|
+
lines.push(this.theme.fg("muted", "Choose one or more, then continue to review."));
|
|
442
|
+
}
|
|
443
|
+
lines.push("");
|
|
444
|
+
question.options.forEach((option, index) => {
|
|
445
|
+
const active = index === cursor;
|
|
446
|
+
const chosen = selection.optionIndexes.has(index);
|
|
447
|
+
const prefix = `${active ? "›" : " "} ${chosen ? "●" : "○"} `;
|
|
448
|
+
const label = `${prefix}${option.label}`;
|
|
449
|
+
lines.push(truncateToWidth(active ? this.theme.bg("selectedBg", this.theme.fg("text", ` ${label} `)) : this.theme.fg("text", label), width, ""));
|
|
450
|
+
this.addWrapped(lines, this.theme.fg("muted", option.description), width, " ");
|
|
451
|
+
});
|
|
452
|
+
const otherIndex = question.options.length;
|
|
453
|
+
const otherActive = cursor === otherIndex;
|
|
454
|
+
const otherLabel = selection.custom ? `Other: ${previewAnswer(selection.custom)}` : "Other";
|
|
455
|
+
const otherText = `${otherActive ? "›" : " "} ${selection.custom ? "●" : "+"} ${otherLabel}`;
|
|
456
|
+
lines.push(truncateToWidth(otherActive
|
|
457
|
+
? this.theme.bg("selectedBg", this.theme.fg("text", ` ${otherText} `))
|
|
458
|
+
: this.theme.fg("muted", otherText), width, ""));
|
|
459
|
+
const skipActive = cursor === otherIndex + 1;
|
|
460
|
+
const skipText = `${skipActive ? "›" : " "} ${selection.skipped ? "●" : "–"} Skip`;
|
|
461
|
+
lines.push(truncateToWidth(skipActive
|
|
462
|
+
? this.theme.bg("selectedBg", this.theme.fg("text", ` ${skipText} `))
|
|
463
|
+
: this.theme.fg("dim", skipText), width, ""));
|
|
464
|
+
if (this.input) {
|
|
465
|
+
lines.push("");
|
|
466
|
+
lines.push(this.theme.fg("muted", "Your answer"));
|
|
467
|
+
const renderedInput = this.input.render(Math.max(4, width - 2));
|
|
468
|
+
const cursorLine = Math.max(0, renderedInput.findIndex((line) => line.includes(CURSOR_MARKER)));
|
|
469
|
+
const viewportStart = Math.max(0, Math.min(cursorLine - Math.floor(ANSWER_EDITOR_VIEWPORT_LINES / 2), renderedInput.length - ANSWER_EDITOR_VIEWPORT_LINES));
|
|
470
|
+
const visibleInput = renderedInput.slice(viewportStart, viewportStart + ANSWER_EDITOR_VIEWPORT_LINES);
|
|
471
|
+
if (viewportStart > 0) {
|
|
472
|
+
lines.push(this.theme.fg("dim", ` ↑ ${viewportStart} earlier line${viewportStart === 1 ? "" : "s"}`));
|
|
473
|
+
}
|
|
474
|
+
for (const inputLine of visibleInput) {
|
|
475
|
+
lines.push(truncateToWidth(` ${inputLine}`, width, ""));
|
|
476
|
+
}
|
|
477
|
+
const remainingLines = renderedInput.length - viewportStart - visibleInput.length;
|
|
478
|
+
if (remainingLines > 0) {
|
|
479
|
+
lines.push(this.theme.fg("dim", ` ↓ ${remainingLines} later line${remainingLines === 1 ? "" : "s"}`));
|
|
480
|
+
}
|
|
481
|
+
if (this.inputError)
|
|
482
|
+
this.addWrapped(lines, this.theme.fg("warning", this.inputError), width, " ");
|
|
483
|
+
if (this.inputStatus)
|
|
484
|
+
this.addWrapped(lines, this.theme.fg("success", this.inputStatus), width, " ");
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
renderReview(lines, width) {
|
|
488
|
+
lines.push(this.theme.bold("Review your answers"));
|
|
489
|
+
lines.push("");
|
|
490
|
+
let unresolved = 0;
|
|
491
|
+
this.questions.forEach((question, index) => {
|
|
492
|
+
const answer = answerFor(question, this.selections[index]);
|
|
493
|
+
const values = [...answer.selected, ...(answer.custom ? [previewAnswer(answer.custom)] : [])];
|
|
494
|
+
const value = answer.skipped ? "Skipped" : values.length > 0 ? values.join(", ") : "Unanswered";
|
|
495
|
+
if (!isResolved(this.selections[index]))
|
|
496
|
+
unresolved++;
|
|
497
|
+
this.addWrapped(lines, `${this.theme.fg("muted", `${question.header}:`)} ${this.theme.fg(value === "Unanswered" ? "warning" : "text", value)}`, width);
|
|
498
|
+
});
|
|
499
|
+
if (unresolved > 0) {
|
|
500
|
+
lines.push("");
|
|
501
|
+
this.addWrapped(lines, this.theme.fg("warning", `${unresolved} unanswered. Answer or explicitly skip each question before submitting.`), width);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
renderHelp(lines, width) {
|
|
505
|
+
const cancel = displayKeys(this.keybindings, "tui.select.cancel", 1);
|
|
506
|
+
let help;
|
|
507
|
+
if (this.input) {
|
|
508
|
+
help = `${displayKeys(this.keybindings, "tui.input.submit", 1)} save · ${displayKeys(this.keybindings, "tui.input.newLine", 1)} newline · ${displayKeys(this.keybindings, "app.clipboard.pasteImage", 1)} paste · ${cancel} back`;
|
|
509
|
+
}
|
|
510
|
+
else if (this.currentIndex === this.questions.length) {
|
|
511
|
+
help = `${displayKeys(this.keybindings, "tui.select.confirm", 1)} submit · ${displayKeys(this.keybindings, "app.question.previous")} back · ${cancel} cancel`;
|
|
512
|
+
}
|
|
513
|
+
else if (this.questions[this.currentIndex]?.multiSelect) {
|
|
514
|
+
help = `${displayKeys(this.keybindings, "tui.select.up")}/${displayKeys(this.keybindings, "tui.select.down")} move · ${displayKeys(this.keybindings, "app.question.toggle", 1)}/${displayKeys(this.keybindings, "tui.select.confirm", 1)} toggle · ${displayKeys(this.keybindings, "app.question.next")} next · ${cancel} cancel`;
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
help = `${displayKeys(this.keybindings, "tui.select.up")}/${displayKeys(this.keybindings, "tui.select.down")} move · ${displayKeys(this.keybindings, "tui.select.confirm", 1)} select · ${cancel} cancel`;
|
|
518
|
+
}
|
|
519
|
+
this.addWrapped(lines, this.theme.fg("dim", help), width);
|
|
520
|
+
}
|
|
521
|
+
render(width) {
|
|
522
|
+
if (this.cachedWidth === width && this.cachedLines)
|
|
523
|
+
return this.cachedLines;
|
|
524
|
+
const safeWidth = Math.max(1, width);
|
|
525
|
+
const lines = [];
|
|
526
|
+
const header = this.currentIndex === this.questions.length ? "review" : this.questions[this.currentIndex]?.header;
|
|
527
|
+
lines.push(truncateToWidth(`${this.theme.fg("accent", "?")} ${this.theme.bold(header ?? "question")} ${this.theme.fg("dim", `${Math.min(this.currentIndex + 1, this.questions.length)}/${this.questions.length}`)}`, safeWidth, ""));
|
|
528
|
+
lines.push("");
|
|
529
|
+
this.renderProgress(lines, safeWidth);
|
|
530
|
+
const question = this.questions[this.currentIndex];
|
|
531
|
+
if (question)
|
|
532
|
+
this.renderQuestion(lines, safeWidth, question);
|
|
533
|
+
else
|
|
534
|
+
this.renderReview(lines, safeWidth);
|
|
535
|
+
lines.push("");
|
|
536
|
+
this.renderHelp(lines, safeWidth);
|
|
537
|
+
this.cachedWidth = width;
|
|
538
|
+
this.cachedLines = lines.map((line) => truncateToWidth(line, safeWidth, ""));
|
|
539
|
+
return this.cachedLines;
|
|
540
|
+
}
|
|
541
|
+
invalidate() {
|
|
542
|
+
this.cachedWidth = undefined;
|
|
543
|
+
this.cachedLines = undefined;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
function questionPanelModel(details) {
|
|
547
|
+
if (!details) {
|
|
548
|
+
return { label: "question", status: "error", emptyText: "No structured answer was retained." };
|
|
549
|
+
}
|
|
550
|
+
if (details.reason === "ui_unavailable" || details.reason === "invalid_questions") {
|
|
551
|
+
return {
|
|
552
|
+
label: "question",
|
|
553
|
+
action: "unavailable",
|
|
554
|
+
status: "error",
|
|
555
|
+
emptyText: details.error ?? "User input is unavailable.",
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
const rows = details.questions.map((question) => {
|
|
559
|
+
const answer = details.answers.find((candidate) => candidate.id === question.id);
|
|
560
|
+
const values = answer ? [...answer.selected, ...(answer.custom ? [previewAnswer(answer.custom)] : [])] : [];
|
|
561
|
+
const imageCount = answer?.images?.length ?? 0;
|
|
562
|
+
return {
|
|
563
|
+
status: details.cancelled
|
|
564
|
+
? "cancelled"
|
|
565
|
+
: answer?.skipped
|
|
566
|
+
? "cancelled"
|
|
567
|
+
: "completed",
|
|
568
|
+
label: question.header,
|
|
569
|
+
meta: details.cancelled
|
|
570
|
+
? [details.reason === "interrupted" ? "interrupted" : "cancelled"]
|
|
571
|
+
: answer?.skipped
|
|
572
|
+
? ["skipped"]
|
|
573
|
+
: [
|
|
574
|
+
values.length > 1 ? `${values.length} selected` : undefined,
|
|
575
|
+
imageCount > 0 ? `${imageCount} image${imageCount === 1 ? "" : "s"}` : undefined,
|
|
576
|
+
].filter((value) => value !== undefined),
|
|
577
|
+
details: values.length > 0 ? [`answer: ${values.join(", ")}`] : undefined,
|
|
578
|
+
};
|
|
579
|
+
});
|
|
580
|
+
const skipped = details.answers.filter((answer) => answer.skipped).length;
|
|
581
|
+
return {
|
|
582
|
+
label: "question",
|
|
583
|
+
action: details.cancelled ? "cancelled" : "answered",
|
|
584
|
+
status: details.cancelled ? "warning" : "success",
|
|
585
|
+
summary: details.cancelled
|
|
586
|
+
? undefined
|
|
587
|
+
: [`${details.answers.length - skipped} answered`, skipped ? `${skipped} skipped` : undefined].filter((value) => value !== undefined),
|
|
588
|
+
rows,
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
function stoppedResult(questions, reason, error) {
|
|
592
|
+
return {
|
|
593
|
+
content: [{ type: "text", text: error ?? `ask_question stopped: ${reason}` }],
|
|
594
|
+
details: { questions, answers: [], cancelled: true, reason, ...(error ? { error } : {}) },
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
export function createAskQuestionToolDefinition(options = {}) {
|
|
598
|
+
const name = options.name ?? "ask_question";
|
|
599
|
+
return defineTool({
|
|
600
|
+
name,
|
|
601
|
+
label: options.label ?? "Ask Question",
|
|
602
|
+
description: "Ask the human owner one to four concise questions when a missing choice materially changes the work. The harness supplies Other and Skip choices, supports single- and multi-select answers, and returns a typed answer set.",
|
|
603
|
+
promptSnippet: "Ask the human owner for a consequential missing choice through the native interactive UI.",
|
|
604
|
+
promptGuidelines: [
|
|
605
|
+
"Use this tool only when a missing owner choice materially changes the result, authority, risk, or acceptance criteria; otherwise proceed with a safe stated assumption.",
|
|
606
|
+
"Batch independent questions into one call, with at most four questions and two to four genuine options each.",
|
|
607
|
+
"Make every option label concise and describe its concrete consequence or tradeoff. Do not add Other, Skip, None, or filler options; the harness supplies Other and Skip.",
|
|
608
|
+
"Set multiSelect only when choices are genuinely independent. Never use a question to delegate a decision already fixed by an owner-authored profile or policy.",
|
|
609
|
+
"Respect skipped or cancelled input as owner intent. Do not immediately repeat the same question; proceed safely or report the unresolved boundary.",
|
|
610
|
+
],
|
|
611
|
+
parameters: askQuestionSchema,
|
|
612
|
+
executionMode: "sequential",
|
|
613
|
+
renderShell: "self",
|
|
614
|
+
renderCall() {
|
|
615
|
+
return emptyOrchestrationCall();
|
|
616
|
+
},
|
|
617
|
+
renderResult(result, { expanded, isPartial }, theme) {
|
|
618
|
+
if (isPartial) {
|
|
619
|
+
return new OrchestrationPanelComponent(theme, {
|
|
620
|
+
label: "question",
|
|
621
|
+
action: "waiting for you",
|
|
622
|
+
status: "running",
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
return new OrchestrationPanelComponent(theme, questionPanelModel(result.details), expanded);
|
|
626
|
+
},
|
|
627
|
+
async execute(_toolCallId, input, signal, _onUpdate, ctx) {
|
|
628
|
+
const validationError = validateQuestions(input.questions);
|
|
629
|
+
if (validationError)
|
|
630
|
+
return stoppedResult(input.questions, "invalid_questions", validationError);
|
|
631
|
+
if (!ctx.hasUI) {
|
|
632
|
+
return stoppedResult(input.questions, "ui_unavailable", "ask_question requires interactive UI.");
|
|
633
|
+
}
|
|
634
|
+
if (signal?.aborted)
|
|
635
|
+
return stoppedResult(input.questions, "interrupted");
|
|
636
|
+
const request = createHumanInputRequest({
|
|
637
|
+
source: "tool",
|
|
638
|
+
toolCallId: _toolCallId,
|
|
639
|
+
toolName: name,
|
|
640
|
+
questions: input.questions,
|
|
641
|
+
acceptsImages: ctx.model?.input.includes("image") ?? false,
|
|
642
|
+
});
|
|
643
|
+
if (options.sessionManager)
|
|
644
|
+
beginHumanInputRequest(options.sessionManager, request);
|
|
645
|
+
const resolved = options.sessionManager
|
|
646
|
+
? await resolveHumanInput({
|
|
647
|
+
sessionManager: options.sessionManager,
|
|
648
|
+
request,
|
|
649
|
+
present: (presentation, dialogOptions) => ctx.ui.askQuestions(presentation, dialogOptions),
|
|
650
|
+
artifactStore: options.artifactStore,
|
|
651
|
+
getImageStore: options.getImageStore,
|
|
652
|
+
signal,
|
|
653
|
+
})
|
|
654
|
+
: await (async () => {
|
|
655
|
+
const result = await ctx.ui.askQuestions({
|
|
656
|
+
requestId: request.requestId,
|
|
657
|
+
questions: request.questions,
|
|
658
|
+
acceptsImages: request.acceptsImages,
|
|
659
|
+
}, { signal });
|
|
660
|
+
return {
|
|
661
|
+
snapshot: {
|
|
662
|
+
request,
|
|
663
|
+
status: result.cancelled ? "cancelled" : "answered",
|
|
664
|
+
answers: result.answers,
|
|
665
|
+
...(result.reason ? { reason: result.reason } : {}),
|
|
666
|
+
updatedAt: new Date().toISOString(),
|
|
667
|
+
},
|
|
668
|
+
imageContents: result.imageContents,
|
|
669
|
+
};
|
|
670
|
+
})();
|
|
671
|
+
const details = {
|
|
672
|
+
questions: input.questions,
|
|
673
|
+
answers: resolved.snapshot.answers,
|
|
674
|
+
cancelled: resolved.snapshot.status === "cancelled",
|
|
675
|
+
...(resolved.snapshot.reason ? { reason: resolved.snapshot.reason } : {}),
|
|
676
|
+
};
|
|
677
|
+
if (details.cancelled) {
|
|
678
|
+
return {
|
|
679
|
+
content: [{ type: "text", text: formatHumanInputAnswerText(resolved.snapshot) }],
|
|
680
|
+
details,
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
return {
|
|
684
|
+
content: [
|
|
685
|
+
{ type: "text", text: formatHumanInputAnswerText(resolved.snapshot) },
|
|
686
|
+
...resolved.imageContents,
|
|
687
|
+
],
|
|
688
|
+
details,
|
|
689
|
+
};
|
|
690
|
+
},
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
//# sourceMappingURL=ask-question.js.map
|