@north-light/crouter 0.3.353 → 0.3.355
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/dist/api/client.d.ts +35 -25
- package/dist/api/client.js +2 -2
- package/dist/api/dto/broker-ops.d.ts +2 -36
- package/dist/api/dto/canvas.d.ts +8 -13
- package/dist/api/dto/config.d.ts +4 -0
- package/dist/api/dto/delivery.d.ts +61 -0
- package/dist/api/dto/docs.d.ts +135 -0
- package/dist/api/dto/docs.js +1 -0
- package/dist/api/dto/health.d.ts +26 -79
- package/dist/api/dto/node-outcomes.d.ts +1 -3
- package/dist/api/dto/nodes.d.ts +5 -26
- package/dist/api/dto/objects.d.ts +168 -0
- package/dist/api/dto/objects.js +1 -0
- package/dist/api/dto/profiles.d.ts +14 -8
- package/dist/api/dto/reports.d.ts +9 -7
- package/dist/api/dto/reviews.d.ts +11 -3
- package/dist/api/dto/worktree.d.ts +1 -1
- package/dist/api/index.d.ts +0 -1
- package/dist/api/index.js +1 -1
- package/dist/api/routes.d.ts +14 -12
- package/dist/api/routes.js +1 -1
- package/dist/build-root.js +1 -1
- package/dist/builtin-memory/00-runtime-base/00-authoring.md +10 -5
- package/dist/builtin-memory/02-turn-lifecycle/02-resident.md +1 -0
- package/dist/builtin-memory/04-orchestration-kernel.md +10 -31
- package/dist/builtin-memory/05-kinds/advisor/01-orchestrator.md +1 -1
- package/dist/builtin-memory/05-kinds/explore/00-base.md +2 -2
- package/dist/builtin-memory/05-kinds/explore/01-orchestrator.md +2 -2
- package/dist/builtin-memory/crouter-concepts/INDEX.md +2 -2
- package/dist/builtin-memory/crouter-concepts/lifecycle-and-wakes.md +1 -1
- package/dist/builtin-memory/crouter-concepts/memory.md +15 -15
- package/dist/builtin-memory/crouter-concepts/nodes-and-the-canvas.md +1 -1
- package/dist/builtin-memory/crouter-concepts/profiles-kinds-and-modes.md +5 -5
- package/dist/builtin-memory/crouter-concepts/scopes-and-trust.md +1 -1
- package/dist/builtin-memory/crouter-concepts/why-a-daemon.md +1 -1
- package/dist/builtin-memory/crouter-sdk/INDEX.md +2 -2
- package/dist/builtin-memory/crouter-sdk/README.md +5 -6
- package/dist/builtin-memory/crouter-sdk/errors.md +0 -13
- package/dist/builtin-memory/crouter-sdk/guides/README.md +0 -1
- package/dist/builtin-memory/crouter-sdk/guides/event-driven-assistant.md +2 -2
- package/dist/builtin-memory/crouter-sdk/nodes.md +0 -2
- package/dist/builtin-memory/crouter-sdk/resources.md +0 -1
- package/dist/builtin-memory/explore/exploration-doc.md +4 -4
- package/dist/builtin-memory/insights/capture.md +6 -6
- package/dist/builtin-memory/insights/init.md +14 -14
- package/dist/builtin-memory/internal/INDEX.md +4 -4
- package/dist/builtin-memory/internal/agent-shaping.md +20 -20
- package/dist/builtin-memory/internal/examples/imessage-assistant.md +2 -2
- package/dist/builtin-memory/internal/marketplaces.md +2 -2
- package/dist/builtin-memory/internal/memory-loading.md +31 -30
- package/dist/builtin-memory/internal/nodes-and-canvas.md +1 -1
- package/dist/builtin-memory/internal/plugins.md +16 -14
- package/dist/builtin-memory/internal/storage-tiers.md +4 -4
- package/dist/builtin-memory/memory-read-orientation.md +1 -1
- package/dist/builtin-pi-packages/pi-crtr-extensions/extensions/memory-slash-commands.ts +32 -40
- package/dist/clients/attach/input/controller.js +1 -1
- package/dist/clients/attach/input/ref-autocomplete.js +1 -1
- package/dist/clients/attach/input/titled-editor.js +1 -1
- package/dist/clients/attach/overlays/file-review.d.ts +1 -0
- package/dist/clients/attach/overlays/file-review.js +2 -2
- package/dist/clients/attach/render/chat-view.d.ts +6 -0
- package/dist/clients/attach/render/chat-view.js +2 -2
- package/dist/clients/attach/render/crtr-output.d.ts +1 -2
- package/dist/clients/attach/render/crtr-output.js +17 -17
- 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/group-activity.d.ts +8 -8
- package/dist/clients/attach/render/group-activity.js +2 -2
- package/dist/clients/attach/render/group-recap.js +1 -1
- package/dist/clients/attach/render/markdown-source.js +5 -5
- package/dist/clients/attach/render/tool-calls.d.ts +1 -1
- 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/file-links.d.ts +2 -0
- package/dist/clients/attach/session/file-links.js +1 -1
- package/dist/clients/attach/session/profile-files.js +1 -1
- package/dist/clients/attach/slash/dispatch.js +1 -1
- package/dist/clients/attach/viewer.js +816 -1561
- package/dist/clients/inbox/review/review-client.d.ts +5 -1
- package/dist/clients/inbox/review/review-client.js +1 -1
- package/dist/commands/api-client.d.ts +2 -0
- package/dist/commands/api-client.js +3 -3
- 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 +8 -0
- package/dist/commands/canvas/read.js +5 -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.js +1 -1
- package/dist/commands/canvas-history/grep.js +4 -4
- package/dist/commands/canvas-history/read.js +2 -2
- package/dist/commands/canvas-history/search.js +7 -7
- package/dist/commands/canvas-history/shared.d.ts +0 -1
- package/dist/commands/canvas-history/shared.js +1 -1
- package/dist/commands/canvas-history/stats.js +2 -2
- package/dist/commands/canvas-history.js +1 -1
- package/dist/commands/canvas.js +1 -1
- 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/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/{memory.d.ts → doc.d.ts} +1 -1
- package/dist/commands/doc.js +1 -0
- package/dist/commands/human/review.js +1 -1
- package/dist/commands/node/bash.js +2 -2
- package/dist/commands/node/create.js +1 -1
- package/dist/commands/node/inspect.js +10 -10
- package/dist/commands/node/lifecycle.js +2 -2
- package/dist/commands/node/outcome.js +1 -1
- package/dist/commands/node/subscription.js +1 -1
- package/dist/commands/node-context.js +2 -2
- package/dist/commands/pkg/browse/catalog.js +1 -1
- package/dist/commands/pkg/browse/doc-view.js +1 -1
- package/dist/commands/pkg/browse/model.d.ts +9 -17
- package/dist/commands/pkg/plugin-inspect.js +1 -1
- package/dist/commands/pkg/plugin-manage.d.ts +4 -8
- package/dist/commands/pkg/plugin-manage.js +15 -17
- package/dist/commands/profile/list.js +1 -1
- package/dist/commands/profile/new.js +1 -1
- package/dist/commands/profile/project.js +1 -1
- package/dist/commands/profile/show.js +1 -1
- package/dist/commands/push.js +3 -3
- package/dist/commands/sys/config.js +1 -1
- package/dist/commands/sys/context/admin/actions.d.ts +18 -43
- package/dist/commands/sys/context/admin/actions.js +1 -2
- package/dist/commands/sys/context/admin/detail-panel.d.ts +17 -25
- package/dist/commands/sys/context/admin/detail-panel.js +2 -1
- package/dist/commands/sys/context/admin/docs-panel.d.ts +7 -6
- package/dist/commands/sys/context/admin/docs-panel.js +1 -1
- package/dist/commands/sys/context/admin/list-view.d.ts +12 -12
- package/dist/commands/sys/context/admin/list-view.js +1 -1
- package/dist/commands/sys/context/admin/model.d.ts +96 -69
- package/dist/commands/sys/context/admin/model.js +1 -1
- package/dist/commands/sys/context/admin/rail-panel.d.ts +7 -5
- package/dist/commands/sys/context/admin/rail-panel.js +1 -1
- package/dist/commands/sys/context/admin/read-view.d.ts +10 -14
- package/dist/commands/sys/context/admin/read-view.js +1 -2
- package/dist/commands/sys/context/admin/shell.d.ts +26 -31
- package/dist/commands/sys/context/admin/shell.js +1 -1
- package/dist/commands/sys/context/admin.js +2 -2
- package/dist/commands/sys/context/doc.js +2 -3
- package/dist/commands/sys/context/expose.js +2 -2
- package/dist/commands/sys/context/prompt-review.js +4 -4
- package/dist/commands/sys/context/resolve.d.ts +92 -65
- package/dist/commands/sys/context/resolve.js +7 -9
- package/dist/commands/sys/context.js +1 -1
- package/dist/commands/sys/doctor.js +1 -1
- package/dist/commands/sys/migrate.js +1 -1
- package/dist/commands/sys/panels/profiles-panel.d.ts +3 -1
- package/dist/commands/sys/panels/profiles-panel.js +1 -1
- package/dist/commands/sys/sync-deps.d.ts +6 -11
- package/dist/commands/sys/sync-deps.js +7 -8
- package/dist/commands/sys/sync-project-guidance.js +5 -4
- package/dist/commands/sys/sync-shared.d.ts +41 -4
- package/dist/commands/sys/sync-shared.js +1 -1
- package/dist/commands/sys/sync-skills.js +2 -2
- package/dist/commands/sys/sync.js +1 -1
- package/dist/core/bash-job-supervisor.d.ts +2 -3
- package/dist/core/bash-job-supervisor.js +3 -3
- package/dist/core/bash-jobs.d.ts +0 -5
- package/dist/core/bash-jobs.js +7 -7
- package/dist/core/bootstrap.js +2 -2
- package/dist/core/canvas/canvas.d.ts +6 -50
- package/dist/core/canvas/canvas.js +16 -21
- package/dist/core/canvas/db.d.ts +4 -1
- package/dist/core/canvas/db.js +2 -2
- package/dist/core/canvas/history.d.ts +11 -39
- package/dist/core/canvas/history.js +9 -20
- package/dist/core/canvas/install-id.d.ts +2 -2
- package/dist/core/canvas/install-id.js +1 -1
- package/dist/core/canvas/memory-reads.d.ts +5 -0
- package/dist/core/canvas/memory-reads.js +1 -1
- package/dist/core/canvas/migrations.js +215 -41
- package/dist/core/canvas/node-agent-paths.js +1 -1
- package/dist/core/canvas/node-tokens.js +1 -1
- package/dist/core/canvas/paths.d.ts +0 -4
- package/dist/core/canvas/paths.js +1 -1
- package/dist/core/canvas/remote-canvas-source.d.ts +0 -1
- package/dist/core/canvas/remote-canvas-source.js +1 -1
- package/dist/core/canvas/render-source.d.ts +9 -6
- package/dist/core/canvas/render-source.js +6 -6
- package/dist/core/canvas/sessions.js +2 -2
- package/dist/core/canvas/source.d.ts +6 -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 +0 -20
- package/dist/core/command-plugins/bundle.js +1 -1
- package/dist/core/config.d.ts +1 -1
- package/dist/core/conversation-store/listener.js +4 -2
- package/dist/core/feed/feed.d.ts +9 -7
- package/dist/core/feed/feed.js +3 -7
- package/dist/core/feed/inbox.d.ts +3 -5
- package/dist/core/feed/inbox.js +1 -10
- package/dist/core/feed/messages.d.ts +33 -6
- package/dist/core/feed/messages.js +10 -7
- package/dist/core/feed/reports.d.ts +10 -0
- package/dist/core/feed/reports.js +2 -0
- package/dist/core/grants/remove.js +1 -1
- package/dist/core/graph/access.d.ts +24 -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/deletion.d.ts +10 -0
- package/dist/core/graph/deletion.js +5 -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 +26 -0
- package/dist/core/graph/events.js +7 -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/names.d.ts +30 -0
- package/dist/core/graph/names.js +3 -0
- package/dist/core/graph/objects.d.ts +55 -0
- package/dist/core/graph/objects.js +9 -0
- package/dist/core/graph/package-docs.d.ts +31 -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 +21 -0
- package/dist/core/graph/reader.js +3 -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 +17 -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 +2 -0
- package/dist/core/graph/spaces/repo.d.ts +4 -0
- package/dist/core/graph/spaces/repo.js +1 -0
- package/dist/core/graph/types.d.ts +75 -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/human/feedback-companion.js +1 -1
- package/dist/core/human/requests.d.ts +3 -1
- package/dist/core/human/requests.js +6 -6
- package/dist/core/inspector/model.js +2 -2
- package/dist/core/io.js +5 -5
- package/dist/core/layout-migrate/index.d.ts +24 -1
- package/dist/core/layout-migrate/index.js +4 -4
- package/dist/core/layout-migrate/paths.d.ts +4 -0
- package/dist/core/layout-migrate/paths.js +1 -1
- package/dist/core/layout-migrate/stored-paths.d.ts +7 -0
- package/dist/core/layout-migrate/stored-paths.js +11 -11
- package/dist/core/layout-migrate/stores.d.ts +19 -6
- package/dist/core/layout-migrate/stores.js +3 -4
- package/dist/core/manifest.d.ts +0 -2
- package/dist/core/manifest.js +1 -1
- package/dist/core/{memory/extensions.d.ts → plugin-extensions.d.ts} +9 -10
- package/dist/core/plugin-extensions.js +1 -0
- package/dist/core/preview-registry.d.ts +1 -1
- package/dist/core/preview-registry.js +3 -2
- package/dist/core/profiles/manifest.d.ts +7 -7
- package/dist/core/profiles/manifest.js +1 -1
- package/dist/core/profiles/select.js +3 -3
- package/dist/core/review/birth.js +1 -1
- package/dist/core/review/companion.js +1 -1
- package/dist/core/review/stage.d.ts +12 -1
- package/dist/core/review/stage.js +1 -1
- package/dist/core/review/store.d.ts +2 -0
- package/dist/core/review/store.js +1 -1
- package/dist/core/review/types.d.ts +7 -1
- package/dist/core/runs/events.js +1 -1
- package/dist/core/runs/operations.js +5 -5
- package/dist/core/runs/questions.js +2 -2
- package/dist/core/runtime/bearings-render.d.ts +13 -7
- package/dist/core/runtime/bearings-render.js +12 -12
- package/dist/core/runtime/bearings.d.ts +8 -18
- package/dist/core/runtime/bearings.js +7 -7
- package/dist/core/runtime/broker/daemon-ops.d.ts +7 -12
- package/dist/core/runtime/broker/daemon-ops.js +1 -1
- package/dist/core/runtime/broker/fault-retry.d.ts +2 -0
- package/dist/core/runtime/broker/fault-retry.js +1 -1
- package/dist/core/runtime/broker/frame-dispatch.d.ts +1 -1
- package/dist/core/runtime/broker/frame-memory-refs.d.ts +7 -2
- package/dist/core/runtime/broker/frame-memory-refs.js +1 -1
- package/dist/core/runtime/broker/inbox.d.ts +1 -4
- package/dist/core/runtime/broker/inbox.js +1 -10
- package/dist/core/runtime/broker/rebind.js +1 -1
- 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-extension-render.d.ts +0 -13
- package/dist/core/runtime/broker-extension-render.js +2 -4
- package/dist/core/runtime/broker-persona-guidance.js +3 -3
- package/dist/core/runtime/broker-protocol.d.ts +1 -1
- package/dist/core/runtime/broker.js +1 -1
- package/dist/core/runtime/close.d.ts +9 -4
- package/dist/core/runtime/close.js +1 -1
- package/dist/core/runtime/deliver-live.js +1 -1
- package/dist/core/runtime/kickoff.js +17 -19
- package/dist/core/runtime/launch-target.d.ts +7 -0
- package/dist/core/runtime/launch-target.js +1 -1
- package/dist/core/runtime/ledger.d.ts +10 -0
- package/dist/core/runtime/ledger.js +3 -0
- package/dist/core/runtime/lifecycle.js +2 -2
- package/dist/core/runtime/nodes.d.ts +10 -2
- package/dist/core/runtime/nodes.js +1 -1
- package/dist/core/runtime/outcome-document.d.ts +2 -2
- package/dist/core/runtime/outcome-document.js +1 -1
- package/dist/core/runtime/persona.js +2 -2
- package/dist/core/runtime/placement.js +1 -1
- package/dist/core/runtime/promote.d.ts +2 -2
- package/dist/core/runtime/promote.js +1 -1
- package/dist/core/runtime/prospective-inventory-cli.js +2 -2
- package/dist/core/runtime/recycle.js +1 -1
- package/dist/core/runtime/reopen.js +1 -1
- package/dist/core/runtime/revive.js +2 -2
- package/dist/core/runtime/roadmap.d.ts +20 -9
- package/dist/core/runtime/roadmap.js +10 -6
- package/dist/core/runtime/spawn-env.js +1 -1
- package/dist/core/runtime/spawn.d.ts +5 -3
- package/dist/core/runtime/spawn.js +2 -2
- package/dist/core/runtime/structured-output.d.ts +3 -1
- package/dist/core/runtime/structured-output.js +4 -4
- package/dist/core/scope.d.ts +1 -32
- package/dist/core/scope.js +1 -1
- package/dist/core/scoped-state/db.js +2 -1
- package/dist/core/scoped-state/migrate.js +2 -2
- package/dist/core/scoped-state/profiles.d.ts +11 -0
- package/dist/core/scoped-state/profiles.js +1 -1
- package/dist/core/scoped-state/schema.d.ts +1 -1
- package/dist/core/scoped-state/schema.js +7 -5
- package/dist/core/spaces/permissions.d.ts +0 -14
- package/dist/core/spaces/permissions.js +1 -1
- package/dist/core/spaces/stop.d.ts +13 -0
- package/dist/core/spaces/stop.js +2 -2
- package/dist/core/storage/tables.d.ts +1 -1
- package/dist/core/substrate/delivery/corpus.d.ts +21 -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 +0 -13
- package/dist/core/substrate/gate-explain.js +1 -1
- package/dist/core/substrate/schema.d.ts +11 -139
- package/dist/core/substrate/schema.js +1 -1
- package/dist/core/substrate/subject-fields.d.ts +3 -0
- package/dist/core/substrate/subject.d.ts +2 -1
- package/dist/core/substrate/subject.js +1 -1
- package/dist/daemon/api/handlers/app-profiles.js +1 -1
- package/dist/daemon/api/handlers/bash-jobs.js +1 -2
- package/dist/daemon/api/handlers/broker-ops.js +1 -1
- package/dist/daemon/api/handlers/canvas.js +5 -5
- package/dist/daemon/api/handlers/daemon.js +1 -1
- package/dist/daemon/api/handlers/delivery.d.ts +2 -0
- package/dist/daemon/api/handlers/delivery.js +1 -0
- package/dist/daemon/api/handlers/{memory.d.ts → docs.d.ts} +1 -1
- package/dist/daemon/api/handlers/docs.js +1 -0
- package/dist/daemon/api/handlers/hook-exec.js +1 -1
- package/dist/daemon/api/handlers/messages.js +2 -2
- package/dist/daemon/api/handlers/node-records.js +2 -2
- package/dist/daemon/api/handlers/nodes.js +1 -1
- package/dist/daemon/api/handlers/objects.d.ts +2 -0
- package/dist/daemon/api/handlers/objects.js +5 -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.js +1 -1
- package/dist/daemon/api/handlers/reports.d.ts +2 -2
- package/dist/daemon/api/handlers/reports.js +4 -4
- package/dist/daemon/api/handlers/reviews.d.ts +4 -1
- package/dist/daemon/api/handlers/reviews.js +1 -1
- package/dist/daemon/api/map.d.ts +2 -2
- package/dist/daemon/api/map.js +2 -2
- package/dist/daemon/api/operations.d.ts +1 -1
- package/dist/daemon/api/operations.js +1 -1
- package/dist/daemon/api/reader.d.ts +17 -0
- package/dist/daemon/api/reader.js +1 -0
- package/dist/daemon/api/server.js +1 -1
- package/dist/daemon/control.d.ts +2 -3
- package/dist/daemon/crtrd.js +8 -6
- package/dist/daemon/fleet.js +4 -4
- package/dist/daemon/reconcilers/bash-deadline.d.ts +11 -1
- package/dist/daemon/reconcilers/bash-deadline.js +2 -1
- package/dist/daemon/reconcilers/broker-supervision.js +4 -4
- package/dist/daemon/reconcilers/live-obligation.js +1 -1
- package/dist/daemon/reconcilers/node-deadline.js +1 -1
- package/dist/daemon/reconcilers/node-lifecycle/freeze-lane.js +1 -1
- package/dist/daemon/reconcilers/storage-maintenance.d.ts +1 -0
- package/dist/daemon/reconcilers/storage-maintenance.js +1 -1
- package/dist/daemon/review/deliver.js +2 -2
- package/dist/daemon/review/finish.js +1 -1
- package/dist/hook-authoring.d.ts +0 -1
- package/dist/hook-authoring.js +3 -3
- 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 +9 -18
- package/dist/migrations/activation.js +2 -2
- package/dist/pi-extensions/broker-local.d.ts +2 -2
- package/dist/pi-extensions/broker-local.js +2 -2
- package/dist/pi-extensions/canvas-bash-valve.js +5 -4
- package/dist/pi-extensions/canvas-context-intro.js +2 -2
- package/dist/pi-extensions/canvas-doc-substrate.d.ts +0 -1
- package/dist/pi-extensions/canvas-doc-substrate.js +6 -6
- package/dist/pi-extensions/canvas-inbox-watcher.js +2 -2
- package/dist/pi-extensions/canvas-passive-context.js +1 -1
- package/dist/pi-extensions/canvas-recap.js +2 -2
- package/dist/pi-extensions/canvas-stophook.d.ts +1 -1
- package/dist/pi-extensions/canvas-stophook.js +1 -1
- package/dist/prompts/review.js +3 -3
- package/dist/shared/env.d.ts +5 -0
- package/dist/shared/env.js +1 -1
- package/dist/shared/generated-context.js +2 -10
- package/dist/shared/inbox-entry-body.d.ts +22 -0
- package/dist/shared/inbox-entry-body.js +10 -0
- package/dist/{core/memory → shared}/inline-ref-guidance.d.ts +2 -2
- package/dist/shared/inline-ref-guidance.js +2 -0
- package/dist/types.d.ts +3 -1
- package/docs/cli/memory-and-preferences.md +12 -14
- package/docs/concepts/README.md +1 -1
- package/docs/concepts/lifecycle-and-wakes.md +1 -1
- package/docs/concepts/memory.md +15 -15
- package/docs/concepts/nodes-and-the-canvas.md +1 -1
- package/docs/concepts/profiles-kinds-and-modes.md +5 -5
- package/docs/concepts/scopes-and-trust.md +1 -1
- package/docs/concepts/why-a-daemon.md +1 -1
- package/docs/sdk/README.md +5 -6
- package/docs/sdk/errors.md +0 -13
- package/docs/sdk/guides/README.md +0 -1
- package/docs/sdk/nodes.md +0 -2
- package/docs/sdk/resources.md +0 -1
- package/package.json +2 -2
- package/packages/crouter-identity/package.json +1 -1
- package/runtime.lock.json +11 -11
- package/scripts/lib/isolation-env.mjs +8 -2
- package/dist/api/dto/memory.d.ts +0 -171
- package/dist/api/dto/memory.js +0 -1
- package/dist/builtin-memory/crouter-sdk/guides/app-memory.md +0 -73
- package/dist/builtin-memory/crouter-sdk/memory.md +0 -87
- package/dist/commands/broker-permissions.d.ts +0 -2
- package/dist/commands/broker-permissions.js +0 -1
- package/dist/commands/memory/client.d.ts +0 -11
- package/dist/commands/memory/client.js +0 -1
- package/dist/commands/memory/delete.d.ts +0 -1
- package/dist/commands/memory/delete.js +0 -1
- package/dist/commands/memory/edit.d.ts +0 -1
- package/dist/commands/memory/edit.js +0 -21
- package/dist/commands/memory/find.d.ts +0 -1
- package/dist/commands/memory/find.js +0 -1
- package/dist/commands/memory/history.d.ts +0 -1
- package/dist/commands/memory/history.js +0 -5
- package/dist/commands/memory/lint.d.ts +0 -1
- package/dist/commands/memory/lint.js +0 -1
- package/dist/commands/memory/list.d.ts +0 -1
- package/dist/commands/memory/list.js +0 -1
- package/dist/commands/memory/move.d.ts +0 -1
- package/dist/commands/memory/move.js +0 -1
- package/dist/commands/memory/origin.d.ts +0 -1
- package/dist/commands/memory/origin.js +0 -1
- package/dist/commands/memory/read.d.ts +0 -1
- package/dist/commands/memory/read.js +0 -6
- package/dist/commands/memory/shared.d.ts +0 -22
- package/dist/commands/memory/shared.js +0 -1
- package/dist/commands/memory/write.d.ts +0 -1
- package/dist/commands/memory/write.js +0 -13
- package/dist/commands/memory.js +0 -1
- package/dist/commands/node-inspect-artifacts.d.ts +0 -1
- package/dist/commands/node-inspect-artifacts.js +0 -8
- package/dist/core/help/memory-extensions.d.ts +0 -3
- package/dist/core/help/memory-extensions.js +0 -2
- package/dist/core/memory/cli-selector.d.ts +0 -13
- package/dist/core/memory/cli-selector.js +0 -1
- package/dist/core/memory/doc-link-grammar.d.ts +0 -20
- package/dist/core/memory/doc-link-grammar.js +0 -2
- package/dist/core/memory/extensions.js +0 -1
- package/dist/core/memory/history.d.ts +0 -87
- package/dist/core/memory/history.js +0 -6
- package/dist/core/memory/identity.d.ts +0 -65
- package/dist/core/memory/identity.js +0 -1
- package/dist/core/memory/inline-ref-guidance.js +0 -2
- package/dist/core/memory/inline-ref-inventory.d.ts +0 -9
- package/dist/core/memory/inline-ref-inventory.js +0 -1
- package/dist/core/memory/lint.d.ts +0 -163
- package/dist/core/memory/lint.js +0 -2
- package/dist/core/memory/mutation-domain.d.ts +0 -113
- package/dist/core/memory/mutation-domain.js +0 -12
- package/dist/core/memory/mutations.d.ts +0 -74
- package/dist/core/memory/mutations.js +0 -1
- package/dist/core/memory/project-namespace.d.ts +0 -31
- package/dist/core/memory/project-namespace.js +0 -2
- package/dist/core/memory/repository-association.d.ts +0 -31
- package/dist/core/memory/repository-association.js +0 -1
- package/dist/core/memory/service.d.ts +0 -145
- package/dist/core/memory/service.js +0 -2
- package/dist/core/memory/tree.d.ts +0 -39
- package/dist/core/memory/tree.js +0 -1
- package/dist/core/memory-resolver.d.ts +0 -280
- package/dist/core/memory-resolver.js +0 -2
- package/dist/core/nested-stores.d.ts +0 -18
- package/dist/core/nested-stores.js +0 -1
- package/dist/core/runtime/memory.d.ts +0 -3
- package/dist/core/runtime/memory.js +0 -1
- package/dist/core/substrate/frontmatter-validation.d.ts +0 -11
- package/dist/core/substrate/frontmatter-validation.js +0 -1
- package/dist/core/substrate/gate.d.ts +0 -16
- package/dist/core/substrate/gate.js +0 -1
- package/dist/core/substrate/index.d.ts +0 -18
- package/dist/core/substrate/index.js +0 -1
- package/dist/core/substrate/injected-store.d.ts +0 -75
- package/dist/core/substrate/injected-store.js +0 -2
- package/dist/core/substrate/listings.d.ts +0 -28
- package/dist/core/substrate/listings.js +0 -1
- package/dist/core/substrate/memory-events.d.ts +0 -6
- package/dist/core/substrate/memory-events.js +0 -1
- package/dist/core/substrate/on-read-node.d.ts +0 -6
- package/dist/core/substrate/on-read-node.js +0 -1
- package/dist/core/substrate/on-read.d.ts +0 -101
- package/dist/core/substrate/on-read.js +0 -9
- package/dist/core/substrate/plan.d.ts +0 -94
- package/dist/core/substrate/plan.js +0 -1
- package/dist/core/substrate/render-node.d.ts +0 -12
- package/dist/core/substrate/render-node.js +0 -1
- package/dist/core/substrate/render.d.ts +0 -41
- package/dist/core/substrate/render.js +0 -65
- package/dist/core/substrate/session-cache.d.ts +0 -27
- package/dist/core/substrate/session-cache.js +0 -1
- package/dist/core/substrate/surface-match.d.ts +0 -73
- package/dist/core/substrate/surface-match.js +0 -1
- package/dist/daemon/api/handlers/memory.js +0 -5
- package/dist/migrations/001-surfaces-frontmatter.d.ts +0 -2
- package/dist/migrations/001-surfaces-frontmatter.js +0 -1
- package/dist/migrations/002-profile-project-memory.d.ts +0 -2
- package/dist/migrations/002-profile-project-memory.js +0 -1
- package/dist/migrations/003-repository-root-memory-identity/front-door.d.ts +0 -26
- package/dist/migrations/003-repository-root-memory-identity/front-door.js +0 -11
- package/dist/migrations/003-repository-root-memory-identity/index.d.ts +0 -2
- package/dist/migrations/003-repository-root-memory-identity/index.js +0 -5
- package/dist/migrations/003-repository-root-memory-identity/references.d.ts +0 -95
- package/dist/migrations/003-repository-root-memory-identity/references.js +0 -5
- package/dist/migrations/003-repository-root-memory-identity/repository-facts.d.ts +0 -39
- package/dist/migrations/003-repository-root-memory-identity/repository-facts.js +0 -3
- package/dist/migrations/convergent.d.ts +0 -43
- package/dist/migrations/convergent.js +0 -2
- package/dist/migrations/corpus.d.ts +0 -75
- package/dist/migrations/corpus.js +0 -3
- package/dist/migrations/frontmatter-splice.d.ts +0 -15
- package/dist/migrations/frontmatter-splice.js +0 -8
- package/dist/migrations/profile-manifests.d.ts +0 -30
- package/dist/migrations/profile-manifests.js +0 -2
- package/dist/migrations/registry.d.ts +0 -7
- package/dist/migrations/registry.js +0 -1
- package/dist/migrations/runner.d.ts +0 -43
- package/dist/migrations/runner.js +0 -1
- package/dist/migrations/types.d.ts +0 -211
- package/dist/shared/birth-announcement.d.ts +0 -12
- package/dist/shared/birth-announcement.js +0 -1
- package/docs/sdk/guides/app-memory.md +0 -22
- package/docs/sdk/memory.md +0 -85
- /package/dist/{migrations/types.js → api/dto/delivery.js} +0 -0
- /package/dist/{core/memory → shared}/inline-ref-grammar.d.ts +0 -0
- /package/dist/{core/memory → shared}/inline-ref-grammar.js +0 -0
package/dist/api/dto/health.d.ts
CHANGED
|
@@ -43,98 +43,45 @@ export interface StatusDTO {
|
|
|
43
43
|
* teardown interrupts is resumed by it. */
|
|
44
44
|
export interface MigrateStateRequest {
|
|
45
45
|
dry_run?: boolean;
|
|
46
|
-
dirs?: string[];
|
|
47
46
|
}
|
|
47
|
+
/** `crtr sys migrate`: the canvas import (004-canvas-documents) plan or result. */
|
|
48
48
|
export interface MigrateStateDTO {
|
|
49
|
-
|
|
50
|
-
stores:
|
|
51
|
-
changed: number;
|
|
52
|
-
applied: {
|
|
53
|
-
store: string;
|
|
54
|
-
lane: string;
|
|
55
|
-
migration: string;
|
|
56
|
-
files: string[];
|
|
57
|
-
}[];
|
|
58
|
-
skipped: {
|
|
59
|
-
store: string;
|
|
60
|
-
relPath: string;
|
|
61
|
-
error: string;
|
|
62
|
-
}[];
|
|
63
|
-
blockers: {
|
|
64
|
-
kind: string;
|
|
65
|
-
message: string;
|
|
66
|
-
store?: string;
|
|
67
|
-
target?: string;
|
|
68
|
-
path?: string;
|
|
69
|
-
name?: string;
|
|
70
|
-
paths?: readonly string[];
|
|
71
|
-
}[];
|
|
72
|
-
discovery_roots: {
|
|
73
|
-
reason: string;
|
|
49
|
+
/** Every store root the import found, with its owner and document count. */
|
|
50
|
+
stores: {
|
|
74
51
|
root: string;
|
|
75
|
-
|
|
76
|
-
detail?: string;
|
|
77
|
-
}[];
|
|
78
|
-
discovered_stores: {
|
|
79
|
-
store: string;
|
|
80
|
-
scope: string;
|
|
81
|
-
namespace: string;
|
|
82
|
-
mount_status: string;
|
|
83
|
-
writable: boolean;
|
|
84
|
-
reasons: string[];
|
|
85
|
-
targets: readonly string[];
|
|
52
|
+
owner: Record<string, unknown>;
|
|
86
53
|
docs: number;
|
|
54
|
+
skipped?: string;
|
|
87
55
|
}[];
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
origin: string;
|
|
92
|
-
cwd: string;
|
|
93
|
-
profile_id: string | null;
|
|
94
|
-
node_id: string | null;
|
|
95
|
-
stores: readonly string[];
|
|
96
|
-
}[];
|
|
97
|
-
repository_namespaces: {
|
|
98
|
-
repository_root: string;
|
|
99
|
-
repository_key: string;
|
|
100
|
-
declaration_path: string;
|
|
101
|
-
namespace: string;
|
|
102
|
-
source: string;
|
|
103
|
-
action: string;
|
|
104
|
-
}[];
|
|
105
|
-
store_prefixes: {
|
|
106
|
-
store_root: string;
|
|
107
|
-
owner_dir: string;
|
|
108
|
-
repository_root: string;
|
|
109
|
-
owner_relative_path: string;
|
|
110
|
-
old_prefix: string;
|
|
111
|
-
old_rule: string;
|
|
112
|
-
effective_prefix: string;
|
|
113
|
-
nested_declaration_action: string;
|
|
114
|
-
front_door_action: string;
|
|
115
|
-
}[];
|
|
116
|
-
renames: {
|
|
117
|
-
store_root: string;
|
|
56
|
+
/** `documents.<kind>`, `documents.owner.<type>`, `revisions`, `documents.rewritten`, `owners`, … */
|
|
57
|
+
counts: Record<string, number>;
|
|
58
|
+
rewrites: {
|
|
118
59
|
path: string;
|
|
119
60
|
from: string;
|
|
120
61
|
to: string;
|
|
121
62
|
}[];
|
|
122
|
-
|
|
123
|
-
store_root: string;
|
|
63
|
+
dropped_fields: {
|
|
124
64
|
path: string;
|
|
65
|
+
field: string;
|
|
66
|
+
}[];
|
|
67
|
+
skipped: {
|
|
68
|
+
path: string;
|
|
69
|
+
reason: string;
|
|
70
|
+
}[];
|
|
71
|
+
/** Each clash or unreadable source the import resolved itself, one line each. */
|
|
72
|
+
resolutions: {
|
|
125
73
|
kind: string;
|
|
126
|
-
|
|
127
|
-
|
|
74
|
+
message: string;
|
|
75
|
+
paths: string[];
|
|
76
|
+
}[];
|
|
77
|
+
blockers: {
|
|
78
|
+
kind: string;
|
|
79
|
+
message: string;
|
|
80
|
+
paths: string[];
|
|
128
81
|
}[];
|
|
129
82
|
dryRun: boolean;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
wrote: {
|
|
133
|
-
profile_manifests: string[];
|
|
134
|
-
documents: string[];
|
|
135
|
-
corpus_consumers: string[];
|
|
136
|
-
corpus_identities: string[];
|
|
137
|
-
};
|
|
83
|
+
/** True while the import has not been written. */
|
|
84
|
+
pending: boolean;
|
|
138
85
|
resumed: boolean;
|
|
139
86
|
resume_error?: string;
|
|
140
87
|
}
|
|
@@ -26,10 +26,8 @@ interface NodeOutcomeBaseDTO {
|
|
|
26
26
|
node_id: NodeIdDTO;
|
|
27
27
|
revision: number;
|
|
28
28
|
settled_at: IsoTime;
|
|
29
|
-
/** Canonical final report
|
|
29
|
+
/** Canonical final report document ref (`<nodeId>/reports/<name>`, read with `crtr canvas read`); set for kind='result' and for a declined structured result (kind='failure', reason='declined'); else null. */
|
|
30
30
|
final_report: string | null;
|
|
31
|
-
/** Absolute path of the canonical final report; null whenever `final_report` is. */
|
|
32
|
-
final_report_path: string | null;
|
|
33
31
|
/** Parsed context/result.json when the node ran under --output-schema; else null. */
|
|
34
32
|
structured_result: unknown | null;
|
|
35
33
|
/** Bounded diagnostics; null for kind='result'. */
|
package/dist/api/dto/nodes.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface NodeSubjectDTO {
|
|
|
19
19
|
profile: string | null;
|
|
20
20
|
/** Effective run scopes; a null row resolves to the full runtime vocabulary. */
|
|
21
21
|
scopes: readonly string[];
|
|
22
|
+
/** Handles of the repos enclosing `cwd`, nearest first. */
|
|
23
|
+
repo: readonly string[];
|
|
22
24
|
}
|
|
23
25
|
/** `POST /v1/nodes` body. Carries the full immediate spawn recipe. */
|
|
24
26
|
export interface CreateNodeRequest {
|
|
@@ -152,7 +154,6 @@ export interface NodeEdgesDTO {
|
|
|
152
154
|
export interface NodePathsDTO {
|
|
153
155
|
node_dir: string;
|
|
154
156
|
context_dir: string;
|
|
155
|
-
reports_dir: string;
|
|
156
157
|
meta_path: string;
|
|
157
158
|
transcript_path: string;
|
|
158
159
|
view_socket: string;
|
|
@@ -238,7 +239,8 @@ export interface NodeDetailDTO extends Omit<NodeSummaryDTO, 'outcome'> {
|
|
|
238
239
|
* promote primitive returns beyond the node meta (spec §6.2). A plain detail
|
|
239
240
|
* read omits them. */
|
|
240
241
|
roadmap_written?: boolean;
|
|
241
|
-
|
|
242
|
+
/** The node's roadmap document ref (`<node>/roadmap`). */
|
|
243
|
+
roadmap_ref?: string;
|
|
242
244
|
goal_path?: string;
|
|
243
245
|
}
|
|
244
246
|
/** `GET /v1/nodes` optional payloads. */
|
|
@@ -345,38 +347,15 @@ export interface TranscriptDTO {
|
|
|
345
347
|
node_id: NodeIdDTO;
|
|
346
348
|
markdown: string;
|
|
347
349
|
}
|
|
348
|
-
/** A canvas artifact under a node (`nodeArtifacts` → `HistoryArtifact`): a
|
|
349
|
-
* pushed report, a context doc, or the node roadmap. */
|
|
350
|
-
export interface ArtifactDTO {
|
|
351
|
-
/** Stable `<node-id>:<relpath>` handle. */
|
|
352
|
-
ref: string;
|
|
353
|
-
/** Artifact source — `report:<kind>` | `doc` | `roadmap` | `meta`. */
|
|
354
|
-
source: string;
|
|
355
|
-
ts: IsoTime;
|
|
356
|
-
title: string;
|
|
357
|
-
/** Byte size of the file behind the ref; 0 for a synthetic or unreadable one. */
|
|
358
|
-
size: number;
|
|
359
|
-
}
|
|
360
|
-
/** `GET /v1/nodes/{id}/artifacts` query. Narrow to one corpus; absent is the
|
|
361
|
-
* default report/doc/roadmap set (`inbox` is opt-in only). */
|
|
362
|
-
export interface ArtifactsQuery {
|
|
363
|
-
type?: 'report' | 'doc' | 'roadmap' | 'inbox';
|
|
364
|
-
}
|
|
365
|
-
/** `GET /v1/nodes/{id}/artifacts` result. */
|
|
366
|
-
export interface ArtifactListDTO {
|
|
367
|
-
node_id: NodeIdDTO;
|
|
368
|
-
artifacts: ArtifactDTO[];
|
|
369
|
-
}
|
|
370
350
|
/** One context root visible to a node — its own dir plus each publisher it
|
|
371
351
|
* subscribes to (the shared-document roster). */
|
|
372
352
|
export interface ContextRootDTO {
|
|
373
353
|
node_id: NodeIdDTO;
|
|
374
354
|
label: string;
|
|
375
355
|
dir: string;
|
|
376
|
-
reports_dir: string;
|
|
377
356
|
/** True for the node's own context root. */
|
|
378
357
|
self: boolean;
|
|
379
|
-
/** Count of context
|
|
358
|
+
/** Count of context files plus report documents for the root. */
|
|
380
359
|
files: number;
|
|
381
360
|
}
|
|
382
361
|
/** `GET /v1/nodes/{id}/context` result (the listing; the nvim popup stays local). */
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
export declare const OBJECT_TYPES: readonly ["document", "node", "job", "person", "app", "repo", "profile"];
|
|
2
|
+
export type ObjectTypeName = typeof OBJECT_TYPES[number];
|
|
3
|
+
export declare const PRIVACY_LEVELS_DTO: readonly ["public", "friends", "private"];
|
|
4
|
+
export type PrivacyName = typeof PRIVACY_LEVELS_DTO[number];
|
|
5
|
+
export type OwnerTypeName = 'person' | 'app' | 'repo' | 'profile' | 'node' | 'document' | 'job';
|
|
6
|
+
export interface ObjectOwnerDTO {
|
|
7
|
+
id: string;
|
|
8
|
+
type: OwnerTypeName;
|
|
9
|
+
handle: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ObjectDTO {
|
|
12
|
+
id: string;
|
|
13
|
+
type: ObjectTypeName;
|
|
14
|
+
kind: string | null;
|
|
15
|
+
owner: ObjectOwnerDTO | null;
|
|
16
|
+
privacy: PrivacyName;
|
|
17
|
+
name: string;
|
|
18
|
+
preview: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
deleted_at: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface DocHeadDTO {
|
|
23
|
+
rev_id: string;
|
|
24
|
+
number: number;
|
|
25
|
+
author_id: string | null;
|
|
26
|
+
created_at: string;
|
|
27
|
+
}
|
|
28
|
+
/** Optional document fields a `--fields` read returns. */
|
|
29
|
+
export interface DocFieldsDTO {
|
|
30
|
+
why_it_exists?: string | null;
|
|
31
|
+
unlisted?: boolean;
|
|
32
|
+
lint_ignore?: string[];
|
|
33
|
+
extensions?: Record<string, Record<string, unknown>>;
|
|
34
|
+
rules?: import('./docs.js').DeliveryRuleDTO[];
|
|
35
|
+
}
|
|
36
|
+
export interface DocumentReadDTO {
|
|
37
|
+
state: 'object';
|
|
38
|
+
type: 'document';
|
|
39
|
+
object: ObjectDTO;
|
|
40
|
+
summary: string | null;
|
|
41
|
+
revision: number;
|
|
42
|
+
heads: DocHeadDTO[];
|
|
43
|
+
/** One body per head, in `heads` order. */
|
|
44
|
+
bodies: string[];
|
|
45
|
+
needs_merge: boolean;
|
|
46
|
+
/** Documents named under it, then the documents it links to not already in your context at preview, each once. */
|
|
47
|
+
listing?: ObjectDTO[];
|
|
48
|
+
/** One `<auto-loaded-context>` block: enclosing listings and documents the read's `document-read` rules delivered. */
|
|
49
|
+
attachments?: string;
|
|
50
|
+
fields?: DocFieldsDTO;
|
|
51
|
+
}
|
|
52
|
+
export interface NodeReadDTO {
|
|
53
|
+
state: 'object';
|
|
54
|
+
type: 'node';
|
|
55
|
+
object: ObjectDTO;
|
|
56
|
+
status: string;
|
|
57
|
+
mandate_first_line: string;
|
|
58
|
+
children: ObjectDTO[];
|
|
59
|
+
owned: ObjectDTO[];
|
|
60
|
+
jobs: ObjectDTO[];
|
|
61
|
+
}
|
|
62
|
+
export interface JobReadDTO {
|
|
63
|
+
state: 'object';
|
|
64
|
+
type: 'job';
|
|
65
|
+
object: ObjectDTO;
|
|
66
|
+
command: string;
|
|
67
|
+
status: string;
|
|
68
|
+
exit_code: number | null;
|
|
69
|
+
log_path: string;
|
|
70
|
+
}
|
|
71
|
+
export interface OwnerReadDTO {
|
|
72
|
+
state: 'object';
|
|
73
|
+
type: 'person' | 'app' | 'repo' | 'profile';
|
|
74
|
+
object: ObjectDTO;
|
|
75
|
+
handle: string;
|
|
76
|
+
display_name: string;
|
|
77
|
+
identity: {
|
|
78
|
+
scheme: string;
|
|
79
|
+
external_id: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/** A pointer to a deleted object resolves to that object (§8); an answer, not an error. */
|
|
83
|
+
export interface ObjectDeletedDTO {
|
|
84
|
+
state: 'deleted';
|
|
85
|
+
deleted: ObjectDTO;
|
|
86
|
+
}
|
|
87
|
+
/** The name's first segment is no handle on this runtime; the object may live on another runtime. */
|
|
88
|
+
export interface ObjectRemoteDTO {
|
|
89
|
+
state: 'remote';
|
|
90
|
+
remote: string;
|
|
91
|
+
}
|
|
92
|
+
export type ObjectReadDTO = DocumentReadDTO | NodeReadDTO | JobReadDTO | OwnerReadDTO | ObjectDeletedDTO | ObjectRemoteDTO;
|
|
93
|
+
export interface ObjectReadQuery {
|
|
94
|
+
fields?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface ObjectListRequest {
|
|
97
|
+
type?: ObjectTypeName;
|
|
98
|
+
kind?: string;
|
|
99
|
+
/** An owner ref (name or id). */
|
|
100
|
+
owner?: string;
|
|
101
|
+
privacy?: PrivacyName;
|
|
102
|
+
/** Name prefix. */
|
|
103
|
+
name?: string;
|
|
104
|
+
deleted?: boolean;
|
|
105
|
+
limit?: number;
|
|
106
|
+
cursor?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface ObjectListItemDTO extends ObjectDTO {
|
|
109
|
+
summary?: string | null;
|
|
110
|
+
/** A document's rule count. */
|
|
111
|
+
rules?: number;
|
|
112
|
+
}
|
|
113
|
+
export interface ObjectListDTO {
|
|
114
|
+
items: ObjectListItemDTO[];
|
|
115
|
+
next_cursor: string | null;
|
|
116
|
+
}
|
|
117
|
+
export interface ObjectSearchRequest {
|
|
118
|
+
text: string;
|
|
119
|
+
body?: boolean;
|
|
120
|
+
grep?: string;
|
|
121
|
+
type?: ObjectTypeName;
|
|
122
|
+
kind?: string;
|
|
123
|
+
owner?: string;
|
|
124
|
+
limit?: number;
|
|
125
|
+
}
|
|
126
|
+
export interface ObjectSearchHitDTO {
|
|
127
|
+
object: ObjectListItemDTO;
|
|
128
|
+
matches?: Array<{
|
|
129
|
+
line: number;
|
|
130
|
+
text: string;
|
|
131
|
+
}>;
|
|
132
|
+
}
|
|
133
|
+
export interface ObjectSearchDTO {
|
|
134
|
+
items: ObjectSearchHitDTO[];
|
|
135
|
+
}
|
|
136
|
+
export type ListenDeliveryName = 'interrupt' | 'steer' | 'after-turn' | 'next-turn';
|
|
137
|
+
/** `{"<level 1-10>": delivery}` */
|
|
138
|
+
export type ListenConfigDTO = Record<string, ListenDeliveryName>;
|
|
139
|
+
export interface WatchRequest {
|
|
140
|
+
patterns?: string[];
|
|
141
|
+
config?: ListenConfigDTO;
|
|
142
|
+
filter?: Record<string, unknown>;
|
|
143
|
+
}
|
|
144
|
+
export interface UnwatchQuery {
|
|
145
|
+
pattern?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface WatchResultDTO {
|
|
148
|
+
object: ObjectDTO;
|
|
149
|
+
patterns: string[];
|
|
150
|
+
}
|
|
151
|
+
export interface UnwatchResultDTO {
|
|
152
|
+
object: ObjectDTO;
|
|
153
|
+
removed: number;
|
|
154
|
+
}
|
|
155
|
+
export type EdgeTypeName = 'acted-on' | 'links-to' | 'watches';
|
|
156
|
+
export interface EdgesQuery {
|
|
157
|
+
type?: EdgeTypeName;
|
|
158
|
+
direction?: 'out' | 'in';
|
|
159
|
+
}
|
|
160
|
+
export interface EdgeDTO {
|
|
161
|
+
type: EdgeTypeName;
|
|
162
|
+
src: ObjectDTO;
|
|
163
|
+
dst: ObjectDTO;
|
|
164
|
+
written_as?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface EdgesDTO {
|
|
167
|
+
items: EdgeDTO[];
|
|
168
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=["document","node","job","person","app","repo","profile"],e=["public","friends","private"];export{o as OBJECT_TYPES,e as PRIVACY_LEVELS_DTO};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/** The disclosure ladder, lowest to highest. Index order is the ordering. */
|
|
2
2
|
export declare const PROFILE_PROJECT_MEMORY_VALUES: readonly ["none", "name", "preview", "content"];
|
|
3
|
-
/** How much of
|
|
4
|
-
* automatic delivery disclose. */
|
|
3
|
+
/** How much of an owner's documents automatic delivery may disclose. */
|
|
5
4
|
export type ProfileProjectMemory = (typeof PROFILE_PROJECT_MEMORY_VALUES)[number];
|
|
6
5
|
/** One project directory in a profile's purview. */
|
|
7
6
|
export interface ProfileProject {
|
|
8
7
|
/** Absolute, real-path-resolved directory. */
|
|
9
8
|
path: string;
|
|
10
|
-
/** Maximum rung automatic boot and workspace-open delivery may reach from
|
|
11
|
-
* this project's memory stores, regardless of the node's working directory.
|
|
12
|
-
* An authored lower rung stays lower; targeted reads are never capped. */
|
|
13
|
-
memory: ProfileProjectMemory;
|
|
14
9
|
}
|
|
10
|
+
/** Per-owner cap on automatic `boot` and `workspace-open` delivery, keyed by
|
|
11
|
+
* owner handle (repo, profile, app, `user`, plugin). An absent owner is
|
|
12
|
+
* uncapped (`content`); a node's own documents are never capped. */
|
|
13
|
+
export type DeliveryLimits = Record<string, ProfileProjectMemory>;
|
|
15
14
|
/** `PUT /v1/profiles/{name}` body — idempotent ensure. Every field applies
|
|
16
15
|
* only at create; an existing same-named profile is returned untouched. */
|
|
17
16
|
export interface EnsureProfileRequest {
|
|
18
|
-
/** Project directories in the profile's purview
|
|
17
|
+
/** Project directories in the profile's purview. */
|
|
19
18
|
projects?: ProfileProject[];
|
|
20
19
|
/** Persona kind for node creates under the profile that omit kind. */
|
|
21
20
|
default_kind?: string;
|
|
@@ -33,8 +32,13 @@ export interface CreateProfileRequest extends EnsureProfileRequest {
|
|
|
33
32
|
export interface UpdateProfileRequest {
|
|
34
33
|
name?: string;
|
|
35
34
|
default_kind?: string;
|
|
36
|
-
/** Append a project
|
|
35
|
+
/** Append a project; a path already listed is left in place. */
|
|
37
36
|
add_project?: ProfileProject;
|
|
37
|
+
/** Set the automatic delivery limit for one owner handle; `content` removes it. */
|
|
38
|
+
set_delivery_limit?: {
|
|
39
|
+
owner: string;
|
|
40
|
+
level: ProfileProjectMemory;
|
|
41
|
+
};
|
|
38
42
|
/** Remove the project at this path; the directory need not still exist. */
|
|
39
43
|
remove_project?: string;
|
|
40
44
|
}
|
|
@@ -94,6 +98,8 @@ export interface ProfileDTO {
|
|
|
94
98
|
app: string;
|
|
95
99
|
name: string;
|
|
96
100
|
projects: ProfileProject[];
|
|
101
|
+
/** Per-owner delivery caps; empty when the profile sets none. */
|
|
102
|
+
delivery_limits: DeliveryLimits;
|
|
97
103
|
/** ISO timestamp when the profile was paused, or null while active. */
|
|
98
104
|
paused_at: string | null;
|
|
99
105
|
/** Default node kind when a create omits kind; `general` when absent on the manifest. */
|
|
@@ -14,8 +14,8 @@ export interface PushReportRequest {
|
|
|
14
14
|
/** Result of a push. `transitioned` is present only for `final`, which drives a
|
|
15
15
|
* server-side lifecycle transition. */
|
|
16
16
|
export interface PushReportResultDTO {
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/** The written report document's ref, `<node-id>/reports/<name>`. */
|
|
18
|
+
report: string;
|
|
19
19
|
/** Subscriber node ids that received an inbox entry. */
|
|
20
20
|
notified: NodeIdDTO[];
|
|
21
21
|
transitioned?: {
|
|
@@ -65,8 +65,8 @@ export interface SubmitResultDTO {
|
|
|
65
65
|
result_path: string;
|
|
66
66
|
/** Present only when the request was declined. */
|
|
67
67
|
declined?: DeclinedResultDTO;
|
|
68
|
-
/**
|
|
69
|
-
|
|
68
|
+
/** Ref of the report document pushed alongside the result, `<node-id>/reports/<name>`. */
|
|
69
|
+
report: string;
|
|
70
70
|
/** Subscriber node ids that received an inbox entry. */
|
|
71
71
|
notified: NodeIdDTO[];
|
|
72
72
|
transitioned?: {
|
|
@@ -81,10 +81,12 @@ export interface ReportsQuery {
|
|
|
81
81
|
tier?: ReportTierDTO;
|
|
82
82
|
limit?: number;
|
|
83
83
|
}
|
|
84
|
-
/** A single stored report
|
|
84
|
+
/** A single stored report document. */
|
|
85
85
|
export interface ReportDTO {
|
|
86
|
-
/**
|
|
87
|
-
|
|
86
|
+
/** Document name under the node, `reports/<compact-ts>-<uuid8>-<kind>`. */
|
|
87
|
+
name: string;
|
|
88
|
+
/** Document object id. */
|
|
89
|
+
id: string;
|
|
88
90
|
tier: ReportTierDTO;
|
|
89
91
|
body: string;
|
|
90
92
|
created: IsoTime;
|
|
@@ -9,8 +9,14 @@ export interface CreateReviewRequest {
|
|
|
9
9
|
origin_kind: ReviewOriginKindDTO;
|
|
10
10
|
/** Caller-selected node whose persisted session is forked. */
|
|
11
11
|
origin_node_id: NodeIdDTO;
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/** The document to review, as a canvas ref (`[[ ]]` optional) — required for ticket reviews,
|
|
13
|
+
* and the alternative to `file` for inline ones. The daemon reads it as the caller, snapshots
|
|
14
|
+
* its head to `<review_dir>/document.md`, and on submit saves the reviewed text as a new
|
|
15
|
+
* revision (refused as `stale_revision` if it moved). */
|
|
16
|
+
document?: string;
|
|
17
|
+
/** Inline reviews of a file: an absolute path; the daemon canonicalizes and validates it.
|
|
18
|
+
* An inline review takes exactly one of `file` or `document`. */
|
|
19
|
+
file?: string;
|
|
14
20
|
/** Caller-minted invocation key; the daemon enforces its uniqueness. */
|
|
15
21
|
idempotency_key: string;
|
|
16
22
|
/** Caller-supplied ticket subtitle; required for ticket origins. */
|
|
@@ -30,8 +36,10 @@ export interface ReviewDTO {
|
|
|
30
36
|
review_dir: string;
|
|
31
37
|
/** Daemon-preallocated companion node. */
|
|
32
38
|
companion_node_id: NodeIdDTO;
|
|
33
|
-
/** Daemon-canonicalized reviewed file path. */
|
|
39
|
+
/** Daemon-canonicalized reviewed file path (for a document review, its `document.md` snapshot). */
|
|
34
40
|
file: string;
|
|
41
|
+
/** The reviewed document's `<owner>/<name>`, for a document review. */
|
|
42
|
+
document?: string;
|
|
35
43
|
/** Daemon lifecycle state; never `binding`. */
|
|
36
44
|
state: ReviewStateDTO;
|
|
37
45
|
/** Daemon capture timestamp. */
|
|
@@ -49,7 +49,7 @@ export interface SpaceDTO {
|
|
|
49
49
|
/** Bytes the space occupies, or null when it cannot be measured. */
|
|
50
50
|
size_bytes: number | null;
|
|
51
51
|
}
|
|
52
|
-
/** `GET /v1/spaces
|
|
52
|
+
/** `GET /v1/spaces`. */
|
|
53
53
|
export interface SpaceListDTO {
|
|
54
54
|
spaces: SpaceDTO[];
|
|
55
55
|
}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export * from './dto/worktree.js';
|
|
|
28
28
|
export * from './dto/human.js';
|
|
29
29
|
export * from './dto/files.js';
|
|
30
30
|
export * from './dto/bash.js';
|
|
31
|
-
export * from './dto/memory.js';
|
|
32
31
|
export * from './dto/inbox.js';
|
|
33
32
|
export * from './dto/human-requests.js';
|
|
34
33
|
export * from './dto/reviews.js';
|
package/dist/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CrtrClient as t,waitForDaemonAvailability as e}from"./client.js";import{APIError as p,ApiError as f,isErrorBody as x}from"./errors.js";import{API_VERSION as a,routes as A}from"./routes.js";export*from"../shared/generated-context.js";export*from"./dto/common.js";export*from"./dto/health.js";export*from"./dto/grants.js";export*from"./dto/nodes.js";export*from"./dto/node-outcomes.js";export*from"./dto/node-events.js";export*from"./dto/bash-jobs.js";export*from"./dto/messages.js";export*from"./dto/reports.js";export*from"./dto/lifecycle.js";export*from"./dto/subscriptions.js";export*from"./dto/focus.js";export*from"./dto/crons.js";export*from"./dto/config.js";export*from"./dto/attach.js";export*from"./dto/broker.js";export*from"./dto/profiles.js";export*from"./dto/modelauth.js";export*from"./dto/model-config.js";export*from"./dto/canvas.js";export*from"./dto/worktree.js";export*from"./dto/human.js";export*from"./dto/files.js";export*from"./dto/bash.js";export*from"./dto/
|
|
1
|
+
import{CrtrClient as t,waitForDaemonAvailability as e}from"./client.js";import{APIError as p,ApiError as f,isErrorBody as x}from"./errors.js";import{API_VERSION as a,routes as A}from"./routes.js";export*from"../shared/generated-context.js";export*from"./dto/common.js";export*from"./dto/health.js";export*from"./dto/grants.js";export*from"./dto/nodes.js";export*from"./dto/node-outcomes.js";export*from"./dto/node-events.js";export*from"./dto/bash-jobs.js";export*from"./dto/messages.js";export*from"./dto/reports.js";export*from"./dto/lifecycle.js";export*from"./dto/subscriptions.js";export*from"./dto/focus.js";export*from"./dto/crons.js";export*from"./dto/config.js";export*from"./dto/attach.js";export*from"./dto/broker.js";export*from"./dto/profiles.js";export*from"./dto/modelauth.js";export*from"./dto/model-config.js";export*from"./dto/canvas.js";export*from"./dto/worktree.js";export*from"./dto/human.js";export*from"./dto/files.js";export*from"./dto/bash.js";export*from"./dto/inbox.js";export*from"./dto/human-requests.js";export*from"./dto/reviews.js";export*from"./dto/review-comments.js";export*from"./dto/chat-inventory.js";export*from"./dto/analytics.js";export{p as APIError,a as API_VERSION,f as ApiError,t as CrtrClient,x as isErrorBody,A as routes,e as waitForDaemonAvailability};
|
package/dist/api/routes.d.ts
CHANGED
|
@@ -21,11 +21,13 @@ export declare const routes: {
|
|
|
21
21
|
readonly prospectiveChatInventory: () => string;
|
|
22
22
|
readonly nodeTranscript: (id: string) => string;
|
|
23
23
|
readonly nodeContext: (id: string) => string;
|
|
24
|
-
readonly nodeArtifacts: (id: string) => string;
|
|
25
24
|
readonly nodeReports: (id: string) => string;
|
|
26
25
|
readonly nodeResult: (id: string) => string;
|
|
27
26
|
readonly nodeJobs: (id: string) => string;
|
|
28
27
|
readonly nodeJob: (id: string, jobId: string) => string;
|
|
28
|
+
readonly nodeJobBackground: (id: string, jobId: string) => string;
|
|
29
|
+
readonly nodeDelivery: (id: string) => string;
|
|
30
|
+
readonly deliveryDryRun: () => string;
|
|
29
31
|
readonly nodeMessages: (id: string) => string;
|
|
30
32
|
readonly nodeInterrupt: (id: string) => string;
|
|
31
33
|
readonly nodeFork: (id: string) => string;
|
|
@@ -46,10 +48,6 @@ export declare const routes: {
|
|
|
46
48
|
readonly nodeMailAcknowledge: (id: string) => string;
|
|
47
49
|
readonly nodeBrokerModel: (id: string) => string;
|
|
48
50
|
readonly nodeBrokerExtensionState: (id: string) => string;
|
|
49
|
-
readonly nodeBrokerContext: (id: string) => string;
|
|
50
|
-
readonly nodeBrokerMemoryRefs: (id: string) => string;
|
|
51
|
-
readonly nodeBrokerContextCommit: (id: string) => string;
|
|
52
|
-
readonly nodeBrokerContextEvent: (id: string) => string;
|
|
53
51
|
readonly nodeBrokerGeneratedName: (id: string) => string;
|
|
54
52
|
readonly nodeBrokerPersonaAck: (id: string) => string;
|
|
55
53
|
readonly brokerTurn: (id: string) => string;
|
|
@@ -139,11 +137,15 @@ export declare const routes: {
|
|
|
139
137
|
readonly fileWrite: () => string;
|
|
140
138
|
readonly fileList: () => string;
|
|
141
139
|
readonly bash: () => string;
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
146
|
-
readonly
|
|
147
|
-
readonly
|
|
148
|
-
readonly
|
|
140
|
+
readonly objects: () => string;
|
|
141
|
+
readonly object: (ref: string) => string;
|
|
142
|
+
readonly objectsSearch: () => string;
|
|
143
|
+
readonly objectWatch: (ref: string) => string;
|
|
144
|
+
readonly objectEdges: (ref: string) => string;
|
|
145
|
+
readonly docs: () => string;
|
|
146
|
+
readonly doc: (ref: string) => string;
|
|
147
|
+
readonly docMove: (ref: string) => string;
|
|
148
|
+
readonly docHistory: (ref: string) => string;
|
|
149
|
+
readonly docsLint: () => string;
|
|
150
|
+
readonly documentsReconcilePackages: () => string;
|
|
149
151
|
};
|
package/dist/api/routes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var s=Object.defineProperty;var o=(e,n)=>s(e,"name",{value:n,configurable:!0});const
|
|
1
|
+
var s=Object.defineProperty;var o=(e,n)=>s(e,"name",{value:n,configurable:!0});const r="v1",a="/v1",t={healthz:o(()=>"/healthz","healthz"),status:o(()=>"/v1/status","status"),daemonRestart:o(()=>"/v1/daemon/restart","daemonRestart"),daemonMigrate:o(()=>"/v1/daemon/migrate","daemonMigrate"),daemonAdmit:o(()=>"/v1/daemon/admit","daemonAdmit"),nodes:o(()=>"/v1/nodes","nodes"),reviveAll:o(()=>"/v1/nodes/revive-all","reviveAll"),node:o(e=>`/v1/nodes/${e}`,"node"),nodeMemoryReads:o(e=>`/v1/nodes/${e}/memory-reads`,"nodeMemoryReads"),nodeOutcome:o(e=>`/v1/nodes/${e}/outcome`,"nodeOutcome"),nodeOutcomeDelivery:o(e=>`/v1/nodes/${e}/outcome-delivery`,"nodeOutcomeDelivery"),nodeEvents:o(e=>`/v1/nodes/${e}/events`,"nodeEvents"),nodeSnapshot:o(e=>`/v1/nodes/${e}/snapshot`,"nodeSnapshot"),nodeSubject:o(e=>`/v1/nodes/${e}/subject`,"nodeSubject"),nodeSession:o(e=>`/v1/nodes/${e}/session`,"nodeSession"),nodeChatInventory:o(e=>`/v1/nodes/${e}/chat-inventory`,"nodeChatInventory"),prospectiveChatInventory:o(()=>"/v1/prospective-chat-inventory","prospectiveChatInventory"),nodeTranscript:o(e=>`/v1/nodes/${e}/transcript`,"nodeTranscript"),nodeContext:o(e=>`/v1/nodes/${e}/context`,"nodeContext"),nodeReports:o(e=>`/v1/nodes/${e}/reports`,"nodeReports"),nodeResult:o(e=>`/v1/nodes/${e}/result`,"nodeResult"),nodeJobs:o(e=>`/v1/nodes/${e}/jobs`,"nodeJobs"),nodeJob:o((e,n)=>`/v1/nodes/${e}/jobs/${n}`,"nodeJob"),nodeJobBackground:o((e,n)=>`/v1/nodes/${e}/jobs/${n}/background`,"nodeJobBackground"),nodeDelivery:o(e=>`/v1/nodes/${e}/delivery`,"nodeDelivery"),deliveryDryRun:o(()=>"/v1/delivery/dry-run","deliveryDryRun"),nodeMessages:o(e=>`/v1/nodes/${e}/messages`,"nodeMessages"),nodeInterrupt:o(e=>`/v1/nodes/${e}/interrupt`,"nodeInterrupt"),nodeFork:o(e=>`/v1/nodes/${e}/fork`,"nodeFork"),nodeRevive:o(e=>`/v1/nodes/${e}/revive`,"nodeRevive"),nodeRelaunchRoot:o(e=>`/v1/nodes/${e}/relaunch-root`,"nodeRelaunchRoot"),nodeBrokerSessionBound:o(e=>`/v1/nodes/${e}/broker/session-bound`,"nodeBrokerSessionBound"),nodeBrokerSettle:o(e=>`/v1/nodes/${e}/broker/settle`,"nodeBrokerSettle"),nodeBrokerParkComplete:o(e=>`/v1/nodes/${e}/broker/park-complete`,"nodeBrokerParkComplete"),nodeBrokerParkActivity:o(e=>`/v1/nodes/${e}/broker/park-activity`,"nodeBrokerParkActivity"),nodeBrokerTelemetry:o(e=>`/v1/nodes/${e}/broker/telemetry`,"nodeBrokerTelemetry"),nodeLog:o(e=>`/v1/nodes/${e}/records/log`,"nodeLog"),nodeTelemetry:o(e=>`/v1/nodes/${e}/records/telemetry`,"nodeTelemetry"),nodeRecap:o(e=>`/v1/nodes/${e}/records/recap`,"nodeRecap"),nodeInboxReport:o(e=>`/v1/nodes/${e}/records/inbox`,"nodeInboxReport"),nodePassiveMessage:o(e=>`/v1/nodes/${e}/records/passive`,"nodePassiveMessage"),nodePushedFinal:o(e=>`/v1/nodes/${e}/records/pushed-final`,"nodePushedFinal"),nodeMailClaim:o(e=>`/v1/nodes/${e}/mail/claim`,"nodeMailClaim"),nodeMailAcknowledge:o(e=>`/v1/nodes/${e}/mail/acknowledge`,"nodeMailAcknowledge"),nodeBrokerModel:o(e=>`/v1/nodes/${e}/broker/model`,"nodeBrokerModel"),nodeBrokerExtensionState:o(e=>`/v1/nodes/${e}/broker/extension-state`,"nodeBrokerExtensionState"),nodeBrokerGeneratedName:o(e=>`/v1/nodes/${e}/broker/generated-name`,"nodeBrokerGeneratedName"),nodeBrokerPersonaAck:o(e=>`/v1/nodes/${e}/broker/persona-ack`,"nodeBrokerPersonaAck"),brokerTurn:o(e=>`/v1/broker/${e}/turn`,"brokerTurn"),brokerProviderRetry:o(e=>`/v1/broker/${e}/provider-retry`,"brokerProviderRetry"),brokerFault:o(e=>`/v1/broker/${e}/fault`,"brokerFault"),brokerRecovery:o(e=>`/v1/broker/${e}/recovery`,"brokerRecovery"),nodeFault:o(e=>`/v1/nodes/${e}/fault`,"nodeFault"),nodeClose:o(e=>`/v1/nodes/${e}/close`,"nodeClose"),nodeRecycle:o(e=>`/v1/nodes/${e}/recycle`,"nodeRecycle"),nodeDemote:o(e=>`/v1/nodes/${e}/demote`,"nodeDemote"),nodePromote:o(e=>`/v1/nodes/${e}/promote`,"nodePromote"),nodeYield:o(e=>`/v1/nodes/${e}/yield`,"nodeYield"),nodeWait:o(e=>`/v1/nodes/${e}/wait`,"nodeWait"),nodeConfig:o(e=>`/v1/nodes/${e}/config`,"nodeConfig"),kinds:o(()=>"/v1/kinds","kinds"),nodeWorktreeClose:o(e=>`/v1/nodes/${e}/worktree/close`,"nodeWorktreeClose"),nodeWorktreeAbandon:o(e=>`/v1/nodes/${e}/worktree/abandon`,"nodeWorktreeAbandon"),quarantinedWorktrees:o(()=>"/v1/worktrees/quarantined","quarantinedWorktrees"),spaces:o(()=>"/v1/spaces","spaces"),nodeAttach:o(e=>`/v1/nodes/${e}/attach`,"nodeAttach"),focuses:o(()=>"/v1/focuses","focuses"),focusByNode:o(()=>"/v1/focuses/by-node","focusByNode"),focusByPane:o(()=>"/v1/focuses/by-pane","focusByPane"),focus:o(e=>`/v1/focuses/${e}`,"focus"),nodeSubscriptions:o(e=>`/v1/nodes/${e}/subscriptions`,"nodeSubscriptions"),nodeSubscription:o((e,n)=>`/v1/nodes/${e}/subscriptions/${n}`,"nodeSubscription"),crons:o(()=>"/v1/crons","crons"),cron:o(e=>`/v1/crons/${e}`,"cron"),cronPause:o(e=>`/v1/crons/${e}/pause`,"cronPause"),cronResume:o(e=>`/v1/crons/${e}/resume`,"cronResume"),cronRun:o(e=>`/v1/crons/${e}/run`,"cronRun"),cronsPoke:o(()=>"/v1/crons/poke","cronsPoke"),canvasAttention:o(()=>"/v1/canvas/attention","canvasAttention"),canvasAttentionCounts:o(()=>"/v1/canvas/attention/counts","canvasAttentionCounts"),canvasHistorySearch:o(()=>"/v1/canvas/history/search","canvasHistorySearch"),canvasHistoryGrep:o(()=>"/v1/canvas/history/grep","canvasHistoryGrep"),canvasHistoryRead:o(()=>"/v1/canvas/history/read","canvasHistoryRead"),canvasHistoryStats:o(()=>"/v1/canvas/history/stats","canvasHistoryStats"),canvasSnapshot:o(()=>"/v1/canvas/snapshot","canvasSnapshot"),canvasRoster:o(()=>"/v1/canvas/roster","canvasRoster"),canvasAnalytics:o(()=>"/v1/canvas/analytics","canvasAnalytics"),canvasGraph:o(()=>"/v1/canvas/graph","canvasGraph"),canvasPrune:o(()=>"/v1/canvas/prune","canvasPrune"),humanReviews:o(()=>"/v1/human/reviews","humanReviews"),humanReview:o(e=>`/v1/human/reviews/${e}`,"humanReview"),humanReviewSubmit:o(e=>`/v1/human/reviews/${e}/submit`,"humanReviewSubmit"),humanReviewCancel:o(e=>`/v1/human/reviews/${e}/cancel`,"humanReviewCancel"),humanReviewDocument:o(e=>`/v1/human/reviews/${e}/document`,"humanReviewDocument"),humanReviewComments:o(e=>`/v1/human/reviews/${e}/comments`,"humanReviewComments"),humanReviewCommentEvents:o(e=>`/v1/human/reviews/${e}/comment-events`,"humanReviewCommentEvents"),humanReviewCommentRanges:o(e=>`/v1/human/reviews/${e}/comment-ranges`,"humanReviewCommentRanges"),humanComment:o(e=>`/v1/human/comments/${e}`,"humanComment"),humanCommentEdit:o(e=>`/v1/human/comments/${e}/edit`,"humanCommentEdit"),humanCommentResolve:o(e=>`/v1/human/comments/${e}/resolve`,"humanCommentResolve"),humanCommentReopen:o(e=>`/v1/human/comments/${e}/reopen`,"humanCommentReopen"),humanCommentDelete:o(e=>`/v1/human/comments/${e}/delete`,"humanCommentDelete"),humanCommentFork:o(e=>`/v1/human/comments/${e}/fork`,"humanCommentFork"),humanInbox:o(()=>"/v1/human/inbox","humanInbox"),humanInboxTicket:o(e=>`/v1/human/inbox/${e}`,"humanInboxTicket"),humanInboxRespond:o(e=>`/v1/human/inbox/${e}/respond`,"humanInboxRespond"),humanInboxProgress:o(e=>`/v1/human/inbox/${e}/progress`,"humanInboxProgress"),humanInboxResponse:o(e=>`/v1/human/inbox/${e}/response`,"humanInboxResponse"),humanInboxCancel:o(e=>`/v1/human/inbox/${e}/cancel`,"humanInboxCancel"),humanInboxFeedbackResolve:o((e,n)=>`/v1/human/inbox/${e}/feedback-comments/${n}/resolve`,"humanInboxFeedbackResolve"),humanRequests:o(()=>"/v1/human/requests","humanRequests"),humanComponents:o(()=>"/v1/human/components","humanComponents"),humanRequest:o(e=>`/v1/human/requests/${e}`,"humanRequest"),humanRequestReplace:o(e=>`/v1/human/requests/${e}/replace`,"humanRequestReplace"),humanRequestRespond:o(e=>`/v1/human/requests/${e}/respond`,"humanRequestRespond"),humanRequestDismiss:o(e=>`/v1/human/requests/${e}/dismiss`,"humanRequestDismiss"),humanRequestCancel:o(e=>`/v1/human/requests/${e}/cancel`,"humanRequestCancel"),profiles:o(()=>"/v1/profiles","profiles"),profile:o(e=>`/v1/profiles/${e}`,"profile"),profilePause:o(e=>`/v1/profiles/${e}/pause`,"profilePause"),profileResume:o(e=>`/v1/profiles/${e}/resume`,"profileResume"),profileMetadata:o(e=>`/v1/profiles/${e}/metadata`,"profileMetadata"),profileEnv:o(e=>`/v1/profiles/${e}/env`,"profileEnv"),profileEnvVar:o((e,n)=>`/v1/profiles/${e}/env/${n}`,"profileEnvVar"),modelAuths:o(()=>"/v1/model-auth","modelAuths"),modelAuthReadiness:o(()=>"/v1/model-auth/readiness","modelAuthReadiness"),modelAuth:o(e=>`/v1/model-auth/${e}`,"modelAuth"),modelAuthFlows:o(()=>"/v1/model-auth/flows","modelAuthFlows"),modelAuthFlow:o(e=>`/v1/model-auth/flows/${encodeURIComponent(e)}`,"modelAuthFlow"),modelAuthFlowComplete:o(e=>`/v1/model-auth/flows/${encodeURIComponent(e)}/complete`,"modelAuthFlowComplete"),modelAuthFlowCancel:o(e=>`/v1/model-auth/flows/${encodeURIComponent(e)}/cancel`,"modelAuthFlowCancel"),filePeek:o(()=>"/v1/files/peek","filePeek"),fileWrite:o(()=>"/v1/files/write","fileWrite"),fileList:o(()=>"/v1/files/list","fileList"),bash:o(()=>"/v1/bash","bash"),objects:o(()=>"/v1/objects","objects"),object:o(e=>`/v1/objects/${encodeURIComponent(e)}`,"object"),objectsSearch:o(()=>"/v1/objects/search","objectsSearch"),objectWatch:o(e=>`/v1/objects/${encodeURIComponent(e)}/watch`,"objectWatch"),objectEdges:o(e=>`/v1/objects/${encodeURIComponent(e)}/edges`,"objectEdges"),docs:o(()=>"/v1/docs","docs"),doc:o(e=>`/v1/docs/${encodeURIComponent(e)}`,"doc"),docMove:o(e=>`/v1/docs/${encodeURIComponent(e)}/move`,"docMove"),docHistory:o(e=>`/v1/docs/${encodeURIComponent(e)}/history`,"docHistory"),docsLint:o(()=>"/v1/docs/lint","docsLint"),documentsReconcilePackages:o(()=>"/v1/documents/reconcile-packages","documentsReconcilePackages")};export{r as API_VERSION,t as routes};
|