@north-light/cli 0.0.0 → 0.3.413
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,17 @@
|
|
|
1
|
+
import type { InboxRow } from './dto-adapt.js';
|
|
2
|
+
export declare const KIND_ICON: Record<string, string>;
|
|
3
|
+
export declare const KIND_COLOR: Record<string, string>;
|
|
4
|
+
export declare function formatTimeAgo(iso: string): string;
|
|
5
|
+
/** What the list is currently showing, and the key that changes it. */
|
|
6
|
+
export interface InboxScope {
|
|
7
|
+
/** Display name of the active scope; never used to decide membership. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Toggle hint, absent when there is no other scope to reach. */
|
|
10
|
+
hint?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Pure inbox rows; selection and terminal ownership belong to InboxController.
|
|
13
|
+
* The header carries the scope and its toggle whether or not anything is
|
|
14
|
+
* listed: an empty list is when the reader most needs the way to the rest. */
|
|
15
|
+
export declare function buildInboxLines(items: InboxRow[], width: number, selectedIndex: number, scope: InboxScope, height?: number): string[];
|
|
16
|
+
/** What the agent suggests, for a row that says so without opening the page. */
|
|
17
|
+
export declare function recommendedLabel(item: InboxRow): string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var y=Object.defineProperty;var l=(n,e)=>y(n,"name",{value:e,configurable:!0});import{RESET as r,BOLD as b,DIM as $,ITALIC as m,CYAN as w,RED as x,GRAY as L,YELLOW as M,truncateRow as g}from"./tui/ansi.js";function I(n,e){switch(e){case"gray":return`${L}${n}${r}`;case"cyan":return`${w}${n}${r}`;case"red":return`${x}${n}${r}`;case"yellow":return`${M}${n}${r}`;default:return n}}l(I,"ansiColor");const R={notify:"\u2709",decision:"\u25C6",context:"\u270E",error:"\u26A0",review:"\u25A4",display:"\u2709",rich:"\u25A3",interactive:"\u25C6"},k={notify:"gray",decision:"cyan",context:"cyan",error:"red",review:"yellow",display:"gray",rich:"cyan",interactive:"cyan"};function v(n){const e=Math.floor((Date.now()-new Date(n).getTime())/6e4);return e>=60?`${Math.floor(e/60)}h ago`:e>0?`${e}m ago`:"just now"}l(v,"formatTimeAgo");function T(n,e,d,t,o=Number.MAX_SAFE_INTEGER){const i=[` ${b}${n.length} pending${r} ${$}\xB7 ${t.label}${r}`];if(t.hint!==void 0&&i.push(` ${$}${t.hint}${r}`),i.push(""),n.length===0)return[...i,` ${$}${m}No pending interactions${r}`];const u=e-4,f=n.map((a,h)=>A(a,h,d,u)),s=E(f,d,Math.max(1,o-i.length)),c=[...i];s.start>0&&c.push(` ${$}\u2191 ${s.start} above${r}`);for(let a=s.start;a<s.end;a++)c.push(...f[a]);return s.end<n.length&&c.push(` ${$}\u2193 ${n.length-s.end} below${r}`),c}l(T,"buildInboxLines");function A(n,e,d,t){const o=n.kind==="page"?n.awaitsResponse===!1?"display":"rich":n.kind,i=R[o]??"\xB7",u=v(n.kind==="page"?n.emittedAt:n.blockedSince),f=e===d?`${w}\u25B8${r} `:" ",s=Math.max(1,t-u.length-6),c=`${f}${I(i,k[o]??"cyan")} ${b}${g(n.title||`(${n.id.slice(0,8)})`,s)}${r} ${$}${u}${r}`,a=n.claim?`claimed by ${n.claim.owner} \xB7 ${n.subtitle}`:n.subtitle,h=[c,` ${$}${g(a,t-6)}${r}`],p=D(n);return p!==void 0&&h.push(` ${$}Recommended: ${g(p,Math.max(1,t-19))}${r}`),h}l(A,"buildItemLines");function D(n){if(!(n.kind!=="page"||n.recommendedOptions.length===0))return n.recommendedOptions.map(e=>e.label).join(" \xB7 ")}l(D,"recommendedLabel");function E(n,e,d){let t=Math.max(0,Math.min(e,n.length-1)),o=t+1,i=!0;for(;;){const u=o<n.length?{start:t,end:o+1}:void 0,f=t>0?{start:t-1,end:o}:void 0,c=(i?[u,f]:[f,u]).find(a=>a!==void 0&&N(n,a.start,a.end)<=d);if(c===void 0)break;t=c.start,o=c.end,i=!i}return{start:t,end:o}}l(E,"visibleWindow");function N(n,e,d){let t=e>0?1:0;for(let o=e;o<d;o++)t+=n[o].length;return d<n.length&&t++,t}l(N,"windowHeight");export{k as KIND_COLOR,R as KIND_ICON,T as buildInboxLines,v as formatTimeAgo,D as recommendedLabel};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Component } from '@earendil-works/pi-tui';
|
|
2
|
+
/**
|
|
3
|
+
* A surface root: a pi-tui component rendered inside a host-assigned rectangle.
|
|
4
|
+
* The host pushes the rectangle height before every render and on resize; a
|
|
5
|
+
* surface must render exactly that many rows and must not read terminal or
|
|
6
|
+
* process geometry itself. A surface must never place its cursor marker on row
|
|
7
|
+
* 0, which is reserved for host notices.
|
|
8
|
+
*/
|
|
9
|
+
export interface SurfaceComponent extends Component {
|
|
10
|
+
/** Set the number of rows assigned by the host for the next render. */
|
|
11
|
+
setRows(rows: number): void;
|
|
12
|
+
/** Consume wheel input when applicable. */
|
|
13
|
+
handleWheel?(direction: 'up' | 'down', lines: number): boolean;
|
|
14
|
+
}
|
|
15
|
+
/** The identities used for mounted surfaces. */
|
|
16
|
+
export type SurfaceId = 'inbox' | 'review';
|
|
17
|
+
/** How long a notice stays up. */
|
|
18
|
+
export interface SurfaceNoticeOptions {
|
|
19
|
+
/** Keep the notice up until it is replaced or cleared, with no auto-clear. */
|
|
20
|
+
sticky?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The only host boundary available to a surface. Surfaces render only through
|
|
24
|
+
* the mounted component and use {@link notice} as their only output channel;
|
|
25
|
+
* they never write to the terminal, stdout, stderr, or raw input themselves.
|
|
26
|
+
*/
|
|
27
|
+
export interface SurfaceHost {
|
|
28
|
+
/**
|
|
29
|
+
* Mount a component into the host-assigned full rectangle. When the focused
|
|
30
|
+
* input component differs from the rendered root, pass it as `focus` so
|
|
31
|
+
* input and cursor ownership remain with that component.
|
|
32
|
+
*/
|
|
33
|
+
mount(component: SurfaceComponent, opts?: {
|
|
34
|
+
focus?: Component;
|
|
35
|
+
}): SurfaceHandle;
|
|
36
|
+
/** Report transient output through the host; this is the only surface output channel. */
|
|
37
|
+
notice(text: string, opts?: SurfaceNoticeOptions): void;
|
|
38
|
+
/**
|
|
39
|
+
* Temporarily release the terminal for a child process and return a resume
|
|
40
|
+
* closure. Callers must invoke the closure in a `finally` block.
|
|
41
|
+
*/
|
|
42
|
+
suspendForChild(): () => void;
|
|
43
|
+
/** Bring a node's viewer to the front; failures are reported through notice and never reject. */
|
|
44
|
+
focusNode(nodeId: string): Promise<boolean>;
|
|
45
|
+
/** Mount the shared review-file picker and resolve to its chosen path or null on cancellation. */
|
|
46
|
+
pickReviewFile(spec: {
|
|
47
|
+
candidates: readonly string[];
|
|
48
|
+
cwd: string;
|
|
49
|
+
title?: string;
|
|
50
|
+
}): Promise<string | null>;
|
|
51
|
+
/** Capability facts resolved once by the host for this session. */
|
|
52
|
+
readonly capabilities: {
|
|
53
|
+
/** True when this viewer is attached to a remote session. */
|
|
54
|
+
readonly remote: boolean;
|
|
55
|
+
/** True when focusing another node's viewer is available. */
|
|
56
|
+
readonly canFocusNode: boolean;
|
|
57
|
+
/** This viewer's own tmux pane — the target a surface splits against.
|
|
58
|
+
* Undefined outside tmux. */
|
|
59
|
+
readonly selfPane: string | undefined;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/** A mounted surface's lifecycle controls. */
|
|
63
|
+
export interface SurfaceHandle {
|
|
64
|
+
/** Close this surface and any surfaces mounted above it. Idempotent. */
|
|
65
|
+
close(): void;
|
|
66
|
+
/** Mark the surface dirty; the host schedules a redraw rather than drawing synchronously. */
|
|
67
|
+
invalidate(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Register the only sanctioned teardown hook for timers, watchers, listeners,
|
|
70
|
+
* and poll re-arms. Closing initiates both synchronous and asynchronous
|
|
71
|
+
* cleanup; asynchronous cleanup is not awaited by the host.
|
|
72
|
+
*/
|
|
73
|
+
onClose(fn: () => void | Promise<void>): void;
|
|
74
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { CrtrClient } from '../api/index.js';
|
|
2
|
+
import type { CanvasSource } from '../core/canvas/source.js';
|
|
3
|
+
import type { NodeStatus, SubscriptionRef } from '../core/canvas/types.js';
|
|
4
|
+
import type { Scope } from '../types.js';
|
|
5
|
+
import type { NodeDetailDTO } from '../api/dto/nodes.js';
|
|
6
|
+
import type { NodeMeta, NodeRow } from '../core/canvas/types.js';
|
|
7
|
+
import type { RosterDTO } from '../api/dto/canvas.js';
|
|
8
|
+
import type { ReportDTO } from '../api/index.js';
|
|
9
|
+
/** Rethrow an `ApiError` as the clean structured CLI error agents parse
|
|
10
|
+
* (`core/io` `handle`) — instead of the generic "internal bug" stderr path a
|
|
11
|
+
* raw non-`CrtrError` throw would take. The mapping itself lives in ONE place
|
|
12
|
+
* (`apiErrorToCliError`, `core/io.ts`); this is the explicit-catch helper a
|
|
13
|
+
* leaf uses when it wants to attach a call-site `next` hint. Non-`ApiError`
|
|
14
|
+
* throws propagate unchanged (a genuine bug still reads as `internal`). Typed
|
|
15
|
+
* `never` so callers can use it as the tail of a `catch` without confusing
|
|
16
|
+
* definite assignment. */
|
|
17
|
+
export declare function rethrowAsCliError(err: unknown, next?: string): never;
|
|
18
|
+
/** Fetch a node, mapping ONLY a 404 to `null` (the "not found" contract every
|
|
19
|
+
* existence-check leaf wants) and surfacing every other failure as the clean
|
|
20
|
+
* network-class CLI error via `rethrowAsCliError`. This replaces the old
|
|
21
|
+
* `.catch(() => null)` idiom that, post-B-1 (`getNode` is now an HTTP round-trip),
|
|
22
|
+
* masked a broken/slow/restarting daemon as a false "node not found". Same
|
|
23
|
+
* 404-only→null mapping as `ApiCanvasSource.orNull`, but returning the raw DTO
|
|
24
|
+
* and rethrowing non-404s as CLI errors rather than swallowing them. */
|
|
25
|
+
export declare function getNodeOrNull(nodeId: string): Promise<NodeDetailDTO | null>;
|
|
26
|
+
/** Bounded tail of crtrd.log surfaced on a cold-start `/healthz` timeout.
|
|
27
|
+
* Large enough to catch a real startup failure/stack trace,
|
|
28
|
+
* small enough that a runaway daemon log can never leak unbounded into a CLI
|
|
29
|
+
* error message. */
|
|
30
|
+
export declare const COLD_START_DIAGNOSTIC_TAIL_BYTES = 4096;
|
|
31
|
+
/** Read a bounded tail of crtrd's event log to enrich a `daemon_unavailable`
|
|
32
|
+
* cold-start timeout, so the actual startup failure is not discarded behind a
|
|
33
|
+
* bare message. Bounds the I/O itself — opens the file and reads only the
|
|
34
|
+
* final `COLD_START_DIAGNOSTIC_TAIL_BYTES` bytes via `fstatSync`+`readSync`,
|
|
35
|
+
* never `readFileSync`-ing the whole append-only log — then decodes/filters
|
|
36
|
+
* that bounded slice. Best-effort and synchronous per the `coldStartDiagnostic`
|
|
37
|
+
* contract — a missing/unreadable/empty log yields `undefined` so the base
|
|
38
|
+
* message is used unchanged. */
|
|
39
|
+
export declare function readColdStartDiagnostic(): string | undefined;
|
|
40
|
+
/** The local-socket `CrtrClient` every CLI verb uses. Autostart is on by
|
|
41
|
+
* default: on a cold socket the injected `onColdSocket` hook fires
|
|
42
|
+
* `ensureDaemon()` (spawns crtrd detached via the branded host), then the
|
|
43
|
+
* client polls `/healthz` to a bounded deadline and retries once (the poll
|
|
44
|
+
* lives inside `CrtrClient`, A-2). If crtrd never becomes reachable, the
|
|
45
|
+
* client surfaces the final observed transport failure. This is the ONLY CLI
|
|
46
|
+
* reference to `ensureDaemon`.
|
|
47
|
+
*
|
|
48
|
+
* `onColdSocket` is fire-and-forget — `ensureDaemon()` spawns crtrd and
|
|
49
|
+
* returns immediately, so the client's OWN `/healthz` poll is the only
|
|
50
|
+
* deadline the initiating CLI invocation actually waits on. It must never be
|
|
51
|
+
* narrower than the window `spawnDaemon`'s `verifyDaemonStartup` allows.
|
|
52
|
+
* Both callers use the shared startup policy so a valid on-disk migration
|
|
53
|
+
* cannot outlast the initiating CLI command. */
|
|
54
|
+
export declare function cliClient(opts?: {
|
|
55
|
+
timeoutMs?: number;
|
|
56
|
+
}): CrtrClient;
|
|
57
|
+
export declare class ApiCanvasSource implements CanvasSource {
|
|
58
|
+
private readonly client;
|
|
59
|
+
private rosterCache;
|
|
60
|
+
private rosterInFlight;
|
|
61
|
+
constructor(client?: CrtrClient);
|
|
62
|
+
private roster;
|
|
63
|
+
/** Map a 404 from the API to the interface's `null` "not found" contract;
|
|
64
|
+
* re-throw everything else. */
|
|
65
|
+
private orNull;
|
|
66
|
+
getNode(nodeId: string): Promise<NodeMeta | null>;
|
|
67
|
+
getRow(nodeId: string): Promise<NodeRow | null>;
|
|
68
|
+
listNodes(filter?: {
|
|
69
|
+
status?: NodeStatus | NodeStatus[];
|
|
70
|
+
}): Promise<NodeRow[]>;
|
|
71
|
+
/** The browse screen uses one slim, compressed read for rows AND topology.
|
|
72
|
+
* The same roster index feeds subscriptionsOf/view until its normal TTL ends. */
|
|
73
|
+
browseSnapshot(): Promise<NodeRow[]>;
|
|
74
|
+
panelRoster(): Promise<RosterDTO>;
|
|
75
|
+
subscriptionsOf(subscriber: string): Promise<SubscriptionRef[]>;
|
|
76
|
+
subscribersOf(publisher: string): Promise<SubscriptionRef[]>;
|
|
77
|
+
/** BFS over the active `subscribes_to` edges from `root` (its transitive view),
|
|
78
|
+
* excluding `root` itself — the same traversal shape as
|
|
79
|
+
* `RemoteCanvasSource.view`, expressed over the API's edge lists. */
|
|
80
|
+
view(root: string): Promise<string[]>;
|
|
81
|
+
/** Per-NODE open-ticket counts across `root`'s view. The renderer badges each
|
|
82
|
+
* node with the tickets it raised (the human bridge's parent), so this must
|
|
83
|
+
* be per-node. Request only this view's ids: using the
|
|
84
|
+
* enriched full-canvas snapshot for a five-second viewer poll blocked crtrd
|
|
85
|
+
* behind metadata and telemetry reads for every historical node. */
|
|
86
|
+
ticketCountsForNodes(nodeIds: readonly string[]): Promise<Record<string, number>>;
|
|
87
|
+
ticketCountsForView(root: string): Promise<Record<string, number>>;
|
|
88
|
+
/** True when `nodeId` has at least one active (`active` edge flag, not just a
|
|
89
|
+
* live subscriber) subscription to a node that is currently live
|
|
90
|
+
* (`active`/`idle` status). `subscriptionsOf`'s roster-backed edges carry the
|
|
91
|
+
* real per-edge `active` flag, so this filter is exact, not an over-report. */
|
|
92
|
+
newestReport(nodeId: string): Promise<ReportDTO | null>;
|
|
93
|
+
hasActiveLiveSubscription(nodeId: string): Promise<boolean>;
|
|
94
|
+
}
|
|
95
|
+
/** The active read source for a CLI command. Mirrors `resolveCanvasSource`'s
|
|
96
|
+
* selection WITHOUT importing `core/canvas/source.ts` (which pulls
|
|
97
|
+
* `LocalCanvasSource` → `openDb`, failing the Stage-C import checker): an
|
|
98
|
+
* explicit `--canvas <name>` wins, else the durable `crtr canvas use` selection
|
|
99
|
+
* (`ScopeState.activeCanvas`), else the API-backed local source. The remote
|
|
100
|
+
* branch reuses the verified-openDb-free `RemoteCanvasSource` (plan Q-3). */
|
|
101
|
+
export declare function cliCanvasSource(opts?: {
|
|
102
|
+
canvasName?: string;
|
|
103
|
+
scope?: Scope;
|
|
104
|
+
}, sandboxed?: boolean): CanvasSource;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{closeSync as w,fstatSync as b,openSync as _,readSync as g}from"node:fs";import{join as S}from"node:path";import{gunzipSync as y}from"node:zlib";import{ApiError as l}from"../api/index.js";import{localClient as d}from"../api/node-transport.js";import{apiErrorToCliError as v}from"../core/io.js";import{autostartDisabled as C,daemonAutostartStartupFailure as N,ensureDaemon as T}from"../daemon/manage.js";import{DAEMON_STARTUP_WINDOW_MS as M}from"../daemon/startup-policy.js";import{readState as A}from"../core/config.js";import{resolveRemoteCanvasTarget as O}from"../core/remote-canvas-target.js";import{RemoteCanvasSource as R}from"../core/canvas/remote-canvas-source.js";import{crtrHome as I}from"../core/canvas/paths.js";import{isSandboxedNode as x}from"../shared/env.js";import{ownerOnly as D}from"../core/errors.js";function u(r){return{...r,fault:r.fault??null}}a(u,"withRowFault");function F(r,t){throw r instanceof l?v(r,t):r}a(F,"rethrowAsCliError");async function Z(r){try{return await h().getNode(r)}catch(t){if(t instanceof l&&t.status===404)return null;F(t)}}a(Z,"getNodeOrNull");const E=4096,L=20;function k(){let r;try{r=_(S(I(),"crtrd.log"),"r");const{size:t}=b(r),s=Math.max(0,t-E),n=t-s;if(n<=0)return;const e=Buffer.alloc(n);g(r,e,0,n,s);const o=e.toString("utf8").split(`
|
|
2
|
+
`).filter(c=>c.trim()!=="").slice(-L).join(`
|
|
3
|
+
`).trim();return o===""?void 0:`crtrd.log (tail):
|
|
4
|
+
${o}`}catch{return}finally{if(r!==void 0)try{w(r)}catch{}}}a(k,"readColdStartDiagnostic");function h(r){return process.env.CRTR_API_SOCKET?d({autostart:!1,...r?.timeoutMs!==void 0?{timeoutMs:r.timeoutMs}:{}}):C()?d({autostart:!1,...r?.timeoutMs!==void 0?{timeoutMs:r.timeoutMs}:{}}):d({...r?.timeoutMs!==void 0?{timeoutMs:r.timeoutMs}:{},onColdSocket:a(async()=>{T()},"onColdSocket"),coldStartDiagnostic:k,coldStartFailure:N,coldStartPollWindowMs:M})}a(h,"cliClient");const B=2e3;class p{static{a(this,"ApiCanvasSource")}client;rosterCache=null;rosterInFlight=null;constructor(t=h()){this.client=t}async roster(){const t=Date.now();return this.rosterCache!==null&&t-this.rosterCache.at<B?this.rosterCache.index:this.rosterInFlight!==null?this.rosterInFlight:(this.rosterInFlight=this.client.canvasRoster().then(s=>{const n={snapshot:s,subscriptions:new Map,subscribers:new Map};for(const e of s.edges){const i={node_id:e.to_id,active:e.active,created:e.created},o={node_id:e.from_id,active:e.active,created:e.created},c=n.subscriptions.get(e.from_id);c===void 0?n.subscriptions.set(e.from_id,[i]):c.push(i);const f=n.subscribers.get(e.to_id);f===void 0?n.subscribers.set(e.to_id,[o]):f.push(o)}return this.rosterCache={at:Date.now(),index:n},n}).finally(()=>{this.rosterInFlight=null}),this.rosterInFlight)}async orNull(t){try{return await t()}catch(s){if(s instanceof l&&s.status===404)return null;throw s}}async getNode(t){const s=await this.orNull(()=>this.client.getNode(t));return s===null?null:u(s)}async getRow(t){const s=await this.orNull(()=>this.client.getNode(t));return s===null?null:u(s)}async listNodes(t){const s=t?.status;let n;if(Array.isArray(s)){const e=new Set(s);n=(await this.client.listNodes()).filter(o=>e.has(o.status))}else s!==void 0?n=await this.client.listNodes({status:s}):n=await this.client.listNodes();return n.map(e=>u(e))}async browseSnapshot(){const t=await this.client.canvasBrowseCompressed(),s=JSON.parse(y(t).toString("utf8")),n={subscriptions:new Map,subscribers:new Map};for(const e of s.edges){const i=n.subscriptions.get(e.from_id)??[];i.push({node_id:e.to_id,active:e.active,created:e.created}),n.subscriptions.set(e.from_id,i);const o=n.subscribers.get(e.to_id)??[];o.push({node_id:e.from_id,active:e.active,created:e.created}),n.subscribers.set(e.to_id,o)}return this.rosterCache={at:Date.now(),index:n},s.nodes.map(e=>u(e))}async panelRoster(){const t=await this.roster();return t.snapshot!==void 0?t.snapshot:(this.rosterCache=null,(await this.roster()).snapshot)}async subscriptionsOf(t){return this.roster().then(s=>s.subscriptions.get(t)??[])}async subscribersOf(t){return this.roster().then(s=>s.subscribers.get(t)??[])}async view(t){const s=new Set([t]),n=[],e=(await this.subscriptionsOf(t)).map(i=>i.node_id);for(;e.length>0;){const i=e.shift();if(!s.has(i)){s.add(i),n.push(i);for(const o of await this.subscriptionsOf(i))s.has(o.node_id)||e.push(o.node_id)}}return n}async ticketCountsForNodes(t){return(await this.client.attentionCounts([...t])).counts}async ticketCountsForView(t){return this.ticketCountsForNodes([t,...await this.view(t)])}async newestReport(t){return(await this.client.getReports(t,{limit:1}))[0]??null}async hasActiveLiveSubscription(t){const s=(await this.subscriptionsOf(t)).filter(n=>n.active);for(const n of s){const e=await this.getRow(n.node_id);if(e&&(e.status==="active"||e.status==="idle"))return!0}return!1}}function tt(r,t=x()){const s=r?.scope??"user";if(t){if(r?.canvasName!==void 0)throw D("--canvas selects the person's remote canvas targets, which an app's node cannot reach","Omit --canvas; this node reads its own runtime's canvas.");return new p}const n=r?.canvasName??A(s).activeCanvas??null;if(!n)return new p;const{previewEndpoint:e,relayToken:i}=O(n,s);return new R(e,i)}a(tt,"cliCanvasSource");export{p as ApiCanvasSource,E as COLD_START_DIAGNOSTIC_TAIL_BYTES,tt as cliCanvasSource,h as cliClient,Z as getNodeOrNull,k as readColdStartDiagnostic,F as rethrowAsCliError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var c=(o,e)=>p(o,"name",{value:e,configurable:!0});import{defineBranch as f,defineLeaf as h}from"../core/command.js";import{InputError as d}from"../core/io.js";import{cliClient as u,cliCanvasSource as l}from"./api-client.js";async function w(o,e){return new Set([e,...await o.view(e)])}c(w,"viewNodeSet");const g=h({name:"count",description:"total pending human-ticket count (machine-parseable stdout.count)",whenToUse:"a lightweight summary when you just need the number, not which cwds are blocked \u2014 scope it to a node or a sub-DAG, or default to canvas-wide. Use `list` when you need to act on where to go answer.",help:{name:"canvas attention count",summary:"return the number of pending human tickets (asks, reviews, notifications); stdout.count is machine-parseable",params:[{kind:"flag",name:"node",type:"string",required:!1,constraint:"Count tickets asked by this node. Mutually exclusive with --view."},{kind:"flag",name:"view",type:"string",required:!1,constraint:"Sum tickets for all nodes in the sub-DAG rooted at this id. Mutually exclusive with --node."}],output:[{name:"count",type:"integer",required:!0,constraint:"Total pending human tickets in the requested scope."}],outputKind:"object",effects:["Read-only: scans humanloop interaction dirs."]},run:c(async o=>{const e=o.node,t=o.view;if(e!==void 0&&t!==void 0)throw new d({error:"ambiguous_scope",message:"--node and --view are mutually exclusive",next:"Use one of --node <id>, --view <id>, or neither (canvas-wide)."});if(e!==void 0){if(await l().getNode(e)===null)throw new d({error:"not_found",message:`no node: ${e}`,next:"List nodes with `crtr node inspect list`."});return{count:(await u().attentionCounts([e])).counts[e]??0}}const s=(await u().attention()).items;if(t!==void 0){const n=l();if(await n.getNode(t)===null)throw new d({error:"not_found",message:`no node: ${t}`,next:"List nodes with `crtr node inspect list`."});const i=await w(n,t);return{count:s.filter(r=>i.has(r.node_id)).reduce((r,m)=>r+m.count,0)}}return{count:s.reduce((n,i)=>n+i.count,0)}},"run")}),v=h({name:"list",description:"itemised list of cwds with pending human tickets",whenToUse:"finding which agents are blocked waiting on the user \u2014 an itemised list of the cwds with pending tickets (asks, reviews, notifications), oldest first, so you know where to go answer. Scope it to a sub-DAG or list canvas-wide. Use `canvas attention count` instead when you just need the number.",help:{name:"canvas attention list",summary:"list nodes that asked pending human tickets",params:[{kind:"flag",name:"view",type:"string",required:!1,constraint:"Scope the list to the sub-DAG rooted at this node id. Omit for canvas-wide."}],output:[{name:"items",type:"object[]",required:!0,constraint:"Each: {node_id, name, cwd, count}. One entry per asking node with count > 0."},{name:"total",type:"integer",required:!0,constraint:"Sum of counts across all entries."}],outputKind:"object",effects:["Read-only: scans humanloop interaction dirs."]},run:c(async o=>{const e=o.view;let t=(await u().attention()).items;if(e!==void 0){const n=l();if(await n.getNode(e)===null)throw new d({error:"not_found",message:`no node: ${e}`,next:"List nodes with `crtr node inspect list`."});const i=await w(n,e);t=t.filter(a=>i.has(a.node_id))}const s=t.reduce((n,i)=>n+i.count,0);return{items:t,total:s}},"run")}),b=h({name:"map",description:"per-node ticket counts for a visible set, batched in one pass",whenToUse:"labelling every node in a UI with its pending-ticket count in one batched pass \u2014 the form nav chrome polls (one process, one JSON blob) instead of N count shell-outs",tier:"hidden",help:{name:"canvas attention map",summary:"per-node pending human-ticket counts for a visible set of nodes in ONE pass \u2014 the batched form the nav chrome polls (one process, one JSON blob) instead of N count shell-outs",params:[{kind:"flag",name:"view",type:"string",required:!1,constraint:"Include this node and its whole sub-DAG (root + reports recursively). Union with --nodes. At least one of --view/--nodes is required."},{kind:"flag",name:"nodes",type:"string",required:!1,constraint:"Comma-separated explicit node ids to include (e.g. ancestry + peers). Union with --view."}],output:[{name:"counts",type:"object",required:!0,constraint:"Map of node_id \u2192 pending human-ticket count. Every requested id is present (0 when none)."}],outputKind:"object",effects:["Read-only: scans the registered humanloop node root once."]},run:c(async o=>{const e=o.view,t=o.nodes;if(e===void 0&&(t===void 0||t.trim()===""))throw new d({error:"missing_scope",message:"at least one of --view <id> or --nodes <a,b,c> is required",next:"Pass --view <root> to cover a sub-DAG, --nodes <a,b,c> for an explicit set, or both."});const s=l(),n=new Set;if(e!==void 0){if(await s.getNode(e)===null)throw new d({error:"not_found",message:`no node: ${e}`,next:"List nodes with `crtr node inspect list`."});n.add(e);for(const a of await s.view(e))n.add(a)}if(t!==void 0)for(const a of t.split(",").map(r=>r.trim()).filter(r=>r!==""))n.add(a);return{counts:(await u().attentionCounts([...n])).counts}},"run")}),S=f({name:"attention",description:"count/list pending human tickets across the graph",whenToUse:"checking whether any agent on the canvas is blocked waiting on the user, and where: count the pending tickets (asks, reviews, notifications) or list the cwds that have them. Scope it to a node or a sub-DAG, or go canvas-wide. Use `canvas dashboard` instead for the graph SHAPE, or `node inspect list` for a plain node roster",help:{name:"canvas attention",summary:"aggregate pending human tickets across the canvas",model:"`count` returns a single integer (stdout.count is machine-parseable) and accepts --node or --view; `list` returns itemised asking-node entries and accepts --view only. Both default to canvas-wide. A ticket is any humanloop interaction awaiting the user: an ask, a review, or a notification."},children:[g,v,b]});export{S as attentionBranch};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var r=Object.defineProperty;var o=(e,n)=>r(e,"name",{value:n,configurable:!0});import{defineLeaf as s}from"../../core/command.js";import{cliClient as a,rethrowAsCliError as i}from"../api-client.js";import{REF_CONSTRAINT as c}from"./read.js";const d=["acted-on","links-to","watches"],g=s({name:"edges",description:"list the edges of an object: acted-on, links-to, watches",whenToUse:"you need what a document links to or what links to it, who acted on an object, or who watches it. Records nothing.",help:{name:"canvas edges",summary:"list an object\u2019s acted-on, links-to and watches edges; records nothing",params:[{kind:"positional",name:"ref",required:!0,constraint:c},{kind:"flag",name:"type",type:"enum",choices:d,required:!1,constraint:"Only edges of this type. acted-on: an actor changed or wrote the object. links-to: a body names the object as `[[name]]`. watches: a watcher of the object."},{kind:"flag",name:"direction",type:"enum",choices:["out","in"],required:!1,constraint:"out: edges from this object; in: edges to it. Omit for both."}],output:[{name:"items",type:"string[]",required:!0,constraint:"One row per edge you can read both ends of: type, source and destination as id and `[[name]]`, and for links-to the name as the body wrote it."}],outputKind:"object",effects:["None. Listing edges records no watch."]},run:o(async e=>{const n={...e.type?{type:e.type}:{},...e.direction?{direction:e.direction}:{}};try{return{...await a().objects.edges(e.ref,n)}}catch(t){i(t)}},"run"),render:o(e=>{const{items:n}=e;return n.length===0?"No edges.":n.map(t=>`- ${t.type}: ${t.src.id} [[${t.src.name}]] \u2192 ${t.dst.id} [[${t.dst.name}]]${t.written_as?` (written as [[${t.written_as}]])`:""}`).join(`
|
|
2
|
+
`)},"render")});export{g as edgesLeaf};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});import{defineLeaf as a}from"../../core/command.js";import{PRIVACY_LEVELS_DTO as i}from"../../api/dto/objects.js";import{cliClient as c,rethrowAsCliError as d}from"../api-client.js";import{objectRow as l}from"./read.js";function m(e){const r=l(e);if(e.type!=="document")return r;const n=[`privacy=${e.privacy}`,e.rules!==void 0?`rules=${e.rules}`:""].filter(Boolean).join(" ");return`${r}
|
|
2
|
+
${n}${e.summary?` \u2014 ${e.summary}`:""}`}t(m,"listItemRow");const g=a({name:"list",description:"list objects by type, kind, owner, privacy or name prefix",whenToUse:"browsing what exists without reading it \u2014 the documents an owner holds, a node\u2019s reports, every job of a node. Records nothing, so listing does not make you a watcher.",help:{name:"canvas list",summary:"list the objects you can read, filtered; records nothing",params:[{kind:"flag",name:"type",type:"string",required:!1,constraint:"Only objects of this kind: document, node, job, person, app, repo or profile. The daemon rejects a name no kind declares and lists the kinds."},{kind:"flag",name:"kind",type:"string",required:!1,constraint:"Only objects of this kind: for documents knowledge, preference or report; for nodes the node kind."},{kind:"flag",name:"owner",type:"string",required:!1,constraint:"Only objects this owner owns directly: a node id, a handle, or any name `crtr canvas read` accepts."},{kind:"flag",name:"privacy",type:"enum",choices:[...i],required:!1,constraint:"Only objects at this privacy level."},{kind:"flag",name:"name",type:"string",required:!1,constraint:"Only objects whose name starts with this prefix."},{kind:"flag",name:"deleted",type:"bool",required:!1,constraint:"When present, lists deleted objects instead of live ones."},{kind:"flag",name:"limit",type:"int",required:!1,default:50,constraint:"Page size, 1 to 100."},{kind:"flag",name:"cursor",type:"string",required:!1,constraint:"The `next_cursor` of the previous page."}],output:[{name:"items",type:"string[]",required:!0,constraint:"One row per object: id, `[[name]]`, type/kind, owner handle and preview. A document row adds its privacy, its rule count and its summary."},{name:"next_cursor",type:"string",required:!1,constraint:"Pass as `--cursor` for the next page; absent on the last page."}],outputKind:"object",effects:["None. Listing records no watch."]},run:t(async e=>{const r={...e.type?{type:e.type}:{},...e.kind?{kind:e.kind}:{},...e.owner?{owner:e.owner}:{},...e.privacy?{privacy:e.privacy}:{},...e.name?{name:e.name}:{},...e.deleted===!0?{deleted:!0}:{},limit:e.limit??50,...e.cursor?{cursor:e.cursor}:{}};try{return{...await c().objects.list(r)}}catch(n){d(n)}},"run"),render:t(e=>{const{items:r,next_cursor:n}=e;if(r.length===0)return"No objects match.";const o=r.map(m);return n&&o.push("",`More: \`crtr canvas list \u2026 --cursor ${n}\`.`),o.join(`
|
|
3
|
+
`)},"render")});export{m as listItemRow,g as listLeaf};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LeafDef } from '../../core/command.js';
|
|
2
|
+
import type { ObjectReadDTO } from '../../api/dto/objects.js';
|
|
3
|
+
export declare const REF_CONSTRAINT = "A name (the `[[ ]]` brackets are optional) or a raw object id. A name is `<owner-handle>/<path>`; a node or other owner is also named by its id or handle.";
|
|
4
|
+
export { attr, objectRow } from '../../core/graph/kinds/render.js';
|
|
5
|
+
export declare function renderRead(result: ObjectReadDTO): string;
|
|
6
|
+
export declare function documentReadParts(result: ObjectReadDTO): {
|
|
7
|
+
body: string;
|
|
8
|
+
metadata: string;
|
|
9
|
+
context: string;
|
|
10
|
+
} | null;
|
|
11
|
+
/** Never mirror bodies into viewer metadata; a head's body belongs in the tool result. */
|
|
12
|
+
export declare function previewRead(result: ObjectReadDTO): Record<string, unknown>;
|
|
13
|
+
export declare function renderReadOutput(result: ObjectReadDTO): string;
|
|
14
|
+
export declare const readLeaf: LeafDef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var l=Object.defineProperty;var o=(t,e)=>l(t,"name",{value:e,configurable:!0});import{defineLeaf as p}from"../../core/command.js";import{attr as i,header as m,section as f}from"../../core/graph/kinds/render.js";import{PREVIEW_RESULT_PATH_ENV as c}from"../../core/preview-result-path.js";import{isJsonOutput as b}from"../../core/io.js";import{cliClient as w,rethrowAsCliError as y}from"../api-client.js";const j="A name (the `[[ ]]` brackets are optional) or a raw object id. A name is `<owner-handle>/<path>`; a node or other owner is also named by its id or handle.";import{attr as q,objectRow as O}from"../../core/graph/kinds/render.js";function h(t){if(t.state==="remote")return`No object named ${t.remote} on this runtime. It may be on another runtime, or the name may be misspelled.`;if(t.state==="deleted"){const e=t.deleted;return[`${m("deleted",e,i("deleted_at",e.deleted_at))}`,`Last preview: ${e.preview}`,"</deleted>"].join(`
|
|
2
|
+
`)}return`${t.text}
|
|
3
|
+
</object>`}o(h,"renderRead");function u(t){if(t.state!=="object"||t.type!=="document")return null;const e=t.data,n=t.object,r=[m("object",n,i("privacy",n.privacy)+i("revision",e.revision)),`Preview: ${n.preview}`];if(e.summary&&r.push(`Summary: ${e.summary}`),e.fields!==void 0&&r.push(`<fields>
|
|
4
|
+
${JSON.stringify(e.fields,null,2)}
|
|
5
|
+
</fields>`),e.needs_merge&&(e.heads.forEach((a,d)=>r.push(`<head${i("rev",a.rev_id)}${i("number",a.number)}${i("author",a.author_id)}>
|
|
6
|
+
${e.bodies[d]??""}
|
|
7
|
+
</head>`)),r.push(`This document has ${e.heads.length} heads. Your next \`crtr doc edit\` writes the merged body and joins them into one revision.`)),e.listing?.length){const a=e.listing.some(s=>s.owner?.id===n.owner?.id&&s.name.startsWith(`${n.name}/`)),d=e.listing.some(s=>s.owner?.id!==n.owner?.id||!s.name.startsWith(`${n.name}/`));r.push("",...f(a&&d?`Names under ${n.name}/ and documents it links to`:a?`Names under ${n.name}/`:"Documents it links to",e.listing))}return r.push("</object>"),{body:e.needs_merge?"":e.bodies[0]??"",metadata:r.join(`
|
|
8
|
+
`),context:e.attachments??""}}o(u,"documentReadParts");function v(t){const e=u(t);return e===null||t.state!=="object"||b()?t:{state:"object",type:"document",object:t.object,readMetadata:e.metadata,readContext:e.context}}o(v,"previewRead");function g(t){const e=u(t);if(e===null||process.env[c]===void 0&&process.stdout.isTTY)return h(t);const n=`${e.metadata}
|
|
9
|
+
${e.context?`${e.context}
|
|
10
|
+
`:""}`;return process.env[c]||process.stderr.write(n),e.body}o(g,"renderReadOutput");const k=p({name:"read",description:"read one object \u2014 a document, node, job or owner \u2014 by name or id",whenToUse:"you need the content or state of an object you can name: a document\u2019s body, a node\u2019s status and what it owns, a job\u2019s result. Reading makes you a watcher of the object. Find the name first with `crtr canvas search` or `crtr canvas list` when you do not know it.",help:{name:"canvas read",summary:"read one object by name or id and become a watcher of it",params:[{kind:"positional",name:"ref",required:!0,constraint:j},{kind:"flag",name:"fields",type:"bool",required:!1,constraint:"When present, a document read also returns its delivery rules, why-it-exists, unlisted, lint-ignore and plugin extension fields."}],output:[{name:"object",type:"string",required:!0,constraint:"A document prints only its exact body to stdout (including when piped or redirected). Its attributed `<object>` header, preview, summary, revision, listing, linked previews, and `<auto-loaded-context>` arrive AFTER command output in a node\u2019s tool result. Several heads print no stdout body; each head with its text appears in metadata, and the next `crtr doc edit` merges them. Outside a node, metadata goes to stderr when stdout is not a TTY; a TTY shows the full rendering as before. `--json` is unchanged. Non-document objects retain their full rendered stdout."},{name:"deleted",type:"string",required:!1,constraint:"`<deleted \u2026>` with the last preview when the object was deleted."},{name:"remote",type:"string",required:!1,constraint:"A line saying no object has that name on this runtime: it may be on another runtime, or the name may be misspelled."}],outputKind:"object",effects:["A live read records a watch on the object for you (every event subject) and publishes a read event to its other watchers. A deleted or remote answer records nothing."]},run:o(async t=>{try{return{...await w().objects.read(t.ref,t.fields===!0?{fields:!0}:void 0)}}catch(e){y(e)}},"run"),render:o(t=>g(t),"render"),preview:o(t=>v(t),"preview"),stdoutExact:o(t=>u(t)!==null&&!(process.env[c]===void 0&&process.stdout.isTTY),"stdoutExact")});export{j as REF_CONSTRAINT,q as attr,u as documentReadParts,O as objectRow,v as previewRead,k as readLeaf,h as renderRead,g as renderReadOutput};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var o=Object.defineProperty;var r=(e,t)=>o(e,"name",{value:t,configurable:!0});import{defineLeaf as i}from"../../core/command.js";import{cliClient as s,rethrowAsCliError as c}from"../api-client.js";import{listItemRow as d}from"./list.js";const p=i({name:"search",description:"search objects by name, preview or body text",whenToUse:"finding an object when you do not know its name \u2014 a document on a topic, a report that mentions something, the exact line a regex matches. Records nothing; read a hit with `crtr canvas read`.",help:{name:"canvas search",summary:"find the objects you can read by text; records nothing",params:[{kind:"positional",name:"text",required:!0,constraint:"Words matched against names, previews and summaries (and document bodies with --body)."},{kind:"flag",name:"body",type:"bool",required:!1,constraint:"When present, also matches document bodies."},{kind:"flag",name:"grep",type:"string",required:!1,constraint:"An ECMAScript regex matched against document body lines; each hit lists its matching lines with line numbers."},{kind:"flag",name:"type",type:"string",required:!1,constraint:"Only objects of this kind: document, node, job, person, app, repo or profile. The daemon rejects a name no kind declares and lists the kinds."},{kind:"flag",name:"kind",type:"string",required:!1,constraint:"Only objects of this kind."},{kind:"flag",name:"owner",type:"string",required:!1,constraint:"Only objects this owner owns directly: a node id, a handle, or any name `crtr canvas read` accepts."},{kind:"flag",name:"limit",type:"int",required:!1,constraint:"Most hits returned, 1 to 100."}],output:[{name:"items",type:"string[]",required:!0,constraint:"One row per hit, as `crtr canvas list` shows it, followed by the matching body lines when --grep is set."}],outputKind:"object",effects:["None. Searching records no watch."]},run:r(async e=>{const t={text:e.text,...e.body===!0?{body:!0}:{},...e.grep?{grep:e.grep}:{},...e.type?{type:e.type}:{},...e.kind?{kind:e.kind}:{},...e.owner?{owner:e.owner}:{},...e.limit?{limit:e.limit}:{}};try{return{...await s().objects.search(t)}}catch(n){c(n)}},"run"),render:r(e=>{const{items:t}=e;return t.length===0?"No objects match.":t.map(n=>[d(n.object),...(n.matches??[]).map(a=>` ${a.line}: ${a.text}`)].join(`
|
|
2
|
+
`)).join(`
|
|
3
|
+
`)},"render")});export{p as searchLeaf};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var o=(e,t)=>a(e,"name",{value:t,configurable:!0});import{defineLeaf as n}from"../../core/command.js";import{routes as s}from"../../api/routes.js";import{publishToken as c}from"../custom-object/shared.js";import{cliClient as i,rethrowAsCliError as m}from"../api-client.js";import{REF_CONSTRAINT as u}from"./read.js";import{PATTERN_CONSTRAINT as d}from"./watch.js";const b=n({name:"unwatch",description:"stop watching an object as yourself or a custom object",whenToUse:"you or your custom object no longer need an object\u2019s events \u2014 a document you read once, a node whose work no longer concerns you.",help:{name:"canvas unwatch",summary:"remove your or a custom object\u2019s watch, optionally for one pattern only",params:[{kind:"positional",name:"ref",required:!0,constraint:u},{kind:"flag",name:"pattern",type:"string",required:!1,constraint:`Remove only this pattern. ${d} Omit to remove every pattern.`},{kind:"flag",name:"as",type:"string",required:!1,constraint:"Custom-object ref whose watch to remove instead of your node\u2019s. Use an authorized principal or its publish token via CRTR_PUBLISH_TOKEN."}],output:[{name:"unwatched",type:"string",required:!0,constraint:"The object and how many watch patterns were removed."}],outputKind:"object",effects:["Removes the watcher\u2019s patterns on the object; its events stop reaching that receiver. Watches that keep a spawned node in your tree are removed the same way."]},run:o(async e=>{try{const t={...e.pattern?{pattern:e.pattern}:{},...e.as?{watcher:e.as}:{}},r=new URLSearchParams(t);return{...await i().request("DELETE",`${s.objectWatch(e.ref)}?${r}`,void 0,e.as?c(e):void 0)}}catch(t){m(t)}},"run"),render:o(e=>{const{object:t,removed:r}=e;return`<unwatched id="${t.id}" name="${t.name}" removed="${r}">`},"render")});export{b as unwatchLeaf};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LeafDef } from '../../core/command.js';
|
|
2
|
+
export declare const PATTERN_CONSTRAINT = "An event subject pattern: dot-separated segments, where `*` matches exactly one segment and `>` matches one or more trailing segments. `>` alone matches every event.";
|
|
3
|
+
export declare const watchLeaf: LeafDef;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var n=(e,t)=>i(e,"name",{value:t,configurable:!0});import{defineLeaf as c}from"../../core/command.js";import{usage as u}from"../../core/errors.js";import{cliClient as d,rethrowAsCliError as h}from"../api-client.js";import{routes as l}from"../../api/routes.js";import{publishToken as f}from"../custom-object/shared.js";import{REF_CONSTRAINT as m}from"./read.js";const p="An event subject pattern: dot-separated segments, where `*` matches exactly one segment and `>` matches one or more trailing segments. `>` alone matches every event.";function a(e,t){if(t===void 0)return;let r;try{r=JSON.parse(t)}catch{r=void 0}if(r===null||typeof r!="object"||Array.isArray(r))throw u(`--${e} must be a JSON object`,{field:e,received:t,next:`Run \`crtr canvas watch -h\` for the --${e} shape.`});return r}n(a,"parseJsonObject");const N=c({name:"watch",description:"watch an object as yourself or as a custom object",whenToUse:"you or a registered custom object should receive an object\u2019s future events \u2014 a document edit, a node report \u2014 without reading it now. Reading already makes you a watcher; use this for patterns or a listening configuration.",help:{name:"canvas watch",summary:"make yourself or a custom object a watcher, optionally for chosen events only",params:[{kind:"positional",name:"ref",required:!0,constraint:m},{kind:"flag",name:"pattern",type:"string",required:!1,repeatable:!0,constraint:`${p} Default \`>\`.`},{kind:"flag",name:"listen",type:"string",required:!1,constraint:'JSON object mapping an event level (1\u201310) to how it reaches you: `{"<level>":"interrupt|steer|after-turn|next-turn"}`. Omitted levels use the watcher\u2019s listening default (your node or --as object).'},{kind:"flag",name:"filter",type:"string",required:!1,constraint:"JSON object of event fields an event must match to be delivered."},{kind:"flag",name:"as",type:"string",required:!1,constraint:"Custom-object ref to watch as instead of your node. Its receiver gets events under its owner\u2019s read rights; use an authorized principal or its publish token via CRTR_PUBLISH_TOKEN."}],output:[{name:"watching",type:"string",required:!0,constraint:"The object and the patterns you now watch it for."}],outputKind:"object",effects:["Records a watch; matching events reach your node or the --as object\u2019s receiver, and the watched object\u2019s other watchers see a watched event."]},run:n(async e=>{const t=a("listen",e.listen),r=a("filter",e.filter),o={...Array.isArray(e.pattern)?{patterns:e.pattern}:{},...t?{config:t}:{},...r?{filter:r}:{},...e.as?{watcher:e.as}:{}};try{return{...await d().request("POST",l.objectWatch(e.ref),o,e.as?f(e):void 0)}}catch(s){h(s)}},"run"),render:n(e=>{const{object:t,patterns:r}=e;return`<watching id="${t.id}" name="${t.name}" patterns="${r.join(" ")}">`},"render")});export{p as PATTERN_CONSTRAINT,N as watchLeaf};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Horizontal bar at eighth-cell resolution, `value` scaled against `max` over
|
|
2
|
+
* `cells` columns, padded to exactly `cells`. A non-zero value shows at least
|
|
3
|
+
* one eighth, so it never reads as zero. */
|
|
4
|
+
export declare function hbar(value: number, max: number, cells: number): string;
|
|
5
|
+
/** The fills a stacked bar uses, in order. The last one is for "other". */
|
|
6
|
+
export declare const STACK_FILLS: readonly ["█", "▓", "▒", "░"];
|
|
7
|
+
export declare const OTHER_FILL = "\u259A";
|
|
8
|
+
/** One fill per part: the first four parts take `STACK_FILLS`, any later part
|
|
9
|
+
* takes `OTHER_FILL`. Callers put "other" last. */
|
|
10
|
+
export declare function stackFill(index: number): string;
|
|
11
|
+
/** A bar of exactly `cells` whole cells split by share of the parts' total.
|
|
12
|
+
* Each non-zero part gets at least one cell while cells allow, so a part that
|
|
13
|
+
* exists never disappears from the bar. `fills[i]` defaults to `stackFill(i)`. */
|
|
14
|
+
export declare function stackedBar(parts: readonly number[], cells: number, fills?: readonly string[]): string;
|
|
15
|
+
/** The legend for a stacked bar: "█ opus ▓ sonnet ▒ codex ░ gemini ▚ other". */
|
|
16
|
+
export declare function stackLegend(labels: readonly string[], fills?: readonly string[]): string;
|
|
17
|
+
/** A column chart `rows` high, top row first. Each value is one column of
|
|
18
|
+
* `columnWidth` cells, columns separated by `gap` spaces, scaled to the
|
|
19
|
+
* largest value at eighth-cell resolution. A non-zero value shows at least ▁. */
|
|
20
|
+
export declare function columnChart(values: readonly number[], rows: number, columnWidth?: number, gap?: number): string[];
|
|
21
|
+
/** A log-scale axis from `minMs` to `maxMs` over `cells` columns. */
|
|
22
|
+
export interface LogAxis {
|
|
23
|
+
minMs: number;
|
|
24
|
+
maxMs: number;
|
|
25
|
+
cells: number;
|
|
26
|
+
}
|
|
27
|
+
/** The column (0 … cells−1) for `ms` on a log axis; values outside the axis
|
|
28
|
+
* sit at its end. */
|
|
29
|
+
export declare function logPosition(ms: number, axis: LogAxis): number;
|
|
30
|
+
/** A percentile line on a log axis: `─` from p10 to p90 and `●` at the
|
|
31
|
+
* median, padded to exactly `axis.cells`. One sample (p10 = p90) is one `●`. */
|
|
32
|
+
export declare function percentileLine(stats: {
|
|
33
|
+
p10_ms: number;
|
|
34
|
+
median_ms: number;
|
|
35
|
+
p90_ms: number;
|
|
36
|
+
}, axis: LogAxis): string;
|
|
37
|
+
/** Tick labels placed at their log positions over `axis.cells` columns, each
|
|
38
|
+
* label starting at its tick; a label that would overlap the previous one is
|
|
39
|
+
* dropped. */
|
|
40
|
+
export declare function logAxisLabels(ticks: ReadonlyArray<{
|
|
41
|
+
ms: number;
|
|
42
|
+
label: string;
|
|
43
|
+
}>, axis: LogAxis): string;
|
|
44
|
+
/** A ranked list folded to its first `keep` rows plus the rest as one sum, for
|
|
45
|
+
* "<n> more …" rows. The rest is undefined when nothing is folded. */
|
|
46
|
+
export declare function foldRanked<T>(rows: readonly T[], keep: number, value: (row: T) => number): {
|
|
47
|
+
top: T[];
|
|
48
|
+
rest: {
|
|
49
|
+
count: number;
|
|
50
|
+
sum: number;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var l=(n,t)=>p(n,"name",{value:t,configurable:!0});const M=["","\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589"],b="\u2588";function k(n,t,e){if(e<=0)return"";if(t<=0||n<=0)return" ".repeat(e);const o=Math.max(1,Math.round(Math.min(n,t)/t*e*8)),i=Math.floor(o/8);return"\u2588".repeat(i)+M[o%8]+" ".repeat(e-i-(o%8===0?0:1))}l(k,"hbar");const d=["\u2588","\u2593","\u2592","\u2591"],g="\u259A";function s(n){return d[n]??g}l(s,"stackFill");function _(n,t,e){const o=n.reduce((r,a)=>r+Math.max(0,a),0);if(t<=0)return"";if(o<=0)return" ".repeat(t);const i=n.map(r=>Math.max(0,r)/o*t),c=i.map(Math.floor);let h=t-c.reduce((r,a)=>r+a,0);const f=i.map((r,a)=>({i:a,r:r-Math.floor(r)})).sort((r,a)=>a.r-r.r);for(const{i:r}of f){if(h===0)break;c[r]+=1,h-=1}for(let r=0;r<n.length;r+=1){if(n[r]<=0||c[r]>0)continue;let a=0;for(let u=1;u<c.length;u+=1)c[u]>c[a]&&(a=u);if(c[a]<=1)break;c[a]-=1,c[r]=1}return c.map((r,a)=>(e?.[a]??s(a)).repeat(r)).join("")}l(_,"stackedBar");function j(n,t){return n.map((e,o)=>`${t?.[o]??s(o)} ${e}`).join(" ")}l(j,"stackLegend");const L=[" ","\u2581","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588"];function E(n,t,e=2,o=1){const i=Math.max(0,...n),c=n.map(f=>f<=0||i<=0?0:Math.max(1,Math.round(f/i*t*8))),h=[];for(let f=t-1;f>=0;f-=1){const r=c.map(a=>{const u=Math.max(0,Math.min(8,a-f*8));return L[u].repeat(e)});h.push(r.join(" ".repeat(o)))}return h}l(E,"columnChart");function m(n,t){if(t.cells<=1)return 0;const e=Math.min(t.maxMs,Math.max(t.minMs,n)),o=Math.log(e/t.minMs)/Math.log(t.maxMs/t.minMs);return Math.round(o*(t.cells-1))}l(m,"logPosition");function F(n,t){const e=Array.from({length:t.cells},()=>" "),o=m(n.p10_ms,t),i=m(n.p90_ms,t);for(let c=o;c<=i;c+=1)e[c]="\u2500";return e[m(n.median_ms,t)]="\u25CF",e.join("")}l(F,"percentileLine");function H(n,t){let e="";for(const o of n){const i=Math.min(m(o.ms,t),Math.max(0,t.cells-o.label.length));i<e.length+(e===""?0:1)||(e=e.padEnd(i)+o.label)}return e.padEnd(t.cells).slice(0,t.cells)}l(H,"logAxisLabels");function I(n,t,e){if(n.length<=t)return{top:[...n],rest:void 0};const o=n.slice(0,Math.max(0,t)),i=n.slice(o.length);return{top:o,rest:{count:i.length,sum:i.reduce((c,h)=>c+e(h),0)}}}l(I,"foldRanked");export{g as OTHER_FILL,d as STACK_FILLS,E as columnChart,I as foldRanked,k as hbar,H as logAxisLabels,m as logPosition,F as percentileLine,s as stackFill,j as stackLegend,_ as stackedBar};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AnalyticsDTO } from '../../api/dto/analytics.js';
|
|
2
|
+
import { type AnalyticsNav } from './view.js';
|
|
3
|
+
/** A text column shares the free width with the other text columns (at most
|
|
4
|
+
* `max` cells); a number column is as wide as its widest value, right-aligned. */
|
|
5
|
+
export interface DrillColumn {
|
|
6
|
+
header: string;
|
|
7
|
+
kind: 'text' | 'number';
|
|
8
|
+
max?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface DrillRow {
|
|
11
|
+
node_id: string;
|
|
12
|
+
graph_id: string;
|
|
13
|
+
cells: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare class AgentDrilldown {
|
|
16
|
+
private readonly title;
|
|
17
|
+
private readonly columns;
|
|
18
|
+
private readonly rows;
|
|
19
|
+
private readonly nav;
|
|
20
|
+
private cursor;
|
|
21
|
+
constructor(title: string, columns: readonly DrillColumn[], rows: readonly DrillRow[], nav: AnalyticsNav);
|
|
22
|
+
render(width: number, height: number): string[];
|
|
23
|
+
/** 'close' on Esc: the owning view pops this list. */
|
|
24
|
+
handleKey(key: string): 'handled' | 'close' | 'unhandled';
|
|
25
|
+
keyLine(narrow: boolean): string;
|
|
26
|
+
private line;
|
|
27
|
+
private widths;
|
|
28
|
+
/** The selected row's text cells in full, when any of them was cut. */
|
|
29
|
+
private fullText;
|
|
30
|
+
}
|
|
31
|
+
/** A graph's display name: its graph row (root title, else root name), else
|
|
32
|
+
* the root agent's name, else the id. A graph with no active agent in the
|
|
33
|
+
* window has no graph row. */
|
|
34
|
+
export declare function graphName(data: AnalyticsDTO, graphId: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var a=(u,e)=>p(u,"name",{value:e,configurable:!0});import{matchesKey as l,visibleWidth as c}from"@earendil-works/pi-tui";import{theme as d}from"../../core/tui/panel.js";import{padLeft as g,padRight as w,truncate as m}from"./format.js";import{listWindow as x,markRow as M,moreRow as _}from"./view.js";const f=" ";class R{static{a(this,"AgentDrilldown")}title;columns;rows;nav;cursor=0;constructor(e,t,n,i){this.title=e,this.columns=t,this.rows=n,this.nav=i}render(e,t){const n=[d.bold(m(this.title,e))];if(this.rows.length===0)return[...n,"None in this window."];const i=this.widths(e);n.push(d.fg("dim",` ${this.line(this.columns.map(o=>o.header),i)}`));const h=this.fullText(i),s=Math.max(1,t-n.length-(h===void 0?0:1)),r=x(this.rows.length,this.cursor,s);for(let o=r.start;o<r.end;o+=1)n.push(M(this.line(this.rows[o].cells,i),o===this.cursor));return r.more>0&&n.push(_(r.more,"agents")),h!==void 0&&n.push(d.fg("dim",m(` ${h}`,e))),n}handleKey(e){if(l(e,"escape"))return"close";if(l(e,"down")||l(e,"j"))this.cursor=Math.min(this.rows.length-1,this.cursor+1);else if(l(e,"up")||l(e,"k"))this.cursor=Math.max(0,this.cursor-1);else if(l(e,"enter")){const t=this.rows[this.cursor];t!==void 0&&this.nav.openGraphDetail(t.graph_id,t.node_id)}else return"unhandled";return this.cursor=Math.max(0,this.cursor),"handled"}keyLine(e){return this.rows.length===0?"":e?"\u2191\u2193 Enter":"\u2191\u2193 agent \xB7 Enter: its graph, agent selected"}line(e,t){return e.map((n,i)=>this.columns[i].kind==="number"?g(n,t[i]):w(n,t[i])).join(f)}widths(e){const t=this.columns.map((s,r)=>Math.min(s.max??1/0,Math.max(c(s.header),...this.rows.map(o=>c(o.cells[r]??""))))),n=this.columns.flatMap((s,r)=>s.kind==="text"?[r]:[]),i=t.reduce((s,r,o)=>s+(this.columns[o].kind==="number"?r:0),0);let h=e-2-i-f.length*(this.columns.length-1);return n.sort((s,r)=>t[s]-t[r]),n.forEach((s,r)=>{t[s]=Math.max(4,Math.min(t[s],Math.floor(h/(n.length-r)))),h-=t[s]}),t}fullText(e){const t=this.rows[this.cursor];if(t===void 0)return;const n=t.cells.filter((h,s)=>this.columns[s].kind==="text");return t.cells.some((h,s)=>this.columns[s].kind==="text"&&c(h)>e[s])?n.join(" \xB7 "):void 0}}function $(u,e){const t=u.graphs.ok?u.graphs.value.graphs.find(n=>n.graph_id===e):void 0;return t!==void 0?t.root_deleted?`${t.name} (root deleted)`:t.name:u.agents.find(n=>n.node_id===e)?.name??e}a($,"graphName");export{R as AgentDrilldown,$ as graphName};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** API-price estimate: "<$1" under one dollar, whole dollars otherwise ("$4",
|
|
2
|
+
* "$1,236"). Exactly zero reads "$0": "<$1" would claim a non-zero amount. */
|
|
3
|
+
export declare function formatPrice(dollars: number): string;
|
|
4
|
+
/** Tokens with 2–3 significant figures and k/M/B ("950", "9.8M", "121M"). */
|
|
5
|
+
export declare function formatTokens(tokens: number): string;
|
|
6
|
+
/** Durations: "<1m", "14m", "1h 30m", "1h", "1d 4h", "2d". Rounded down. */
|
|
7
|
+
export declare function formatDuration(ms: number): string;
|
|
8
|
+
/** Counts with thousands separators ("1,376"). */
|
|
9
|
+
export declare function formatCount(n: number): string;
|
|
10
|
+
/** A 0–1 ratio as a whole percentage ("90%"). */
|
|
11
|
+
export declare function formatShare(ratio: number): string;
|
|
12
|
+
/** "1 graph" / "14 graphs", count formatted. */
|
|
13
|
+
export declare function plural(n: number, one: string, many: string): string;
|
|
14
|
+
/** A failed measure, in place of its numbers. */
|
|
15
|
+
export declare function unavailable(reason: string): string;
|
|
16
|
+
/** Cut to `width` columns, ending in "…" when cut. */
|
|
17
|
+
export declare function truncate(text: string, width: number): string;
|
|
18
|
+
/** Cut or pad to exactly `width` columns, left-aligned. */
|
|
19
|
+
export declare function padRight(text: string, width: number): string;
|
|
20
|
+
/** Cut or pad to exactly `width` columns, right-aligned (numbers). */
|
|
21
|
+
export declare function padLeft(text: string, width: number): string;
|
|
22
|
+
/** Local weekday and time, "Thu 18:00". Arithmetic stays UTC; only labels are local. */
|
|
23
|
+
export declare function formatClock(at: string | number | Date): string;
|
|
24
|
+
/** Local time of day, "18:00". */
|
|
25
|
+
export declare function formatTimeOfDay(at: string | number | Date): string;
|
|
26
|
+
/** Local date and time, "Sep 3 18:00". */
|
|
27
|
+
export declare function formatDateTime(at: string | number | Date): string;
|
|
28
|
+
/** The local timezone abbreviation, "PDT". */
|
|
29
|
+
export declare function formatTimezone(at: string | number | Date): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var x=Object.defineProperty;var o=(t,n)=>x(t,"name",{value:n,configurable:!0});import{truncateToWidth as d,visibleWidth as s}from"@earendil-works/pi-tui";function D(t){return t===0?"$0":t<1?"<$1":`$${m(Math.round(t))}`}o(D,"formatPrice");const l=[[1e9,"B"],[1e6,"M"],[1e3,"k"]];function S(t){const n=Math.round(t);if(n<1e3)return String(n);for(const[r,a]of l){if(n<r)continue;const e=n/r,p=e<10?e.toFixed(1).replace(/\.0$/,""):String(Math.round(e));return p==="1000"&&a!=="B"?S(r*1e3):`${p}${a}`}return String(n)}o(S,"formatTokens");const i=6e4,u=60*i,f=24*u;function T(t){if(t<i)return"<1m";if(t<u)return`${Math.floor(t/i)}m`;if(t<f){const a=Math.floor(t/u),e=Math.floor(t%u/i);return e===0?`${a}h`:`${a}h ${e}m`}const n=Math.floor(t/f),r=Math.floor(t%f/u);return r===0?`${n}d`:`${n}d ${r}h`}o(T,"formatDuration");function m(t){return t.toLocaleString("en-US")}o(m,"formatCount");function y(t){return`${Math.round(t*100)}%`}o(y,"formatShare");function U(t,n,r){return`${m(t)} ${t===1?n:r}`}o(U,"plural");function k(t){return`unavailable: ${t}`}o(k,"unavailable");function $(t,n){return d(t,Math.max(0,n),"\u2026")}o($,"truncate");function v(t,n){const r=$(t,n);return r+" ".repeat(Math.max(0,n-s(r)))}o(v,"padRight");function N(t,n){const r=$(t,n);return" ".repeat(Math.max(0,n-s(r)))+r}o(N,"padLeft");const c=o(t=>t instanceof Date?t:new Date(t),"toDate");function L(t){const n=c(t);return`${n.toLocaleDateString("en-US",{weekday:"short"})} ${h(n)}`}o(L,"formatClock");function h(t){const n=c(t);return`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}`}o(h,"formatTimeOfDay");function b(t){const n=c(t);return`${n.toLocaleDateString("en-US",{month:"short",day:"numeric"})} ${h(n)}`}o(b,"formatDateTime");function w(t){return new Intl.DateTimeFormat("en-US",{timeZoneName:"short"}).formatToParts(c(t)).find(r=>r.type==="timeZoneName")?.value??"local time"}o(w,"formatTimezone");export{L as formatClock,m as formatCount,b as formatDateTime,T as formatDuration,D as formatPrice,y as formatShare,h as formatTimeOfDay,w as formatTimezone,S as formatTokens,N as padLeft,v as padRight,U as plural,$ as truncate,k as unavailable};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var q=Object.defineProperty;var p=(r,t)=>q(r,"name",{value:t,configurable:!0});import{matchesKey as u,visibleWidth as K}from"@earendil-works/pi-tui";import{rule as V,theme as g,wrapText as C}from"../../core/tui/panel.js";import{formatClock as b,formatDuration as U,formatPrice as y,formatTimeOfDay as E,formatTokens as H,padLeft as x,padRight as T,plural as W,unavailable as J}from"./format.js";import{fullNameLine as Q,graphLabel as X}from"./graphs.js";import{isNarrow as Y,listWindow as Z,markRow as I}from"./view.js";const w=6e4,A=[1,2,5,7.5,10,15,30,60,120,180,240],B=[15,30,60,120,180,360,720,1440,2880];function ee(r){const t=new Set(r.map(e=>e.node_id)),o=[...r].sort((e,i)=>Date.parse(e.created)-Date.parse(i.created)||e.node_id.localeCompare(i.node_id)),n=new Map,s=[];for(const e of o)if(e.parent!==null&&t.has(e.parent)){const i=n.get(e.parent)??[];i.push(e),n.set(e.parent,i)}else s.push(e);const a=[],d=p((e,i,l)=>{a.push({agent:e,guide:i+l});const h=n.get(e.node_id)??[],_=l===""?i:i+(l==="\u251C "?"\u2502 ":" ");h.forEach((v,D)=>d(v,_,D===h.length-1?"\u2514 ":"\u251C "))},"walk");for(const e of s)d(e,"","");return a}p(ee,"treeRows");function R(r){return`${r.guide}${r.agent.kind} ${r.agent.name}`}p(R,"rowLabel");function te(r){return r<60?`${r}-min`:`${r/60}-hour`}p(te,"slotLabel");function F(r,t,o){const n=-new Date(r).getTimezoneOffset()*w;let s;for(const a of A){const d=a*w,e=Math.floor((r+n)/d)*d-n,i=Math.floor((t-e)/d)+1;if(s={start:e,slotMs:d,slots:i,offset:n},i<=o)break}return s}p(F,"timelineFor");function ne(r,t){const o=r.slotMs/w,n=r.slots*r.slotMs>1440*w,s=n?9:5,d=(B.find(i=>i>=o&&i%o===0&&i/o>=s+2)??B.at(-1))*w;let e="";for(let i=0;i<r.slots&&i<t;i+=1){const l=r.start+i*r.slotMs;if((l+r.offset)%d!==0||i<e.length+(e===""?0:1))continue;const h=n?b(l):E(l);if(i+h.length>t)break;e=e.padEnd(i)+h}return e.padEnd(t).slice(0,t)}p(ne,"axisLine");function se(r,t,o){const n=Date.parse(r.created),s=r.finalized_at===null?void 0:Date.parse(r.finalized_at),a=new Set(r.response_times_ms.map(e=>Math.floor((e-t.start)/t.slotMs)));let d="";for(let e=0;e<Math.min(t.slots,o);e+=1){const i=t.start+e*t.slotMs,l=i+t.slotMs;s!==void 0&&s>=i&&s<l?d+="\u25C6":a.has(e)?d+="\u2588":n<l&&(s===void 0||s>=l)?d+="\u2500":d+=" "}return d.padEnd(o)}p(se,"timelineCells");function oe(r){return r.agent_time_ms!==null?U(r.agent_time_ms):r.lifecycle==="resident"?"resident":"open"}p(oe,"createdToFinal");class re{static{p(this,"GraphDetailView")}ctx;rows;graph;rootName;root;unlisted;cursor=0;report;constructor(t,o,n){this.ctx=t;const s=t.data;this.graph=s.graphs.ok?s.graphs.value.graphs.find(e=>e.graph_id===o):void 0;const a=new Map(s.agents.map(e=>[e.node_id,e])),d=new Map(s.agents.filter(e=>e.graph_id===o&&e.in_graph_detail).map(e=>[e.node_id,e]));for(let e=n===void 0?void 0:a.get(n);e!==void 0&&!d.has(e.node_id);e=e.parent===null?void 0:a.get(e.parent))d.set(e.node_id,e);this.rows=ee([...d.values()]),this.cursor=Math.max(0,this.rows.findIndex(e=>e.agent.node_id===n)),this.unlisted=n!==void 0&&!a.has(n)?this.readerNamed(n):void 0,this.root=s.agents.find(e=>e.graph_id===o&&e.parent===null),this.rootName=this.graph!==void 0?X(this.graph):this.root?.name??o}readerNamed(t){const o=this.ctx.data.memory;return o.ok?[...o.value.read.rows,...o.value.loaded.rows].flatMap(s=>s.readers).find(s=>s.node_id===t):void 0}get selected(){return this.rows[this.cursor]?.agent}handleKey(t){if(this.report!==void 0){if(u(t,"escape")||u(t,"r"))this.report=void 0;else if(u(t,"down")||u(t,"j"))this.report.scroll+=1;else if(u(t,"up")||u(t,"k"))this.report.scroll=Math.max(0,this.report.scroll-1);else return"unhandled";return"handled"}if(u(t,"escape"))return"back";const o=this.selected;if(u(t,"up")||u(t,"k"))this.cursor=Math.max(0,this.cursor-1);else if(u(t,"down")||u(t,"j"))this.cursor=Math.min(this.rows.length-1,this.cursor+1);else{if(o===void 0)return"unhandled";if(u(t,"enter"))this.ctx.nav.openInspector(o.node_id);else if(u(t,"o"))this.ctx.nav.openConversation(o.node_id);else if(u(t,"r")){if(o.final_report_ref===null)return"handled";this.openReport(o.final_report_ref,`${o.kind} ${o.name}`)}else return"unhandled"}return"handled"}openReport(t,o){const n={ref:t,name:o,scroll:0,text:void 0,error:void 0};this.report=n,this.ctx.nav.readFinalReport(t).then(s=>{n.text=s,this.ctx.nav.requestRender()},s=>{n.error=s instanceof Error?s.message:String(s),this.ctx.nav.requestRender()})}keyLine(t){if(this.report!==void 0)return t?"\u2191\u2193":"\u2191\u2193 scroll";if(this.rows.length===0)return"";const o=this.selected?.final_report_ref!==null;return t?["\u2191\u2193 Enter",...o?["r"]:[],"o open, may wake it"].join(" "):["\u2191\u2193 agent \xB7 Enter inspect, read-only",...o?["r final report"]:[],"o open, may wake it"].join(" \xB7 ")}escapeLabel(){return this.report!==void 0?"close report":void 0}render(t,o,n){const s=this.header(t,n),a=this.report!==void 0?this.reportBody(t,o-s.length,this.report):this.treeBody(t,o-s.length);return[...s,...a]}header(t,o){const n=[g.bold(`< Graphs / ${this.rootName}`)],s=this.graph,a=p((d,e,i)=>`Root: ${d} \xB7 ${e==="resident"?"resident conversation":"terminal"} \xB7 created ${b(i)}`,"rootLine");return o.graphs.ok?s===void 0?(this.root!==void 0&&n.push(a(this.root.kind,this.root.lifecycle,this.root.created)),n.push("No agent in this graph had a model response in this window.")):(n.push(a(s.root_kind,s.root_lifecycle,s.root_created)),n.push(`${W(s.active_agents,"agent","agents")} \xB7 depth ${s.depth} \xB7 ${H(s.tokens)} tokens \xB7 ${y(s.api_price_estimate)} API-price est.`)):n.push(J(o.graphs.reason)),n.push(V(t)),n}treeBody(t,o){if(!this.ctx.data.graphs.ok||this.rows.length===0)return[];const n=Y(t),s=15,a=9,d=Math.max(0,...this.rows.map(f=>K(R(f))));let e=n?t-2-s-a:Math.max(20,Math.min(d,Math.floor(t*.4)));const i=p(f=>n?0:Math.max(10,t-2-f-1-s-a),"cellsFor");let l=i(e);const h=[],_=this.rows.flatMap(f=>f.agent.response_times_ms),v=Math.min(..._),D=Math.max(..._);let c=!n&&_.length>0?F(v,D,l):void 0;if(c!==void 0&&c.slots>l&&(e=Math.max(20,e-(c.slots-l)),l=i(e),c=F(v,D,l)),!n)if(c===void 0)h.push("Timeline: no model responses in this window.");else{const f=c.start+Math.min(c.slots,l)*c.slotMs,m=new Date(c.start).toDateString()===new Date(f-1).toDateString()?`${E(c.start)}\u2013${E(f)}`:`${b(c.start)}\u2013${b(f)}`;h.push(`Timeline: ${m}, the part of the window with activity`)}const j=c===void 0?" ".repeat(l):ne(c,l);h.push(g.fg("dim",` ${T("Agent",e)}${n?"":` ${j}`}${x("created\u2192final",s)}${x("est.",a)}`));const S=c===void 0?[]:["",g.fg("dim",`\u2588 ${te(c.slotMs/w)} slot with a model response \u2500 alive, no response \u25C6 final report`)],z=this.rows[this.cursor],L=Q(R(z),e),k=this.unlisted!==void 0?g.fg("dim",` ${this.unlisted.kind} ${this.unlisted.name} had no model response, spawn, or final report in this window, so it has no row here.`):void 0,G=S.length+(L!==void 0?1:0)+(k!==void 0?1:0),M=Z(this.rows.length,this.cursor,Math.max(1,o-h.length-G));for(let f=M.start;f<M.end;f+=1){const $=this.rows[f],m=$.agent,N=T(R($),e),O=n?"":` ${c===void 0?" ".repeat(l):se(m,c,l)}`,P=m.active?y(m.api_price_estimate):"\u2014";h.push(I(`${N}${O}${x(oe(m),s)}${x(P,a)}`,f===this.cursor))}if(M.more>0){const f=this.rows.slice(M.end).reduce((m,N)=>m+N.agent.api_price_estimate,0),$=` ${W(M.more,"more agent","more agents")} \u2193`;h.push(`${T($,t-a)}${x(y(f),a)}`)}return L!==void 0&&h.push(L),k!==void 0&&h.push(k),h.push(...S),h}reportBody(t,o,n){const s=g.bold(`Final report \xB7 ${n.name}`);if(n.error!==void 0)return[s,"",...C(`Could not read the final report: ${n.error}`,t)];if(n.text===void 0)return[s,"","Loading the final report\u2026"];const a=n.text.split(`
|
|
2
|
+
`).flatMap(h=>h.trim()===""?[""]:C(h,t)),d=Math.max(1,o-2);n.scroll=Math.min(n.scroll,Math.max(0,a.length-d));const e=a.slice(n.scroll,n.scroll+d),i=a.length-n.scroll-e.length,l=i>0?g.fg("dim",` \xB7 ${i} more lines \u2193`):"";return[`${s}${l}`,"",...e]}}const fe=p((r,t,o)=>new re(r,t,o),"createGraphDetailView");export{fe as createGraphDetailView};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GraphRowDTO } from '../../api/dto/analytics.js';
|
|
2
|
+
import { type AnalyticsViewFactory } from './view.js';
|
|
3
|
+
/** A graph's name as its rows show it: "(root deleted)" when the root's parent row is gone. */
|
|
4
|
+
export declare function graphLabel(graph: GraphRowDTO): string;
|
|
5
|
+
/** Graphs by API-price estimate, largest first; ties by name so the order is stable. */
|
|
6
|
+
export declare function byEstimate(a: GraphRowDTO, b: GraphRowDTO): number;
|
|
7
|
+
/** The line under a list that shows the selected row's whole name, when its row cut it. */
|
|
8
|
+
export declare function fullNameLine(label: string, shownWidth: number): string | undefined;
|
|
9
|
+
export declare const createGraphsView: AnalyticsViewFactory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var F=Object.defineProperty;var l=(s,t)=>F(s,"name",{value:t,configurable:!0});import{matchesKey as c,visibleWidth as g}from"@earendil-works/pi-tui";import{rule as E,theme as C,wrapText as K}from"../../core/tui/panel.js";import{foldRanked as B,hbar as A}from"./chart.js";import{formatCount as b,formatPrice as D,formatTokens as Y,padLeft as f,padRight as k,plural as O,unavailable as Z}from"./format.js";import{NARROW_BAR_CELLS as S,isNarrow as q,listWindow as H,markRow as v,moreRow as J,textWidth as Q}from"./view.js";function N(s){return s.root_deleted?`${s.name} (root deleted)`:s.name}l(N,"graphLabel");function U(s,t){return t.api_price_estimate-s.api_price_estimate||s.name.localeCompare(t.name)}l(U,"byEstimate");function T(s,t,e,i){return g(s)<e?`${k(s,e)}${f(t,i)}`:s}l(T,"chartTitle");function X(s,t){return g(s)>t?C.fg("dim",` ${s}`):void 0}l(X,"fullNameLine");const M=[{key:"estimate",label:"API est.",value:l(s=>s.api_price_estimate,"value")},{key:"agents",label:"agents",value:l(s=>s.active_agents,"value")},{key:"depth",label:"depth",value:l(s=>s.depth,"value")},{key:"tokens",label:"tokens",value:l(s=>s.tokens,"value")}],tt={1:[1,1],"2\u20135":[2,5],"6\u201310":[6,10],"11\u201320":[11,20],"21+":[21,Number.POSITIVE_INFINITY]};function et(s){const t=s.spawned_by_kind,e=t.length>5?B(t,4,n=>n.agents):{top:t,rest:void 0},i=e.top.map(n=>({label:n.kind,agents:n.agents,kinds:[n.kind]}));return e.rest!==void 0&&i.push({label:`${b(e.rest.count)} more kinds`,agents:e.rest.sum,kinds:t.slice(4).map(n=>n.kind)}),i}l(et,"kindRows");const G=l(s=>s==="1"?"1 agent":`${s} agents`,"sizeLabel");class st{static{l(this,"GraphsView")}ctx;zone="list";lastChart="size";sizeIndex=0;kindIndex=0;listIndex=0;sort=0;filter;secondOpen=!1;narrow=!1;constructor(t){this.ctx=t}get graphs(){return this.ctx.data.graphs.ok?this.ctx.data.graphs.value:void 0}get kinds(){return this.graphs===void 0?[]:et(this.graphs)}listed(){const t=this.graphs?.graphs??[],e=M[this.sort],i=this.filter;return t.filter(n=>i===void 0||i.match(n)).sort((n,r)=>e.value(r)-e.value(n)||U(n,r))}get buckets(){const t=this.graphs?.size_buckets??[];return t.some(e=>e.graphs>0)?t:[]}sizeRowCount(){return this.buckets.length+(this.narrow?1:0)}land(t){t.tab==="graphs"&&(this.filter=void 0,this.listIndex=0,t.at==="size-chart"?(this.zone="size",this.lastChart="size",this.sizeIndex=0,this.secondOpen=!1):t.at==="kind-chart"?(this.zone="kind",this.lastChart="kind",this.kindIndex=0,this.secondOpen=!0):(this.zone="list",this.sort=0))}handleKey(t){return this.graphs===void 0?c(t,"escape")?"back":"unhandled":c(t,"escape")?this.narrow&&this.secondOpen?(this.secondOpen=!1,this.zone==="kind"&&(this.zone="size",this.sizeIndex=this.sizeRowCount()-1),this.lastChart="size","handled"):this.filter!==void 0?(this.filter=void 0,this.listIndex=0,"handled"):"back":c(t,"c")?(this.sort=(this.sort+1)%M.length,this.listIndex=0,"handled"):c(t,"up")||c(t,"k")?this.move(-1):c(t,"down")||c(t,"j")?this.move(1):c(t,"left")||c(t,"h")?this.side("size"):c(t,"right")||c(t,"l")?this.side("kind"):c(t,"enter")?this.enter():"unhandled"}visibleChart(){return this.narrow?this.secondOpen?"kind":"size":this.lastChart}move(t){const e=this.listed().length;if(this.zone==="list"){if(t===-1&&this.listIndex===0){const h=this.visibleChart(),o=h==="size"?this.sizeRowCount():this.kinds.length;o>0&&(this.zone=h,h==="size"?this.sizeIndex=o-1:this.kindIndex=o-1)}else this.listIndex=Math.max(0,Math.min(e-1,this.listIndex+t));return"handled"}const i=this.zone==="size"?this.sizeRowCount():this.kinds.length,r=(this.zone==="size"?this.sizeIndex:this.kindIndex)+t;return r>=i?e>0&&(this.lastChart=this.zone,this.zone="list",this.listIndex=0):r>=0&&(this.zone==="size"?this.sizeIndex=r:this.kindIndex=r),"handled"}side(t){if(this.narrow||this.zone==="list"||this.zone===t)return"unhandled";const e=t==="size"?this.sizeRowCount():this.kinds.length;if(e===0)return"handled";const i=this.zone==="size"?this.sizeIndex:this.kindIndex;return this.zone=t,this.lastChart=t,t==="size"?this.sizeIndex=Math.min(i,e-1):this.kindIndex=Math.min(i,e-1),"handled"}enter(){if(this.zone==="list"){const t=this.listed()[this.listIndex];return t!==void 0&&this.ctx.nav.openGraphDetail(t.graph_id),"handled"}if(this.zone==="size"){const t=this.buckets[this.sizeIndex];if(t===void 0)return this.secondOpen=!0,this.zone="kind",this.lastChart="kind",this.kindIndex=0,this.kinds.length===0&&(this.zone="size"),"handled";const[e,i]=tt[t.label];this.filter={label:`graphs with ${G(t.label)}`,match:l(n=>n.active_agents>=e&&n.active_agents<=i,"match")}}else{const t=this.kinds[this.kindIndex];if(t===void 0)return"handled";const e=new Set(t.kinds),i=t.kinds.length===1?`graphs that spawned ${nt(t.label)} in this window`:`graphs that spawned one of the ${t.label} in this window`;this.filter={label:i,match:l(n=>n.spawned_kinds.some(r=>e.has(r)),"match")}}return this.listIndex=0,"handled"}keyLine(t){return this.graphs===void 0?"":t?"\u2190\u2192\u2191\u2193 \xB7 Enter \xB7 c sort":`\u2190\u2192\u2191\u2193 select \xB7 ${this.zone==="list"?"Enter open graph":this.zone==="size"&&this.buckets[this.sizeIndex]===void 0?"Enter open chart":"Enter filter the list"} \xB7 c sort`}escapeLabel(){if(this.narrow&&this.secondOpen)return"close chart";if(this.filter!==void 0)return"clear filter"}render(t,e,i){if(this.narrow=q(t),!i.graphs.ok)return[Z(i.graphs.reason)];const n=i.graphs.value;this.narrow&&this.zone==="kind"&&!this.secondOpen&&(this.zone="size"),this.sizeIndex=Math.min(this.sizeIndex,Math.max(0,this.sizeRowCount()-1));const r=this.narrow?this.narrowCharts(t):this.wideCharts(t),h=this.listLines(t,Math.max(3,e-r.length),n);return[...r,...h]}sizeChart(t){const n=this.narrow?S:Math.max(4,t-2-12-1-6-1),r=T("Agents per graph","graphs",15+n,6),h=this.buckets;if(h.length===0)return[r," None in this window."];const o=Math.max(...h.map(a=>a.graphs)),d=h.map((a,z)=>{const x=`${k(G(a.label),12)} ${A(a.graphs,o,n)}${f(b(a.graphs),6)}`;return v(x,this.zone==="size"&&this.sizeIndex===z)});return[r,...d]}kindChart(t){const e=this.kinds,i=Math.max(14,Math.min(this.narrow?14:24,Math.max(0,...e.map(a=>g(a.label))))),n=6,r=this.narrow?S:Math.max(4,t-2-i-1-n-1),h=T("Agents spawned in window, by kind","agents",2+i+1+r,n);if(e.length===0)return[h," None in this window."];const o=Math.max(...e.map(a=>a.agents)),d=e.map((a,z)=>{const x=`${k(a.label,i)} ${A(a.agents,o,r)}${f(b(a.agents),n)}`;return v(x,this.zone==="kind"&&this.kindIndex===z)});return[h,...d]}wideCharts(t){const e=Math.floor((t-3)/2),i=t-e-3,n=this.sizeChart(e),r=this.kindChart(i),h=Math.max(n.length,r.length),o=[];for(let d=0;d<h;d+=1)o.push(`${k(n[d]??"",e)} \u2502 ${r[d]??""}`);return o.push(C.fg("border",`${"\u2500".repeat(e+1)}\u2534${"\u2500".repeat(Math.max(0,t-e-2))}`)),o}narrowCharts(t){if(this.secondOpen)return[...this.kindChart(t),E(t)];const e=v("Agents spawned in window, by kind \u2192",this.zone==="size"&&this.sizeIndex===this.buckets.length);return[...this.sizeChart(t),e,E(t)]}listLines(t,e,i){const n=this.narrow,r=M[this.sort],h=`${O(i.count,"graph","graphs")} \xB7 deepest ${O(i.deepest,"level","levels")} below root`,o=n?`sort: ${r.label}`:`sort: ${M.map(u=>u===r?`[${u.label}]`:u.label).join(" ")}`,d=this.listed(),[a,z,x,_]=n?[7,6,9,7]:[9,8,12,9],w=a+z+x+_,P=Math.max(0,...d.map(u=>g(N(u)))),I=n?Math.max(8,Math.min(t,t-2-w)):Math.max(8,Math.min(t-2-w,Q(t-2-w,P,44))),V=n?t:Math.max(2+I+w,g(h)+g(o)+2),L=Math.min(t,V)-g(h)-g(o),p=[L>=2?`${h}${" ".repeat(L)}${o}`:`${h} \xB7 ${o}`];if(this.filter!==void 0){const u=`Filter: ${this.filter.label} \xB7 ${O(d.length,"graph","graphs")} \xB7 Esc clears`;p.push(...K(u,t).map(m=>C.fg("accent",m)))}if(p.push(C.fg("dim",` ${k("Graph",I)}${f("agents",a)}${f("depth",z)}${f("est.",x)}${f("tokens",_)}`)),d.length===0)return p.push(this.filter!==void 0?" No graphs match this filter.":" None in this window."),p;this.listIndex=Math.min(this.listIndex,d.length-1);const W=this.zone==="list"?d[this.listIndex]:void 0,R=W===void 0?void 0:X(N(W),I),j=Math.max(1,e-p.length-(R!==void 0?1:0)),$=H(d.length,this.zone==="list"?this.listIndex:0,j);for(let u=$.start;u<$.end;u+=1){const m=d[u],y=`${k(N(m),I)}${f(b(m.active_agents),a)}${f(b(m.depth),z)}${f(D(m.api_price_estimate),x)}${f(Y(m.tokens),_)}`;p.push(v(y,m===W))}return $.more>0&&p.push(J($.more,"graphs")),R!==void 0&&p.push(R),p}}function nt(s){return/^[aeiou]/i.test(s)?`an ${s}`:`a ${s}`}l(nt,"article");const lt=l(s=>new st(s),"createGraphsView");export{U as byEstimate,lt as createGraphsView,X as fullNameLine,N as graphLabel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var N=Object.defineProperty;var M=(b,t)=>N(b,"name",{value:t,configurable:!0});import{matchesKey as m,visibleWidth as O}from"@earendil-works/pi-tui";import{columns as S,theme as g,wrapText as v}from"../../core/tui/panel.js";import{foldRanked as j,hbar as B}from"./chart.js";import{AgentDrilldown as K,graphName as T}from"./drilldown.js";import{formatCount as w,formatDateTime as W,padLeft as u,padRight as x,plural as _,truncate as E,unavailable as H}from"./format.js";import{NARROW_BAR_CELLS as V,isNarrow as F,listWindow as U,markRow as C,moreRow as q,textWidth as z}from"./view.js";const L={read:"Read on purpose",loaded:"Loaded automatically"},$={read:{one:"read",many:"reads",verb:"read",first:"first read"},loaded:{one:"load",many:"loads",verb:"loaded",first:"first loaded"}},G="A read does not show whether the document changed the work.",h=7;class I{static{M(this,"MemoryView")}ctx;show="read";cursor=0;doc=0;layers=[];narrow=!1;constructor(t){this.ctx=t}get view(){return this.ctx.data.memory.ok?this.ctx.data.memory.value[this.show]:void 0}count(){const t=this.view?.rows.length??0;return t===0?0:t+(this.narrow?1:0)}render(t,s,e){if(!e.memory.ok)return[`Memory: ${H(e.memory.reason)}`];const o=e.memory.value[this.show],n=F(t);this.narrow=n,n||(this.layers=this.layers.filter(p=>p.kind!=="readers")),this.cursor=Math.min(this.cursor,Math.max(0,this.count()-1));const r=[this.switchLine(),...v(this.summary(o,e),t)],d=v(G,t).map(p=>g.fg("dim",p)),c=this.layers.at(-1);if(c?.kind==="drill")return[...r,"",...c.list.render(t,s-r.length-1)];const a=this.labels(o);if(c?.kind==="readers")return[...r,"",...this.readersChart(o.rows[this.doc],a[this.doc],t,s-r.length-1)];if(o.rows.length===0)return[...r,"",`No documents ${L[this.show].toLowerCase()} in this window.`,"",...d];const l=Math.max(3,s-r.length-1-d.length-1);if(n){const p=this.documents(o,a,t,l-1),A=C(E(`Who ${$[this.show].verb} ${a[this.doc]} \u2192`,t-2),this.cursor===o.rows.length);return[...r,"",...p,A,"",...d]}const f=t-3-2-3*h,k=Math.max(8,...a.map(p=>O(p))),y=2+z(f,k,24)+3*h,i=t-y-3,D=this.documents(o,a,y,l),R=this.readersChart(o.rows[this.doc],a[this.doc],i,l);return R.push("",g.fg("dim",E("Enter: agents and graphs",i))),[...r,"",...S(D,y,R.slice(0,l),i),"",...d]}switchLine(){const t=this.show==="read"?"loaded":"read",s=g.bold(`[${L[this.show]}]`),e=` ${L[t]} `;return`Show: ${this.show==="read"?`${s} ${e}`:`${e} ${s}`}`}summary(t,s){const e=$[this.show],o=`${_(t.entries,e.one,e.many)} of ${_(t.documents,"document","documents")} \xB7 ${w(t.agents_with_entry)} of ${_(t.active_agents,"agent","agents")} ${e.verb} at least one`,n=s.memory_log_started_at;return n!==null&&Date.parse(s.window_start)<Date.parse(n)?`${o} \xB7 recorded since ${W(n)}`:o}labels(t){const s=new Map;for(const e of t.rows)s.set(e.name,(s.get(e.name)??0)+1);return t.rows.map(e=>s.get(e.name)>1?`${e.name} \xB7 ${e.scope}`:e.name)}documents(t,s,e,o){const n=Math.max(8,e-2-3*h),r=$[this.show],d=[g.fg("dim",` ${x("Document",n)}${u(r.many,h)}${u("agents",h)}${u("graphs",h)}`)],c=U(t.rows.length,Math.min(this.cursor,t.rows.length-1),Math.max(1,o-1));for(let a=c.start;a<c.end;a+=1){const l=t.rows[a],f=`${x(s[a],n)}${u(w(l.reads),h)}${u(w(l.agents),h)}${u(w(l.graphs),h)}`;d.push(C(f,a===this.cursor))}return c.more>0&&d.push(q(c.more,"documents")),d}readersChart(t,s,e,o){const n=$[this.show],r=v(`${s} \xB7 who ${n.verb} it`,e).slice(0,2).map(i=>g.bold(i));r.push(g.fg("dim",`${x(`scope: ${t.scope}`,e-h)}${u("agents",h)}`));const d=14,c=this.narrow?V:Math.max(4,e-2-d-1-h),a=Math.max(2,o-r.length-2),{top:l,rest:f}=j(t.readers_by_kind,t.readers_by_kind.length>a?a-1:a,i=>i.agents),k=[...l.map(i=>({label:i.kind,agents:i.agents})),...f!==void 0?[{label:`${_(f.count,"more kind","more kinds")}`,agents:f.sum}]:[]],y=Math.max(0,...k.map(i=>i.agents));for(const i of k)r.push(` ${x(i.label,d)}${B(i.agents,y,c)} ${u(w(i.agents),h-1)}`);return r}handleKey(t){if(m(t,"t")&&this.ctx.data.memory.ok)return this.show=this.show==="read"?"loaded":"read",this.cursor=0,this.doc=0,this.layers=[],"handled";const s=this.layers.at(-1);if(s?.kind==="drill")return s.list.handleKey(t)==="close"&&this.layers.pop(),"handled";if(s?.kind==="readers")return m(t,"escape")?(this.layers.pop(),"handled"):"unhandled";if(m(t,"escape"))return"back";const e=this.view;if(e===void 0||e.rows.length===0)return"unhandled";if(m(t,"down")||m(t,"j"))this.cursor=Math.min(this.count()-1,this.cursor+1);else if(m(t,"up")||m(t,"k"))this.cursor=Math.max(0,this.cursor-1);else return m(t,"enter")?(this.cursor<e.rows.length?this.layers.push({kind:"drill",list:this.drill(e,this.cursor)}):this.layers.push({kind:"readers"}),"handled"):"unhandled";return this.cursor<e.rows.length&&(this.doc=this.cursor),"handled"}drill(t,s){const e=this.ctx.data,o=t.rows[s],n=$[this.show];return new K(`${this.labels(t)[s]} \xB7 agents that ${n.verb} it`,[{header:"kind",kind:"text",max:18},{header:"agent",kind:"text"},{header:"graph",kind:"text"},{header:n.many,kind:"number"},{header:n.first,kind:"number"}],o.readers.map(r=>({node_id:r.node_id,graph_id:r.graph_id,cells:[r.kind,r.name,T(e,r.graph_id),w(r.reads),W(r.first_at)]})),this.ctx.nav)}keyLine(t){const s=this.layers.at(-1),e=t?"t":`t ${this.show==="read"?"loaded automatically":"read on purpose"}`;return s?.kind==="drill"?[s.list.keyLine(t),e].filter(o=>o!=="").join(" \xB7 "):s?.kind==="readers"||(this.view?.rows.length??0)===0?e:[t?"\u2191\u2193 Enter":`\u2191\u2193 document \xB7 Enter: agents that ${$[this.show].verb} it`,e].join(" \xB7 ")}escapeLabel(){const t=this.layers.at(-1);if(t?.kind==="drill")return"back to documents";if(t?.kind==="readers")return"back"}land(){this.show="read",this.layers=[],this.cursor=0,this.doc=0}}const et=M(b=>new I(b),"createMemoryView");export{et as createMemoryView};
|