@north-light/cli 0.0.0 → 0.3.414
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 +18 -0
- package/README.md +182 -2
- package/bin/crouter +4 -0
- package/bin/crtr +4 -0
- package/bin/crtr-launcher +4 -0
- package/bin/crtrd +4 -0
- package/bin/progress-painter.mjs +89 -0
- package/bin/runtime-generation-manifest.mjs +286 -0
- package/bin/runtime-selector.mjs +510 -0
- package/dist/api/client.d.ts +501 -0
- package/dist/api/client.js +3 -0
- package/dist/api/command-manifest/index.d.ts +3 -0
- package/dist/api/command-manifest/index.js +1 -0
- package/dist/api/command-manifest/manifest.d.ts +51 -0
- package/dist/api/command-manifest/manifest.js +1 -0
- package/dist/api/command-manifest/result.d.ts +25 -0
- package/dist/api/command-manifest/result.js +1 -0
- package/dist/api/command-manifest/schema.d.ts +28 -0
- package/dist/api/command-manifest/schema.js +1 -0
- package/dist/api/dto/analytics.d.ts +184 -0
- package/dist/api/dto/analytics.js +0 -0
- package/dist/api/dto/attach.d.ts +22 -0
- package/dist/api/dto/attach.js +0 -0
- package/dist/api/dto/bash-jobs.d.ts +24 -0
- package/dist/api/dto/bash-jobs.js +1 -0
- package/dist/api/dto/bash.d.ts +17 -0
- package/dist/api/dto/bash.js +0 -0
- package/dist/api/dto/broker-ops.d.ts +187 -0
- package/dist/api/dto/broker-ops.js +0 -0
- package/dist/api/dto/broker-signals.d.ts +25 -0
- package/dist/api/dto/broker-signals.js +0 -0
- package/dist/api/dto/broker.d.ts +86 -0
- package/dist/api/dto/broker.js +0 -0
- package/dist/api/dto/canvas.d.ts +359 -0
- package/dist/api/dto/canvas.js +0 -0
- package/dist/api/dto/chat-inventory.d.ts +56 -0
- package/dist/api/dto/chat-inventory.js +0 -0
- package/dist/api/dto/common.d.ts +29 -0
- package/dist/api/dto/common.js +1 -0
- package/dist/api/dto/config.d.ts +46 -0
- package/dist/api/dto/config.js +0 -0
- package/dist/api/dto/crons.d.ts +158 -0
- package/dist/api/dto/crons.js +1 -0
- package/dist/api/dto/custom-objects.d.ts +66 -0
- package/dist/api/dto/custom-objects.js +0 -0
- package/dist/api/dto/delivery.d.ts +71 -0
- package/dist/api/dto/delivery.js +0 -0
- package/dist/api/dto/docs.d.ts +135 -0
- package/dist/api/dto/docs.js +1 -0
- package/dist/api/dto/files.d.ts +21 -0
- package/dist/api/dto/files.js +0 -0
- package/dist/api/dto/focus.d.ts +24 -0
- package/dist/api/dto/focus.js +0 -0
- package/dist/api/dto/grants.d.ts +28 -0
- package/dist/api/dto/grants.js +0 -0
- package/dist/api/dto/health.d.ts +116 -0
- package/dist/api/dto/health.js +0 -0
- package/dist/api/dto/human-requests.d.ts +113 -0
- package/dist/api/dto/human-requests.js +0 -0
- package/dist/api/dto/human.d.ts +28 -0
- package/dist/api/dto/human.js +0 -0
- package/dist/api/dto/inbox.d.ts +273 -0
- package/dist/api/dto/inbox.js +0 -0
- package/dist/api/dto/lifecycle.d.ts +88 -0
- package/dist/api/dto/lifecycle.js +0 -0
- package/dist/api/dto/limits.d.ts +29 -0
- package/dist/api/dto/limits.js +0 -0
- package/dist/api/dto/mail.d.ts +44 -0
- package/dist/api/dto/mail.js +0 -0
- package/dist/api/dto/messages.d.ts +104 -0
- package/dist/api/dto/messages.js +0 -0
- package/dist/api/dto/model-config.d.ts +25 -0
- package/dist/api/dto/model-config.js +0 -0
- package/dist/api/dto/modelauth.d.ts +132 -0
- package/dist/api/dto/modelauth.js +0 -0
- package/dist/api/dto/node-events.d.ts +65 -0
- package/dist/api/dto/node-events.js +0 -0
- package/dist/api/dto/node-outcomes.d.ts +88 -0
- package/dist/api/dto/node-outcomes.js +0 -0
- package/dist/api/dto/node-records.d.ts +35 -0
- package/dist/api/dto/node-records.js +0 -0
- package/dist/api/dto/nodes.d.ts +371 -0
- package/dist/api/dto/nodes.js +0 -0
- package/dist/api/dto/objects.d.ts +172 -0
- package/dist/api/dto/objects.js +1 -0
- package/dist/api/dto/profiles.d.ts +117 -0
- package/dist/api/dto/profiles.js +1 -0
- package/dist/api/dto/recovery.d.ts +104 -0
- package/dist/api/dto/recovery.js +0 -0
- package/dist/api/dto/reports.d.ts +95 -0
- package/dist/api/dto/reports.js +0 -0
- package/dist/api/dto/review-comments.d.ts +146 -0
- package/dist/api/dto/review-comments.js +0 -0
- package/dist/api/dto/reviews.d.ts +113 -0
- package/dist/api/dto/reviews.js +0 -0
- package/dist/api/dto/run-events.d.ts +295 -0
- package/dist/api/dto/run-events.js +0 -0
- package/dist/api/dto/structured-requests.d.ts +64 -0
- package/dist/api/dto/structured-requests.js +1 -0
- package/dist/api/dto/subscriptions.d.ts +14 -0
- package/dist/api/dto/subscriptions.js +0 -0
- package/dist/api/dto/worktree.d.ts +55 -0
- package/dist/api/dto/worktree.js +0 -0
- package/dist/api/error-codes.d.ts +259 -0
- package/dist/api/error-codes.js +1 -0
- package/dist/api/errors.d.ts +47 -0
- package/dist/api/errors.js +1 -0
- package/dist/api/index.d.ts +48 -0
- package/dist/api/index.js +1 -0
- package/dist/api/long-poll.d.ts +59 -0
- package/dist/api/long-poll.js +1 -0
- package/dist/api/node-transport.d.ts +18 -0
- package/dist/api/node-transport.js +1 -0
- package/dist/api/plugin-manifest-schema.d.ts +233 -0
- package/dist/api/plugin-manifest-schema.js +0 -0
- package/dist/api/routes.d.ts +164 -0
- package/dist/api/routes.js +1 -0
- package/dist/api/runtime-version.d.ts +31 -0
- package/dist/api/runtime-version.js +1 -0
- package/dist/build-root.d.ts +58 -0
- package/dist/build-root.js +1 -0
- package/dist/builtin-memory/00-runtime-base/00-authoring.md +46 -0
- package/dist/builtin-memory/00-runtime-base/01-escalation-unattended.md +15 -0
- package/dist/builtin-memory/00-runtime-base/01-escalation.md +15 -0
- package/dist/builtin-memory/00-runtime-base/02-insight-capture.md +11 -0
- package/dist/builtin-memory/01-spine/00-has-manager.md +14 -0
- package/dist/builtin-memory/02-turn-lifecycle/00-ending-a-turn.md +28 -0
- package/dist/builtin-memory/02-turn-lifecycle/01-terminal-user.md +11 -0
- package/dist/builtin-memory/02-turn-lifecycle/01-terminal.md +13 -0
- package/dist/builtin-memory/02-turn-lifecycle/02-resident.md +19 -0
- package/dist/builtin-memory/04-base-worker-exploring.md +13 -0
- package/dist/builtin-memory/04-base-worker.md +15 -0
- package/dist/builtin-memory/04-orchestration-kernel.md +62 -0
- package/dist/builtin-memory/05-kinds/advisor/01-orchestrator.md +17 -0
- package/dist/builtin-memory/05-kinds/advisor/advice-contract.md +15 -0
- package/dist/builtin-memory/05-kinds/explore/00-base.md +19 -0
- package/dist/builtin-memory/05-kinds/explore/01-orchestrator.md +17 -0
- package/dist/builtin-memory/05-kinds/general/00-base.md +15 -0
- package/dist/builtin-memory/05-kinds/review/00-base.md +17 -0
- package/dist/builtin-memory/05-kinds/review/01-orchestrator.md +20 -0
- package/dist/builtin-memory/05-kinds/review/companion/00-base.md +21 -0
- package/dist/builtin-memory/05-kinds/review/security-findings.md +13 -0
- package/dist/builtin-memory/advisor/council.md +33 -0
- package/dist/builtin-memory/crouter-concepts/INDEX.md +15 -0
- package/dist/builtin-memory/crouter-concepts/README.md +19 -0
- package/dist/builtin-memory/crouter-concepts/documents.md +54 -0
- package/dist/builtin-memory/crouter-concepts/lifecycle-and-wakes.md +28 -0
- package/dist/builtin-memory/crouter-concepts/nodes-and-the-canvas.md +31 -0
- package/dist/builtin-memory/crouter-concepts/profiles-kinds-and-modes.md +33 -0
- package/dist/builtin-memory/crouter-concepts/scopes-and-trust.md +41 -0
- package/dist/builtin-memory/crouter-concepts/why-a-daemon.md +31 -0
- package/dist/builtin-memory/crouter-plugin/INDEX.md +12 -0
- package/dist/builtin-memory/crouter-plugin/README.md +22 -0
- package/dist/builtin-memory/crouter-plugin/bundles-and-memory.md +30 -0
- package/dist/builtin-memory/crouter-plugin/commands.md +24 -0
- package/dist/builtin-memory/crouter-plugin/deploying.md +36 -0
- package/dist/builtin-memory/crouter-plugin/errors.md +41 -0
- package/dist/builtin-memory/crouter-plugin/getting-started.md +25 -0
- package/dist/builtin-memory/crouter-plugin/output.md +52 -0
- package/dist/builtin-memory/crouter-plugin/parameters.md +31 -0
- package/dist/builtin-memory/crouter-sdk/INDEX.md +13 -0
- package/dist/builtin-memory/crouter-sdk/README.md +92 -0
- package/dist/builtin-memory/crouter-sdk/bash.md +40 -0
- package/dist/builtin-memory/crouter-sdk/client.md +299 -0
- package/dist/builtin-memory/crouter-sdk/docker.md +70 -0
- package/dist/builtin-memory/crouter-sdk/error-envelope.md +38 -0
- package/dist/builtin-memory/crouter-sdk/errors.md +113 -0
- package/dist/builtin-memory/crouter-sdk/files.md +50 -0
- package/dist/builtin-memory/crouter-sdk/getting-started.md +226 -0
- package/dist/builtin-memory/crouter-sdk/guides/README.md +20 -0
- package/dist/builtin-memory/crouter-sdk/guides/apps-on-crouter-cloud.md +117 -0
- package/dist/builtin-memory/crouter-sdk/guides/apps-with-many-users.md +61 -0
- package/dist/builtin-memory/crouter-sdk/guides/event-driven-assistant.md +91 -0
- package/dist/builtin-memory/crouter-sdk/guides/fan-out-pipeline.md +57 -0
- package/dist/builtin-memory/crouter-sdk/guides/human-approval.md +79 -0
- package/dist/builtin-memory/crouter-sdk/guides/typed-extraction.md +55 -0
- package/dist/builtin-memory/crouter-sdk/memory.md +49 -0
- package/dist/builtin-memory/crouter-sdk/nodes.md +195 -0
- package/dist/builtin-memory/crouter-sdk/release-notes.md +209 -0
- package/dist/builtin-memory/crouter-sdk/resources.md +101 -0
- package/dist/builtin-memory/crouter-sdk/streaming.md +218 -0
- package/dist/builtin-memory/crouter-sdk/testing.md +165 -0
- package/dist/builtin-memory/explore/exploration-doc.md +27 -0
- package/dist/builtin-memory/insights/capture.md +49 -0
- package/dist/builtin-memory/insights/init.md +88 -0
- package/dist/builtin-memory/internal/INDEX.md +40 -0
- package/dist/builtin-memory/internal/agent-shaping.md +80 -0
- package/dist/builtin-memory/internal/examples/INDEX.md +16 -0
- package/dist/builtin-memory/internal/examples/imessage-assistant.md +101 -0
- package/dist/builtin-memory/internal/marketplaces.md +160 -0
- package/dist/builtin-memory/internal/memory-loading.md +68 -0
- package/dist/builtin-memory/internal/nodes-and-canvas.md +60 -0
- package/dist/builtin-memory/internal/plugins.md +457 -0
- package/dist/builtin-memory/internal/storage-tiers.md +51 -0
- package/dist/builtin-memory/memory-read-orientation.md +13 -0
- package/dist/builtin-memory/wedged-child-on-runaway-bash.md +21 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/README.md +49 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/claude-plugin-commands.ts +440 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/crtr-commands/filters.json +7 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/crtr-commands/index.ts +214 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/frontmatter-rules/index.ts +421 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/memory-slash-commands.ts +145 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/pi-shell-runner.ts +34 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/provider-rotation.d.ts +78 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/provider-rotation.js +1181 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/provider-rotation.ts +1409 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/sysprompt-window.ts +19 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/lib/package.json +3 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/lib/subscription-state.js +1 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/lib/subscription-state.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/LICENSE +13 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/README.md +172 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/bin.mjs +11 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/errors.js +57 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/index.js +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/log.js +11 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/util.js +11 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/dist/visit.js +233 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/index.js +5 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/browser/package.json +3 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/cli.d.ts +8 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/cli.mjs +201 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/composer.js +224 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/Document.js +337 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/doc/directives.js +178 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/errors.d.ts +21 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/errors.js +62 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/index.d.ts +25 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/index.js +50 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/log.d.ts +3 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/log.js +19 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Alias.js +118 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/options.d.ts +350 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/cst.js +112 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/parse/parser.js +980 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/public-api.js +107 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/tags.js +99 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/test-events.js +134 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/util.d.ts +16 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/util.js +28 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/visit.d.ts +102 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/dist/visit.js +236 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/package.json +97 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/node_modules/yaml/util.js +2 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/package-lock.json +3857 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/package.json +25 -0
- package/dist/builtin-pi-packages/pi-crtr-extensions/tsconfig.json +10 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +11 -0
- package/dist/clients/attach/ansi-cells.d.ts +44 -0
- package/dist/clients/attach/ansi-cells.js +1 -0
- package/dist/clients/attach/assets/README.md +7 -0
- package/dist/clients/attach/assets/whip-06.mp3 +0 -0
- package/dist/clients/attach/assets/whip-crack.mp3 +0 -0
- package/dist/clients/attach/assets/whip-snap.mp3 +0 -0
- package/dist/clients/attach/chrome/bash-jobs.d.ts +6 -0
- package/dist/clients/attach/chrome/bash-jobs.js +1 -0
- package/dist/clients/attach/chrome/canvas-panels.d.ts +38 -0
- package/dist/clients/attach/chrome/canvas-panels.js +1 -0
- package/dist/clients/attach/chrome/completion-bell.d.ts +10 -0
- package/dist/clients/attach/chrome/completion-bell.js +1 -0
- package/dist/clients/attach/chrome/cron-wait.d.ts +3 -0
- package/dist/clients/attach/chrome/cron-wait.js +1 -0
- package/dist/clients/attach/chrome/git-info.d.ts +20 -0
- package/dist/clients/attach/chrome/git-info.js +2 -0
- package/dist/clients/attach/chrome/header.d.ts +10 -0
- package/dist/clients/attach/chrome/header.js +1 -0
- package/dist/clients/attach/chrome/inbox-strip.d.ts +31 -0
- package/dist/clients/attach/chrome/inbox-strip.js +1 -0
- package/dist/clients/attach/chrome/key-hint.d.ts +9 -0
- package/dist/clients/attach/chrome/key-hint.js +1 -0
- package/dist/clients/attach/chrome/recap.d.ts +7 -0
- package/dist/clients/attach/chrome/recap.js +1 -0
- package/dist/clients/attach/chrome/review-wait.d.ts +6 -0
- package/dist/clients/attach/chrome/review-wait.js +1 -0
- package/dist/clients/attach/chrome/roster.d.ts +36 -0
- package/dist/clients/attach/chrome/roster.js +4 -0
- package/dist/clients/attach/chrome/status-line.d.ts +38 -0
- package/dist/clients/attach/chrome/status-line.js +1 -0
- package/dist/clients/attach/chrome/ticket-panel.d.ts +29 -0
- package/dist/clients/attach/chrome/ticket-panel.js +1 -0
- package/dist/clients/attach/chrome/widgets.d.ts +9 -0
- package/dist/clients/attach/chrome/widgets.js +1 -0
- package/dist/clients/attach/command.d.ts +3 -0
- package/dist/clients/attach/command.js +1 -0
- package/dist/clients/attach/config.d.ts +95 -0
- package/dist/clients/attach/config.js +1 -0
- package/dist/clients/attach/input/capabilities.d.ts +30 -0
- package/dist/clients/attach/input/capabilities.js +1 -0
- package/dist/clients/attach/input/clipboard-image.d.ts +55 -0
- package/dist/clients/attach/input/clipboard-image.js +20 -0
- package/dist/clients/attach/input/completion-frecency.d.ts +45 -0
- package/dist/clients/attach/input/completion-frecency.js +1 -0
- package/dist/clients/attach/input/controller.d.ts +91 -0
- package/dist/clients/attach/input/controller.js +7 -0
- package/dist/clients/attach/input/overlay-owner.d.ts +41 -0
- package/dist/clients/attach/input/overlay-owner.js +1 -0
- package/dist/clients/attach/input/ref-autocomplete.d.ts +77 -0
- package/dist/clients/attach/input/ref-autocomplete.js +2 -0
- package/dist/clients/attach/input/titled-editor.d.ts +225 -0
- package/dist/clients/attach/input/titled-editor.js +4 -0
- package/dist/clients/attach/overlays/auth.d.ts +13 -0
- package/dist/clients/attach/overlays/auth.js +2 -0
- package/dist/clients/attach/overlays/dialogs.d.ts +27 -0
- package/dist/clients/attach/overlays/dialogs.js +2 -0
- package/dist/clients/attach/overlays/file-review.d.ts +10 -0
- package/dist/clients/attach/overlays/file-review.js +2 -0
- package/dist/clients/attach/overlays/graph.d.ts +83 -0
- package/dist/clients/attach/overlays/graph.js +1 -0
- package/dist/clients/attach/overlays/help.d.ts +33 -0
- package/dist/clients/attach/overlays/help.js +1 -0
- package/dist/clients/attach/overlays/mcp.d.ts +32 -0
- package/dist/clients/attach/overlays/mcp.js +1 -0
- package/dist/clients/attach/overlays/pickers.d.ts +56 -0
- package/dist/clients/attach/overlays/pickers.js +1 -0
- package/dist/clients/attach/photon_rs_bg.wasm +0 -0
- package/dist/clients/attach/render/activity-slot.d.ts +4 -0
- package/dist/clients/attach/render/activity-slot.js +1 -0
- package/dist/clients/attach/render/assistant-message.d.ts +13 -0
- package/dist/clients/attach/render/assistant-message.js +1 -0
- package/dist/clients/attach/render/card-presentation.d.ts +36 -0
- package/dist/clients/attach/render/card-presentation.js +5 -0
- package/dist/clients/attach/render/chat-view.d.ts +356 -0
- package/dist/clients/attach/render/chat-view.js +5 -0
- package/dist/clients/attach/render/condensed-history.d.ts +21 -0
- package/dist/clients/attach/render/condensed-history.js +1 -0
- package/dist/clients/attach/render/context-message.d.ts +22 -0
- package/dist/clients/attach/render/context-message.js +1 -0
- package/dist/clients/attach/render/crtr-output.d.ts +52 -0
- package/dist/clients/attach/render/crtr-output.js +17 -0
- package/dist/clients/attach/render/diagram.d.ts +4 -0
- package/dist/clients/attach/render/diagram.js +7 -0
- package/dist/clients/attach/render/doc-links.d.ts +34 -0
- package/dist/clients/attach/render/doc-links.js +1 -0
- package/dist/clients/attach/render/edit-diff.d.ts +12 -0
- package/dist/clients/attach/render/edit-diff.js +5 -0
- package/dist/clients/attach/render/glyph-codepoints.d.ts +3 -0
- package/dist/clients/attach/render/glyph-codepoints.js +1 -0
- package/dist/clients/attach/render/group-activity.d.ts +84 -0
- package/dist/clients/attach/render/group-activity.js +2 -0
- package/dist/clients/attach/render/group-recap.d.ts +13 -0
- package/dist/clients/attach/render/group-recap.js +1 -0
- package/dist/clients/attach/render/markdown-source.d.ts +16 -0
- package/dist/clients/attach/render/markdown-source.js +5 -0
- package/dist/clients/attach/render/measured-container.d.ts +96 -0
- package/dist/clients/attach/render/measured-container.js +1 -0
- package/dist/clients/attach/render/page-block.d.ts +37 -0
- package/dist/clients/attach/render/page-block.js +1 -0
- package/dist/clients/attach/render/scroll-animation.d.ts +8 -0
- package/dist/clients/attach/render/scroll-animation.js +1 -0
- package/dist/clients/attach/render/tool-calls.d.ts +53 -0
- package/dist/clients/attach/render/tool-calls.js +3 -0
- package/dist/clients/attach/render/transcript-copy.d.ts +9 -0
- package/dist/clients/attach/render/transcript-copy.js +2 -0
- package/dist/clients/attach/render/transcript-search.d.ts +28 -0
- package/dist/clients/attach/render/transcript-search.js +1 -0
- package/dist/clients/attach/render/viewport.d.ts +38 -0
- package/dist/clients/attach/render/viewport.js +1 -0
- package/dist/clients/attach/session/banner.d.ts +13 -0
- package/dist/clients/attach/session/banner.js +1 -0
- package/dist/clients/attach/session/bindings.d.ts +20 -0
- package/dist/clients/attach/session/bindings.js +1 -0
- package/dist/clients/attach/session/chrome-refresh.d.ts +40 -0
- package/dist/clients/attach/session/chrome-refresh.js +1 -0
- package/dist/clients/attach/session/connection.d.ts +53 -0
- package/dist/clients/attach/session/connection.js +1 -0
- package/dist/clients/attach/session/context.d.ts +59 -0
- package/dist/clients/attach/session/context.js +0 -0
- package/dist/clients/attach/session/doc-materialize.d.ts +53 -0
- package/dist/clients/attach/session/doc-materialize.js +3 -0
- package/dist/clients/attach/session/document-links.d.ts +21 -0
- package/dist/clients/attach/session/document-links.js +1 -0
- package/dist/clients/attach/session/editor-frame.d.ts +47 -0
- package/dist/clients/attach/session/editor-frame.js +1 -0
- package/dist/clients/attach/session/editor-inventory.d.ts +63 -0
- package/dist/clients/attach/session/editor-inventory.js +6 -0
- package/dist/clients/attach/session/file-links.d.ts +24 -0
- package/dist/clients/attach/session/file-links.js +1 -0
- package/dist/clients/attach/session/focus-events.d.ts +4 -0
- package/dist/clients/attach/session/focus-events.js +1 -0
- package/dist/clients/attach/session/frame.d.ts +46 -0
- package/dist/clients/attach/session/frame.js +1 -0
- package/dist/clients/attach/session/frames.d.ts +49 -0
- package/dist/clients/attach/session/frames.js +1 -0
- package/dist/clients/attach/session/identity.d.ts +16 -0
- package/dist/clients/attach/session/identity.js +1 -0
- package/dist/clients/attach/session/input-wiring.d.ts +50 -0
- package/dist/clients/attach/session/input-wiring.js +1 -0
- package/dist/clients/attach/session/invariant.d.ts +9 -0
- package/dist/clients/attach/session/invariant.js +1 -0
- package/dist/clients/attach/session/keys.d.ts +46 -0
- package/dist/clients/attach/session/keys.js +1 -0
- package/dist/clients/attach/session/layout.d.ts +22 -0
- package/dist/clients/attach/session/layout.js +1 -0
- package/dist/clients/attach/session/mouse.d.ts +27 -0
- package/dist/clients/attach/session/mouse.js +1 -0
- package/dist/clients/attach/session/pane-focus.d.ts +8 -0
- package/dist/clients/attach/session/pane-focus.js +1 -0
- package/dist/clients/attach/session/pane-tag.d.ts +44 -0
- package/dist/clients/attach/session/pane-tag.js +1 -0
- package/dist/clients/attach/session/pi-assets.d.ts +1 -0
- package/dist/clients/attach/session/pi-assets.js +1 -0
- package/dist/clients/attach/session/pi-oauth-flows.d.ts +1 -0
- package/dist/clients/attach/session/pi-oauth-flows.js +1 -0
- package/dist/clients/attach/session/profile-files.d.ts +17 -0
- package/dist/clients/attach/session/profile-files.js +1 -0
- package/dist/clients/attach/session/reconnect.d.ts +44 -0
- package/dist/clients/attach/session/reconnect.js +1 -0
- package/dist/clients/attach/session/selection.d.ts +28 -0
- package/dist/clients/attach/session/selection.js +3 -0
- package/dist/clients/attach/session/state-sync.d.ts +38 -0
- package/dist/clients/attach/session/state-sync.js +1 -0
- package/dist/clients/attach/session/surface-frame.d.ts +20 -0
- package/dist/clients/attach/session/surface-frame.js +1 -0
- package/dist/clients/attach/session/surface-host.d.ts +65 -0
- package/dist/clients/attach/session/surface-host.js +1 -0
- package/dist/clients/attach/session/teardown.d.ts +30 -0
- package/dist/clients/attach/session/teardown.js +5 -0
- package/dist/clients/attach/session/transcript-search.d.ts +20 -0
- package/dist/clients/attach/session/transcript-search.js +3 -0
- package/dist/clients/attach/session/whip-achievements.d.ts +4 -0
- package/dist/clients/attach/session/whip-achievements.js +2 -0
- package/dist/clients/attach/session/whip.d.ts +20 -0
- package/dist/clients/attach/session/whip.js +1 -0
- package/dist/clients/attach/slash/dispatch.d.ts +116 -0
- package/dist/clients/attach/slash/dispatch.js +2 -0
- package/dist/clients/attach/slash/prompt-preview.d.ts +30 -0
- package/dist/clients/attach/slash/prompt-preview.js +1 -0
- package/dist/clients/attach/viewer.d.ts +8 -0
- package/dist/clients/attach/viewer.js +1946 -0
- package/dist/clients/conversation/projection.d.ts +79 -0
- package/dist/clients/conversation/projection.js +1 -0
- package/dist/clients/conversation/submit.d.ts +38 -0
- package/dist/clients/conversation/submit.js +1 -0
- package/dist/clients/inbox/controller.d.ts +174 -0
- package/dist/clients/inbox/controller.js +1 -0
- package/dist/clients/inbox/dto-adapt.d.ts +28 -0
- package/dist/clients/inbox/dto-adapt.js +1 -0
- package/dist/clients/inbox/layout.d.ts +8 -0
- package/dist/clients/inbox/layout.js +1 -0
- package/dist/clients/inbox/page-adapter.d.ts +33 -0
- package/dist/clients/inbox/page-adapter.js +1 -0
- package/dist/clients/inbox/resolve.d.ts +16 -0
- package/dist/clients/inbox/resolve.js +1 -0
- package/dist/clients/inbox/review/anchors.d.ts +41 -0
- package/dist/clients/inbox/review/anchors.js +1 -0
- package/dist/clients/inbox/review/comments-client.d.ts +74 -0
- package/dist/clients/inbox/review/comments-client.js +1 -0
- package/dist/clients/inbox/review/companion-pane.d.ts +47 -0
- package/dist/clients/inbox/review/companion-pane.js +1 -0
- package/dist/clients/inbox/review/document-surface.d.ts +212 -0
- package/dist/clients/inbox/review/document-surface.js +2 -0
- package/dist/clients/inbox/review/frame.d.ts +57 -0
- package/dist/clients/inbox/review/frame.js +1 -0
- package/dist/clients/inbox/review/keys.d.ts +69 -0
- package/dist/clients/inbox/review/keys.js +1 -0
- package/dist/clients/inbox/review/launch.d.ts +16 -0
- package/dist/clients/inbox/review/launch.js +1 -0
- package/dist/clients/inbox/review/live-source.d.ts +24 -0
- package/dist/clients/inbox/review/live-source.js +1 -0
- package/dist/clients/inbox/review/nvim.d.ts +15 -0
- package/dist/clients/inbox/review/nvim.js +1 -0
- package/dist/clients/inbox/review/remap.d.ts +51 -0
- package/dist/clients/inbox/review/remap.js +1 -0
- package/dist/clients/inbox/review/review-client.d.ts +43 -0
- package/dist/clients/inbox/review/review-client.js +1 -0
- package/dist/clients/inbox/review/roundtrip.d.ts +5 -0
- package/dist/clients/inbox/review/roundtrip.js +3 -0
- package/dist/clients/inbox/review/state.d.ts +153 -0
- package/dist/clients/inbox/review/state.js +4 -0
- package/dist/clients/inbox/review-adapter.d.ts +17 -0
- package/dist/clients/inbox/review-adapter.js +1 -0
- package/dist/clients/inbox/surface.d.ts +25 -0
- package/dist/clients/inbox/surface.js +1 -0
- package/dist/clients/inbox/tui/ansi.d.ts +68 -0
- package/dist/clients/inbox/tui/ansi.js +3 -0
- package/dist/clients/inbox/tui/input.d.ts +5 -0
- package/dist/clients/inbox/tui/input.js +5 -0
- package/dist/clients/inbox/tui/keys.d.ts +28 -0
- package/dist/clients/inbox/tui/keys.js +1 -0
- package/dist/clients/inbox/tui/page-body.d.ts +10 -0
- package/dist/clients/inbox/tui/page-body.js +1 -0
- package/dist/clients/inbox/tui/panel.d.ts +4 -0
- package/dist/clients/inbox/tui/panel.js +1 -0
- package/dist/clients/inbox/tui/render.d.ts +23 -0
- package/dist/clients/inbox/tui/render.js +2 -0
- package/dist/clients/inbox/tui/slots.d.ts +33 -0
- package/dist/clients/inbox/tui/slots.js +3 -0
- package/dist/clients/inbox/tui/types.d.ts +73 -0
- package/dist/clients/inbox/tui/types.js +0 -0
- package/dist/clients/inbox/tui.d.ts +17 -0
- package/dist/clients/inbox/tui.js +1 -0
- package/dist/clients/surfaces/host.d.ts +74 -0
- package/dist/clients/surfaces/host.js +0 -0
- package/dist/commands/api-client.d.ts +104 -0
- package/dist/commands/api-client.js +4 -0
- package/dist/commands/attention.d.ts +2 -0
- package/dist/commands/attention.js +1 -0
- package/dist/commands/canvas/edges.d.ts +2 -0
- package/dist/commands/canvas/edges.js +2 -0
- package/dist/commands/canvas/list.d.ts +4 -0
- package/dist/commands/canvas/list.js +3 -0
- package/dist/commands/canvas/read.d.ts +14 -0
- package/dist/commands/canvas/read.js +10 -0
- package/dist/commands/canvas/search.d.ts +2 -0
- package/dist/commands/canvas/search.js +3 -0
- package/dist/commands/canvas/unwatch.d.ts +2 -0
- package/dist/commands/canvas/unwatch.js +1 -0
- package/dist/commands/canvas/watch.d.ts +3 -0
- package/dist/commands/canvas/watch.js +1 -0
- package/dist/commands/canvas-analytics/chart.d.ts +52 -0
- package/dist/commands/canvas-analytics/chart.js +1 -0
- package/dist/commands/canvas-analytics/drilldown.d.ts +34 -0
- package/dist/commands/canvas-analytics/drilldown.js +1 -0
- package/dist/commands/canvas-analytics/format.d.ts +29 -0
- package/dist/commands/canvas-analytics/format.js +1 -0
- package/dist/commands/canvas-analytics/graph-detail.d.ts +2 -0
- package/dist/commands/canvas-analytics/graph-detail.js +2 -0
- package/dist/commands/canvas-analytics/graphs.d.ts +9 -0
- package/dist/commands/canvas-analytics/graphs.js +1 -0
- package/dist/commands/canvas-analytics/memory.d.ts +2 -0
- package/dist/commands/canvas-analytics/memory.js +1 -0
- package/dist/commands/canvas-analytics/overview.d.ts +2 -0
- package/dist/commands/canvas-analytics/overview.js +1 -0
- package/dist/commands/canvas-analytics/shell.d.ts +60 -0
- package/dist/commands/canvas-analytics/shell.js +2 -0
- package/dist/commands/canvas-analytics/time.d.ts +2 -0
- package/dist/commands/canvas-analytics/time.js +1 -0
- package/dist/commands/canvas-analytics/usage.d.ts +2 -0
- package/dist/commands/canvas-analytics/usage.js +1 -0
- package/dist/commands/canvas-analytics/view.d.ts +85 -0
- package/dist/commands/canvas-analytics/view.js +1 -0
- package/dist/commands/canvas-analytics.d.ts +2 -0
- package/dist/commands/canvas-analytics.js +1 -0
- package/dist/commands/canvas-browse.d.ts +2 -0
- package/dist/commands/canvas-browse.js +1 -0
- package/dist/commands/canvas-config.d.ts +2 -0
- package/dist/commands/canvas-config.js +2 -0
- package/dist/commands/canvas-history/grep.d.ts +1 -0
- package/dist/commands/canvas-history/grep.js +7 -0
- package/dist/commands/canvas-history/read.d.ts +1 -0
- package/dist/commands/canvas-history/read.js +3 -0
- package/dist/commands/canvas-history/search.d.ts +1 -0
- package/dist/commands/canvas-history/search.js +10 -0
- package/dist/commands/canvas-history/shared.d.ts +34 -0
- package/dist/commands/canvas-history/shared.js +1 -0
- package/dist/commands/canvas-history/stats.d.ts +1 -0
- package/dist/commands/canvas-history/stats.js +6 -0
- package/dist/commands/canvas-history.d.ts +2 -0
- package/dist/commands/canvas-history.js +1 -0
- package/dist/commands/canvas-issue.d.ts +2 -0
- package/dist/commands/canvas-issue.js +14 -0
- package/dist/commands/canvas-prune.d.ts +2 -0
- package/dist/commands/canvas-prune.js +1 -0
- package/dist/commands/canvas-roster.d.ts +2 -0
- package/dist/commands/canvas-roster.js +1 -0
- package/dist/commands/canvas-snapshot.d.ts +2 -0
- package/dist/commands/canvas-snapshot.js +1 -0
- package/dist/commands/canvas-use.d.ts +1 -0
- package/dist/commands/canvas-use.js +1 -0
- package/dist/commands/canvas.d.ts +3 -0
- package/dist/commands/canvas.js +1 -0
- package/dist/commands/chord.d.ts +2 -0
- package/dist/commands/chord.js +1 -0
- package/dist/commands/cron.d.ts +2 -0
- package/dist/commands/cron.js +11 -0
- package/dist/commands/custom-object/ack.d.ts +2 -0
- package/dist/commands/custom-object/ack.js +3 -0
- package/dist/commands/custom-object/publish.d.ts +2 -0
- package/dist/commands/custom-object/publish.js +1 -0
- package/dist/commands/custom-object/receive.d.ts +2 -0
- package/dist/commands/custom-object/receive.js +2 -0
- package/dist/commands/custom-object/register.d.ts +2 -0
- package/dist/commands/custom-object/register.js +3 -0
- package/dist/commands/custom-object/shared.d.ts +5 -0
- package/dist/commands/custom-object/shared.js +1 -0
- package/dist/commands/custom-object/unregister.d.ts +2 -0
- package/dist/commands/custom-object/unregister.js +1 -0
- package/dist/commands/custom-object.d.ts +2 -0
- package/dist/commands/custom-object.js +1 -0
- package/dist/commands/dashboard.d.ts +2 -0
- package/dist/commands/dashboard.js +1 -0
- package/dist/commands/doc/delete.d.ts +2 -0
- package/dist/commands/doc/delete.js +1 -0
- package/dist/commands/doc/edit.d.ts +2 -0
- package/dist/commands/doc/edit.js +1 -0
- package/dist/commands/doc/history.d.ts +2 -0
- package/dist/commands/doc/history.js +2 -0
- package/dist/commands/doc/lint.d.ts +2 -0
- package/dist/commands/doc/lint.js +2 -0
- package/dist/commands/doc/list.d.ts +2 -0
- package/dist/commands/doc/list.js +1 -0
- package/dist/commands/doc/move.d.ts +2 -0
- package/dist/commands/doc/move.js +1 -0
- package/dist/commands/doc/read.d.ts +2 -0
- package/dist/commands/doc/read.js +1 -0
- package/dist/commands/doc/replace-blocks.d.ts +6 -0
- package/dist/commands/doc/replace-blocks.js +4 -0
- package/dist/commands/doc/shared.d.ts +25 -0
- package/dist/commands/doc/shared.js +2 -0
- package/dist/commands/doc/write.d.ts +2 -0
- package/dist/commands/doc/write.js +1 -0
- package/dist/commands/doc.d.ts +2 -0
- package/dist/commands/doc.js +1 -0
- package/dist/commands/human/components.d.ts +4 -0
- package/dist/commands/human/components.js +3 -0
- package/dist/commands/human/feedback.d.ts +2 -0
- package/dist/commands/human/feedback.js +1 -0
- package/dist/commands/human/prompts.d.ts +21 -0
- package/dist/commands/human/prompts.js +1 -0
- package/dist/commands/human/queue.d.ts +3 -0
- package/dist/commands/human/queue.js +1 -0
- package/dist/commands/human/request.d.ts +2 -0
- package/dist/commands/human/request.js +1 -0
- package/dist/commands/human/review.d.ts +2 -0
- package/dist/commands/human/review.js +1 -0
- package/dist/commands/human/shared.d.ts +16 -0
- package/dist/commands/human/shared.js +1 -0
- package/dist/commands/human.d.ts +2 -0
- package/dist/commands/human.js +4 -0
- package/dist/commands/node/bash.d.ts +1 -0
- package/dist/commands/node/bash.js +5 -0
- package/dist/commands/node/create.d.ts +6 -0
- package/dist/commands/node/create.js +2 -0
- package/dist/commands/node/inspect.d.ts +2 -0
- package/dist/commands/node/inspect.js +12 -0
- package/dist/commands/node/lifecycle.d.ts +4 -0
- package/dist/commands/node/lifecycle.js +4 -0
- package/dist/commands/node/message.d.ts +1 -0
- package/dist/commands/node/message.js +1 -0
- package/dist/commands/node/outcome.d.ts +2 -0
- package/dist/commands/node/outcome.js +4 -0
- package/dist/commands/node/pyramid.d.ts +2 -0
- package/dist/commands/node/pyramid.js +2 -0
- package/dist/commands/node/subscription.d.ts +1 -0
- package/dist/commands/node/subscription.js +1 -0
- package/dist/commands/node/wait.d.ts +1 -0
- package/dist/commands/node/wait.js +7 -0
- package/dist/commands/node-context.d.ts +2 -0
- package/dist/commands/node-context.js +2 -0
- package/dist/commands/node-lifecycle-revive.d.ts +12 -0
- package/dist/commands/node-lifecycle-revive.js +1 -0
- package/dist/commands/node-snapshot.d.ts +2 -0
- package/dist/commands/node-snapshot.js +1 -0
- package/dist/commands/node-transcript.d.ts +2 -0
- package/dist/commands/node-transcript.js +1 -0
- package/dist/commands/node-worktree.d.ts +2 -0
- package/dist/commands/node-worktree.js +1 -0
- package/dist/commands/node.d.ts +2 -0
- package/dist/commands/node.js +1 -0
- package/dist/commands/pkg/browse/actions.d.ts +7 -0
- package/dist/commands/pkg/browse/actions.js +1 -0
- package/dist/commands/pkg/browse/catalog.d.ts +9 -0
- package/dist/commands/pkg/browse/catalog.js +1 -0
- package/dist/commands/pkg/browse/command-view.d.ts +3 -0
- package/dist/commands/pkg/browse/command-view.js +1 -0
- package/dist/commands/pkg/browse/detail-panel.d.ts +66 -0
- package/dist/commands/pkg/browse/detail-panel.js +1 -0
- package/dist/commands/pkg/browse/doc-view.d.ts +3 -0
- package/dist/commands/pkg/browse/doc-view.js +1 -0
- package/dist/commands/pkg/browse/list-panel.d.ts +28 -0
- package/dist/commands/pkg/browse/list-panel.js +2 -0
- package/dist/commands/pkg/browse/model.d.ts +223 -0
- package/dist/commands/pkg/browse/model.js +1 -0
- package/dist/commands/pkg/browse/shell.d.ts +93 -0
- package/dist/commands/pkg/browse/shell.js +1 -0
- package/dist/commands/pkg/browse.d.ts +2 -0
- package/dist/commands/pkg/browse.js +1 -0
- package/dist/commands/pkg/market-inspect.d.ts +2 -0
- package/dist/commands/pkg/market-inspect.js +1 -0
- package/dist/commands/pkg/market-manage.d.ts +16 -0
- package/dist/commands/pkg/market-manage.js +1 -0
- package/dist/commands/pkg/market.d.ts +1 -0
- package/dist/commands/pkg/market.js +1 -0
- package/dist/commands/pkg/plugin-env.d.ts +3 -0
- package/dist/commands/pkg/plugin-env.js +4 -0
- package/dist/commands/pkg/plugin-inspect.d.ts +2 -0
- package/dist/commands/pkg/plugin-inspect.js +1 -0
- package/dist/commands/pkg/plugin-manage.d.ts +94 -0
- package/dist/commands/pkg/plugin-manage.js +17 -0
- package/dist/commands/pkg/plugin.d.ts +1 -0
- package/dist/commands/pkg/plugin.js +1 -0
- package/dist/commands/pkg/shared.d.ts +13 -0
- package/dist/commands/pkg/shared.js +1 -0
- package/dist/commands/pkg.d.ts +2 -0
- package/dist/commands/pkg.js +1 -0
- package/dist/commands/profile/daemon-profiles.d.ts +13 -0
- package/dist/commands/profile/daemon-profiles.js +4 -0
- package/dist/commands/profile/default.d.ts +2 -0
- package/dist/commands/profile/default.js +2 -0
- package/dist/commands/profile/delete.d.ts +1 -0
- package/dist/commands/profile/delete.js +1 -0
- package/dist/commands/profile/env.d.ts +8 -0
- package/dist/commands/profile/env.js +3 -0
- package/dist/commands/profile/kind.d.ts +1 -0
- package/dist/commands/profile/kind.js +1 -0
- package/dist/commands/profile/list.d.ts +1 -0
- package/dist/commands/profile/list.js +1 -0
- package/dist/commands/profile/meta.d.ts +4 -0
- package/dist/commands/profile/meta.js +1 -0
- package/dist/commands/profile/new.d.ts +1 -0
- package/dist/commands/profile/new.js +1 -0
- package/dist/commands/profile/pause.d.ts +2 -0
- package/dist/commands/profile/pause.js +1 -0
- package/dist/commands/profile/project.d.ts +2 -0
- package/dist/commands/profile/project.js +1 -0
- package/dist/commands/profile/rename.d.ts +1 -0
- package/dist/commands/profile/rename.js +1 -0
- package/dist/commands/profile/show.d.ts +1 -0
- package/dist/commands/profile/show.js +1 -0
- package/dist/commands/profile.d.ts +2 -0
- package/dist/commands/profile.js +1 -0
- package/dist/commands/push.d.ts +2 -0
- package/dist/commands/push.js +9 -0
- package/dist/commands/revive.d.ts +2 -0
- package/dist/commands/revive.js +10 -0
- package/dist/commands/surface/node/cycle.d.ts +1 -0
- package/dist/commands/surface/node/cycle.js +1 -0
- package/dist/commands/surface/node/focus.d.ts +1 -0
- package/dist/commands/surface/node/focus.js +1 -0
- package/dist/commands/surface/node/id.d.ts +1 -0
- package/dist/commands/surface/node/id.js +1 -0
- package/dist/commands/surface/node/pin.d.ts +1 -0
- package/dist/commands/surface/node/pin.js +1 -0
- package/dist/commands/surface/node/placement.d.ts +30 -0
- package/dist/commands/surface/node/placement.js +1 -0
- package/dist/commands/surface-edit.d.ts +2 -0
- package/dist/commands/surface-edit.js +1 -0
- package/dist/commands/surface-inbox.d.ts +2 -0
- package/dist/commands/surface-inbox.js +1 -0
- package/dist/commands/surface-inspect.d.ts +2 -0
- package/dist/commands/surface-inspect.js +1 -0
- package/dist/commands/surface-node.d.ts +2 -0
- package/dist/commands/surface-node.js +1 -0
- package/dist/commands/surface-reload.d.ts +7 -0
- package/dist/commands/surface-reload.js +1 -0
- package/dist/commands/surface-tmux-spread.d.ts +2 -0
- package/dist/commands/surface-tmux-spread.js +1 -0
- package/dist/commands/surface.d.ts +2 -0
- package/dist/commands/surface.js +1 -0
- package/dist/commands/sys/branch.d.ts +2 -0
- package/dist/commands/sys/branch.js +1 -0
- package/dist/commands/sys/config.d.ts +1 -0
- package/dist/commands/sys/config.js +1 -0
- package/dist/commands/sys/connect.d.ts +1 -0
- package/dist/commands/sys/connect.js +3 -0
- package/dist/commands/sys/context/admin/actions.d.ts +23 -0
- package/dist/commands/sys/context/admin/actions.js +1 -0
- package/dist/commands/sys/context/admin/detail-panel.d.ts +73 -0
- package/dist/commands/sys/context/admin/detail-panel.js +2 -0
- package/dist/commands/sys/context/admin/docs-panel.d.ts +63 -0
- package/dist/commands/sys/context/admin/docs-panel.js +1 -0
- package/dist/commands/sys/context/admin/list-view.d.ts +62 -0
- package/dist/commands/sys/context/admin/list-view.js +1 -0
- package/dist/commands/sys/context/admin/model.d.ts +123 -0
- package/dist/commands/sys/context/admin/model.js +1 -0
- package/dist/commands/sys/context/admin/rail-panel.d.ts +84 -0
- package/dist/commands/sys/context/admin/rail-panel.js +1 -0
- package/dist/commands/sys/context/admin/read-view.d.ts +27 -0
- package/dist/commands/sys/context/admin/read-view.js +1 -0
- package/dist/commands/sys/context/admin/shell.d.ts +125 -0
- package/dist/commands/sys/context/admin/shell.js +1 -0
- package/dist/commands/sys/context/admin.d.ts +1 -0
- package/dist/commands/sys/context/admin.js +2 -0
- package/dist/commands/sys/context/doc.d.ts +1 -0
- package/dist/commands/sys/context/doc.js +2 -0
- package/dist/commands/sys/context/expose.d.ts +1 -0
- package/dist/commands/sys/context/expose.js +2 -0
- package/dist/commands/sys/context/prompt-review.d.ts +1 -0
- package/dist/commands/sys/context/prompt-review.js +11 -0
- package/dist/commands/sys/context/resolve.d.ts +115 -0
- package/dist/commands/sys/context/resolve.js +8 -0
- package/dist/commands/sys/context/sysprompt.d.ts +1 -0
- package/dist/commands/sys/context/sysprompt.js +5 -0
- package/dist/commands/sys/context.d.ts +2 -0
- package/dist/commands/sys/context.js +1 -0
- package/dist/commands/sys/daemon.d.ts +4 -0
- package/dist/commands/sys/daemon.js +1 -0
- package/dist/commands/sys/doctor.d.ts +36 -0
- package/dist/commands/sys/doctor.js +1 -0
- package/dist/commands/sys/env.d.ts +1 -0
- package/dist/commands/sys/env.js +1 -0
- package/dist/commands/sys/feedback.d.ts +1 -0
- package/dist/commands/sys/feedback.js +7 -0
- package/dist/commands/sys/join.d.ts +1 -0
- package/dist/commands/sys/join.js +1 -0
- package/dist/commands/sys/limits.d.ts +1 -0
- package/dist/commands/sys/limits.js +3 -0
- package/dist/commands/sys/logs.d.ts +1 -0
- package/dist/commands/sys/logs.js +3 -0
- package/dist/commands/sys/migrate.d.ts +1 -0
- package/dist/commands/sys/migrate.js +1 -0
- package/dist/commands/sys/panels/broker-limits-panel.d.ts +17 -0
- package/dist/commands/sys/panels/broker-limits-panel.js +2 -0
- package/dist/commands/sys/panels/dependencies-panel.d.ts +14 -0
- package/dist/commands/sys/panels/dependencies-panel.js +1 -0
- package/dist/commands/sys/panels/keybindings-panel.d.ts +56 -0
- package/dist/commands/sys/panels/keybindings-panel.js +1 -0
- package/dist/commands/sys/panels/models-panel.d.ts +100 -0
- package/dist/commands/sys/panels/models-panel.js +1 -0
- package/dist/commands/sys/panels/plugin-env-panel.d.ts +19 -0
- package/dist/commands/sys/panels/plugin-env-panel.js +2 -0
- package/dist/commands/sys/panels/plugins-panel.d.ts +16 -0
- package/dist/commands/sys/panels/plugins-panel.js +1 -0
- package/dist/commands/sys/panels/prefs-panel.d.ts +21 -0
- package/dist/commands/sys/panels/prefs-panel.js +1 -0
- package/dist/commands/sys/panels/profiles-panel.d.ts +70 -0
- package/dist/commands/sys/panels/profiles-panel.js +1 -0
- package/dist/commands/sys/panels/provider-panel.d.ts +68 -0
- package/dist/commands/sys/panels/provider-panel.js +1 -0
- package/dist/commands/sys/panels/terminal-panel.d.ts +19 -0
- package/dist/commands/sys/panels/terminal-panel.js +1 -0
- package/dist/commands/sys/provider-login.d.ts +8 -0
- package/dist/commands/sys/provider-login.js +9 -0
- package/dist/commands/sys/retry-delivery.d.ts +1 -0
- package/dist/commands/sys/retry-delivery.js +1 -0
- package/dist/commands/sys/settings-shell.d.ts +54 -0
- package/dist/commands/sys/settings-shell.js +1 -0
- package/dist/commands/sys/settings.d.ts +2 -0
- package/dist/commands/sys/settings.js +1 -0
- package/dist/commands/sys/setup-core.d.ts +121 -0
- package/dist/commands/sys/setup-core.js +9 -0
- package/dist/commands/sys/setup-settings-runner.d.ts +13 -0
- package/dist/commands/sys/setup-settings-runner.js +1 -0
- package/dist/commands/sys/setup-wizard.d.ts +52 -0
- package/dist/commands/sys/setup-wizard.js +1 -0
- package/dist/commands/sys/setup.d.ts +6 -0
- package/dist/commands/sys/setup.js +1 -0
- package/dist/commands/sys/shared.d.ts +51 -0
- package/dist/commands/sys/shared.js +1 -0
- package/dist/commands/sys/spaces.d.ts +1 -0
- package/dist/commands/sys/spaces.js +2 -0
- package/dist/commands/sys/support/prepare.d.ts +13 -0
- package/dist/commands/sys/support/prepare.js +3 -0
- package/dist/commands/sys/support/submit.d.ts +19 -0
- package/dist/commands/sys/support/submit.js +6 -0
- package/dist/commands/sys/support.d.ts +2 -0
- package/dist/commands/sys/support.js +1 -0
- package/dist/commands/sys/sync-deps.d.ts +16 -0
- package/dist/commands/sys/sync-deps.js +14 -0
- package/dist/commands/sys/sync-project-guidance.d.ts +1 -0
- package/dist/commands/sys/sync-project-guidance.js +5 -0
- package/dist/commands/sys/sync-shared.d.ts +44 -0
- package/dist/commands/sys/sync-shared.js +1 -0
- package/dist/commands/sys/sync-skills.d.ts +1 -0
- package/dist/commands/sys/sync-skills.js +2 -0
- package/dist/commands/sys/sync.d.ts +2 -0
- package/dist/commands/sys/sync.js +1 -0
- package/dist/commands/sys/terminal-option.d.ts +112 -0
- package/dist/commands/sys/terminal-option.js +15 -0
- package/dist/commands/sys/tutorial/branch.d.ts +1 -0
- package/dist/commands/sys/tutorial/branch.js +1 -0
- package/dist/commands/sys/tutorial/lessons.d.ts +5 -0
- package/dist/commands/sys/tutorial/lessons.js +8 -0
- package/dist/commands/sys/tutorial/scenario.d.ts +1 -0
- package/dist/commands/sys/tutorial/scenario.js +3 -0
- package/dist/commands/sys/tutorial/tracks.d.ts +1 -0
- package/dist/commands/sys/tutorial/tracks.js +4 -0
- package/dist/commands/sys/update.d.ts +2 -0
- package/dist/commands/sys/update.js +1 -0
- package/dist/commands/sys/worktrees.d.ts +2 -0
- package/dist/commands/sys/worktrees.js +5 -0
- package/dist/commands/sys.d.ts +2 -0
- package/dist/commands/sys.js +1 -0
- package/dist/core/activity-signal.d.ts +7 -0
- package/dist/core/activity-signal.js +2 -0
- package/dist/core/asset-root.d.ts +7 -0
- package/dist/core/asset-root.js +1 -0
- package/dist/core/auth-file.d.ts +41 -0
- package/dist/core/auth-file.js +2 -0
- package/dist/core/auth-interaction.d.ts +19 -0
- package/dist/core/auth-interaction.js +3 -0
- package/dist/core/auto-update.d.ts +1 -0
- package/dist/core/auto-update.js +4 -0
- package/dist/core/bash-guard.d.ts +6 -0
- package/dist/core/bash-guard.js +11 -0
- package/dist/core/bash-job-supervisor.d.ts +5 -0
- package/dist/core/bash-job-supervisor.js +4 -0
- package/dist/core/bash-jobs.d.ts +180 -0
- package/dist/core/bash-jobs.js +8 -0
- package/dist/core/bootstrap.d.ts +1 -0
- package/dist/core/bootstrap.js +2 -0
- package/dist/core/broker-client/client.d.ts +89 -0
- package/dist/core/broker-client/client.js +1 -0
- package/dist/core/broker-client/index.d.ts +1 -0
- package/dist/core/broker-client/index.js +1 -0
- package/dist/core/broker-client/transport-relay.d.ts +47 -0
- package/dist/core/broker-client/transport-relay.js +1 -0
- package/dist/core/broker-client/transport-socket.d.ts +35 -0
- package/dist/core/broker-client/transport-socket.js +1 -0
- package/dist/core/broker-client/transport.d.ts +36 -0
- package/dist/core/broker-client/transport.js +1 -0
- package/dist/core/canvas/app-run.d.ts +3 -0
- package/dist/core/canvas/app-run.js +1 -0
- package/dist/core/canvas/attention.d.ts +18 -0
- package/dist/core/canvas/attention.js +1 -0
- package/dist/core/canvas/boot-id.d.ts +6 -0
- package/dist/core/canvas/boot-id.js +1 -0
- package/dist/core/canvas/boot.d.ts +92 -0
- package/dist/core/canvas/boot.js +1 -0
- package/dist/core/canvas/browse/app.d.ts +26 -0
- package/dist/core/canvas/browse/app.js +3 -0
- package/dist/core/canvas/browse/model.d.ts +172 -0
- package/dist/core/canvas/browse/model.js +1 -0
- package/dist/core/canvas/browse/pins.d.ts +4 -0
- package/dist/core/canvas/browse/pins.js +1 -0
- package/dist/core/canvas/browse/render.d.ts +98 -0
- package/dist/core/canvas/browse/render.js +3 -0
- package/dist/core/canvas/canvas.d.ts +397 -0
- package/dist/core/canvas/canvas.js +65 -0
- package/dist/core/canvas/context-strip.d.ts +20 -0
- package/dist/core/canvas/context-strip.js +5 -0
- package/dist/core/canvas/crons.d.ts +298 -0
- package/dist/core/canvas/crons.js +36 -0
- package/dist/core/canvas/daemon-actions.d.ts +45 -0
- package/dist/core/canvas/daemon-actions.js +28 -0
- package/dist/core/canvas/daemon-owner.d.ts +67 -0
- package/dist/core/canvas/daemon-owner.js +6 -0
- package/dist/core/canvas/db.d.ts +33 -0
- package/dist/core/canvas/db.js +2 -0
- package/dist/core/canvas/deliveries.d.ts +120 -0
- package/dist/core/canvas/deliveries.js +102 -0
- package/dist/core/canvas/delivery-contract.d.ts +37 -0
- package/dist/core/canvas/delivery-contract.js +1 -0
- package/dist/core/canvas/executions.d.ts +29 -0
- package/dist/core/canvas/executions.js +1 -0
- package/dist/core/canvas/extensions.d.ts +9 -0
- package/dist/core/canvas/extensions.js +1 -0
- package/dist/core/canvas/focuses.d.ts +22 -0
- package/dist/core/canvas/focuses.js +1 -0
- package/dist/core/canvas/history.d.ts +104 -0
- package/dist/core/canvas/history.js +14 -0
- package/dist/core/canvas/index.d.ts +14 -0
- package/dist/core/canvas/index.js +1 -0
- package/dist/core/canvas/install-id.d.ts +9 -0
- package/dist/core/canvas/install-id.js +1 -0
- package/dist/core/canvas/labels.d.ts +30 -0
- package/dist/core/canvas/labels.js +1 -0
- package/dist/core/canvas/managed-worktree-sweep-candidates.d.ts +4 -0
- package/dist/core/canvas/managed-worktree-sweep-candidates.js +12 -0
- package/dist/core/canvas/memory-reads.d.ts +24 -0
- package/dist/core/canvas/memory-reads.js +1 -0
- package/dist/core/canvas/meta-file.d.ts +20 -0
- package/dist/core/canvas/meta-file.js +1 -0
- package/dist/core/canvas/migrations.d.ts +16 -0
- package/dist/core/canvas/migrations.js +989 -0
- package/dist/core/canvas/nav-model.d.ts +44 -0
- package/dist/core/canvas/nav-model.js +1 -0
- package/dist/core/canvas/nav-render.d.ts +136 -0
- package/dist/core/canvas/nav-render.js +1 -0
- package/dist/core/canvas/node-agent-paths.d.ts +8 -0
- package/dist/core/canvas/node-agent-paths.js +1 -0
- package/dist/core/canvas/node-order.d.ts +24 -0
- package/dist/core/canvas/node-order.js +1 -0
- package/dist/core/canvas/node-recap.d.ts +23 -0
- package/dist/core/canvas/node-recap.js +2 -0
- package/dist/core/canvas/node-sql-migration.d.ts +4 -0
- package/dist/core/canvas/node-sql-migration.js +80 -0
- package/dist/core/canvas/node-tokens.d.ts +24 -0
- package/dist/core/canvas/node-tokens.js +5 -0
- package/dist/core/canvas/outcome-actions.d.ts +23 -0
- package/dist/core/canvas/outcome-actions.js +6 -0
- package/dist/core/canvas/paths.d.ts +72 -0
- package/dist/core/canvas/paths.js +1 -0
- package/dist/core/canvas/pid.d.ts +391 -0
- package/dist/core/canvas/pid.js +5 -0
- package/dist/core/canvas/recovery.d.ts +90 -0
- package/dist/core/canvas/recovery.js +26 -0
- package/dist/core/canvas/remote-canvas-source.d.ts +70 -0
- package/dist/core/canvas/remote-canvas-source.js +1 -0
- package/dist/core/canvas/remote-transport.d.ts +7 -0
- package/dist/core/canvas/remote-transport.js +1 -0
- package/dist/core/canvas/render-source.d.ts +193 -0
- package/dist/core/canvas/render-source.js +7 -0
- package/dist/core/canvas/sessions.d.ts +57 -0
- package/dist/core/canvas/sessions.js +4 -0
- package/dist/core/canvas/source.d.ts +48 -0
- package/dist/core/canvas/source.js +1 -0
- package/dist/core/canvas/status-glyph.d.ts +52 -0
- package/dist/core/canvas/status-glyph.js +1 -0
- package/dist/core/canvas/structured-requests.d.ts +69 -0
- package/dist/core/canvas/structured-requests.js +15 -0
- package/dist/core/canvas/telemetry.d.ts +14 -0
- package/dist/core/canvas/telemetry.js +1 -0
- package/dist/core/canvas/tree.d.ts +29 -0
- package/dist/core/canvas/tree.js +12 -0
- package/dist/core/canvas/types.d.ts +454 -0
- package/dist/core/canvas/types.js +1 -0
- package/dist/core/canvas/waits.d.ts +18 -0
- package/dist/core/canvas/waits.js +6 -0
- package/dist/core/canvas/worktrees.d.ts +41 -0
- package/dist/core/canvas/worktrees.js +1 -0
- package/dist/core/clipboard-text.d.ts +11 -0
- package/dist/core/clipboard-text.js +1 -0
- package/dist/core/command-hooks/artifact.d.ts +16 -0
- package/dist/core/command-hooks/artifact.js +1 -0
- package/dist/core/command-hooks/catalog.d.ts +14 -0
- package/dist/core/command-hooks/catalog.js +1 -0
- package/dist/core/command-hooks/compose.d.ts +15 -0
- package/dist/core/command-hooks/compose.js +1 -0
- package/dist/core/command-hooks/discovery.d.ts +133 -0
- package/dist/core/command-hooks/discovery.js +1 -0
- package/dist/core/command-hooks/help.d.ts +5 -0
- package/dist/core/command-hooks/help.js +1 -0
- package/dist/core/command-hooks/index.d.ts +7 -0
- package/dist/core/command-hooks/index.js +1 -0
- package/dist/core/command-hooks/lifecycle-catalog.d.ts +21 -0
- package/dist/core/command-hooks/lifecycle-catalog.js +1 -0
- package/dist/core/command-hooks/lifecycle-create.d.ts +4 -0
- package/dist/core/command-hooks/lifecycle-create.js +1 -0
- package/dist/core/command-hooks/report.d.ts +32 -0
- package/dist/core/command-hooks/report.js +1 -0
- package/dist/core/command-hooks/schema.d.ts +42 -0
- package/dist/core/command-hooks/schema.js +1 -0
- package/dist/core/command-hooks/transport/exec-invoke.d.ts +24 -0
- package/dist/core/command-hooks/transport/exec-invoke.js +1 -0
- package/dist/core/command-hooks/transport/exec-lifecycle.d.ts +23 -0
- package/dist/core/command-hooks/transport/exec-lifecycle.js +1 -0
- package/dist/core/command-hooks/transport/plan.d.ts +3 -0
- package/dist/core/command-hooks/transport/plan.js +1 -0
- package/dist/core/command-manifests/registry.d.ts +67 -0
- package/dist/core/command-manifests/registry.js +1 -0
- package/dist/core/command-plugins/bundle.d.ts +149 -0
- package/dist/core/command-plugins/bundle.js +1 -0
- package/dist/core/command-plugins/compose.d.ts +11 -0
- package/dist/core/command-plugins/compose.js +1 -0
- package/dist/core/command-plugins/discovery.d.ts +50 -0
- package/dist/core/command-plugins/discovery.js +1 -0
- package/dist/core/command-plugins/endpoint.d.ts +24 -0
- package/dist/core/command-plugins/endpoint.js +1 -0
- package/dist/core/command-plugins/extensions.d.ts +20 -0
- package/dist/core/command-plugins/extensions.js +1 -0
- package/dist/core/command-plugins/help-addenda.d.ts +25 -0
- package/dist/core/command-plugins/help-addenda.js +1 -0
- package/dist/core/command-plugins/presence.d.ts +2 -0
- package/dist/core/command-plugins/presence.js +1 -0
- package/dist/core/command-plugins/revalidate.d.ts +18 -0
- package/dist/core/command-plugins/revalidate.js +2 -0
- package/dist/core/command-plugins/transport/exec-invoke.d.ts +28 -0
- package/dist/core/command-plugins/transport/exec-invoke.js +1 -0
- package/dist/core/command-plugins/transport/http-fetch.d.ts +41 -0
- package/dist/core/command-plugins/transport/http-fetch.js +1 -0
- package/dist/core/command-plugins/transport/http-invoke.d.ts +15 -0
- package/dist/core/command-plugins/transport/http-invoke.js +3 -0
- package/dist/core/command-plugins/transport/http-plan.d.ts +68 -0
- package/dist/core/command-plugins/transport/http-plan.js +1 -0
- package/dist/core/command.d.ts +210 -0
- package/dist/core/command.js +10 -0
- package/dist/core/config.d.ts +233 -0
- package/dist/core/config.js +1 -0
- package/dist/core/conversation-store/client-worker.d.ts +1 -0
- package/dist/core/conversation-store/client-worker.js +1 -0
- package/dist/core/conversation-store/client.d.ts +2 -0
- package/dist/core/conversation-store/client.js +2 -0
- package/dist/core/conversation-store/file-store.d.ts +37 -0
- package/dist/core/conversation-store/file-store.js +9 -0
- package/dist/core/conversation-store/index.d.ts +60 -0
- package/dist/core/conversation-store/index.js +1 -0
- package/dist/core/conversation-store/listener.d.ts +4 -0
- package/dist/core/conversation-store/listener.js +8 -0
- package/dist/core/conversation-store/patch.d.ts +1 -0
- package/dist/core/conversation-store/patch.js +1 -0
- package/dist/core/directory/join.d.ts +27 -0
- package/dist/core/directory/join.js +1 -0
- package/dist/core/disk-usage.d.ts +4 -0
- package/dist/core/disk-usage.js +1 -0
- package/dist/core/document-lines.d.ts +4 -0
- package/dist/core/document-lines.js +3 -0
- package/dist/core/editor-resolver.d.ts +28 -0
- package/dist/core/editor-resolver.js +4 -0
- package/dist/core/env-name.d.ts +6 -0
- package/dist/core/env-name.js +1 -0
- package/dist/core/errors.d.ts +38 -0
- package/dist/core/errors.js +1 -0
- package/dist/core/events/emit.d.ts +6 -0
- package/dist/core/events/emit.js +3 -0
- package/dist/core/events/envelope.d.ts +2 -0
- package/dist/core/events/envelope.js +1 -0
- package/dist/core/events/errors.d.ts +4 -0
- package/dist/core/events/errors.js +1 -0
- package/dist/core/events/index.d.ts +5 -0
- package/dist/core/events/index.js +1 -0
- package/dist/core/events/operation-id.d.ts +4 -0
- package/dist/core/events/operation-id.js +1 -0
- package/dist/core/events/read.d.ts +40 -0
- package/dist/core/events/read.js +1 -0
- package/dist/core/events/serialize.d.ts +4 -0
- package/dist/core/events/serialize.js +1 -0
- package/dist/core/events/source.d.ts +16 -0
- package/dist/core/events/source.js +1 -0
- package/dist/core/events/types.d.ts +68 -0
- package/dist/core/events/types.js +1 -0
- package/dist/core/exclusive-lock.d.ts +34 -0
- package/dist/core/exclusive-lock.js +1 -0
- package/dist/core/fault-classifier.d.ts +34 -0
- package/dist/core/fault-classifier.js +1 -0
- package/dist/core/feed/feed.d.ts +63 -0
- package/dist/core/feed/feed.js +4 -0
- package/dist/core/feed/inbox-migrate.d.ts +11 -0
- package/dist/core/feed/inbox-migrate.js +3 -0
- package/dist/core/feed/inbox.d.ts +34 -0
- package/dist/core/feed/inbox.js +1 -0
- package/dist/core/feed/messages.d.ts +83 -0
- package/dist/core/feed/messages.js +8 -0
- package/dist/core/feed/reports.d.ts +10 -0
- package/dist/core/feed/reports.js +2 -0
- package/dist/core/frontmatter.d.ts +8 -0
- package/dist/core/frontmatter.js +1 -0
- package/dist/core/fs-utils.d.ts +44 -0
- package/dist/core/fs-utils.js +3 -0
- package/dist/core/git.d.ts +28 -0
- package/dist/core/git.js +2 -0
- package/dist/core/grants/local.d.ts +4 -0
- package/dist/core/grants/local.js +1 -0
- package/dist/core/grants/mirror.d.ts +76 -0
- package/dist/core/grants/mirror.js +4 -0
- package/dist/core/grants/on-sync.d.ts +22 -0
- package/dist/core/grants/on-sync.js +1 -0
- package/dist/core/grants/remove.d.ts +7 -0
- package/dist/core/grants/remove.js +1 -0
- package/dist/core/grants/sandboxes.d.ts +7 -0
- package/dist/core/grants/sandboxes.js +1 -0
- package/dist/core/grants/sync.d.ts +40 -0
- package/dist/core/grants/sync.js +1 -0
- package/dist/core/grants/watch.d.ts +14 -0
- package/dist/core/grants/watch.js +1 -0
- package/dist/core/graph/access.d.ts +28 -0
- package/dist/core/graph/access.js +8 -0
- package/dist/core/graph/bodies.d.ts +6 -0
- package/dist/core/graph/bodies.js +1 -0
- package/dist/core/graph/custom.d.ts +74 -0
- package/dist/core/graph/custom.js +11 -0
- package/dist/core/graph/deletion.d.ts +17 -0
- package/dist/core/graph/deletion.js +6 -0
- package/dist/core/graph/diff.d.ts +4 -0
- package/dist/core/graph/diff.js +4 -0
- package/dist/core/graph/documents.d.ts +167 -0
- package/dist/core/graph/documents.js +10 -0
- package/dist/core/graph/edges.d.ts +25 -0
- package/dist/core/graph/edges.js +1 -0
- package/dist/core/graph/events.d.ts +50 -0
- package/dist/core/graph/events.js +11 -0
- package/dist/core/graph/exposures.d.ts +53 -0
- package/dist/core/graph/exposures.js +4 -0
- package/dist/core/graph/jobs.d.ts +31 -0
- package/dist/core/graph/jobs.js +2 -0
- package/dist/core/graph/kinds/action.d.ts +3 -0
- package/dist/core/graph/kinds/action.js +1 -0
- package/dist/core/graph/kinds/custom.d.ts +7 -0
- package/dist/core/graph/kinds/custom.js +7 -0
- package/dist/core/graph/kinds/document.d.ts +19 -0
- package/dist/core/graph/kinds/document.js +5 -0
- package/dist/core/graph/kinds/dto.d.ts +5 -0
- package/dist/core/graph/kinds/dto.js +1 -0
- package/dist/core/graph/kinds/job.d.ts +2 -0
- package/dist/core/graph/kinds/job.js +2 -0
- package/dist/core/graph/kinds/kind.d.ts +66 -0
- package/dist/core/graph/kinds/kind.js +1 -0
- package/dist/core/graph/kinds/node.d.ts +12 -0
- package/dist/core/graph/kinds/node.js +5 -0
- package/dist/core/graph/kinds/owner.d.ts +2 -0
- package/dist/core/graph/kinds/owner.js +2 -0
- package/dist/core/graph/kinds/registry.d.ts +13 -0
- package/dist/core/graph/kinds/registry.js +1 -0
- package/dist/core/graph/kinds/render.d.ts +9 -0
- package/dist/core/graph/kinds/render.js +1 -0
- package/dist/core/graph/names.d.ts +35 -0
- package/dist/core/graph/names.js +3 -0
- package/dist/core/graph/objects.d.ts +62 -0
- package/dist/core/graph/objects.js +11 -0
- package/dist/core/graph/package-docs.d.ts +32 -0
- package/dist/core/graph/package-docs.js +5 -0
- package/dist/core/graph/package-files.d.ts +20 -0
- package/dist/core/graph/package-files.js +2 -0
- package/dist/core/graph/reader.d.ts +30 -0
- package/dist/core/graph/reader.js +3 -0
- package/dist/core/graph/receiver-url.d.ts +11 -0
- package/dist/core/graph/receiver-url.js +1 -0
- package/dist/core/graph/receivers.d.ts +26 -0
- package/dist/core/graph/receivers.js +7 -0
- package/dist/core/graph/repo-sync/exchange.d.ts +34 -0
- package/dist/core/graph/repo-sync/exchange.js +2 -0
- package/dist/core/graph/repo-sync/identity.d.ts +30 -0
- package/dist/core/graph/repo-sync/identity.js +1 -0
- package/dist/core/graph/repo-sync/index.d.ts +4 -0
- package/dist/core/graph/repo-sync/index.js +1 -0
- package/dist/core/graph/repo-sync/mirror.d.ts +30 -0
- package/dist/core/graph/repo-sync/mirror.js +6 -0
- package/dist/core/graph/repo-sync/ref-format.d.ts +76 -0
- package/dist/core/graph/repo-sync/ref-format.js +2 -0
- package/dist/core/graph/repo-sync/repos.d.ts +19 -0
- package/dist/core/graph/repo-sync/repos.js +3 -0
- package/dist/core/graph/repo-sync/sync.d.ts +42 -0
- package/dist/core/graph/repo-sync/sync.js +2 -0
- package/dist/core/graph/rules.d.ts +26 -0
- package/dist/core/graph/rules.js +3 -0
- package/dist/core/graph/spaces/app.d.ts +3 -0
- package/dist/core/graph/spaces/app.js +1 -0
- package/dist/core/graph/spaces/index.d.ts +19 -0
- package/dist/core/graph/spaces/index.js +1 -0
- package/dist/core/graph/spaces/person.d.ts +5 -0
- package/dist/core/graph/spaces/person.js +3 -0
- package/dist/core/graph/spaces/repo.d.ts +13 -0
- package/dist/core/graph/spaces/repo.js +1 -0
- package/dist/core/graph/types.d.ts +94 -0
- package/dist/core/graph/types.js +1 -0
- package/dist/core/graph/watches.d.ts +62 -0
- package/dist/core/graph/watches.js +18 -0
- package/dist/core/help.d.ts +309 -0
- package/dist/core/help.js +9 -0
- package/dist/core/host-exports/builtins.d.ts +50 -0
- package/dist/core/host-exports/builtins.js +9 -0
- package/dist/core/host-exports/export.d.ts +31 -0
- package/dist/core/host-exports/export.js +3 -0
- package/dist/core/human/action-binding.d.ts +23 -0
- package/dist/core/human/action-binding.js +1 -0
- package/dist/core/human/answer-text.d.ts +5 -0
- package/dist/core/human/answer-text.js +5 -0
- package/dist/core/human/answer.d.ts +53 -0
- package/dist/core/human/answer.js +1 -0
- package/dist/core/human/claim.d.ts +23 -0
- package/dist/core/human/claim.js +3 -0
- package/dist/core/human/completion.d.ts +38 -0
- package/dist/core/human/completion.js +1 -0
- package/dist/core/human/component-docs.d.ts +18 -0
- package/dist/core/human/component-docs.js +248 -0
- package/dist/core/human/convention.d.ts +31 -0
- package/dist/core/human/convention.js +2 -0
- package/dist/core/human/feedback-companion.d.ts +19 -0
- package/dist/core/human/feedback-companion.js +1 -0
- package/dist/core/human/feedback.d.ts +62 -0
- package/dist/core/human/feedback.js +1 -0
- package/dist/core/human/page-authoring.d.ts +30 -0
- package/dist/core/human/page-authoring.js +1 -0
- package/dist/core/human/page-catalog.d.ts +57 -0
- package/dist/core/human/page-catalog.js +1 -0
- package/dist/core/human/page-errors.d.ts +4 -0
- package/dist/core/human/page-errors.js +1 -0
- package/dist/core/human/page-eval.d.ts +25 -0
- package/dist/core/human/page-eval.js +1 -0
- package/dist/core/human/page-html-markdown.d.ts +8 -0
- package/dist/core/human/page-html-markdown.js +8 -0
- package/dist/core/human/page-markdown.d.ts +3 -0
- package/dist/core/human/page-markdown.js +17 -0
- package/dist/core/human/page-schema.d.ts +289 -0
- package/dist/core/human/page-schema.js +1 -0
- package/dist/core/human/page-synth.d.ts +7 -0
- package/dist/core/human/page-synth.js +11 -0
- package/dist/core/human/page.d.ts +16 -0
- package/dist/core/human/page.js +1 -0
- package/dist/core/human/requests.d.ts +146 -0
- package/dist/core/human/requests.js +82 -0
- package/dist/core/human/review-schema.d.ts +20 -0
- package/dist/core/human/review-schema.js +1 -0
- package/dist/core/human/root.d.ts +4 -0
- package/dist/core/human/root.js +1 -0
- package/dist/core/human/scan.d.ts +6 -0
- package/dist/core/human/scan.js +1 -0
- package/dist/core/human/summary.d.ts +3 -0
- package/dist/core/human/summary.js +1 -0
- package/dist/core/human/tickets.d.ts +68 -0
- package/dist/core/human/tickets.js +1 -0
- package/dist/core/human/types.d.ts +118 -0
- package/dist/core/human/types.js +0 -0
- package/dist/core/human/visible-paths.d.ts +9 -0
- package/dist/core/human/visible-paths.js +1 -0
- package/dist/core/human-actions.d.ts +25 -0
- package/dist/core/human-actions.js +1 -0
- package/dist/core/inspector/chrome.d.ts +6 -0
- package/dist/core/inspector/chrome.js +1 -0
- package/dist/core/inspector/contract.d.ts +105 -0
- package/dist/core/inspector/contract.js +0 -0
- package/dist/core/inspector/core.d.ts +39 -0
- package/dist/core/inspector/core.js +2 -0
- package/dist/core/inspector/host.d.ts +46 -0
- package/dist/core/inspector/host.js +4 -0
- package/dist/core/inspector/model.d.ts +88 -0
- package/dist/core/inspector/model.js +2 -0
- package/dist/core/inspector/text.d.ts +5 -0
- package/dist/core/inspector/text.js +6 -0
- package/dist/core/inspector/transport.d.ts +6 -0
- package/dist/core/inspector/transport.js +1 -0
- package/dist/core/inspector/tui.d.ts +3 -0
- package/dist/core/inspector/tui.js +2 -0
- package/dist/core/installed-plugins.d.ts +2 -0
- package/dist/core/installed-plugins.js +1 -0
- package/dist/core/io.d.ts +122 -0
- package/dist/core/io.js +7 -0
- package/dist/core/keybindings/attach-control.d.ts +49 -0
- package/dist/core/keybindings/attach-control.js +1 -0
- package/dist/core/keybindings/background-bash.d.ts +13 -0
- package/dist/core/keybindings/background-bash.js +1 -0
- package/dist/core/keybindings/catalog.d.ts +18 -0
- package/dist/core/keybindings/catalog.js +1 -0
- package/dist/core/keybindings/inbox.d.ts +18 -0
- package/dist/core/keybindings/inbox.js +1 -0
- package/dist/core/keybindings/index.d.ts +8 -0
- package/dist/core/keybindings/index.js +1 -0
- package/dist/core/keybindings/match.d.ts +44 -0
- package/dist/core/keybindings/match.js +1 -0
- package/dist/core/keybindings/persistence.d.ts +18 -0
- package/dist/core/keybindings/persistence.js +1 -0
- package/dist/core/keybindings/resolve.d.ts +28 -0
- package/dist/core/keybindings/resolve.js +1 -0
- package/dist/core/keybindings/types.d.ts +42 -0
- package/dist/core/keybindings/types.js +0 -0
- package/dist/core/layout-migrate/index.d.ts +38 -0
- package/dist/core/layout-migrate/index.js +4 -0
- package/dist/core/layout-migrate/loose-keys.d.ts +2 -0
- package/dist/core/layout-migrate/loose-keys.js +1 -0
- package/dist/core/layout-migrate/paths.d.ts +30 -0
- package/dist/core/layout-migrate/paths.js +1 -0
- package/dist/core/layout-migrate/stored-paths.d.ts +9 -0
- package/dist/core/layout-migrate/stored-paths.js +11 -0
- package/dist/core/layout-migrate/stores.d.ts +30 -0
- package/dist/core/layout-migrate/stores.js +3 -0
- package/dist/core/layout.d.ts +34 -0
- package/dist/core/layout.js +2 -0
- package/dist/core/llm/body-limits.d.ts +7 -0
- package/dist/core/llm/body-limits.js +1 -0
- package/dist/core/llm/refusal.d.ts +13 -0
- package/dist/core/llm/refusal.js +1 -0
- package/dist/core/llm/run.d.ts +60 -0
- package/dist/core/llm/run.js +4 -0
- package/dist/core/locked-file.d.ts +27 -0
- package/dist/core/locked-file.js +1 -0
- package/dist/core/log.d.ts +9 -0
- package/dist/core/log.js +5 -0
- package/dist/core/manifest-recovery.d.ts +15 -0
- package/dist/core/manifest-recovery.js +1 -0
- package/dist/core/manifest-stale.d.ts +18 -0
- package/dist/core/manifest-stale.js +1 -0
- package/dist/core/manifest.d.ts +5 -0
- package/dist/core/manifest.js +1 -0
- package/dist/core/model-auth/daemon-login.d.ts +13 -0
- package/dist/core/model-auth/daemon-login.js +1 -0
- package/dist/core/model-auth/flows.d.ts +50 -0
- package/dist/core/model-auth/flows.js +1 -0
- package/dist/core/model-auth/handoff-jti.d.ts +4 -0
- package/dist/core/model-auth/handoff-jti.js +1 -0
- package/dist/core/model-config.d.ts +20 -0
- package/dist/core/model-config.js +1 -0
- package/dist/core/model-routes.d.ts +90 -0
- package/dist/core/model-routes.js +1 -0
- package/dist/core/nvim-launch.d.ts +7 -0
- package/dist/core/nvim-launch.js +1 -0
- package/dist/core/output.d.ts +35 -0
- package/dist/core/output.js +7 -0
- package/dist/core/pagination.d.ts +35 -0
- package/dist/core/pagination.js +1 -0
- package/dist/core/plugin-env.d.ts +8 -0
- package/dist/core/plugin-env.js +1 -0
- package/dist/core/plugin-extensions.d.ts +29 -0
- package/dist/core/plugin-extensions.js +1 -0
- package/dist/core/plugin-swap-lock.d.ts +9 -0
- package/dist/core/plugin-swap-lock.js +1 -0
- package/dist/core/pool-credential-store.d.ts +34 -0
- package/dist/core/pool-credential-store.js +1 -0
- package/dist/core/predicate.d.ts +65 -0
- package/dist/core/predicate.js +1 -0
- package/dist/core/preview-registry.d.ts +59 -0
- package/dist/core/preview-registry.js +3 -0
- package/dist/core/preview-result-path.d.ts +4 -0
- package/dist/core/preview-result-path.js +1 -0
- package/dist/core/profiles/app-env-store.d.ts +4 -0
- package/dist/core/profiles/app-env-store.js +2 -0
- package/dist/core/profiles/default-binding.d.ts +15 -0
- package/dist/core/profiles/default-binding.js +1 -0
- package/dist/core/profiles/deletion-reservation.d.ts +12 -0
- package/dist/core/profiles/deletion-reservation.js +1 -0
- package/dist/core/profiles/env-store.d.ts +22 -0
- package/dist/core/profiles/env-store.js +2 -0
- package/dist/core/profiles/fuzzy-match.d.ts +19 -0
- package/dist/core/profiles/fuzzy-match.js +1 -0
- package/dist/core/profiles/manifest.d.ts +120 -0
- package/dist/core/profiles/manifest.js +1 -0
- package/dist/core/profiles/select.d.ts +46 -0
- package/dist/core/profiles/select.js +35 -0
- package/dist/core/provider-credential.d.ts +6 -0
- package/dist/core/provider-credential.js +1 -0
- package/dist/core/provider-error-recognition.d.ts +27 -0
- package/dist/core/provider-error-recognition.js +1 -0
- package/dist/core/provider-failure.d.ts +42 -0
- package/dist/core/provider-failure.js +1 -0
- package/dist/core/provider-management.d.ts +12 -0
- package/dist/core/provider-management.js +1 -0
- package/dist/core/providers/approval.d.ts +23 -0
- package/dist/core/providers/approval.js +3 -0
- package/dist/core/providers/audit.d.ts +28 -0
- package/dist/core/providers/audit.js +4 -0
- package/dist/core/providers/bundles.d.ts +68 -0
- package/dist/core/providers/bundles.js +2 -0
- package/dist/core/providers/call.d.ts +62 -0
- package/dist/core/providers/call.js +1 -0
- package/dist/core/providers/errors.d.ts +97 -0
- package/dist/core/providers/errors.js +1 -0
- package/dist/core/providers/files.d.ts +89 -0
- package/dist/core/providers/files.js +1 -0
- package/dist/core/providers/inflight.d.ts +13 -0
- package/dist/core/providers/inflight.js +1 -0
- package/dist/core/providers/mint.d.ts +27 -0
- package/dist/core/providers/mint.js +1 -0
- package/dist/core/providers/receipts.d.ts +9 -0
- package/dist/core/providers/receipts.js +3 -0
- package/dist/core/providers/request.d.ts +27 -0
- package/dist/core/providers/request.js +1 -0
- package/dist/core/providers/token-cache.d.ts +44 -0
- package/dist/core/providers/token-cache.js +1 -0
- package/dist/core/rate-limit-scope.d.ts +25 -0
- package/dist/core/rate-limit-scope.js +1 -0
- package/dist/core/remote-canvas-target.d.ts +4 -0
- package/dist/core/remote-canvas-target.js +1 -0
- package/dist/core/render.d.ts +12 -0
- package/dist/core/render.js +18 -0
- package/dist/core/resolver.d.ts +14 -0
- package/dist/core/resolver.js +1 -0
- package/dist/core/review/birth.d.ts +7 -0
- package/dist/core/review/birth.js +1 -0
- package/dist/core/review/comments.d.ts +69 -0
- package/dist/core/review/comments.js +21 -0
- package/dist/core/review/companion.d.ts +33 -0
- package/dist/core/review/companion.js +1 -0
- package/dist/core/review/document.d.ts +27 -0
- package/dist/core/review/document.js +2 -0
- package/dist/core/review/fork.d.ts +8 -0
- package/dist/core/review/fork.js +5 -0
- package/dist/core/review/project.d.ts +17 -0
- package/dist/core/review/project.js +1 -0
- package/dist/core/review/realize.d.ts +3 -0
- package/dist/core/review/realize.js +1 -0
- package/dist/core/review/remap.d.ts +24 -0
- package/dist/core/review/remap.js +19 -0
- package/dist/core/review/signal.d.ts +5 -0
- package/dist/core/review/signal.js +1 -0
- package/dist/core/review/stage.d.ts +38 -0
- package/dist/core/review/stage.js +1 -0
- package/dist/core/review/store.d.ts +44 -0
- package/dist/core/review/store.js +1 -0
- package/dist/core/review/types.d.ts +139 -0
- package/dist/core/review/types.js +1 -0
- package/dist/core/runs/activity.d.ts +11 -0
- package/dist/core/runs/activity.js +6 -0
- package/dist/core/runs/confinement.d.ts +23 -0
- package/dist/core/runs/confinement.js +2 -0
- package/dist/core/runs/events.d.ts +41 -0
- package/dist/core/runs/events.js +7 -0
- package/dist/core/runs/operations.d.ts +75 -0
- package/dist/core/runs/operations.js +12 -0
- package/dist/core/runs/questions.d.ts +73 -0
- package/dist/core/runs/questions.js +4 -0
- package/dist/core/runtime/advertised-command-invocation.d.ts +20 -0
- package/dist/core/runtime/advertised-command-invocation.js +1 -0
- package/dist/core/runtime/auth-reload.d.ts +7 -0
- package/dist/core/runtime/auth-reload.js +1 -0
- package/dist/core/runtime/banner.d.ts +15 -0
- package/dist/core/runtime/banner.js +1 -0
- package/dist/core/runtime/bearings-render.d.ts +62 -0
- package/dist/core/runtime/bearings-render.js +18 -0
- package/dist/core/runtime/bearings.d.ts +56 -0
- package/dist/core/runtime/bearings.js +7 -0
- package/dist/core/runtime/bin-contributions.d.ts +44 -0
- package/dist/core/runtime/bin-contributions.js +2 -0
- package/dist/core/runtime/boot-root.d.ts +34 -0
- package/dist/core/runtime/boot-root.js +5 -0
- package/dist/core/runtime/branded-host.d.ts +55 -0
- package/dist/core/runtime/branded-host.js +2 -0
- package/dist/core/runtime/broker/cli-relay.d.ts +5 -0
- package/dist/core/runtime/broker/cli-relay.js +1 -0
- package/dist/core/runtime/broker/client-registry.d.ts +36 -0
- package/dist/core/runtime/broker/client-registry.js +1 -0
- package/dist/core/runtime/broker/daemon-ops.d.ts +65 -0
- package/dist/core/runtime/broker/daemon-ops.js +1 -0
- package/dist/core/runtime/broker/engine-drive.d.ts +37 -0
- package/dist/core/runtime/broker/engine-drive.js +1 -0
- package/dist/core/runtime/broker/engine-routing.d.ts +143 -0
- package/dist/core/runtime/broker/engine-routing.js +1 -0
- package/dist/core/runtime/broker/event-projection.d.ts +43 -0
- package/dist/core/runtime/broker/event-projection.js +1 -0
- package/dist/core/runtime/broker/extension-abort.d.ts +15 -0
- package/dist/core/runtime/broker/extension-abort.js +1 -0
- package/dist/core/runtime/broker/fault-retry.d.ts +127 -0
- package/dist/core/runtime/broker/fault-retry.js +1 -0
- package/dist/core/runtime/broker/frame-client.d.ts +38 -0
- package/dist/core/runtime/broker/frame-client.js +1 -0
- package/dist/core/runtime/broker/frame-dispatch.d.ts +64 -0
- package/dist/core/runtime/broker/frame-dispatch.js +1 -0
- package/dist/core/runtime/broker/frame-engine-control.d.ts +21 -0
- package/dist/core/runtime/broker/frame-engine-control.js +1 -0
- package/dist/core/runtime/broker/frame-memory-refs.d.ts +25 -0
- package/dist/core/runtime/broker/frame-memory-refs.js +1 -0
- package/dist/core/runtime/broker/frame-model-query.d.ts +13 -0
- package/dist/core/runtime/broker/frame-model-query.js +1 -0
- package/dist/core/runtime/broker/frame-read.d.ts +19 -0
- package/dist/core/runtime/broker/frame-read.js +1 -0
- package/dist/core/runtime/broker/frame-replies.d.ts +24 -0
- package/dist/core/runtime/broker/frame-replies.js +1 -0
- package/dist/core/runtime/broker/frame-session.d.ts +34 -0
- package/dist/core/runtime/broker/frame-session.js +4 -0
- package/dist/core/runtime/broker/held-deferred-inbox.d.ts +15 -0
- package/dist/core/runtime/broker/held-deferred-inbox.js +1 -0
- package/dist/core/runtime/broker/inbox.d.ts +22 -0
- package/dist/core/runtime/broker/inbox.js +1 -0
- package/dist/core/runtime/broker/model-adapter.d.ts +24 -0
- package/dist/core/runtime/broker/model-adapter.js +2 -0
- package/dist/core/runtime/broker/node-named.d.ts +15 -0
- package/dist/core/runtime/broker/node-named.js +1 -0
- package/dist/core/runtime/broker/node-token.d.ts +3 -0
- package/dist/core/runtime/broker/node-token.js +1 -0
- package/dist/core/runtime/broker/read-ops.d.ts +27 -0
- package/dist/core/runtime/broker/read-ops.js +1 -0
- package/dist/core/runtime/broker/rebind.d.ts +78 -0
- package/dist/core/runtime/broker/rebind.js +1 -0
- package/dist/core/runtime/broker/retry-card-elision.d.ts +7 -0
- package/dist/core/runtime/broker/retry-card-elision.js +1 -0
- package/dist/core/runtime/broker/run-deferred-mail.d.ts +8 -0
- package/dist/core/runtime/broker/run-deferred-mail.js +1 -0
- package/dist/core/runtime/broker/run-turn-end.d.ts +38 -0
- package/dist/core/runtime/broker/run-turn-end.js +1 -0
- package/dist/core/runtime/broker/run-turn-queue.d.ts +48 -0
- package/dist/core/runtime/broker/run-turn-queue.js +1 -0
- package/dist/core/runtime/broker/signal-stream.d.ts +30 -0
- package/dist/core/runtime/broker/signal-stream.js +1 -0
- package/dist/core/runtime/broker/tool-groups.d.ts +39 -0
- package/dist/core/runtime/broker/tool-groups.js +1 -0
- package/dist/core/runtime/broker/turn-admission.d.ts +11 -0
- package/dist/core/runtime/broker/turn-admission.js +1 -0
- package/dist/core/runtime/broker/turn-ignition.d.ts +49 -0
- package/dist/core/runtime/broker/turn-ignition.js +1 -0
- package/dist/core/runtime/broker-cli.d.ts +1 -0
- package/dist/core/runtime/broker-cli.js +3 -0
- package/dist/core/runtime/broker-extension-render.d.ts +3 -0
- package/dist/core/runtime/broker-extension-render.js +3 -0
- package/dist/core/runtime/broker-inventory.d.ts +4 -0
- package/dist/core/runtime/broker-inventory.js +1 -0
- package/dist/core/runtime/broker-persona-guidance.d.ts +27 -0
- package/dist/core/runtime/broker-persona-guidance.js +4 -0
- package/dist/core/runtime/broker-protocol.d.ts +716 -0
- package/dist/core/runtime/broker-protocol.js +3 -0
- package/dist/core/runtime/broker-request.d.ts +37 -0
- package/dist/core/runtime/broker-request.js +1 -0
- package/dist/core/runtime/broker-sdk.d.ts +36 -0
- package/dist/core/runtime/broker-sdk.js +1 -0
- package/dist/core/runtime/broker.d.ts +73 -0
- package/dist/core/runtime/broker.js +1 -0
- package/dist/core/runtime/canvas-extensions.d.ts +34 -0
- package/dist/core/runtime/canvas-extensions.js +1 -0
- package/dist/core/runtime/chat-inventory-rows.d.ts +8 -0
- package/dist/core/runtime/chat-inventory-rows.js +1 -0
- package/dist/core/runtime/close.d.ts +46 -0
- package/dist/core/runtime/close.js +1 -0
- package/dist/core/runtime/come-back-note.d.ts +5 -0
- package/dist/core/runtime/come-back-note.js +3 -0
- package/dist/core/runtime/command-expansion.d.ts +19 -0
- package/dist/core/runtime/command-expansion.js +9 -0
- package/dist/core/runtime/command-surface.d.ts +38 -0
- package/dist/core/runtime/command-surface.js +1 -0
- package/dist/core/runtime/connectivity.d.ts +12 -0
- package/dist/core/runtime/connectivity.js +1 -0
- package/dist/core/runtime/crtr-theme.d.ts +12 -0
- package/dist/core/runtime/crtr-theme.js +1 -0
- package/dist/core/runtime/deliver-live.d.ts +38 -0
- package/dist/core/runtime/deliver-live.js +1 -0
- package/dist/core/runtime/fault-recovery.d.ts +23 -0
- package/dist/core/runtime/fault-recovery.js +1 -0
- package/dist/core/runtime/fault.d.ts +6 -0
- package/dist/core/runtime/fault.js +1 -0
- package/dist/core/runtime/first-run-offer.d.ts +11 -0
- package/dist/core/runtime/first-run-offer.js +5 -0
- package/dist/core/runtime/fleet.d.ts +93 -0
- package/dist/core/runtime/fleet.js +1 -0
- package/dist/core/runtime/focus-viewer.d.ts +39 -0
- package/dist/core/runtime/focus-viewer.js +1 -0
- package/dist/core/runtime/front-door-env.d.ts +5 -0
- package/dist/core/runtime/front-door-env.js +1 -0
- package/dist/core/runtime/front-door-login.d.ts +2 -0
- package/dist/core/runtime/front-door-login.js +1 -0
- package/dist/core/runtime/front-door.d.ts +26 -0
- package/dist/core/runtime/front-door.js +11 -0
- package/dist/core/runtime/headless-pi.d.ts +37 -0
- package/dist/core/runtime/headless-pi.js +1 -0
- package/dist/core/runtime/host.d.ts +59 -0
- package/dist/core/runtime/host.js +3 -0
- package/dist/core/runtime/interactive-deliver.d.ts +22 -0
- package/dist/core/runtime/interactive-deliver.js +1 -0
- package/dist/core/runtime/invocation.d.ts +9 -0
- package/dist/core/runtime/invocation.js +0 -0
- package/dist/core/runtime/kickoff.d.ts +49 -0
- package/dist/core/runtime/kickoff.js +28 -0
- package/dist/core/runtime/launch-config-worker.d.ts +1 -0
- package/dist/core/runtime/launch-config-worker.js +1 -0
- package/dist/core/runtime/launch-prompt.d.ts +8 -0
- package/dist/core/runtime/launch-prompt.js +4 -0
- package/dist/core/runtime/launch-target.d.ts +34 -0
- package/dist/core/runtime/launch-target.js +1 -0
- package/dist/core/runtime/launch.d.ts +194 -0
- package/dist/core/runtime/launch.js +3 -0
- package/dist/core/runtime/ledger.d.ts +10 -0
- package/dist/core/runtime/ledger.js +3 -0
- package/dist/core/runtime/lifecycle.d.ts +34 -0
- package/dist/core/runtime/lifecycle.js +2 -0
- package/dist/core/runtime/managed-provider-cooling.d.ts +24 -0
- package/dist/core/runtime/managed-provider-cooling.js +1 -0
- package/dist/core/runtime/model-registry.d.ts +3 -0
- package/dist/core/runtime/model-registry.js +1 -0
- package/dist/core/runtime/model-selection.d.ts +54 -0
- package/dist/core/runtime/model-selection.js +1 -0
- package/dist/core/runtime/model-swap.d.ts +26 -0
- package/dist/core/runtime/model-swap.js +1 -0
- package/dist/core/runtime/naming.d.ts +69 -0
- package/dist/core/runtime/naming.js +14 -0
- package/dist/core/runtime/nerd-font.d.ts +46 -0
- package/dist/core/runtime/nerd-font.js +2 -0
- package/dist/core/runtime/node-id-token.d.ts +6 -0
- package/dist/core/runtime/node-id-token.js +1 -0
- package/dist/core/runtime/node-read.d.ts +51 -0
- package/dist/core/runtime/node-read.js +3 -0
- package/dist/core/runtime/nodes.d.ts +138 -0
- package/dist/core/runtime/nodes.js +1 -0
- package/dist/core/runtime/outcome-document.d.ts +59 -0
- package/dist/core/runtime/outcome-document.js +1 -0
- package/dist/core/runtime/package-health.d.ts +34 -0
- package/dist/core/runtime/package-health.js +4 -0
- package/dist/core/runtime/persona.d.ts +21 -0
- package/dist/core/runtime/persona.js +2 -0
- package/dist/core/runtime/pi-cli.d.ts +8 -0
- package/dist/core/runtime/pi-cli.js +1 -0
- package/dist/core/runtime/pi-vendored.d.ts +28 -0
- package/dist/core/runtime/pi-vendored.js +1 -0
- package/dist/core/runtime/placement-tmux.d.ts +32 -0
- package/dist/core/runtime/placement-tmux.js +1 -0
- package/dist/core/runtime/placement.d.ts +100 -0
- package/dist/core/runtime/placement.js +1 -0
- package/dist/core/runtime/progress-bar.d.ts +13 -0
- package/dist/core/runtime/progress-bar.js +2 -0
- package/dist/core/runtime/promote.d.ts +76 -0
- package/dist/core/runtime/promote.js +1 -0
- package/dist/core/runtime/prospective-inventory-cli.d.ts +1 -0
- package/dist/core/runtime/prospective-inventory-cli.js +3 -0
- package/dist/core/runtime/prospective-inventory.d.ts +10 -0
- package/dist/core/runtime/prospective-inventory.js +2 -0
- package/dist/core/runtime/provider-credential-gate.d.ts +4 -0
- package/dist/core/runtime/provider-credential-gate.js +2 -0
- package/dist/core/runtime/recap.d.ts +3 -0
- package/dist/core/runtime/recap.js +27 -0
- package/dist/core/runtime/recovery-hold.d.ts +2 -0
- package/dist/core/runtime/recovery-hold.js +1 -0
- package/dist/core/runtime/recycle.d.ts +14 -0
- package/dist/core/runtime/recycle.js +1 -0
- package/dist/core/runtime/reopen.d.ts +38 -0
- package/dist/core/runtime/reopen.js +1 -0
- package/dist/core/runtime/reset.d.ts +68 -0
- package/dist/core/runtime/reset.js +1 -0
- package/dist/core/runtime/resume-root.d.ts +34 -0
- package/dist/core/runtime/resume-root.js +11 -0
- package/dist/core/runtime/revive-all.d.ts +57 -0
- package/dist/core/runtime/revive-all.js +1 -0
- package/dist/core/runtime/revive.d.ts +105 -0
- package/dist/core/runtime/revive.js +3 -0
- package/dist/core/runtime/roadmap.d.ts +24 -0
- package/dist/core/runtime/roadmap.js +15 -0
- package/dist/core/runtime/run-command.d.ts +36 -0
- package/dist/core/runtime/run-command.js +1 -0
- package/dist/core/runtime/session-branch.d.ts +7 -0
- package/dist/core/runtime/session-branch.js +1 -0
- package/dist/core/runtime/session-cycles.d.ts +45 -0
- package/dist/core/runtime/session-cycles.js +1 -0
- package/dist/core/runtime/session-list-cache.d.ts +37 -0
- package/dist/core/runtime/session-list-cache.js +1 -0
- package/dist/core/runtime/session-visibility.d.ts +37 -0
- package/dist/core/runtime/session-visibility.js +1 -0
- package/dist/core/runtime/setup-marker.d.ts +8 -0
- package/dist/core/runtime/setup-marker.js +1 -0
- package/dist/core/runtime/shell-expansion.d.ts +32 -0
- package/dist/core/runtime/shell-expansion.js +9 -0
- package/dist/core/runtime/situational-context.d.ts +19 -0
- package/dist/core/runtime/situational-context.js +2 -0
- package/dist/core/runtime/situational-live.d.ts +9 -0
- package/dist/core/runtime/situational-live.js +1 -0
- package/dist/core/runtime/spawn-env.d.ts +54 -0
- package/dist/core/runtime/spawn-env.js +1 -0
- package/dist/core/runtime/spawn.d.ts +155 -0
- package/dist/core/runtime/spawn.js +3 -0
- package/dist/core/runtime/stamp/channel.d.ts +20 -0
- package/dist/core/runtime/stamp/channel.js +1 -0
- package/dist/core/runtime/stamp/protocol.d.ts +90 -0
- package/dist/core/runtime/stamp/protocol.js +1 -0
- package/dist/core/runtime/stop-guard.d.ts +31 -0
- package/dist/core/runtime/stop-guard.js +8 -0
- package/dist/core/runtime/stop-signals.d.ts +16 -0
- package/dist/core/runtime/stop-signals.js +1 -0
- package/dist/core/runtime/stream-watchdog.d.ts +54 -0
- package/dist/core/runtime/stream-watchdog.js +1 -0
- package/dist/core/runtime/structured-output.d.ts +91 -0
- package/dist/core/runtime/structured-output.js +5 -0
- package/dist/core/runtime/surface-bg.d.ts +13 -0
- package/dist/core/runtime/surface-bg.js +1 -0
- package/dist/core/runtime/tmux-bindings.d.ts +30 -0
- package/dist/core/runtime/tmux-bindings.js +4 -0
- package/dist/core/runtime/tmux-chrome.d.ts +2 -0
- package/dist/core/runtime/tmux-chrome.js +1 -0
- package/dist/core/runtime/tmux-driver.d.ts +314 -0
- package/dist/core/runtime/tmux-driver.js +6 -0
- package/dist/core/runtime/tmux-handoff.d.ts +36 -0
- package/dist/core/runtime/tmux-handoff.js +10 -0
- package/dist/core/runtime/tool-group-summary.d.ts +19 -0
- package/dist/core/runtime/tool-group-summary.js +6 -0
- package/dist/core/runtime/turn-visibility.d.ts +10 -0
- package/dist/core/runtime/turn-visibility.js +1 -0
- package/dist/core/runtime/view-socket.d.ts +21 -0
- package/dist/core/runtime/view-socket.js +1 -0
- package/dist/core/runtime/warm-pool.d.ts +65 -0
- package/dist/core/runtime/warm-pool.js +1 -0
- package/dist/core/scope.d.ts +32 -0
- package/dist/core/scope.js +1 -0
- package/dist/core/scoped-state/db.d.ts +17 -0
- package/dist/core/scoped-state/db.js +2 -0
- package/dist/core/scoped-state/migrate.d.ts +8 -0
- package/dist/core/scoped-state/migrate.js +3 -0
- package/dist/core/scoped-state/paths.d.ts +9 -0
- package/dist/core/scoped-state/paths.js +1 -0
- package/dist/core/scoped-state/profiles.d.ts +27 -0
- package/dist/core/scoped-state/profiles.js +1 -0
- package/dist/core/scoped-state/providers.d.ts +24 -0
- package/dist/core/scoped-state/providers.js +1 -0
- package/dist/core/scoped-state/schema.d.ts +6 -0
- package/dist/core/scoped-state/schema.js +16 -0
- package/dist/core/scoped-state/settings.d.ts +28 -0
- package/dist/core/scoped-state/settings.js +1 -0
- package/dist/core/scopes.d.ts +17 -0
- package/dist/core/scopes.js +1 -0
- package/dist/core/secrets.d.ts +40 -0
- package/dist/core/secrets.js +2 -0
- package/dist/core/self-update.d.ts +27 -0
- package/dist/core/self-update.js +1 -0
- package/dist/core/session-model/session-state.d.ts +53 -0
- package/dist/core/session-model/session-state.js +1 -0
- package/dist/core/shell-segments.d.ts +42 -0
- package/dist/core/shell-segments.js +4 -0
- package/dist/core/spaces/cache-env.d.ts +2 -0
- package/dist/core/spaces/cache-env.js +1 -0
- package/dist/core/spaces/file-root.d.ts +23 -0
- package/dist/core/spaces/file-root.js +1 -0
- package/dist/core/spaces/mounts.d.ts +34 -0
- package/dist/core/spaces/mounts.js +1 -0
- package/dist/core/spaces/open-beneath.d.ts +71 -0
- package/dist/core/spaces/open-beneath.js +1 -0
- package/dist/core/spaces/permissions.d.ts +19 -0
- package/dist/core/spaces/permissions.js +1 -0
- package/dist/core/spaces/process.d.ts +41 -0
- package/dist/core/spaces/process.js +1 -0
- package/dist/core/spaces/runtime-home.d.ts +5 -0
- package/dist/core/spaces/runtime-home.js +1 -0
- package/dist/core/spaces/space.d.ts +8 -0
- package/dist/core/spaces/space.js +2 -0
- package/dist/core/spaces/stop.d.ts +21 -0
- package/dist/core/spaces/stop.js +2 -0
- package/dist/core/spaces/users.d.ts +19 -0
- package/dist/core/spaces/users.js +1 -0
- package/dist/core/spawn.d.ts +15 -0
- package/dist/core/spawn.js +1 -0
- package/dist/core/sqlite-statements.d.ts +4 -0
- package/dist/core/sqlite-statements.js +1 -0
- package/dist/core/stdout-errors.d.ts +3 -0
- package/dist/core/stdout-errors.js +1 -0
- package/dist/core/storage/attachments.d.ts +33 -0
- package/dist/core/storage/attachments.js +1 -0
- package/dist/core/storage/client.d.ts +109 -0
- package/dist/core/storage/client.js +3 -0
- package/dist/core/storage/download.d.ts +24 -0
- package/dist/core/storage/download.js +1 -0
- package/dist/core/storage/shares.d.ts +32 -0
- package/dist/core/storage/shares.js +1 -0
- package/dist/core/storage/tables.d.ts +63 -0
- package/dist/core/storage/tables.js +3 -0
- package/dist/core/subscription-state.d.ts +121 -0
- package/dist/core/subscription-state.js +4 -0
- package/dist/core/substrate/delivery/corpus.d.ts +27 -0
- package/dist/core/substrate/delivery/corpus.js +3 -0
- package/dist/core/substrate/delivery/deliver.d.ts +76 -0
- package/dist/core/substrate/delivery/deliver.js +6 -0
- package/dist/core/substrate/delivery/listings.d.ts +30 -0
- package/dist/core/substrate/delivery/listings.js +7 -0
- package/dist/core/substrate/delivery/match.d.ts +28 -0
- package/dist/core/substrate/delivery/match.js +1 -0
- package/dist/core/substrate/delivery/plan.d.ts +67 -0
- package/dist/core/substrate/delivery/plan.js +3 -0
- package/dist/core/substrate/delivery/render-boot.d.ts +20 -0
- package/dist/core/substrate/delivery/render-boot.js +54 -0
- package/dist/core/substrate/delivery/render-event.d.ts +54 -0
- package/dist/core/substrate/delivery/render-event.js +8 -0
- package/dist/core/substrate/delivery/sub-persona-menu.d.ts +2 -0
- package/dist/core/substrate/delivery/sub-persona-menu.js +6 -0
- package/dist/core/substrate/delivery/types.d.ts +30 -0
- package/dist/core/substrate/delivery/types.js +0 -0
- package/dist/core/substrate/gate-explain.d.ts +35 -0
- package/dist/core/substrate/gate-explain.js +1 -0
- package/dist/core/substrate/schema.d.ts +29 -0
- package/dist/core/substrate/schema.js +1 -0
- package/dist/core/substrate/subject-fields.d.ts +48 -0
- package/dist/core/substrate/subject-fields.js +1 -0
- package/dist/core/substrate/subject.d.ts +13 -0
- package/dist/core/substrate/subject.js +1 -0
- package/dist/core/termrender/code-doc.d.ts +12 -0
- package/dist/core/termrender/code-doc.js +5 -0
- package/dist/core/termrender/display.d.ts +16 -0
- package/dist/core/termrender/display.js +2 -0
- package/dist/core/termrender/termrender.d.ts +71 -0
- package/dist/core/termrender/termrender.js +14 -0
- package/dist/core/termrender/version.d.ts +1 -0
- package/dist/core/termrender/version.js +1 -0
- package/dist/core/timing.d.ts +11 -0
- package/dist/core/timing.js +2 -0
- package/dist/core/tui/draw.d.ts +103 -0
- package/dist/core/tui/draw.js +2 -0
- package/dist/core/tui/fuzzy.d.ts +9 -0
- package/dist/core/tui/fuzzy.js +1 -0
- package/dist/core/tui/markdown.d.ts +17 -0
- package/dist/core/tui/markdown.js +3 -0
- package/dist/core/tui/page-host.d.ts +31 -0
- package/dist/core/tui/page-host.js +1 -0
- package/dist/core/tui/panel.d.ts +45 -0
- package/dist/core/tui/panel.js +1 -0
- package/dist/core/tui/terminal.d.ts +23 -0
- package/dist/core/tui/terminal.js +2 -0
- package/dist/core/user-settings.d.ts +377 -0
- package/dist/core/user-settings.js +1 -0
- package/dist/core/wake.d.ts +89 -0
- package/dist/core/wake.js +1 -0
- package/dist/core/worktree-close.d.ts +4 -0
- package/dist/core/worktree-close.js +6 -0
- package/dist/core/worktree-containment.d.ts +14 -0
- package/dist/core/worktree-containment.js +3 -0
- package/dist/core/worktree-landing.d.ts +44 -0
- package/dist/core/worktree-landing.js +4 -0
- package/dist/core/worktree-mutation-async.d.ts +13 -0
- package/dist/core/worktree-mutation-async.js +10 -0
- package/dist/core/worktree-quarantine.d.ts +19 -0
- package/dist/core/worktree-quarantine.js +1 -0
- package/dist/core/worktree-remove.d.ts +15 -0
- package/dist/core/worktree-remove.js +1 -0
- package/dist/core/worktree-sweep.d.ts +60 -0
- package/dist/core/worktree-sweep.js +6 -0
- package/dist/core/worktree.d.ts +120 -0
- package/dist/core/worktree.js +18 -0
- package/dist/daemon/analytics/compute.d.ts +37 -0
- package/dist/daemon/analytics/compute.js +1 -0
- package/dist/daemon/analytics/scan-worker.d.ts +1 -0
- package/dist/daemon/analytics/scan-worker.js +2 -0
- package/dist/daemon/analytics/scan.d.ts +37 -0
- package/dist/daemon/analytics/scan.js +1 -0
- package/dist/daemon/api/app-listener.d.ts +22 -0
- package/dist/daemon/api/app-listener.js +24 -0
- package/dist/daemon/api/bridge.d.ts +63 -0
- package/dist/daemon/api/bridge.js +8 -0
- package/dist/daemon/api/deferred-head.d.ts +14 -0
- package/dist/daemon/api/deferred-head.js +4 -0
- package/dist/daemon/api/handlers/analytics.d.ts +2 -0
- package/dist/daemon/api/handlers/analytics.js +1 -0
- package/dist/daemon/api/handlers/app-profiles.d.ts +17 -0
- package/dist/daemon/api/handlers/app-profiles.js +1 -0
- package/dist/daemon/api/handlers/attach.d.ts +2 -0
- package/dist/daemon/api/handlers/attach.js +1 -0
- package/dist/daemon/api/handlers/bash-jobs.d.ts +2 -0
- package/dist/daemon/api/handlers/bash-jobs.js +1 -0
- package/dist/daemon/api/handlers/bash.d.ts +2 -0
- package/dist/daemon/api/handlers/bash.js +1 -0
- package/dist/daemon/api/handlers/broker-ops.d.ts +5 -0
- package/dist/daemon/api/handlers/broker-ops.js +1 -0
- package/dist/daemon/api/handlers/broker-recovery.d.ts +4 -0
- package/dist/daemon/api/handlers/broker-recovery.js +1 -0
- package/dist/daemon/api/handlers/broker-signals.d.ts +19 -0
- package/dist/daemon/api/handlers/broker-signals.js +2 -0
- package/dist/daemon/api/handlers/canvas.d.ts +7 -0
- package/dist/daemon/api/handlers/canvas.js +6 -0
- package/dist/daemon/api/handlers/chat-inventory.d.ts +2 -0
- package/dist/daemon/api/handlers/chat-inventory.js +1 -0
- package/dist/daemon/api/handlers/crons.d.ts +2 -0
- package/dist/daemon/api/handlers/crons.js +1 -0
- package/dist/daemon/api/handlers/custom-objects.d.ts +10 -0
- package/dist/daemon/api/handlers/custom-objects.js +3 -0
- package/dist/daemon/api/handlers/daemon.d.ts +2 -0
- package/dist/daemon/api/handlers/daemon.js +1 -0
- package/dist/daemon/api/handlers/delivery-retry.d.ts +2 -0
- package/dist/daemon/api/handlers/delivery-retry.js +1 -0
- package/dist/daemon/api/handlers/delivery.d.ts +2 -0
- package/dist/daemon/api/handlers/delivery.js +1 -0
- package/dist/daemon/api/handlers/docs.d.ts +2 -0
- package/dist/daemon/api/handlers/docs.js +1 -0
- package/dist/daemon/api/handlers/feedback-comments.d.ts +2 -0
- package/dist/daemon/api/handlers/feedback-comments.js +3 -0
- package/dist/daemon/api/handlers/files.d.ts +2 -0
- package/dist/daemon/api/handlers/files.js +1 -0
- package/dist/daemon/api/handlers/focus.d.ts +2 -0
- package/dist/daemon/api/handlers/focus.js +1 -0
- package/dist/daemon/api/handlers/health.d.ts +2 -0
- package/dist/daemon/api/handlers/health.js +14 -0
- package/dist/daemon/api/handlers/hook-exec.d.ts +2 -0
- package/dist/daemon/api/handlers/hook-exec.js +1 -0
- package/dist/daemon/api/handlers/human-requests.d.ts +2 -0
- package/dist/daemon/api/handlers/human-requests.js +1 -0
- package/dist/daemon/api/handlers/human.d.ts +2 -0
- package/dist/daemon/api/handlers/human.js +1 -0
- package/dist/daemon/api/handlers/inbox-page.d.ts +4 -0
- package/dist/daemon/api/handlers/inbox-page.js +1 -0
- package/dist/daemon/api/handlers/inbox.d.ts +12 -0
- package/dist/daemon/api/handlers/inbox.js +1 -0
- package/dist/daemon/api/handlers/limits.d.ts +2 -0
- package/dist/daemon/api/handlers/limits.js +1 -0
- package/dist/daemon/api/handlers/llm.d.ts +2 -0
- package/dist/daemon/api/handlers/llm.js +3 -0
- package/dist/daemon/api/handlers/memory-reads.d.ts +4 -0
- package/dist/daemon/api/handlers/memory-reads.js +1 -0
- package/dist/daemon/api/handlers/memory.d.ts +38 -0
- package/dist/daemon/api/handlers/memory.js +8 -0
- package/dist/daemon/api/handlers/messages.d.ts +4 -0
- package/dist/daemon/api/handlers/messages.js +2 -0
- package/dist/daemon/api/handlers/model-config.d.ts +2 -0
- package/dist/daemon/api/handlers/model-config.js +1 -0
- package/dist/daemon/api/handlers/modelauth.d.ts +5 -0
- package/dist/daemon/api/handlers/modelauth.js +1 -0
- package/dist/daemon/api/handlers/node-events.d.ts +44 -0
- package/dist/daemon/api/handlers/node-events.js +6 -0
- package/dist/daemon/api/handlers/node-outcomes.d.ts +2 -0
- package/dist/daemon/api/handlers/node-outcomes.js +1 -0
- package/dist/daemon/api/handlers/node-records.d.ts +2 -0
- package/dist/daemon/api/handlers/node-records.js +3 -0
- package/dist/daemon/api/handlers/nodes.d.ts +17 -0
- package/dist/daemon/api/handlers/nodes.js +1 -0
- package/dist/daemon/api/handlers/objects.d.ts +2 -0
- package/dist/daemon/api/handlers/objects.js +2 -0
- package/dist/daemon/api/handlers/package-docs.d.ts +2 -0
- package/dist/daemon/api/handlers/package-docs.js +1 -0
- package/dist/daemon/api/handlers/profiles.d.ts +11 -0
- package/dist/daemon/api/handlers/profiles.js +1 -0
- package/dist/daemon/api/handlers/prospective-chat-inventory.d.ts +2 -0
- package/dist/daemon/api/handlers/prospective-chat-inventory.js +1 -0
- package/dist/daemon/api/handlers/providers.d.ts +70 -0
- package/dist/daemon/api/handlers/providers.js +1 -0
- package/dist/daemon/api/handlers/questions.d.ts +7 -0
- package/dist/daemon/api/handlers/questions.js +1 -0
- package/dist/daemon/api/handlers/reports.d.ts +6 -0
- package/dist/daemon/api/handlers/reports.js +18 -0
- package/dist/daemon/api/handlers/review-comments.d.ts +2 -0
- package/dist/daemon/api/handlers/review-comments.js +1 -0
- package/dist/daemon/api/handlers/reviews.d.ts +5 -0
- package/dist/daemon/api/handlers/reviews.js +1 -0
- package/dist/daemon/api/handlers/run-routes.d.ts +2 -0
- package/dist/daemon/api/handlers/run-routes.js +1 -0
- package/dist/daemon/api/handlers/runs.d.ts +9 -0
- package/dist/daemon/api/handlers/runs.js +1 -0
- package/dist/daemon/api/handlers/structured-requests.d.ts +2 -0
- package/dist/daemon/api/handlers/structured-requests.js +1 -0
- package/dist/daemon/api/handlers/subscriptions.d.ts +2 -0
- package/dist/daemon/api/handlers/subscriptions.js +1 -0
- package/dist/daemon/api/handlers/telemetry-record.d.ts +4 -0
- package/dist/daemon/api/handlers/telemetry-record.js +1 -0
- package/dist/daemon/api/handlers/transfer.d.ts +15 -0
- package/dist/daemon/api/handlers/transfer.js +1 -0
- package/dist/daemon/api/handlers/validate.d.ts +23 -0
- package/dist/daemon/api/handlers/validate.js +1 -0
- package/dist/daemon/api/handlers/vendor-status.d.ts +8 -0
- package/dist/daemon/api/handlers/vendor-status.js +1 -0
- package/dist/daemon/api/handlers/worktree.d.ts +2 -0
- package/dist/daemon/api/handlers/worktree.js +1 -0
- package/dist/daemon/api/long-poll-wait.d.ts +3 -0
- package/dist/daemon/api/long-poll-wait.js +1 -0
- package/dist/daemon/api/map.d.ts +167 -0
- package/dist/daemon/api/map.js +2 -0
- package/dist/daemon/api/operations.d.ts +18 -0
- package/dist/daemon/api/operations.js +1 -0
- package/dist/daemon/api/principal.d.ts +71 -0
- package/dist/daemon/api/principal.js +1 -0
- package/dist/daemon/api/reader.d.ts +17 -0
- package/dist/daemon/api/reader.js +1 -0
- package/dist/daemon/api/router.d.ts +123 -0
- package/dist/daemon/api/router.js +1 -0
- package/dist/daemon/api/server.d.ts +28 -0
- package/dist/daemon/api/server.js +1 -0
- package/dist/daemon/api/vendor-signin.d.ts +7 -0
- package/dist/daemon/api/vendor-signin.js +77 -0
- package/dist/daemon/api/viewer-presence.d.ts +3 -0
- package/dist/daemon/api/viewer-presence.js +1 -0
- package/dist/daemon/boot-migrations.d.ts +14 -0
- package/dist/daemon/boot-migrations.js +1 -0
- package/dist/daemon/broker-signals/bus.d.ts +30 -0
- package/dist/daemon/broker-signals/bus.js +10 -0
- package/dist/daemon/companion-retire.d.ts +4 -0
- package/dist/daemon/companion-retire.js +1 -0
- package/dist/daemon/control.d.ts +40 -0
- package/dist/daemon/control.js +1 -0
- package/dist/daemon/cron/armed-context.d.ts +25 -0
- package/dist/daemon/cron/armed-context.js +1 -0
- package/dist/daemon/cron/capture.d.ts +22 -0
- package/dist/daemon/cron/capture.js +2 -0
- package/dist/daemon/cron/disposition.d.ts +21 -0
- package/dist/daemon/cron/disposition.js +1 -0
- package/dist/daemon/cron/escalation.d.ts +12 -0
- package/dist/daemon/cron/escalation.js +3 -0
- package/dist/daemon/cron/held.d.ts +4 -0
- package/dist/daemon/cron/held.js +1 -0
- package/dist/daemon/cron/lease-recovery.d.ts +3 -0
- package/dist/daemon/cron/lease-recovery.js +1 -0
- package/dist/daemon/cron/live-runs.d.ts +11 -0
- package/dist/daemon/cron/live-runs.js +1 -0
- package/dist/daemon/cron/passes.d.ts +6 -0
- package/dist/daemon/cron/passes.js +1 -0
- package/dist/daemon/cron/settle.d.ts +28 -0
- package/dist/daemon/cron/settle.js +1 -0
- package/dist/daemon/cron/sinks.d.ts +19 -0
- package/dist/daemon/cron/sinks.js +2 -0
- package/dist/daemon/cron-run.d.ts +31 -0
- package/dist/daemon/cron-run.js +1 -0
- package/dist/daemon/crtrd-cli.d.ts +1 -0
- package/dist/daemon/crtrd-cli.js +1 -0
- package/dist/daemon/crtrd.d.ts +28 -0
- package/dist/daemon/crtrd.js +12 -0
- package/dist/daemon/delivery/run-delivery.d.ts +34 -0
- package/dist/daemon/delivery/run-delivery.js +1 -0
- package/dist/daemon/due-sources.d.ts +15 -0
- package/dist/daemon/due-sources.js +1 -0
- package/dist/daemon/due.d.ts +14 -0
- package/dist/daemon/due.js +11 -0
- package/dist/daemon/fleet.d.ts +79 -0
- package/dist/daemon/fleet.js +19 -0
- package/dist/daemon/http-dispatcher.d.ts +1 -0
- package/dist/daemon/http-dispatcher.js +1 -0
- package/dist/daemon/human/finish.d.ts +24 -0
- package/dist/daemon/human/finish.js +10 -0
- package/dist/daemon/human/settle.d.ts +44 -0
- package/dist/daemon/human/settle.js +1 -0
- package/dist/daemon/human/sweep.d.ts +21 -0
- package/dist/daemon/human/sweep.js +1 -0
- package/dist/daemon/joined-owner.d.ts +5 -0
- package/dist/daemon/joined-owner.js +1 -0
- package/dist/daemon/launcher-events.d.ts +2 -0
- package/dist/daemon/launcher-events.js +1 -0
- package/dist/daemon/manage.d.ts +176 -0
- package/dist/daemon/manage.js +2 -0
- package/dist/daemon/messaging/node-message.d.ts +27 -0
- package/dist/daemon/messaging/node-message.js +1 -0
- package/dist/daemon/park-activity.d.ts +9 -0
- package/dist/daemon/park-activity.js +1 -0
- package/dist/daemon/park-pending.d.ts +18 -0
- package/dist/daemon/park-pending.js +1 -0
- package/dist/daemon/pidfile.d.ts +8 -0
- package/dist/daemon/pidfile.js +1 -0
- package/dist/daemon/profile-delete.d.ts +7 -0
- package/dist/daemon/profile-delete.js +1 -0
- package/dist/daemon/reconcilers/action-lane.d.ts +8 -0
- package/dist/daemon/reconcilers/action-lane.js +1 -0
- package/dist/daemon/reconcilers/bash-deadline.d.ts +27 -0
- package/dist/daemon/reconcilers/bash-deadline.js +2 -0
- package/dist/daemon/reconcilers/broker-supervision.d.ts +88 -0
- package/dist/daemon/reconcilers/broker-supervision.js +4 -0
- package/dist/daemon/reconcilers/controller-death.d.ts +7 -0
- package/dist/daemon/reconcilers/controller-death.js +1 -0
- package/dist/daemon/reconcilers/cron-lane.d.ts +7 -0
- package/dist/daemon/reconcilers/cron-lane.js +1 -0
- package/dist/daemon/reconcilers/delivery-lane.d.ts +9 -0
- package/dist/daemon/reconcilers/delivery-lane.js +8 -0
- package/dist/daemon/reconcilers/fault-retry-backstop.d.ts +41 -0
- package/dist/daemon/reconcilers/fault-retry-backstop.js +1 -0
- package/dist/daemon/reconcilers/grove-instance-sweep.d.ts +36 -0
- package/dist/daemon/reconcilers/grove-instance-sweep.js +1 -0
- package/dist/daemon/reconcilers/live-obligation.d.ts +65 -0
- package/dist/daemon/reconcilers/live-obligation.js +1 -0
- package/dist/daemon/reconcilers/managed-worktree-sweep.d.ts +24 -0
- package/dist/daemon/reconcilers/managed-worktree-sweep.js +1 -0
- package/dist/daemon/reconcilers/node-deadline.d.ts +7 -0
- package/dist/daemon/reconcilers/node-deadline.js +1 -0
- package/dist/daemon/reconcilers/node-lifecycle/freeze-lane.d.ts +48 -0
- package/dist/daemon/reconcilers/node-lifecycle/freeze-lane.js +1 -0
- package/dist/daemon/reconcilers/node-lifecycle/respawn-policy.d.ts +30 -0
- package/dist/daemon/reconcilers/node-lifecycle/respawn-policy.js +1 -0
- package/dist/daemon/reconcilers/node-lifecycle/terminating.d.ts +5 -0
- package/dist/daemon/reconcilers/node-lifecycle/terminating.js +1 -0
- package/dist/daemon/reconcilers/node-lifecycle/tick.d.ts +20 -0
- package/dist/daemon/reconcilers/node-lifecycle/tick.js +1 -0
- package/dist/daemon/reconcilers/node-lifecycle/wants-execution.d.ts +8 -0
- package/dist/daemon/reconcilers/node-lifecycle/wants-execution.js +1 -0
- package/dist/daemon/reconcilers/pending-review-submit.d.ts +7 -0
- package/dist/daemon/reconcilers/pending-review-submit.js +1 -0
- package/dist/daemon/reconcilers/storage-due-work.d.ts +32 -0
- package/dist/daemon/reconcilers/storage-due-work.js +1 -0
- package/dist/daemon/reconcilers/storage-maintenance.d.ts +69 -0
- package/dist/daemon/reconcilers/storage-maintenance.js +8 -0
- package/dist/daemon/reconcilers/structured-request-lane.d.ts +4 -0
- package/dist/daemon/reconcilers/structured-request-lane.js +1 -0
- package/dist/daemon/resume-detector.d.ts +12 -0
- package/dist/daemon/resume-detector.js +1 -0
- package/dist/daemon/review/comment-notify.d.ts +27 -0
- package/dist/daemon/review/comment-notify.js +2 -0
- package/dist/daemon/review/companion.d.ts +8 -0
- package/dist/daemon/review/companion.js +1 -0
- package/dist/daemon/review/deliver.d.ts +5 -0
- package/dist/daemon/review/deliver.js +3 -0
- package/dist/daemon/review/finish.d.ts +27 -0
- package/dist/daemon/review/finish.js +1 -0
- package/dist/daemon/review/sweep.d.ts +4 -0
- package/dist/daemon/review/sweep.js +1 -0
- package/dist/daemon/run-notices.d.ts +49 -0
- package/dist/daemon/run-notices.js +1 -0
- package/dist/daemon/runs/append-section.d.ts +6 -0
- package/dist/daemon/runs/append-section.js +2 -0
- package/dist/daemon/runs/observer.d.ts +14 -0
- package/dist/daemon/runs/observer.js +4 -0
- package/dist/daemon/startup-policy.d.ts +1 -0
- package/dist/daemon/startup-policy.js +1 -0
- package/dist/daemon/structured-requests/boot.d.ts +2 -0
- package/dist/daemon/structured-requests/boot.js +1 -0
- package/dist/daemon/structured-requests/effects.d.ts +4 -0
- package/dist/daemon/structured-requests/effects.js +1 -0
- package/dist/daemon/structured-requests/notifier.d.ts +2 -0
- package/dist/daemon/structured-requests/notifier.js +1 -0
- package/dist/daemon/structured-requests/sidecar.d.ts +3 -0
- package/dist/daemon/structured-requests/sidecar.js +1 -0
- package/dist/daemon/supervise-cadence.d.ts +1 -0
- package/dist/daemon/supervise-cadence.js +1 -0
- package/dist/hook-authoring.d.ts +130 -0
- package/dist/hook-authoring.js +5 -0
- package/dist/hook-process.d.ts +7 -0
- package/dist/hook-process.js +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +1 -0
- package/dist/launcher/bwrap.d.ts +13 -0
- package/dist/launcher/bwrap.js +2 -0
- package/dist/launcher/client.d.ts +4 -0
- package/dist/launcher/client.js +3 -0
- package/dist/launcher/limits/cgroup.d.ts +28 -0
- package/dist/launcher/limits/cgroup.js +2 -0
- package/dist/launcher/limits/log.d.ts +3 -0
- package/dist/launcher/limits/log.js +1 -0
- package/dist/launcher/limits/manager.d.ts +82 -0
- package/dist/launcher/limits/manager.js +1 -0
- package/dist/launcher/limits/policy.d.ts +98 -0
- package/dist/launcher/limits/policy.js +1 -0
- package/dist/launcher/limits/purge-worker.d.ts +8 -0
- package/dist/launcher/limits/purge-worker.js +2 -0
- package/dist/launcher/limits/quota.d.ts +48 -0
- package/dist/launcher/limits/quota.js +4 -0
- package/dist/launcher/limits/settings.d.ts +19 -0
- package/dist/launcher/limits/settings.js +2 -0
- package/dist/launcher/main.d.ts +1 -0
- package/dist/launcher/main.js +3 -0
- package/dist/launcher/netrule.d.ts +1 -0
- package/dist/launcher/netrule.js +1 -0
- package/dist/launcher/scope-directories.d.ts +4 -0
- package/dist/launcher/scope-directories.js +1 -0
- package/dist/launcher/seccomp.d.ts +1 -0
- package/dist/launcher/seccomp.js +1 -0
- package/dist/launcher/spec.d.ts +149 -0
- package/dist/launcher/spec.js +1 -0
- package/dist/launcher/users.d.ts +23 -0
- package/dist/launcher/users.js +7 -0
- package/dist/launcher/validate.d.ts +22 -0
- package/dist/launcher/validate.js +1 -0
- package/dist/migrations/004-canvas-documents/apply.d.ts +10 -0
- package/dist/migrations/004-canvas-documents/apply.js +1 -0
- package/dist/migrations/004-canvas-documents/fields.d.ts +24 -0
- package/dist/migrations/004-canvas-documents/fields.js +2 -0
- package/dist/migrations/004-canvas-documents/index.d.ts +16 -0
- package/dist/migrations/004-canvas-documents/index.js +2 -0
- package/dist/migrations/004-canvas-documents/legacy/discover.d.ts +16 -0
- package/dist/migrations/004-canvas-documents/legacy/discover.js +1 -0
- package/dist/migrations/004-canvas-documents/legacy/history.d.ts +5 -0
- package/dist/migrations/004-canvas-documents/legacy/history.js +2 -0
- package/dist/migrations/004-canvas-documents/legacy/nested.d.ts +7 -0
- package/dist/migrations/004-canvas-documents/legacy/nested.js +1 -0
- package/dist/migrations/004-canvas-documents/legacy/parse.d.ts +14 -0
- package/dist/migrations/004-canvas-documents/legacy/parse.js +1 -0
- package/dist/migrations/004-canvas-documents/legacy/types.d.ts +91 -0
- package/dist/migrations/004-canvas-documents/legacy/types.js +0 -0
- package/dist/migrations/004-canvas-documents/legacy-edges.d.ts +6 -0
- package/dist/migrations/004-canvas-documents/legacy-edges.js +18 -0
- package/dist/migrations/004-canvas-documents/plan.d.ts +102 -0
- package/dist/migrations/004-canvas-documents/plan.js +3 -0
- package/dist/migrations/004-canvas-documents/pointers.d.ts +23 -0
- package/dist/migrations/004-canvas-documents/pointers.js +4 -0
- package/dist/migrations/activation.d.ts +17 -0
- package/dist/migrations/activation.js +2 -0
- package/dist/native/linux/arm64/addon.node +0 -0
- package/dist/native/linux/x64/addon.node +0 -0
- package/dist/native/linux.d.ts +29 -0
- package/dist/native/linux.js +1 -0
- package/dist/pi-extensions/broker-local.d.ts +19 -0
- package/dist/pi-extensions/broker-local.js +2 -0
- package/dist/pi-extensions/canvas-bash-valve.d.ts +23 -0
- package/dist/pi-extensions/canvas-bash-valve.js +7 -0
- package/dist/pi-extensions/canvas-context-intro.d.ts +55 -0
- package/dist/pi-extensions/canvas-context-intro.js +2 -0
- package/dist/pi-extensions/canvas-doc-substrate.d.ts +51 -0
- package/dist/pi-extensions/canvas-doc-substrate.js +9 -0
- package/dist/pi-extensions/canvas-elapsed.d.ts +21 -0
- package/dist/pi-extensions/canvas-elapsed.js +2 -0
- package/dist/pi-extensions/canvas-goal-capture.d.ts +21 -0
- package/dist/pi-extensions/canvas-goal-capture.js +1 -0
- package/dist/pi-extensions/canvas-inbox-watcher.d.ts +26 -0
- package/dist/pi-extensions/canvas-inbox-watcher.js +2 -0
- package/dist/pi-extensions/canvas-passive-context.d.ts +38 -0
- package/dist/pi-extensions/canvas-passive-context.js +14 -0
- package/dist/pi-extensions/canvas-preview-result.d.ts +22 -0
- package/dist/pi-extensions/canvas-preview-result.js +4 -0
- package/dist/pi-extensions/canvas-prompt-scrub.d.ts +13 -0
- package/dist/pi-extensions/canvas-prompt-scrub.js +2 -0
- package/dist/pi-extensions/canvas-recap.d.ts +54 -0
- package/dist/pi-extensions/canvas-recap.js +11 -0
- package/dist/pi-extensions/canvas-review-boundary.d.ts +42 -0
- package/dist/pi-extensions/canvas-review-boundary.js +3 -0
- package/dist/pi-extensions/canvas-stamp.d.ts +14 -0
- package/dist/pi-extensions/canvas-stamp.js +2 -0
- package/dist/pi-extensions/canvas-stophook.d.ts +48 -0
- package/dist/pi-extensions/canvas-stophook.js +1 -0
- package/dist/pi-extensions/canvas-structured-output.d.ts +49 -0
- package/dist/pi-extensions/canvas-structured-output.js +19 -0
- package/dist/pi-extensions/canvas-tool-guide.d.ts +14 -0
- package/dist/pi-extensions/canvas-tool-guide.js +9 -0
- package/dist/pi-extensions/envelope-merge.d.ts +13 -0
- package/dist/pi-extensions/envelope-merge.js +8 -0
- package/dist/pi-extensions/system-prompt-entry.d.ts +15 -0
- package/dist/pi-extensions/system-prompt-entry.js +1 -0
- package/dist/prompts/review.d.ts +2 -0
- package/dist/prompts/review.js +110 -0
- package/dist/shared/crtr-version.d.ts +2 -0
- package/dist/shared/crtr-version.js +1 -0
- package/dist/shared/env.d.ts +116 -0
- package/dist/shared/env.js +2 -0
- package/dist/shared/generated-context.d.ts +83 -0
- package/dist/shared/generated-context.js +8 -0
- package/dist/shared/inbox-entry-body.d.ts +22 -0
- package/dist/shared/inbox-entry-body.js +10 -0
- package/dist/shared/inline-ref-grammar.d.ts +53 -0
- package/dist/shared/inline-ref-grammar.js +1 -0
- package/dist/shared/inline-ref-guidance.d.ts +8 -0
- package/dist/shared/inline-ref-guidance.js +2 -0
- package/dist/shared/predicates.d.ts +2 -0
- package/dist/shared/predicates.js +1 -0
- package/dist/shared/shell-quote.d.ts +3 -0
- package/dist/shared/shell-quote.js +1 -0
- package/dist/shared/strip-cd-prefix.d.ts +1 -0
- package/dist/shared/strip-cd-prefix.js +1 -0
- package/dist/shared/tool-groups.d.ts +26 -0
- package/dist/shared/tool-groups.js +1 -0
- package/dist/shared/working-activity.d.ts +9 -0
- package/dist/shared/working-activity.js +1 -0
- package/dist/suppress-experimental-warnings.d.ts +1 -0
- package/dist/suppress-experimental-warnings.js +1 -0
- package/dist/types.d.ts +562 -0
- package/dist/types.js +1 -0
- package/docs/cli/README.md +17 -0
- package/docs/cli/canvas-and-dashboard.md +56 -0
- package/docs/cli/documents-and-preferences.md +52 -0
- package/docs/cli/first-session.md +76 -0
- package/docs/cli/human-inbox.md +34 -0
- package/docs/cli/official-marketplace.md +75 -0
- package/docs/cli/the-viewer.md +80 -0
- package/docs/concepts/README.md +17 -0
- package/docs/concepts/documents.md +52 -0
- package/docs/concepts/lifecycle-and-wakes.md +26 -0
- package/docs/concepts/nodes-and-the-canvas.md +29 -0
- package/docs/concepts/profiles-kinds-and-modes.md +31 -0
- package/docs/concepts/scopes-and-trust.md +39 -0
- package/docs/concepts/why-a-daemon.md +29 -0
- package/docs/plugin/README.md +20 -0
- package/docs/plugin/bundles-and-memory.md +28 -0
- package/docs/plugin/commands.md +22 -0
- package/docs/plugin/deploying.md +34 -0
- package/docs/plugin/errors.md +39 -0
- package/docs/plugin/getting-started.md +23 -0
- package/docs/plugin/output.md +51 -0
- package/docs/plugin/parameters.md +29 -0
- package/docs/public-api.md +75 -0
- package/docs/release-local.md +8 -0
- package/docs/sdk/README.md +90 -0
- package/docs/sdk/bash.md +39 -0
- package/docs/sdk/client.md +297 -0
- package/docs/sdk/docker.md +68 -0
- package/docs/sdk/error-envelope.md +36 -0
- package/docs/sdk/errors.md +111 -0
- package/docs/sdk/files.md +49 -0
- package/docs/sdk/getting-started.md +224 -0
- package/docs/sdk/guides/README.md +19 -0
- package/docs/sdk/guides/apps-on-crouter-cloud.md +115 -0
- package/docs/sdk/guides/apps-with-many-users.md +59 -0
- package/docs/sdk/guides/event-driven-assistant.md +24 -0
- package/docs/sdk/guides/fan-out-pipeline.md +24 -0
- package/docs/sdk/guides/human-approval.md +24 -0
- package/docs/sdk/guides/typed-extraction.md +24 -0
- package/docs/sdk/memory.md +47 -0
- package/docs/sdk/nodes.md +194 -0
- package/docs/sdk/release-notes.md +207 -0
- package/docs/sdk/resources.md +99 -0
- package/docs/sdk/streaming.md +216 -0
- package/docs/sdk/testing.md +163 -0
- package/package.json +158 -4
- package/packages/crouter-identity/dist/index.d.ts +107 -0
- package/packages/crouter-identity/dist/index.js +226 -0
- package/packages/crouter-identity/package.json +33 -0
- package/runtime.lock.json +13864 -0
- package/scripts/build-native-linux.mjs +35 -0
- package/scripts/ensure-native-linux.mjs +72 -0
- package/scripts/install-runtime.mjs +614 -0
- package/scripts/lib/isolation-env.mjs +48 -0
- package/scripts/lib/pack-args.mjs +19 -0
- package/scripts/lib/runtime-deps-key.mjs +50 -0
- package/scripts/lib/update-target.mjs +78 -0
- package/scripts/pack-minify.mjs +114 -0
- package/scripts/patch-pi-tree-root-ordering.mjs +57 -0
- package/scripts/postinstall.mjs +55 -0
- package/scripts/runtime-lock.mjs +26 -0
- package/scripts/runtime-smoke.mjs +54 -0
- package/scripts/self-update.mjs +45 -0
- package/src/native/linux/addon.c +255 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { AgentSessionServices, ModelRegistry } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import { type AssistantMessage } from '@earendil-works/pi-ai';
|
|
3
|
+
import { classify } from '../../fault-classifier.js';
|
|
4
|
+
import type { Fault } from '../../fault-classifier.js';
|
|
5
|
+
import type { RecoveryFaultDTO } from '../../../api/dto/recovery.js';
|
|
6
|
+
import type { BrokerSdkConfig } from '../launch.js';
|
|
7
|
+
import type { BrokerToClient } from '../broker-protocol.js';
|
|
8
|
+
import type { BrokerSession } from './read-ops.js';
|
|
9
|
+
import type { SubscriptionGeneration } from './rebind.js';
|
|
10
|
+
import type { TurnAdmissionGate } from './turn-admission.js';
|
|
11
|
+
import type { RunTurnEnds } from './run-turn-end.js';
|
|
12
|
+
/** How long a run node's turn may stay open on in-episode provider retries,
|
|
13
|
+
* measured from the episode's first failure. An app waits on the turn's
|
|
14
|
+
* `node.turn.completed`; a retry that would fire past this completes the turn
|
|
15
|
+
* with its error instead, and the app's next message retries. */
|
|
16
|
+
export declare const RUN_TURN_RETRY_WINDOW_MS = 30000;
|
|
17
|
+
/** Whether a retry that fires `delayMs` from `now` lands outside a run turn's
|
|
18
|
+
* retry window opened at `since`. An unparsable `since` counts as expired. */
|
|
19
|
+
export declare function runTurnRetryExpired(since: string, delayMs: number, now: number): boolean;
|
|
20
|
+
/** The recovery card body for one retry. Only a non-run node probes the
|
|
21
|
+
* network before a connection retry, so only it may say the network is back. */
|
|
22
|
+
export declare function retryCardBody(kind: RecoveryFaultDTO['kind'], isRun: boolean): string;
|
|
23
|
+
type FaultRetryDeps = {
|
|
24
|
+
nodeId: string;
|
|
25
|
+
cfg: BrokerSdkConfig;
|
|
26
|
+
retryProbe: () => Promise<boolean>;
|
|
27
|
+
currentSession: () => BrokerSession;
|
|
28
|
+
currentServices: () => AgentSessionServices;
|
|
29
|
+
installedGeneration: () => SubscriptionGeneration | undefined;
|
|
30
|
+
registryOf: (services: AgentSessionServices) => ModelRegistry;
|
|
31
|
+
formatModelSpec: (model: BrokerSession['model'], thinkingLevel?: string) => string | null;
|
|
32
|
+
broadcastModelChanged: (persist?: boolean) => Promise<void>;
|
|
33
|
+
turnAdmission: TurnAdmissionGate;
|
|
34
|
+
/** Re-snapshot every attached viewer; an in-place rewind emits no relayed event. */
|
|
35
|
+
reWelcomeAll: () => void;
|
|
36
|
+
/** A run node's held-back turn ends: a recovery turn takes one over, and a retry that will not run releases it. */
|
|
37
|
+
turnEnds?: RunTurnEnds;
|
|
38
|
+
};
|
|
39
|
+
/** The kind and retry disposition of a turn that settled on a provider error.
|
|
40
|
+
* A final daemon refusal (the model adapter's refusal diagnostic) is fatal
|
|
41
|
+
* whatever its text says; every other error follows the classifier. */
|
|
42
|
+
export declare function settledProviderFault(last: AssistantMessage): {
|
|
43
|
+
classified: ReturnType<typeof classify>;
|
|
44
|
+
disposition: ReturnType<typeof classify>['disposition'];
|
|
45
|
+
};
|
|
46
|
+
/** Whether the daemon's fault retry will re-drive a turn that settled on this
|
|
47
|
+
* assistant message: a provider error (not an abort or a safety refusal) whose
|
|
48
|
+
* classified kind the daemon retries on its own. The same test
|
|
49
|
+
* `publishSettledProviderFault` applies before it records an `auto` fault. */
|
|
50
|
+
export declare function willDaemonRetry(last: AssistantMessage, contextWindow: number | undefined): boolean;
|
|
51
|
+
/** Inside a provider-retry episode, this 400 says the rewound request was
|
|
52
|
+
* malformed, not that the node is broken: the next attempt rebuilds the request
|
|
53
|
+
* from the anchor, so keep the ladder running instead of parking the node. */
|
|
54
|
+
export declare function isPrefillRejectionDuringEpisode(message: string, inEpisode: boolean): boolean;
|
|
55
|
+
/** Owns provider fallback and daemon-driven fault retry state for one broker session. */
|
|
56
|
+
export declare class FaultRetry {
|
|
57
|
+
private readonly deps;
|
|
58
|
+
private timer;
|
|
59
|
+
private readonly failedRetryRoutes;
|
|
60
|
+
private readonly notFoundModels;
|
|
61
|
+
private providerFallbackInFlight;
|
|
62
|
+
private notFoundFallbackInFlight;
|
|
63
|
+
private stagedCapacityFailure;
|
|
64
|
+
private personaGateFailed;
|
|
65
|
+
constructor(deps: FaultRetryDeps);
|
|
66
|
+
clearTimer(): void;
|
|
67
|
+
reset(): void;
|
|
68
|
+
/** No recovery turn will follow the settled turn: a run node writes its held-back turn end now. */
|
|
69
|
+
abandonTurnEnd(): void;
|
|
70
|
+
/** A failed daemon-backed persona gate is local evidence, not a provider fault. */
|
|
71
|
+
notePersonaGateFailure(): void;
|
|
72
|
+
private state;
|
|
73
|
+
private recordFault;
|
|
74
|
+
private clearFault;
|
|
75
|
+
private sessionId;
|
|
76
|
+
private clearEpisode;
|
|
77
|
+
onEvent(event: BrokerToClient): void;
|
|
78
|
+
isActiveAutoFault(fault: RecoveryFaultDTO | null): fault is RecoveryFaultDTO;
|
|
79
|
+
isActiveAutoFault(fault: Fault | null): fault is Fault;
|
|
80
|
+
publishSettledProviderFault(generation: SubscriptionGeneration): Promise<void>;
|
|
81
|
+
/** Startup re-drive reads the durable episode surviving from the process this
|
|
82
|
+
* replaces. Revive deliberately clears the ordinary fault marker before this
|
|
83
|
+
* boundary, so the episode is the recovery authority. A `pending` episode
|
|
84
|
+
* re-arms unconditionally, exactly as before. An `admitted` episode re-arms
|
|
85
|
+
* too, but only under a no-progress proof: reopened to `pending` when the
|
|
86
|
+
* branch segment from its anchor to the current leaf carries no assistant
|
|
87
|
+
* content and no tool activity — the dead attempt did nothing that rolling
|
|
88
|
+
* back would destroy. An anchor absent from the loaded branch cannot happen
|
|
89
|
+
* in production (session-file identity and the new-cycle guard already rule
|
|
90
|
+
* it out below), so it is treated the same as "no progress" rather than
|
|
91
|
+
* blocking the ladder. Returns 'retry-armed' when the timer now owns the
|
|
92
|
+
* first turn, 'none' when the caller's default kickoff should proceed. */
|
|
93
|
+
recoverOnStartup(): Promise<'retry-armed' | 'none'>;
|
|
94
|
+
/** True iff the branch segment strictly after `anchorEntryId` (root→leaf,
|
|
95
|
+
* anchor exclusive) contains an assistant message with non-empty content or
|
|
96
|
+
* a tool result — the two shapes a runtime card and a `content: []`
|
|
97
|
+
* error-settled assistant message are not. An anchor missing from the loaded
|
|
98
|
+
* branch cannot be distinguished from "no progress" here; callers treat it
|
|
99
|
+
* as no progress rather than as a positive finding. */
|
|
100
|
+
private hasProgressPastAnchor;
|
|
101
|
+
schedule(): Promise<void>;
|
|
102
|
+
/** A run node's retry would land past its turn's retry window: complete the
|
|
103
|
+
* turn with its error now and end the episode, so no recovery turn answers a
|
|
104
|
+
* turn the app already saw complete. The app's next message is a fresh turn
|
|
105
|
+
* (the wire history drops the errored assistant), which is the retry. */
|
|
106
|
+
private endRunTurnOnFault;
|
|
107
|
+
/** The daemon backstop's nudge and a signal-stream resync: re-arm the retry
|
|
108
|
+
* timer when the durable state says one is owed and none is armed (the
|
|
109
|
+
* timer died, or its loop ended on a guard branch). Inert unless a `pending`
|
|
110
|
+
* episode on this session carries an active automatic fault, so a nudge
|
|
111
|
+
* never touches a held turn end or an admitted attempt. `schedule()` is the
|
|
112
|
+
* only decider; admission stays fenced by the episode `admit` op. */
|
|
113
|
+
rearmIfStranded(): Promise<void>;
|
|
114
|
+
private maybeSwitchProviderForRetry;
|
|
115
|
+
private maybeFallbackOnUnusableModel;
|
|
116
|
+
private nextEligibleFallbackRoute;
|
|
117
|
+
private targetCannotFitContext;
|
|
118
|
+
private stageCapacityFailure;
|
|
119
|
+
private recordPendingProviderFault;
|
|
120
|
+
private pendingEpisodeMatches;
|
|
121
|
+
private faultRetryDelayMs;
|
|
122
|
+
private clearAndArmFaultRetry;
|
|
123
|
+
/** One retry attempt. Every outcome but a re-armed timer or a prompted recovery turn means no recovery will answer the settled turn. */
|
|
124
|
+
private runFaultRetry;
|
|
125
|
+
private attemptFaultRetry;
|
|
126
|
+
}
|
|
127
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var ie=Object.defineProperty;var y=(r,e)=>ie(r,"name",{value:e,configurable:!0});import{envModelIntent as G,envNodeCwd as $,envProfileId as L}from"../../../shared/env.js";import{isContextOverflow as D}from"@earendil-works/pi-ai";import{classify as N}from"../../fault-classifier.js";import{isModelNotFoundError as ne,isProviderUnconfiguredError as re}from"../fault.js";import{brokerRecovery as se,mutateBrokerFault as U,mutateBrokerProviderRetry as b}from"./daemon-ops.js";import{extractCoolingDeadline as oe}from"../managed-provider-cooling.js";import{extractProviderFailureDetails as ae}from"../../provider-failure.js";import{expandModelCandidates as B,modelRequestFromConfig as Y,probeRouteAvailability as de}from"../../model-routes.js";import{operationIdContext as W}from"../../events/operation-id.js";import{emitEvent as F}from"../../events/emit.js";import{CONNECTION_FAULT_RECOVERY_BODY as le,PROVIDER_FAULT_RECOVERY_BODY as ue,RUN_CONNECTION_FAULT_RETRY_BODY as ce,formatCard as q,formatModelFallbackRecovery as pe}from"../../../shared/generated-context.js";import{markFatalOnExhaust as V,nextFaultRetry as j,policyFor as J}from"../fault-recovery.js";import{parseModelSpec as X}from"../model-selection.js";import{endedByAbort as z}from"../session-cycles.js";import{resolveProviderCandidates as fe}from"../../subscription-state.js";import{announceMessageOrigin as H}from"../stamp/channel.js";import{LLM_REFUSAL_DIAGNOSTIC as he,refusalRetryAt as me}from"./model-adapter.js";import{isSafetyRefusal as K}from"../../llm/refusal.js";const ge=2147483647,Q=3e4;function ye(r,e,t){const i=Date.parse(r);return!Number.isFinite(i)||t+e-i>Q}y(ye,"runTurnRetryExpired");function ve(r,e){return r!=="connection"?ue:e?ce:le}y(ve,"retryCardBody");function w(r){return{link:r.link,op:r.op,kind:r.kind,retry:r.retry,message:r.message,since:r.since,operation_id:r.operation_id,...r.anchor_entry_id===void 0?{}:{anchorEntryId:r.anchor_entry_id},...r.provider_error===void 0?{}:{providerError:r.provider_error}}}y(w,"policyFault");function S(r){return{link:r.link,op:r.op,kind:r.kind,retry:r.retry,message:r.message,...r.operation_id===void 0?{}:{operation_id:r.operation_id},...r.since===void 0?{}:{since:r.since},...r.anchorEntryId===void 0?{}:{anchor_entry_id:r.anchorEntryId},...r.providerError===void 0?{}:{provider_error:r.providerError}}}y(S,"faultInput");function Z(r,e){const t=y(i=>`${i.providerId}/${i.modelId}`===e.modelSpec,"onLiveModel");return(r.find(i=>t(i)&&i.thinkingLevel===e.thinkingLevel)??r.find(t))?.rank}y(Z,"liveRouteRank");function ee(r){const e=N("pi\u2192provider",r),t=r.diagnostics?.some(i=>i.type===he)??!1;return{classified:e,disposition:t?"fatal":e.disposition}}y(ee,"settledProviderFault");function Ue(r,e){if(r.stopReason!=="error"||z(r)||K(r)||D(r,e))return!1;const{classified:t,disposition:i}=ee(r);return i==="auto"&&(t.kind==="connection"||t.kind==="rate-limit"||t.kind==="overloaded")}y(Ue,"willDaemonRetry");const Fe=/does not support assistant message prefill|conversation must end with a user message/i;function ke(r,e){return e&&Fe.test(r)}y(ke,"isPrefillRejectionDuringEpisode");class Be{static{y(this,"FaultRetry")}deps;timer=null;failedRetryRoutes=new Set;notFoundModels=new Set;providerFallbackInFlight=null;notFoundFallbackInFlight=null;stagedCapacityFailure=null;personaGateFailed=!1;constructor(e){this.deps=e}clearTimer(){this.timer!==null&&(clearTimeout(this.timer),this.timer=null)}reset(){this.clearTimer(),this.deps.turnEnds?.abandon(),this.providerFallbackInFlight=null,this.notFoundFallbackInFlight=null,this.stagedCapacityFailure=null,this.personaGateFailed=!1}abandonTurnEnd(){this.deps.turnEnds?.abandon()}notePersonaGateFailure(){this.personaGateFailed=!0}state(){return se(this.deps.nodeId)}async recordFault(e){return(await U(this.deps.nodeId,{op:"record",input:e})).fault}async clearFault(e,t=!1){await U(this.deps.nodeId,{op:"clear",...e===void 0?{}:{link:e},...t?{preserve_episode:!0}:{}})}sessionId(e){const t=e.sessionManager.getSessionId?.();return typeof t=="string"&&t!==""?t:null}async clearEpisode(e){const t=this.sessionId(e);t!==null&&await b(this.deps.nodeId,{op:"clear",session_id:t})}onEvent(e){this.maybeSwitchProviderForRetry(e),this.maybeFallbackOnUnusableModel(e)}isActiveAutoFault(e){return e===null||e.retry.disposition!=="auto"||e.retry.by!=="daemon"?!1:e.kind==="connection"||e.kind==="rate-limit"||e.kind==="overloaded"}async publishSettledProviderFault(e){const t=e.stagedProviderAgentEnd,i=e.stagedWatchdogAbort,n=e.stagedRefreshAbort,o=e.stagedOverflowFailure,a=this.stagedCapacityFailure?.generation===e?this.stagedCapacityFailure:null,c=this.personaGateFailed;this.stagedCapacityFailure=null,this.personaGateFailed=!1,e.stagedProviderAgentEnd=null,e.stagedWatchdogAbort=!1,e.stagedRefreshAbort=!1,e.stagedOverflowFailure=null;const s=e.session,l=await this.state(),p=l.fault,h=l.episode,f=this.sessionId(s),m=this.isActiveAutoFault(p)&&p.link==="pi\u2192provider"?p:h?.state==="admitted"&&h.session_id===f&&this.isActiveAutoFault(h.fault)?h.fault:null,d=m===null?null:{since:m.since,anchorEntryId:m.anchor_entry_id,attempt:m.retry.attempt},u=[...Array.isArray(t?.messages)?t.messages:[]].reverse().find(R=>typeof R=="object"&&R!==null&&R.role==="assistant");if(c){await this.clearEpisode(s);return}if(a!==null||o!==null){await this.clearFault("pi\u2192provider"),await this.clearEpisode(s),await this.recordFault({link:"pi\u2192provider",op:"context overflow recovery",kind:"context-overflow",retry:{disposition:"fatal"},message:a?.errorMessage??o.errorMessage,anchor_entry_id:s.sessionManager.getLeafId?.()??void 0});return}if(i&&u?.stopReason==="aborted"){await this.recordPendingProviderFault(s,{link:"pi\u2192provider",op:"generation turn",kind:"connection",retry:{disposition:"auto",by:"daemon",...d?.attempt!==void 0?{attempt:d.attempt}:{}},message:typeof u.errorMessage=="string"?u.errorMessage:"engine error (no errorMessage recorded)",...d!==null?{since:d.since}:{},anchor_entry_id:d?.anchorEntryId??s.sessionManager.getLeafId?.()??void 0});return}if(u?.stopReason!=="error"){u!==void 0&&await this.clearEpisode(s);return}if(n){await this.clearEpisode(s);return}if(K(u)){await this.clearEpisode(s);return}const k=typeof u.errorMessage=="string"?u.errorMessage:"engine error (no errorMessage recorded)";if(z({stopReason:"error",errorMessage:k})){await this.clearEpisode(s);return}const v=D(u,s.model?.contextWindow),I=ee(u),A=d!==null&&I.disposition!=="auto"&&ke(k,!0),te=A?{kind:"connection",disposition:"auto"}:I.classified,E=A?"auto":I.disposition,M=oe(u),x=me(u),C=ae(u),T=typeof u.provider=="string"&&u.provider!==""?u.provider:s.model?.provider,O=typeof u.model=="string"&&u.model!==""?u.model:s.model?.id,P=C===void 0||T===void 0||O===void 0?void 0:{provider:T,model:O,...C};v&&(await this.clearFault("pi\u2192provider"),await this.clearEpisode(s));const _={link:"pi\u2192provider",op:"generation turn",kind:v?"context-overflow":te.kind,retry:v?{disposition:"fatal"}:E==="auto"?{disposition:"auto",by:"daemon",...M!==void 0?{nextAt:new Date(M).toISOString()}:{},...d?.attempt!==void 0?{attempt:d.attempt}:{}}:{disposition:E,...x!==void 0?{nextAt:new Date(x).toISOString()}:{}},message:k,...!v&&E==="auto"&&d!==null?{since:d.since}:{},anchor_entry_id:!v&&E==="auto"&&d?.anchorEntryId!==void 0?d.anchorEntryId:s.sessionManager.getLeafId?.()??void 0,...P===void 0?{}:{provider_error:P}};_.retry.disposition==="auto"?await this.recordPendingProviderFault(s,_):(await this.clearEpisode(s),await this.clearFault("pi\u2192provider"),await this.recordFault(_))}async recoverOnStartup(){const e=this.deps.installedGeneration();if(e===void 0)return"none";const t=(await this.state()).episode,i=this.sessionId(e.session);if(this.deps.cfg.newCycle===!0)return t!==null&&i!==null&&t.session_id===i&&await b(this.deps.nodeId,{op:"invalidate",session_id:i}),"none";if(t===null||i===null||t.session_id!==i)return"none";if(t.state==="admitted")if(t.fault.anchor_entry_id!==void 0&&!this.hasProgressPastAnchor(e.session,t.fault.anchor_entry_id)){if(!(await b(this.deps.nodeId,{op:"reopen",session_id:i})).applied)return"none"}else return await this.clearEpisode(e.session),"none";else if(t.state!=="pending")return"none";return await this.recordFault(S(w(t.fault))),await this.schedule(),"retry-armed"}hasProgressPastAnchor(e,t){const i=e.sessionManager.getBranch(),n=i.findIndex(a=>a.id===t);return(n===-1?i:i.slice(n+1)).some(a=>{if(a.type!=="message")return!1;const{message:c}=a;return c.role==="toolResult"?!0:c.role==="assistant"&&Array.isArray(c.content)&&c.content.length>0})}async schedule(){const e=this.deps.installedGeneration(),t=this.deps.currentSession();if(t.isStreaming||this.timer!==null)return;if(e===void 0){this.abandonTurnEnd();return}const i=await this.state(),n=i.fault;if(!this.isActiveAutoFault(n)||this.sessionId(t)!==null&&!this.pendingEpisodeMatches(t,n,i)){this.clearTimer(),this.abandonTurnEnd();return}const o=Date.now(),a=this.faultRetryDelayMs(n,o);if(a!==null&&this.deps.turnEnds?.holding()===!0&&ye(n.since,a,o)){await this.endRunTurnOnFault(t,n,a);return}a!==null?this.clearAndArmFaultRetry(a,e):this.abandonTurnEnd()}async endRunTurnOnFault(e,t,i){this.clearTimer(),this.abandonTurnEnd(),F({level:"info",event:"broker.runtime.diagnostic",fields:{message:`run turn completed on provider fault: ${t.kind} retry in ${i}ms is past the ${Q}ms turn window (since ${t.since}, attempt ${t.retry.attempt??0})`}}),await this.clearEpisode(e),await this.clearFault("pi\u2192provider")}async rearmIfStranded(){if(this.timer!==null||this.deps.installedGeneration()===void 0)return;const e=this.deps.currentSession();if(e.isStreaming)return;const t=await this.state();!this.isActiveAutoFault(t.fault)||!this.pendingEpisodeMatches(e,t.fault,t)||await this.schedule()}maybeSwitchProviderForRetry(e){if(e.type!=="auto_retry_start")return;const t=N("pi\u2192provider",e.errorMessage??"").kind;if(t!=="rate-limit"&&t!=="connection"||this.providerFallbackInFlight!==null||this.deps.cfg.modelExact===!0)return;const i=this.deps.installedGeneration();if(i===void 0)return;const n=this.deps.currentSession(),o=this.deps.currentServices(),a=this.deps.formatModelSpec(n.model,n.thinkingLevel);if(a===null)return;const c=Y(this.deps.cfg.model,G(),!1);if(c===void 0)return;const s=B(c,$()??this.deps.cfg.cwd,L()),l=X(a),p=Z(s,l),h=p===void 0?{route:void 0,capacityExhausted:!1}:this.nextEligibleFallbackRoute(s.slice(p+1),this.deps.registryOf(o),n.getContextUsage()?.tokens,d=>!this.failedRetryRoutes.has(d.routeId));if(h.route===void 0){h.capacityExhausted&&(this.stageCapacityFailure(i,n),queueMicrotask(()=>{this.deps.installedGeneration()===i&&this.deps.currentSession()===n&&n.abortRetry()}));return}const f=h.route,m=(async()=>{const d=this.deps.registryOf(o).find(f.providerId,f.modelId);if(!d||(await n.setModel(d),this.deps.installedGeneration()!==i||this.deps.currentSession()!==n))return;const g=`${f.providerId}/${f.modelId}`===l.modelSpec?l.thinkingLevel:f.thinkingLevel;n.setThinkingLevel(g??"off"),this.failedRetryRoutes.add(f.routeId),await this.deps.broadcastModelChanged(!1)})().catch(d=>{F({level:"debug",event:"broker.runtime.diagnostic",fields:{message:`provider route fallback failed: ${d instanceof Error?d.message:String(d)}`}})}).finally(()=>{this.deps.installedGeneration()===i&&(this.providerFallbackInFlight=null)});this.providerFallbackInFlight=m}maybeFallbackOnUnusableModel(e){if(e.type!=="message_end"||e.message.role!=="assistant"||e.message.stopReason!=="error")return;const t=re(e.message.errorMessage??"");if(!t&&!ne(e.message.errorMessage??"")||this.deps.cfg.modelExact===!0||this.notFoundFallbackInFlight!==null)return;const i=this.deps.installedGeneration();if(i===void 0)return;const n=this.deps.currentSession(),o=this.deps.currentServices(),a=this.deps.formatModelSpec(n.model,n.thinkingLevel);if(a===null)return;const c=X(a);this.notFoundModels.add(c.modelSpec);const s=Y(this.deps.cfg.model,G(),!1),l=s?B(s,$()??this.deps.cfg.cwd,L()):[],p=Z(l,c),h=p===void 0?{route:void 0,capacityExhausted:!1}:this.nextEligibleFallbackRoute(l.slice(p+1),this.deps.registryOf(o),n.getContextUsage()?.tokens,g=>!this.notFoundModels.has(`${g.providerId}/${g.modelId}`));if(h.route===void 0){h.capacityExhausted&&this.stageCapacityFailure(i,n);return}const f=h.route,m=`${f.providerId}/${f.modelId}${f.thinkingLevel?`:${f.thinkingLevel}`:""}`,d=(async()=>{const g=this.deps.registryOf(o).find(f.providerId,f.modelId);if(g===void 0){F({level:"debug",event:"broker.runtime.diagnostic",fields:{message:`${t?"unconfigured-provider":"not_found"} fallback skipped: ${m} is not registered`}});return}if(await n.setModel(g),this.deps.installedGeneration()!==i||this.deps.currentSession()!==n)return;n.setThinkingLevel(f.thinkingLevel??"off"),await this.deps.broadcastModelChanged();const u=this.deps.formatModelSpec(n.model,n.thinkingLevel)??m;if(F({level:"debug",event:"broker.runtime.diagnostic",fields:{message:`${t?"unconfigured-provider":"not_found"} fallback: ${a} unavailable \u2192 ${u}; re-driving turn`}}),await n.agent.waitForIdle(),this.deps.installedGeneration()!==i||this.deps.currentSession()!==n)return;t&&await this.clearFault("pi\u2192provider");const k=q("recovery",{},pe(a,u,t?"credential":"not-found"));H(k,{type:"runtime",kind:"recovery"}),await this.deps.turnAdmission.admit(v=>W.fresh(()=>n.prompt(k,{preflightResult:v})))})().catch(g=>{F({level:"debug",event:"broker.runtime.diagnostic",fields:{message:`${t?"unconfigured-provider":"not_found"} fallback failed: ${g instanceof Error?g.message:String(g)}`}})}).finally(()=>{this.deps.installedGeneration()===i&&(this.notFoundFallbackInFlight=null)});this.notFoundFallbackInFlight=d}nextEligibleFallbackRoute(e,t,i,n){let o=0,a=0;for(const c of e){if(!n(c)||fe([{...c,...de(c,t),automaticFallback:!0}]).candidates.length===0)continue;const s=t.find(c.providerId,c.modelId);if(s!==void 0){if(o++,this.targetCannotFitContext(s.contextWindow,i)){a++;continue}return{route:c,capacityExhausted:!1}}}return{route:void 0,capacityExhausted:o>0&&o===a}}targetCannotFitContext(e,t){return Number.isFinite(e)&&Number.isFinite(t)&&e<t}stageCapacityFailure(e,t){const i=t.getContextUsage()?.tokens;this.stagedCapacityFailure={generation:e,errorMessage:Number.isFinite(i)?`All available fallback models have context windows smaller than the current conversation (${i} tokens).`:"All available fallback models have context windows smaller than the current conversation."}}async recordPendingProviderFault(e,t){const i=this.sessionId(e);if(i===null){await this.recordFault(t);return}await b(this.deps.nodeId,{op:"record-pending",session_id:i,input:t})}pendingEpisodeMatches(e,t,i){const n=this.sessionId(e),o=i.episode;return n!==null&&o!==null&&o.state==="pending"&&o.session_id===n&&o.fault.fault_id===t.fault_id}faultRetryDelayMs(e,t){if(e.retry.nextAt!==void 0){const i=Date.parse(e.retry.nextAt)-t;return Number.isFinite(i)?Math.max(0,i):null}return j(w(e),t)?.delayMs??null}clearAndArmFaultRetry(e,t){if(this.deps.installedGeneration()!==t)return;this.clearTimer();const i=Math.min(Math.max(0,e),ge),n=Math.max(0,e-i);this.timer=setTimeout(()=>{if(this.timer=null,this.deps.installedGeneration()===t){if(n>0){this.clearAndArmFaultRetry(n,t);return}this.runFaultRetry().catch(o=>{this.abandonTurnEnd(),F({level:"warn",event:"broker.runtime.diagnostic",fields:{message:`fault retry fire failed: ${o instanceof Error?o.message:String(o)}`}})})}},i),typeof this.timer.unref=="function"&&this.timer.unref()}async runFaultRetry(){await this.attemptFaultRetry()===void 0&&this.abandonTurnEnd()}async attemptFaultRetry(){const e=this.deps.installedGeneration();if(e===void 0)return;const t=e.session;if(t.isStreaming)return;const i=(await this.state()).fault;if(!this.isActiveAutoFault(i))return;let n=i;if(i.kind==="connection"&&this.deps.turnEnds===void 0){const l=await this.deps.retryProbe();if(this.deps.installedGeneration()!==e||this.deps.currentSession()!==t||t.isStreaming)return;const p=(await this.state()).fault;if(!this.isActiveAutoFault(p)||p.since!==i.since)return;if(!l)return this.clearAndArmFaultRetry(J(p.kind).baseDelayMs,e),"rearmed";n=p}const o=this.deps.turnEnds!==void 0,a=n.retry.attempt??0,c=J(n.kind);if(a>=c.max){await this.recordFault(S(V(w(n)))),await this.clearEpisode(t);return}const s=j(w(n),Date.now());if(s===null){await this.recordFault(S(V(w(n)))),await this.clearEpisode(t);return}if(n.anchor_entry_id!==void 0)try{if((t.sessionManager.getLeafId?.()??null)!==n.anchor_entry_id){const l=await t.navigateTree(n.anchor_entry_id);if(this.deps.installedGeneration()!==e||this.deps.currentSession()!==t)return;l.cancelled||this.deps.reWelcomeAll()}}catch(l){F({level:"debug",event:"broker.runtime.diagnostic",fields:{message:`fault retry rewind skipped: ${l instanceof Error?l.message:String(l)}`}})}if(!(this.deps.installedGeneration()!==e||this.deps.currentSession()!==t))return this.deps.turnAdmission.admit(async l=>{const p=(await this.state()).fault;if(this.deps.installedGeneration()!==e||this.deps.currentSession()!==t||t.isStreaming||!this.isActiveAutoFault(p)||p.since!==n.since){l();return}const h=this.sessionId(t);if(h===null){l();return}if(!(await b(this.deps.nodeId,{op:"admit",session_id:h,fault_id:p.fault_id,retry:s.fault.retry})).applied){l();return}const m=q("recovery",o?{attempt:s.attempt}:{attempt:s.attempt,max:s.max},ve(n.kind,o));H(m,{type:"runtime",kind:"recovery"}),this.deps.turnEnds?.beginRecovery();try{await W.fresh(()=>t.prompt(m,{preflightResult:l}))}finally{this.deps.turnEnds?.recoveryReturned()}return"prompted"})}}export{Be as FaultRetry,Q as RUN_TURN_RETRY_WINDOW_MS,ke as isPrefillRejectionDuringEpisode,ve as retryCardBody,ye as runTurnRetryExpired,ee as settledProviderFault,Ue as willDaemonRetry};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ClientToBroker } from '../broker-protocol.js';
|
|
2
|
+
import type { BrokerClient, BrokerClientRegistry } from './client-registry.js';
|
|
3
|
+
import type { EngineDriver } from './engine-drive.js';
|
|
4
|
+
import type { FrameReplies } from './frame-replies.js';
|
|
5
|
+
import type { BrokerSession } from './read-ops.js';
|
|
6
|
+
import type { TurnAcceptanceGate } from './turn-ignition.js';
|
|
7
|
+
/** An extension dialog fanned out to writable clients, awaiting the first answer. */
|
|
8
|
+
export type PendingDialog = {
|
|
9
|
+
resolve: (response: Extract<ClientToBroker, {
|
|
10
|
+
type: 'extension_ui_response';
|
|
11
|
+
}>) => void;
|
|
12
|
+
};
|
|
13
|
+
/** The frames about a client's own connection — admission, one-shot delivery,
|
|
14
|
+
* dialog answers, and the two ways a socket or the broker ends. */
|
|
15
|
+
export type ClientFrameHandlers = {
|
|
16
|
+
hello(client: BrokerClient, frame: Extract<ClientToBroker, {
|
|
17
|
+
type: 'hello';
|
|
18
|
+
}>): void;
|
|
19
|
+
deliver(client: BrokerClient, frame: Extract<ClientToBroker, {
|
|
20
|
+
type: 'deliver';
|
|
21
|
+
}>): void;
|
|
22
|
+
dialog(client: BrokerClient, frame: Extract<ClientToBroker, {
|
|
23
|
+
type: 'extension_ui_response';
|
|
24
|
+
}>): void;
|
|
25
|
+
bye(client: BrokerClient): void;
|
|
26
|
+
shutdown(): void;
|
|
27
|
+
};
|
|
28
|
+
export declare function createClientHandlers(deps: {
|
|
29
|
+
registry: BrokerClientRegistry;
|
|
30
|
+
replies: FrameReplies;
|
|
31
|
+
session: () => BrokerSession;
|
|
32
|
+
driveEngine: EngineDriver;
|
|
33
|
+
turnAcceptance: TurnAcceptanceGate;
|
|
34
|
+
pendingDialogs: Map<string, PendingDialog>;
|
|
35
|
+
sendWelcome: (client: BrokerClient) => void;
|
|
36
|
+
replayExtraPendingDialogsTo: (client: BrokerClient) => void;
|
|
37
|
+
disposeAndExit: (reason: string, status?: number) => void;
|
|
38
|
+
}): ClientFrameHandlers;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E=Object.defineProperty;var a=(s,d)=>E(s,"name",{value:d,configurable:!0});import{SITUATIONAL_CONTEXT_CUSTOM_TYPE as S}from"../../../shared/generated-context.js";import{emitEvent as g}from"../../events/emit.js";import{normalizeSnapshotTail as b}from"../broker-protocol.js";function O(s){const{registry:d,replies:f,session:p,driveEngine:h,turnAcceptance:l,pendingDialogs:T,sendWelcome:m,replayExtraPendingDialogsTo:y,disposeAndExit:A}=s,{notWritable:c,ackTo:u}=f;return{hello(e,r){const t=!e.helloed;e.id=r.client_id,e.snapshotTail=b(r.snapshot_tail),t&&(e.helloed=!0,e.role=r.role==="controller"?"controller":"observer",e.attends=r.attends!==!1),m(e),t&&d.persistAttachState(),e.role==="controller"&&y(e)},deliver(e,r){if(c(e,"drive the engine",r.id))return;const t=p().isStreaming?"steer":"prompt";for(const i of r.cards??[])p().sendCustomMessage({customType:S,content:i,display:!0},t==="steer"?{deliverAs:"steer"}:void 0).catch(_=>g({level:"error",event:"broker.deliver.card_failed",error:_}));let n=!1;const o=a(()=>{n||(n=!0,u(e,"deliver",!0,t,r.id))},"ackAccepted");t==="prompt"&&l.waitFor(o);const v=h(e,{type:"prompt",text:r.text,...r.images!==void 0?{images:r.images}:{},delivery:{...r.origin===void 0?{}:{origin:r.origin}}});if(t==="steer"||v===void 0){l.cancel(o),o();return}v.then(i=>{if(l.cancel(o),i===void 0){o();return}g({level:"error",event:"broker.prompt.deliver_failed",error:i}),!n&&(n=!0,u(e,"deliver",!1,String(i),r.id))})},dialog(e,r){c(e,"answer dialogs")||T.get(r.id)?.resolve(r)},bye(e){e.socket.end()},shutdown(){A("shutdown-frame")}}}a(O,"createClientHandlers");export{O as createClientHandlers};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { AgentSessionServices, ModelRegistry } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import type { ClientToBroker } from '../broker-protocol.js';
|
|
3
|
+
import type { BrokerClient, BrokerClientRegistry } from './client-registry.js';
|
|
4
|
+
import type { BrokerSession } from './read-ops.js';
|
|
5
|
+
import { type DriveFrame } from './engine-drive.js';
|
|
6
|
+
import { type PendingDialog } from './frame-client.js';
|
|
7
|
+
import type { TurnAdmissionGate } from './turn-admission.js';
|
|
8
|
+
import type { ToolGroupTracker } from './tool-groups.js';
|
|
9
|
+
import type { EventProjection } from './event-projection.js';
|
|
10
|
+
import type { RebindDriver } from './rebind.js';
|
|
11
|
+
import type { ModelIntent } from '../../../types.js';
|
|
12
|
+
export type FrameDispatchDeps = {
|
|
13
|
+
nodeId: string;
|
|
14
|
+
registry: BrokerClientRegistry;
|
|
15
|
+
toolGroups: ToolGroupTracker;
|
|
16
|
+
projection: EventProjection;
|
|
17
|
+
rebind: RebindDriver;
|
|
18
|
+
/** The bound review id whose boundary marker opens this companion's visible
|
|
19
|
+
* transcript; undefined for ordinary nodes. */
|
|
20
|
+
boundaryReviewId: string | undefined;
|
|
21
|
+
pendingDialogs: Map<string, PendingDialog>;
|
|
22
|
+
sendWelcome: (client: BrokerClient) => void;
|
|
23
|
+
replayExtraPendingDialogsTo: (client: BrokerClient) => void;
|
|
24
|
+
reWelcomeAll: () => void;
|
|
25
|
+
disposeAndExit: (reason: string, status?: number) => void;
|
|
26
|
+
persistModelChoice: (intent?: ModelIntent, userSelected?: boolean) => Promise<string | null>;
|
|
27
|
+
broadcastModelChanged: (persist?: boolean, intent?: ModelIntent, userSelected?: boolean) => Promise<void>;
|
|
28
|
+
registryOf: (services: AgentSessionServices) => ModelRegistry;
|
|
29
|
+
formatModelSpec: (model: BrokerSession['model'], thinkingLevel?: string) => string | null;
|
|
30
|
+
formatExactModelSpec: (model: BrokerSession['model'], thinkingLevel?: string) => string | null;
|
|
31
|
+
turnAdmission: TurnAdmissionGate;
|
|
32
|
+
runNode: boolean;
|
|
33
|
+
memoryInventory: import('./frame-memory-refs.js').ComposerNames;
|
|
34
|
+
/** The launch prompt was admitted; inbox turns held behind it may queue. */
|
|
35
|
+
onKickoffAdmitted?: () => void;
|
|
36
|
+
};
|
|
37
|
+
export type FrameDispatchContext = ReturnType<typeof createFrameDispatchContext>;
|
|
38
|
+
/** Owns frame-local input state while dispatching through explicit broker collaborators. */
|
|
39
|
+
export declare function createFrameDispatchContext(deps: FrameDispatchDeps): {
|
|
40
|
+
handlers: {
|
|
41
|
+
hello: (client: BrokerClient, frame: Extract<ClientToBroker, {
|
|
42
|
+
type: "hello";
|
|
43
|
+
}>) => void;
|
|
44
|
+
drive: (client: BrokerClient, frame: DriveFrame) => void;
|
|
45
|
+
deliver: (client: BrokerClient, frame: Extract<ClientToBroker, {
|
|
46
|
+
type: "deliver";
|
|
47
|
+
}>) => void;
|
|
48
|
+
dialog: (client: BrokerClient, frame: Extract<ClientToBroker, {
|
|
49
|
+
type: "extension_ui_response";
|
|
50
|
+
}>) => void;
|
|
51
|
+
engineControl: (client: BrokerClient, frame: import("./frame-engine-control.js").EngineControlFrame) => void;
|
|
52
|
+
read: (client: BrokerClient, frame: import("./frame-read.js").ReadFrame) => void;
|
|
53
|
+
session: (client: BrokerClient, frame: import("./frame-session.js").SessionFrame) => void;
|
|
54
|
+
authentication: (client: BrokerClient) => void;
|
|
55
|
+
bye: (client: BrokerClient) => void;
|
|
56
|
+
shutdown: () => void;
|
|
57
|
+
};
|
|
58
|
+
kickoff: (prompt: string, messageIds?: string[]) => void;
|
|
59
|
+
notifyTurnAccepted: () => void;
|
|
60
|
+
pendingPromptDispatches: () => number;
|
|
61
|
+
resetForSession: () => void;
|
|
62
|
+
};
|
|
63
|
+
/** The socket listener calls this explicit dispatcher for every decoded client frame. */
|
|
64
|
+
export declare function handleFrame(ctx: FrameDispatchContext, client: BrokerClient, frame: ClientToBroker): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var j=Object.defineProperty;var o=(r,e)=>j(r,"name",{value:e,configurable:!0});import{createFrameReplies as q}from"./frame-replies.js";import{createEngineDriver as N}from"./engine-drive.js";import{announceMessageOrigin as x}from"../stamp/channel.js";import{createClientHandlers as z}from"./frame-client.js";import{createMemoryRefGuidance as B}from"./frame-memory-refs.js";import{createEngineControlHandler as J}from"./frame-engine-control.js";import{createReadHandler as L}from"./frame-read.js";import{createSessionHandler as Q}from"./frame-session.js";import{createKickoffDriver as U,createPromptDispatchTracker as V,createTurnAcceptanceGate as X}from"./turn-ignition.js";import{prependRunDeferredMail as y}from"./run-deferred-mail.js";function ce(r){const{nodeId:e,registry:s,toolGroups:v,projection:k,rebind:d,boundaryReviewId:m,pendingDialogs:w,sendWelcome:D,replayExtraPendingDialogsTo:b,reWelcomeAll:A,disposeAndExit:C,persistModelChoice:F,broadcastModelChanged:M,registryOf:E,formatModelSpec:R,formatExactModelSpec:S,turnAdmission:u,runNode:h,memoryInventory:H,onKickoffAdmitted:T}=r,t=o(()=>d.session(),"currentSession"),P=o(()=>d.services(),"currentServices"),a=q(s),{notWritable:G}=a,l=B(t,e,H),p=V(t),_=X(),g=U({session:t,dispatches:p,turnAdmission:u,prependDeferred:h?n=>y(e,n):void 0,onAdmitted:T}),f=N({nodeId:e,registry:s,replies:a,session:t,dispatches:p,memoryRefs:l,rebind:d,projection:k,toolGroups:v,turnAdmission:u,prependDeferred:h?n=>y(e,n):void 0}),I=o((n,i)=>{G(n,"drive the engine")||((i.type==="prompt"||i.type==="steer"||i.type==="follow_up")&&x(i.text,{type:"human",channel:{type:"viewer"}}),f(n,i))},"handleDriveFrame"),c=z({registry:s,replies:a,session:t,driveEngine:f,turnAcceptance:_,pendingDialogs:w,sendWelcome:D,replayExtraPendingDialogsTo:b,disposeAndExit:C}),W=J({registry:s,replies:a,session:t,services:P,registryOf:E,persistModelChoice:F,broadcastModelChanged:o(async(...n)=>{await M(...n),g.drivePending()},"broadcastModelChanged"),formatModelSpec:R}),K=L({registry:s,replies:a,session:t,boundaryReviewId:m,memoryRefs:l,formatExactModelSpec:S}),O=Q({registry:s,replies:a,rebind:d,session:t,boundaryReviewId:m,memoryRefs:l,reWelcomeAll:A});return{handlers:{hello:c.hello,drive:I,deliver:c.deliver,dialog:c.dialog,engineControl:W,read:K,session:O,authentication:o(n=>{a.ackTo(n,"reload_auth")},"authentication"),bye:c.bye,shutdown:c.shutdown},kickoff:o((n,i)=>g.kickoff(n,i),"kickoff"),notifyTurnAccepted:_.notifyAccepted,pendingPromptDispatches:p.pending,resetForSession:o(()=>{},"resetForSession")}}o(ce,"createFrameDispatchContext");function de(r,e,s){switch(s.type){case"hello":r.handlers.hello(e,s);return;case"prompt":case"steer":case"follow_up":case"abort":case"bash":r.handlers.drive(e,s);return;case"deliver":r.handlers.deliver(e,s);return;case"extension_ui_response":r.handlers.dialog(e,s);return;case"set_model":case"deliver_custom_message":case"cycle_model":case"cycle_ladder":case"cycle_thinking":case"dequeue":case"set_thinking_level":case"set_auto_retry":case"set_auto_compaction":case"compact":case"set_session_name":r.handlers.engineControl(e,s);return;case"get_commands":case"list_models":case"list_scoped_models":case"list_memory_refs":case"get_tree":case"get_settings":case"list_sessions":case"get_human_fork_coordinates":r.handlers.read(e,s);return;case"navigate_tree":case"reload":case"export":case"new_session":case"switch_session":case"fork":case"clone":case"share":r.handlers.session(e,s);return;case"reload_auth":r.handlers.authentication(e);return;case"bye":r.handlers.bye(e);return;case"shutdown":r.handlers.shutdown();return}}o(de,"handleFrame");export{ce as createFrameDispatchContext,de as handleFrame};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AgentSessionServices, ModelRegistry } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import type { ClientToBroker } from '../broker-protocol.js';
|
|
3
|
+
import type { ModelIntent } from '../../../types.js';
|
|
4
|
+
import type { BrokerClient, BrokerClientRegistry } from './client-registry.js';
|
|
5
|
+
import type { FrameReplies } from './frame-replies.js';
|
|
6
|
+
import type { BrokerSession } from './read-ops.js';
|
|
7
|
+
/** The engine-command ops — every one of them a controller-gated mutation of
|
|
8
|
+
* the live engine's model, thinking level, queue, or session settings. */
|
|
9
|
+
export type EngineControlFrame = Extract<ClientToBroker, {
|
|
10
|
+
type: 'set_model' | 'deliver_custom_message' | 'cycle_model' | 'cycle_ladder' | 'cycle_thinking' | 'dequeue' | 'set_thinking_level' | 'set_auto_retry' | 'set_auto_compaction' | 'compact' | 'set_session_name';
|
|
11
|
+
}>;
|
|
12
|
+
export declare function createEngineControlHandler(deps: {
|
|
13
|
+
registry: BrokerClientRegistry;
|
|
14
|
+
replies: FrameReplies;
|
|
15
|
+
session: () => BrokerSession;
|
|
16
|
+
services: () => AgentSessionServices;
|
|
17
|
+
registryOf: (services: AgentSessionServices) => ModelRegistry;
|
|
18
|
+
persistModelChoice: (intent?: ModelIntent, userSelected?: boolean) => Promise<string | null>;
|
|
19
|
+
broadcastModelChanged: (persist?: boolean, intent?: ModelIntent, userSelected?: boolean) => Promise<void>;
|
|
20
|
+
formatModelSpec: (model: BrokerSession['model'], thinkingLevel?: string) => string | null;
|
|
21
|
+
}): (client: BrokerClient, frame: EngineControlFrame) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var $=Object.defineProperty;var r=(h,l)=>$(h,"name",{value:l,configurable:!0});import{configuredLadderProviders as H,explicitModelIntent as f,nextLadderModel as O,normalizeModel as U}from"../launch.js";import{isManagedProvider as W,readSubscriptionPool as j}from"../../subscription-state.js";import{parseModelSpec as v}from"../model-selection.js";import{envModelIntent as B}from"../../../shared/env.js";import{resolveModelQuery as M}from"./frame-model-query.js";function X(h){const{registry:l,replies:L,session:n,services:S,registryOf:T,persistModelChoice:b,broadcastModelChanged:m,formatModelSpec:w}=h,{notWritable:d,ackTo:i,engineErrorTo:s}=L,y=r(()=>T(S()),"modelRegistry"),_=r((e,t)=>l.sendFrame(e,{type:"error",code:"engine_error",message:t}),"noSuchModel"),k=r(()=>{const e=B();return b(e===void 0?void 0:f(e),!0)},"persistThinkingChoice"),A=r((e,t)=>{if(d(e,"set the model"))return;const o=v(t.model);let u,c;try{c=v(U(o.modelSpec)),u=M(y(),c.modelSpec)}catch(a){s(e)(a);return}if(u===void 0){_(e,`no model matching '${t.model}' in the registry`);return}n().setModel(u).then(async()=>{const a=o.thinkingLevel??c.thinkingLevel;a!==void 0&&n().setThinkingLevel(a),await m(!0,t.intent??f(t.model),!0),i(e,"set_model")}).catch(s(e))},"setModel"),C=r((e,t)=>{d(e,"deliver a custom message")||n().sendCustomMessage({customType:t.customType,content:t.content,display:!0,...t.details!==void 0?{details:t.details}:{}},...t.deliverAs!==void 0?[{deliverAs:t.deliverAs}]:[]).then(()=>i(e,"deliver_custom_message")).catch(s(e))},"deliverCustomMessage"),q=r((e,t)=>{d(e,"cycle the model")||n().cycleModel(t.direction).then(async()=>{await m(!0,void 0,!0),i(e,"cycle_model")}).catch(s(e))},"cycleModel"),E=r((e,t)=>{if(d(e,"cycle the model ladder"))return;const o=(()=>{try{const g=y();return H(p=>W(p)&&j(p).length>0||g.getProviderAuthStatus(p).configured)}catch{return}})(),u=w(n().model,n().thinkingLevel)??"",c=v(O(u,t.direction==="backward"?-1:1,o));let a;try{a=M(y(),c.modelSpec)}catch(g){s(e)(g);return}if(a===void 0){_(e,`ladder model '${c.modelSpec}' not in the registry`);return}n().setModel(a).then(async()=>{c.thinkingLevel!==void 0&&n().setThinkingLevel(c.thinkingLevel),await m(!0,void 0,!0),i(e,"cycle_ladder")}).catch(s(e))},"cycleLadder"),P=r(e=>{d(e,"cycle the thinking level")||(async()=>{n().cycleThinkingLevel(),await k(),i(e,"cycle_thinking")})().catch(s(e))},"cycleThinking"),x=r((e,t)=>{if(!d(e,"dequeue messages",t.id))try{const{steering:o,followUp:u}=n().clearQueue();l.sendFrame(e,{type:"data",id:t.id,kind:"dequeue",steering:o,followUp:u})}catch(o){s(e,t.id)(o)}},"dequeue"),R=r((e,t)=>{d(e,"set the thinking level")||(async()=>{n().setThinkingLevel(t.level),await k(),i(e,"set_thinking_level")})().catch(s(e))},"setThinkingLevel"),z=r((e,t)=>{if(!d(e,"set auto-retry"))try{if(t.enabled)throw new Error("The daemon model adapter owns retries for broker sessions; pi auto-retry cannot be enabled");n().setAutoRetryEnabled(!1),i(e,"set_auto_retry")}catch(o){s(e)(o)}},"setAutoRetry"),F=r((e,t)=>{if(!d(e,"set auto-compaction"))try{n().setAutoCompactionEnabled(t.enabled),i(e,"set_auto_compaction")}catch(o){s(e)(o)}},"setAutoCompaction"),N=r((e,t)=>{d(e,"compact the session")||n().compact(t.instructions).then(()=>i(e,"compact")).catch(s(e))},"compact"),Q=r((e,t)=>{if(!d(e,"rename the session"))try{n().setSessionName(t.name),i(e,"set_session_name")}catch(o){s(e)(o)}},"setSessionName");return(e,t)=>{switch(t.type){case"set_model":return A(e,t);case"deliver_custom_message":return C(e,t);case"cycle_model":return q(e,t);case"cycle_ladder":return E(e,t);case"cycle_thinking":return P(e);case"dequeue":return x(e,t);case"set_thinking_level":return R(e,t);case"set_auto_retry":return z(e,t);case"set_auto_compaction":return F(e,t);case"compact":return N(e,t);case"set_session_name":return Q(e,t)}}}r(X,"createEngineControlHandler");export{X as createEngineControlHandler};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RefMeta } from '../broker-protocol.js';
|
|
2
|
+
import type { BrokerSession } from './read-ops.js';
|
|
3
|
+
/**
|
|
4
|
+
* Inline memory-reference inventory (design: inline memory references) — a
|
|
5
|
+
* single broker-level memo shared by BOTH the `list_memory_refs` read-op reply
|
|
6
|
+
* and per-submission guidance resolution, so a burst of reads + submissions
|
|
7
|
+
* between reloads never re-walks the corpus per call. Invalidated only when the
|
|
8
|
+
* corpus is KNOWN to have changed (a successful `session.reload()`); a failed
|
|
9
|
+
* reload leaves the memo intact.
|
|
10
|
+
*/
|
|
11
|
+
export interface ComposerNames {
|
|
12
|
+
refs: RefMeta[];
|
|
13
|
+
names: string[];
|
|
14
|
+
}
|
|
15
|
+
/** The display names in the node's view, from the delivery route. */
|
|
16
|
+
export declare function composerNames(nodeId: string): Promise<ComposerNames>;
|
|
17
|
+
export type MemoryRefGuidance = {
|
|
18
|
+
/** The memoized inventory rows the `list_memory_refs` read-op replies with. */
|
|
19
|
+
refs(): RefMeta[];
|
|
20
|
+
/** The hidden guidance text for a human frame's verbatim text, or `null`. */
|
|
21
|
+
guidanceFor(text: string): string | null;
|
|
22
|
+
/** Refresh the inventory after a successful session reload. */
|
|
23
|
+
invalidate(): Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
export declare function createMemoryRefGuidance(session: () => BrokerSession, nodeId: string, initial: ComposerNames): MemoryRefGuidance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var t=(r,e)=>i(r,"name",{value:e,configurable:!0});import{emitEvent as m}from"../../events/emit.js";import{brokerDelivery as f}from"./daemon-ops.js";import{buildGuidance as u}from"../../../shared/inline-ref-guidance.js";import{isLeadingEngineCommand as c}from"./engine-routing.js";async function d(r){const e=await f(r,{activity:"names"});if(e.refs===void 0||e.names===void 0)throw new Error(`delivery route returned no names for ${r}`);return{refs:e.refs,names:e.names}}t(d,"composerNames");function g(r,e,o){let a={refs:o.refs,names:new Set(o.names)};return{refs:t(()=>a.refs,"refs"),guidanceFor(n){try{return c(n,r())?null:u(n,a.names)}catch(s){return m({level:"warn",event:"broker.memory_refs.guidance_resolve_failed",error:s}),null}},async invalidate(){const n=await d(e);a={refs:n.refs,names:new Set(n.names)}}}}t(g,"createMemoryRefGuidance");export{d as composerNames,g as createMemoryRefGuidance};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModelRegistry } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
/** A model resolved out of the registry, or undefined when nothing matches. */
|
|
3
|
+
export type ResolvedModel = ReturnType<ModelRegistry['find']>;
|
|
4
|
+
/** Resolve a `provider/id` model spec against the LIVE services registry (which
|
|
5
|
+
* carries any extension-registered providers). Pure: returns undefined on a
|
|
6
|
+
* malformed spec or an unknown model. */
|
|
7
|
+
export declare function findModelSpec(registry: ModelRegistry, spec: string): ResolvedModel;
|
|
8
|
+
/** Resolve a model from a free-text query — `/model opus`, `/model fable`. Tries
|
|
9
|
+
* the exact `provider/id` spec first; failing that, searches the registry the
|
|
10
|
+
* way the picker's search box does (case-insensitive substring on the model id
|
|
11
|
+
* and the `provider/id` key) and returns the BEST match, preferring authed/
|
|
12
|
+
* available models. Returns undefined only when nothing matches. */
|
|
13
|
+
export declare function resolveModelQuery(registry: ModelRegistry, query: string): ResolvedModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var b=Object.defineProperty;var i=(t,n)=>b(t,"name",{value:n,configurable:!0});import{parseModelSpec as h}from"../model-selection.js";import{modelKey as f}from"./read-ops.js";function w(t,n){const{modelSpec:o}=h(n),e=o.indexOf("/");if(!(e<=0))return t.find(o.slice(0,e),o.slice(e+1))}i(w,"findModelSpec");function v(t,n){const o=w(t,n);if(o)return o;const e=n.trim().toLowerCase();if(e==="")return;let a;try{a=t.getAll()}catch{return}let c;try{c=new Set(t.getAvailable().map(f))}catch{c=new Set}const m=i(r=>{const s=r.id.toLowerCase(),p=f(r).toLowerCase();let l=-1;if(s===e)l=100;else if(p===e)l=90;else if(s.startsWith(e))l=80;else if(s.includes(e))l=60;else if(p.includes(e))l=40;else return-1;return l+(c.has(f(r))?5:0)},"rank");let d,u=0;for(const r of a){const s=m(r);s>u&&(u=s,d=r)}return d}i(v,"resolveModelQuery");export{w as findModelSpec,v as resolveModelQuery};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ClientToBroker } from '../broker-protocol.js';
|
|
2
|
+
import type { BrokerClient, BrokerClientRegistry } from './client-registry.js';
|
|
3
|
+
import type { FrameReplies } from './frame-replies.js';
|
|
4
|
+
import type { MemoryRefGuidance } from './frame-memory-refs.js';
|
|
5
|
+
import { type BrokerSession } from './read-ops.js';
|
|
6
|
+
/** The read ops — none of them controller-gated: they are pure reads that
|
|
7
|
+
* drive nothing in the engine, so terminal observer connections populate their
|
|
8
|
+
* palettes and pickers through these too. */
|
|
9
|
+
export type ReadFrame = Extract<ClientToBroker, {
|
|
10
|
+
type: 'get_commands' | 'list_models' | 'list_scoped_models' | 'list_memory_refs' | 'get_tree' | 'get_settings' | 'list_sessions' | 'get_human_fork_coordinates';
|
|
11
|
+
}>;
|
|
12
|
+
export declare function createReadHandler(deps: {
|
|
13
|
+
registry: BrokerClientRegistry;
|
|
14
|
+
replies: FrameReplies;
|
|
15
|
+
session: () => BrokerSession;
|
|
16
|
+
boundaryReviewId: string | undefined;
|
|
17
|
+
memoryRefs: MemoryRefGuidance;
|
|
18
|
+
formatExactModelSpec: (model: BrokerSession['model'], thinkingLevel?: string) => string | null;
|
|
19
|
+
}): (client: BrokerClient, frame: ReadFrame) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Object.defineProperty;var c=(t,d)=>h(t,"name",{value:d,configurable:!0});import{SessionListCache as k}from"../session-list-cache.js";import{sessionListCachePath as y}from"../../canvas/paths.js";import{engineLeadingCommandTokens as _}from"./engine-routing.js";import{buildCommandList as p,buildGetTreeData as T,buildListMemoryRefsData as l,buildListModelsData as E,buildScopedModelsData as S,buildSessionsData as F,buildSettingsData as L}from"./read-ops.js";function R(t){const{registry:d,replies:o,session:i,boundaryReviewId:g,memoryRefs:m,formatExactModelSpec:u}=t,b=new k(y());return(s,r)=>{switch(r.type){case"get_commands":{try{o.ackTo(s,"get_commands",!0,JSON.stringify(p(i())))}catch(e){o.engineErrorTo(s)(e)}break}case"list_models":{try{d.sendFrame(s,E(r.id,i()))}catch(e){o.engineErrorTo(s,r.id)(e)}break}case"list_scoped_models":{try{d.sendFrame(s,S(r.id,i()))}catch(e){o.engineErrorTo(s,r.id)(e)}break}case"list_memory_refs":{try{d.sendFrame(s,l(r.id,m.refs(),_(i())))}catch(e){o.engineErrorTo(s,r.id)(e)}break}case"get_tree":{try{d.sendFrame(s,T(r.id,i(),g))}catch(e){o.engineErrorTo(s,r.id)(e)}break}case"get_settings":{try{d.sendFrame(s,L(r.id,i()))}catch(e){o.engineErrorTo(s,r.id)(e)}break}case"list_sessions":{F(r.id,r.scope??"cwd",i(),b).then(e=>d.sendFrame(s,e)).catch(o.engineErrorTo(s,r.id));break}case"get_human_fork_coordinates":{try{const e=i().sessionManager,n=e.getSessionFile(),a=e.getLeafId();if(n===void 0||n===""||a===null){o.engineErrorTo(s,r.id)(new Error("no persisted source session leaf"));break}d.sendFrame(s,{type:"data",id:r.id,kind:"human_fork_coordinates",sourceFile:n,sourceSessionId:e.getSessionId(),leafId:a,modelSpec:u(i().model,i().thinkingLevel)})}catch(e){o.engineErrorTo(s,r.id)(e)}break}}}}c(R,"createReadHandler");export{R as createReadHandler};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BrokerClient, BrokerClientRegistry } from './client-registry.js';
|
|
2
|
+
import type { BrokerSession } from './read-ops.js';
|
|
3
|
+
export declare const REVIEW_BOUNDARY_NAVIGATION_CODE = "review_boundary_navigation";
|
|
4
|
+
export declare class ReviewBoundaryNavigationError extends Error {
|
|
5
|
+
readonly targetId: string;
|
|
6
|
+
readonly code = "review_boundary_navigation";
|
|
7
|
+
constructor(targetId: string);
|
|
8
|
+
}
|
|
9
|
+
/** The reply vocabulary every frame handler answers a client with, bound once
|
|
10
|
+
* to the client registry that owns the sockets. */
|
|
11
|
+
export type FrameReplies = {
|
|
12
|
+
/** Reject a read-only client for a mutating op. The decision reads this
|
|
13
|
+
* client's OWN fixed role — there is no shared writer slot, so any number of
|
|
14
|
+
* writable clients pass concurrently. Returns true when rejected (the caller
|
|
15
|
+
* should `break`). */
|
|
16
|
+
notWritable(client: BrokerClient, what: string, id?: string): boolean;
|
|
17
|
+
ackTo(client: BrokerClient, op: string, ok?: boolean, detail?: string, id?: string): void;
|
|
18
|
+
engineErrorTo(client: BrokerClient, id?: string): (err: unknown) => void;
|
|
19
|
+
reviewBoundaryRefusalTo(client: BrokerClient, targetId: string): void;
|
|
20
|
+
};
|
|
21
|
+
export declare function createFrameReplies(registry: BrokerClientRegistry): FrameReplies;
|
|
22
|
+
/** True iff `entryId` sits BEFORE this review companion's visible transcript
|
|
23
|
+
* boundary — the navigation an ordinary node has no boundary for. */
|
|
24
|
+
export declare function isPreBoundaryReviewEntry(session: BrokerSession, boundaryReviewId: string | undefined, entryId: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var a=(o,e)=>i(o,"name",{value:e,configurable:!0});import{isReviewBoundary as d}from"../session-visibility.js";const u="review_boundary_navigation";class c extends Error{static{a(this,"ReviewBoundaryNavigationError")}targetId;code=u;constructor(e){super(`review companion cannot navigate before the visible transcript boundary (target: ${e})`),this.targetId=e,this.name="ReviewBoundaryNavigationError"}}function p(o){return{notWritable(e,n,r){return e.role==="controller"?!1:(o.sendFrame(e,{type:"error",code:"read_only",message:`a read-only client may not ${n}`,...r!==void 0?{id:r}:{}}),!0)},ackTo(e,n,r=!0,t,s){o.sendFrame(e,{type:"ack",for:n,ok:r,...t!==void 0?{detail:t}:{},...s!==void 0?{id:s}:{}})},engineErrorTo(e,n){return r=>o.sendFrame(e,{type:"error",code:"engine_error",message:String(r),...n!==void 0?{id:n}:{}})},reviewBoundaryRefusalTo(e,n){const r=new c(n);o.sendFrame(e,{type:"error",code:r.code,message:r.message})}}}a(p,"createFrameReplies");function g(o,e,n){return e!==void 0&&!o.sessionManager.getBranch(n).some(r=>d(r,e))}a(g,"isPreBoundaryReviewEntry");export{u as REVIEW_BOUNDARY_NAVIGATION_CODE,c as ReviewBoundaryNavigationError,p as createFrameReplies,g as isPreBoundaryReviewEntry};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ClientToBroker } from '../broker-protocol.js';
|
|
2
|
+
import type { BrokerClient, BrokerClientRegistry } from './client-registry.js';
|
|
3
|
+
import type { FrameReplies } from './frame-replies.js';
|
|
4
|
+
import type { MemoryRefGuidance } from './frame-memory-refs.js';
|
|
5
|
+
import type { RebindDriver } from './rebind.js';
|
|
6
|
+
import type { BrokerSession } from './read-ops.js';
|
|
7
|
+
/** True iff a parsed JSONL branch-entry line is a hidden (`display:false`)
|
|
8
|
+
* custom message — the general display boundary crossed if left in an
|
|
9
|
+
* exported branch (not just `crtr-memory-refs` guidance; any hidden custom
|
|
10
|
+
* content). Covers both persisted shapes a branch entry can take: a
|
|
11
|
+
* `type:'custom_message'` entry (display at the entry's own top level) and a
|
|
12
|
+
* `type:'message'` entry wrapping a `role:'custom'` message (display nested
|
|
13
|
+
* under `.message`). */
|
|
14
|
+
export declare function isHiddenJsonlBranchEntry(entry: unknown): boolean;
|
|
15
|
+
/** Rewrite an already-exported JSONL file in place, dropping every hidden
|
|
16
|
+
* (`display:false`) branch entry while re-chaining `parentId` so the
|
|
17
|
+
* remaining entries stay a single valid linear branch — applying the general
|
|
18
|
+
* display:false boundary to `session.exportToJsonl`'s own output, which
|
|
19
|
+
* serializes every entry verbatim regardless of display. The header line
|
|
20
|
+
* (line 1) is copied through untouched. */
|
|
21
|
+
export declare function stripHiddenEntriesFromJsonlExport(filePath: string): void;
|
|
22
|
+
/** The ops that navigate, replace, or publish this node's session. */
|
|
23
|
+
export type SessionFrame = Extract<ClientToBroker, {
|
|
24
|
+
type: 'navigate_tree' | 'reload' | 'export' | 'new_session' | 'switch_session' | 'fork' | 'clone' | 'share';
|
|
25
|
+
}>;
|
|
26
|
+
export declare function createSessionHandler(deps: {
|
|
27
|
+
registry: BrokerClientRegistry;
|
|
28
|
+
replies: FrameReplies;
|
|
29
|
+
rebind: RebindDriver;
|
|
30
|
+
session: () => BrokerSession;
|
|
31
|
+
boundaryReviewId: string | undefined;
|
|
32
|
+
memoryRefs: MemoryRefGuidance;
|
|
33
|
+
reWelcomeAll: () => void;
|
|
34
|
+
}): (client: BrokerClient, frame: SessionFrame) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var m=Object.defineProperty;var h=(i,a)=>m(i,"name",{value:a,configurable:!0});import{execFile as k}from"node:child_process";import{existsSync as y,readFileSync as w,unlinkSync as T,writeFileSync as S}from"node:fs";import{tmpdir as x}from"node:os";import{join as v}from"node:path";import{captureSessionChatCapabilities as I}from"../command-surface.js";import{isPreBoundaryReviewEntry as g}from"./frame-replies.js";function E(i){if(i===null||typeof i!="object")return!1;const a=i;return a.type==="custom_message"&&a.display===!1||a.type==="message"&&a.message?.role==="custom"&&a.message.display===!1}h(E,"isHiddenJsonlBranchEntry");function R(i){const r=w(i,"utf8").split(`
|
|
2
|
+
`).filter(f=>f!=="");if(r.length===0)return;const[l,...o]=r;let d=null;const p=[];for(const f of o){const e=JSON.parse(f);E(e)||(p.push(JSON.stringify({...e,parentId:d})),typeof e.id=="string"&&(d=e.id))}S(i,`${[l,...p].join(`
|
|
3
|
+
`)}
|
|
4
|
+
`)}h(R,"stripHiddenEntriesFromJsonlExport");function j(i){const{registry:a,replies:r,rebind:l,session:o,boundaryReviewId:d,memoryRefs:p,reWelcomeAll:f}=i;return(e,n)=>{switch(n.type){case"navigate_tree":{if(r.notWritable(e,"navigate the session tree"))break;if(g(o(),d,n.targetId)){r.reviewBoundaryRefusalTo(e,n.targetId);break}o().navigateTree(n.targetId,n.options).then(t=>{t.cancelled||f(),r.ackTo(e,"navigate_tree",!t.cancelled,t.editorText)}).catch(r.engineErrorTo(e));break}case"reload":{if(r.notWritable(e,"reload"))break;o().reload({beforeSessionStart:h(()=>I(o()),"beforeSessionStart")}).then(()=>{const t=o().agent;return t&&(t.steeringMode="all",t.followUpMode="all"),p.invalidate().then(()=>{a.forEachHelloed(s=>{s.role==="observer"&&a.sendFrame(s,{type:"resources_reloaded"})}),r.ackTo(e,"reload")})}).catch(r.engineErrorTo(e));break}case"export":{if(r.notWritable(e,"export the session"))break;if(n.format==="jsonl")try{const t=o().exportToJsonl(n.path);R(t),r.ackTo(e,"export")}catch(t){r.engineErrorTo(e)(t)}else o().exportToHtml(n.path).then(()=>r.ackTo(e,"export")).catch(r.engineErrorTo(e));break}case"new_session":{if(r.notWritable(e,"start a new session"))break;l.runReplacement(e,"new_session",t=>t.newSession());break}case"switch_session":{if(r.notWritable(e,"switch sessions"))break;l.runReplacement(e,"switch_session",t=>t.switchSession(n.path));break}case"fork":{if(r.notWritable(e,"fork the session"))break;if(g(o(),d,n.entryId)){r.reviewBoundaryRefusalTo(e,n.entryId);break}l.runReplacement(e,"fork",t=>t.fork(n.entryId));break}case"clone":{if(r.notWritable(e,"clone the session"))break;l.runReplacement(e,"clone",async t=>{const s=o().sessionManager,c=s.getLeafId();if(c===null)return{cancelled:!0,detail:"no current leaf to clone from"};const u=s.createBranchedSession(c);return u===void 0?{cancelled:!0,detail:"createBranchedSession returned no path"}:t.switchSession(u)});break}case"share":{if(r.notWritable(e,"share the session"))break;const t=v(x(),`pi-share-${Date.now()}.html`);o().exportToHtml(t).then(()=>new Promise((s,c)=>{k("gh",["gist","create","--secret",t],{timeout:3e4,maxBuffer:1024*1024},(u,b)=>{try{y(t)&&T(t)}catch{}if(u){c(u);return}s(b.trim())})})).then(s=>{r.ackTo(e,"share",!0,s)}).catch(s=>{const c=String(s?.message??s);r.ackTo(e,"share",!1,c.includes("not found")||c.includes("gh: command not found")||c.includes("ENOENT")?"`gh` CLI not found \u2014 install GitHub CLI and authenticate with `gh auth login`":`share failed: ${c}`)});break}}}}h(j,"createSessionHandler");export{j as createSessionHandler,E as isHiddenJsonlBranchEntry,R as stripHiddenEntriesFromJsonlExport};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const HELD_DEFERRED_INBOX_PROMPT_JOIN: unique symbol;
|
|
2
|
+
export declare const BROKER_IDLE_TURN_START: unique symbol;
|
|
3
|
+
export declare const BROKER_RUN_TURN_BUSY: unique symbol;
|
|
4
|
+
export declare function brokerRunTurnBusy(): boolean;
|
|
5
|
+
export type HeldDeferredInboxPromptJoin = (session: {
|
|
6
|
+
sendCustomMessage: (message: {
|
|
7
|
+
customType: string;
|
|
8
|
+
content: string;
|
|
9
|
+
display: boolean;
|
|
10
|
+
}) => Promise<void>;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
export declare function heldDeferredInboxPromptJoin(): HeldDeferredInboxPromptJoin | undefined;
|
|
13
|
+
/** Starts an inbox-delivered idle turn through the broker's admission gate. */
|
|
14
|
+
export type BrokerIdleTurnStart = (text: string, messageIds?: string[]) => void;
|
|
15
|
+
export declare function brokerIdleTurnStart(): BrokerIdleTurnStart | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.defineProperty;var r=(o,t)=>n(o,"name",{value:t,configurable:!0});const e=Symbol.for("@crouton-kit/crtr:held-deferred-inbox-prompt-join"),u=Symbol.for("@crouton-kit/crtr:broker-idle-turn-start"),c=Symbol.for("@crouton-kit/crtr:broker-run-turn-busy");function f(){const o=globalThis[c];return typeof o=="function"&&o()}r(f,"brokerRunTurnBusy");function b(){const o=globalThis[e];return typeof o=="function"?o:void 0}r(b,"heldDeferredInboxPromptJoin");function l(){const o=globalThis[u];return typeof o=="function"?o:void 0}r(l,"brokerIdleTurnStart");export{u as BROKER_IDLE_TURN_START,c as BROKER_RUN_TURN_BUSY,e as HELD_DEFERRED_INBOX_PROMPT_JOIN,l as brokerIdleTurnStart,f as brokerRunTurnBusy,b as heldDeferredInboxPromptJoin};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { MailEntryDTO } from '../../../api/dto/mail.js';
|
|
2
|
+
export { reportRefNodeId } from '../../../shared/inbox-entry-body.js';
|
|
3
|
+
export type BrokerInboxEntryId = string;
|
|
4
|
+
export type BrokerInboxEntry = MailEntryDTO;
|
|
5
|
+
/** One-shot runtime cards an entry carries (rendered envelopes written by the
|
|
6
|
+
* message API). They ride the delivery their own entry belongs to, so a note
|
|
7
|
+
* can never land ahead of an unrelated person's message — except in the one
|
|
8
|
+
* deliberate fold below, where deferred entries join a person's delivery as
|
|
9
|
+
* the context their turn reads. */
|
|
10
|
+
export declare function entryCards(entry: BrokerInboxEntry): readonly string[];
|
|
11
|
+
/** One deliverable user message: either a person's verbatim words or the whole
|
|
12
|
+
* `<runtime kind="inbox">` envelope. Never both — a reader parses an envelope
|
|
13
|
+
* only as a whole message, so mixing them attributes the card to the person.
|
|
14
|
+
* `cards` are the one-shot context envelopes that go out ahead of `text`. */
|
|
15
|
+
export interface InboxDelivery {
|
|
16
|
+
kind: 'human' | 'card';
|
|
17
|
+
text: string;
|
|
18
|
+
cards: readonly string[];
|
|
19
|
+
entries: readonly BrokerInboxEntry[];
|
|
20
|
+
}
|
|
21
|
+
/** Keep each person's words separate and in order; fold preceding deferred context into that same input. */
|
|
22
|
+
export declare function coalesceBrokerInbox(entries: readonly BrokerInboxEntry[]): readonly InboxDelivery[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=Object.defineProperty;var d=(e,t)=>u(e,"name",{value:t,configurable:!0});import{formatInboxCard as p}from"../../../shared/generated-context.js";import{renderEntryBody as m}from"../../../shared/inbox-entry-body.js";import{reportRefNodeId as I}from"../../../shared/inbox-entry-body.js";function y(e){const t=e.data?.report_body;return m(e,typeof t=="string"?t:null)}d(y,"entryBody");function l(e){return{kind:e.kind,body:y(e),...e.ref===void 0?{}:{ref:e.ref},...e.disposition===void 0?{}:{disposition:e.disposition}}}d(l,"cardEntry");function c(e){const t=e.data?.cards;return Array.isArray(t)?t.filter(s=>typeof s=="string"):[]}d(c,"entryCards");function b(e){const t=[];let s=[];const a=d(()=>{if(s.length===0)return;const r=new Map;for(const n of s){const i=n.from??"system";r.has(i)||r.set(i,[]),r.get(i).push(n)}const o=[...r].map(([n,i])=>({id:n,entries:i.map(f=>l(f))}));t.push({kind:"card",text:p(o),cards:s.flatMap(n=>c(n)),entries:s}),s=[]},"flushRun");for(const r of e){if((r.from??"system")!=="human"){s.push(r);continue}a();const o=r.data?.body;t.push({kind:"human",text:typeof o=="string"?o:r.label,cards:c(r),entries:[r]})}a();for(let r=t.length-2;r>=0;r-=1){const o=t[r],n=t[r+1];o.kind!=="card"||n.kind!=="human"||o.entries.every(i=>i.tier==="deferred")&&(t[r]={...n,cards:[...o.cards,o.text,...n.cards],entries:[...o.entries,...n.entries]},t.splice(r+1,1))}return t}d(b,"coalesceBrokerInbox");export{b as coalesceBrokerInbox,c as entryCards,I as reportRefNodeId};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type AssistantMessageEventStream, type Context, type Model, type ModelsSimpleStreamOptions } from '@earendil-works/pi-ai';
|
|
2
|
+
import type { ModelRuntime } from '@earendil-works/pi-coding-agent';
|
|
3
|
+
/** Pi uses availability and auth for its model controls; only the daemon can
|
|
4
|
+
* decide whether a route has credentials. Keep the broker's metadata selectable. */
|
|
5
|
+
export declare function configureBrokerModelRuntime(runtime: ModelRuntime): void;
|
|
6
|
+
export declare const LLM_BROKER_RETRY_WINDOW_S = 300;
|
|
7
|
+
export declare const LLM_REFUSAL_DIAGNOSTIC = "crtr:llm-refusal";
|
|
8
|
+
/** The retry deadline (epoch ms) a final daemon refusal carried on its
|
|
9
|
+
* diagnostic, or undefined when the refusal named none. */
|
|
10
|
+
export declare function refusalRetryAt(message: {
|
|
11
|
+
diagnostics?: ReadonlyArray<{
|
|
12
|
+
type: string;
|
|
13
|
+
details?: unknown;
|
|
14
|
+
}>;
|
|
15
|
+
}): number | undefined;
|
|
16
|
+
/** Messages the wire request carries. An errored or aborted assistant is an
|
|
17
|
+
* incomplete turn that pi-ai's own serializers omit; this adapter bypasses
|
|
18
|
+
* them, so drop it here. A request must also end on a non-assistant message
|
|
19
|
+
* (Anthropic rejects assistant prefill with a 400), so trailing assistants go
|
|
20
|
+
* too. */
|
|
21
|
+
export declare function wireHistory(messages: Context['messages']): Context['messages'];
|
|
22
|
+
export declare function requestBody(model: Model<any>, context: Context, options: ModelsSimpleStreamOptions): Record<string, unknown>;
|
|
23
|
+
/** One pi stream, backed exclusively by the authenticated daemon llm route. */
|
|
24
|
+
export declare function streamBrokerModel(model: Model<any>, context: Context, options?: ModelsSimpleStreamOptions): AssistantMessageEventStream;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var q=Object.defineProperty;var l=(t,e)=>q(t,"name",{value:e,configurable:!0});import{setTimeout as F}from"node:timers/promises";import{createAssistantMessageEventStream as P,getCurrentSystemPrompt as W,getCurrentTools as j}from"@earendil-works/pi-ai";import{socketFetch as J}from"../../../api/node-transport.js";import{apiSocketPath as U}from"../../canvas/paths.js";import{currentNodeToken as Y}from"./node-token.js";import{envModelExact as T,envModelIntent as z}from"../../../shared/env.js";import{MODEL_CONTEXT_BODY_MAX_BYTES as k}from"../../llm/body-limits.js";import{modelRequestFromConfig as X}from"../../model-routes.js";import{parseProviderRateLimit as G,providerFailureDiagnostic as H}from"../../provider-failure.js";function de(t){t.checkAuth=async e=>t.getProvider(e)?{type:"api_key"}:void 0,t.getAvailable=async e=>t.getModels(e),t.getAvailableSnapshot=()=>t.getModels(),t.streamSimple=Z}l(de,"configureBrokerModelRuntime");const K=300,$="crtr:llm-refusal";class v extends Error{static{l(this,"LlmRefusalError")}retryAt;rateLimit;constructor(e,o,r){super(e),this.retryAt=o,this.rateLimit=r}}function L(t,e){const o=t===void 0?"the request body":`the request body (${t} bytes)`;return new Error(`request_too_large: ${o} exceeds the ${e}-byte model request limit; compact the conversation to shrink the context`)}l(L,"contextTooLargeError");function O(t){const e=t.details?.rate_limit;if(!e||typeof e!="object")return;const o=G(e);if(o===void 0)return;const{provider:r,model:n}=e;return typeof r=="string"&&r!==""&&typeof n=="string"&&n!==""?{...o,model:`${r}/${n}`}:o}l(O,"refusalRateLimit");function pe(t){for(const e of t.diagnostics??[]){if(e.type!==$)continue;const o=e.details?.retryAt;if(typeof o=="number"&&Number.isFinite(o)&&o>0)return o}}l(pe,"refusalRetryAt");class M extends Error{static{l(this,"ContentFilteredError")}}function C(t){return typeof t=="string"?t:t.map(e=>e.type==="text"?{type:"text",text:e.text}:{type:"image_url",image_url:{url:`data:${e.mimeType};base64,${e.data}`}})}l(C,"wireContent");function Q(t){const e=l(n=>n.role==="assistant"&&(n.stopReason==="error"||n.stopReason==="aborted"),"incomplete"),o=t.some(e)?t.filter(n=>!e(n)):t;let r=o.length;for(;r>0&&o[r-1]?.role==="assistant";)r--;return r===o.length?o:o.slice(0,r)}l(Q,"wireHistory");function V(t,e,o){const r=[],n=W(e.messages),c=j(e.messages);n?r.push({role:"system",content:n}):e.systemPrompt&&r.push({role:"system",content:e.systemPrompt});for(const d of Q(e.messages))d.role==="user"?r.push({role:"user",content:C(d.content)}):d.role==="toolResult"?r.push({role:"tool",content:C(d.content),tool_call_id:d.toolCallId}):d.role==="assistant"&&r.push({role:"assistant",content:d.content.filter(p=>p.type==="text").map(p=>p.text).join("")||null,tool_calls:d.content.filter(p=>p.type==="toolCall").map(p=>({id:p.id,type:"function",function:{name:p.name,arguments:JSON.stringify(p.arguments)}}))});const w=`${t.provider}/${t.id}`,y=z();return{model:X(w,y,T())?.kind==="logical"?y:w,model_policy:T()?"exact":"substitute",stream:!0,messages:r,...c.length?{tools:c.map(d=>({type:"function",function:{name:d.name,description:d.description,parameters:d.parameters}}))}:{},...o.reasoning?{reasoning_effort:o.reasoning}:{},...o.temperature!==void 0?{temperature:o.temperature}:{},...o.maxTokens!==void 0?{max_tokens:o.maxTokens}:{}}}l(V,"requestBody");function R(t,e){if(typeof e!="string")return!1;const o=e.indexOf("/");return o<1||o===e.length-1?!1:(t.provider=e.slice(0,o),t.model=e.slice(o+1),!0)}l(R,"applyServedModel");function D(t){if(t.details?.served_model!==void 0)return t.details.served_model;const e=t.details?.rate_limit;return typeof e?.provider=="string"&&typeof e.model=="string"?`${e.provider}/${e.model}`:void 0}l(D,"refusalRoute");function N(t){if(!t||typeof t!="object"||!("error"in t))throw new Error("llm returned an invalid response");const e=t.error;if(!e||typeof e.message!="string")throw new Error("llm returned an invalid refusal");return e}l(N,"parseRefusal");function Z(t,e,o={}){const r=P(),n={role:"assistant",content:[],api:t.api,provider:t.provider,model:t.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};return(async()=>{const c=Y();if(!c)throw new Error("llm requires a node token");const w=JSON.stringify(V(t,e,o)),y=Buffer.byteLength(w);if(y>k)throw L(y,k);let d=0;for(;;){o.signal?.throwIfAborted();const p=await J(U())("http://localhost/v1/llm",{method:"POST",headers:{authorization:`Bearer ${c}`,"content-type":"application/json"},body:w,signal:o.signal});if(!p.ok){const a=N(await p.json());if(p.status===413||a.code==="payload_too_large")throw L(y,k);if(R(n,D(a)),a.retryable!==!0)throw new v(a.message,void 0,O(a));const s=a.retry_after_s;if(typeof s!="number"||!Number.isFinite(s)||s<=0)throw new Error(a.message);const f=K-d;if(s>f){const u=Date.now()+s*1e3;throw new v(`${a.message} (retry after ${s}s, at ${new Date(u).toISOString()})`,u,O(a))}await F(s*1e3,void 0,{signal:o.signal}),d+=s;continue}if(!p.body)throw new Error("llm returned no stream");r.push({type:"start",partial:n});const B=p.body.getReader(),b=new TextDecoder;let h="",_="stop",E,S=!1,I=!1;const A=l(a=>{const s=JSON.parse(a);if(s.error){const i=N(s);throw R(n,D(i)),new Error(i.message)}if(s.served_model){if(I=!0,s.served_model.indexOf("/")<1)throw new Error("llm returned an invalid served_model");R(n,s.served_model)}const f=s.choices?.[0],u=f?.delta;if(u?.reasoning_content){const i=n.content.findIndex(x=>x.type==="thinking"),m=i<0?{type:"thinking",thinking:""}:n.content[i],g=i<0?n.content.push(m)-1:i;if(i<0&&r.push({type:"thinking_start",contentIndex:g,partial:n}),m.type!=="thinking")throw new Error("invalid thinking block");m.thinking+=u.reasoning_content,r.push({type:"thinking_delta",contentIndex:g,delta:u.reasoning_content,partial:n})}if(u?.content){const i=n.content.findIndex(x=>x.type==="text"),m=i<0?{type:"text",text:""}:n.content[i],g=i<0?n.content.push(m)-1:i;if(i<0&&r.push({type:"text_start",contentIndex:g,partial:n}),m.type!=="text")throw new Error("invalid text block");m.text+=u.content,r.push({type:"text_delta",contentIndex:g,delta:u.content,partial:n})}for(const i of u?.tool_calls??[]){const m={type:"toolCall",id:i.id,name:i.function.name,arguments:JSON.parse(i.function.arguments)},g=n.content.push(m)-1;r.push({type:"toolcall_start",contentIndex:g,partial:n}),r.push({type:"toolcall_end",contentIndex:g,toolCall:m,partial:n})}f?.finish_reason&&(_=f.finish_reason),f?.message?.refusal&&(E=f.message.refusal),s.usage&&(S=!0,n.usage={input:s.usage.prompt_tokens,output:s.usage.completion_tokens,cacheRead:s.usage.cache_read_tokens,cacheWrite:s.usage.cache_write_tokens,totalTokens:s.usage.total_tokens,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}})},"apply");for(;;){const{value:a,done:s}=await B.read();if(s)break;h+=b.decode(a,{stream:!0});let f;for(;(f=h.indexOf(`
|
|
2
|
+
`))>=0;){const u=h.slice(0,f).trim();h=h.slice(f+1),u&&A(u)}}if(h+=b.decode(),h.trim()&&A(h.trim()),!S||!I)throw new Error("llm stream ended without usage or served_model");for(const[a,s]of n.content.entries())s.type==="text"&&r.push({type:"text_end",contentIndex:a,content:s.text,partial:n}),s.type==="thinking"&&r.push({type:"thinking_end",contentIndex:a,content:s.thinking,partial:n});if(_==="content_filter")throw new M(E??"Content filtered");if(!["stop","tool_calls","length"].includes(_))throw new Error(`llm returned unknown finish reason: ${_}`);n.stopReason=_==="tool_calls"?"toolUse":_==="length"?"length":"stop",r.push({type:"done",reason:n.stopReason,message:n}),r.end();return}})().catch(c=>{n.stopReason=o.signal?.aborted?"aborted":"error",n.errorMessage=c instanceof Error?c.message:String(c),c instanceof v&&(n.diagnostics=[{type:$,timestamp:Date.now(),...c.retryAt!==void 0?{details:{retryAt:c.retryAt}}:{}},...c.rateLimit!==void 0?[H({status:429,ratelimit:c.rateLimit})]:[]]),c instanceof M&&n.stopReason==="error"&&(n.rawStopReason="content_filter"),r.push({type:"error",reason:n.stopReason,error:n}),r.end()}),r}l(Z,"streamBrokerModel");export{K as LLM_BROKER_RETRY_WINDOW_S,$ as LLM_REFUSAL_DIAGNOSTIC,de as configureBrokerModelRuntime,pe as refusalRetryAt,V as requestBody,Z as streamBrokerModel,Q as wireHistory};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** What crtrd stored, as it stored it — the payload of a `node_named` frame. */
|
|
2
|
+
export interface NodeNamedNotice {
|
|
3
|
+
description: string;
|
|
4
|
+
title: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
editorLabel: string;
|
|
7
|
+
}
|
|
8
|
+
/** Register the broker's fan-out. One broker hosts one pi process, so the last
|
|
9
|
+
* registration wins; a second broker in one process is not a thing that
|
|
10
|
+
* exists. */
|
|
11
|
+
export declare function onNodeNamed(fn: (notice: NodeNamedNotice) => void): void;
|
|
12
|
+
/** Announce a generated name crtrd's guarded commit APPLIED. A no-op when no
|
|
13
|
+
* broker is listening — the same extension code also runs under test harnesses
|
|
14
|
+
* that host no client registry. */
|
|
15
|
+
export declare function publishNodeNamed(notice: NodeNamedNotice): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=Object.defineProperty;var o=(e,t)=>d(e,"name",{value:t,configurable:!0});let n;function N(e){n=e}o(N,"onNodeNamed");function l(e){n?.(e)}o(l,"publishNodeNamed");export{N as onNodeNamed,l as publishNodeNamed};
|