usesteady 0.1.0-alpha.1
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 +186 -0
- package/README.md +724 -0
- package/bin/use-steady.js +13 -0
- package/dist/server-store.d.ts +68 -0
- package/dist/server-store.d.ts.map +1 -0
- package/dist/server-store.js +133 -0
- package/dist/server-store.js.map +1 -0
- package/dist/server.d.ts +35 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +569 -0
- package/dist/server.js.map +1 -0
- package/dist/src/claude/adapters/api-adapter.d.ts +99 -0
- package/dist/src/claude/adapters/api-adapter.d.ts.map +1 -0
- package/dist/src/claude/adapters/api-adapter.js +415 -0
- package/dist/src/claude/adapters/api-adapter.js.map +1 -0
- package/dist/src/claude/adapters/stub-adapter.d.ts +73 -0
- package/dist/src/claude/adapters/stub-adapter.d.ts.map +1 -0
- package/dist/src/claude/adapters/stub-adapter.js +114 -0
- package/dist/src/claude/adapters/stub-adapter.js.map +1 -0
- package/dist/src/claude/artifact-mapper.d.ts +85 -0
- package/dist/src/claude/artifact-mapper.d.ts.map +1 -0
- package/dist/src/claude/artifact-mapper.js +187 -0
- package/dist/src/claude/artifact-mapper.js.map +1 -0
- package/dist/src/claude/delivery-gate.d.ts +136 -0
- package/dist/src/claude/delivery-gate.d.ts.map +1 -0
- package/dist/src/claude/delivery-gate.js +231 -0
- package/dist/src/claude/delivery-gate.js.map +1 -0
- package/dist/src/claude/index.d.ts +24 -0
- package/dist/src/claude/index.d.ts.map +1 -0
- package/dist/src/claude/index.js +23 -0
- package/dist/src/claude/index.js.map +1 -0
- package/dist/src/claude/types.d.ts +223 -0
- package/dist/src/claude/types.d.ts.map +1 -0
- package/dist/src/claude/types.js +64 -0
- package/dist/src/claude/types.js.map +1 -0
- package/dist/src/control/compiler.d.ts +125 -0
- package/dist/src/control/compiler.d.ts.map +1 -0
- package/dist/src/control/compiler.js +179 -0
- package/dist/src/control/compiler.js.map +1 -0
- package/dist/src/control/constraints.d.ts +42 -0
- package/dist/src/control/constraints.d.ts.map +1 -0
- package/dist/src/control/constraints.js +116 -0
- package/dist/src/control/constraints.js.map +1 -0
- package/dist/src/control/drift-detector.d.ts +49 -0
- package/dist/src/control/drift-detector.d.ts.map +1 -0
- package/dist/src/control/drift-detector.js +115 -0
- package/dist/src/control/drift-detector.js.map +1 -0
- package/dist/src/control/index.d.ts +44 -0
- package/dist/src/control/index.d.ts.map +1 -0
- package/dist/src/control/index.js +40 -0
- package/dist/src/control/index.js.map +1 -0
- package/dist/src/control/types.d.ts +144 -0
- package/dist/src/control/types.d.ts.map +1 -0
- package/dist/src/control/types.js +57 -0
- package/dist/src/control/types.js.map +1 -0
- package/dist/src/cursor/adapters/inprocess-adapter.d.ts +78 -0
- package/dist/src/cursor/adapters/inprocess-adapter.d.ts.map +1 -0
- package/dist/src/cursor/adapters/inprocess-adapter.js +308 -0
- package/dist/src/cursor/adapters/inprocess-adapter.js.map +1 -0
- package/dist/src/cursor/adapters/stub-adapter.d.ts +75 -0
- package/dist/src/cursor/adapters/stub-adapter.d.ts.map +1 -0
- package/dist/src/cursor/adapters/stub-adapter.js +120 -0
- package/dist/src/cursor/adapters/stub-adapter.js.map +1 -0
- package/dist/src/cursor/artifact-mapper.d.ts +81 -0
- package/dist/src/cursor/artifact-mapper.d.ts.map +1 -0
- package/dist/src/cursor/artifact-mapper.js +203 -0
- package/dist/src/cursor/artifact-mapper.js.map +1 -0
- package/dist/src/cursor/delivery-gate.d.ts +144 -0
- package/dist/src/cursor/delivery-gate.d.ts.map +1 -0
- package/dist/src/cursor/delivery-gate.js +208 -0
- package/dist/src/cursor/delivery-gate.js.map +1 -0
- package/dist/src/cursor/glob-matcher.d.ts +30 -0
- package/dist/src/cursor/glob-matcher.d.ts.map +1 -0
- package/dist/src/cursor/glob-matcher.js +68 -0
- package/dist/src/cursor/glob-matcher.js.map +1 -0
- package/dist/src/cursor/index.d.ts +43 -0
- package/dist/src/cursor/index.d.ts.map +1 -0
- package/dist/src/cursor/index.js +44 -0
- package/dist/src/cursor/index.js.map +1 -0
- package/dist/src/cursor/ocd-evaluator.d.ts +89 -0
- package/dist/src/cursor/ocd-evaluator.d.ts.map +1 -0
- package/dist/src/cursor/ocd-evaluator.js +142 -0
- package/dist/src/cursor/ocd-evaluator.js.map +1 -0
- package/dist/src/cursor/types.d.ts +309 -0
- package/dist/src/cursor/types.d.ts.map +1 -0
- package/dist/src/cursor/types.js +48 -0
- package/dist/src/cursor/types.js.map +1 -0
- package/dist/src/execution/claude/claude-execution-coordinator.d.ts +164 -0
- package/dist/src/execution/claude/claude-execution-coordinator.d.ts.map +1 -0
- package/dist/src/execution/claude/claude-execution-coordinator.js +198 -0
- package/dist/src/execution/claude/claude-execution-coordinator.js.map +1 -0
- package/dist/src/execution/claude/index.d.ts +13 -0
- package/dist/src/execution/claude/index.d.ts.map +1 -0
- package/dist/src/execution/claude/index.js +12 -0
- package/dist/src/execution/claude/index.js.map +1 -0
- package/dist/src/execution/cursor/cursor-execution-coordinator.d.ts +216 -0
- package/dist/src/execution/cursor/cursor-execution-coordinator.d.ts.map +1 -0
- package/dist/src/execution/cursor/cursor-execution-coordinator.js +233 -0
- package/dist/src/execution/cursor/cursor-execution-coordinator.js.map +1 -0
- package/dist/src/execution/cursor/index.d.ts +20 -0
- package/dist/src/execution/cursor/index.d.ts.map +1 -0
- package/dist/src/execution/cursor/index.js +18 -0
- package/dist/src/execution/cursor/index.js.map +1 -0
- package/dist/src/execution/reminders/index.d.ts +11 -0
- package/dist/src/execution/reminders/index.d.ts.map +1 -0
- package/dist/src/execution/reminders/index.js +9 -0
- package/dist/src/execution/reminders/index.js.map +1 -0
- package/dist/src/execution/reminders/reminder-execution-coordinator.d.ts +125 -0
- package/dist/src/execution/reminders/reminder-execution-coordinator.d.ts.map +1 -0
- package/dist/src/execution/reminders/reminder-execution-coordinator.js +129 -0
- package/dist/src/execution/reminders/reminder-execution-coordinator.js.map +1 -0
- package/dist/src/execution/reminders/reminder-execution-types.d.ts +161 -0
- package/dist/src/execution/reminders/reminder-execution-types.d.ts.map +1 -0
- package/dist/src/execution/reminders/reminder-execution-types.js +39 -0
- package/dist/src/execution/reminders/reminder-execution-types.js.map +1 -0
- package/dist/src/execution/reminders/reminder-execution-validator.d.ts +45 -0
- package/dist/src/execution/reminders/reminder-execution-validator.d.ts.map +1 -0
- package/dist/src/execution/reminders/reminder-execution-validator.js +92 -0
- package/dist/src/execution/reminders/reminder-execution-validator.js.map +1 -0
- package/dist/src/execution/reminders/reminder-executor.d.ts +62 -0
- package/dist/src/execution/reminders/reminder-executor.d.ts.map +1 -0
- package/dist/src/execution/reminders/reminder-executor.js +113 -0
- package/dist/src/execution/reminders/reminder-executor.js.map +1 -0
- package/dist/src/execution/reminders/reminder-time-parser.d.ts +41 -0
- package/dist/src/execution/reminders/reminder-time-parser.d.ts.map +1 -0
- package/dist/src/execution/reminders/reminder-time-parser.js +113 -0
- package/dist/src/execution/reminders/reminder-time-parser.js.map +1 -0
- package/dist/src/friction/auto-capture.d.ts +38 -0
- package/dist/src/friction/auto-capture.d.ts.map +1 -0
- package/dist/src/friction/auto-capture.js +133 -0
- package/dist/src/friction/auto-capture.js.map +1 -0
- package/dist/src/friction/client.d.ts +39 -0
- package/dist/src/friction/client.d.ts.map +1 -0
- package/dist/src/friction/client.js +165 -0
- package/dist/src/friction/client.js.map +1 -0
- package/dist/src/friction/config.d.ts +16 -0
- package/dist/src/friction/config.d.ts.map +1 -0
- package/dist/src/friction/config.js +56 -0
- package/dist/src/friction/config.js.map +1 -0
- package/dist/src/friction/github-auth.d.ts +41 -0
- package/dist/src/friction/github-auth.d.ts.map +1 -0
- package/dist/src/friction/github-auth.js +155 -0
- package/dist/src/friction/github-auth.js.map +1 -0
- package/dist/src/friction/github-issues.d.ts +51 -0
- package/dist/src/friction/github-issues.d.ts.map +1 -0
- package/dist/src/friction/github-issues.js +118 -0
- package/dist/src/friction/github-issues.js.map +1 -0
- package/dist/src/friction/payout-ledger.d.ts +45 -0
- package/dist/src/friction/payout-ledger.d.ts.map +1 -0
- package/dist/src/friction/payout-ledger.js +111 -0
- package/dist/src/friction/payout-ledger.js.map +1 -0
- package/dist/src/friction/queue.d.ts +42 -0
- package/dist/src/friction/queue.d.ts.map +1 -0
- package/dist/src/friction/queue.js +179 -0
- package/dist/src/friction/queue.js.map +1 -0
- package/dist/src/friction/reviewer.d.ts +42 -0
- package/dist/src/friction/reviewer.d.ts.map +1 -0
- package/dist/src/friction/reviewer.js +269 -0
- package/dist/src/friction/reviewer.js.map +1 -0
- package/dist/src/friction/types.d.ts +63 -0
- package/dist/src/friction/types.d.ts.map +1 -0
- package/dist/src/friction/types.js +18 -0
- package/dist/src/friction/types.js.map +1 -0
- package/dist/src/history/index.d.ts +39 -0
- package/dist/src/history/index.d.ts.map +1 -0
- package/dist/src/history/index.js +41 -0
- package/dist/src/history/index.js.map +1 -0
- package/dist/src/history/session-chain.d.ts +36 -0
- package/dist/src/history/session-chain.d.ts.map +1 -0
- package/dist/src/history/session-chain.js +91 -0
- package/dist/src/history/session-chain.js.map +1 -0
- package/dist/src/history/types.d.ts +130 -0
- package/dist/src/history/types.d.ts.map +1 -0
- package/dist/src/history/types.js +32 -0
- package/dist/src/history/types.js.map +1 -0
- package/dist/src/history/workflow-history.d.ts +48 -0
- package/dist/src/history/workflow-history.d.ts.map +1 -0
- package/dist/src/history/workflow-history.js +116 -0
- package/dist/src/history/workflow-history.js.map +1 -0
- package/dist/src/index.d.ts +88 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +58 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/intake/classify-intent-state.d.ts +20 -0
- package/dist/src/intake/classify-intent-state.d.ts.map +1 -0
- package/dist/src/intake/classify-intent-state.js +29 -0
- package/dist/src/intake/classify-intent-state.js.map +1 -0
- package/dist/src/intake/intake-service.d.ts +105 -0
- package/dist/src/intake/intake-service.d.ts.map +1 -0
- package/dist/src/intake/intake-service.js +407 -0
- package/dist/src/intake/intake-service.js.map +1 -0
- package/dist/src/intake/response-planner.d.ts +25 -0
- package/dist/src/intake/response-planner.d.ts.map +1 -0
- package/dist/src/intake/response-planner.js +52 -0
- package/dist/src/intake/response-planner.js.map +1 -0
- package/dist/src/intake/signal-extractor.d.ts +25 -0
- package/dist/src/intake/signal-extractor.d.ts.map +1 -0
- package/dist/src/intake/signal-extractor.js +42 -0
- package/dist/src/intake/signal-extractor.js.map +1 -0
- package/dist/src/intake/trace.d.ts +157 -0
- package/dist/src/intake/trace.d.ts.map +1 -0
- package/dist/src/intake/trace.js +38 -0
- package/dist/src/intake/trace.js.map +1 -0
- package/dist/src/intake/types.d.ts +70 -0
- package/dist/src/intake/types.d.ts.map +1 -0
- package/dist/src/intake/types.js +30 -0
- package/dist/src/intake/types.js.map +1 -0
- package/dist/src/interaction/defaults.d.ts +12 -0
- package/dist/src/interaction/defaults.d.ts.map +1 -0
- package/dist/src/interaction/defaults.js +26 -0
- package/dist/src/interaction/defaults.js.map +1 -0
- package/dist/src/interaction/guidance-order.d.ts +53 -0
- package/dist/src/interaction/guidance-order.d.ts.map +1 -0
- package/dist/src/interaction/guidance-order.js +131 -0
- package/dist/src/interaction/guidance-order.js.map +1 -0
- package/dist/src/interaction/observe.d.ts +57 -0
- package/dist/src/interaction/observe.d.ts.map +1 -0
- package/dist/src/interaction/observe.js +77 -0
- package/dist/src/interaction/observe.js.map +1 -0
- package/dist/src/interaction/selectors.d.ts +16 -0
- package/dist/src/interaction/selectors.d.ts.map +1 -0
- package/dist/src/interaction/selectors.js +23 -0
- package/dist/src/interaction/selectors.js.map +1 -0
- package/dist/src/interaction/types.d.ts +105 -0
- package/dist/src/interaction/types.d.ts.map +1 -0
- package/dist/src/interaction/types.js +48 -0
- package/dist/src/interaction/types.js.map +1 -0
- package/dist/src/interaction/updater.d.ts +22 -0
- package/dist/src/interaction/updater.d.ts.map +1 -0
- package/dist/src/interaction/updater.js +87 -0
- package/dist/src/interaction/updater.js.map +1 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-detector.d.ts +48 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-detector.d.ts.map +1 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-detector.js +107 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-detector.js.map +1 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-types.d.ts +43 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-types.d.ts.map +1 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-types.js +20 -0
- package/dist/src/present/boundary-explanation/boundary-explanation-types.js.map +1 -0
- package/dist/src/present/boundary-explanation/index.d.ts +10 -0
- package/dist/src/present/boundary-explanation/index.d.ts.map +1 -0
- package/dist/src/present/boundary-explanation/index.js +2 -0
- package/dist/src/present/boundary-explanation/index.js.map +1 -0
- package/dist/src/present/control-visibility/control-visibility-assertions.d.ts +70 -0
- package/dist/src/present/control-visibility/control-visibility-assertions.d.ts.map +1 -0
- package/dist/src/present/control-visibility/control-visibility-assertions.js +138 -0
- package/dist/src/present/control-visibility/control-visibility-assertions.js.map +1 -0
- package/dist/src/present/control-visibility/control-visibility-evaluator.d.ts +67 -0
- package/dist/src/present/control-visibility/control-visibility-evaluator.d.ts.map +1 -0
- package/dist/src/present/control-visibility/control-visibility-evaluator.js +146 -0
- package/dist/src/present/control-visibility/control-visibility-evaluator.js.map +1 -0
- package/dist/src/present/control-visibility/control-visibility-types.d.ts +113 -0
- package/dist/src/present/control-visibility/control-visibility-types.d.ts.map +1 -0
- package/dist/src/present/control-visibility/control-visibility-types.js +24 -0
- package/dist/src/present/control-visibility/control-visibility-types.js.map +1 -0
- package/dist/src/present/control-visibility/index.d.ts +16 -0
- package/dist/src/present/control-visibility/index.d.ts.map +1 -0
- package/dist/src/present/control-visibility/index.js +15 -0
- package/dist/src/present/control-visibility/index.js.map +1 -0
- package/dist/src/present/format.d.ts +57 -0
- package/dist/src/present/format.d.ts.map +1 -0
- package/dist/src/present/format.js +150 -0
- package/dist/src/present/format.js.map +1 -0
- package/dist/src/present/present-coordinator.d.ts +153 -0
- package/dist/src/present/present-coordinator.d.ts.map +1 -0
- package/dist/src/present/present-coordinator.js +213 -0
- package/dist/src/present/present-coordinator.js.map +1 -0
- package/dist/src/present/reminders/index.d.ts +22 -0
- package/dist/src/present/reminders/index.d.ts.map +1 -0
- package/dist/src/present/reminders/index.js +22 -0
- package/dist/src/present/reminders/index.js.map +1 -0
- package/dist/src/present/reminders/reminder-presenter.d.ts +76 -0
- package/dist/src/present/reminders/reminder-presenter.d.ts.map +1 -0
- package/dist/src/present/reminders/reminder-presenter.js +359 -0
- package/dist/src/present/reminders/reminder-presenter.js.map +1 -0
- package/dist/src/present/reminders/reminder-renderer.d.ts +82 -0
- package/dist/src/present/reminders/reminder-renderer.d.ts.map +1 -0
- package/dist/src/present/reminders/reminder-renderer.js +136 -0
- package/dist/src/present/reminders/reminder-renderer.js.map +1 -0
- package/dist/src/present/reminders/reminder-types.d.ts +131 -0
- package/dist/src/present/reminders/reminder-types.d.ts.map +1 -0
- package/dist/src/present/reminders/reminder-types.js +29 -0
- package/dist/src/present/reminders/reminder-types.js.map +1 -0
- package/dist/src/present/types.d.ts +114 -0
- package/dist/src/present/types.d.ts.map +1 -0
- package/dist/src/present/types.js +18 -0
- package/dist/src/present/types.js.map +1 -0
- package/dist/src/product/claude-product-session.d.ts +146 -0
- package/dist/src/product/claude-product-session.d.ts.map +1 -0
- package/dist/src/product/claude-product-session.js +362 -0
- package/dist/src/product/claude-product-session.js.map +1 -0
- package/dist/src/product/cursor-product-session.d.ts +211 -0
- package/dist/src/product/cursor-product-session.d.ts.map +1 -0
- package/dist/src/product/cursor-product-session.js +390 -0
- package/dist/src/product/cursor-product-session.js.map +1 -0
- package/dist/src/product/index.d.ts +28 -0
- package/dist/src/product/index.d.ts.map +1 -0
- package/dist/src/product/index.js +22 -0
- package/dist/src/product/index.js.map +1 -0
- package/dist/src/product/session-resilience/index.d.ts +17 -0
- package/dist/src/product/session-resilience/index.d.ts.map +1 -0
- package/dist/src/product/session-resilience/index.js +15 -0
- package/dist/src/product/session-resilience/index.js.map +1 -0
- package/dist/src/product/session-resilience/session-serializer.d.ts +43 -0
- package/dist/src/product/session-resilience/session-serializer.d.ts.map +1 -0
- package/dist/src/product/session-resilience/session-serializer.js +84 -0
- package/dist/src/product/session-resilience/session-serializer.js.map +1 -0
- package/dist/src/product/session-resilience/session-snapshot-types.d.ts +35 -0
- package/dist/src/product/session-resilience/session-snapshot-types.d.ts.map +1 -0
- package/dist/src/product/session-resilience/session-snapshot-types.js +21 -0
- package/dist/src/product/session-resilience/session-snapshot-types.js.map +1 -0
- package/dist/src/product/session-resilience/session-staleness.d.ts +54 -0
- package/dist/src/product/session-resilience/session-staleness.d.ts.map +1 -0
- package/dist/src/product/session-resilience/session-staleness.js +62 -0
- package/dist/src/product/session-resilience/session-staleness.js.map +1 -0
- package/dist/src/product/session-resilience/session-summary.d.ts +40 -0
- package/dist/src/product/session-resilience/session-summary.d.ts.map +1 -0
- package/dist/src/product/session-resilience/session-summary.js +72 -0
- package/dist/src/product/session-resilience/session-summary.js.map +1 -0
- package/dist/src/prv/patterns.d.ts +32 -0
- package/dist/src/prv/patterns.d.ts.map +1 -0
- package/dist/src/prv/patterns.js +40 -0
- package/dist/src/prv/patterns.js.map +1 -0
- package/dist/src/prv/prv.d.ts +13 -0
- package/dist/src/prv/prv.d.ts.map +1 -0
- package/dist/src/prv/prv.js +22 -0
- package/dist/src/prv/prv.js.map +1 -0
- package/dist/src/prv/types.d.ts +26 -0
- package/dist/src/prv/types.d.ts.map +1 -0
- package/dist/src/prv/types.js +15 -0
- package/dist/src/prv/types.js.map +1 -0
- package/dist/src/safety/detectors/arbitrary-exec.detector.d.ts +3 -0
- package/dist/src/safety/detectors/arbitrary-exec.detector.d.ts.map +1 -0
- package/dist/src/safety/detectors/arbitrary-exec.detector.js +31 -0
- package/dist/src/safety/detectors/arbitrary-exec.detector.js.map +1 -0
- package/dist/src/safety/detectors/bulk-data-exfil.detector.d.ts +21 -0
- package/dist/src/safety/detectors/bulk-data-exfil.detector.d.ts.map +1 -0
- package/dist/src/safety/detectors/bulk-data-exfil.detector.js +90 -0
- package/dist/src/safety/detectors/bulk-data-exfil.detector.js.map +1 -0
- package/dist/src/safety/detectors/destructive.detector.d.ts +3 -0
- package/dist/src/safety/detectors/destructive.detector.d.ts.map +1 -0
- package/dist/src/safety/detectors/destructive.detector.js +28 -0
- package/dist/src/safety/detectors/destructive.detector.js.map +1 -0
- package/dist/src/safety/detectors/evasion.detector.d.ts +3 -0
- package/dist/src/safety/detectors/evasion.detector.d.ts.map +1 -0
- package/dist/src/safety/detectors/evasion.detector.js +28 -0
- package/dist/src/safety/detectors/evasion.detector.js.map +1 -0
- package/dist/src/safety/detectors/secret-access.detector.d.ts +31 -0
- package/dist/src/safety/detectors/secret-access.detector.d.ts.map +1 -0
- package/dist/src/safety/detectors/secret-access.detector.js +78 -0
- package/dist/src/safety/detectors/secret-access.detector.js.map +1 -0
- package/dist/src/safety/registry.d.ts +9 -0
- package/dist/src/safety/registry.d.ts.map +1 -0
- package/dist/src/safety/registry.js +22 -0
- package/dist/src/safety/registry.js.map +1 -0
- package/dist/src/safety/safety-gate.d.ts +16 -0
- package/dist/src/safety/safety-gate.d.ts.map +1 -0
- package/dist/src/safety/safety-gate.js +26 -0
- package/dist/src/safety/safety-gate.js.map +1 -0
- package/dist/src/safety/types.d.ts +35 -0
- package/dist/src/safety/types.d.ts.map +1 -0
- package/dist/src/safety/types.js +14 -0
- package/dist/src/safety/types.js.map +1 -0
- package/dist/src/shell/claude-shell.d.ts +63 -0
- package/dist/src/shell/claude-shell.d.ts.map +1 -0
- package/dist/src/shell/claude-shell.js +81 -0
- package/dist/src/shell/claude-shell.js.map +1 -0
- package/dist/src/shell/cli/friction-admin.d.ts +14 -0
- package/dist/src/shell/cli/friction-admin.d.ts.map +1 -0
- package/dist/src/shell/cli/friction-admin.js +276 -0
- package/dist/src/shell/cli/friction-admin.js.map +1 -0
- package/dist/src/shell/cli/friction-report.d.ts +16 -0
- package/dist/src/shell/cli/friction-report.d.ts.map +1 -0
- package/dist/src/shell/cli/friction-report.js +156 -0
- package/dist/src/shell/cli/friction-report.js.map +1 -0
- package/dist/src/shell/cli/main.d.ts +68 -0
- package/dist/src/shell/cli/main.d.ts.map +1 -0
- package/dist/src/shell/cli/main.js +488 -0
- package/dist/src/shell/cli/main.js.map +1 -0
- package/dist/src/shell/cli/use-steady.d.ts +26 -0
- package/dist/src/shell/cli/use-steady.d.ts.map +1 -0
- package/dist/src/shell/cli/use-steady.js +117 -0
- package/dist/src/shell/cli/use-steady.js.map +1 -0
- package/dist/src/shell/cursor-shell.d.ts +63 -0
- package/dist/src/shell/cursor-shell.d.ts.map +1 -0
- package/dist/src/shell/cursor-shell.js +88 -0
- package/dist/src/shell/cursor-shell.js.map +1 -0
- package/dist/src/shell/defaults.d.ts +51 -0
- package/dist/src/shell/defaults.d.ts.map +1 -0
- package/dist/src/shell/defaults.js +78 -0
- package/dist/src/shell/defaults.js.map +1 -0
- package/dist/src/shell/history-render.d.ts +56 -0
- package/dist/src/shell/history-render.d.ts.map +1 -0
- package/dist/src/shell/history-render.js +166 -0
- package/dist/src/shell/history-render.js.map +1 -0
- package/dist/src/shell/index.d.ts +43 -0
- package/dist/src/shell/index.d.ts.map +1 -0
- package/dist/src/shell/index.js +45 -0
- package/dist/src/shell/index.js.map +1 -0
- package/dist/src/shell/render.d.ts +42 -0
- package/dist/src/shell/render.d.ts.map +1 -0
- package/dist/src/shell/render.js +122 -0
- package/dist/src/shell/render.js.map +1 -0
- package/dist/src/shell/types.d.ts +46 -0
- package/dist/src/shell/types.d.ts.map +1 -0
- package/dist/src/shell/types.js +19 -0
- package/dist/src/shell/types.js.map +1 -0
- package/dist/src/shell/workflow-defaults.d.ts +23 -0
- package/dist/src/shell/workflow-defaults.d.ts.map +1 -0
- package/dist/src/shell/workflow-defaults.js +27 -0
- package/dist/src/shell/workflow-defaults.js.map +1 -0
- package/dist/src/shell/workflow-render.d.ts +54 -0
- package/dist/src/shell/workflow-render.d.ts.map +1 -0
- package/dist/src/shell/workflow-render.js +319 -0
- package/dist/src/shell/workflow-render.js.map +1 -0
- package/dist/src/shell/workflow-shell.d.ts +110 -0
- package/dist/src/shell/workflow-shell.d.ts.map +1 -0
- package/dist/src/shell/workflow-shell.js +180 -0
- package/dist/src/shell/workflow-shell.js.map +1 -0
- package/dist/src/skills/audit.d.ts +118 -0
- package/dist/src/skills/audit.d.ts.map +1 -0
- package/dist/src/skills/audit.js +147 -0
- package/dist/src/skills/audit.js.map +1 -0
- package/dist/src/skills/invocation.d.ts +131 -0
- package/dist/src/skills/invocation.d.ts.map +1 -0
- package/dist/src/skills/invocation.js +165 -0
- package/dist/src/skills/invocation.js.map +1 -0
- package/dist/src/skills/loader.d.ts +70 -0
- package/dist/src/skills/loader.d.ts.map +1 -0
- package/dist/src/skills/loader.js +220 -0
- package/dist/src/skills/loader.js.map +1 -0
- package/dist/src/skills/local-recovery-adapter.d.ts +49 -0
- package/dist/src/skills/local-recovery-adapter.d.ts.map +1 -0
- package/dist/src/skills/local-recovery-adapter.js +184 -0
- package/dist/src/skills/local-recovery-adapter.js.map +1 -0
- package/dist/src/skills/parser.d.ts +53 -0
- package/dist/src/skills/parser.d.ts.map +1 -0
- package/dist/src/skills/parser.js +336 -0
- package/dist/src/skills/parser.js.map +1 -0
- package/dist/src/skills/registry.d.ts +123 -0
- package/dist/src/skills/registry.d.ts.map +1 -0
- package/dist/src/skills/registry.js +144 -0
- package/dist/src/skills/registry.js.map +1 -0
- package/dist/src/skills/types.d.ts +242 -0
- package/dist/src/skills/types.d.ts.map +1 -0
- package/dist/src/skills/types.js +50 -0
- package/dist/src/skills/types.js.map +1 -0
- package/dist/src/skills/validator.d.ts +31 -0
- package/dist/src/skills/validator.d.ts.map +1 -0
- package/dist/src/skills/validator.js +366 -0
- package/dist/src/skills/validator.js.map +1 -0
- package/dist/src/ucp/envelope.d.ts +165 -0
- package/dist/src/ucp/envelope.d.ts.map +1 -0
- package/dist/src/ucp/envelope.js +241 -0
- package/dist/src/ucp/envelope.js.map +1 -0
- package/dist/src/ucp/hashes.d.ts +36 -0
- package/dist/src/ucp/hashes.d.ts.map +1 -0
- package/dist/src/ucp/hashes.js +59 -0
- package/dist/src/ucp/hashes.js.map +1 -0
- package/dist/src/ucp/mappers/map-artifact.d.ts +58 -0
- package/dist/src/ucp/mappers/map-artifact.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-artifact.js +51 -0
- package/dist/src/ucp/mappers/map-artifact.js.map +1 -0
- package/dist/src/ucp/mappers/map-change-interpretation.d.ts +12 -0
- package/dist/src/ucp/mappers/map-change-interpretation.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-change-interpretation.js +18 -0
- package/dist/src/ucp/mappers/map-change-interpretation.js.map +1 -0
- package/dist/src/ucp/mappers/map-completion.d.ts +10 -0
- package/dist/src/ucp/mappers/map-completion.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-completion.js +24 -0
- package/dist/src/ucp/mappers/map-completion.js.map +1 -0
- package/dist/src/ucp/mappers/map-context.d.ts +9 -0
- package/dist/src/ucp/mappers/map-context.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-context.js +13 -0
- package/dist/src/ucp/mappers/map-context.js.map +1 -0
- package/dist/src/ucp/mappers/map-debug-trace.d.ts +10 -0
- package/dist/src/ucp/mappers/map-debug-trace.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-debug-trace.js +18 -0
- package/dist/src/ucp/mappers/map-debug-trace.js.map +1 -0
- package/dist/src/ucp/mappers/map-disambiguation.d.ts +10 -0
- package/dist/src/ucp/mappers/map-disambiguation.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-disambiguation.js +21 -0
- package/dist/src/ucp/mappers/map-disambiguation.js.map +1 -0
- package/dist/src/ucp/mappers/map-execution-trace.d.ts +64 -0
- package/dist/src/ucp/mappers/map-execution-trace.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-execution-trace.js +57 -0
- package/dist/src/ucp/mappers/map-execution-trace.js.map +1 -0
- package/dist/src/ucp/mappers/map-intent-interpretation.d.ts +11 -0
- package/dist/src/ucp/mappers/map-intent-interpretation.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-intent-interpretation.js +17 -0
- package/dist/src/ucp/mappers/map-intent-interpretation.js.map +1 -0
- package/dist/src/ucp/mappers/map-intent.d.ts +9 -0
- package/dist/src/ucp/mappers/map-intent.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-intent.js +11 -0
- package/dist/src/ucp/mappers/map-intent.js.map +1 -0
- package/dist/src/ucp/mappers/map-prv.d.ts +10 -0
- package/dist/src/ucp/mappers/map-prv.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-prv.js +14 -0
- package/dist/src/ucp/mappers/map-prv.js.map +1 -0
- package/dist/src/ucp/mappers/map-reminder-execution.d.ts +57 -0
- package/dist/src/ucp/mappers/map-reminder-execution.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-reminder-execution.js +69 -0
- package/dist/src/ucp/mappers/map-reminder-execution.js.map +1 -0
- package/dist/src/ucp/mappers/map-replay-report.d.ts +81 -0
- package/dist/src/ucp/mappers/map-replay-report.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-replay-report.js +76 -0
- package/dist/src/ucp/mappers/map-replay-report.js.map +1 -0
- package/dist/src/ucp/mappers/map-response.d.ts +13 -0
- package/dist/src/ucp/mappers/map-response.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-response.js +25 -0
- package/dist/src/ucp/mappers/map-response.js.map +1 -0
- package/dist/src/ucp/mappers/map-safety.d.ts +14 -0
- package/dist/src/ucp/mappers/map-safety.d.ts.map +1 -0
- package/dist/src/ucp/mappers/map-safety.js +22 -0
- package/dist/src/ucp/mappers/map-safety.js.map +1 -0
- package/dist/src/ucp/persistence/index.d.ts +24 -0
- package/dist/src/ucp/persistence/index.d.ts.map +1 -0
- package/dist/src/ucp/persistence/index.js +22 -0
- package/dist/src/ucp/persistence/index.js.map +1 -0
- package/dist/src/ucp/persistence/query.d.ts +164 -0
- package/dist/src/ucp/persistence/query.d.ts.map +1 -0
- package/dist/src/ucp/persistence/query.js +240 -0
- package/dist/src/ucp/persistence/query.js.map +1 -0
- package/dist/src/ucp/persistence/reader.d.ts +43 -0
- package/dist/src/ucp/persistence/reader.d.ts.map +1 -0
- package/dist/src/ucp/persistence/reader.js +104 -0
- package/dist/src/ucp/persistence/reader.js.map +1 -0
- package/dist/src/ucp/persistence/store.d.ts +77 -0
- package/dist/src/ucp/persistence/store.d.ts.map +1 -0
- package/dist/src/ucp/persistence/store.js +177 -0
- package/dist/src/ucp/persistence/store.js.map +1 -0
- package/dist/src/ucp/persistence/write.d.ts +48 -0
- package/dist/src/ucp/persistence/write.d.ts.map +1 -0
- package/dist/src/ucp/persistence/write.js +59 -0
- package/dist/src/ucp/persistence/write.js.map +1 -0
- package/dist/src/ucp/projection.d.ts +146 -0
- package/dist/src/ucp/projection.d.ts.map +1 -0
- package/dist/src/ucp/projection.js +139 -0
- package/dist/src/ucp/projection.js.map +1 -0
- package/dist/src/ucp/types.d.ts +585 -0
- package/dist/src/ucp/types.d.ts.map +1 -0
- package/dist/src/ucp/types.js +57 -0
- package/dist/src/ucp/types.js.map +1 -0
- package/dist/src/understand/completion/completion.d.ts +26 -0
- package/dist/src/understand/completion/completion.d.ts.map +1 -0
- package/dist/src/understand/completion/completion.js +45 -0
- package/dist/src/understand/completion/completion.js.map +1 -0
- package/dist/src/understand/completion/rules.d.ts +61 -0
- package/dist/src/understand/completion/rules.d.ts.map +1 -0
- package/dist/src/understand/completion/rules.js +268 -0
- package/dist/src/understand/completion/rules.js.map +1 -0
- package/dist/src/understand/completion/types.d.ts +68 -0
- package/dist/src/understand/completion/types.d.ts.map +1 -0
- package/dist/src/understand/completion/types.js +34 -0
- package/dist/src/understand/completion/types.js.map +1 -0
- package/dist/src/understand/context/context-alignment.d.ts +18 -0
- package/dist/src/understand/context/context-alignment.d.ts.map +1 -0
- package/dist/src/understand/context/context-alignment.js +61 -0
- package/dist/src/understand/context/context-alignment.js.map +1 -0
- package/dist/src/understand/context/types.d.ts +20 -0
- package/dist/src/understand/context/types.d.ts.map +1 -0
- package/dist/src/understand/context/types.js +13 -0
- package/dist/src/understand/context/types.js.map +1 -0
- package/dist/src/understand/disambiguation/detectors/missing-context.detector.d.ts +12 -0
- package/dist/src/understand/disambiguation/detectors/missing-context.detector.d.ts.map +1 -0
- package/dist/src/understand/disambiguation/detectors/missing-context.detector.js +60 -0
- package/dist/src/understand/disambiguation/detectors/missing-context.detector.js.map +1 -0
- package/dist/src/understand/disambiguation/detectors/overloaded-term.detector.d.ts +13 -0
- package/dist/src/understand/disambiguation/detectors/overloaded-term.detector.d.ts.map +1 -0
- package/dist/src/understand/disambiguation/detectors/overloaded-term.detector.js +57 -0
- package/dist/src/understand/disambiguation/detectors/overloaded-term.detector.js.map +1 -0
- package/dist/src/understand/disambiguation/detectors/typo-adjacent.detector.d.ts +16 -0
- package/dist/src/understand/disambiguation/detectors/typo-adjacent.detector.d.ts.map +1 -0
- package/dist/src/understand/disambiguation/detectors/typo-adjacent.detector.js +56 -0
- package/dist/src/understand/disambiguation/detectors/typo-adjacent.detector.js.map +1 -0
- package/dist/src/understand/disambiguation/registry.d.ts +14 -0
- package/dist/src/understand/disambiguation/registry.d.ts.map +1 -0
- package/dist/src/understand/disambiguation/registry.js +27 -0
- package/dist/src/understand/disambiguation/registry.js.map +1 -0
- package/dist/src/understand/disambiguation/types.d.ts +34 -0
- package/dist/src/understand/disambiguation/types.d.ts.map +1 -0
- package/dist/src/understand/disambiguation/types.js +15 -0
- package/dist/src/understand/disambiguation/types.js.map +1 -0
- package/dist/src/understand/intent-interpretation/intent-interpretation.d.ts +86 -0
- package/dist/src/understand/intent-interpretation/intent-interpretation.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/intent-interpretation.js +141 -0
- package/dist/src/understand/intent-interpretation/intent-interpretation.js.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/color-intent.interpreter.d.ts +33 -0
- package/dist/src/understand/intent-interpretation/interpreters/color-intent.interpreter.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/color-intent.interpreter.js +66 -0
- package/dist/src/understand/intent-interpretation/interpreters/color-intent.interpreter.js.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/config-intent.interpreter.d.ts +20 -0
- package/dist/src/understand/intent-interpretation/interpreters/config-intent.interpreter.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/config-intent.interpreter.js +80 -0
- package/dist/src/understand/intent-interpretation/interpreters/config-intent.interpreter.js.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/text-intent.interpreter.d.ts +25 -0
- package/dist/src/understand/intent-interpretation/interpreters/text-intent.interpreter.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/text-intent.interpreter.js +47 -0
- package/dist/src/understand/intent-interpretation/interpreters/text-intent.interpreter.js.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/workflow-intent.interpreter.d.ts +35 -0
- package/dist/src/understand/intent-interpretation/interpreters/workflow-intent.interpreter.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/interpreters/workflow-intent.interpreter.js +89 -0
- package/dist/src/understand/intent-interpretation/interpreters/workflow-intent.interpreter.js.map +1 -0
- package/dist/src/understand/intent-interpretation/registry.d.ts +18 -0
- package/dist/src/understand/intent-interpretation/registry.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/registry.js +26 -0
- package/dist/src/understand/intent-interpretation/registry.js.map +1 -0
- package/dist/src/understand/intent-interpretation/types.d.ts +83 -0
- package/dist/src/understand/intent-interpretation/types.d.ts.map +1 -0
- package/dist/src/understand/intent-interpretation/types.js +40 -0
- package/dist/src/understand/intent-interpretation/types.js.map +1 -0
- package/dist/src/understand/interpretation/intent.d.ts +72 -0
- package/dist/src/understand/interpretation/intent.d.ts.map +1 -0
- package/dist/src/understand/interpretation/intent.js +414 -0
- package/dist/src/understand/interpretation/intent.js.map +1 -0
- package/dist/src/understand/interpretation/interpretation.d.ts +26 -0
- package/dist/src/understand/interpretation/interpretation.d.ts.map +1 -0
- package/dist/src/understand/interpretation/interpretation.js +43 -0
- package/dist/src/understand/interpretation/interpretation.js.map +1 -0
- package/dist/src/understand/interpretation/parser.d.ts +20 -0
- package/dist/src/understand/interpretation/parser.d.ts.map +1 -0
- package/dist/src/understand/interpretation/parser.js +88 -0
- package/dist/src/understand/interpretation/parser.js.map +1 -0
- package/dist/src/understand/interpretation/rules.d.ts +19 -0
- package/dist/src/understand/interpretation/rules.d.ts.map +1 -0
- package/dist/src/understand/interpretation/rules.js +222 -0
- package/dist/src/understand/interpretation/rules.js.map +1 -0
- package/dist/src/understand/interpretation/types.d.ts +90 -0
- package/dist/src/understand/interpretation/types.d.ts.map +1 -0
- package/dist/src/understand/interpretation/types.js +29 -0
- package/dist/src/understand/interpretation/types.js.map +1 -0
- package/dist/src/understand/shared/types.d.ts +13 -0
- package/dist/src/understand/shared/types.d.ts.map +1 -0
- package/dist/src/understand/shared/types.js +9 -0
- package/dist/src/understand/shared/types.js.map +1 -0
- package/dist/src/understand/silent-guidance/index.d.ts +4 -0
- package/dist/src/understand/silent-guidance/index.d.ts.map +1 -0
- package/dist/src/understand/silent-guidance/index.js +3 -0
- package/dist/src/understand/silent-guidance/index.js.map +1 -0
- package/dist/src/understand/silent-guidance/selector.d.ts +44 -0
- package/dist/src/understand/silent-guidance/selector.d.ts.map +1 -0
- package/dist/src/understand/silent-guidance/selector.js +158 -0
- package/dist/src/understand/silent-guidance/selector.js.map +1 -0
- package/dist/src/understand/silent-guidance/templates.d.ts +31 -0
- package/dist/src/understand/silent-guidance/templates.d.ts.map +1 -0
- package/dist/src/understand/silent-guidance/templates.js +109 -0
- package/dist/src/understand/silent-guidance/templates.js.map +1 -0
- package/dist/src/understand/silent-guidance/types.d.ts +36 -0
- package/dist/src/understand/silent-guidance/types.d.ts.map +1 -0
- package/dist/src/understand/silent-guidance/types.js +2 -0
- package/dist/src/understand/silent-guidance/types.js.map +1 -0
- package/dist/src/workflow/coordinator.d.ts +197 -0
- package/dist/src/workflow/coordinator.d.ts.map +1 -0
- package/dist/src/workflow/coordinator.js +682 -0
- package/dist/src/workflow/coordinator.js.map +1 -0
- package/dist/src/workflow/index.d.ts +30 -0
- package/dist/src/workflow/index.d.ts.map +1 -0
- package/dist/src/workflow/index.js +30 -0
- package/dist/src/workflow/index.js.map +1 -0
- package/dist/src/workflow/types.d.ts +213 -0
- package/dist/src/workflow/types.d.ts.map +1 -0
- package/dist/src/workflow/types.js +27 -0
- package/dist/src/workflow/types.js.map +1 -0
- package/package.json +54 -0
- package/ui/README.md +73 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intake-service.js","sourceRoot":"","sources":["../../../src/intake/intake-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,8DAA8D,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,mBAAmB,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|
|
2
|
+
* Response Planner — maps IntentStates to ResponseModes.
|
|
3
|
+
*
|
|
4
|
+
* This is the final authority on what action the system takes.
|
|
5
|
+
* It is deterministic, explicit, and documented per case.
|
|
6
|
+
*
|
|
7
|
+
* Hard rule: ResponseMode "execute" is ONLY returned for IntentState "clear".
|
|
8
|
+
* No other path reaches execution.
|
|
9
|
+
*
|
|
10
|
+
* Mapping:
|
|
11
|
+
* unsafe → refuse (blocked; explain refusal)
|
|
12
|
+
* non_literal → ignore (social input; no task processing)
|
|
13
|
+
* ambiguous → clarify (ask for disambiguation)
|
|
14
|
+
* incomplete → guide (reserved alias; not used directly by classifier)
|
|
15
|
+
* guided_recovery → guide (provide next steps)
|
|
16
|
+
* clear → execute (deterministic, actionable)
|
|
17
|
+
*/
|
|
18
|
+
import type { IntentState, ResponseMode } from "./types.js";
|
|
19
|
+
type PlannerDecision = {
|
|
20
|
+
readonly mode: ResponseMode;
|
|
21
|
+
readonly reason: string;
|
|
22
|
+
};
|
|
23
|
+
export declare function planResponse(state: IntentState): PlannerDecision;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=response-planner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-planner.d.ts","sourceRoot":"","sources":["../../../src/intake/response-planner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5D,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,CAuChE"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response Planner — maps IntentStates to ResponseModes.
|
|
3
|
+
*
|
|
4
|
+
* This is the final authority on what action the system takes.
|
|
5
|
+
* It is deterministic, explicit, and documented per case.
|
|
6
|
+
*
|
|
7
|
+
* Hard rule: ResponseMode "execute" is ONLY returned for IntentState "clear".
|
|
8
|
+
* No other path reaches execution.
|
|
9
|
+
*
|
|
10
|
+
* Mapping:
|
|
11
|
+
* unsafe → refuse (blocked; explain refusal)
|
|
12
|
+
* non_literal → ignore (social input; no task processing)
|
|
13
|
+
* ambiguous → clarify (ask for disambiguation)
|
|
14
|
+
* incomplete → guide (reserved alias; not used directly by classifier)
|
|
15
|
+
* guided_recovery → guide (provide next steps)
|
|
16
|
+
* clear → execute (deterministic, actionable)
|
|
17
|
+
*/
|
|
18
|
+
export function planResponse(state) {
|
|
19
|
+
switch (state) {
|
|
20
|
+
case "unsafe":
|
|
21
|
+
return {
|
|
22
|
+
mode: "refuse",
|
|
23
|
+
reason: "Input matched a safety pattern and cannot be processed.",
|
|
24
|
+
};
|
|
25
|
+
case "non_literal":
|
|
26
|
+
return {
|
|
27
|
+
mode: "ignore",
|
|
28
|
+
reason: "Input is conversational and does not represent a task request.",
|
|
29
|
+
};
|
|
30
|
+
case "ambiguous":
|
|
31
|
+
return {
|
|
32
|
+
mode: "clarify",
|
|
33
|
+
reason: "Input has multiple possible interpretations. Clarification is required.",
|
|
34
|
+
};
|
|
35
|
+
case "incomplete":
|
|
36
|
+
return {
|
|
37
|
+
mode: "guide",
|
|
38
|
+
reason: "Input is safe but underspecified. Guidance provided.",
|
|
39
|
+
};
|
|
40
|
+
case "guided_recovery":
|
|
41
|
+
return {
|
|
42
|
+
mode: "guide",
|
|
43
|
+
reason: "Input does not match a supported deterministic format. Next steps provided.",
|
|
44
|
+
};
|
|
45
|
+
case "clear":
|
|
46
|
+
return {
|
|
47
|
+
mode: "execute",
|
|
48
|
+
reason: "Input is a deterministic, self-contained request.",
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=response-planner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-planner.js","sourceRoot":"","sources":["../../../src/intake/response-planner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AASH,MAAM,UAAU,YAAY,CAAC,KAAkB;IAC7C,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,QAAQ;YACX,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,yDAAyD;aAClE,CAAC;QAEJ,KAAK,aAAa;YAChB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,gEAAgE;aACzE,CAAC;QAEJ,KAAK,WAAW;YACd,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,yEAAyE;aAClF,CAAC;QAEJ,KAAK,YAAY;YACf,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,MAAM,EAAE,sDAAsD;aAC/D,CAAC;QAEJ,KAAK,iBAAiB;YACpB,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,MAAM,EACJ,6EAA6E;aAChF,CAAC;QAEJ,KAAK,OAAO;YACV,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,mDAAmD;aAC5D,CAAC;IACN,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Signal extractor — converts layer results into canonical IntakeSignals.
|
|
3
|
+
*
|
|
4
|
+
* Disambiguation note:
|
|
5
|
+
* `unknown` from disambiguation is NOT converted to a signal.
|
|
6
|
+
* It returns null (fall-through to completion), matching `clear`.
|
|
7
|
+
* Rationale: disambiguation `unknown` is an internal intermediate state.
|
|
8
|
+
* It means "no ambiguity detected." The caller sees only the final outcome.
|
|
9
|
+
* Completion is the authority on what happens next for unrecognised inputs.
|
|
10
|
+
*/
|
|
11
|
+
import type { IntakeSignal } from "./types.js";
|
|
12
|
+
import type { SafetyResult } from "../safety/types.js";
|
|
13
|
+
import type { ContextAlignmentResult } from "../understand/context/types.js";
|
|
14
|
+
import type { DisambiguationResult } from "../understand/disambiguation/types.js";
|
|
15
|
+
import type { CompletionResult } from "../understand/completion/types.js";
|
|
16
|
+
export declare function safetyToSignal(result: SafetyResult): IntakeSignal | null;
|
|
17
|
+
export declare function contextAlignmentToSignal(result: ContextAlignmentResult): IntakeSignal | null;
|
|
18
|
+
/**
|
|
19
|
+
* `unknown` → null (fall-through; completion is the authority).
|
|
20
|
+
* `clear` → null (disambiguation confirmed no ambiguity; completion decides).
|
|
21
|
+
* `ambiguous` → signal (explicit short-circuit before completion).
|
|
22
|
+
*/
|
|
23
|
+
export declare function disambiguationToSignal(result: DisambiguationResult): IntakeSignal | null;
|
|
24
|
+
export declare function completionToSignal(result: CompletionResult): IntakeSignal;
|
|
25
|
+
//# sourceMappingURL=signal-extractor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal-extractor.d.ts","sourceRoot":"","sources":["../../../src/intake/signal-extractor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,GAAG,IAAI,CAIxE;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,sBAAsB,GAC7B,YAAY,GAAG,IAAI,CAMrB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,oBAAoB,GAC3B,YAAY,GAAG,IAAI,CAMrB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,YAAY,CAMzE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Signal extractor — converts layer results into canonical IntakeSignals.
|
|
3
|
+
*
|
|
4
|
+
* Disambiguation note:
|
|
5
|
+
* `unknown` from disambiguation is NOT converted to a signal.
|
|
6
|
+
* It returns null (fall-through to completion), matching `clear`.
|
|
7
|
+
* Rationale: disambiguation `unknown` is an internal intermediate state.
|
|
8
|
+
* It means "no ambiguity detected." The caller sees only the final outcome.
|
|
9
|
+
* Completion is the authority on what happens next for unrecognised inputs.
|
|
10
|
+
*/
|
|
11
|
+
export function safetyToSignal(result) {
|
|
12
|
+
return result.verdict === "block"
|
|
13
|
+
? { type: "unsafe", source: "safety" }
|
|
14
|
+
: null;
|
|
15
|
+
}
|
|
16
|
+
export function contextAlignmentToSignal(result) {
|
|
17
|
+
switch (result.kind) {
|
|
18
|
+
case "non_literal": return { type: "non_literal", source: "context" };
|
|
19
|
+
case "hard_mismatch": return { type: "hard_mismatch", source: "context" };
|
|
20
|
+
case "aligned": return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* `unknown` → null (fall-through; completion is the authority).
|
|
25
|
+
* `clear` → null (disambiguation confirmed no ambiguity; completion decides).
|
|
26
|
+
* `ambiguous` → signal (explicit short-circuit before completion).
|
|
27
|
+
*/
|
|
28
|
+
export function disambiguationToSignal(result) {
|
|
29
|
+
switch (result.kind) {
|
|
30
|
+
case "ambiguous": return { type: "ambiguous", source: "disambiguation" };
|
|
31
|
+
case "unknown": return null;
|
|
32
|
+
case "clear": return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function completionToSignal(result) {
|
|
36
|
+
switch (result.kind) {
|
|
37
|
+
case "complete": return { type: "complete", source: "completion" };
|
|
38
|
+
case "incomplete": return { type: "incomplete", source: "completion" };
|
|
39
|
+
case "guided_recovery": return { type: "guided_recovery", source: "completion" };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=signal-extractor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signal-extractor.js","sourceRoot":"","sources":["../../../src/intake/signal-extractor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,MAAM,UAAU,cAAc,CAAC,MAAoB;IACjD,OAAO,MAAM,CAAC,OAAO,KAAK,OAAO;QAC/B,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE;QACtC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,MAA8B;IAE9B,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,aAAa,CAAC,CAAG,OAAO,EAAE,IAAI,EAAE,aAAa,EAAG,MAAM,EAAE,SAAS,EAAE,CAAC;QACzE,KAAK,eAAe,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QAC1E,KAAK,SAAS,CAAC,CAAO,OAAO,IAAI,CAAC;IACpC,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAA4B;IAE5B,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,WAAW,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;QACzE,KAAK,SAAS,CAAC,CAAG,OAAO,IAAI,CAAC;QAC9B,KAAK,OAAO,CAAC,CAAK,OAAO,IAAI,CAAC;IAChC,CAAC;AACH,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,MAAwB;IACzD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,UAAU,CAAC,CAAQ,OAAO,EAAE,IAAI,EAAE,UAAU,EAAS,MAAM,EAAE,YAAY,EAAE,CAAC;QACjF,KAAK,YAAY,CAAC,CAAM,OAAO,EAAE,IAAI,EAAE,YAAY,EAAO,MAAM,EAAE,YAAY,EAAE,CAAC;QACjF,KAAK,iBAAiB,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;IACnF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DebugTrace — the internal pipeline trace for observability.
|
|
3
|
+
*
|
|
4
|
+
* Produced by runIntakeWithTrace. Absent from normal runIntake output.
|
|
5
|
+
*
|
|
6
|
+
* ── Purpose ───────────────────────────────────────────────────────────────────
|
|
7
|
+
*
|
|
8
|
+
* Answers the developer question: "At each gate, what fired and why?"
|
|
9
|
+
*
|
|
10
|
+
* Without this, reasoning about guide vs clarify vs execute requires
|
|
11
|
+
* mentally re-running the full pipeline. With trace, you can see:
|
|
12
|
+
*
|
|
13
|
+
* - Did PRV pass?
|
|
14
|
+
* - Did safety block early?
|
|
15
|
+
* - Was the input aligned, social, or a context mismatch?
|
|
16
|
+
* - Was disambiguation ambiguous?
|
|
17
|
+
* - What did completion decide?
|
|
18
|
+
* - Did the Intent Interpretation Bridge fire and classify something?
|
|
19
|
+
* - If the bridge was silent, which guidance template was applied?
|
|
20
|
+
*
|
|
21
|
+
* ── Zero authority ────────────────────────────────────────────────────────────
|
|
22
|
+
*
|
|
23
|
+
* DebugTrace is observability data only.
|
|
24
|
+
* It has zero effect on IntakeResult.
|
|
25
|
+
* It does not change mode, signal, intentState, or guidance.
|
|
26
|
+
* It does not change safety verdicts.
|
|
27
|
+
* It does not change what executes.
|
|
28
|
+
*
|
|
29
|
+
* Any code that reads DebugTrace to make a decision is wrong.
|
|
30
|
+
*
|
|
31
|
+
* ── "not_reached" sentinel ────────────────────────────────────────────────────
|
|
32
|
+
*
|
|
33
|
+
* When a pipeline step short-circuits (PRV fails, safety blocks, etc.),
|
|
34
|
+
* subsequent steps never ran. Their fields show "not_reached" to make
|
|
35
|
+
* the short-circuit point explicit and inspectable — not a default value.
|
|
36
|
+
*/
|
|
37
|
+
import type { SilentGuidanceMode } from "../understand/silent-guidance/types.js";
|
|
38
|
+
export type DebugTrace = {
|
|
39
|
+
/**
|
|
40
|
+
* PRV result.
|
|
41
|
+
* false = PRV found a context-dependency marker with no available context.
|
|
42
|
+
* true = PRV passed (either no marker, or context is available).
|
|
43
|
+
*/
|
|
44
|
+
readonly prvPassed: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Safety Gate verdict.
|
|
47
|
+
* "allow" = gate passed
|
|
48
|
+
* "block" = input matched a safety detector
|
|
49
|
+
* "not_reached" = PRV short-circuited before safety ran
|
|
50
|
+
*/
|
|
51
|
+
readonly safetyVerdict: "allow" | "block" | "not_reached";
|
|
52
|
+
/**
|
|
53
|
+
* Context Alignment classification.
|
|
54
|
+
* "aligned" = normal task input
|
|
55
|
+
* "non_literal" = social / greeting
|
|
56
|
+
* "hard_mismatch"= context reference with no context available
|
|
57
|
+
* "not_reached" = an earlier step short-circuited
|
|
58
|
+
*/
|
|
59
|
+
readonly contextKind: "aligned" | "non_literal" | "hard_mismatch" | "not_reached";
|
|
60
|
+
/**
|
|
61
|
+
* Disambiguation classification.
|
|
62
|
+
* "clear" = input was positively normalized
|
|
63
|
+
* "ambiguous" = multiple valid interpretations, short-circuited to clarify
|
|
64
|
+
* "unknown" = no ambiguity detected, fell through to completion
|
|
65
|
+
* "not_reached" = an earlier step short-circuited
|
|
66
|
+
*/
|
|
67
|
+
readonly disambigKind: "clear" | "ambiguous" | "unknown" | "not_reached";
|
|
68
|
+
/**
|
|
69
|
+
* Completion result kind.
|
|
70
|
+
* "complete" = input is actionable
|
|
71
|
+
* "incomplete" = intent is clear, a required field is missing
|
|
72
|
+
* "guided_recovery" = intent is vague, safe next-step path provided
|
|
73
|
+
* "not_reached" = an earlier step short-circuited
|
|
74
|
+
*/
|
|
75
|
+
readonly completionKind: "complete" | "incomplete" | "guided_recovery" | "not_reached";
|
|
76
|
+
/**
|
|
77
|
+
* Whether the Intent Interpretation Bridge ran and produced a classification.
|
|
78
|
+
*
|
|
79
|
+
* true = bridge ran (guided_recovery or incomplete completion) AND an interpreter
|
|
80
|
+
* claimed the input (guidance.interpretation is present in the result)
|
|
81
|
+
* false = bridge did not run (completion was not guide-mode), or ran but no
|
|
82
|
+
* interpreter claimed the input (guidance.interpretation is absent)
|
|
83
|
+
*
|
|
84
|
+
* This is the most useful single signal for debugging guide mode behavior.
|
|
85
|
+
* If guide mode feels unhelpful, bridgeFired: false tells you the bridge had
|
|
86
|
+
* no signal to work with. See bridgeSilenceReason for the runtime observable cause.
|
|
87
|
+
*/
|
|
88
|
+
readonly bridgeFired: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Why the bridge stayed silent on this guide flow.
|
|
91
|
+
*
|
|
92
|
+
* Present ONLY when:
|
|
93
|
+
* - completionKind is "guided_recovery" or "incomplete" (bridge was eligible to run), AND
|
|
94
|
+
* - bridgeFired === false (no interpreter claimed the input)
|
|
95
|
+
*
|
|
96
|
+
* This separates three cleanly distinct states:
|
|
97
|
+
* bridgeFired = true → bridge ran and classified the input
|
|
98
|
+
* bridgeFired = false + silenceReason present → bridge was eligible; nothing claimed it
|
|
99
|
+
* bridgeFired = false + silenceReason absent → bridge was not eligible (non-guide path)
|
|
100
|
+
*
|
|
101
|
+
* ── Current values ────────────────────────────────────────────────────────
|
|
102
|
+
*
|
|
103
|
+
* "no_interpreter_claimed"
|
|
104
|
+
* The bridge ran the full interpreter registry; every interpreter returned null.
|
|
105
|
+
* This is the ONLY observable runtime fact. The specific reason why no interpreter
|
|
106
|
+
* claimed the input (ambiguous domain, value invention required, safety adjacency, etc.)
|
|
107
|
+
* is a human gate evaluation — not a runtime decision.
|
|
108
|
+
* See: tests/intake/when-not-to-build.test.ts for the formal per-flow rationale.
|
|
109
|
+
*
|
|
110
|
+
* ── Closed enum rule (LOCKED) ─────────────────────────────────────────────
|
|
111
|
+
*
|
|
112
|
+
* bridgeSilenceReason is observational only.
|
|
113
|
+
* It MUST remain a closed, runtime-provable enum.
|
|
114
|
+
*
|
|
115
|
+
* A new value may ONLY be added if it is:
|
|
116
|
+
* 1. Directly observable — detectable mechanically at bridge-run time
|
|
117
|
+
* 2. Mechanically provable — not inferred, not assumed, not approximated
|
|
118
|
+
* 3. Non-interpretive — does not explain WHY (that is the human gate's job)
|
|
119
|
+
*
|
|
120
|
+
* DO NOT add values that:
|
|
121
|
+
* - Encode gate criteria (C1–C5) — those are human evaluations, not runtime facts
|
|
122
|
+
* - Explain ambiguity or domain mismatch — those require inference
|
|
123
|
+
* - Duplicate information already in completionKind or other trace fields
|
|
124
|
+
*
|
|
125
|
+
* ── Internal-only, never exposed to users ────────────────────────────────
|
|
126
|
+
*
|
|
127
|
+
* This field MUST NOT:
|
|
128
|
+
* - Appear in IntakeResult
|
|
129
|
+
* - Appear in GuidancePayload
|
|
130
|
+
* - Affect mode, guidance, interpretation, or any decision path
|
|
131
|
+
*
|
|
132
|
+
* Any code that reads bridgeSilenceReason to make a decision is wrong.
|
|
133
|
+
*/
|
|
134
|
+
readonly bridgeSilenceReason?: "no_interpreter_claimed";
|
|
135
|
+
/**
|
|
136
|
+
* The silent guidance mode applied to this bridge-silent flow.
|
|
137
|
+
*
|
|
138
|
+
* Present ONLY when bridgeSilenceReason === "no_interpreter_claimed".
|
|
139
|
+
* Records which generic guidance template was selected to replace the
|
|
140
|
+
* default code-patch steps.
|
|
141
|
+
*
|
|
142
|
+
* ── Zero authority ────────────────────────────────────────────────────────
|
|
143
|
+
*
|
|
144
|
+
* This field is observational only.
|
|
145
|
+
* It records the template decision; it does not drive any other decision.
|
|
146
|
+
*
|
|
147
|
+
* This field MUST NOT:
|
|
148
|
+
* - Appear in IntakeResult
|
|
149
|
+
* - Appear in GuidancePayload (beyond nextSteps being shaped by it)
|
|
150
|
+
* - Affect mode, signal, intentState, or interpretation
|
|
151
|
+
* - Enter UCP envelopes
|
|
152
|
+
*
|
|
153
|
+
* Any code that reads silentGuidanceMode to make a routing decision is wrong.
|
|
154
|
+
*/
|
|
155
|
+
readonly silentGuidanceMode?: SilentGuidanceMode;
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../src/intake/trace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;IAE1D;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,GAAG,aAAa,GAAG,eAAe,GAAG,aAAa,CAAC;IAElF;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,aAAa,CAAC;IAEzE;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,EAAE,UAAU,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CAAC;IAEvF;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAExD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CAClD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DebugTrace — the internal pipeline trace for observability.
|
|
3
|
+
*
|
|
4
|
+
* Produced by runIntakeWithTrace. Absent from normal runIntake output.
|
|
5
|
+
*
|
|
6
|
+
* ── Purpose ───────────────────────────────────────────────────────────────────
|
|
7
|
+
*
|
|
8
|
+
* Answers the developer question: "At each gate, what fired and why?"
|
|
9
|
+
*
|
|
10
|
+
* Without this, reasoning about guide vs clarify vs execute requires
|
|
11
|
+
* mentally re-running the full pipeline. With trace, you can see:
|
|
12
|
+
*
|
|
13
|
+
* - Did PRV pass?
|
|
14
|
+
* - Did safety block early?
|
|
15
|
+
* - Was the input aligned, social, or a context mismatch?
|
|
16
|
+
* - Was disambiguation ambiguous?
|
|
17
|
+
* - What did completion decide?
|
|
18
|
+
* - Did the Intent Interpretation Bridge fire and classify something?
|
|
19
|
+
* - If the bridge was silent, which guidance template was applied?
|
|
20
|
+
*
|
|
21
|
+
* ── Zero authority ────────────────────────────────────────────────────────────
|
|
22
|
+
*
|
|
23
|
+
* DebugTrace is observability data only.
|
|
24
|
+
* It has zero effect on IntakeResult.
|
|
25
|
+
* It does not change mode, signal, intentState, or guidance.
|
|
26
|
+
* It does not change safety verdicts.
|
|
27
|
+
* It does not change what executes.
|
|
28
|
+
*
|
|
29
|
+
* Any code that reads DebugTrace to make a decision is wrong.
|
|
30
|
+
*
|
|
31
|
+
* ── "not_reached" sentinel ────────────────────────────────────────────────────
|
|
32
|
+
*
|
|
33
|
+
* When a pipeline step short-circuits (PRV fails, safety blocks, etc.),
|
|
34
|
+
* subsequent steps never ran. Their fields show "not_reached" to make
|
|
35
|
+
* the short-circuit point explicit and inspectable — not a default value.
|
|
36
|
+
*/
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=trace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/intake/trace.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intake pipeline types.
|
|
3
|
+
*
|
|
4
|
+
* ── Signal contract ───────────────────────────────────────────────────────────
|
|
5
|
+
*
|
|
6
|
+
* IntakeSignal is the PUBLIC output signal.
|
|
7
|
+
* It does NOT include `unknown` from disambiguation — that is an internal
|
|
8
|
+
* intermediate state meaning "no ambiguity detected; fall through to completion."
|
|
9
|
+
*
|
|
10
|
+
* ── Dual interpretation contract ──────────────────────────────────────────────
|
|
11
|
+
*
|
|
12
|
+
* IntakeResult carries two distinct, independent interpretation fields:
|
|
13
|
+
*
|
|
14
|
+
* guidance.interpretation (IntentInterpretation)
|
|
15
|
+
* → Present when mode === "guide" AND vague intent was classified
|
|
16
|
+
* → Describes what the user appears to be TRYING TO DO
|
|
17
|
+
* → Produced by Intent Interpretation Bridge (understand/intent-interpretation/)
|
|
18
|
+
*
|
|
19
|
+
* interpretation (InterpretationResult)
|
|
20
|
+
* → Present when mode === "execute" AND input is a structured change command
|
|
21
|
+
* → Describes what the change MEANS (impact, confidence, category)
|
|
22
|
+
* → Produced by Change Interpretation (understand/interpretation/)
|
|
23
|
+
*
|
|
24
|
+
* ── Guide mode contract ───────────────────────────────────────────────────────
|
|
25
|
+
*
|
|
26
|
+
* When mode === "guide", IntakeResult MUST carry `guidance`.
|
|
27
|
+
* No consumer should need to recompute completion to get next steps.
|
|
28
|
+
*/
|
|
29
|
+
import type { PRVContext } from "../prv/types.js";
|
|
30
|
+
import type { InteractionContract } from "../interaction/types.js";
|
|
31
|
+
import type { InterpretationResult } from "../understand/interpretation/types.js";
|
|
32
|
+
export type { GuidancePayload } from "../understand/intent-interpretation/types.js";
|
|
33
|
+
export type IntakeSignal = {
|
|
34
|
+
readonly type: "unsafe";
|
|
35
|
+
readonly source: "safety";
|
|
36
|
+
} | {
|
|
37
|
+
readonly type: "non_literal";
|
|
38
|
+
readonly source: "context";
|
|
39
|
+
} | {
|
|
40
|
+
readonly type: "hard_mismatch";
|
|
41
|
+
readonly source: "context";
|
|
42
|
+
} | {
|
|
43
|
+
readonly type: "ambiguous";
|
|
44
|
+
readonly source: "disambiguation";
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: "incomplete";
|
|
47
|
+
readonly source: "completion";
|
|
48
|
+
} | {
|
|
49
|
+
readonly type: "guided_recovery";
|
|
50
|
+
readonly source: "completion";
|
|
51
|
+
} | {
|
|
52
|
+
readonly type: "complete";
|
|
53
|
+
readonly source: "completion";
|
|
54
|
+
};
|
|
55
|
+
export type IntentState = "unsafe" | "non_literal" | "ambiguous" | "incomplete" | "guided_recovery" | "clear";
|
|
56
|
+
export type ResponseMode = "refuse" | "ignore" | "clarify" | "guide" | "execute";
|
|
57
|
+
export type IntakeContext = {
|
|
58
|
+
readonly prvContext: PRVContext;
|
|
59
|
+
readonly interactionContract: InteractionContract;
|
|
60
|
+
};
|
|
61
|
+
import type { GuidancePayload } from "../understand/intent-interpretation/types.js";
|
|
62
|
+
export type IntakeResult = {
|
|
63
|
+
readonly mode: ResponseMode;
|
|
64
|
+
readonly reason: string;
|
|
65
|
+
readonly signal: IntakeSignal;
|
|
66
|
+
readonly intentState: IntentState;
|
|
67
|
+
readonly guidance?: GuidancePayload;
|
|
68
|
+
readonly interpretation?: InterpretationResult;
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/intake/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAGlF,YAAY,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAIpF,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;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,WAAW,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,cAAc,CAAC,EAAE,oBAAoB,CAAC;CAKhD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intake pipeline types.
|
|
3
|
+
*
|
|
4
|
+
* ── Signal contract ───────────────────────────────────────────────────────────
|
|
5
|
+
*
|
|
6
|
+
* IntakeSignal is the PUBLIC output signal.
|
|
7
|
+
* It does NOT include `unknown` from disambiguation — that is an internal
|
|
8
|
+
* intermediate state meaning "no ambiguity detected; fall through to completion."
|
|
9
|
+
*
|
|
10
|
+
* ── Dual interpretation contract ──────────────────────────────────────────────
|
|
11
|
+
*
|
|
12
|
+
* IntakeResult carries two distinct, independent interpretation fields:
|
|
13
|
+
*
|
|
14
|
+
* guidance.interpretation (IntentInterpretation)
|
|
15
|
+
* → Present when mode === "guide" AND vague intent was classified
|
|
16
|
+
* → Describes what the user appears to be TRYING TO DO
|
|
17
|
+
* → Produced by Intent Interpretation Bridge (understand/intent-interpretation/)
|
|
18
|
+
*
|
|
19
|
+
* interpretation (InterpretationResult)
|
|
20
|
+
* → Present when mode === "execute" AND input is a structured change command
|
|
21
|
+
* → Describes what the change MEANS (impact, confidence, category)
|
|
22
|
+
* → Produced by Change Interpretation (understand/interpretation/)
|
|
23
|
+
*
|
|
24
|
+
* ── Guide mode contract ───────────────────────────────────────────────────────
|
|
25
|
+
*
|
|
26
|
+
* When mode === "guide", IntakeResult MUST carry `guidance`.
|
|
27
|
+
* No consumer should need to recompute completion to get next steps.
|
|
28
|
+
*/
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/intake/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default InteractionContract.
|
|
3
|
+
*
|
|
4
|
+
* Applied to any new subject that has no prior contract.
|
|
5
|
+
* All modes start at balanced/plain_first/syntax_first.
|
|
6
|
+
* All observedIntentPatterns counts start at zero.
|
|
7
|
+
*/
|
|
8
|
+
import type { InteractionContract, ObservedIntentPatterns } from "./types.js";
|
|
9
|
+
export declare const DEFAULT_OBSERVED_INTENT_PATTERNS: Readonly<ObservedIntentPatterns>;
|
|
10
|
+
export declare const DEFAULT_CONTRACT: Readonly<InteractionContract>;
|
|
11
|
+
export declare function createDefaultContract(subjectId: string, createdAt?: string): InteractionContract;
|
|
12
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../src/interaction/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE9E,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,sBAAsB,CAI7E,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,mBAAmB,CAS1D,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,MAAiC,GAC3C,mBAAmB,CAErB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default InteractionContract.
|
|
3
|
+
*
|
|
4
|
+
* Applied to any new subject that has no prior contract.
|
|
5
|
+
* All modes start at balanced/plain_first/syntax_first.
|
|
6
|
+
* All observedIntentPatterns counts start at zero.
|
|
7
|
+
*/
|
|
8
|
+
export const DEFAULT_OBSERVED_INTENT_PATTERNS = {
|
|
9
|
+
visual_color: 0,
|
|
10
|
+
text_change: 0,
|
|
11
|
+
config_change: 0,
|
|
12
|
+
};
|
|
13
|
+
export const DEFAULT_CONTRACT = {
|
|
14
|
+
version: 1,
|
|
15
|
+
subjectId: "anonymous",
|
|
16
|
+
ambiguityMode: "balanced",
|
|
17
|
+
explanationMode: "plain_first",
|
|
18
|
+
unsupportedGuidanceMode: "syntax_first",
|
|
19
|
+
updatedAt: "1970-01-01T00:00:00.000Z",
|
|
20
|
+
source: "default",
|
|
21
|
+
observedIntentPatterns: DEFAULT_OBSERVED_INTENT_PATTERNS,
|
|
22
|
+
};
|
|
23
|
+
export function createDefaultContract(subjectId, createdAt = new Date().toISOString()) {
|
|
24
|
+
return { ...DEFAULT_CONTRACT, subjectId, updatedAt: createdAt };
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/interaction/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,CAAC,MAAM,gCAAgC,GAAqC;IAChF,YAAY,EAAG,CAAC;IAChB,WAAW,EAAI,CAAC;IAChB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAkC;IAC7D,OAAO,EAAmB,CAAC;IAC3B,SAAS,EAAiB,WAAW;IACrC,aAAa,EAAa,UAAU;IACpC,eAAe,EAAW,aAAa;IACvC,uBAAuB,EAAG,cAAc;IACxC,SAAS,EAAiB,0BAA0B;IACpD,MAAM,EAAoB,SAAS;IACnC,sBAAsB,EAAI,gCAAgC;CAC3D,CAAC;AAEF,MAAM,UAAU,qBAAqB,CACnC,SAAiB,EACjB,YAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;IAE5C,OAAO,EAAE,GAAG,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* applyGuidanceOrdering — session-aware guidance step ordering.
|
|
3
|
+
*
|
|
4
|
+
* This is Phase B2 of session memory alignment. It takes a finalized
|
|
5
|
+
* GuidancePayload and applies two purely presentational adjustments based
|
|
6
|
+
* on observedIntentPatterns from the InteractionContract:
|
|
7
|
+
*
|
|
8
|
+
* 1. Step type ordering: read_first always before use_exact_format (defensive).
|
|
9
|
+
* 2. Label emphasis: when the user is familiar with a category
|
|
10
|
+
* (≥ FAMILIARITY_THRESHOLD observations), the read_first label
|
|
11
|
+
* shortens to action-first form (drops "first" — they know the flow).
|
|
12
|
+
*
|
|
13
|
+
* ── HARD INVARIANTS (must never be violated) ─────────────────────────────────
|
|
14
|
+
*
|
|
15
|
+
* 1. Step count never changes. No step is added. No step is removed.
|
|
16
|
+
* 2. missing[] is never modified.
|
|
17
|
+
* 3. interpretation (category, confidence, summary, basis) is never modified.
|
|
18
|
+
* 4. mode, reason, signal, intentState are NOT touched (not in this type).
|
|
19
|
+
* 5. Counts may only affect ordering and label text — never content truth.
|
|
20
|
+
* 6. A required safe step (read_first) is never suppressed.
|
|
21
|
+
* 7. If counts tie across categories, ordering is deterministic (stable sort).
|
|
22
|
+
* 8. Label changes use only the current guidance's interpretation category.
|
|
23
|
+
* A high text_change count never alters a visual_color label.
|
|
24
|
+
*
|
|
25
|
+
* ── This function is purely presentational ───────────────────────────────────
|
|
26
|
+
*
|
|
27
|
+
* It is called after all intake decisions are made. It cannot and must not
|
|
28
|
+
* feed back into PRV, safety, context alignment, disambiguation, completion,
|
|
29
|
+
* response planning, or interpretation category/confidence.
|
|
30
|
+
*/
|
|
31
|
+
import type { ObservedIntentPatterns } from "./types.js";
|
|
32
|
+
import type { GuidancePayload } from "../understand/intent-interpretation/types.js";
|
|
33
|
+
/**
|
|
34
|
+
* Number of same-category guided recovery observations required before
|
|
35
|
+
* the read_first label switches to the shorter, action-first form.
|
|
36
|
+
*
|
|
37
|
+
* Below threshold → default label (explains the "why" for new users).
|
|
38
|
+
* At or above threshold → familiar label (shorter, action-first).
|
|
39
|
+
*/
|
|
40
|
+
export declare const FAMILIARITY_THRESHOLD = 3;
|
|
41
|
+
/**
|
|
42
|
+
* Apply session-aware ordering to a GuidancePayload.
|
|
43
|
+
*
|
|
44
|
+
* Returns a new GuidancePayload with:
|
|
45
|
+
* - nextSteps sorted by type (read_first → add_missing_field → use_exact_format)
|
|
46
|
+
* - read_first label adjusted to familiar form when patterns[category] >= 3
|
|
47
|
+
*
|
|
48
|
+
* All other fields (missing, interpretation, reason) are returned unchanged.
|
|
49
|
+
*
|
|
50
|
+
* This is a pure function: deterministic, no side effects.
|
|
51
|
+
*/
|
|
52
|
+
export declare function applyGuidanceOrdering(guidance: GuidancePayload, patterns: ObservedIntentPatterns): GuidancePayload;
|
|
53
|
+
//# sourceMappingURL=guidance-order.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guidance-order.d.ts","sourceRoot":"","sources":["../../../src/interaction/guidance-order.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAIpF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AA8BvC;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,sBAAsB,GAC/B,eAAe,CAkBjB"}
|