@ouro.bot/cli 0.1.0-alpha.1469 → 0.1.0-alpha.1470
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/README.md +1 -1
- package/changelog.json +6 -2
- package/deploy/unraid/sanctuary.ouro/bundle-meta.json +1 -1
- package/deploy/unraid/sanctuary.xml +1 -1
- package/desk.lock.json +8 -0
- package/dist/heart/identity.js +27 -1
- package/dist/mind/desk-section.js +33 -43
- package/dist/repertoire/desk-mcp.js +140 -0
- package/dist/repertoire/mcp-manager.js +22 -0
- package/dist/repertoire/mcp-tools.js +11 -7
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -1
- package/vendor/desk/.claude-plugin/plugin.json +35 -0
- package/vendor/desk/.mcp.claude-codex.json +28 -0
- package/vendor/desk/.mcp.copilot.json +16 -0
- package/vendor/desk/.ouro-desk.json +6 -0
- package/vendor/desk/CHANGELOG.md +7004 -0
- package/vendor/desk/README.md +195 -0
- package/vendor/desk/activation/README.md +98 -0
- package/vendor/desk/activation/copilot-root.flattened-bundle.json +38 -0
- package/vendor/desk/activation/desk.activation.json +251 -0
- package/vendor/desk/activation/host-capability-evidence.md +46 -0
- package/vendor/desk/activation/support-matrix.json +84 -0
- package/vendor/desk/agency.json +20 -0
- package/vendor/desk/agents/observer.agent.md +26 -0
- package/vendor/desk/agents/observer.md +29 -0
- package/vendor/desk/agents/worker.agent.md +32 -0
- package/vendor/desk/agents/worker.md +40 -0
- package/vendor/desk/artifacts/tombstones/tombstone.schema.json +53 -0
- package/vendor/desk/artifacts/tombstones/tombstones.jsonl +1 -0
- package/vendor/desk/changelog.d/README.md +12 -0
- package/vendor/desk/docs/agent-files.md +104 -0
- package/vendor/desk/docs/agentic-engineering-v2-rfc.md +206 -0
- package/vendor/desk/docs/agentic-engineering-v3-rfc.md +109 -0
- package/vendor/desk/docs/browser-remote-desktops.md +69 -0
- package/vendor/desk/docs/dependency-activation-stories-and-criteria.md +500 -0
- package/vendor/desk/docs/evaluation-packet.md +363 -0
- package/vendor/desk/docs/factory-local-capture.md +651 -0
- package/vendor/desk/docs/factory-store-playbook.md +927 -0
- package/vendor/desk/docs/images/factory-site.png +0 -0
- package/vendor/desk/docs/issue-drains.md +79 -0
- package/vendor/desk/docs/lfs-inspection.md +55 -0
- package/vendor/desk/docs/preview-diagnostics.md +11 -0
- package/vendor/desk/docs/relays.md +88 -0
- package/vendor/desk/docs/schedules.md +69 -0
- package/vendor/desk/docs/search-recovery.md +22 -0
- package/vendor/desk/docs/session-labels.md +157 -0
- package/vendor/desk/docs/session-retention.md +125 -0
- package/vendor/desk/docs/sessions.md +17 -0
- package/vendor/desk/docs/stalled-nudges.md +54 -0
- package/vendor/desk/docs/webhooks.md +80 -0
- package/vendor/desk/docs/workspace-tidy.md +74 -0
- package/vendor/desk/hooks/boot-checks.cjs +7 -0
- package/vendor/desk/hooks/claude-session-start.cjs +123 -0
- package/vendor/desk/hooks/compatible-node.cjs +97 -0
- package/vendor/desk/hooks/copilot-boot-prompt.cjs +69 -0
- package/vendor/desk/hooks/copilot-durable-files.cjs +8 -0
- package/vendor/desk/hooks/copilot-hooks.json +61 -0
- package/vendor/desk/hooks/copilot-intake-context.cjs +5 -0
- package/vendor/desk/hooks/copilot-lane-model.cjs +8 -0
- package/vendor/desk/hooks/copilot-session-start.cjs +264 -0
- package/vendor/desk/hooks/copilot-skill-current.cjs +28 -0
- package/vendor/desk/hooks/factory-end.cjs +5 -0
- package/vendor/desk/hooks/factory-start.cjs +27 -0
- package/vendor/desk/hooks/hooks.json +40 -0
- package/vendor/desk/hooks/lib/boot-checks.cjs +643 -0
- package/vendor/desk/hooks/lib/child-agent.cjs +14 -0
- package/vendor/desk/hooks/lib/copilot-intake-context.cjs +73 -0
- package/vendor/desk/hooks/lib/current-release.cjs +162 -0
- package/vendor/desk/hooks/lib/delivery-stop.cjs +326 -0
- package/vendor/desk/hooks/lib/detach-worker.cjs +43 -0
- package/vendor/desk/hooks/lib/durable-files.cjs +102 -0
- package/vendor/desk/hooks/lib/factory-end.cjs +327 -0
- package/vendor/desk/hooks/lib/lane-model.cjs +82 -0
- package/vendor/desk/hooks/lib/node-required.cjs +56 -0
- package/vendor/desk/hooks/lib/orca-session-title.cjs +60 -0
- package/vendor/desk/hooks/lib/session-end.cjs +30 -0
- package/vendor/desk/hooks/lib/sync-end.cjs +89 -0
- package/vendor/desk/hooks/loop-start.cjs +105 -0
- package/vendor/desk/hooks/node-missing.sh +78 -0
- package/vendor/desk/hooks/orca-session-title.cjs +8 -0
- package/vendor/desk/hooks/session-end.cjs +8 -0
- package/vendor/desk/mcp/README.md +269 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/darwin-arm64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-127/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/linux-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/support-matrix.json +72 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-137/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.manifest.json +881 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.sha256 +1 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/1.4.0-alpha.6/win32-x64-node-147/3b0cb8b1e7dd77a982b38375fe88a5278bd77974213e18be025d7dc8deea800f/runtime-deps.tgz +0 -0
- package/vendor/desk/mcp/artifacts/runtime-deps/README.md +25 -0
- package/vendor/desk/mcp/bootstrap.cjs +761 -0
- package/vendor/desk/mcp/docs/private-feedback.md +13 -0
- package/vendor/desk/mcp/idle-proxy.cjs +423 -0
- package/vendor/desk/mcp/index.js +813 -0
- package/vendor/desk/mcp/package-lock.json +3717 -0
- package/vendor/desk/mcp/package.json +44 -0
- package/vendor/desk/mcp/scripts/agency-desk-channel.js +7 -0
- package/vendor/desk/mcp/scripts/build-runtime-deps-pack.js +5 -0
- package/vendor/desk/mcp/scripts/crew.js +89 -0
- package/vendor/desk/mcp/scripts/drains-launcher.mjs +329 -0
- package/vendor/desk/mcp/scripts/drains.js +5 -0
- package/vendor/desk/mcp/scripts/factory.js +657 -0
- package/vendor/desk/mcp/scripts/file-desk-problem.js +9 -0
- package/vendor/desk/mcp/scripts/finish-commit.js +7 -0
- package/vendor/desk/mcp/scripts/lfs.js +37 -0
- package/vendor/desk/mcp/scripts/local-recovery.js +363 -0
- package/vendor/desk/mcp/scripts/migrations.js +11 -0
- package/vendor/desk/mcp/scripts/private-view.js +177 -0
- package/vendor/desk/mcp/scripts/resolve-desk-root.js +106 -0
- package/vendor/desk/mcp/scripts/session-boot.js +22 -0
- package/vendor/desk/mcp/scripts/session-retention.js +5 -0
- package/vendor/desk/mcp/scripts/session-sync.js +10 -0
- package/vendor/desk/mcp/scripts/sessions.js +5 -0
- package/vendor/desk/mcp/scripts/sync-push.js +13 -0
- package/vendor/desk/mcp/scripts/tidy-status.js +8 -0
- package/vendor/desk/mcp/scripts/verify-runtime-deps-pack.js +5 -0
- package/vendor/desk/mcp/src/actions/desk-read.actions.mts +73 -0
- package/vendor/desk/mcp/src/actions/desk-session.actions.mts +42 -0
- package/vendor/desk/mcp/src/actions/desk-web.actions.mts +52 -0
- package/vendor/desk/mcp/src/actions/desk.actions.mts +5 -0
- package/vendor/desk/mcp/src/actions/generated/desk/OuroActions.swift +649 -0
- package/vendor/desk/mcp/src/actions/generated/desk/OuroActionsReins.swift +61 -0
- package/vendor/desk/mcp/src/actions/generated/desk/actions.json +280 -0
- package/vendor/desk/mcp/src/actions/generated/desk/commands.json +145 -0
- package/vendor/desk/mcp/src/actions/generated/desk/mcp.json +256 -0
- package/vendor/desk/mcp/src/actions/generated/desk/web.ts +59 -0
- package/vendor/desk/mcp/src/actions/generated/desk/webmcp.json +250 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/OuroActions.swift +241 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/OuroActionsReins.swift +25 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/actions.json +73 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/commands.json +53 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/mcp.json +83 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/web.ts +47 -0
- package/vendor/desk/mcp/src/actions/generated/desk-web/webmcp.json +81 -0
- package/vendor/desk/mcp/src/actions/served.js +5 -0
- package/vendor/desk/mcp/src/activation/admit.js +77 -0
- package/vendor/desk/mcp/src/activation/failures.js +65 -0
- package/vendor/desk/mcp/src/activation/readiness-policy.js +102 -0
- package/vendor/desk/mcp/src/activation/schema.js +17 -0
- package/vendor/desk/mcp/src/activation/superpowers-context.js +265 -0
- package/vendor/desk/mcp/src/activation/validate.js +540 -0
- package/vendor/desk/mcp/src/artifacts/tombstones.js +61 -0
- package/vendor/desk/mcp/src/crew/initiative.js +287 -0
- package/vendor/desk/mcp/src/crew/workspace.js +1259 -0
- package/vendor/desk/mcp/src/db/init.js +75 -0
- package/vendor/desk/mcp/src/db/schema.sql +83 -0
- package/vendor/desk/mcp/src/desk/active-tasks.js +408 -0
- package/vendor/desk/mcp/src/desk/card-commit-guard.js +281 -0
- package/vendor/desk/mcp/src/desk/cleanup-index.js +53 -0
- package/vendor/desk/mcp/src/desk/content-home.js +246 -0
- package/vendor/desk/mcp/src/desk/crew-config.js +102 -0
- package/vendor/desk/mcp/src/desk/crew-member.js +196 -0
- package/vendor/desk/mcp/src/desk/crew-roster.js +151 -0
- package/vendor/desk/mcp/src/desk/frontmatter-lite.js +228 -0
- package/vendor/desk/mcp/src/desk/gh-logins.js +109 -0
- package/vendor/desk/mcp/src/desk/handles.js +123 -0
- package/vendor/desk/mcp/src/desk/handoff-reference.js +35 -0
- package/vendor/desk/mcp/src/desk/improvement-authority.js +3 -0
- package/vendor/desk/mcp/src/desk/improvement-cards.js +704 -0
- package/vendor/desk/mcp/src/desk/improvement-person.js +51 -0
- package/vendor/desk/mcp/src/desk/lifecycle.js +16 -0
- package/vendor/desk/mcp/src/desk/machine-desks.js +119 -0
- package/vendor/desk/mcp/src/desk/naming.js +333 -0
- package/vendor/desk/mcp/src/desk/organization.js +592 -0
- package/vendor/desk/mcp/src/desk/resources.js +274 -0
- package/vendor/desk/mcp/src/desk/runtime-resolver.js +30 -0
- package/vendor/desk/mcp/src/desk/scratch-paths.js +44 -0
- package/vendor/desk/mcp/src/desk/step-delivery.js +140 -0
- package/vendor/desk/mcp/src/desk/steps.js +263 -0
- package/vendor/desk/mcp/src/desk/tidy.js +930 -0
- package/vendor/desk/mcp/src/desk/unsigned-deliveries.js +359 -0
- package/vendor/desk/mcp/src/factory/agent-types.js +45 -0
- package/vendor/desk/mcp/src/factory/andon-watch.js +109 -0
- package/vendor/desk/mcp/src/factory/binding.js +612 -0
- package/vendor/desk/mcp/src/factory/boot-check.js +645 -0
- package/vendor/desk/mcp/src/factory/capture-classify.js +158 -0
- package/vendor/desk/mcp/src/factory/capture-count.js +183 -0
- package/vendor/desk/mcp/src/factory/capture-flush.js +268 -0
- package/vendor/desk/mcp/src/factory/capture-publish.js +141 -0
- package/vendor/desk/mcp/src/factory/capture-schema.js +193 -0
- package/vendor/desk/mcp/src/factory/capture-sweep.js +239 -0
- package/vendor/desk/mcp/src/factory/catch-point.js +60 -0
- package/vendor/desk/mcp/src/factory/commit-resolve.js +94 -0
- package/vendor/desk/mcp/src/factory/consent-answer.js +37 -0
- package/vendor/desk/mcp/src/factory/context-capability.js +15 -0
- package/vendor/desk/mcp/src/factory/context-outbox.js +885 -0
- package/vendor/desk/mcp/src/factory/context-run.js +386 -0
- package/vendor/desk/mcp/src/factory/context-schema.js +249 -0
- package/vendor/desk/mcp/src/factory/copilot-turn-index.js +93 -0
- package/vendor/desk/mcp/src/factory/copilot-usage.js +148 -0
- package/vendor/desk/mcp/src/factory/credential.js +45 -0
- package/vendor/desk/mcp/src/factory/derive-claude.js +960 -0
- package/vendor/desk/mcp/src/factory/derive-codex.js +734 -0
- package/vendor/desk/mcp/src/factory/derive-common.js +279 -0
- package/vendor/desk/mcp/src/factory/derive-copilot.js +1057 -0
- package/vendor/desk/mcp/src/factory/derive-run.js +807 -0
- package/vendor/desk/mcp/src/factory/desk-problem-file.js +310 -0
- package/vendor/desk/mcp/src/factory/desk-problem-fingerprint.js +70 -0
- package/vendor/desk/mcp/src/factory/desk-problem-known.js +246 -0
- package/vendor/desk/mcp/src/factory/desk-problem-template.js +107 -0
- package/vendor/desk/mcp/src/factory/desk-repo.js +1223 -0
- package/vendor/desk/mcp/src/factory/desk-task-line.js +28 -0
- package/vendor/desk/mcp/src/factory/desk-visibility.js +48 -0
- package/vendor/desk/mcp/src/factory/end-hook.js +14 -0
- package/vendor/desk/mcp/src/factory/evaluate-kick.js +164 -0
- package/vendor/desk/mcp/src/factory/evaluate-run.js +678 -0
- package/vendor/desk/mcp/src/factory/evaluator-step.js +484 -0
- package/vendor/desk/mcp/src/factory/filer-launch.js +79 -0
- package/vendor/desk/mcp/src/factory/flush-health.js +26 -0
- package/vendor/desk/mcp/src/factory/flush.js +1758 -0
- package/vendor/desk/mcp/src/factory/focus.js +326 -0
- package/vendor/desk/mcp/src/factory/headless-flag.cjs +32 -0
- package/vendor/desk/mcp/src/factory/headless-flag.js +25 -0
- package/vendor/desk/mcp/src/factory/headless-ledger.js +743 -0
- package/vendor/desk/mcp/src/factory/headless.js +567 -0
- package/vendor/desk/mcp/src/factory/held-route.js +93 -0
- package/vendor/desk/mcp/src/factory/host-flags.js +36 -0
- package/vendor/desk/mcp/src/factory/improvement-verify.js +429 -0
- package/vendor/desk/mcp/src/factory/kaizen-file.js +231 -0
- package/vendor/desk/mcp/src/factory/label-binding.js +90 -0
- package/vendor/desk/mcp/src/factory/label-schema.js +426 -0
- package/vendor/desk/mcp/src/factory/local-status.js +368 -0
- package/vendor/desk/mcp/src/factory/loop-conditions.js +121 -0
- package/vendor/desk/mcp/src/factory/loop-health.js +500 -0
- package/vendor/desk/mcp/src/factory/loop-slot.js +90 -0
- package/vendor/desk/mcp/src/factory/loop-status.js +100 -0
- package/vendor/desk/mcp/src/factory/loop-switch.cjs +14 -0
- package/vendor/desk/mcp/src/factory/loop-worker-state.js +96 -0
- package/vendor/desk/mcp/src/factory/loop-worker.js +290 -0
- package/vendor/desk/mcp/src/factory/marker.js +61 -0
- package/vendor/desk/mcp/src/factory/mirror-step.js +145 -0
- package/vendor/desk/mcp/src/factory/os-protect.js +243 -0
- package/vendor/desk/mcp/src/factory/outbox.js +2231 -0
- package/vendor/desk/mcp/src/factory/outcome.js +431 -0
- package/vendor/desk/mcp/src/factory/pipeline/andon.js +319 -0
- package/vendor/desk/mcp/src/factory/pipeline/attention-rollup.js +158 -0
- package/vendor/desk/mcp/src/factory/pipeline/attention.js +146 -0
- package/vendor/desk/mcp/src/factory/pipeline/build.js +299 -0
- package/vendor/desk/mcp/src/factory/pipeline/compare.js +148 -0
- package/vendor/desk/mcp/src/factory/pipeline/formulas.js +652 -0
- package/vendor/desk/mcp/src/factory/pipeline/kaizen.js +387 -0
- package/vendor/desk/mcp/src/factory/pipeline/lifecycle-clocks.js +345 -0
- package/vendor/desk/mcp/src/factory/pipeline/normalize.js +73 -0
- package/vendor/desk/mcp/src/factory/pipeline/number-states.js +154 -0
- package/vendor/desk/mcp/src/factory/pipeline/outcomes.js +268 -0
- package/vendor/desk/mcp/src/factory/pipeline/report.js +737 -0
- package/vendor/desk/mcp/src/factory/pipeline/rollups.js +883 -0
- package/vendor/desk/mcp/src/factory/pipeline/stretches.js +523 -0
- package/vendor/desk/mcp/src/factory/pipeline/timeline.js +199 -0
- package/vendor/desk/mcp/src/factory/pipeline/validate-pr.js +238 -0
- package/vendor/desk/mcp/src/factory/pipeline/versions.js +42 -0
- package/vendor/desk/mcp/src/factory/pipeline/walk.js +1177 -0
- package/vendor/desk/mcp/src/factory/plugin-registry.js +72 -0
- package/vendor/desk/mcp/src/factory/plugin-sources.cjs +249 -0
- package/vendor/desk/mcp/src/factory/pr-green.js +77 -0
- package/vendor/desk/mcp/src/factory/process-lock.js +142 -0
- package/vendor/desk/mcp/src/factory/proof-session.js +75 -0
- package/vendor/desk/mcp/src/factory/publish.js +637 -0
- package/vendor/desk/mcp/src/factory/published-schema.js +648 -0
- package/vendor/desk/mcp/src/factory/reconcile-reasons.js +22 -0
- package/vendor/desk/mcp/src/factory/reconcile-step.js +251 -0
- package/vendor/desk/mcp/src/factory/reconcile.js +808 -0
- package/vendor/desk/mcp/src/factory/release-version.js +134 -0
- package/vendor/desk/mcp/src/factory/repo-name.js +13 -0
- package/vendor/desk/mcp/src/factory/retention.js +60 -0
- package/vendor/desk/mcp/src/factory/route-desk.js +40 -0
- package/vendor/desk/mcp/src/factory/route-issues.js +251 -0
- package/vendor/desk/mcp/src/factory/route-local.js +264 -0
- package/vendor/desk/mcp/src/factory/schema.js +957 -0
- package/vendor/desk/mcp/src/factory/session-kind.js +16 -0
- package/vendor/desk/mcp/src/factory/session-lifetime.js +56 -0
- package/vendor/desk/mcp/src/factory/session-route.js +183 -0
- package/vendor/desk/mcp/src/factory/shell-git.js +500 -0
- package/vendor/desk/mcp/src/factory/store-issues.js +143 -0
- package/vendor/desk/mcp/src/factory/store-route.js +208 -0
- package/vendor/desk/mcp/src/factory/test-state-guard.js +103 -0
- package/vendor/desk/mcp/src/factory/time.js +36 -0
- package/vendor/desk/mcp/src/factory/tool-issue-file.js +84 -0
- package/vendor/desk/mcp/src/factory/tool-kinds.js +87 -0
- package/vendor/desk/mcp/src/factory/triage-schema.js +233 -0
- package/vendor/desk/mcp/src/factory/windows-acl.js +679 -0
- package/vendor/desk/mcp/src/indexer/chunk.js +232 -0
- package/vendor/desk/mcp/src/indexer/discover.js +434 -0
- package/vendor/desk/mcp/src/indexer/exclusions.js +247 -0
- package/vendor/desk/mcp/src/indexer/index.js +167 -0
- package/vendor/desk/mcp/src/indexer/refs.js +0 -0
- package/vendor/desk/mcp/src/indexer/text-hash.js +18 -0
- package/vendor/desk/mcp/src/lib/ouro-actions/actions.claims.json +75 -0
- package/vendor/desk/mcp/src/lib/ouro-actions/dist-manifest.json +70 -0
- package/vendor/desk/mcp/src/lib/ouro-actions/ouro-actions.mts +1416 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/LICENSE +21 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/ax-claims.ts +190 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/ax-command.ts +1020 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/checks.ts +343 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/cli.ts +240 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/component.ts +430 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/dev-commands.ts +204 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/doctor.ts +126 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/effects.ts +68 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/exit-codes.ts +75 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/help.ts +220 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/mcp.ts +268 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/outcome.ts +265 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/output.ts +67 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/precise-copy.ts +235 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/problem.ts +124 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/surfaces.kit.mts +8 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/surfaces.ts +568 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/terminal.ts +245 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/voice.ts +136 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/wait.ts +226 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/work-event.ts +181 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/xray.kit.mts +18 -0
- package/vendor/desk/mcp/src/lib/ouro-ui/registry/ouro/ax/xray.ts +2072 -0
- package/vendor/desk/mcp/src/package-metadata.js +20 -0
- package/vendor/desk/mcp/src/protected/legacy-ledger.js +55 -0
- package/vendor/desk/mcp/src/readiness/leftovers.js +75 -0
- package/vendor/desk/mcp/src/readiness/process-start.js +149 -0
- package/vendor/desk/mcp/src/runtime/admission-worker.js +194 -0
- package/vendor/desk/mcp/src/runtime/admission.js +177 -0
- package/vendor/desk/mcp/src/runtime/agency-desk-channel.js +342 -0
- package/vendor/desk/mcp/src/runtime/agents-md.js +62 -0
- package/vendor/desk/mcp/src/runtime/append-lane.js +68 -0
- package/vendor/desk/mcp/src/runtime/argv-safe-reason.js +55 -0
- package/vendor/desk/mcp/src/runtime/boot-dependencies.js +75 -0
- package/vendor/desk/mcp/src/runtime/boot-text.js +504 -0
- package/vendor/desk/mcp/src/runtime/boot.js +1677 -0
- package/vendor/desk/mcp/src/runtime/bootstrap.js +1455 -0
- package/vendor/desk/mcp/src/runtime/chunked-import.js +102 -0
- package/vendor/desk/mcp/src/runtime/copilot-commit-trailer.js +133 -0
- package/vendor/desk/mcp/src/runtime/copilot-session.js +155 -0
- package/vendor/desk/mcp/src/runtime/deliver.js +469 -0
- package/vendor/desk/mcp/src/runtime/desk-channel.js +86 -0
- package/vendor/desk/mcp/src/runtime/desk-failure.js +26 -0
- package/vendor/desk/mcp/src/runtime/desk-health.js +168 -0
- package/vendor/desk/mcp/src/runtime/desk-session.js +1451 -0
- package/vendor/desk/mcp/src/runtime/diagnostic-server.js +72 -0
- package/vendor/desk/mcp/src/runtime/diagnostics.js +241 -0
- package/vendor/desk/mcp/src/runtime/drains-cli.js +187 -0
- package/vendor/desk/mcp/src/runtime/drains.js +781 -0
- package/vendor/desk/mcp/src/runtime/elsewhere-note.js +9 -0
- package/vendor/desk/mcp/src/runtime/failure-evidence.js +21 -0
- package/vendor/desk/mcp/src/runtime/fast-refs.js +209 -0
- package/vendor/desk/mcp/src/runtime/filer-throttle.js +66 -0
- package/vendor/desk/mcp/src/runtime/focused-card.js +147 -0
- package/vendor/desk/mcp/src/runtime/front-door.js +204 -0
- package/vendor/desk/mcp/src/runtime/gate-wait.js +2 -0
- package/vendor/desk/mcp/src/runtime/git-inspection.js +201 -0
- package/vendor/desk/mcp/src/runtime/git-read-worker.js +157 -0
- package/vendor/desk/mcp/src/runtime/health.js +50 -0
- package/vendor/desk/mcp/src/runtime/hooks.js +353 -0
- package/vendor/desk/mcp/src/runtime/hosted.js +163 -0
- package/vendor/desk/mcp/src/runtime/inbox.js +102 -0
- package/vendor/desk/mcp/src/runtime/index-drift.js +118 -0
- package/vendor/desk/mcp/src/runtime/last-start.js +133 -0
- package/vendor/desk/mcp/src/runtime/lesson-section.js +92 -0
- package/vendor/desk/mcp/src/runtime/lessons-shelf.js +100 -0
- package/vendor/desk/mcp/src/runtime/lfs.js +319 -0
- package/vendor/desk/mcp/src/runtime/native-path.js +12 -0
- package/vendor/desk/mcp/src/runtime/newest-release.js +197 -0
- package/vendor/desk/mcp/src/runtime/node-selection.js +233 -0
- package/vendor/desk/mcp/src/runtime/orca-session-title.js +225 -0
- package/vendor/desk/mcp/src/runtime/other-sessions.js +183 -0
- package/vendor/desk/mcp/src/runtime/pending-migrations.js +653 -0
- package/vendor/desk/mcp/src/runtime/plugin-update.js +215 -0
- package/vendor/desk/mcp/src/runtime/pluginless-runtimes.js +34 -0
- package/vendor/desk/mcp/src/runtime/pr-publication.js +226 -0
- package/vendor/desk/mcp/src/runtime/preview-snapshot.js +23 -0
- package/vendor/desk/mcp/src/runtime/publication-mode.js +19 -0
- package/vendor/desk/mcp/src/runtime/relays.js +974 -0
- package/vendor/desk/mcp/src/runtime/release-alert.js +148 -0
- package/vendor/desk/mcp/src/runtime/remote-identity.js +140 -0
- package/vendor/desk/mcp/src/runtime/resolve-here.js +4 -0
- package/vendor/desk/mcp/src/runtime/runtime-deps-cli.js +65 -0
- package/vendor/desk/mcp/src/runtime/runtime-deps.js +1109 -0
- package/vendor/desk/mcp/src/runtime/runtime-identity.js +22 -0
- package/vendor/desk/mcp/src/runtime/runtime-swap.js +101 -0
- package/vendor/desk/mcp/src/runtime/schedules.js +235 -0
- package/vendor/desk/mcp/src/runtime/session-activity.js +190 -0
- package/vendor/desk/mcp/src/runtime/session-label.js +30 -0
- package/vendor/desk/mcp/src/runtime/session-retention.js +662 -0
- package/vendor/desk/mcp/src/runtime/session-sync.js +333 -0
- package/vendor/desk/mcp/src/runtime/session-trailer.js +126 -0
- package/vendor/desk/mcp/src/runtime/sessions-cli.js +301 -0
- package/vendor/desk/mcp/src/runtime/signoff-listed.js +81 -0
- package/vendor/desk/mcp/src/runtime/skills.js +76 -0
- package/vendor/desk/mcp/src/runtime/stale-card-lead.js +52 -0
- package/vendor/desk/mcp/src/runtime/stale-desk-refresh.js +198 -0
- package/vendor/desk/mcp/src/runtime/stale-desk.js +219 -0
- package/vendor/desk/mcp/src/runtime/stalled.js +255 -0
- package/vendor/desk/mcp/src/runtime/standing-authority.js +79 -0
- package/vendor/desk/mcp/src/runtime/startup-boot.js +341 -0
- package/vendor/desk/mcp/src/runtime/startup-resolve.js +140 -0
- package/vendor/desk/mcp/src/runtime/state-branch.js +203 -0
- package/vendor/desk/mcp/src/runtime/status-compact.js +165 -0
- package/vendor/desk/mcp/src/runtime/status-inspection-child.js +26 -0
- package/vendor/desk/mcp/src/runtime/status-inspection.js +147 -0
- package/vendor/desk/mcp/src/runtime/status-root.js +39 -0
- package/vendor/desk/mcp/src/runtime/sync-worker.js +911 -0
- package/vendor/desk/mcp/src/runtime/test-state-guard.js +107 -0
- package/vendor/desk/mcp/src/runtime/unmerged-saves.js +247 -0
- package/vendor/desk/mcp/src/runtime/workspace-claim.js +53 -0
- package/vendor/desk/mcp/src/runtime/workspace-evidence.js +96 -0
- package/vendor/desk/mcp/src/runtime/workspace-tidy.js +509 -0
- package/vendor/desk/mcp/src/search/direct-lexical.js +54 -0
- package/vendor/desk/mcp/src/search/embedder.js +108 -0
- package/vendor/desk/mcp/src/search/engine.js +406 -0
- package/vendor/desk/mcp/src/search/files-router.js +22 -0
- package/vendor/desk/mcp/src/search/old-index.js +46 -0
- package/vendor/desk/mcp/src/search/vectors.js +60 -0
- package/vendor/desk/mcp/src/server.js +389 -0
- package/vendor/desk/mcp/src/tool-names.js +73 -0
- package/vendor/desk/mcp/src/tool-refusal.cjs +35 -0
- package/vendor/desk/mcp/src/tool-schema-parts.js +12 -0
- package/vendor/desk/mcp/src/tool-schemas.js +325 -0
- package/vendor/desk/mcp/src/tools/_card-commit.js +148 -0
- package/vendor/desk/mcp/src/tools/archive-links.js +185 -0
- package/vendor/desk/mcp/src/tools/archive-move.js +18 -0
- package/vendor/desk/mcp/src/tools/archive-native-session.js +728 -0
- package/vendor/desk/mcp/src/tools/archive-state.js +513 -0
- package/vendor/desk/mcp/src/tools/delivery-gate.js +251 -0
- package/vendor/desk/mcp/src/tools/desk-save.js +444 -0
- package/vendor/desk/mcp/src/tools/doctor.js +122 -0
- package/vendor/desk/mcp/src/tools/done-evidence.js +260 -0
- package/vendor/desk/mcp/src/tools/factory-context.js +204 -0
- package/vendor/desk/mcp/src/tools/friction.js +332 -0
- package/vendor/desk/mcp/src/tools/improvement.js +156 -0
- package/vendor/desk/mcp/src/tools/lesson-lines.js +22 -0
- package/vendor/desk/mcp/src/tools/lesson-owners.js +137 -0
- package/vendor/desk/mcp/src/tools/lesson-team.js +169 -0
- package/vendor/desk/mcp/src/tools/lesson.js +254 -0
- package/vendor/desk/mcp/src/tools/local-only.js +151 -0
- package/vendor/desk/mcp/src/tools/move.js +794 -0
- package/vendor/desk/mcp/src/tools/native-stage-context.js +32 -0
- package/vendor/desk/mcp/src/tools/note.js +267 -0
- package/vendor/desk/mcp/src/tools/search.js +634 -0
- package/vendor/desk/mcp/src/tools/shared-write.js +196 -0
- package/vendor/desk/mcp/src/tools/sibling-desk.js +37 -0
- package/vendor/desk/mcp/src/tools/status.js +233 -0
- package/vendor/desk/mcp/src/tools/task-archive-due.js +9 -0
- package/vendor/desk/mcp/src/tools/task-archived-resource.js +53 -0
- package/vendor/desk/mcp/src/tools/task-body.js +141 -0
- package/vendor/desk/mcp/src/tools/task-focus.js +164 -0
- package/vendor/desk/mcp/src/tools/task-log.js +76 -0
- package/vendor/desk/mcp/src/tools/task-signoff.js +155 -0
- package/vendor/desk/mcp/src/tools/task.js +1768 -0
- package/vendor/desk/mcp/src/tools/track-row.js +89 -0
- package/vendor/desk/mcp/src/tools/track.js +240 -0
- package/vendor/desk/mcp/src/util/agency-session.cjs +29 -0
- package/vendor/desk/mcp/src/util/archive-links.js +105 -0
- package/vendor/desk/mcp/src/util/bash.js +36 -0
- package/vendor/desk/mcp/src/util/capture-record.js +73 -0
- package/vendor/desk/mcp/src/util/cas-commit.js +252 -0
- package/vendor/desk/mcp/src/util/created-dirs.js +71 -0
- package/vendor/desk/mcp/src/util/deferred-tools.js +51 -0
- package/vendor/desk/mcp/src/util/desk-owner.js +99 -0
- package/vendor/desk/mcp/src/util/env-value.js +13 -0
- package/vendor/desk/mcp/src/util/file-identity.js +40 -0
- package/vendor/desk/mcp/src/util/finish-commit.js +145 -0
- package/vendor/desk/mcp/src/util/fm.js +410 -0
- package/vendor/desk/mcp/src/util/git-config-file.js +85 -0
- package/vendor/desk/mcp/src/util/git-stage.js +440 -0
- package/vendor/desk/mcp/src/util/main-publish.js +240 -0
- package/vendor/desk/mcp/src/util/markdown-links.cjs +555 -0
- package/vendor/desk/mcp/src/util/object-input.js +59 -0
- package/vendor/desk/mcp/src/util/paths.js +647 -0
- package/vendor/desk/mcp/src/util/rank.js +189 -0
- package/vendor/desk/mcp/src/util/redact.js +92 -0
- package/vendor/desk/mcp/src/util/remove-retry.js +35 -0
- package/vendor/desk/mcp/src/util/rename-retry.js +73 -0
- package/vendor/desk/mcp/src/util/route-around.js +265 -0
- package/vendor/desk/mcp/src/util/shell-quote.js +18 -0
- package/vendor/desk/mcp/src/util/startup-direction.js +124 -0
- package/vendor/desk/mcp/src/util/state-ignore.js +33 -0
- package/vendor/desk/mcp/src/util/tool-commits.js +64 -0
- package/vendor/desk/mcp/src/util/unicode-16/LICENSE-MIT.txt +7 -0
- package/vendor/desk/mcp/src/util/unicode-16/README.md +9 -0
- package/vendor/desk/mcp/src/util/unicode-16/letter.cjs +1 -0
- package/vendor/desk/mcp/src/util/unicode-16/mark.cjs +1 -0
- package/vendor/desk/mcp/src/util/unicode-16/number.cjs +1 -0
- package/vendor/desk/mcp/web-auth.cjs +1897 -0
- package/vendor/desk/mcp/web-browser-discovery.cjs +53 -0
- package/vendor/desk/mcp/web-catalog.json +34 -0
- package/vendor/desk/mcp/web-launch.cjs +101 -0
- package/vendor/desk/mcp/web.cjs +1239 -0
- package/vendor/desk/migrations/01-move-to-ourostack-desk.md +188 -0
- package/vendor/desk/migrations/02-tidy-desk.md +87 -0
- package/vendor/desk/migrations/03-desk-release-channel.md +38 -0
- package/vendor/desk/optional/session-label/consumer.mjs +237 -0
- package/vendor/desk/optional/session-label/extension.mjs +32 -0
- package/vendor/desk/plugin.json +54 -0
- package/vendor/desk/settings.json +3 -0
- package/vendor/desk/skills/add-workspace-mcp/SKILL.md +180 -0
- package/vendor/desk/skills/adopt-inflight-work/SKILL.md +212 -0
- package/vendor/desk/skills/archive-workflow/SKILL.md +132 -0
- package/vendor/desk/skills/content-routing/SKILL.md +95 -0
- package/vendor/desk/skills/core-meeting-capture/SKILL.md +47 -0
- package/vendor/desk/skills/core-meeting-capture/references/capture-contract.md +175 -0
- package/vendor/desk/skills/curator/SKILL.md +103 -0
- package/vendor/desk/skills/delightful-decks/SKILL.md +67 -0
- package/vendor/desk/skills/desk-problem/SKILL.md +87 -0
- package/vendor/desk/skills/directory-structure/SKILL.md +169 -0
- package/vendor/desk/skills/doc-review-rigor/SKILL.md +63 -0
- package/vendor/desk/skills/draining-issues/SKILL.md +62 -0
- package/vendor/desk/skills/evaluate-release/SKILL.md +96 -0
- package/vendor/desk/skills/evidence-discipline/SKILL.md +150 -0
- package/vendor/desk/skills/factory-evaluator/SKILL.md +122 -0
- package/vendor/desk/skills/factory-task-context/SKILL.md +116 -0
- package/vendor/desk/skills/factory-work/SKILL.md +16 -0
- package/vendor/desk/skills/fast-honest-ci/SKILL.md +70 -0
- package/vendor/desk/skills/fast-honest-ci/examples.md +49 -0
- package/vendor/desk/skills/first-run-bootstrap/SKILL.md +95 -0
- package/vendor/desk/skills/friction-management/SKILL.md +98 -0
- package/vendor/desk/skills/git-hygiene/SKILL.md +253 -0
- package/vendor/desk/skills/independent-review/SKILL.md +34 -0
- package/vendor/desk/skills/interaction-style/SKILL.md +239 -0
- package/vendor/desk/skills/lesson-capture/SKILL.md +85 -0
- package/vendor/desk/skills/lesson-capture/agents-md-budget.mjs +61 -0
- package/vendor/desk/skills/online-evaluation/SKILL.md +81 -0
- package/vendor/desk/skills/operator-voice-comments/LICENSE-humanize +21 -0
- package/vendor/desk/skills/operator-voice-comments/SKILL.md +90 -0
- package/vendor/desk/skills/operator-voice-comments/human-voice.md +43 -0
- package/vendor/desk/skills/peer-pr-review/SKILL.md +104 -0
- package/vendor/desk/skills/pr-feedback-on-own-pr/SKILL.md +145 -0
- package/vendor/desk/skills/pr-review-interrogation/SKILL.md +121 -0
- package/vendor/desk/skills/pr-reviewer-audit/SKILL.md +68 -0
- package/vendor/desk/skills/pr-reviewer-audit/helpers/audit.py +335 -0
- package/vendor/desk/skills/pr-reviewer-audit/helpers/test_audit.py +486 -0
- package/vendor/desk/skills/pr-self-review/SKILL.md +86 -0
- package/vendor/desk/skills/pr-surface-hygiene/SKILL.md +105 -0
- package/vendor/desk/skills/pr-surface-hygiene/check-visual-proof.cjs +99 -0
- package/vendor/desk/skills/pr-surface-hygiene/repository-setup.md +19 -0
- package/vendor/desk/skills/pr-surface-hygiene/resources/pr-visual-proof.yml +29 -0
- package/vendor/desk/skills/pr-surface-hygiene/resources/pull-request-template.md +5 -0
- package/vendor/desk/skills/preflight-actions/SKILL.md +60 -0
- package/vendor/desk/skills/preview-feedback/SKILL.md +70 -0
- package/vendor/desk/skills/repo-handling/SKILL.md +67 -0
- package/vendor/desk/skills/rnd-lab/SKILL.md +52 -0
- package/vendor/desk/skills/runtime-symptom-investigation/SKILL.md +106 -0
- package/vendor/desk/skills/session-resumption/SKILL.md +126 -0
- package/vendor/desk/skills/session-start/SKILL.md +54 -0
- package/vendor/desk/skills/session-start/details.md +150 -0
- package/vendor/desk/skills/session-start-migrations/README.md +71 -0
- package/vendor/desk/skills/session-start-migrations/SKILL.md +108 -0
- package/vendor/desk/skills/start-task/SKILL.md +88 -0
- package/vendor/desk/skills/task-card-format/SKILL.md +198 -0
- package/vendor/desk/skills/task-lifecycle/SKILL.md +217 -0
- package/vendor/desk/skills/track-card-format/SKILL.md +90 -0
- package/vendor/desk/skills/using-desk/SKILL.md +58 -0
- package/vendor/desk/skills/using-superpowers-with-desk/SKILL.md +156 -0
- package/vendor/desk/skills/work-orchestration/SKILL.md +162 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { promises as fs } from "node:fs"
|
|
2
|
+
import * as path from "node:path"
|
|
3
|
+
|
|
4
|
+
const GITIGNORE_PATH = ".gitignore"
|
|
5
|
+
const SKIP_GITIGNORE_SCAN_DIRS = new Set([
|
|
6
|
+
"node_modules",
|
|
7
|
+
".state",
|
|
8
|
+
".git",
|
|
9
|
+
])
|
|
10
|
+
const SENSITIVE_SEGMENTS = new Set([
|
|
11
|
+
".env",
|
|
12
|
+
"api-keys",
|
|
13
|
+
"api_keys",
|
|
14
|
+
"credential",
|
|
15
|
+
"credentials",
|
|
16
|
+
"private",
|
|
17
|
+
"secret",
|
|
18
|
+
"secrets",
|
|
19
|
+
])
|
|
20
|
+
const SENSITIVE_NAME_RE = /(?:^|[-_.])(api[-_]?key|credential|credentials|private[-_]?key|secret|secrets)(?:[-_.]|$)/u
|
|
21
|
+
|
|
22
|
+
export async function loadExclusionRules({ deskRoot }) {
|
|
23
|
+
if (!deskRoot) return { gitignore: [] }
|
|
24
|
+
const gitignore = []
|
|
25
|
+
await collectGitignoreRules(deskRoot, "", gitignore)
|
|
26
|
+
return {
|
|
27
|
+
gitignore,
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function exclusionForPath(relPath, rules = {}) {
|
|
32
|
+
const normalized = normalizeRelPath(relPath)
|
|
33
|
+
if (matchesGitignore(normalized, rules.gitignore ?? [])) {
|
|
34
|
+
return { excluded: true, reason: "gitignore" }
|
|
35
|
+
}
|
|
36
|
+
if (isSensitivePath(normalized)) {
|
|
37
|
+
return { excluded: true, reason: "sensitive_path" }
|
|
38
|
+
}
|
|
39
|
+
if (isHiddenPath(normalized)) {
|
|
40
|
+
return { excluded: true, reason: "hidden_path" }
|
|
41
|
+
}
|
|
42
|
+
return { excluded: false, reason: null }
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function hasGitignoreNegation(rules) {
|
|
46
|
+
return (rules.gitignore ?? [])
|
|
47
|
+
.some((rule) => normalizeGitignoreRule(rule).negated)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
async function collectGitignoreRules(deskRoot, baseDir, out) {
|
|
51
|
+
const gitignore = await readGitignoreAtBase(deskRoot, baseDir)
|
|
52
|
+
if (!gitignore.valid) {
|
|
53
|
+
const error = Object.assign(new Error("Check that the .gitignore file can be read, then run it again: gitignore exclusion rules could not be read"), { code: "exclusions_check_that_the_gitignore_file" })
|
|
54
|
+
error.code = "exclusion_rules_unavailable"
|
|
55
|
+
error.reason = "gitignore_unreadable"
|
|
56
|
+
throw error
|
|
57
|
+
}
|
|
58
|
+
out.push(...parseGitignore(gitignore.body, baseDir))
|
|
59
|
+
|
|
60
|
+
const dir = baseDir ? path.join(deskRoot, baseDir) : deskRoot
|
|
61
|
+
let entries
|
|
62
|
+
try {
|
|
63
|
+
entries = await fs.readdir(dir, { withFileTypes: true })
|
|
64
|
+
} catch (error) {
|
|
65
|
+
if (error.code === "ENOENT") return
|
|
66
|
+
throw error
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
for (const entry of entries) {
|
|
70
|
+
if (!entry.isDirectory()) continue
|
|
71
|
+
if (SKIP_GITIGNORE_SCAN_DIRS.has(entry.name)) continue
|
|
72
|
+
const relDir = joinRel(baseDir, entry.name)
|
|
73
|
+
if (isSensitivePath(relDir) || isHiddenPath(relDir)) continue
|
|
74
|
+
await collectGitignoreRules(deskRoot, relDir, out)
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
async function readGitignoreAtBase(deskRoot, baseDir) {
|
|
79
|
+
const gitignorePath = path.join(deskRoot, baseDir, GITIGNORE_PATH)
|
|
80
|
+
let stat
|
|
81
|
+
try {
|
|
82
|
+
stat = await fs.stat(gitignorePath)
|
|
83
|
+
} catch (error) {
|
|
84
|
+
if (error.code === "ENOENT") return { valid: true, body: "" }
|
|
85
|
+
return { valid: false, body: "" }
|
|
86
|
+
}
|
|
87
|
+
if (!stat.isFile()) return { valid: false, body: "" }
|
|
88
|
+
try {
|
|
89
|
+
return {
|
|
90
|
+
valid: true,
|
|
91
|
+
body: await fs.readFile(gitignorePath, "utf8"),
|
|
92
|
+
}
|
|
93
|
+
} catch (error) {
|
|
94
|
+
return { valid: false, body: "" }
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function parseGitignore(raw, baseDir) {
|
|
99
|
+
return raw
|
|
100
|
+
.split(/\r?\n/u)
|
|
101
|
+
.map((line) => line.trim())
|
|
102
|
+
.map((line) => parseGitignoreLine(line, baseDir))
|
|
103
|
+
.filter(Boolean)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function parseGitignoreLine(line, baseDir) {
|
|
107
|
+
if (line === "" || line.startsWith("#")) return null
|
|
108
|
+
let negated = false
|
|
109
|
+
let pattern = line
|
|
110
|
+
if (pattern.startsWith("!")) {
|
|
111
|
+
negated = true
|
|
112
|
+
pattern = pattern.slice(1).trim()
|
|
113
|
+
}
|
|
114
|
+
if (pattern === "") return null
|
|
115
|
+
return {
|
|
116
|
+
baseDir: normalizeRelPath(baseDir),
|
|
117
|
+
pattern,
|
|
118
|
+
negated,
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function matchesGitignore(relPath, patterns) {
|
|
123
|
+
let excluded = false
|
|
124
|
+
for (const pattern of patterns) {
|
|
125
|
+
const rule = normalizeGitignoreRule(pattern)
|
|
126
|
+
if (matchesGitignoreRule(relPath, rule)) {
|
|
127
|
+
excluded = !rule.negated
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return excluded
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function normalizeGitignoreRule(rule) {
|
|
134
|
+
if (rule != null && typeof rule === "object" && !Array.isArray(rule)) {
|
|
135
|
+
return {
|
|
136
|
+
baseDir: normalizeRelPath(rule.baseDir),
|
|
137
|
+
pattern: rule.pattern,
|
|
138
|
+
negated: rule.negated === true,
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const raw = String(rule ?? "")
|
|
142
|
+
const negated = raw.startsWith("!")
|
|
143
|
+
return {
|
|
144
|
+
baseDir: "",
|
|
145
|
+
pattern: negated ? raw.slice(1).trim() : raw,
|
|
146
|
+
negated,
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function matchesGitignoreRule(relPath, rule) {
|
|
151
|
+
const baseDir = normalizeRelPath(rule.baseDir)
|
|
152
|
+
if (baseDir && relPath !== baseDir && !relPath.startsWith(`${baseDir}/`)) {
|
|
153
|
+
return false
|
|
154
|
+
}
|
|
155
|
+
const relFromBase = baseDir && relPath !== baseDir
|
|
156
|
+
? relPath.slice(baseDir.length + 1)
|
|
157
|
+
: baseDir ? "" : relPath
|
|
158
|
+
return matchesGitignorePattern(relFromBase, rule.pattern)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function matchesGitignorePattern(relPath, pattern) {
|
|
162
|
+
const rawPattern = normalizePattern(pattern)
|
|
163
|
+
const anchored = rawPattern.startsWith("/")
|
|
164
|
+
const normalizedPattern = rawPattern.replace(/^\/+/u, "")
|
|
165
|
+
if (normalizedPattern === "") return false
|
|
166
|
+
if (normalizedPattern.endsWith("/")) {
|
|
167
|
+
const prefix = normalizedPattern.replace(/\/+$/u, "")
|
|
168
|
+
if (!anchored && !prefix.includes("/")) {
|
|
169
|
+
return pathContainsMatchingSegment(relPath, prefix)
|
|
170
|
+
}
|
|
171
|
+
return relPath === prefix || relPath.startsWith(`${prefix}/`)
|
|
172
|
+
}
|
|
173
|
+
if (normalizedPattern.endsWith("/**")) {
|
|
174
|
+
const prefix = normalizedPattern.slice(0, -3)
|
|
175
|
+
return relPath === prefix || relPath.startsWith(`${prefix}/`)
|
|
176
|
+
}
|
|
177
|
+
if (anchored && !normalizedPattern.includes("/")) {
|
|
178
|
+
return firstSegmentMatches(relPath, normalizedPattern)
|
|
179
|
+
}
|
|
180
|
+
if (!anchored && !normalizedPattern.includes("/")) {
|
|
181
|
+
return pathContainsMatchingSegment(relPath, normalizedPattern)
|
|
182
|
+
}
|
|
183
|
+
return globPathToRegExp(normalizedPattern).test(relPath)
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function firstSegmentMatches(relPath, pattern) {
|
|
187
|
+
const [firstSegment] = relPath.split("/").filter(Boolean)
|
|
188
|
+
return firstSegment != null && globSegmentToRegExp(pattern).test(firstSegment)
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function pathContainsMatchingSegment(relPath, pattern) {
|
|
192
|
+
const segmentPattern = globSegmentToRegExp(pattern)
|
|
193
|
+
return relPath
|
|
194
|
+
.split("/")
|
|
195
|
+
.filter(Boolean)
|
|
196
|
+
.some((segment) => segmentPattern.test(segment))
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function isSensitivePath(relPath) {
|
|
200
|
+
return relPath
|
|
201
|
+
.split("/")
|
|
202
|
+
.filter(Boolean)
|
|
203
|
+
.some((segment) => {
|
|
204
|
+
const lower = segment.toLowerCase()
|
|
205
|
+
return SENSITIVE_SEGMENTS.has(lower) || SENSITIVE_NAME_RE.test(lower)
|
|
206
|
+
})
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function isHiddenPath(relPath) {
|
|
210
|
+
return relPath
|
|
211
|
+
.split("/")
|
|
212
|
+
.filter(Boolean)
|
|
213
|
+
.some((segment) => segment.startsWith("."))
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function globPathToRegExp(pattern) {
|
|
217
|
+
return new RegExp(`^${globToRegexSource(pattern)}$`, "u")
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function globSegmentToRegExp(pattern) {
|
|
221
|
+
return new RegExp(`^${globToRegexSource(pattern)}$`, "u")
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function globToRegexSource(pattern) {
|
|
225
|
+
return pattern
|
|
226
|
+
.split("*")
|
|
227
|
+
.map(escapeRegExp)
|
|
228
|
+
.join("[^/]*")
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function escapeRegExp(value) {
|
|
232
|
+
return value.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function normalizeRelPath(relPath) {
|
|
236
|
+
return String(relPath ?? "")
|
|
237
|
+
.replace(/\\/gu, "/")
|
|
238
|
+
.replace(/^\/+/u, "")
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function normalizePattern(pattern) {
|
|
242
|
+
return String(pattern ?? "").replace(/\\/gu, "/")
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function joinRel(baseDir, name) {
|
|
246
|
+
return baseDir ? `${normalizeRelPath(baseDir)}/${name}` : name
|
|
247
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// index.js — builds the exact-word search index.
|
|
2
|
+
//
|
|
3
|
+
// Walks the desk root, parses each doc, hash-compares to the existing index,
|
|
4
|
+
// re-chunks and upserts on change, and refreshes refs_graph. Idempotent:
|
|
5
|
+
// running it twice on a clean tree reindexes nothing. Section vectors are not
|
|
6
|
+
// made here; the search engine (src/search/engine.js) embeds sections by their
|
|
7
|
+
// text_hash in the background.
|
|
8
|
+
|
|
9
|
+
import { openDb, closeDb } from "../db/init.js"
|
|
10
|
+
import { isTombstoned, loadTombstoneLedger } from "../artifacts/tombstones.js"
|
|
11
|
+
import { discover } from "./discover.js"
|
|
12
|
+
import { chunkBody } from "./chunk.js"
|
|
13
|
+
import { computeRefs } from "./refs.js"
|
|
14
|
+
import { chunkTextHash } from "./text-hash.js"
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Run the indexer against `deskRoot` and return a summary.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} deskRoot
|
|
20
|
+
* @param {object} [opts]
|
|
21
|
+
* @param {object} [opts.db] — reuse an already-open DB handle (the search engine's in-memory one).
|
|
22
|
+
* @param {string} [opts.dbPath] — override DB path (tests).
|
|
23
|
+
* @param {object} [opts.tombstones] — `{ pluginRoot }` whose redaction ledger keeps documents out of the index.
|
|
24
|
+
* @param {AbortSignal} [opts.signal]
|
|
25
|
+
* @returns {Promise<{ docs_indexed: number, docs_skipped: number,
|
|
26
|
+
* docs_removed: number, docs_tombstoned: number,
|
|
27
|
+
* chunks_inserted: number }>}
|
|
28
|
+
*/
|
|
29
|
+
export async function rebuildIndex(deskRoot, opts = {}) {
|
|
30
|
+
const ownsDb = !opts.db
|
|
31
|
+
const db = opts.db ?? openDb(deskRoot, { dbPath: opts.dbPath })
|
|
32
|
+
|
|
33
|
+
const summary = {
|
|
34
|
+
docs_indexed: 0,
|
|
35
|
+
docs_skipped: 0,
|
|
36
|
+
docs_removed: 0,
|
|
37
|
+
docs_tombstoned: 0,
|
|
38
|
+
chunks_inserted: 0,
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
throwIfAborted(opts.signal)
|
|
43
|
+
const discoveredRaw = await discover(deskRoot, { signal: opts.signal })
|
|
44
|
+
const tombstones = await loadTombstoneLedger({ pluginRoot: opts.tombstones?.pluginRoot })
|
|
45
|
+
const discovered = discoveredRaw.filter((doc) => !isTombstoned(tombstones, doc))
|
|
46
|
+
summary.docs_tombstoned = discoveredRaw.length - discovered.length
|
|
47
|
+
throwIfAborted(opts.signal)
|
|
48
|
+
const discoveredByPath = new Map(discovered.map((d) => [d.path, d]))
|
|
49
|
+
|
|
50
|
+
db.transaction(() => {
|
|
51
|
+
const existing = db.prepare("SELECT id, path, hash FROM docs").all()
|
|
52
|
+
const existingByPath = new Map(existing.map((row) => [row.path, row]))
|
|
53
|
+
const delStmt = db.prepare("DELETE FROM docs WHERE path = ?")
|
|
54
|
+
for (const row of existing) {
|
|
55
|
+
throwIfAborted(opts.signal)
|
|
56
|
+
if (!discoveredByPath.has(row.path)) {
|
|
57
|
+
delStmt.run(row.path)
|
|
58
|
+
summary.docs_removed += 1
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
for (const doc of discovered) {
|
|
62
|
+
throwIfAborted(opts.signal)
|
|
63
|
+
if (existingByPath.get(doc.path)?.hash === doc.hash) {
|
|
64
|
+
summary.docs_skipped += 1
|
|
65
|
+
continue
|
|
66
|
+
}
|
|
67
|
+
indexOneDoc(db, doc, summary)
|
|
68
|
+
summary.docs_indexed += 1
|
|
69
|
+
}
|
|
70
|
+
refreshRefs(db, discovered)
|
|
71
|
+
})()
|
|
72
|
+
} finally {
|
|
73
|
+
if (ownsDb) closeDb(db)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return summary
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function throwIfAborted(signal) {
|
|
80
|
+
if (!signal?.aborted) return
|
|
81
|
+
const err = new Error("operation aborted")
|
|
82
|
+
err.name = "AbortError"
|
|
83
|
+
throw err
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function indexOneDoc(db, doc, summary) {
|
|
87
|
+
const chunks = chunkBody(doc.body).map((chunk) => ({ ...chunk, text_hash: chunkTextHash(chunk.text) }))
|
|
88
|
+
|
|
89
|
+
const row = db.prepare(
|
|
90
|
+
`INSERT INTO docs (path, kind, track, task_slug, status, schema_version,
|
|
91
|
+
created_at, updated_at, hash, mtime, is_archived, frontmatter)
|
|
92
|
+
VALUES (@path, @kind, @track, @task_slug, @status, @schema_version,
|
|
93
|
+
@created_at, @updated_at, @hash, @mtime, @is_archived, @frontmatter)
|
|
94
|
+
ON CONFLICT(path) DO UPDATE SET
|
|
95
|
+
kind=excluded.kind,
|
|
96
|
+
track=excluded.track,
|
|
97
|
+
task_slug=excluded.task_slug,
|
|
98
|
+
status=excluded.status,
|
|
99
|
+
schema_version=excluded.schema_version,
|
|
100
|
+
created_at=excluded.created_at,
|
|
101
|
+
updated_at=excluded.updated_at,
|
|
102
|
+
hash=excluded.hash,
|
|
103
|
+
mtime=excluded.mtime,
|
|
104
|
+
is_archived=excluded.is_archived,
|
|
105
|
+
frontmatter=excluded.frontmatter
|
|
106
|
+
RETURNING id`,
|
|
107
|
+
).get({
|
|
108
|
+
path: doc.path,
|
|
109
|
+
kind: doc.kind,
|
|
110
|
+
track: doc.track,
|
|
111
|
+
task_slug: doc.task_slug,
|
|
112
|
+
status: doc.status,
|
|
113
|
+
schema_version: doc.schema_version,
|
|
114
|
+
created_at: doc.created_at,
|
|
115
|
+
updated_at: doc.updated_at,
|
|
116
|
+
hash: doc.hash,
|
|
117
|
+
mtime: doc.mtime,
|
|
118
|
+
is_archived: doc.is_archived ? 1 : 0,
|
|
119
|
+
frontmatter: JSON.stringify(doc.frontmatter),
|
|
120
|
+
})
|
|
121
|
+
const docId = row.id
|
|
122
|
+
|
|
123
|
+
// Replace only the sections that changed. A row is kept when every stored
|
|
124
|
+
// field matches, so an append to a long card writes one row instead of
|
|
125
|
+
// rewriting them all. The triggers on the chunks table keep chunks_fts in sync.
|
|
126
|
+
const stored = new Map()
|
|
127
|
+
const deleteChunk = db.prepare("DELETE FROM chunks WHERE id = ?")
|
|
128
|
+
for (const old of db.prepare("SELECT * FROM chunks WHERE doc_id = ? ORDER BY id").all(docId)) {
|
|
129
|
+
if (stored.has(old.chunk_index)) deleteChunk.run(old.id)
|
|
130
|
+
else stored.set(old.chunk_index, old)
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const insertChunk = db.prepare(
|
|
134
|
+
`INSERT INTO chunks (doc_id, chunk_index, text_hash, text, heading, start_offset, end_offset)
|
|
135
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`,
|
|
136
|
+
)
|
|
137
|
+
for (const c of chunks) {
|
|
138
|
+
const old = stored.get(c.index)
|
|
139
|
+
stored.delete(c.index)
|
|
140
|
+
if (old && sameChunk(old, c)) continue
|
|
141
|
+
if (old) deleteChunk.run(old.id)
|
|
142
|
+
insertChunk.run(docId, c.index, c.text_hash, c.text, c.heading, c.start_offset, c.end_offset)
|
|
143
|
+
summary.chunks_inserted += 1
|
|
144
|
+
}
|
|
145
|
+
for (const old of stored.values()) deleteChunk.run(old.id)
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function sameChunk(row, chunk) {
|
|
149
|
+
return row.text_hash === chunk.text_hash &&
|
|
150
|
+
row.text === chunk.text &&
|
|
151
|
+
row.heading === chunk.heading &&
|
|
152
|
+
row.start_offset === chunk.start_offset &&
|
|
153
|
+
row.end_offset === chunk.end_offset
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function refreshRefs(db, docs) {
|
|
157
|
+
const edges = computeRefs(docs)
|
|
158
|
+
db.exec("DELETE FROM refs_graph")
|
|
159
|
+
if (!edges.length) return
|
|
160
|
+
const lookup = db.prepare("SELECT id FROM docs WHERE path = ?")
|
|
161
|
+
const ins = db.prepare(
|
|
162
|
+
"INSERT OR IGNORE INTO refs_graph (src_doc_id, dst_doc_id, ref_kind) VALUES (?, ?, ?)",
|
|
163
|
+
)
|
|
164
|
+
for (const e of edges) {
|
|
165
|
+
ins.run(lookup.get(e.from).id, lookup.get(e.to).id, e.ref_kind)
|
|
166
|
+
}
|
|
167
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createHash } from "node:crypto"
|
|
2
|
+
|
|
3
|
+
// A section's text hash keys its vector in `.state/desk-vectors.sqlite` (src/search/vectors.js), so changing how it is
|
|
4
|
+
// computed makes every stored vector unreachable and the whole desk is embedded again.
|
|
5
|
+
function normalizeChunkText(text) {
|
|
6
|
+
return String(text ?? "")
|
|
7
|
+
.replace(/\r\n?/gu, "\n")
|
|
8
|
+
.replace(/\u00a0/gu, " ")
|
|
9
|
+
.split("\n")
|
|
10
|
+
.map((line) => line.trim().replace(/[ \t]+/gu, " "))
|
|
11
|
+
.join("\n")
|
|
12
|
+
.replace(/\n{3,}/gu, "\n\n")
|
|
13
|
+
.trim()
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function chunkTextHash(text) {
|
|
17
|
+
return `sha256:${createHash("sha256").update(normalizeChunkText(text)).digest("hex")}`
|
|
18
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"claims": [
|
|
4
|
+
{
|
|
5
|
+
"id": "action.one-declaration",
|
|
6
|
+
"tier": "should",
|
|
7
|
+
"appliesTo": ["cli", "mcp", "webmcp", "web-control", "app-intent", "swiftui-button", "reins"],
|
|
8
|
+
"rule": "Every surface of an action (its CLI command, MCP and WebMCP tools, web control, App Intent, SwiftUI button and Reins action) is generated from one defineAction declaration.",
|
|
9
|
+
"why": "Declared four times, one action's surfaces disagree, and an agent and a person see different products.",
|
|
10
|
+
"evidence": {
|
|
11
|
+
"basis": "principle",
|
|
12
|
+
"source": "https://github.com/ourostack/ouro-ui-core/blob/main/docs/decisions/2026-11-13-agents-use-agent-interfaces.md",
|
|
13
|
+
"finding": ""
|
|
14
|
+
},
|
|
15
|
+
"check": "An app's actions file passes defineActions, and its generated folder passes `node ouro-actions.mts check`.",
|
|
16
|
+
"fix": "Declare the action with defineAction, add it to the set, run generate, and build the surface from the generated file."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "action.projections-match",
|
|
20
|
+
"tier": "must",
|
|
21
|
+
"appliesTo": ["cli", "mcp", "webmcp", "web-control", "app-intent", "swiftui-button", "reins"],
|
|
22
|
+
"rule": "Every committed projection equals what its declaration generates, and a live MCP server's tools/list equals the declared tools; CI fails on any difference.",
|
|
23
|
+
"why": "A surface that drifts from its declaration lets an agent do what a person can't, or the reverse, without anyone seeing it.",
|
|
24
|
+
"evidence": {
|
|
25
|
+
"basis": "hazard",
|
|
26
|
+
"source": "https://github.com/WebKit/standards-positions/issues/670",
|
|
27
|
+
"finding": "WebKit opposes WebMCP partly because a separate agent layer lets agent and human abilities drift apart; a check that fails on drift is the answer."
|
|
28
|
+
},
|
|
29
|
+
"check": "`node ouro-actions.mts check <actions.mts> <dir>` and `node ouro-actions.mts compare-mcp <actions.mts> <tools.json>` in the app's CI; core's own CI runs `pnpm actions:check` on the shopping fixture (test/actions.test.mts proves both checks fail on drift).",
|
|
30
|
+
"fix": "Change the declaration and run generate; never edit a generated file, and serve MCP tools from mcp.json."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "action.person-only-refuses",
|
|
34
|
+
"tier": "must",
|
|
35
|
+
"appliesTo": ["cli", "mcp", "webmcp", "web-control", "app-intent"],
|
|
36
|
+
"rule": "A person-only action has no agent door: the CLI refuses its words, MCP and WebMCP don't list it and answer a call with the typed refusal (outcome refused, code person-only, exit 2, its reason and how the person does it), web's component AX declares it personOnly, and it has no App Intent.",
|
|
37
|
+
"why": "An agent that can start what only the person may start, such as paying or turning on their microphone, acts in their name without their say.",
|
|
38
|
+
"evidence": {
|
|
39
|
+
"basis": "hazard",
|
|
40
|
+
"source": "https://developer.apple.com/documentation/appintents/toolintent",
|
|
41
|
+
"finding": "Apple's ToolIntent guidance (iOS 27.3 beta) lists intents with side effects a person needs to start explicitly, such as placing an order and paying for it, as poor tools."
|
|
42
|
+
},
|
|
43
|
+
"check": "test/actions.test.mts (\"the generated JSON lists person-only actions only as refusals, on every agent door\") and (\"Swift: one App Intent per agent door, ...\": no App Intent for a person-only action), and apple/actions-check (OuroActions.refusal(for:) answers with web's code, exit and message).",
|
|
44
|
+
"fix": "Declare the action consent \"person-only\" with personOnly { reason, how }, and run generate."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "action.consequential-confirms",
|
|
48
|
+
"tier": "must",
|
|
49
|
+
"appliesTo": ["cli", "mcp", "webmcp", "web-control", "app-intent"],
|
|
50
|
+
"rule": "A consequential action is prepared by the agent and committed by the person: web's effect is \"others\" (web's kit then requires --why and previews with --dry-run), MCP marks it destructive and open-world, WebMCP marks it consequential, and its App Intent asks requestConfirmation() before it acts.",
|
|
51
|
+
"why": "An effect other people see, or one that can't be taken back, must not happen on an agent's say alone.",
|
|
52
|
+
"evidence": {
|
|
53
|
+
"basis": "hazard",
|
|
54
|
+
"source": "https://developer.apple.com/documentation/appintents/appintent/requestconfirmation()",
|
|
55
|
+
"finding": "Apple's requestConfirmation() is the guard before performing any work that might be destructive or unsafe; WebMCP's consequentialHint and UCP's requires_escalation (https://ucp.dev/latest/specification/shopping/checkout/) serve the same purpose on the web."
|
|
56
|
+
},
|
|
57
|
+
"check": "test/actions.test.mts (consent classes onto annotations, the CLI's effect, and requestConfirmation only in the consequential intent).",
|
|
58
|
+
"fix": "Declare the action consent \"consequential\" and run generate."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "action.agent-description",
|
|
62
|
+
"tier": "should",
|
|
63
|
+
"appliesTo": ["cli", "mcp", "webmcp", "app-intent"],
|
|
64
|
+
"rule": "Each action carries an agent description, one line written for a model, apart from the person's label and description; the agent doors use it and the person's controls don't.",
|
|
65
|
+
"why": "A model chooses a tool and fills its parameters from its description; a button's two words don't tell it when to use the action.",
|
|
66
|
+
"evidence": {
|
|
67
|
+
"basis": "principle",
|
|
68
|
+
"source": "https://developer.apple.com/documentation/appintents/bringing-custom-actions-and-content-to-siri",
|
|
69
|
+
"finding": "Siri tells intents apart and fills their parameters from the title and description on each intent and parameter."
|
|
70
|
+
},
|
|
71
|
+
"check": "defineAction refuses an action without a one-line agent description.",
|
|
72
|
+
"fix": "agent: \"<when to use it and what it does, for a model>\"."
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"coreTag": "v1.12.0",
|
|
3
|
+
"files": {
|
|
4
|
+
"dist/a2ui/ouro-a2ui-catalog.mts": "7d4bb33a72ce4d18dd04d1f166639f024006264561477837f4b6e63e6d16bf37",
|
|
5
|
+
"dist/a2ui/ouro-a2ui.mts": "e77db180bc0e9b33e4f09543e5c93b79df0246a7b0325260b75ed2361189345b",
|
|
6
|
+
"dist/actions/ouro-actions-android.mts": "40364c8dab73be0fdb66c93b3065cb8969944da8f59e205056718e23057ae14f",
|
|
7
|
+
"dist/actions/ouro-actions-tools.mts": "f0587c06f63884795d409e64066f8c60a7adaacb471dbbb67e17fae5479d243e",
|
|
8
|
+
"dist/actions/ouro-actions-windows.mts": "34a702baa57a6a6584d897d2a8700b6e02b89d4bc0abed56c28b12b9c501e15c",
|
|
9
|
+
"dist/actions/ouro-actions.mts": "e2d3da1b117a1e136745a19f8f93242c4839f0fce1c2482657b8910ffc2fd4e6",
|
|
10
|
+
"dist/android/OuroTokens.kt": "f9d42429ec5b1ce53357cf145c98248e507345be0c782806ad87e9f755cd51b1",
|
|
11
|
+
"dist/apple/OuroTokens.swift": "bd4edbede5b04c3638c3ff8e64c7841810ac911c0ab335fe2a5d0e444198f8ca",
|
|
12
|
+
"dist/ax/actions.claims.json": "944f48be5f9409dd70e0774dfe4976fef9cc3ba3f4ab4b9231df428700523f1a",
|
|
13
|
+
"dist/ax/apple.claims.json": "4216bfdce2983fb95a722b208cdb944315e87d5b8b5b7d0056b8edcb2208254d",
|
|
14
|
+
"dist/composed/ouro-chat-approval.mts": "a39b560285b6aa6c3256b1919392b3045cfa8923e5ea5113036628aa88cbc01f",
|
|
15
|
+
"dist/composed/ouro-composed.mts": "33d62bd7d35c7f7e63e16861bb7bf9cbab27c3892e7893168cb3dd6c063f1d51",
|
|
16
|
+
"dist/composed/ouro-mcp-app.mts": "9b61d5d000f09cfd7cfcb13d057fb1bb1f0bea9bcedda5eb54a80ba8a11cac33",
|
|
17
|
+
"dist/feel/feel.spec.json": "83b434d8f1628bd39e27f6325ad563c5e129ebd2bbbdee44ebb18f82e46781ef",
|
|
18
|
+
"dist/hx/a2ui/catalog.json": "ce71289995af0707ef297db0f8cd1d0e4767d99c129fa8901fa7d1c78da9776e",
|
|
19
|
+
"dist/hx/components.claims.json": "9c49e61817aaf68225c582034b6d5af067fbff53374c13504479b7795ac7b1bb",
|
|
20
|
+
"dist/hx/components/avatar.spec.json": "466333297f1c2cb6ab97e18e46466130a18b200a2d8f8e43a0ea62b7fe062449",
|
|
21
|
+
"dist/hx/components/badge.spec.json": "e22b1cd393ffcce5aecb6cbd2dec46151b13b3d96aa95a47159e01230965d43c",
|
|
22
|
+
"dist/hx/components/button.spec.json": "a0a678babb8ea2c86e2e98fdc9e15304dba88d8dbdfda757a5c05d17598a7e21",
|
|
23
|
+
"dist/hx/components/card.spec.json": "1259487792b0eaaad41edb48d20fdc3048e7bcb5311525df1e997fc118b9806a",
|
|
24
|
+
"dist/hx/components/checkbox.spec.json": "44f4f7a5381994ed89764fb1403a757409d572d66c355d9e4752a2839c4f334b",
|
|
25
|
+
"dist/hx/components/component.schema.json": "35d5ec895061284e70837c4efeb3935708b769bac0baf83bcfeb7fd1bb9a74ff",
|
|
26
|
+
"dist/hx/components/composer.spec.json": "6e69109515489391f87632e0f1001b3d6414f445aea3a507e040d88553562ad7",
|
|
27
|
+
"dist/hx/components/confirm-dialog.spec.json": "0e767248d52f91f9db511543620bdb4345ead2815d5682760bd2d675aa1f5a06",
|
|
28
|
+
"dist/hx/components/conversation-list.spec.json": "50b3b3db3d5f79e71315adfd058ba4a5ea09fc7194e21356dfd5354b1c20c930",
|
|
29
|
+
"dist/hx/components/description-list.spec.json": "11cac2a8e2f6295f0206a1d23b2cf9ef10e3a252152b1cb1ec6e89e7f5874d69",
|
|
30
|
+
"dist/hx/components/dialog.spec.json": "f5b1ef537e84ecd3ec71b1c6760d27bbaabb0e1028f316468783d54991e58047",
|
|
31
|
+
"dist/hx/components/field.spec.json": "dfaa5a742a38758f2e9f795c9bc9f15ba45fca5a48903b19af1af151b212525e",
|
|
32
|
+
"dist/hx/components/immersive-controls.spec.json": "eb276c8f216a35891f20931500ad8027f99fd16bb96026fb0c003b6862709ba2",
|
|
33
|
+
"dist/hx/components/item-group.spec.json": "e0762a485dba134a98873ec9ea9f7b8098ebb883b29f29601840fbe628111e4c",
|
|
34
|
+
"dist/hx/components/item.spec.json": "1d93608ad689ee65e7415070376aa1803838f2b24b0ff11f5d4b810e1be057ff",
|
|
35
|
+
"dist/hx/components/message-list.spec.json": "6377e8e51b2da1d258d79e2f2c6fd63981fe42ffab132c07fe17c6713e9a8c81",
|
|
36
|
+
"dist/hx/components/message.spec.json": "911b8ca4cd92c56551a8a5e0d77828e4869aabd169207039cdab5969e62d70cf",
|
|
37
|
+
"dist/hx/components/page-header.spec.json": "d39b378fe72e50ea44c1cbd49aa2e4bedf214fcbce3941e3e3eaddb0ef398e01",
|
|
38
|
+
"dist/hx/components/progress.spec.json": "7c17b85fa32650f8c8e3aa455fbb948fe6508fe6fd76955570df39fb718f5211",
|
|
39
|
+
"dist/hx/components/reaction-bar.spec.json": "b733d8da95ad5222ea942b1e72bfc1e202a63d89c94a47f5db0237e9587faa40",
|
|
40
|
+
"dist/hx/components/reorderable.spec.json": "ca5917aa880f61f1172af21a70d37e5f22c7a7c5bced657be19e2ba3b4f01946",
|
|
41
|
+
"dist/hx/components/segmented-control.spec.json": "12cbeec9c70056b1f8086ab792781ea0b70cf9959eed8e46e0270816a78488e8",
|
|
42
|
+
"dist/hx/components/select.spec.json": "ba9b408179fb6c9fe00b27a97a64a96e4bb56aebb82aa8254ec03a29d8c0cbc8",
|
|
43
|
+
"dist/hx/components/separator.spec.json": "84062fb0ea4cce3afa952df1730b3548f37271c34f9bcca9653aacceab9ef9c6",
|
|
44
|
+
"dist/hx/components/sheet.spec.json": "b90891fdbbca270dc8c454600a61b0992ba68864577d54b99edcdb16873a1cb6",
|
|
45
|
+
"dist/hx/components/sidebar.spec.json": "d8c14dbd9c626f90366209794ac1fd61a607647e50ef2168ecdecfaaa660f19f",
|
|
46
|
+
"dist/hx/components/skeleton.spec.json": "8cb91db633819d2fa8f9909f4ca27c82c9d2714cce51b251b9eadcf27eed5d5f",
|
|
47
|
+
"dist/hx/components/spinner.spec.json": "23e4e33382b82add0e7f67ce79517373b139bab934617b715e617fd86919c67a",
|
|
48
|
+
"dist/hx/components/swipe-actions.spec.json": "04f02d3f6f7b61e0715f12e58d0a5a682d419398e490fc6a68d5f3672fce8af0",
|
|
49
|
+
"dist/hx/components/switch.spec.json": "fcc98379fe4ccf5348931cc05848869c29c3c8fbb225cf47406ea621cc87ac73",
|
|
50
|
+
"dist/hx/components/sync-status.spec.json": "02d8a83e542c544224e7a869acfe72ceb8934213dafb74e4f78344a463d1dd36",
|
|
51
|
+
"dist/hx/components/tab-bar.spec.json": "b7f3fd9721f9d84ed71ad732b13b8695144f0eed6cf1db828b8628d996e83c79",
|
|
52
|
+
"dist/hx/components/table.spec.json": "b731de676f2b35324b151a5415efc584eb6f5e7f59ed1019c28b5eef3b1b8476",
|
|
53
|
+
"dist/hx/components/tabs.spec.json": "03dc31c76ed1609cec921e1081754a74dbdde5132c9d08fd40fe09b7808a72d8",
|
|
54
|
+
"dist/hx/components/text-field.spec.json": "7af3c66a74eb818a97a76415f04549e3c1a442195795f59ef3be323422c98b2c",
|
|
55
|
+
"dist/swatches.html": "a2cc52c9510a8c0fb5c28b0c848bcaddec99a5adf1567f8e17ce380c1580db9b",
|
|
56
|
+
"dist/web/ouro-base.css": "33a57fdbd717e933c5befd9d7d20d31d201819df785656f15ddfb07d7243d615",
|
|
57
|
+
"dist/web/ouro-theme.css": "58f0a4a850d22f8cf98192e4675af2a69dec3a5976aabb22ffb15f584038b6fd",
|
|
58
|
+
"dist/web/plain/ouro-base.css": "1c54d54d1ca623b820d1eed65e76f46efde2debc4fd1a1bf0d8a11bfb33bf4ca",
|
|
59
|
+
"dist/web/plain/ouro-theme.css": "29eef0c1bb35673e0a871fe32f54a497aba6bc140b40e8e71ea83542d83b30a9",
|
|
60
|
+
"dist/web/presets.json": "d5884b58fb97440d936c0ff0e3339de534da7252141b7520a0af1c3486c3c48c",
|
|
61
|
+
"dist/web/themes/abyss.css": "93c804e4abc66633416a641b798566ff4a538c14b68f3ad77bf134cb95566e4c",
|
|
62
|
+
"dist/web/themes/brass.css": "d55fd548c45bc49abb72f9bc96c2816a53c09706ded2e824c4e2ff8df8c8e75c",
|
|
63
|
+
"dist/web/themes/chart.css": "0268a59afd133f258c8da7a44b10bca10c219e80bf44ccca97d93216821cf7ca",
|
|
64
|
+
"dist/web/themes/cookbook.css": "577c1c6bdf1658af0a7e87c494fcc4af2450178a8557e627b024603c91674f1d",
|
|
65
|
+
"dist/web/themes/coral.css": "aeba81da6c7d96edabcf77bc82d9812f15ec5b6bbcdd26d54d649a4036f6ba41",
|
|
66
|
+
"dist/web/themes/pearl.css": "269c92d93fb1b170bd26f30fb41492c24bf8ab76e2cd9882b65d38fc12fdd694",
|
|
67
|
+
"dist/windows/OuroTokens.cs": "b70e1739f9c47507d48673838c68ee6dfc879818014da7897efef41304f51e98",
|
|
68
|
+
"dist/windows/OuroTokens.xaml": "3fcbc1e97fecf5a11db5375667db6085ce2972b011847bcde531c09ba260a703"
|
|
69
|
+
}
|
|
70
|
+
}
|