@ashlr/hub 2.2.0
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/CHANGELOG.md +1158 -0
- package/LICENSE +21 -0
- package/README.md +833 -0
- package/bin/ashlr +8 -0
- package/dist/api/core.d.ts +28 -0
- package/dist/api/core.js +42 -0
- package/dist/api/core.js.map +1 -0
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.js +9 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/plugin.d.ts +12 -0
- package/dist/api/plugin.js +13 -0
- package/dist/api/plugin.js.map +1 -0
- package/dist/api/types.d.ts +9 -0
- package/dist/api/types.js +9 -0
- package/dist/api/types.js.map +1 -0
- package/dist/cli/args.d.ts +20 -0
- package/dist/cli/args.js +23 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/ask.d.ts +22 -0
- package/dist/cli/ask.js +240 -0
- package/dist/cli/ask.js.map +1 -0
- package/dist/cli/audit.d.ts +26 -0
- package/dist/cli/audit.js +199 -0
- package/dist/cli/audit.js.map +1 -0
- package/dist/cli/backlog.d.ts +26 -0
- package/dist/cli/backlog.js +322 -0
- package/dist/cli/backlog.js.map +1 -0
- package/dist/cli/completions.d.ts +18 -0
- package/dist/cli/completions.js +156 -0
- package/dist/cli/completions.js.map +1 -0
- package/dist/cli/daemon.d.ts +31 -0
- package/dist/cli/daemon.js +334 -0
- package/dist/cli/daemon.js.map +1 -0
- package/dist/cli/demo-sandbox.d.ts +78 -0
- package/dist/cli/demo-sandbox.js +227 -0
- package/dist/cli/demo-sandbox.js.map +1 -0
- package/dist/cli/demo.d.ts +76 -0
- package/dist/cli/demo.js +285 -0
- package/dist/cli/demo.js.map +1 -0
- package/dist/cli/digest.d.ts +46 -0
- package/dist/cli/digest.js +352 -0
- package/dist/cli/digest.js.map +1 -0
- package/dist/cli/doctor-init.d.ts +28 -0
- package/dist/cli/doctor-init.js +335 -0
- package/dist/cli/doctor-init.js.map +1 -0
- package/dist/cli/genome.d.ts +62 -0
- package/dist/cli/genome.js +1061 -0
- package/dist/cli/genome.js.map +1 -0
- package/dist/cli/gh.d.ts +27 -0
- package/dist/cli/gh.js +322 -0
- package/dist/cli/gh.js.map +1 -0
- package/dist/cli/goals.d.ts +55 -0
- package/dist/cli/goals.js +667 -0
- package/dist/cli/goals.js.map +1 -0
- package/dist/cli/health.d.ts +56 -0
- package/dist/cli/health.js +407 -0
- package/dist/cli/health.js.map +1 -0
- package/dist/cli/help.d.ts +51 -0
- package/dist/cli/help.js +436 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/inbox.d.ts +28 -0
- package/dist/cli/inbox.js +589 -0
- package/dist/cli/inbox.js.map +1 -0
- package/dist/cli/index.d.ts +41 -0
- package/dist/cli/index.js +1208 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/knowledge.d.ts +33 -0
- package/dist/cli/knowledge.js +575 -0
- package/dist/cli/knowledge.js.map +1 -0
- package/dist/cli/mcp.d.ts +26 -0
- package/dist/cli/mcp.js +487 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/cli/models.d.ts +26 -0
- package/dist/cli/models.js +435 -0
- package/dist/cli/models.js.map +1 -0
- package/dist/cli/new.d.ts +32 -0
- package/dist/cli/new.js +565 -0
- package/dist/cli/new.js.map +1 -0
- package/dist/cli/notify.d.ts +20 -0
- package/dist/cli/notify.js +188 -0
- package/dist/cli/notify.js.map +1 -0
- package/dist/cli/onboard.d.ts +85 -0
- package/dist/cli/onboard.js +305 -0
- package/dist/cli/onboard.js.map +1 -0
- package/dist/cli/open.d.ts +38 -0
- package/dist/cli/open.js +86 -0
- package/dist/cli/open.js.map +1 -0
- package/dist/cli/orient.d.ts +14 -0
- package/dist/cli/orient.js +110 -0
- package/dist/cli/orient.js.map +1 -0
- package/dist/cli/picker.d.ts +21 -0
- package/dist/cli/picker.js +177 -0
- package/dist/cli/picker.js.map +1 -0
- package/dist/cli/plugins.d.ts +21 -0
- package/dist/cli/plugins.js +394 -0
- package/dist/cli/plugins.js.map +1 -0
- package/dist/cli/preflight.d.ts +29 -0
- package/dist/cli/preflight.js +131 -0
- package/dist/cli/preflight.js.map +1 -0
- package/dist/cli/pulse.d.ts +26 -0
- package/dist/cli/pulse.js +482 -0
- package/dist/cli/pulse.js.map +1 -0
- package/dist/cli/reflect.d.ts +42 -0
- package/dist/cli/reflect.js +381 -0
- package/dist/cli/reflect.js.map +1 -0
- package/dist/cli/run.d.ts +29 -0
- package/dist/cli/run.js +687 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/sandbox.d.ts +20 -0
- package/dist/cli/sandbox.js +345 -0
- package/dist/cli/sandbox.js.map +1 -0
- package/dist/cli/seams.d.ts +41 -0
- package/dist/cli/seams.js +167 -0
- package/dist/cli/seams.js.map +1 -0
- package/dist/cli/serve.d.ts +25 -0
- package/dist/cli/serve.js +249 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/cli/ship.d.ts +33 -0
- package/dist/cli/ship.js +433 -0
- package/dist/cli/ship.js.map +1 -0
- package/dist/cli/spec.d.ts +19 -0
- package/dist/cli/spec.js +478 -0
- package/dist/cli/spec.js.map +1 -0
- package/dist/cli/swarm.d.ts +42 -0
- package/dist/cli/swarm.js +1365 -0
- package/dist/cli/swarm.js.map +1 -0
- package/dist/cli/telemetry.d.ts +26 -0
- package/dist/cli/telemetry.js +364 -0
- package/dist/cli/telemetry.js.map +1 -0
- package/dist/cli/tui.d.ts +17 -0
- package/dist/cli/tui.js +52 -0
- package/dist/cli/tui.js.map +1 -0
- package/dist/cli/ui.d.ts +53 -0
- package/dist/cli/ui.js +66 -0
- package/dist/cli/ui.js.map +1 -0
- package/dist/cli/update.d.ts +38 -0
- package/dist/cli/update.js +682 -0
- package/dist/cli/update.js.map +1 -0
- package/dist/cli/vercel.d.ts +20 -0
- package/dist/cli/vercel.js +193 -0
- package/dist/cli/vercel.js.map +1 -0
- package/dist/cli/verify-safety.d.ts +96 -0
- package/dist/cli/verify-safety.js +509 -0
- package/dist/cli/verify-safety.js.map +1 -0
- package/dist/cli/wire.d.ts +22 -0
- package/dist/cli/wire.js +205 -0
- package/dist/cli/wire.js.map +1 -0
- package/dist/core/classify.d.ts +51 -0
- package/dist/core/classify.js +450 -0
- package/dist/core/classify.js.map +1 -0
- package/dist/core/config.d.ts +63 -0
- package/dist/core/config.js +474 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/daemon/loop.d.ts +74 -0
- package/dist/core/daemon/loop.js +618 -0
- package/dist/core/daemon/loop.js.map +1 -0
- package/dist/core/daemon/state.d.ts +66 -0
- package/dist/core/daemon/state.js +197 -0
- package/dist/core/daemon/state.js.map +1 -0
- package/dist/core/dashboard.d.ts +40 -0
- package/dist/core/dashboard.js +463 -0
- package/dist/core/dashboard.js.map +1 -0
- package/dist/core/digest/build.d.ts +51 -0
- package/dist/core/digest/build.js +230 -0
- package/dist/core/digest/build.js.map +1 -0
- package/dist/core/digest/deliver.d.ts +47 -0
- package/dist/core/digest/deliver.js +230 -0
- package/dist/core/digest/deliver.js.map +1 -0
- package/dist/core/digest/store.d.ts +57 -0
- package/dist/core/digest/store.js +223 -0
- package/dist/core/digest/store.js.map +1 -0
- package/dist/core/doctor-fix.d.ts +21 -0
- package/dist/core/doctor-fix.js +440 -0
- package/dist/core/doctor-fix.js.map +1 -0
- package/dist/core/doctor.d.ts +18 -0
- package/dist/core/doctor.js +806 -0
- package/dist/core/doctor.js.map +1 -0
- package/dist/core/env-bridge.d.ts +64 -0
- package/dist/core/env-bridge.js +103 -0
- package/dist/core/env-bridge.js.map +1 -0
- package/dist/core/genome/capture.d.ts +49 -0
- package/dist/core/genome/capture.js +352 -0
- package/dist/core/genome/capture.js.map +1 -0
- package/dist/core/genome/consolidate.d.ts +38 -0
- package/dist/core/genome/consolidate.js +426 -0
- package/dist/core/genome/consolidate.js.map +1 -0
- package/dist/core/genome/export.d.ts +29 -0
- package/dist/core/genome/export.js +102 -0
- package/dist/core/genome/export.js.map +1 -0
- package/dist/core/genome/playbook.d.ts +33 -0
- package/dist/core/genome/playbook.js +320 -0
- package/dist/core/genome/playbook.js.map +1 -0
- package/dist/core/genome/recall.d.ts +45 -0
- package/dist/core/genome/recall.js +293 -0
- package/dist/core/genome/recall.js.map +1 -0
- package/dist/core/genome/store.d.ts +62 -0
- package/dist/core/genome/store.js +711 -0
- package/dist/core/genome/store.js.map +1 -0
- package/dist/core/git.d.ts +34 -0
- package/dist/core/git.js +115 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/goals/advance.d.ts +82 -0
- package/dist/core/goals/advance.js +263 -0
- package/dist/core/goals/advance.js.map +1 -0
- package/dist/core/goals/planner.d.ts +58 -0
- package/dist/core/goals/planner.js +233 -0
- package/dist/core/goals/planner.js.map +1 -0
- package/dist/core/goals/store.d.ts +128 -0
- package/dist/core/goals/store.js +442 -0
- package/dist/core/goals/store.js.map +1 -0
- package/dist/core/inbox/apply.d.ts +36 -0
- package/dist/core/inbox/apply.js +407 -0
- package/dist/core/inbox/apply.js.map +1 -0
- package/dist/core/inbox/notify-proposal.d.ts +13 -0
- package/dist/core/inbox/notify-proposal.js +21 -0
- package/dist/core/inbox/notify-proposal.js.map +1 -0
- package/dist/core/inbox/store.d.ts +67 -0
- package/dist/core/inbox/store.js +258 -0
- package/dist/core/inbox/store.js.map +1 -0
- package/dist/core/index-engine.d.ts +62 -0
- package/dist/core/index-engine.js +486 -0
- package/dist/core/index-engine.js.map +1 -0
- package/dist/core/integrations/desktop-notify.d.ts +18 -0
- package/dist/core/integrations/desktop-notify.js +42 -0
- package/dist/core/integrations/desktop-notify.js.map +1 -0
- package/dist/core/integrations/editors.d.ts +50 -0
- package/dist/core/integrations/editors.js +216 -0
- package/dist/core/integrations/editors.js.map +1 -0
- package/dist/core/integrations/github.d.ts +66 -0
- package/dist/core/integrations/github.js +332 -0
- package/dist/core/integrations/github.js.map +1 -0
- package/dist/core/integrations/identity.d.ts +29 -0
- package/dist/core/integrations/identity.js +359 -0
- package/dist/core/integrations/identity.js.map +1 -0
- package/dist/core/integrations/notify.d.ts +23 -0
- package/dist/core/integrations/notify.js +96 -0
- package/dist/core/integrations/notify.js.map +1 -0
- package/dist/core/integrations/vercel.d.ts +37 -0
- package/dist/core/integrations/vercel.js +192 -0
- package/dist/core/integrations/vercel.js.map +1 -0
- package/dist/core/knowledge/ask.d.ts +34 -0
- package/dist/core/knowledge/ask.js +325 -0
- package/dist/core/knowledge/ask.js.map +1 -0
- package/dist/core/knowledge/graph.d.ts +51 -0
- package/dist/core/knowledge/graph.js +564 -0
- package/dist/core/knowledge/graph.js.map +1 -0
- package/dist/core/knowledge/index.d.ts +74 -0
- package/dist/core/knowledge/index.js +586 -0
- package/dist/core/knowledge/index.js.map +1 -0
- package/dist/core/learn/playbooks.d.ts +84 -0
- package/dist/core/learn/playbooks.js +241 -0
- package/dist/core/learn/playbooks.js.map +1 -0
- package/dist/core/learn/reflect.d.ts +87 -0
- package/dist/core/learn/reflect.js +435 -0
- package/dist/core/learn/reflect.js.map +1 -0
- package/dist/core/learn/store.d.ts +51 -0
- package/dist/core/learn/store.js +165 -0
- package/dist/core/learn/store.js.map +1 -0
- package/dist/core/learn/tuning.d.ts +48 -0
- package/dist/core/learn/tuning.js +201 -0
- package/dist/core/learn/tuning.js.map +1 -0
- package/dist/core/lifecycle/scaffold.d.ts +43 -0
- package/dist/core/lifecycle/scaffold.js +260 -0
- package/dist/core/lifecycle/scaffold.js.map +1 -0
- package/dist/core/lifecycle/ship.d.ts +48 -0
- package/dist/core/lifecycle/ship.js +513 -0
- package/dist/core/lifecycle/ship.js.map +1 -0
- package/dist/core/lifecycle/templates.d.ts +20 -0
- package/dist/core/lifecycle/templates.js +605 -0
- package/dist/core/lifecycle/templates.js.map +1 -0
- package/dist/core/mcp-gateway.d.ts +59 -0
- package/dist/core/mcp-gateway.js +385 -0
- package/dist/core/mcp-gateway.js.map +1 -0
- package/dist/core/mcp-native.d.ts +53 -0
- package/dist/core/mcp-native.js +507 -0
- package/dist/core/mcp-native.js.map +1 -0
- package/dist/core/mcp-registry.d.ts +36 -0
- package/dist/core/mcp-registry.js +180 -0
- package/dist/core/mcp-registry.js.map +1 -0
- package/dist/core/observability/budget-alert.d.ts +18 -0
- package/dist/core/observability/budget-alert.js +90 -0
- package/dist/core/observability/budget-alert.js.map +1 -0
- package/dist/core/observability/estimate.d.ts +27 -0
- package/dist/core/observability/estimate.js +188 -0
- package/dist/core/observability/estimate.js.map +1 -0
- package/dist/core/observability/forecast.d.ts +19 -0
- package/dist/core/observability/forecast.js +101 -0
- package/dist/core/observability/forecast.js.map +1 -0
- package/dist/core/observability/governance.d.ts +28 -0
- package/dist/core/observability/governance.js +101 -0
- package/dist/core/observability/governance.js.map +1 -0
- package/dist/core/observability/otlp.d.ts +88 -0
- package/dist/core/observability/otlp.js +217 -0
- package/dist/core/observability/otlp.js.map +1 -0
- package/dist/core/observability/rollup.d.ts +35 -0
- package/dist/core/observability/rollup.js +311 -0
- package/dist/core/observability/rollup.js.map +1 -0
- package/dist/core/observability/telemetry-sink.d.ts +63 -0
- package/dist/core/observability/telemetry-sink.js +350 -0
- package/dist/core/observability/telemetry-sink.js.map +1 -0
- package/dist/core/observability/usage-source.d.ts +60 -0
- package/dist/core/observability/usage-source.js +347 -0
- package/dist/core/observability/usage-source.js.map +1 -0
- package/dist/core/onboard.d.ts +27 -0
- package/dist/core/onboard.js +288 -0
- package/dist/core/onboard.js.map +1 -0
- package/dist/core/orient.d.ts +23 -0
- package/dist/core/orient.js +135 -0
- package/dist/core/orient.js.map +1 -0
- package/dist/core/phantom.d.ts +23 -0
- package/dist/core/phantom.js +279 -0
- package/dist/core/phantom.js.map +1 -0
- package/dist/core/plugins/host-api.d.ts +29 -0
- package/dist/core/plugins/host-api.js +113 -0
- package/dist/core/plugins/host-api.js.map +1 -0
- package/dist/core/plugins/integrity.d.ts +36 -0
- package/dist/core/plugins/integrity.js +73 -0
- package/dist/core/plugins/integrity.js.map +1 -0
- package/dist/core/plugins/manifest.d.ts +31 -0
- package/dist/core/plugins/manifest.js +316 -0
- package/dist/core/plugins/manifest.js.map +1 -0
- package/dist/core/plugins/registry.d.ts +87 -0
- package/dist/core/plugins/registry.js +415 -0
- package/dist/core/plugins/registry.js.map +1 -0
- package/dist/core/plugins/types.d.ts +182 -0
- package/dist/core/plugins/types.js +40 -0
- package/dist/core/plugins/types.js.map +1 -0
- package/dist/core/plugins/wrappers.d.ts +40 -0
- package/dist/core/plugins/wrappers.js +229 -0
- package/dist/core/plugins/wrappers.js.map +1 -0
- package/dist/core/portfolio/backlog.d.ts +40 -0
- package/dist/core/portfolio/backlog.js +177 -0
- package/dist/core/portfolio/backlog.js.map +1 -0
- package/dist/core/portfolio/scanners.d.ts +21 -0
- package/dist/core/portfolio/scanners.js +600 -0
- package/dist/core/portfolio/scanners.js.map +1 -0
- package/dist/core/providers.d.ts +34 -0
- package/dist/core/providers.js +250 -0
- package/dist/core/providers.js.map +1 -0
- package/dist/core/quality/conventions.d.ts +35 -0
- package/dist/core/quality/conventions.js +267 -0
- package/dist/core/quality/conventions.js.map +1 -0
- package/dist/core/quality/fixes.d.ts +56 -0
- package/dist/core/quality/fixes.js +209 -0
- package/dist/core/quality/fixes.js.map +1 -0
- package/dist/core/quality/health.d.ts +69 -0
- package/dist/core/quality/health.js +350 -0
- package/dist/core/quality/health.js.map +1 -0
- package/dist/core/quality/store.d.ts +56 -0
- package/dist/core/quality/store.js +195 -0
- package/dist/core/quality/store.js.map +1 -0
- package/dist/core/readiness.d.ts +112 -0
- package/dist/core/readiness.js +431 -0
- package/dist/core/readiness.js.map +1 -0
- package/dist/core/run/agent-loop.d.ts +40 -0
- package/dist/core/run/agent-loop.js +291 -0
- package/dist/core/run/agent-loop.js.map +1 -0
- package/dist/core/run/budget.d.ts +47 -0
- package/dist/core/run/budget.js +113 -0
- package/dist/core/run/budget.js.map +1 -0
- package/dist/core/run/engines.d.ts +75 -0
- package/dist/core/run/engines.js +199 -0
- package/dist/core/run/engines.js.map +1 -0
- package/dist/core/run/model-manager.d.ts +64 -0
- package/dist/core/run/model-manager.js +339 -0
- package/dist/core/run/model-manager.js.map +1 -0
- package/dist/core/run/orchestrator.d.ts +100 -0
- package/dist/core/run/orchestrator.js +1515 -0
- package/dist/core/run/orchestrator.js.map +1 -0
- package/dist/core/run/provider-client.d.ts +46 -0
- package/dist/core/run/provider-client.js +796 -0
- package/dist/core/run/provider-client.js.map +1 -0
- package/dist/core/run/retry.d.ts +19 -0
- package/dist/core/run/retry.js +68 -0
- package/dist/core/run/retry.js.map +1 -0
- package/dist/core/run/router.d.ts +50 -0
- package/dist/core/run/router.js +257 -0
- package/dist/core/run/router.js.map +1 -0
- package/dist/core/run/self-heal.d.ts +52 -0
- package/dist/core/run/self-heal.js +181 -0
- package/dist/core/run/self-heal.js.map +1 -0
- package/dist/core/run/streaming.d.ts +31 -0
- package/dist/core/run/streaming.js +122 -0
- package/dist/core/run/streaming.js.map +1 -0
- package/dist/core/run/verify.d.ts +30 -0
- package/dist/core/run/verify.js +204 -0
- package/dist/core/run/verify.js.map +1 -0
- package/dist/core/sandbox/audit.d.ts +31 -0
- package/dist/core/sandbox/audit.js +169 -0
- package/dist/core/sandbox/audit.js.map +1 -0
- package/dist/core/sandbox/policy.d.ts +61 -0
- package/dist/core/sandbox/policy.js +211 -0
- package/dist/core/sandbox/policy.js.map +1 -0
- package/dist/core/sandbox/worktree.d.ts +175 -0
- package/dist/core/sandbox/worktree.js +673 -0
- package/dist/core/sandbox/worktree.js.map +1 -0
- package/dist/core/seams/backlog.d.ts +47 -0
- package/dist/core/seams/backlog.js +47 -0
- package/dist/core/seams/backlog.js.map +1 -0
- package/dist/core/seams/daemon-coordinator.d.ts +72 -0
- package/dist/core/seams/daemon-coordinator.js +76 -0
- package/dist/core/seams/daemon-coordinator.js.map +1 -0
- package/dist/core/seams/genome.d.ts +45 -0
- package/dist/core/seams/genome.js +53 -0
- package/dist/core/seams/genome.js.map +1 -0
- package/dist/core/seams/identity.d.ts +40 -0
- package/dist/core/seams/identity.js +44 -0
- package/dist/core/seams/identity.js.map +1 -0
- package/dist/core/seams/inbox.d.ts +60 -0
- package/dist/core/seams/inbox.js +66 -0
- package/dist/core/seams/inbox.js.map +1 -0
- package/dist/core/seams/index.d.ts +20 -0
- package/dist/core/seams/index.js +21 -0
- package/dist/core/seams/index.js.map +1 -0
- package/dist/core/seams/portfolio.d.ts +50 -0
- package/dist/core/seams/portfolio.js +61 -0
- package/dist/core/seams/portfolio.js.map +1 -0
- package/dist/core/seams/registry.d.ts +42 -0
- package/dist/core/seams/registry.js +128 -0
- package/dist/core/seams/registry.js.map +1 -0
- package/dist/core/seams/run-swarm.d.ts +66 -0
- package/dist/core/seams/run-swarm.js +74 -0
- package/dist/core/seams/run-swarm.js.map +1 -0
- package/dist/core/seams/types.d.ts +123 -0
- package/dist/core/seams/types.js +35 -0
- package/dist/core/seams/types.js.map +1 -0
- package/dist/core/spec/spec-store.d.ts +62 -0
- package/dist/core/spec/spec-store.js +359 -0
- package/dist/core/spec/spec-store.js.map +1 -0
- package/dist/core/swarm/gate.d.ts +45 -0
- package/dist/core/swarm/gate.js +114 -0
- package/dist/core/swarm/gate.js.map +1 -0
- package/dist/core/swarm/planner.d.ts +32 -0
- package/dist/core/swarm/planner.js +293 -0
- package/dist/core/swarm/planner.js.map +1 -0
- package/dist/core/swarm/rollback.d.ts +56 -0
- package/dist/core/swarm/rollback.js +266 -0
- package/dist/core/swarm/rollback.js.map +1 -0
- package/dist/core/swarm/runner.d.ts +62 -0
- package/dist/core/swarm/runner.js +1263 -0
- package/dist/core/swarm/runner.js.map +1 -0
- package/dist/core/swarm/sign.d.ts +71 -0
- package/dist/core/swarm/sign.js +362 -0
- package/dist/core/swarm/sign.js.map +1 -0
- package/dist/core/swarm/store.d.ts +52 -0
- package/dist/core/swarm/store.js +195 -0
- package/dist/core/swarm/store.js.map +1 -0
- package/dist/core/tidy.d.ts +32 -0
- package/dist/core/tidy.js +354 -0
- package/dist/core/tidy.js.map +1 -0
- package/dist/core/tools-registry.d.ts +16 -0
- package/dist/core/tools-registry.js +308 -0
- package/dist/core/tools-registry.js.map +1 -0
- package/dist/core/types.d.ts +2545 -0
- package/dist/core/types.js +9 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/web/api.d.ts +53 -0
- package/dist/core/web/api.js +698 -0
- package/dist/core/web/api.js.map +1 -0
- package/dist/core/web/public/app.js +1906 -0
- package/dist/core/web/public/index.html +721 -0
- package/dist/core/web/public/styles.css +2007 -0
- package/dist/core/web/server.d.ts +18 -0
- package/dist/core/web/server.js +122 -0
- package/dist/core/web/server.js.map +1 -0
- package/dist/core/web/static.d.ts +18 -0
- package/dist/core/web/static.js +122 -0
- package/dist/core/web/static.js.map +1 -0
- package/dist/tui/app.d.ts +33 -0
- package/dist/tui/app.js +350 -0
- package/dist/tui/app.js.map +1 -0
- package/dist/tui/render.d.ts +20 -0
- package/dist/tui/render.js +558 -0
- package/dist/tui/render.js.map +1 -0
- package/package.json +80 -0
- package/schema/config.schema.json +223 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree.js","sourceRoot":"","sources":["../../../src/core/sandbox/worktree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,aAAa,EACb,MAAM,GACP,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAA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CAAC,EAAE,CAAC,CAAC;YAClB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC;QAAC,MAAM,CAAC;YACP,wEAAwE;YACxE,sEAAsE;QACxE,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,8EAA8E;AAC9E,4EAA4E;AAC5E,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,EAAE,IAAI,aAAa,EAAE,EAAE,CAAC;QACjC,qCAAqC;QACrC,IAAI,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,MAAM,EAAE,CAAC;YACtC,SAAS;QACX,CAAC;QACD,qEAAqE;QACrE,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;QACxE,uDAAuD;QACvD,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;YACnB,SAAS;QACX,CAAC;QACD,IAAI,CAAC;YACH,aAAa,CAAC,EAAE,CAAC,CAAC;YAClB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACpB,CAAC;QAAC,MAAM,CAAC;YACP,wEAAwE;YACxE,iCAAiC;QACnC,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/backlog.ts — BacklogSource seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/portfolio/backlog.ts (loadBacklog / buildBacklog + scanners).
|
|
5
|
+
*
|
|
6
|
+
* (a) BacklogSource — the interface.
|
|
7
|
+
* (b) LocalBacklogSource — DEFAULT. Behavior-preserving adapter delegating
|
|
8
|
+
* 1:1 to the existing functions (scanners run
|
|
9
|
+
* exactly as before; enrollment-scoped; read-only).
|
|
10
|
+
* (c) CloudBacklogSource — GATED stub; every method throws before any I/O.
|
|
11
|
+
* (d) selectBacklogSource — local by default; gated stub ONLY when a cloud
|
|
12
|
+
* endpoint is explicitly configured (still refuses).
|
|
13
|
+
*
|
|
14
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
15
|
+
*/
|
|
16
|
+
import type { AshlrConfig, Backlog } from '../types.js';
|
|
17
|
+
export declare const BACKLOG_SEAM: {
|
|
18
|
+
id: "backlog";
|
|
19
|
+
name: string;
|
|
20
|
+
delegatesTo: string;
|
|
21
|
+
summary: string;
|
|
22
|
+
};
|
|
23
|
+
/** Read + (re)build the scored, deduped work backlog. */
|
|
24
|
+
export interface BacklogSource {
|
|
25
|
+
/** Load the persisted backlog, or null when absent/malformed. */
|
|
26
|
+
load(): Backlog | null;
|
|
27
|
+
/** Re-scan enrolled repos (or `opts.repos`) and rebuild the backlog. */
|
|
28
|
+
build(opts?: {
|
|
29
|
+
repos?: string[];
|
|
30
|
+
}): Promise<Backlog>;
|
|
31
|
+
}
|
|
32
|
+
/** DEFAULT local impl — pass-through adapter over core/portfolio/backlog.ts. */
|
|
33
|
+
export declare class LocalBacklogSource implements BacklogSource {
|
|
34
|
+
load(): Backlog | null;
|
|
35
|
+
build(opts?: {
|
|
36
|
+
repos?: string[];
|
|
37
|
+
}): Promise<Backlog>;
|
|
38
|
+
}
|
|
39
|
+
/** GATED cloud stub — a shared team backlog WOULD live here. Throws first. */
|
|
40
|
+
export declare class CloudBacklogSource implements BacklogSource {
|
|
41
|
+
load(): Backlog | null;
|
|
42
|
+
build(_opts?: {
|
|
43
|
+
repos?: string[];
|
|
44
|
+
}): Promise<Backlog>;
|
|
45
|
+
}
|
|
46
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
47
|
+
export declare function selectBacklogSource(cfg: AshlrConfig): BacklogSource;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/backlog.ts — BacklogSource seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/portfolio/backlog.ts (loadBacklog / buildBacklog + scanners).
|
|
5
|
+
*
|
|
6
|
+
* (a) BacklogSource — the interface.
|
|
7
|
+
* (b) LocalBacklogSource — DEFAULT. Behavior-preserving adapter delegating
|
|
8
|
+
* 1:1 to the existing functions (scanners run
|
|
9
|
+
* exactly as before; enrollment-scoped; read-only).
|
|
10
|
+
* (c) CloudBacklogSource — GATED stub; every method throws before any I/O.
|
|
11
|
+
* (d) selectBacklogSource — local by default; gated stub ONLY when a cloud
|
|
12
|
+
* endpoint is explicitly configured (still refuses).
|
|
13
|
+
*
|
|
14
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
15
|
+
*/
|
|
16
|
+
import { buildBacklog, loadBacklog } from '../portfolio/backlog.js';
|
|
17
|
+
import { seamEndpoint } from './registry.js';
|
|
18
|
+
import { cloudGatedError } from './types.js';
|
|
19
|
+
export const BACKLOG_SEAM = {
|
|
20
|
+
id: 'backlog',
|
|
21
|
+
name: 'BacklogSource',
|
|
22
|
+
delegatesTo: 'core/portfolio/backlog.ts',
|
|
23
|
+
summary: 'Aggregate scored work items across ENROLLED repos (read-only).',
|
|
24
|
+
};
|
|
25
|
+
/** DEFAULT local impl — pass-through adapter over core/portfolio/backlog.ts. */
|
|
26
|
+
export class LocalBacklogSource {
|
|
27
|
+
load() {
|
|
28
|
+
return loadBacklog();
|
|
29
|
+
}
|
|
30
|
+
build(opts) {
|
|
31
|
+
return buildBacklog(opts);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/** GATED cloud stub — a shared team backlog WOULD live here. Throws first. */
|
|
35
|
+
export class CloudBacklogSource {
|
|
36
|
+
load() {
|
|
37
|
+
throw cloudGatedError(BACKLOG_SEAM.name, 'load');
|
|
38
|
+
}
|
|
39
|
+
build(_opts) {
|
|
40
|
+
throw cloudGatedError(BACKLOG_SEAM.name, 'build');
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
44
|
+
export function selectBacklogSource(cfg) {
|
|
45
|
+
return seamEndpoint(cfg, 'backlog') ? new CloudBacklogSource() : new LocalBacklogSource();
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=backlog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backlog.js","sourceRoot":"","sources":["../../../src/core/seams/backlog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE,SAAkB;IACtB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,2BAA2B;IACxC,OAAO,EAAE,gEAAgE;CAC1E,CAAC;AAUF,gFAAgF;AAChF,MAAM,OAAO,kBAAkB;IAC7B,IAAI;QACF,OAAO,WAAW,EAAE,CAAC;IACvB,CAAC;IACD,KAAK,CAAC,IAA2B;QAC/B,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF;AAED,8EAA8E;AAC9E,MAAM,OAAO,kBAAkB;IAC7B,IAAI;QACF,MAAM,eAAe,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IACD,KAAK,CAAC,KAA4B;QAChC,MAAM,eAAe,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;CACF;AAED,kFAAkF;AAClF,MAAM,UAAU,mBAAmB,CAAC,GAAgB;IAClD,OAAO,YAAY,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC,CAAC,IAAI,kBAAkB,EAAE,CAAC;AAC5F,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/daemon-coordinator.ts — DaemonCoordinator seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/daemon/state.ts (loadDaemonState / saveDaemonState).
|
|
5
|
+
*
|
|
6
|
+
* LOCAL = single-machine coordination (the current behavior): the daemon owns
|
|
7
|
+
* its own ~/.ashlr/daemon.json; there is no cross-machine lease/lock because
|
|
8
|
+
* there is exactly one machine. The seam also exposes a no-op lease pair so a
|
|
9
|
+
* future multi-machine coordinator is a drop-in.
|
|
10
|
+
*
|
|
11
|
+
* (a) DaemonCoordinator — the interface.
|
|
12
|
+
* (b) LocalDaemonCoordinator — DEFAULT. Behavior-preserving adapter over
|
|
13
|
+
* core/daemon/state.ts. acquireLease/releaseLease
|
|
14
|
+
* are LOCAL no-ops (single machine => always
|
|
15
|
+
* holds its own lease). ZERO behavior change.
|
|
16
|
+
* (c) CloudDaemonCoordinator — GATED stub. A multi-machine lease/lock WOULD
|
|
17
|
+
* live here; every method throws before any I/O.
|
|
18
|
+
* (d) selectDaemonCoordinator — local by default; gated stub ONLY when an
|
|
19
|
+
* endpoint is explicitly configured (refuses).
|
|
20
|
+
*
|
|
21
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
22
|
+
*/
|
|
23
|
+
import type { AshlrConfig, DaemonState } from '../types.js';
|
|
24
|
+
export declare const DAEMON_COORDINATOR_SEAM: {
|
|
25
|
+
id: "daemonCoordinator";
|
|
26
|
+
name: string;
|
|
27
|
+
delegatesTo: string;
|
|
28
|
+
summary: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Daemon state persistence + (future) cross-machine coordination.
|
|
32
|
+
*
|
|
33
|
+
* `acquireLease` returns whether this process holds the operator lease. On the
|
|
34
|
+
* LOCAL single-machine path this is always true (no contention). A cloud impl
|
|
35
|
+
* WOULD implement a real distributed lease — but that is gated and throws.
|
|
36
|
+
*/
|
|
37
|
+
export interface DaemonCoordinator {
|
|
38
|
+
/** Load the daemon state (zeroed default on missing/corrupt). */
|
|
39
|
+
load(): DaemonState;
|
|
40
|
+
/** Persist the daemon state atomically. */
|
|
41
|
+
save(s: DaemonState): void;
|
|
42
|
+
/**
|
|
43
|
+
* Acquire the operator lease. LOCAL: always true (single machine, no
|
|
44
|
+
* contention). Cloud: a real distributed lease — gated (throws).
|
|
45
|
+
*/
|
|
46
|
+
acquireLease(): boolean;
|
|
47
|
+
/** Release the operator lease. LOCAL: no-op (single machine). */
|
|
48
|
+
releaseLease(): void;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* DEFAULT local impl — single-machine coordination. State methods pass through
|
|
52
|
+
* to core/daemon/state.ts unchanged; the lease pair is a no-op because there is
|
|
53
|
+
* exactly one machine (this preserves the current single-machine semantics).
|
|
54
|
+
*/
|
|
55
|
+
export declare class LocalDaemonCoordinator implements DaemonCoordinator {
|
|
56
|
+
load(): DaemonState;
|
|
57
|
+
save(s: DaemonState): void;
|
|
58
|
+
acquireLease(): boolean;
|
|
59
|
+
releaseLease(): void;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* GATED cloud stub — a multi-machine lease/lock coordinator WOULD live here.
|
|
63
|
+
* Every method THROWS first, before any I/O. No socket, no fetch, no disk.
|
|
64
|
+
*/
|
|
65
|
+
export declare class CloudDaemonCoordinator implements DaemonCoordinator {
|
|
66
|
+
load(): DaemonState;
|
|
67
|
+
save(_s: DaemonState): void;
|
|
68
|
+
acquireLease(): boolean;
|
|
69
|
+
releaseLease(): void;
|
|
70
|
+
}
|
|
71
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
72
|
+
export declare function selectDaemonCoordinator(cfg: AshlrConfig): DaemonCoordinator;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/daemon-coordinator.ts — DaemonCoordinator seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/daemon/state.ts (loadDaemonState / saveDaemonState).
|
|
5
|
+
*
|
|
6
|
+
* LOCAL = single-machine coordination (the current behavior): the daemon owns
|
|
7
|
+
* its own ~/.ashlr/daemon.json; there is no cross-machine lease/lock because
|
|
8
|
+
* there is exactly one machine. The seam also exposes a no-op lease pair so a
|
|
9
|
+
* future multi-machine coordinator is a drop-in.
|
|
10
|
+
*
|
|
11
|
+
* (a) DaemonCoordinator — the interface.
|
|
12
|
+
* (b) LocalDaemonCoordinator — DEFAULT. Behavior-preserving adapter over
|
|
13
|
+
* core/daemon/state.ts. acquireLease/releaseLease
|
|
14
|
+
* are LOCAL no-ops (single machine => always
|
|
15
|
+
* holds its own lease). ZERO behavior change.
|
|
16
|
+
* (c) CloudDaemonCoordinator — GATED stub. A multi-machine lease/lock WOULD
|
|
17
|
+
* live here; every method throws before any I/O.
|
|
18
|
+
* (d) selectDaemonCoordinator — local by default; gated stub ONLY when an
|
|
19
|
+
* endpoint is explicitly configured (refuses).
|
|
20
|
+
*
|
|
21
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
22
|
+
*/
|
|
23
|
+
import { loadDaemonState, saveDaemonState } from '../daemon/state.js';
|
|
24
|
+
import { seamEndpoint } from './registry.js';
|
|
25
|
+
import { cloudGatedError } from './types.js';
|
|
26
|
+
export const DAEMON_COORDINATOR_SEAM = {
|
|
27
|
+
id: 'daemonCoordinator',
|
|
28
|
+
name: 'DaemonCoordinator',
|
|
29
|
+
delegatesTo: 'core/daemon/state.ts',
|
|
30
|
+
summary: 'Daemon state + coordination (LOCAL = single-machine; cloud = multi-machine lease, gated).',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* DEFAULT local impl — single-machine coordination. State methods pass through
|
|
34
|
+
* to core/daemon/state.ts unchanged; the lease pair is a no-op because there is
|
|
35
|
+
* exactly one machine (this preserves the current single-machine semantics).
|
|
36
|
+
*/
|
|
37
|
+
export class LocalDaemonCoordinator {
|
|
38
|
+
load() {
|
|
39
|
+
return loadDaemonState();
|
|
40
|
+
}
|
|
41
|
+
save(s) {
|
|
42
|
+
saveDaemonState(s);
|
|
43
|
+
}
|
|
44
|
+
acquireLease() {
|
|
45
|
+
// Single machine — this process always holds its own lease.
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
releaseLease() {
|
|
49
|
+
// Single machine — nothing to release.
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* GATED cloud stub — a multi-machine lease/lock coordinator WOULD live here.
|
|
54
|
+
* Every method THROWS first, before any I/O. No socket, no fetch, no disk.
|
|
55
|
+
*/
|
|
56
|
+
export class CloudDaemonCoordinator {
|
|
57
|
+
load() {
|
|
58
|
+
throw cloudGatedError(DAEMON_COORDINATOR_SEAM.name, 'load');
|
|
59
|
+
}
|
|
60
|
+
save(_s) {
|
|
61
|
+
throw cloudGatedError(DAEMON_COORDINATOR_SEAM.name, 'save');
|
|
62
|
+
}
|
|
63
|
+
acquireLease() {
|
|
64
|
+
throw cloudGatedError(DAEMON_COORDINATOR_SEAM.name, 'acquireLease');
|
|
65
|
+
}
|
|
66
|
+
releaseLease() {
|
|
67
|
+
throw cloudGatedError(DAEMON_COORDINATOR_SEAM.name, 'releaseLease');
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
71
|
+
export function selectDaemonCoordinator(cfg) {
|
|
72
|
+
return seamEndpoint(cfg, 'daemonCoordinator')
|
|
73
|
+
? new CloudDaemonCoordinator()
|
|
74
|
+
: new LocalDaemonCoordinator();
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=daemon-coordinator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daemon-coordinator.js","sourceRoot":"","sources":["../../../src/core/seams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CAAC,IAAI,sBAAsB,EAAE,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/genome.ts — GenomeSync seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/genome/store.ts (loadGenome / appendHubEntry / genomeHubHealth).
|
|
5
|
+
*
|
|
6
|
+
* (a) GenomeSync — the interface.
|
|
7
|
+
* (b) LocalGenomeSync — DEFAULT. Behavior-preserving adapter; delegates 1:1.
|
|
8
|
+
* Append-only + bounded + local-only (the store's own
|
|
9
|
+
* guardrails are preserved untouched).
|
|
10
|
+
* (c) CloudGenomeSync — GATED stub; every method throws before any I/O.
|
|
11
|
+
* (d) selectGenomeSync — local by default; gated stub ONLY when an endpoint
|
|
12
|
+
* is explicitly configured (still refuses).
|
|
13
|
+
*
|
|
14
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
15
|
+
*/
|
|
16
|
+
import type { AshlrConfig, GenomeEntry, GenomeHealth, LearnInput } from '../types.js';
|
|
17
|
+
export declare const GENOME_SEAM: {
|
|
18
|
+
id: "genome";
|
|
19
|
+
name: string;
|
|
20
|
+
delegatesTo: string;
|
|
21
|
+
summary: string;
|
|
22
|
+
};
|
|
23
|
+
/** Shared-memory genome load + append + health roll-up. */
|
|
24
|
+
export interface GenomeSync {
|
|
25
|
+
/** Aggregate GenomeEntry records from all local sources (bounded). */
|
|
26
|
+
load(cfg: AshlrConfig): GenomeEntry[];
|
|
27
|
+
/** Append one entry to the local hub store (append-only; returns it). */
|
|
28
|
+
append(input: LearnInput): GenomeEntry;
|
|
29
|
+
/** Hub-only health roll-up (no portfolio disk scan). */
|
|
30
|
+
hubHealth(): GenomeHealth;
|
|
31
|
+
}
|
|
32
|
+
/** DEFAULT local impl — pass-through adapter over core/genome/store.ts. */
|
|
33
|
+
export declare class LocalGenomeSync implements GenomeSync {
|
|
34
|
+
load(cfg: AshlrConfig): GenomeEntry[];
|
|
35
|
+
append(input: LearnInput): GenomeEntry;
|
|
36
|
+
hubHealth(): GenomeHealth;
|
|
37
|
+
}
|
|
38
|
+
/** GATED cloud stub — a team-synced genome WOULD live here. Throws first. */
|
|
39
|
+
export declare class CloudGenomeSync implements GenomeSync {
|
|
40
|
+
load(_cfg: AshlrConfig): GenomeEntry[];
|
|
41
|
+
append(_input: LearnInput): GenomeEntry;
|
|
42
|
+
hubHealth(): GenomeHealth;
|
|
43
|
+
}
|
|
44
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
45
|
+
export declare function selectGenomeSync(cfg: AshlrConfig): GenomeSync;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/genome.ts — GenomeSync seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/genome/store.ts (loadGenome / appendHubEntry / genomeHubHealth).
|
|
5
|
+
*
|
|
6
|
+
* (a) GenomeSync — the interface.
|
|
7
|
+
* (b) LocalGenomeSync — DEFAULT. Behavior-preserving adapter; delegates 1:1.
|
|
8
|
+
* Append-only + bounded + local-only (the store's own
|
|
9
|
+
* guardrails are preserved untouched).
|
|
10
|
+
* (c) CloudGenomeSync — GATED stub; every method throws before any I/O.
|
|
11
|
+
* (d) selectGenomeSync — local by default; gated stub ONLY when an endpoint
|
|
12
|
+
* is explicitly configured (still refuses).
|
|
13
|
+
*
|
|
14
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
15
|
+
*/
|
|
16
|
+
import { appendHubEntry, genomeHubHealth, loadGenome } from '../genome/store.js';
|
|
17
|
+
import { seamEndpoint } from './registry.js';
|
|
18
|
+
import { cloudGatedError } from './types.js';
|
|
19
|
+
export const GENOME_SEAM = {
|
|
20
|
+
id: 'genome',
|
|
21
|
+
name: 'GenomeSync',
|
|
22
|
+
delegatesTo: 'core/genome/store.ts',
|
|
23
|
+
summary: 'Shared-memory genome: load aggregated entries, append hub entries, hub health (append-only, local).',
|
|
24
|
+
};
|
|
25
|
+
/** DEFAULT local impl — pass-through adapter over core/genome/store.ts. */
|
|
26
|
+
export class LocalGenomeSync {
|
|
27
|
+
load(cfg) {
|
|
28
|
+
return loadGenome(cfg);
|
|
29
|
+
}
|
|
30
|
+
append(input) {
|
|
31
|
+
return appendHubEntry(input);
|
|
32
|
+
}
|
|
33
|
+
hubHealth() {
|
|
34
|
+
return genomeHubHealth();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** GATED cloud stub — a team-synced genome WOULD live here. Throws first. */
|
|
38
|
+
export class CloudGenomeSync {
|
|
39
|
+
load(_cfg) {
|
|
40
|
+
throw cloudGatedError(GENOME_SEAM.name, 'load');
|
|
41
|
+
}
|
|
42
|
+
append(_input) {
|
|
43
|
+
throw cloudGatedError(GENOME_SEAM.name, 'append');
|
|
44
|
+
}
|
|
45
|
+
hubHealth() {
|
|
46
|
+
throw cloudGatedError(GENOME_SEAM.name, 'hubHealth');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
50
|
+
export function selectGenomeSync(cfg) {
|
|
51
|
+
return seamEndpoint(cfg, 'genome') ? new CloudGenomeSync() : new LocalGenomeSync();
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=genome.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genome.js","sourceRoot":"","sources":["../../../src/core/seams/genome.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,QAAiB;IACrB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,sBAAsB;IACnC,OAAO,EAAE,qGAAqG;CAC/G,CAAC;AAYF,2EAA2E;AAC3E,MAAM,OAAO,eAAe;IAC1B,IAAI,CAAC,GAAgB;QACnB,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IACD,MAAM,CAAC,KAAiB;QACtB,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,SAAS;QACP,OAAO,eAAe,EAAE,CAAC;IAC3B,CAAC;CACF;AAED,6EAA6E;AAC7E,MAAM,OAAO,eAAe;IAC1B,IAAI,CAAC,IAAiB;QACpB,MAAM,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;IACD,MAAM,CAAC,MAAkB;QACvB,MAAM,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;IACD,SAAS;QACP,MAAM,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACvD,CAAC;CACF;AAED,kFAAkF;AAClF,MAAM,UAAU,gBAAgB,CAAC,GAAgB;IAC/C,OAAO,YAAY,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC;AACrF,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/identity.ts — IdentityProvider seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/integrations/identity.ts (getIdentity).
|
|
5
|
+
*
|
|
6
|
+
* LOCAL = phantom-derived identity (the current behavior): names/status only,
|
|
7
|
+
* values-free, never throws. A cloud/team identity provider WOULD authenticate
|
|
8
|
+
* against a backbone — gated.
|
|
9
|
+
*
|
|
10
|
+
* (a) IdentityProvider — the interface.
|
|
11
|
+
* (b) LocalIdentityProvider — DEFAULT. Behavior-preserving adapter over
|
|
12
|
+
* getIdentity() (phantom probe). ZERO change.
|
|
13
|
+
* (c) CloudIdentityProvider — GATED stub; throws before any I/O.
|
|
14
|
+
* (d) selectIdentityProvider — local by default; gated stub ONLY when an
|
|
15
|
+
* endpoint is explicitly configured (refuses).
|
|
16
|
+
*
|
|
17
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
18
|
+
*/
|
|
19
|
+
import type { AshlrConfig, Identity } from '../types.js';
|
|
20
|
+
export declare const IDENTITY_SEAM: {
|
|
21
|
+
id: "identity";
|
|
22
|
+
name: string;
|
|
23
|
+
delegatesTo: string;
|
|
24
|
+
summary: string;
|
|
25
|
+
};
|
|
26
|
+
/** Read-only identity snapshot provider. */
|
|
27
|
+
export interface IdentityProvider {
|
|
28
|
+
/** Return the caller's identity snapshot (names/status only). */
|
|
29
|
+
get(): Identity;
|
|
30
|
+
}
|
|
31
|
+
/** DEFAULT local impl — pass-through adapter over getIdentity() (phantom). */
|
|
32
|
+
export declare class LocalIdentityProvider implements IdentityProvider {
|
|
33
|
+
get(): Identity;
|
|
34
|
+
}
|
|
35
|
+
/** GATED cloud stub — a team identity/auth provider WOULD live here. Throws first. */
|
|
36
|
+
export declare class CloudIdentityProvider implements IdentityProvider {
|
|
37
|
+
get(): Identity;
|
|
38
|
+
}
|
|
39
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
40
|
+
export declare function selectIdentityProvider(cfg: AshlrConfig): IdentityProvider;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/identity.ts — IdentityProvider seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/integrations/identity.ts (getIdentity).
|
|
5
|
+
*
|
|
6
|
+
* LOCAL = phantom-derived identity (the current behavior): names/status only,
|
|
7
|
+
* values-free, never throws. A cloud/team identity provider WOULD authenticate
|
|
8
|
+
* against a backbone — gated.
|
|
9
|
+
*
|
|
10
|
+
* (a) IdentityProvider — the interface.
|
|
11
|
+
* (b) LocalIdentityProvider — DEFAULT. Behavior-preserving adapter over
|
|
12
|
+
* getIdentity() (phantom probe). ZERO change.
|
|
13
|
+
* (c) CloudIdentityProvider — GATED stub; throws before any I/O.
|
|
14
|
+
* (d) selectIdentityProvider — local by default; gated stub ONLY when an
|
|
15
|
+
* endpoint is explicitly configured (refuses).
|
|
16
|
+
*
|
|
17
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
18
|
+
*/
|
|
19
|
+
import { getIdentity } from '../integrations/identity.js';
|
|
20
|
+
import { seamEndpoint } from './registry.js';
|
|
21
|
+
import { cloudGatedError } from './types.js';
|
|
22
|
+
export const IDENTITY_SEAM = {
|
|
23
|
+
id: 'identity',
|
|
24
|
+
name: 'IdentityProvider',
|
|
25
|
+
delegatesTo: 'core/integrations/identity.ts',
|
|
26
|
+
summary: 'Who is the caller (LOCAL = phantom probe, values-free; cloud = team auth, gated).',
|
|
27
|
+
};
|
|
28
|
+
/** DEFAULT local impl — pass-through adapter over getIdentity() (phantom). */
|
|
29
|
+
export class LocalIdentityProvider {
|
|
30
|
+
get() {
|
|
31
|
+
return getIdentity();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/** GATED cloud stub — a team identity/auth provider WOULD live here. Throws first. */
|
|
35
|
+
export class CloudIdentityProvider {
|
|
36
|
+
get() {
|
|
37
|
+
throw cloudGatedError(IDENTITY_SEAM.name, 'get');
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
41
|
+
export function selectIdentityProvider(cfg) {
|
|
42
|
+
return seamEndpoint(cfg, 'identity') ? new CloudIdentityProvider() : new LocalIdentityProvider();
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../src/core/seams/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE,UAAmB;IACvB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,+BAA+B;IAC5C,OAAO,EAAE,mFAAmF;CAC7F,CAAC;AAQF,8EAA8E;AAC9E,MAAM,OAAO,qBAAqB;IAChC,GAAG;QACD,OAAO,WAAW,EAAE,CAAC;IACvB,CAAC;CACF;AAED,sFAAsF;AACtF,MAAM,OAAO,qBAAqB;IAChC,GAAG;QACD,MAAM,eAAe,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;CACF;AAED,kFAAkF;AAClF,MAAM,UAAU,sBAAsB,CAAC,GAAgB;IACrD,OAAO,YAAY,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,qBAAqB,EAAE,CAAC,CAAC,CAAC,IAAI,qBAAqB,EAAE,CAAC;AACnG,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/inbox.ts — InboxStore seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/inbox/store.ts (listProposals / createProposal / loadProposal
|
|
5
|
+
* / setStatus / pendingCount).
|
|
6
|
+
*
|
|
7
|
+
* (a) InboxStore — the interface.
|
|
8
|
+
* (b) LocalInboxStore — DEFAULT. Behavior-preserving adapter; delegates 1:1.
|
|
9
|
+
* Pure persistence — never applies anything (the
|
|
10
|
+
* store's own guardrail is preserved untouched).
|
|
11
|
+
* (c) CloudInboxStore — GATED stub; every method throws before any I/O.
|
|
12
|
+
* (d) selectInboxStore — local by default; gated stub ONLY when an endpoint
|
|
13
|
+
* is explicitly configured (still refuses).
|
|
14
|
+
*
|
|
15
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
16
|
+
*/
|
|
17
|
+
import type { AshlrConfig, Proposal, ProposalStatus } from '../types.js';
|
|
18
|
+
export declare const INBOX_SEAM: {
|
|
19
|
+
id: "inbox";
|
|
20
|
+
name: string;
|
|
21
|
+
delegatesTo: string;
|
|
22
|
+
summary: string;
|
|
23
|
+
};
|
|
24
|
+
/** Proposal persistence for the approval inbox. */
|
|
25
|
+
export interface InboxStore {
|
|
26
|
+
/** List proposals, most-recent first; optional status filter. */
|
|
27
|
+
list(filter?: {
|
|
28
|
+
status?: ProposalStatus;
|
|
29
|
+
}): Proposal[];
|
|
30
|
+
/** Create + persist a new pending proposal (never applies anything). */
|
|
31
|
+
create(p: Omit<Proposal, 'id' | 'status' | 'createdAt'>): Proposal;
|
|
32
|
+
/** Load one proposal by id, or null when absent/malformed. */
|
|
33
|
+
load(id: string): Proposal | null;
|
|
34
|
+
/** Persist a new status for an existing proposal (pure persistence). */
|
|
35
|
+
setStatus(id: string, status: ProposalStatus, result?: string): void;
|
|
36
|
+
/** Count proposals with status === 'pending'. */
|
|
37
|
+
pendingCount(): number;
|
|
38
|
+
}
|
|
39
|
+
/** DEFAULT local impl — pass-through adapter over core/inbox/store.ts. */
|
|
40
|
+
export declare class LocalInboxStore implements InboxStore {
|
|
41
|
+
list(filter?: {
|
|
42
|
+
status?: ProposalStatus;
|
|
43
|
+
}): Proposal[];
|
|
44
|
+
create(p: Omit<Proposal, 'id' | 'status' | 'createdAt'>): Proposal;
|
|
45
|
+
load(id: string): Proposal | null;
|
|
46
|
+
setStatus(id: string, status: ProposalStatus, result?: string): void;
|
|
47
|
+
pendingCount(): number;
|
|
48
|
+
}
|
|
49
|
+
/** GATED cloud stub — a shared team inbox WOULD live here. Throws first. */
|
|
50
|
+
export declare class CloudInboxStore implements InboxStore {
|
|
51
|
+
list(_filter?: {
|
|
52
|
+
status?: ProposalStatus;
|
|
53
|
+
}): Proposal[];
|
|
54
|
+
create(_p: Omit<Proposal, 'id' | 'status' | 'createdAt'>): Proposal;
|
|
55
|
+
load(_id: string): Proposal | null;
|
|
56
|
+
setStatus(_id: string, _status: ProposalStatus, _result?: string): void;
|
|
57
|
+
pendingCount(): number;
|
|
58
|
+
}
|
|
59
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
60
|
+
export declare function selectInboxStore(cfg: AshlrConfig): InboxStore;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/inbox.ts — InboxStore seam (M30).
|
|
3
|
+
*
|
|
4
|
+
* SEAM over core/inbox/store.ts (listProposals / createProposal / loadProposal
|
|
5
|
+
* / setStatus / pendingCount).
|
|
6
|
+
*
|
|
7
|
+
* (a) InboxStore — the interface.
|
|
8
|
+
* (b) LocalInboxStore — DEFAULT. Behavior-preserving adapter; delegates 1:1.
|
|
9
|
+
* Pure persistence — never applies anything (the
|
|
10
|
+
* store's own guardrail is preserved untouched).
|
|
11
|
+
* (c) CloudInboxStore — GATED stub; every method throws before any I/O.
|
|
12
|
+
* (d) selectInboxStore — local by default; gated stub ONLY when an endpoint
|
|
13
|
+
* is explicitly configured (still refuses).
|
|
14
|
+
*
|
|
15
|
+
* HARD SAFETY: local-first + self-hostable + cloud-gated. No new deps.
|
|
16
|
+
*/
|
|
17
|
+
import { createProposal, listProposals, loadProposal, pendingCount, setStatus, } from '../inbox/store.js';
|
|
18
|
+
import { seamEndpoint } from './registry.js';
|
|
19
|
+
import { cloudGatedError } from './types.js';
|
|
20
|
+
export const INBOX_SEAM = {
|
|
21
|
+
id: 'inbox',
|
|
22
|
+
name: 'InboxStore',
|
|
23
|
+
delegatesTo: 'core/inbox/store.ts',
|
|
24
|
+
summary: 'Approval inbox proposals — the outward-action gate (pure persistence).',
|
|
25
|
+
};
|
|
26
|
+
/** DEFAULT local impl — pass-through adapter over core/inbox/store.ts. */
|
|
27
|
+
export class LocalInboxStore {
|
|
28
|
+
list(filter) {
|
|
29
|
+
return listProposals(filter);
|
|
30
|
+
}
|
|
31
|
+
create(p) {
|
|
32
|
+
return createProposal(p);
|
|
33
|
+
}
|
|
34
|
+
load(id) {
|
|
35
|
+
return loadProposal(id);
|
|
36
|
+
}
|
|
37
|
+
setStatus(id, status, result) {
|
|
38
|
+
setStatus(id, status, result);
|
|
39
|
+
}
|
|
40
|
+
pendingCount() {
|
|
41
|
+
return pendingCount();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/** GATED cloud stub — a shared team inbox WOULD live here. Throws first. */
|
|
45
|
+
export class CloudInboxStore {
|
|
46
|
+
list(_filter) {
|
|
47
|
+
throw cloudGatedError(INBOX_SEAM.name, 'list');
|
|
48
|
+
}
|
|
49
|
+
create(_p) {
|
|
50
|
+
throw cloudGatedError(INBOX_SEAM.name, 'create');
|
|
51
|
+
}
|
|
52
|
+
load(_id) {
|
|
53
|
+
throw cloudGatedError(INBOX_SEAM.name, 'load');
|
|
54
|
+
}
|
|
55
|
+
setStatus(_id, _status, _result) {
|
|
56
|
+
throw cloudGatedError(INBOX_SEAM.name, 'setStatus');
|
|
57
|
+
}
|
|
58
|
+
pendingCount() {
|
|
59
|
+
throw cloudGatedError(INBOX_SEAM.name, 'pendingCount');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/** Local by default; gated stub only when an endpoint is configured (refuses). */
|
|
63
|
+
export function selectInboxStore(cfg) {
|
|
64
|
+
return seamEndpoint(cfg, 'inbox') ? new CloudInboxStore() : new LocalInboxStore();
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=inbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../../src/core/seams/inbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,SAAS,GACV,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAA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AC;IACzD,CAAC;CACF;AAED,kFAAkF;AAClF,MAAM,UAAU,gBAAgB,CAAC,GAAgB;IAC/C,OAAO,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC;AACpF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/index.ts — M30 seams barrel.
|
|
3
|
+
*
|
|
4
|
+
* Single import surface for the v2 cloud-ready seams. Re-exports every seam's
|
|
5
|
+
* interface + LOCAL impl + GATED cloud stub + selector, plus the registry and
|
|
6
|
+
* shared types. The TelemetrySink seam (M19) is the CANONICAL reference and is
|
|
7
|
+
* CITED via the registry — it is NOT re-exported/duplicated here.
|
|
8
|
+
*
|
|
9
|
+
* HARD SAFETY: importing this barrel performs NO I/O and activates NOTHING.
|
|
10
|
+
* Every selector returns the LOCAL impl by default; cloud stubs throw.
|
|
11
|
+
*/
|
|
12
|
+
export * from './types.js';
|
|
13
|
+
export * from './registry.js';
|
|
14
|
+
export * from './run-swarm.js';
|
|
15
|
+
export * from './backlog.js';
|
|
16
|
+
export * from './inbox.js';
|
|
17
|
+
export * from './daemon-coordinator.js';
|
|
18
|
+
export * from './genome.js';
|
|
19
|
+
export * from './portfolio.js';
|
|
20
|
+
export * from './identity.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/seams/index.ts — M30 seams barrel.
|
|
3
|
+
*
|
|
4
|
+
* Single import surface for the v2 cloud-ready seams. Re-exports every seam's
|
|
5
|
+
* interface + LOCAL impl + GATED cloud stub + selector, plus the registry and
|
|
6
|
+
* shared types. The TelemetrySink seam (M19) is the CANONICAL reference and is
|
|
7
|
+
* CITED via the registry — it is NOT re-exported/duplicated here.
|
|
8
|
+
*
|
|
9
|
+
* HARD SAFETY: importing this barrel performs NO I/O and activates NOTHING.
|
|
10
|
+
* Every selector returns the LOCAL impl by default; cloud stubs throw.
|
|
11
|
+
*/
|
|
12
|
+
export * from './types.js';
|
|
13
|
+
export * from './registry.js';
|
|
14
|
+
export * from './run-swarm.js';
|
|
15
|
+
export * from './backlog.js';
|
|
16
|
+
export * from './inbox.js';
|
|
17
|
+
export * from './daemon-coordinator.js';
|
|
18
|
+
export * from './genome.js';
|
|
19
|
+
export * from './portfolio.js';
|
|
20
|
+
export * from './identity.js';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|