@coool/opencode-adaptive 0.0.0-stage → 1.0.0
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/LICENSE +21 -0
- package/README.md +98 -2
- package/dist/adapters/codex-capacity/index.d.ts +5 -0
- package/dist/adapters/codex-capacity/index.d.ts.map +1 -0
- package/dist/adapters/codex-capacity/index.js +5 -0
- package/dist/adapters/codex-capacity/index.js.map +1 -0
- package/dist/adapters/codex-capacity/parse.d.ts +28 -0
- package/dist/adapters/codex-capacity/parse.d.ts.map +1 -0
- package/dist/adapters/codex-capacity/parse.js +130 -0
- package/dist/adapters/codex-capacity/parse.js.map +1 -0
- package/dist/adapters/codex-capacity/reading.d.ts +10 -0
- package/dist/adapters/codex-capacity/reading.d.ts.map +1 -0
- package/dist/adapters/codex-capacity/reading.js +45 -0
- package/dist/adapters/codex-capacity/reading.js.map +1 -0
- package/dist/adapters/codex-capacity/sensor.d.ts +24 -0
- package/dist/adapters/codex-capacity/sensor.d.ts.map +1 -0
- package/dist/adapters/codex-capacity/sensor.js +30 -0
- package/dist/adapters/codex-capacity/sensor.js.map +1 -0
- package/dist/adapters/codex-capacity/types.d.ts +35 -0
- package/dist/adapters/codex-capacity/types.d.ts.map +1 -0
- package/dist/adapters/codex-capacity/types.js +4 -0
- package/dist/adapters/codex-capacity/types.js.map +1 -0
- package/dist/adapters/opencode/escalation-tool.d.ts +52 -0
- package/dist/adapters/opencode/escalation-tool.d.ts.map +1 -0
- package/dist/adapters/opencode/escalation-tool.js +59 -0
- package/dist/adapters/opencode/escalation-tool.js.map +1 -0
- package/dist/adapters/opencode/events.d.ts +24 -0
- package/dist/adapters/opencode/events.d.ts.map +1 -0
- package/dist/adapters/opencode/events.js +68 -0
- package/dist/adapters/opencode/events.js.map +1 -0
- package/dist/adapters/opencode/hooks.d.ts +35 -0
- package/dist/adapters/opencode/hooks.d.ts.map +1 -0
- package/dist/adapters/opencode/hooks.js +12 -0
- package/dist/adapters/opencode/hooks.js.map +1 -0
- package/dist/adapters/opencode/index.d.ts +17 -0
- package/dist/adapters/opencode/index.d.ts.map +1 -0
- package/dist/adapters/opencode/index.js +9 -0
- package/dist/adapters/opencode/index.js.map +1 -0
- package/dist/adapters/opencode/inventory.d.ts +31 -0
- package/dist/adapters/opencode/inventory.d.ts.map +1 -0
- package/dist/adapters/opencode/inventory.js +53 -0
- package/dist/adapters/opencode/inventory.js.map +1 -0
- package/dist/adapters/opencode/report.d.ts +92 -0
- package/dist/adapters/opencode/report.d.ts.map +1 -0
- package/dist/adapters/opencode/report.js +145 -0
- package/dist/adapters/opencode/report.js.map +1 -0
- package/dist/adapters/opencode/session-ops.d.ts +40 -0
- package/dist/adapters/opencode/session-ops.d.ts.map +1 -0
- package/dist/adapters/opencode/session-ops.js +32 -0
- package/dist/adapters/opencode/session-ops.js.map +1 -0
- package/dist/adapters/opencode/storage.d.ts +16 -0
- package/dist/adapters/opencode/storage.d.ts.map +1 -0
- package/dist/adapters/opencode/storage.js +8 -0
- package/dist/adapters/opencode/storage.js.map +1 -0
- package/dist/adapters/opencode/tier-tool.d.ts +38 -0
- package/dist/adapters/opencode/tier-tool.d.ts.map +1 -0
- package/dist/adapters/opencode/tier-tool.js +72 -0
- package/dist/adapters/opencode/tier-tool.js.map +1 -0
- package/dist/adapters/opencode/types.d.ts +102 -0
- package/dist/adapters/opencode/types.d.ts.map +1 -0
- package/dist/adapters/opencode/types.js +2 -0
- package/dist/adapters/opencode/types.js.map +1 -0
- package/dist/core/compatibility/gate.d.ts +10 -0
- package/dist/core/compatibility/gate.d.ts.map +1 -0
- package/dist/core/compatibility/gate.js +55 -0
- package/dist/core/compatibility/gate.js.map +1 -0
- package/dist/core/compatibility/index.d.ts +3 -0
- package/dist/core/compatibility/index.d.ts.map +1 -0
- package/dist/core/compatibility/index.js +3 -0
- package/dist/core/compatibility/index.js.map +1 -0
- package/dist/core/compatibility/types.d.ts +54 -0
- package/dist/core/compatibility/types.d.ts.map +1 -0
- package/dist/core/compatibility/types.js +27 -0
- package/dist/core/compatibility/types.js.map +1 -0
- package/dist/core/scheduler/admit.d.ts +7 -0
- package/dist/core/scheduler/admit.d.ts.map +1 -0
- package/dist/core/scheduler/admit.js +153 -0
- package/dist/core/scheduler/admit.js.map +1 -0
- package/dist/core/scheduler/escalate.d.ts +7 -0
- package/dist/core/scheduler/escalate.d.ts.map +1 -0
- package/dist/core/scheduler/escalate.js +56 -0
- package/dist/core/scheduler/escalate.js.map +1 -0
- package/dist/core/scheduler/index.d.ts +5 -0
- package/dist/core/scheduler/index.d.ts.map +1 -0
- package/dist/core/scheduler/index.js +5 -0
- package/dist/core/scheduler/index.js.map +1 -0
- package/dist/core/scheduler/mode.d.ts +9 -0
- package/dist/core/scheduler/mode.d.ts.map +1 -0
- package/dist/core/scheduler/mode.js +10 -0
- package/dist/core/scheduler/mode.js.map +1 -0
- package/dist/core/scheduler/types.d.ts +143 -0
- package/dist/core/scheduler/types.d.ts.map +1 -0
- package/dist/core/scheduler/types.js +74 -0
- package/dist/core/scheduler/types.js.map +1 -0
- package/dist/core/tier-policy/index.d.ts +4 -0
- package/dist/core/tier-policy/index.d.ts.map +1 -0
- package/dist/core/tier-policy/index.js +4 -0
- package/dist/core/tier-policy/index.js.map +1 -0
- package/dist/core/tier-policy/resolve.d.ts +19 -0
- package/dist/core/tier-policy/resolve.d.ts.map +1 -0
- package/dist/core/tier-policy/resolve.js +52 -0
- package/dist/core/tier-policy/resolve.js.map +1 -0
- package/dist/core/tier-policy/tier-list.d.ts +11 -0
- package/dist/core/tier-policy/tier-list.d.ts.map +1 -0
- package/dist/core/tier-policy/tier-list.js +23 -0
- package/dist/core/tier-policy/tier-list.js.map +1 -0
- package/dist/core/tier-policy/types.d.ts +85 -0
- package/dist/core/tier-policy/types.d.ts.map +1 -0
- package/dist/core/tier-policy/types.js +45 -0
- package/dist/core/tier-policy/types.js.map +1 -0
- package/dist/core/work-unit/index.d.ts +4 -0
- package/dist/core/work-unit/index.d.ts.map +1 -0
- package/dist/core/work-unit/index.js +4 -0
- package/dist/core/work-unit/index.js.map +1 -0
- package/dist/core/work-unit/interruption.d.ts +8 -0
- package/dist/core/work-unit/interruption.d.ts.map +1 -0
- package/dist/core/work-unit/interruption.js +12 -0
- package/dist/core/work-unit/interruption.js.map +1 -0
- package/dist/core/work-unit/tracker.d.ts +46 -0
- package/dist/core/work-unit/tracker.d.ts.map +1 -0
- package/dist/core/work-unit/tracker.js +136 -0
- package/dist/core/work-unit/tracker.js.map +1 -0
- package/dist/core/work-unit/types.d.ts +146 -0
- package/dist/core/work-unit/types.d.ts.map +1 -0
- package/dist/core/work-unit/types.js +23 -0
- package/dist/core/work-unit/types.js.map +1 -0
- package/dist/execution/continuation/execute.d.ts +19 -0
- package/dist/execution/continuation/execute.d.ts.map +1 -0
- package/dist/execution/continuation/execute.js +31 -0
- package/dist/execution/continuation/execute.js.map +1 -0
- package/dist/execution/continuation/index.d.ts +6 -0
- package/dist/execution/continuation/index.d.ts.map +1 -0
- package/dist/execution/continuation/index.js +5 -0
- package/dist/execution/continuation/index.js.map +1 -0
- package/dist/execution/continuation/ledger.d.ts +20 -0
- package/dist/execution/continuation/ledger.d.ts.map +1 -0
- package/dist/execution/continuation/ledger.js +31 -0
- package/dist/execution/continuation/ledger.js.map +1 -0
- package/dist/execution/continuation/plan.d.ts +13 -0
- package/dist/execution/continuation/plan.d.ts.map +1 -0
- package/dist/execution/continuation/plan.js +20 -0
- package/dist/execution/continuation/plan.js.map +1 -0
- package/dist/execution/continuation/prompts.d.ts +8 -0
- package/dist/execution/continuation/prompts.d.ts.map +1 -0
- package/dist/execution/continuation/prompts.js +8 -0
- package/dist/execution/continuation/prompts.js.map +1 -0
- package/dist/execution/continuation/types.d.ts +70 -0
- package/dist/execution/continuation/types.d.ts.map +1 -0
- package/dist/execution/continuation/types.js +15 -0
- package/dist/execution/continuation/types.js.map +1 -0
- package/dist/execution/escalation/index.d.ts +2 -0
- package/dist/execution/escalation/index.d.ts.map +1 -0
- package/dist/execution/escalation/index.js +2 -0
- package/dist/execution/escalation/index.js.map +1 -0
- package/dist/execution/escalation/types.d.ts +31 -0
- package/dist/execution/escalation/types.d.ts.map +1 -0
- package/dist/execution/escalation/types.js +49 -0
- package/dist/execution/escalation/types.js.map +1 -0
- package/dist/execution/index.d.ts +5 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +5 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/parking/index.d.ts +3 -0
- package/dist/execution/parking/index.d.ts.map +1 -0
- package/dist/execution/parking/index.js +2 -0
- package/dist/execution/parking/index.js.map +1 -0
- package/dist/execution/parking/plan.d.ts +40 -0
- package/dist/execution/parking/plan.d.ts.map +1 -0
- package/dist/execution/parking/plan.js +34 -0
- package/dist/execution/parking/plan.js.map +1 -0
- package/dist/execution/recovery/gate.d.ts +20 -0
- package/dist/execution/recovery/gate.d.ts.map +1 -0
- package/dist/execution/recovery/gate.js +23 -0
- package/dist/execution/recovery/gate.js.map +1 -0
- package/dist/execution/recovery/index.d.ts +3 -0
- package/dist/execution/recovery/index.d.ts.map +1 -0
- package/dist/execution/recovery/index.js +2 -0
- package/dist/execution/recovery/index.js.map +1 -0
- package/dist/execution/retry/decide.d.ts +30 -0
- package/dist/execution/retry/decide.d.ts.map +1 -0
- package/dist/execution/retry/decide.js +76 -0
- package/dist/execution/retry/decide.js.map +1 -0
- package/dist/execution/retry/index.d.ts +3 -0
- package/dist/execution/retry/index.d.ts.map +1 -0
- package/dist/execution/retry/index.js +3 -0
- package/dist/execution/retry/index.js.map +1 -0
- package/dist/execution/retry/types.d.ts +66 -0
- package/dist/execution/retry/types.d.ts.map +1 -0
- package/dist/execution/retry/types.js +9 -0
- package/dist/execution/retry/types.js.map +1 -0
- package/dist/gui-experimental.cjs +1 -0
- package/dist/gui.d.ts +17 -0
- package/dist/gui.d.ts.map +1 -0
- package/dist/gui.js +70 -0
- package/dist/gui.js.map +1 -0
- package/dist/health/capacity/index.d.ts +4 -0
- package/dist/health/capacity/index.d.ts.map +1 -0
- package/dist/health/capacity/index.js +4 -0
- package/dist/health/capacity/index.js.map +1 -0
- package/dist/health/capacity/merge.d.ts +58 -0
- package/dist/health/capacity/merge.d.ts.map +1 -0
- package/dist/health/capacity/merge.js +154 -0
- package/dist/health/capacity/merge.js.map +1 -0
- package/dist/health/capacity/registry.d.ts +41 -0
- package/dist/health/capacity/registry.d.ts.map +1 -0
- package/dist/health/capacity/registry.js +106 -0
- package/dist/health/capacity/registry.js.map +1 -0
- package/dist/health/capacity/types.d.ts +74 -0
- package/dist/health/capacity/types.d.ts.map +1 -0
- package/dist/health/capacity/types.js +6 -0
- package/dist/health/capacity/types.js.map +1 -0
- package/dist/health/circuit-breaker/breaker.d.ts +84 -0
- package/dist/health/circuit-breaker/breaker.d.ts.map +1 -0
- package/dist/health/circuit-breaker/breaker.js +132 -0
- package/dist/health/circuit-breaker/breaker.js.map +1 -0
- package/dist/health/circuit-breaker/index.d.ts +3 -0
- package/dist/health/circuit-breaker/index.d.ts.map +1 -0
- package/dist/health/circuit-breaker/index.js +3 -0
- package/dist/health/circuit-breaker/index.js.map +1 -0
- package/dist/health/circuit-breaker/types.d.ts +53 -0
- package/dist/health/circuit-breaker/types.d.ts.map +1 -0
- package/dist/health/circuit-breaker/types.js +13 -0
- package/dist/health/circuit-breaker/types.js.map +1 -0
- package/dist/health/classifier/classify.d.ts +9 -0
- package/dist/health/classifier/classify.d.ts.map +1 -0
- package/dist/health/classifier/classify.js +245 -0
- package/dist/health/classifier/classify.js.map +1 -0
- package/dist/health/classifier/index.d.ts +3 -0
- package/dist/health/classifier/index.d.ts.map +1 -0
- package/dist/health/classifier/index.js +3 -0
- package/dist/health/classifier/index.js.map +1 -0
- package/dist/health/classifier/types.d.ts +72 -0
- package/dist/health/classifier/types.d.ts.map +1 -0
- package/dist/health/classifier/types.js +27 -0
- package/dist/health/classifier/types.js.map +1 -0
- package/dist/health/index.d.ts +5 -0
- package/dist/health/index.d.ts.map +1 -0
- package/dist/health/index.js +5 -0
- package/dist/health/index.js.map +1 -0
- package/dist/health/resource-health/index.d.ts +5 -0
- package/dist/health/resource-health/index.d.ts.map +1 -0
- package/dist/health/resource-health/index.js +5 -0
- package/dist/health/resource-health/index.js.map +1 -0
- package/dist/health/resource-health/key.d.ts +19 -0
- package/dist/health/resource-health/key.d.ts.map +1 -0
- package/dist/health/resource-health/key.js +54 -0
- package/dist/health/resource-health/key.js.map +1 -0
- package/dist/health/resource-health/registry.d.ts +41 -0
- package/dist/health/resource-health/registry.d.ts.map +1 -0
- package/dist/health/resource-health/registry.js +258 -0
- package/dist/health/resource-health/registry.js.map +1 -0
- package/dist/health/resource-health/transitions.d.ts +11 -0
- package/dist/health/resource-health/transitions.d.ts.map +1 -0
- package/dist/health/resource-health/transitions.js +165 -0
- package/dist/health/resource-health/transitions.js.map +1 -0
- package/dist/health/resource-health/types.d.ts +116 -0
- package/dist/health/resource-health/types.d.ts.map +1 -0
- package/dist/health/resource-health/types.js +43 -0
- package/dist/health/resource-health/types.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin-id.d.ts +3 -0
- package/dist/plugin-id.d.ts.map +1 -0
- package/dist/plugin-id.js +3 -0
- package/dist/plugin-id.js.map +1 -0
- package/dist/rpc/definition.d.ts +100 -0
- package/dist/rpc/definition.d.ts.map +1 -0
- package/dist/rpc/definition.js +104 -0
- package/dist/rpc/definition.js.map +1 -0
- package/dist/rpc/handlers.d.ts +65 -0
- package/dist/rpc/handlers.d.ts.map +1 -0
- package/dist/rpc/handlers.js +111 -0
- package/dist/rpc/handlers.js.map +1 -0
- package/dist/rpc/status.d.ts +43 -0
- package/dist/rpc/status.d.ts.map +1 -0
- package/dist/rpc/status.js +45 -0
- package/dist/rpc/status.js.map +1 -0
- package/dist/rpc.d.ts +11 -0
- package/dist/rpc.d.ts.map +1 -0
- package/dist/rpc.js +8 -0
- package/dist/rpc.js.map +1 -0
- package/dist/state/capacity/index.d.ts +4 -0
- package/dist/state/capacity/index.d.ts.map +1 -0
- package/dist/state/capacity/index.js +4 -0
- package/dist/state/capacity/index.js.map +1 -0
- package/dist/state/capacity/parse.d.ts +3 -0
- package/dist/state/capacity/parse.d.ts.map +1 -0
- package/dist/state/capacity/parse.js +110 -0
- package/dist/state/capacity/parse.js.map +1 -0
- package/dist/state/capacity/store.d.ts +19 -0
- package/dist/state/capacity/store.d.ts.map +1 -0
- package/dist/state/capacity/store.js +64 -0
- package/dist/state/capacity/store.js.map +1 -0
- package/dist/state/capacity/types.d.ts +38 -0
- package/dist/state/capacity/types.d.ts.map +1 -0
- package/dist/state/capacity/types.js +11 -0
- package/dist/state/capacity/types.js.map +1 -0
- package/dist/state/health/index.d.ts +5 -0
- package/dist/state/health/index.d.ts.map +1 -0
- package/dist/state/health/index.js +4 -0
- package/dist/state/health/index.js.map +1 -0
- package/dist/state/health/parse.d.ts +3 -0
- package/dist/state/health/parse.d.ts.map +1 -0
- package/dist/state/health/parse.js +121 -0
- package/dist/state/health/parse.js.map +1 -0
- package/dist/state/health/store.d.ts +18 -0
- package/dist/state/health/store.d.ts.map +1 -0
- package/dist/state/health/store.js +55 -0
- package/dist/state/health/store.js.map +1 -0
- package/dist/state/health/types.d.ts +24 -0
- package/dist/state/health/types.d.ts.map +1 -0
- package/dist/state/health/types.js +5 -0
- package/dist/state/health/types.js.map +1 -0
- package/dist/state/parked-work/index.d.ts +5 -0
- package/dist/state/parked-work/index.d.ts.map +1 -0
- package/dist/state/parked-work/index.js +4 -0
- package/dist/state/parked-work/index.js.map +1 -0
- package/dist/state/parked-work/parse.d.ts +7 -0
- package/dist/state/parked-work/parse.d.ts.map +1 -0
- package/dist/state/parked-work/parse.js +83 -0
- package/dist/state/parked-work/parse.js.map +1 -0
- package/dist/state/parked-work/store.d.ts +18 -0
- package/dist/state/parked-work/store.d.ts.map +1 -0
- package/dist/state/parked-work/store.js +81 -0
- package/dist/state/parked-work/store.js.map +1 -0
- package/dist/state/parked-work/types.d.ts +42 -0
- package/dist/state/parked-work/types.d.ts.map +1 -0
- package/dist/state/parked-work/types.js +7 -0
- package/dist/state/parked-work/types.js.map +1 -0
- package/dist/state/receipts/bound.d.ts +15 -0
- package/dist/state/receipts/bound.d.ts.map +1 -0
- package/dist/state/receipts/bound.js +77 -0
- package/dist/state/receipts/bound.js.map +1 -0
- package/dist/state/receipts/index.d.ts +7 -0
- package/dist/state/receipts/index.d.ts.map +1 -0
- package/dist/state/receipts/index.js +5 -0
- package/dist/state/receipts/index.js.map +1 -0
- package/dist/state/receipts/parse.d.ts +7 -0
- package/dist/state/receipts/parse.d.ts.map +1 -0
- package/dist/state/receipts/parse.js +226 -0
- package/dist/state/receipts/parse.js.map +1 -0
- package/dist/state/receipts/store.d.ts +35 -0
- package/dist/state/receipts/store.d.ts.map +1 -0
- package/dist/state/receipts/store.js +128 -0
- package/dist/state/receipts/store.js.map +1 -0
- package/dist/state/receipts/types.d.ts +62 -0
- package/dist/state/receipts/types.d.ts.map +1 -0
- package/dist/state/receipts/types.js +12 -0
- package/dist/state/receipts/types.js.map +1 -0
- package/dist/state/session-modes/index.d.ts +5 -0
- package/dist/state/session-modes/index.d.ts.map +1 -0
- package/dist/state/session-modes/index.js +4 -0
- package/dist/state/session-modes/index.js.map +1 -0
- package/dist/state/session-modes/parse.d.ts +9 -0
- package/dist/state/session-modes/parse.d.ts.map +1 -0
- package/dist/state/session-modes/parse.js +62 -0
- package/dist/state/session-modes/parse.js.map +1 -0
- package/dist/state/session-modes/store.d.ts +21 -0
- package/dist/state/session-modes/store.d.ts.map +1 -0
- package/dist/state/session-modes/store.js +73 -0
- package/dist/state/session-modes/store.js.map +1 -0
- package/dist/state/session-modes/types.d.ts +42 -0
- package/dist/state/session-modes/types.d.ts.map +1 -0
- package/dist/state/session-modes/types.js +7 -0
- package/dist/state/session-modes/types.js.map +1 -0
- package/dist/state/settings/index.d.ts +5 -0
- package/dist/state/settings/index.d.ts.map +1 -0
- package/dist/state/settings/index.js +4 -0
- package/dist/state/settings/index.js.map +1 -0
- package/dist/state/settings/parse.d.ts +34 -0
- package/dist/state/settings/parse.d.ts.map +1 -0
- package/dist/state/settings/parse.js +261 -0
- package/dist/state/settings/parse.js.map +1 -0
- package/dist/state/settings/store.d.ts +22 -0
- package/dist/state/settings/store.d.ts.map +1 -0
- package/dist/state/settings/store.js +57 -0
- package/dist/state/settings/store.js.map +1 -0
- package/dist/state/settings/types.d.ts +63 -0
- package/dist/state/settings/types.d.ts.map +1 -0
- package/dist/state/settings/types.js +12 -0
- package/dist/state/settings/types.js.map +1 -0
- package/dist/supervisor/index.d.ts +5 -0
- package/dist/supervisor/index.d.ts.map +1 -0
- package/dist/supervisor/index.js +4 -0
- package/dist/supervisor/index.js.map +1 -0
- package/dist/supervisor/log.d.ts +11 -0
- package/dist/supervisor/log.d.ts.map +1 -0
- package/dist/supervisor/log.js +14 -0
- package/dist/supervisor/log.js.map +1 -0
- package/dist/supervisor/supervisor.d.ts +69 -0
- package/dist/supervisor/supervisor.d.ts.map +1 -0
- package/dist/supervisor/supervisor.js +1343 -0
- package/dist/supervisor/supervisor.js.map +1 -0
- package/dist/supervisor/types.d.ts +50 -0
- package/dist/supervisor/types.d.ts.map +1 -0
- package/dist/supervisor/types.js +3 -0
- package/dist/supervisor/types.js.map +1 -0
- package/dist/supervisor/view.d.ts +4 -0
- package/dist/supervisor/view.d.ts.map +1 -0
- package/dist/supervisor/view.js +4 -0
- package/dist/supervisor/view.js.map +1 -0
- package/dist/tui.d.ts +16 -0
- package/dist/tui.d.ts.map +1 -0
- package/dist/tui.js +252 -0
- package/dist/tui.js.map +1 -0
- package/dist/ui/gui/api.d.ts +18 -0
- package/dist/ui/gui/api.d.ts.map +1 -0
- package/dist/ui/gui/api.js +21 -0
- package/dist/ui/gui/api.js.map +1 -0
- package/dist/ui/gui/view.d.ts +27 -0
- package/dist/ui/gui/view.d.ts.map +1 -0
- package/dist/ui/gui/view.js +49 -0
- package/dist/ui/gui/view.js.map +1 -0
- package/dist/ui/tui/controller.d.ts +98 -0
- package/dist/ui/tui/controller.d.ts.map +1 -0
- package/dist/ui/tui/controller.js +399 -0
- package/dist/ui/tui/controller.js.map +1 -0
- package/dist/ui/tui/menu.d.ts +56 -0
- package/dist/ui/tui/menu.d.ts.map +1 -0
- package/dist/ui/tui/menu.js +176 -0
- package/dist/ui/tui/menu.js.map +1 -0
- package/dist/ui/tui/options.d.ts +20 -0
- package/dist/ui/tui/options.d.ts.map +1 -0
- package/dist/ui/tui/options.js +17 -0
- package/dist/ui/tui/options.js.map +1 -0
- package/dist/ui/tui/receipts.d.ts +22 -0
- package/dist/ui/tui/receipts.d.ts.map +1 -0
- package/dist/ui/tui/receipts.js +109 -0
- package/dist/ui/tui/receipts.js.map +1 -0
- package/dist/ui/tui/status.d.ts +23 -0
- package/dist/ui/tui/status.d.ts.map +1 -0
- package/dist/ui/tui/status.js +90 -0
- package/dist/ui/tui/status.js.map +1 -0
- package/dist/ui/tui/tiers.d.ts +52 -0
- package/dist/ui/tui/tiers.d.ts.map +1 -0
- package/dist/ui/tui/tiers.js +108 -0
- package/dist/ui/tui/tiers.js.map +1 -0
- package/package.json +85 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../src/execution/continuation/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAE3E;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,kBAAkB,CAOjF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Partial-work safety planner (ADP-023). Total, deterministic, pure.
|
|
3
|
+
*
|
|
4
|
+
* - No owned recovery: OpenCode's native retry is the preferred recovery;
|
|
5
|
+
* Adaptive leaves it alone.
|
|
6
|
+
* - Owned recovery and the in-session path is possible: continue the same
|
|
7
|
+
* session on the recovered candidate (settle → switch → resume).
|
|
8
|
+
* - Owned recovery and the in-session path is impossible: start a clean
|
|
9
|
+
* continuation work unit from existing durable session state.
|
|
10
|
+
*/
|
|
11
|
+
export function planContinuation(input) {
|
|
12
|
+
if (input.recovery.kind === "none")
|
|
13
|
+
return { kind: "allow-native" };
|
|
14
|
+
if (input.continuationPossible)
|
|
15
|
+
return input.recovery.probeId === undefined
|
|
16
|
+
? { kind: "in-session", model: input.recovery.model }
|
|
17
|
+
: { kind: "in-session", model: input.recovery.model, probeId: input.recovery.probeId };
|
|
18
|
+
return { kind: "clean-continuation" };
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/execution/continuation/plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAA4B;IAC3D,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,CAAA;IACnE,IAAI,KAAK,CAAC,oBAAoB;QAC5B,OAAO,KAAK,CAAC,QAAQ,CAAC,OAAO,KAAK,SAAS;YACzC,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE;YACrD,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAA;IAC1F,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAA;AACvC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Continuation prompt for owned recovery and parked-work resume (ADP-023).
|
|
3
|
+
* Continues from session state; never replays the original instruction once
|
|
4
|
+
* tool side effects may exist. The executor sends exactly this prompt — the
|
|
5
|
+
* never-replay invariant is structural, not a caller responsibility.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CONTINUATION_PROMPT = "Continue the interrupted work from the current session state. Do not repeat completed work; resume from what the session already produced.";
|
|
8
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/execution/continuation/prompts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,+IAC8G,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Continuation prompt for owned recovery and parked-work resume (ADP-023).
|
|
3
|
+
* Continues from session state; never replays the original instruction once
|
|
4
|
+
* tool side effects may exist. The executor sends exactly this prompt — the
|
|
5
|
+
* never-replay invariant is structural, not a caller responsibility.
|
|
6
|
+
*/
|
|
7
|
+
export const CONTINUATION_PROMPT = "Continue the interrupted work from the current session state. Do not repeat completed work; resume from what the session already produced.";
|
|
8
|
+
//# sourceMappingURL=prompts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/execution/continuation/prompts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAC9B,4IAA4I,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ModelRef } from "../../core/work-unit/types.js";
|
|
2
|
+
import type { RecoveryOption } from "../retry/types.js";
|
|
3
|
+
/**
|
|
4
|
+
* What Adaptive does for a failed work unit's recovery (ADP-013/ADP-014).
|
|
5
|
+
* - `allow-native`: Adaptive did not take ownership (no veto) — OpenCode's
|
|
6
|
+
* native retry lifecycle is the preferred recovery and stays untouched.
|
|
7
|
+
* - `in-session`: Adaptive vetoed native retry and continues the same
|
|
8
|
+
* session on a recovered candidate (settle → switch → resume).
|
|
9
|
+
* - `clean-continuation`: the in-session path is not possible; start a
|
|
10
|
+
* clean continuation work unit from existing durable session state.
|
|
11
|
+
*
|
|
12
|
+
* The union has no "replay" variant by construction: every owned path
|
|
13
|
+
* continues from session state, so "Adaptive replays the original
|
|
14
|
+
* instruction after side effects" is unrepresentable, not merely avoided.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CONTINUATION_ACTIONS: readonly ["allow-native", "in-session", "clean-continuation"];
|
|
17
|
+
export type ContinuationActionKind = (typeof CONTINUATION_ACTIONS)[number];
|
|
18
|
+
export type ContinuationAction = {
|
|
19
|
+
kind: "allow-native";
|
|
20
|
+
} | {
|
|
21
|
+
kind: "in-session";
|
|
22
|
+
model: ModelRef;
|
|
23
|
+
probeId?: string | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
kind: "clean-continuation";
|
|
26
|
+
};
|
|
27
|
+
export interface ContinuationPlanInput {
|
|
28
|
+
/**
|
|
29
|
+
* Recovery option computed by the wiring for the failing unit: `none`
|
|
30
|
+
* means Adaptive did not veto (OpenCode's native retry is the preferred
|
|
31
|
+
* recovery); `switch` means Adaptive vetoed and owns the recovery.
|
|
32
|
+
*/
|
|
33
|
+
readonly recovery: RecoveryOption;
|
|
34
|
+
/**
|
|
35
|
+
* True when the in-session owned path is possible (session alive, settle
|
|
36
|
+
* + switch + resume available). Only consulted for `switch` recovery.
|
|
37
|
+
*/
|
|
38
|
+
readonly continuationPossible: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Narrow seam over the host session operations the owned continuation
|
|
42
|
+
* needs. Implemented by the OpenCode adapter (which tags its own model
|
|
43
|
+
* switches for attribution before calling the host); tests use fakes that
|
|
44
|
+
* record call order. Never imports `@opencode/plugin`.
|
|
45
|
+
*/
|
|
46
|
+
export interface ContinuationOps {
|
|
47
|
+
/**
|
|
48
|
+
* Wait until the session's failed execution has settled. Every owned
|
|
49
|
+
* path settles first — Adaptive never switches or prompts while a failed
|
|
50
|
+
* execution is still settling.
|
|
51
|
+
*/
|
|
52
|
+
settle(sessionID: string): Promise<void>;
|
|
53
|
+
/** Switch the session's model (own-switch attribution handled by the adapter). */
|
|
54
|
+
switchModel(sessionID: string, model: ModelRef): Promise<void>;
|
|
55
|
+
/** Deliver a prompt to the session; starts/continues execution. */
|
|
56
|
+
prompt(sessionID: string, text: string): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export interface ContinuationExecuteInput {
|
|
59
|
+
readonly sessionID: string;
|
|
60
|
+
readonly action: ContinuationAction;
|
|
61
|
+
readonly ops: ContinuationOps;
|
|
62
|
+
}
|
|
63
|
+
export type ContinuationOutcome = {
|
|
64
|
+
kind: "left-native";
|
|
65
|
+
} | {
|
|
66
|
+
kind: "resumed";
|
|
67
|
+
} | {
|
|
68
|
+
kind: "continuation-started";
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/execution/continuation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,oBAAoB,+DAAgE,CAAA;AACjG,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GACxB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,oBAAoB,CAAA;CAAE,CAAA;AAElC,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAA;CACvC;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACxC,kFAAkF;IAClF,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D,mEAAmE;IACnE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACvD;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAA;IACnC,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAA;CAC9B;AAED,MAAM,MAAM,mBAAmB,GAC7B;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What Adaptive does for a failed work unit's recovery (ADP-013/ADP-014).
|
|
3
|
+
* - `allow-native`: Adaptive did not take ownership (no veto) — OpenCode's
|
|
4
|
+
* native retry lifecycle is the preferred recovery and stays untouched.
|
|
5
|
+
* - `in-session`: Adaptive vetoed native retry and continues the same
|
|
6
|
+
* session on a recovered candidate (settle → switch → resume).
|
|
7
|
+
* - `clean-continuation`: the in-session path is not possible; start a
|
|
8
|
+
* clean continuation work unit from existing durable session state.
|
|
9
|
+
*
|
|
10
|
+
* The union has no "replay" variant by construction: every owned path
|
|
11
|
+
* continues from session state, so "Adaptive replays the original
|
|
12
|
+
* instruction after side effects" is unrepresentable, not merely avoided.
|
|
13
|
+
*/
|
|
14
|
+
export const CONTINUATION_ACTIONS = ["allow-native", "in-session", "clean-continuation"];
|
|
15
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/execution/continuation/types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,cAAc,EAAE,YAAY,EAAE,oBAAoB,CAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/execution/escalation/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/execution/escalation/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Adaptive-owned escalation request surface (T-18, ADP-015..017). The
|
|
3
|
+
* schema requires a reason and evidence — it is deliberately the smallest
|
|
4
|
+
* typed mechanism for an agent to request stronger capability, and it is not
|
|
5
|
+
* a planning or task-management API. The request is recorded against the
|
|
6
|
+
* current work unit and applies at the next safe boundary within the finite
|
|
7
|
+
* per-unit budget; a completing unit discards it (routing re-runs fresh).
|
|
8
|
+
*/
|
|
9
|
+
/** The tool name as registered with the host. */
|
|
10
|
+
export declare const ESCALATION_TOOL_NAME = "adaptive_escalate";
|
|
11
|
+
/** Each field is bounded — the request never carries unbounded prose. */
|
|
12
|
+
export declare const MAX_ESCALATION_FIELD_LENGTH = 256;
|
|
13
|
+
export interface EscalationRequest {
|
|
14
|
+
readonly reason: string;
|
|
15
|
+
readonly evidence: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Truncates to `max` UTF-16 code units without splitting a surrogate pair:
|
|
19
|
+
* a trailing high surrogate whose low half was cut is dropped, so the
|
|
20
|
+
* persisted evidence never carries a lone surrogate.
|
|
21
|
+
*/
|
|
22
|
+
export declare function truncateBounded(text: string, max: number): string;
|
|
23
|
+
/**
|
|
24
|
+
* Total parser for the tool input (the host forwards model-produced JSON, so
|
|
25
|
+
* the runtime shape is untrusted even though the standard schema describes
|
|
26
|
+
* it). Both fields are required, non-empty, and bounded.
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseEscalationRequest(input: unknown): EscalationRequest | undefined;
|
|
29
|
+
/** One-line summary recorded as escalation evidence (bounded). */
|
|
30
|
+
export declare function escalationDetail(request: EscalationRequest): string;
|
|
31
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/execution/escalation/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,iDAAiD;AACjD,eAAO,MAAM,oBAAoB,sBAAsB,CAAA;AAEvD,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,MAAM,CAAA;AAE9C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAKjE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,GAAG,SAAS,CAWpF;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAEnE"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Adaptive-owned escalation request surface (T-18, ADP-015..017). The
|
|
3
|
+
* schema requires a reason and evidence — it is deliberately the smallest
|
|
4
|
+
* typed mechanism for an agent to request stronger capability, and it is not
|
|
5
|
+
* a planning or task-management API. The request is recorded against the
|
|
6
|
+
* current work unit and applies at the next safe boundary within the finite
|
|
7
|
+
* per-unit budget; a completing unit discards it (routing re-runs fresh).
|
|
8
|
+
*/
|
|
9
|
+
/** The tool name as registered with the host. */
|
|
10
|
+
export const ESCALATION_TOOL_NAME = "adaptive_escalate";
|
|
11
|
+
/** Each field is bounded — the request never carries unbounded prose. */
|
|
12
|
+
export const MAX_ESCALATION_FIELD_LENGTH = 256;
|
|
13
|
+
/**
|
|
14
|
+
* Truncates to `max` UTF-16 code units without splitting a surrogate pair:
|
|
15
|
+
* a trailing high surrogate whose low half was cut is dropped, so the
|
|
16
|
+
* persisted evidence never carries a lone surrogate.
|
|
17
|
+
*/
|
|
18
|
+
export function truncateBounded(text, max) {
|
|
19
|
+
if (text.length <= max)
|
|
20
|
+
return text;
|
|
21
|
+
const cut = text.slice(0, max);
|
|
22
|
+
const last = cut.charCodeAt(cut.length - 1);
|
|
23
|
+
return last >= 0xd800 && last <= 0xdbff ? cut.slice(0, -1) : cut;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Total parser for the tool input (the host forwards model-produced JSON, so
|
|
27
|
+
* the runtime shape is untrusted even though the standard schema describes
|
|
28
|
+
* it). Both fields are required, non-empty, and bounded.
|
|
29
|
+
*/
|
|
30
|
+
export function parseEscalationRequest(input) {
|
|
31
|
+
if (typeof input !== "object" || input === null)
|
|
32
|
+
return undefined;
|
|
33
|
+
const record = input;
|
|
34
|
+
const reason = record["reason"];
|
|
35
|
+
const evidence = record["evidence"];
|
|
36
|
+
if (typeof reason !== "string" || reason.length === 0)
|
|
37
|
+
return undefined;
|
|
38
|
+
if (typeof evidence !== "string" || evidence.length === 0)
|
|
39
|
+
return undefined;
|
|
40
|
+
return {
|
|
41
|
+
reason: truncateBounded(reason, MAX_ESCALATION_FIELD_LENGTH),
|
|
42
|
+
evidence: truncateBounded(evidence, MAX_ESCALATION_FIELD_LENGTH),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** One-line summary recorded as escalation evidence (bounded). */
|
|
46
|
+
export function escalationDetail(request) {
|
|
47
|
+
return truncateBounded(`${request.reason}: ${request.evidence}`, MAX_ESCALATION_FIELD_LENGTH);
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/execution/escalation/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,iDAAiD;AACjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAA;AAEvD,yEAAyE;AACzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,CAAA;AAO9C;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,GAAW;IACvD,IAAI,IAAI,CAAC,MAAM,IAAI,GAAG;QAAE,OAAO,IAAI,CAAA;IACnC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IAC9B,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAC3C,OAAO,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;AAClE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAA;IACjE,MAAM,MAAM,GAAG,KAAgC,CAAA;IAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC/B,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;IACnC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAA;IACvE,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAA;IAC3E,OAAO;QACL,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,2BAA2B,CAAC;QAC5D,QAAQ,EAAE,eAAe,CAAC,QAAQ,EAAE,2BAA2B,CAAC;KACjE,CAAA;AACH,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,gBAAgB,CAAC,OAA0B;IACzD,OAAO,eAAe,CAAC,GAAG,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,QAAQ,EAAE,EAAE,2BAA2B,CAAC,CAAA;AAC/F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/execution/parking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC3C,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/execution/parking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ParkedRecord } from "../../state/parked-work/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Resume-attempt budget (ADP-011): a record whose continuation prompt kept
|
|
4
|
+
* failing is dropped once its attempts reach this count — the idle loop
|
|
5
|
+
* must be provably bounded, not "as long as idle events keep firing".
|
|
6
|
+
*/
|
|
7
|
+
export declare const MAX_PARKED_ATTEMPTS = 5;
|
|
8
|
+
/**
|
|
9
|
+
* Predicates supplied by the wiring at each safe boundary. Kept as
|
|
10
|
+
* injected predicates so this module stays host-agnostic and fully
|
|
11
|
+
* unit-testable with fakes.
|
|
12
|
+
*/
|
|
13
|
+
export interface ResumeContext {
|
|
14
|
+
/** Whether the parked record's tier still has configured resources. */
|
|
15
|
+
tierConfigured(tier: ParkedRecord["tier"]): boolean;
|
|
16
|
+
/** Whether the session the record belongs to still exists. */
|
|
17
|
+
sessionAlive(sessionID: string): boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ResumePlan {
|
|
20
|
+
/**
|
|
21
|
+
* Records worth a fresh routing attempt now, oldest parked first (ties
|
|
22
|
+
* keep park order). The wiring re-runs routing for each; a successful
|
|
23
|
+
* route pops the record via the store and starts a clean continuation.
|
|
24
|
+
*/
|
|
25
|
+
readonly attempt: readonly ParkedRecord[];
|
|
26
|
+
/** Tier no longer configured — keep parked until the user configures it. */
|
|
27
|
+
readonly hold: readonly ParkedRecord[];
|
|
28
|
+
/**
|
|
29
|
+
* Session gone, or the record exhausted its resume-attempt budget — the
|
|
30
|
+
* record can never (or may no longer) resume; the wiring drops it.
|
|
31
|
+
*/
|
|
32
|
+
readonly drop: readonly ParkedRecord[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Parked-work resume selection at a safe boundary (ADP-024). Total,
|
|
36
|
+
* deterministic, pure: partitions the parked list by resumability without
|
|
37
|
+
* consulting health (routing re-decides with fresh health per attempt).
|
|
38
|
+
*/
|
|
39
|
+
export declare function selectResumable(records: readonly ParkedRecord[], context: ResumeContext): ResumePlan;
|
|
40
|
+
//# sourceMappingURL=plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../src/execution/parking/plan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAEpC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,OAAO,CAAA;IACnD,8DAA8D;IAC9D,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAA;CACzC;AAED,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IACzC,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,SAAS,YAAY,EAAE,CAAA;IACtC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,YAAY,EAAE,CAAA;CACvC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,SAAS,YAAY,EAAE,EAChC,OAAO,EAAE,aAAa,GACrB,UAAU,CAqBZ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resume-attempt budget (ADP-011): a record whose continuation prompt kept
|
|
3
|
+
* failing is dropped once its attempts reach this count — the idle loop
|
|
4
|
+
* must be provably bounded, not "as long as idle events keep firing".
|
|
5
|
+
*/
|
|
6
|
+
export const MAX_PARKED_ATTEMPTS = 5;
|
|
7
|
+
/**
|
|
8
|
+
* Parked-work resume selection at a safe boundary (ADP-024). Total,
|
|
9
|
+
* deterministic, pure: partitions the parked list by resumability without
|
|
10
|
+
* consulting health (routing re-decides with fresh health per attempt).
|
|
11
|
+
*/
|
|
12
|
+
export function selectResumable(records, context) {
|
|
13
|
+
const attempt = [];
|
|
14
|
+
const hold = [];
|
|
15
|
+
const drop = [];
|
|
16
|
+
const byAge = [...records].sort((a, b) => a.parkedAt - b.parkedAt);
|
|
17
|
+
for (const record of byAge) {
|
|
18
|
+
if (!context.sessionAlive(record.sessionID)) {
|
|
19
|
+
drop.push(record);
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
if ((record.attempts ?? 0) >= MAX_PARKED_ATTEMPTS) {
|
|
23
|
+
drop.push(record);
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (!context.tierConfigured(record.tier)) {
|
|
27
|
+
hold.push(record);
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
attempt.push(record);
|
|
31
|
+
}
|
|
32
|
+
return { attempt, hold, drop };
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=plan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../src/execution/parking/plan.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA;AA8BpC;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAgC,EAChC,OAAsB;IAEtB,MAAM,OAAO,GAAmB,EAAE,CAAA;IAClC,MAAM,IAAI,GAAmB,EAAE,CAAA;IAC/B,MAAM,IAAI,GAAmB,EAAE,CAAA;IAC/B,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAA;IAClE,KAAK,MAAM,MAAM,IAAI,KAAK,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YAC5C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACjB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,IAAI,mBAAmB,EAAE,CAAC;YAClD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACjB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;YACzC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACjB,SAAQ;QACV,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACtB,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;AAChC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const UNIT_PHASES: readonly ["admission", "busy", "settling", "idle"];
|
|
2
|
+
export type UnitPhase = (typeof UNIT_PHASES)[number];
|
|
3
|
+
export type RecoveryWindow = {
|
|
4
|
+
kind: "open";
|
|
5
|
+
} | {
|
|
6
|
+
kind: "closed";
|
|
7
|
+
reason: "busy" | "settling";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Safe-boundary gate for applying a recovered preferred resource (ADP-016/
|
|
11
|
+
* ADP-018). A unit's model is only ever changed at a safe boundary:
|
|
12
|
+
* - `admission`: the unit is starting; routing decides fresh.
|
|
13
|
+
* - `idle`: between episodes; parked resumes and re-routes may proceed.
|
|
14
|
+
* - `busy`: mid-work — running work is never pulled to another resource.
|
|
15
|
+
* - `settling`: a failed execution has not settled yet — Adaptive never
|
|
16
|
+
* switches or prompts while the session is settling (settle-first is
|
|
17
|
+
* enforced by the continuation executor; this gate is the second guard).
|
|
18
|
+
*/
|
|
19
|
+
export declare function recoveryWindow(phase: UnitPhase): RecoveryWindow;
|
|
20
|
+
//# sourceMappingURL=gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate.d.ts","sourceRoot":"","sources":["../../../src/execution/recovery/gate.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,oDAAqD,CAAA;AAC7E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAA;AAE/F;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,cAAc,CAU/D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const UNIT_PHASES = ["admission", "busy", "settling", "idle"];
|
|
2
|
+
/**
|
|
3
|
+
* Safe-boundary gate for applying a recovered preferred resource (ADP-016/
|
|
4
|
+
* ADP-018). A unit's model is only ever changed at a safe boundary:
|
|
5
|
+
* - `admission`: the unit is starting; routing decides fresh.
|
|
6
|
+
* - `idle`: between episodes; parked resumes and re-routes may proceed.
|
|
7
|
+
* - `busy`: mid-work — running work is never pulled to another resource.
|
|
8
|
+
* - `settling`: a failed execution has not settled yet — Adaptive never
|
|
9
|
+
* switches or prompts while the session is settling (settle-first is
|
|
10
|
+
* enforced by the continuation executor; this gate is the second guard).
|
|
11
|
+
*/
|
|
12
|
+
export function recoveryWindow(phase) {
|
|
13
|
+
switch (phase) {
|
|
14
|
+
case "busy":
|
|
15
|
+
return { kind: "closed", reason: "busy" };
|
|
16
|
+
case "settling":
|
|
17
|
+
return { kind: "closed", reason: "settling" };
|
|
18
|
+
case "admission":
|
|
19
|
+
case "idle":
|
|
20
|
+
return { kind: "open" };
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate.js","sourceRoot":"","sources":["../../../src/execution/recovery/gate.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAU,CAAA;AAK7E;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,KAAgB;IAC7C,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,MAAM;YACT,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA;QAC3C,KAAK,UAAU;YACb,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,CAAA;QAC/C,KAAK,WAAW,CAAC;QACjB,KAAK,MAAM;YACT,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/execution/recovery/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACvD,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/execution/recovery/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { OperatingMode } from "../../core/scheduler/types.js";
|
|
2
|
+
import type { RetryCoreDecision, RetryInput, RetryDecision } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Retry-hook policy (ADP-013/014). Total, deterministic, side-effect free.
|
|
5
|
+
*
|
|
6
|
+
* Veto (take ownership of horizontal recovery) only when ALL hold:
|
|
7
|
+
* - the classification is failover-eligible (infrastructure failure —
|
|
8
|
+
* capability problems and host decisions never veto);
|
|
9
|
+
* - the evidence is definitive — ambiguous evidence (Retry-After headers
|
|
10
|
+
* alone, bounded-textual matches) conservatively leaves OpenCode's native
|
|
11
|
+
* retry, which the host schedules with its parsed `retryAfterMs` (ADP-012);
|
|
12
|
+
* - a same-tier recovery candidate exists AND differs from the resource that
|
|
13
|
+
* just failed — without one, the native retry of the same resource IS the
|
|
14
|
+
* preferred horizontal recovery (vetoing onto the failed resource would
|
|
15
|
+
* discard the host's backoff and re-prompt it immediately). A breaker-probe
|
|
16
|
+
* recovery is exempt: its target IS the failed resource by design, and the
|
|
17
|
+
* veto is what starts the probe episode;
|
|
18
|
+
* - the host still wants to retry (`retry: true`) — an already-vetoed or
|
|
19
|
+
* exhausted lifecycle is never resurrected; recovery defers to the next
|
|
20
|
+
* safe boundary (ADP-014, ADP-023);
|
|
21
|
+
* - the per-unit veto budget has room left.
|
|
22
|
+
*/
|
|
23
|
+
export declare function decideRetry(input: RetryInput): RetryCoreDecision;
|
|
24
|
+
/**
|
|
25
|
+
* Mode wrapper — the same core decision for Observe and Control; Observe
|
|
26
|
+
* wraps it for receipt recording without intervening; OFF never touches
|
|
27
|
+
* execution (the hook is not even registered, this keeps the union closed).
|
|
28
|
+
*/
|
|
29
|
+
export declare function forMode(decision: RetryCoreDecision, mode: OperatingMode): RetryDecision;
|
|
30
|
+
//# sourceMappingURL=decide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decide.d.ts","sourceRoot":"","sources":["../../../src/execution/retry/decide.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAGV,iBAAiB,EACjB,UAAU,EACV,aAAa,EACd,MAAM,YAAY,CAAA;AAEnB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,iBAAiB,CAyChE;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,aAAa,GAAG,aAAa,CASvF"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { MAX_VETOES_PER_UNIT } from "./types.js";
|
|
2
|
+
import { sameModelRef } from "../../core/work-unit/types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Retry-hook policy (ADP-013/014). Total, deterministic, side-effect free.
|
|
5
|
+
*
|
|
6
|
+
* Veto (take ownership of horizontal recovery) only when ALL hold:
|
|
7
|
+
* - the classification is failover-eligible (infrastructure failure —
|
|
8
|
+
* capability problems and host decisions never veto);
|
|
9
|
+
* - the evidence is definitive — ambiguous evidence (Retry-After headers
|
|
10
|
+
* alone, bounded-textual matches) conservatively leaves OpenCode's native
|
|
11
|
+
* retry, which the host schedules with its parsed `retryAfterMs` (ADP-012);
|
|
12
|
+
* - a same-tier recovery candidate exists AND differs from the resource that
|
|
13
|
+
* just failed — without one, the native retry of the same resource IS the
|
|
14
|
+
* preferred horizontal recovery (vetoing onto the failed resource would
|
|
15
|
+
* discard the host's backoff and re-prompt it immediately). A breaker-probe
|
|
16
|
+
* recovery is exempt: its target IS the failed resource by design, and the
|
|
17
|
+
* veto is what starts the probe episode;
|
|
18
|
+
* - the host still wants to retry (`retry: true`) — an already-vetoed or
|
|
19
|
+
* exhausted lifecycle is never resurrected; recovery defers to the next
|
|
20
|
+
* safe boundary (ADP-014, ADP-023);
|
|
21
|
+
* - the per-unit veto budget has room left.
|
|
22
|
+
*/
|
|
23
|
+
export function decideRetry(input) {
|
|
24
|
+
if (!input.classification.failoverEligible) {
|
|
25
|
+
return { kind: "leave" };
|
|
26
|
+
}
|
|
27
|
+
if (!input.classification.definitive) {
|
|
28
|
+
return { kind: "leave" };
|
|
29
|
+
}
|
|
30
|
+
const recovery = input.recovery;
|
|
31
|
+
if (recovery.kind === "none") {
|
|
32
|
+
return { kind: "leave" };
|
|
33
|
+
}
|
|
34
|
+
// A probe recovery targets the very resource that just failed (the
|
|
35
|
+
// half-open probe re-admits it); the veto is what starts the probe episode,
|
|
36
|
+
// so the same-resource exemption below must not swallow it.
|
|
37
|
+
// The host reports base-model calls with variant "default" (verified on
|
|
38
|
+
// 2.2.5, same fact refKey normalizes in the supervisor), so the sameness
|
|
39
|
+
// check must not treat that spelling as a different resource.
|
|
40
|
+
const sameResource = recovery.probeId === undefined &&
|
|
41
|
+
sameModelRef({
|
|
42
|
+
...recovery.model,
|
|
43
|
+
variant: recovery.model.variant === "default" ? undefined : recovery.model.variant,
|
|
44
|
+
}, {
|
|
45
|
+
...input.failingModel,
|
|
46
|
+
variant: input.failingModel.variant === "default" ? undefined : input.failingModel.variant,
|
|
47
|
+
});
|
|
48
|
+
if (sameResource) {
|
|
49
|
+
return { kind: "leave" };
|
|
50
|
+
}
|
|
51
|
+
const native = input.native;
|
|
52
|
+
if (!native.retry) {
|
|
53
|
+
return { kind: "leave" };
|
|
54
|
+
}
|
|
55
|
+
if (input.vetoesUsed >= MAX_VETOES_PER_UNIT) {
|
|
56
|
+
return { kind: "leave" };
|
|
57
|
+
}
|
|
58
|
+
const { model, probeId } = recovery;
|
|
59
|
+
return probeId === undefined ? { kind: "veto", model } : { kind: "veto", model, probeId };
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Mode wrapper — the same core decision for Observe and Control; Observe
|
|
63
|
+
* wraps it for receipt recording without intervening; OFF never touches
|
|
64
|
+
* execution (the hook is not even registered, this keeps the union closed).
|
|
65
|
+
*/
|
|
66
|
+
export function forMode(decision, mode) {
|
|
67
|
+
switch (mode) {
|
|
68
|
+
case "active":
|
|
69
|
+
return decision;
|
|
70
|
+
case "observe":
|
|
71
|
+
return { kind: "observe-only", would: decision };
|
|
72
|
+
case "off":
|
|
73
|
+
return { kind: "leave" };
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=decide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decide.js","sourceRoot":"","sources":["../../../src/execution/retry/decide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAU5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC;QAC3C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;QACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD,MAAM,QAAQ,GAAmB,KAAK,CAAC,QAAQ,CAAA;IAC/C,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC7B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD,mEAAmE;IACnE,4EAA4E;IAC5E,4DAA4D;IAC5D,wEAAwE;IACxE,yEAAyE;IACzE,8DAA8D;IAC9D,MAAM,YAAY,GAChB,QAAQ,CAAC,OAAO,KAAK,SAAS;QAC9B,YAAY,CACV;YACE,GAAG,QAAQ,CAAC,KAAK;YACjB,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO;SACnF,EACD;YACE,GAAG,KAAK,CAAC,YAAY;YACrB,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO;SAC3F,CACF,CAAA;IACH,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD,MAAM,MAAM,GAAwB,KAAK,CAAC,MAAM,CAAA;IAChD,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAClB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD,IAAI,KAAK,CAAC,UAAU,IAAI,mBAAmB,EAAE,CAAC;QAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC1B,CAAC;IACD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,QAAQ,CAAA;IACnC,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAA;AAC3F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,QAA2B,EAAE,IAAmB;IACtE,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAA;QACjB,KAAK,SAAS;YACZ,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAA;QAClD,KAAK,KAAK;YACR,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;IAC5B,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/execution/retry/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/execution/retry/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
|