wicked-crew 0.18.20 → 0.18.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/capture.d.ts +5 -2
- package/dist/api/capture.d.ts.map +1 -1
- package/dist/api/capture.js +13 -10
- package/dist/api/capture.js.map +1 -1
- package/dist/api/chat-context.d.ts +12 -0
- package/dist/api/chat-context.d.ts.map +1 -1
- package/dist/api/chat-context.js +61 -6
- package/dist/api/chat-context.js.map +1 -1
- package/dist/api/chat-freshness.js +2 -2
- package/dist/api/chat-freshness.js.map +1 -1
- package/dist/api/chat-jobs.d.ts +54 -0
- package/dist/api/chat-jobs.d.ts.map +1 -1
- package/dist/api/chat-jobs.js +199 -7
- package/dist/api/chat-jobs.js.map +1 -1
- package/dist/api/chat-proposals.d.ts +39 -6
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +161 -36
- package/dist/api/chat-proposals.js.map +1 -1
- package/dist/api/chat-requirements.d.ts.map +1 -1
- package/dist/api/chat-requirements.js +4 -1
- package/dist/api/chat-requirements.js.map +1 -1
- package/dist/api/chat-scope.d.ts +8 -0
- package/dist/api/chat-scope.d.ts.map +1 -1
- package/dist/api/chat-scope.js +26 -2
- package/dist/api/chat-scope.js.map +1 -1
- package/dist/api/cluster-status.d.ts +24 -12
- package/dist/api/cluster-status.d.ts.map +1 -1
- package/dist/api/cluster-status.js +81 -3
- package/dist/api/cluster-status.js.map +1 -1
- package/dist/api/codebase-archive.js +2 -2
- package/dist/api/codebase-archive.js.map +1 -1
- package/dist/api/delivery-cache.d.ts +2 -0
- package/dist/api/delivery-cache.d.ts.map +1 -1
- package/dist/api/delivery-cache.js +1 -2
- package/dist/api/delivery-cache.js.map +1 -1
- package/dist/api/delivery-index.d.ts +2 -2
- package/dist/api/delivery-index.d.ts.map +1 -1
- package/dist/api/delivery-index.js +1 -2
- package/dist/api/delivery-index.js.map +1 -1
- package/dist/api/eval-compare.d.ts +1 -1
- package/dist/api/eval-compare.js +1 -1
- package/dist/api/eval-sample.d.ts +7 -0
- package/dist/api/eval-sample.d.ts.map +1 -1
- package/dist/api/eval-sample.js +20 -0
- package/dist/api/eval-sample.js.map +1 -1
- package/dist/api/governance-steering.d.ts +13 -0
- package/dist/api/governance-steering.d.ts.map +1 -1
- package/dist/api/governance-steering.js +56 -7
- package/dist/api/governance-steering.js.map +1 -1
- package/dist/api/mcp.d.ts +3 -1
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +5 -2
- package/dist/api/mcp.js.map +1 -1
- package/dist/api/needs.d.ts +20 -0
- package/dist/api/needs.d.ts.map +1 -1
- package/dist/api/needs.js +120 -19
- package/dist/api/needs.js.map +1 -1
- package/dist/api/onboarding-capture.d.ts +21 -1
- package/dist/api/onboarding-capture.d.ts.map +1 -1
- package/dist/api/onboarding-capture.js +112 -8
- package/dist/api/onboarding-capture.js.map +1 -1
- package/dist/api/policy-landing.d.ts +36 -0
- package/dist/api/policy-landing.d.ts.map +1 -1
- package/dist/api/policy-landing.js +123 -4
- package/dist/api/policy-landing.js.map +1 -1
- package/dist/api/post-hoc-deliver.d.ts.map +1 -1
- package/dist/api/post-hoc-deliver.js +2 -1
- package/dist/api/post-hoc-deliver.js.map +1 -1
- package/dist/api/proposal-decisions.d.ts +44 -0
- package/dist/api/proposal-decisions.d.ts.map +1 -0
- package/dist/api/proposal-decisions.js +85 -0
- package/dist/api/proposal-decisions.js.map +1 -0
- package/dist/api/proposal-onboard.d.ts +29 -0
- package/dist/api/proposal-onboard.d.ts.map +1 -1
- package/dist/api/proposal-onboard.js +162 -11
- package/dist/api/proposal-onboard.js.map +1 -1
- package/dist/api/recording.d.ts.map +1 -1
- package/dist/api/recording.js +4 -5
- package/dist/api/recording.js.map +1 -1
- package/dist/api/redeliver.d.ts.map +1 -1
- package/dist/api/redeliver.js +11 -7
- package/dist/api/redeliver.js.map +1 -1
- package/dist/api/repo-input.d.ts.map +1 -1
- package/dist/api/repo-input.js +5 -2
- package/dist/api/repo-input.js.map +1 -1
- package/dist/api/repo-origins.d.ts +24 -0
- package/dist/api/repo-origins.d.ts.map +1 -0
- package/dist/api/repo-origins.js +71 -0
- package/dist/api/repo-origins.js.map +1 -0
- package/dist/api/requirements.d.ts +36 -1
- package/dist/api/requirements.d.ts.map +1 -1
- package/dist/api/requirements.js +73 -2
- package/dist/api/requirements.js.map +1 -1
- package/dist/api/review-change.d.ts +5 -6
- package/dist/api/review-change.d.ts.map +1 -1
- package/dist/api/review-change.js +45 -8
- package/dist/api/review-change.js.map +1 -1
- package/dist/api/routes.d.ts +33 -4
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +518 -182
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-sources.d.ts +11 -1
- package/dist/api/run-sources.d.ts.map +1 -1
- package/dist/api/run-sources.js +26 -3
- package/dist/api/run-sources.js.map +1 -1
- package/dist/api/run-timing-index.d.ts +46 -1
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +135 -1
- package/dist/api/run-timing-index.js.map +1 -1
- package/dist/api/runtime-state.d.ts +6 -0
- package/dist/api/runtime-state.d.ts.map +1 -1
- package/dist/api/runtime-state.js +14 -3
- package/dist/api/runtime-state.js.map +1 -1
- package/dist/api/seat-agents.d.ts.map +1 -1
- package/dist/api/seat-agents.js +3 -3
- package/dist/api/seat-agents.js.map +1 -1
- package/dist/api/seat-container-login.d.ts +6 -2
- package/dist/api/seat-container-login.d.ts.map +1 -1
- package/dist/api/seat-container-login.js +15 -7
- package/dist/api/seat-container-login.js.map +1 -1
- package/dist/api/seat-governance.d.ts +3 -2
- package/dist/api/seat-governance.d.ts.map +1 -1
- package/dist/api/seat-governance.js +31 -9
- package/dist/api/seat-governance.js.map +1 -1
- package/dist/api/seat-standing.d.ts +8 -0
- package/dist/api/seat-standing.d.ts.map +1 -1
- package/dist/api/seat-standing.js +26 -1
- package/dist/api/seat-standing.js.map +1 -1
- package/dist/api/server.d.ts +7 -0
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +93 -39
- package/dist/api/server.js.map +1 -1
- package/dist/api/start-on-login.d.ts +4 -0
- package/dist/api/start-on-login.d.ts.map +1 -0
- package/dist/api/start-on-login.js +35 -0
- package/dist/api/start-on-login.js.map +1 -0
- package/dist/api/steering-landing.d.ts +33 -8
- package/dist/api/steering-landing.d.ts.map +1 -1
- package/dist/api/steering-landing.js +235 -51
- package/dist/api/steering-landing.js.map +1 -1
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +5 -3
- package/dist/api/system-snapshot.js.map +1 -1
- package/dist/api/worktree-sweep.d.ts +7 -3
- package/dist/api/worktree-sweep.d.ts.map +1 -1
- package/dist/api/worktree-sweep.js +10 -6
- package/dist/api/worktree-sweep.js.map +1 -1
- package/dist/apps/exec/recall.d.ts.map +1 -1
- package/dist/apps/exec/recall.js +4 -4
- package/dist/apps/exec/recall.js.map +1 -1
- package/dist/apps/git.js +2 -2
- package/dist/apps/git.js.map +1 -1
- package/dist/apps/publish/manifest.d.ts +2 -0
- package/dist/apps/publish/manifest.d.ts.map +1 -1
- package/dist/apps/publish/manifest.js +8 -3
- package/dist/apps/publish/manifest.js.map +1 -1
- package/dist/apps/publish/run.d.ts +11 -1
- package/dist/apps/publish/run.d.ts.map +1 -1
- package/dist/apps/publish/run.js +97 -17
- package/dist/apps/publish/run.js.map +1 -1
- package/dist/apps/routes.d.ts +2 -0
- package/dist/apps/routes.d.ts.map +1 -1
- package/dist/apps/routes.js +45 -2
- package/dist/apps/routes.js.map +1 -1
- package/dist/apps/store.d.ts +24 -3
- package/dist/apps/store.d.ts.map +1 -1
- package/dist/apps/store.js +26 -9
- package/dist/apps/store.js.map +1 -1
- package/dist/apps/turns.d.ts +25 -2
- package/dist/apps/turns.d.ts.map +1 -1
- package/dist/apps/turns.js +276 -11
- package/dist/apps/turns.js.map +1 -1
- package/dist/apps-server/runners/sqlite-runner.mjs +39 -1
- package/dist/apps-server/server/lib/bundle/server.mjs +113 -13
- package/dist/core/adapter.d.ts +23 -8
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +59 -26
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/ado-deliver-helper.d.ts +2 -1
- package/dist/core/ado-deliver-helper.d.ts.map +1 -1
- package/dist/core/ado-deliver-helper.js +26 -1
- package/dist/core/ado-deliver-helper.js.map +1 -1
- package/dist/core/assurance.d.ts +10 -0
- package/dist/core/assurance.d.ts.map +1 -1
- package/dist/core/assurance.js +23 -0
- package/dist/core/assurance.js.map +1 -1
- package/dist/core/deliver-text.d.ts +2 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +1 -0
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts +43 -1
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +131 -3
- package/dist/core/deliver.js.map +1 -1
- package/dist/core/estate-mcp-client.d.ts.map +1 -1
- package/dist/core/estate-mcp-client.js +4 -8
- package/dist/core/estate-mcp-client.js.map +1 -1
- package/dist/core/exec.d.ts +24 -0
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +45 -2
- package/dist/core/exec.js.map +1 -1
- package/dist/core/linked-issues.d.ts +13 -2
- package/dist/core/linked-issues.d.ts.map +1 -1
- package/dist/core/linked-issues.js +135 -4
- package/dist/core/linked-issues.js.map +1 -1
- package/dist/core/redeliver.js +2 -2
- package/dist/core/redeliver.js.map +1 -1
- package/dist/core/repo-clone.d.ts +64 -0
- package/dist/core/repo-clone.d.ts.map +1 -0
- package/dist/core/repo-clone.js +306 -0
- package/dist/core/repo-clone.js.map +1 -0
- package/dist/core/run-identity.d.ts.map +1 -1
- package/dist/core/run-identity.js +3 -0
- package/dist/core/run-identity.js.map +1 -1
- package/dist/core/run-read-lane.d.ts +30 -0
- package/dist/core/run-read-lane.d.ts.map +1 -0
- package/dist/core/run-read-lane.js +103 -0
- package/dist/core/run-read-lane.js.map +1 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/core/walkthrough-root.d.ts.map +1 -1
- package/dist/core/walkthrough-root.js +3 -5
- package/dist/core/walkthrough-root.js.map +1 -1
- package/dist/core/wicked-home.d.ts +9 -0
- package/dist/core/wicked-home.d.ts.map +1 -0
- package/dist/core/wicked-home.js +25 -0
- package/dist/core/wicked-home.js.map +1 -0
- package/dist/decisions/consider.d.ts +2 -1
- package/dist/decisions/consider.d.ts.map +1 -1
- package/dist/decisions/consider.js +2 -2
- package/dist/decisions/consider.js.map +1 -1
- package/dist/decisions/land.d.ts +2 -0
- package/dist/decisions/land.d.ts.map +1 -1
- package/dist/decisions/land.js +16 -3
- package/dist/decisions/land.js.map +1 -1
- package/dist/decisions/rules-brief.d.ts +2 -1
- package/dist/decisions/rules-brief.d.ts.map +1 -1
- package/dist/decisions/rules-brief.js +3 -2
- package/dist/decisions/rules-brief.js.map +1 -1
- package/dist/editors/conformance-runtime.d.ts +0 -2
- package/dist/editors/conformance-runtime.d.ts.map +1 -1
- package/dist/editors/conformance-runtime.js +0 -4
- package/dist/editors/conformance-runtime.js.map +1 -1
- package/dist/editors/pack-install.d.ts +11 -15
- package/dist/editors/pack-install.d.ts.map +1 -1
- package/dist/editors/pack-install.js +51 -65
- package/dist/editors/pack-install.js.map +1 -1
- package/dist/editors/registry.d.ts +26 -12
- package/dist/editors/registry.d.ts.map +1 -1
- package/dist/editors/registry.js +35 -15
- package/dist/editors/registry.js.map +1 -1
- package/dist/editors/visuals.d.ts +4 -3
- package/dist/editors/visuals.d.ts.map +1 -1
- package/dist/editors/visuals.js +17 -7
- package/dist/editors/visuals.js.map +1 -1
- package/dist/evals/runner.js +1 -1
- package/dist/evals/runner.js.map +1 -1
- package/dist/evals/shape.d.ts +7 -1
- package/dist/evals/shape.d.ts.map +1 -1
- package/dist/evals/shape.js +26 -6
- package/dist/evals/shape.js.map +1 -1
- package/dist/evals/workflow.d.ts +16 -3
- package/dist/evals/workflow.d.ts.map +1 -1
- package/dist/evals/workflow.js +31 -6
- package/dist/evals/workflow.js.map +1 -1
- package/dist/insights/review-service.d.ts +24 -3
- package/dist/insights/review-service.d.ts.map +1 -1
- package/dist/insights/review-service.js +75 -12
- package/dist/insights/review-service.js.map +1 -1
- package/dist/insights/routes.d.ts +2 -1
- package/dist/insights/routes.d.ts.map +1 -1
- package/dist/insights/routes.js +19 -4
- package/dist/insights/routes.js.map +1 -1
- package/dist/insights/run-facts.d.ts +5 -0
- package/dist/insights/run-facts.d.ts.map +1 -1
- package/dist/insights/run-facts.js +15 -0
- package/dist/insights/run-facts.js.map +1 -1
- package/dist/insights/workflow.d.ts +2 -1
- package/dist/insights/workflow.d.ts.map +1 -1
- package/dist/insights/workflow.js +4 -4
- package/dist/insights/workflow.js.map +1 -1
- package/dist/inspect/service.d.ts +3 -2
- package/dist/inspect/service.d.ts.map +1 -1
- package/dist/inspect/service.js +4 -4
- package/dist/inspect/service.js.map +1 -1
- package/dist/interactive/bridge-pool.d.ts.map +1 -1
- package/dist/interactive/bridge-pool.js +6 -4
- package/dist/interactive/bridge-pool.js.map +1 -1
- package/dist/interactive/chat-events.d.ts.map +1 -1
- package/dist/interactive/chat-events.js +7 -1
- package/dist/interactive/chat-events.js.map +1 -1
- package/dist/interactive/draft-events.d.ts +3 -0
- package/dist/interactive/draft-events.d.ts.map +1 -1
- package/dist/interactive/draft-events.js +5 -8
- package/dist/interactive/draft-events.js.map +1 -1
- package/dist/interactive/draft-skill.d.ts +56 -3
- package/dist/interactive/draft-skill.d.ts.map +1 -1
- package/dist/interactive/draft-skill.js +129 -20
- package/dist/interactive/draft-skill.js.map +1 -1
- package/dist/interactive/landing-guard.d.ts +30 -5
- package/dist/interactive/landing-guard.d.ts.map +1 -1
- package/dist/interactive/landing-guard.js +121 -5
- package/dist/interactive/landing-guard.js.map +1 -1
- package/dist/interactive/proposal-create.d.ts.map +1 -1
- package/dist/interactive/proposal-create.js +1 -0
- package/dist/interactive/proposal-create.js.map +1 -1
- package/dist/interactive/proposal-refine.d.ts.map +1 -1
- package/dist/interactive/proposal-refine.js +16 -1
- package/dist/interactive/proposal-refine.js.map +1 -1
- package/dist/interactive/review-events.js +1 -1
- package/dist/interactive/review-events.js.map +1 -1
- package/dist/interactive/run-units.d.ts.map +1 -1
- package/dist/interactive/run-units.js +3 -2
- package/dist/interactive/run-units.js.map +1 -1
- package/dist/interactive/source-packet.d.ts +8 -0
- package/dist/interactive/source-packet.d.ts.map +1 -1
- package/dist/interactive/source-packet.js +47 -6
- package/dist/interactive/source-packet.js.map +1 -1
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts +21 -1
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -1
- package/dist/knowledge/adapters/toolbox/supervisor.js +76 -26
- package/dist/knowledge/adapters/toolbox/supervisor.js.map +1 -1
- package/dist/knowledge/estate-write.d.ts +5 -0
- package/dist/knowledge/estate-write.d.ts.map +1 -1
- package/dist/knowledge/estate-write.js +7 -0
- package/dist/knowledge/estate-write.js.map +1 -1
- package/dist/knowledge/projector.d.ts +60 -5
- package/dist/knowledge/projector.d.ts.map +1 -1
- package/dist/knowledge/projector.js +264 -21
- package/dist/knowledge/projector.js.map +1 -1
- package/dist/knowledge/shapes/map.d.ts.map +1 -1
- package/dist/knowledge/shapes/map.js +12 -2
- package/dist/knowledge/shapes/map.js.map +1 -1
- package/dist/knowledge/shapes/routes.d.ts +1 -1
- package/dist/knowledge/shapes/routes.d.ts.map +1 -1
- package/dist/knowledge/shapes/routes.js +42 -16
- package/dist/knowledge/shapes/routes.js.map +1 -1
- package/dist/knowledge/shapes/shapes.d.ts +60 -13
- package/dist/knowledge/shapes/shapes.d.ts.map +1 -1
- package/dist/knowledge/shapes/shapes.js +199 -31
- package/dist/knowledge/shapes/shapes.js.map +1 -1
- package/dist/knowledge/shapes/verified.d.ts.map +1 -1
- package/dist/knowledge/shapes/verified.js +3 -2
- package/dist/knowledge/shapes/verified.js.map +1 -1
- package/dist/knowledge/trackers/addresses.d.ts +27 -3
- package/dist/knowledge/trackers/addresses.d.ts.map +1 -1
- package/dist/knowledge/trackers/addresses.js +33 -5
- package/dist/knowledge/trackers/addresses.js.map +1 -1
- package/dist/knowledge/trackers/gate-pm.d.ts.map +1 -1
- package/dist/knowledge/trackers/gate-pm.js +4 -2
- package/dist/knowledge/trackers/gate-pm.js.map +1 -1
- package/dist/knowledge/trackers/projector.d.ts +3 -1
- package/dist/knowledge/trackers/projector.d.ts.map +1 -1
- package/dist/knowledge/trackers/projector.js +59 -8
- package/dist/knowledge/trackers/projector.js.map +1 -1
- package/dist/learn/scheduler.d.ts.map +1 -1
- package/dist/learn/scheduler.js +11 -2
- package/dist/learn/scheduler.js.map +1 -1
- package/dist/learnings/extract.d.ts +9 -3
- package/dist/learnings/extract.d.ts.map +1 -1
- package/dist/learnings/extract.js +62 -4
- package/dist/learnings/extract.js.map +1 -1
- package/dist/learnings/replacement-lineage.d.ts +3 -2
- package/dist/learnings/replacement-lineage.d.ts.map +1 -1
- package/dist/learnings/replacement-lineage.js +7 -6
- package/dist/learnings/replacement-lineage.js.map +1 -1
- package/dist/learnings/service.d.ts +12 -2
- package/dist/learnings/service.d.ts.map +1 -1
- package/dist/learnings/service.js +30 -5
- package/dist/learnings/service.js.map +1 -1
- package/dist/mcp/broker.d.ts.map +1 -1
- package/dist/mcp/broker.js +18 -4
- package/dist/mcp/broker.js.map +1 -1
- package/dist/mcp/estate-relay.d.ts +3 -0
- package/dist/mcp/estate-relay.d.ts.map +1 -1
- package/dist/mcp/estate-relay.js +5 -2
- package/dist/mcp/estate-relay.js.map +1 -1
- package/dist/mcp/invoke.js +2 -2
- package/dist/mcp/invoke.js.map +1 -1
- package/dist/mcp/redact.d.ts +1 -1
- package/dist/mcp/redact.d.ts.map +1 -1
- package/dist/mcp/redact.js +61 -4
- package/dist/mcp/redact.js.map +1 -1
- package/dist/mcp/registry-store.d.ts +25 -0
- package/dist/mcp/registry-store.d.ts.map +1 -1
- package/dist/mcp/registry-store.js +33 -0
- package/dist/mcp/registry-store.js.map +1 -1
- package/dist/mcp/registry.d.ts +25 -1
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +84 -5
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/rest.js +3 -3
- package/dist/mcp/rest.js.map +1 -1
- package/dist/mcp/run-fence.d.ts +2 -0
- package/dist/mcp/run-fence.d.ts.map +1 -1
- package/dist/mcp/run-fence.js +9 -0
- package/dist/mcp/run-fence.js.map +1 -1
- package/dist/mcp/upstream-error.d.ts +5 -1
- package/dist/mcp/upstream-error.d.ts.map +1 -1
- package/dist/mcp/upstream-error.js +5 -1
- package/dist/mcp/upstream-error.js.map +1 -1
- package/dist/projects/graph.d.ts +6 -4
- package/dist/projects/graph.d.ts.map +1 -1
- package/dist/projects/graph.js +173 -25
- package/dist/projects/graph.js.map +1 -1
- package/dist/projects/routes.d.ts +7 -1
- package/dist/projects/routes.d.ts.map +1 -1
- package/dist/projects/routes.js +13 -5
- package/dist/projects/routes.js.map +1 -1
- package/dist/projects/state-home-preflight.d.ts +5 -0
- package/dist/projects/state-home-preflight.d.ts.map +1 -1
- package/dist/projects/state-home-preflight.js +48 -8
- package/dist/projects/state-home-preflight.js.map +1 -1
- package/dist/projects/state-home-registry.d.ts.map +1 -1
- package/dist/projects/state-home-registry.js +6 -0
- package/dist/projects/state-home-registry.js.map +1 -1
- package/dist/projects/state-home.d.ts +6 -2
- package/dist/projects/state-home.d.ts.map +1 -1
- package/dist/projects/state-home.js +8 -5
- package/dist/projects/state-home.js.map +1 -1
- package/dist/qe/test-sets.d.ts +1 -1
- package/dist/qe/test-sets.d.ts.map +1 -1
- package/dist/qe/test-sets.js +2 -2
- package/dist/qe/test-sets.js.map +1 -1
- package/dist/schedules/routes.d.ts +5 -0
- package/dist/schedules/routes.d.ts.map +1 -1
- package/dist/schedules/routes.js +32 -5
- package/dist/schedules/routes.js.map +1 -1
- package/dist/schedules/scheduler.d.ts +8 -1
- package/dist/schedules/scheduler.d.ts.map +1 -1
- package/dist/schedules/scheduler.js +10 -1
- package/dist/schedules/scheduler.js.map +1 -1
- package/dist/schedules/store.d.ts +7 -0
- package/dist/schedules/store.d.ts.map +1 -1
- package/dist/schedules/store.js +19 -4
- package/dist/schedules/store.js.map +1 -1
- package/dist/skills/plugin-source.js +4 -4
- package/dist/skills/plugin-source.js.map +1 -1
- package/dist/sources/drivers/sqlite.d.ts +13 -0
- package/dist/sources/drivers/sqlite.d.ts.map +1 -1
- package/dist/sources/drivers/sqlite.js +11 -0
- package/dist/sources/drivers/sqlite.js.map +1 -1
- package/dist/sources/routes.d.ts.map +1 -1
- package/dist/sources/routes.js +1 -0
- package/dist/sources/routes.js.map +1 -1
- package/dist/sources/uploads.d.ts +22 -2
- package/dist/sources/uploads.d.ts.map +1 -1
- package/dist/sources/uploads.js +108 -10
- package/dist/sources/uploads.js.map +1 -1
- package/dist/standing-orders/parse.d.ts +8 -0
- package/dist/standing-orders/parse.d.ts.map +1 -1
- package/dist/standing-orders/parse.js +52 -5
- package/dist/standing-orders/parse.js.map +1 -1
- package/dist/studio/apps-standalone/fixture.js +3 -3
- package/dist/studio/assets/{KnowledgeGraph-dfq7Flyj.js → KnowledgeGraph-yP4WsnST.js} +1 -1
- package/dist/studio/assets/index-DNaLjJ7M.css +32 -0
- package/dist/studio/assets/index-DW53FKuT.js +1114 -0
- package/dist/studio/editors/wicked-apps/editor.json +1 -1
- package/dist/studio/editors/wicked-apps/index.html +1 -1
- package/dist/studio/editors/wicked-deck/editor.json +1 -1
- package/dist/studio/editors/wicked-deck/index.html +1 -1
- package/dist/studio/editors/wicked-doc/editor.json +1 -1
- package/dist/studio/editors/wicked-doc/index.html +1 -1
- package/dist/studio/editors/wicked-insights/editor.json +1 -1
- package/dist/studio/editors/wicked-insights/index.html +1 -1
- package/dist/studio/editors/wicked-page/editor.json +1 -1
- package/dist/studio/editors/wicked-page/index.html +1 -1
- package/dist/studio/editors/wicked-video/editor.json +1 -1
- package/dist/studio/editors/wicked-video/index.html +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/studio/testid-inventory.json +1125 -208
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +2 -1
- package/dist/team/routes.js.map +1 -1
- package/dist/voice/tts.d.ts +12 -0
- package/dist/voice/tts.d.ts.map +1 -1
- package/dist/voice/tts.js +118 -28
- package/dist/voice/tts.js.map +1 -1
- package/dist/workflow-catalog/build-v2.d.ts +34 -0
- package/dist/workflow-catalog/build-v2.d.ts.map +1 -1
- package/dist/workflow-catalog/build-v2.js +131 -10
- package/dist/workflow-catalog/build-v2.js.map +1 -1
- package/dist/workflow-catalog/catalog-data.d.ts.map +1 -1
- package/dist/workflow-catalog/catalog-data.js +0 -2
- package/dist/workflow-catalog/catalog-data.js.map +1 -1
- package/dist/workflow-catalog/detect.d.ts +18 -3
- package/dist/workflow-catalog/detect.d.ts.map +1 -1
- package/dist/workflow-catalog/detect.js +43 -8
- package/dist/workflow-catalog/detect.js.map +1 -1
- package/dist/working-doc/event-lines.d.ts +5 -2
- package/dist/working-doc/event-lines.d.ts.map +1 -1
- package/dist/working-doc/event-lines.js +38 -7
- package/dist/working-doc/event-lines.js.map +1 -1
- package/dist/working-doc/sections.d.ts +3 -0
- package/dist/working-doc/sections.d.ts.map +1 -1
- package/dist/working-doc/sections.js +5 -0
- package/dist/working-doc/sections.js.map +1 -1
- package/dist/working-doc/service.d.ts +23 -3
- package/dist/working-doc/service.d.ts.map +1 -1
- package/dist/working-doc/service.js +93 -54
- package/dist/working-doc/service.js.map +1 -1
- package/endpoint-manifest.json +60 -3
- package/evals/corpora/shape-v1.json +25 -1
- package/evals/corpora/shape-v1.seat-fixture.json +25 -1
- package/package.json +4 -4
- package/runners/sqlite-runner.mjs +39 -1
- package/dist/studio/assets/index-Bame65hj.js +0 -1108
- package/dist/studio/assets/index-CtB1BJRI.css +0 -32
package/endpoint-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"apiTypesVersion": "0.
|
|
3
|
+
"apiTypesVersion": "0.224.0",
|
|
4
4
|
"endpoints": [
|
|
5
5
|
{
|
|
6
6
|
"method": "GET",
|
|
@@ -1003,6 +1003,19 @@
|
|
|
1003
1003
|
200
|
|
1004
1004
|
]
|
|
1005
1005
|
},
|
|
1006
|
+
{
|
|
1007
|
+
"method": "POST",
|
|
1008
|
+
"path": "/api/v1/knowledge/forget",
|
|
1009
|
+
"requestType": "ForgetKnowledgeBody",
|
|
1010
|
+
"responseType": "ForgetKnowledgeResponse",
|
|
1011
|
+
"statusCodes": [
|
|
1012
|
+
200,
|
|
1013
|
+
400,
|
|
1014
|
+
409,
|
|
1015
|
+
501,
|
|
1016
|
+
502
|
|
1017
|
+
]
|
|
1018
|
+
},
|
|
1006
1019
|
{
|
|
1007
1020
|
"method": "GET",
|
|
1008
1021
|
"path": "/api/v1/knowledge/map",
|
|
@@ -1424,6 +1437,7 @@
|
|
|
1424
1437
|
"statusCodes": [
|
|
1425
1438
|
200,
|
|
1426
1439
|
400,
|
|
1440
|
+
501,
|
|
1427
1441
|
502
|
|
1428
1442
|
]
|
|
1429
1443
|
},
|
|
@@ -1452,6 +1466,19 @@
|
|
|
1452
1466
|
502
|
|
1453
1467
|
]
|
|
1454
1468
|
},
|
|
1469
|
+
{
|
|
1470
|
+
"method": "POST",
|
|
1471
|
+
"path": "/api/v1/memory/erase-item",
|
|
1472
|
+
"requestType": "EraseMemoryItemBody",
|
|
1473
|
+
"responseType": "RetireMemoryResponse",
|
|
1474
|
+
"statusCodes": [
|
|
1475
|
+
200,
|
|
1476
|
+
400,
|
|
1477
|
+
404,
|
|
1478
|
+
501,
|
|
1479
|
+
502
|
|
1480
|
+
]
|
|
1481
|
+
},
|
|
1455
1482
|
{
|
|
1456
1483
|
"method": "POST",
|
|
1457
1484
|
"path": "/api/v1/memory/retire",
|
|
@@ -1467,7 +1494,20 @@
|
|
|
1467
1494
|
"method": "POST",
|
|
1468
1495
|
"path": "/api/v1/memory/retire-item",
|
|
1469
1496
|
"requestType": "RetireMemoryItemBody",
|
|
1470
|
-
"responseType": "
|
|
1497
|
+
"responseType": "RetireMemoryItemResponse",
|
|
1498
|
+
"statusCodes": [
|
|
1499
|
+
200,
|
|
1500
|
+
400,
|
|
1501
|
+
404,
|
|
1502
|
+
501,
|
|
1503
|
+
502
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"method": "POST",
|
|
1508
|
+
"path": "/api/v1/memory/unretire",
|
|
1509
|
+
"requestType": "UnretireMemoryBody",
|
|
1510
|
+
"responseType": "UnretireMemoryResponse",
|
|
1471
1511
|
"statusCodes": [
|
|
1472
1512
|
200,
|
|
1473
1513
|
400,
|
|
@@ -2082,6 +2122,13 @@
|
|
|
2082
2122
|
"responseType": null,
|
|
2083
2123
|
"statusCodes": []
|
|
2084
2124
|
},
|
|
2125
|
+
{
|
|
2126
|
+
"method": "POST",
|
|
2127
|
+
"path": "/api/v1/repos/:id/requirements/:key/retire",
|
|
2128
|
+
"requestType": null,
|
|
2129
|
+
"responseType": null,
|
|
2130
|
+
"statusCodes": []
|
|
2131
|
+
},
|
|
2085
2132
|
{
|
|
2086
2133
|
"method": "PUT",
|
|
2087
2134
|
"path": "/api/v1/repos/:id/requirements/minimum",
|
|
@@ -2752,10 +2799,11 @@
|
|
|
2752
2799
|
{
|
|
2753
2800
|
"method": "POST",
|
|
2754
2801
|
"path": "/api/v1/schedules/:id/run",
|
|
2755
|
-
"requestType":
|
|
2802
|
+
"requestType": "ScheduleRunBody",
|
|
2756
2803
|
"responseType": "ScheduleRunResponse",
|
|
2757
2804
|
"statusCodes": [
|
|
2758
2805
|
200,
|
|
2806
|
+
400,
|
|
2759
2807
|
403,
|
|
2760
2808
|
404,
|
|
2761
2809
|
409,
|
|
@@ -2849,6 +2897,15 @@
|
|
|
2849
2897
|
"responseType": null,
|
|
2850
2898
|
"statusCodes": []
|
|
2851
2899
|
},
|
|
2900
|
+
{
|
|
2901
|
+
"method": "GET",
|
|
2902
|
+
"path": "/api/v1/settings/start-on-login",
|
|
2903
|
+
"requestType": null,
|
|
2904
|
+
"responseType": "StartOnLoginStatus",
|
|
2905
|
+
"statusCodes": [
|
|
2906
|
+
200
|
|
2907
|
+
]
|
|
2908
|
+
},
|
|
2852
2909
|
{
|
|
2853
2910
|
"method": "GET",
|
|
2854
2911
|
"path": "/api/v1/setup/known",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "DES-CATALOG-002 §9 detection corpus v1 (synthetic, real-looking; no client content). expect.card[:option] is the shape a person would launch; expect.ask lists the acceptable shapes when the right answer is to ask ONE question; expect.coming names a coming card and expect.nearest the card offered today. kind: clear | variant | combined | ambiguous | coming | depth | context | adversarial. expect.depth is scored apart (depth is a brief line, never a plan change). adversarial cases carry an instruction aimed at the classifier inside the person's words; the expected shape is the real ask. The nearest card for a coming card is catalog data (catalog-data-v2.ts `nearest`), not a detection output. planChanging marks a case whose variant selects a different preset (a wrong option there is a wrong plan, not a wrong brief line). Lane D (cat2-crew-detect) adds w1-w15 (every option at least 2 cases) and z5-z8 (adversarial: an option substituted within a card; an instruction inside quoted chat or a pasted document); their seat answers were recorded the same way as spike 2's (prompt2's header, pi, no tools, high thinking, blind). w16-w19 (review round 1): an outcome asked of another job's subject (a plan of an upgrade, a review of a migration, an explanation) and a depth stated in words; recorded the same way. w20 (review round 2): a plan asked of a review, recorded the same way. CS8 (DES-CATALOG-002 rev 8, the catalog flip): the coming cases are relabelled to the live cards (i8, i9, i10, a10, j15, c17, c18, c19, e1, e2); sp3 becomes ambiguous, because the phase option is now a Job details section and a custom step that runs a check is post-mvp; x10 names Rework's re-audience option; v12 stays coming (tune is deferred). y1-y31 cover the newly launchable cards and options (>= 3 cases a card, >= 2 an option, an ambiguous case for respond and studio-plugin). Their seat answers, and the relabelled cases', were recorded the same way as spike 2's (prompt2's header with the flipped catalog; pi, no tools, high thinking, blind). rc1-rc8 (fix-catalog, e2e-1105 CJ7): a cost question routes to the run cost model, not to the work it names; rc6 and rc7 keep a bug whose subject is a cost a bug, and rc8 keeps past spend with Review recent work.",
|
|
2
|
+
"$comment": "DES-CATALOG-002 §9 detection corpus v1 (synthetic, real-looking; no client content). expect.card[:option] is the shape a person would launch; expect.ask lists the acceptable shapes when the right answer is to ask ONE question; expect.coming names a coming card and expect.nearest the card offered today. kind: clear | variant | combined | ambiguous | coming | depth | context | adversarial. expect.depth is scored apart (depth is a brief line, never a plan change). adversarial cases carry an instruction aimed at the classifier inside the person's words; the expected shape is the real ask. The nearest card for a coming card is catalog data (catalog-data-v2.ts `nearest`), not a detection output. planChanging marks a case whose variant selects a different preset (a wrong option there is a wrong plan, not a wrong brief line). Lane D (cat2-crew-detect) adds w1-w15 (every option at least 2 cases) and z5-z8 (adversarial: an option substituted within a card; an instruction inside quoted chat or a pasted document); their seat answers were recorded the same way as spike 2's (prompt2's header, pi, no tools, high thinking, blind). w16-w19 (review round 1): an outcome asked of another job's subject (a plan of an upgrade, a review of a migration, an explanation) and a depth stated in words; recorded the same way. w20 (review round 2): a plan asked of a review, recorded the same way. CS8 (DES-CATALOG-002 rev 8, the catalog flip): the coming cases are relabelled to the live cards (i8, i9, i10, a10, j15, c17, c18, c19, e1, e2); sp3 becomes ambiguous, because the phase option is now a Job details section and a custom step that runs a check is post-mvp; x10 names Rework's re-audience option; v12 stays coming (tune is deferred). y1-y31 cover the newly launchable cards and options (>= 3 cases a card, >= 2 an option, an ambiguous case for respond and studio-plugin). Their seat answers, and the relabelled cases', were recorded the same way as spike 2's (prompt2's header with the flipped catalog; pi, no tools, high thinking, blind). rc1-rc8 (fix-catalog, e2e-1105 CJ7): a cost question routes to the run cost model, not to the work it names; rc6 and rc7 keep a bug whose subject is a cost a bug, and rc8 keeps past spend with Review recent work. rc9-rc11 (crew#1452): rc9 asks the price of new work in cost words (Estimate and price, not the run cost model); rc10 gives past spend as context after a forecast question (still the run cost model); rc11 is a run cost ask a seat was unsure of.",
|
|
3
3
|
"cases": [
|
|
4
4
|
{
|
|
5
5
|
"id": "p1",
|
|
@@ -2108,6 +2108,30 @@
|
|
|
2108
2108
|
"expect": {
|
|
2109
2109
|
"card": "review-recent-work"
|
|
2110
2110
|
}
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
"id": "rc9",
|
|
2114
|
+
"kind": "clear",
|
|
2115
|
+
"text": "How much would it cost to build a checkout page?",
|
|
2116
|
+
"expect": {
|
|
2117
|
+
"card": "estimate-price"
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"id": "rc10",
|
|
2122
|
+
"kind": "clear",
|
|
2123
|
+
"text": "What would 40 bug fixes a month cost? Use last month as the baseline.",
|
|
2124
|
+
"expect": {
|
|
2125
|
+
"card": "run-cost"
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
"id": "rc11",
|
|
2130
|
+
"kind": "clear",
|
|
2131
|
+
"text": "Model our monthly run cost budget",
|
|
2132
|
+
"expect": {
|
|
2133
|
+
"card": "run-cost"
|
|
2134
|
+
}
|
|
2111
2135
|
}
|
|
2112
2136
|
]
|
|
2113
2137
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$comment": "DES-CATALOG-002 §9.2: the recorded seat-answer fixture for the shape corpus. Spike 2 (§9.3): pi, no tools, high thinking, blind to the labels, the classify digest and anchors with the words as <request> data (design lanes/catalog-v2-design/spike/prompt2.txt); each value is that seat's one-line answer, verbatim. CI runs the corpus through crew's shipped words layer, validator, cross-check and bands with these answers: deterministic and model-free. The live numbers are the integrator's (run-evals with the real chat seat on the rig). Lane D's w1-w15 and z5-z8 were answered the same way (the spike-2 prompt's header with only those requests; pi, no tools, high thinking, blind), recorded verbatim. w16-w19 likewise (review round 1). w20 likewise (review round 2). CS8 (the catalog flip): the relabelled cases (i8, i9, i10, a10, j15, c17, c18, c19, e1, e2, sp3, x10) and the new y1-y31 were answered the same way against the flipped catalog (prompt2's header, the live cards with their options, those requests only; pi, no tools, high thinking, blind), recorded verbatim; the earlier answers for those twelve ids are replaced. rc1-rc8 (fix-catalog) are NOT blind recordings: rc1-rc4 hold the noun reading (the work named, not the cost) that a New chat seat gave on the rig in e2e-1105 CJ7, as the worst case; rc5-rc8 hold a seat that read the request right.",
|
|
2
|
+
"$comment": "DES-CATALOG-002 §9.2: the recorded seat-answer fixture for the shape corpus. Spike 2 (§9.3): pi, no tools, high thinking, blind to the labels, the classify digest and anchors with the words as <request> data (design lanes/catalog-v2-design/spike/prompt2.txt); each value is that seat's one-line answer, verbatim. CI runs the corpus through crew's shipped words layer, validator, cross-check and bands with these answers: deterministic and model-free. The live numbers are the integrator's (run-evals with the real chat seat on the rig). Lane D's w1-w15 and z5-z8 were answered the same way (the spike-2 prompt's header with only those requests; pi, no tools, high thinking, blind), recorded verbatim. w16-w19 likewise (review round 1). w20 likewise (review round 2). CS8 (the catalog flip): the relabelled cases (i8, i9, i10, a10, j15, c17, c18, c19, e1, e2, sp3, x10) and the new y1-y31 were answered the same way against the flipped catalog (prompt2's header, the live cards with their options, those requests only; pi, no tools, high thinking, blind), recorded verbatim; the earlier answers for those twelve ids are replaced. rc1-rc8 (fix-catalog) are NOT blind recordings: rc1-rc4 hold the noun reading (the work named, not the cost) that a New chat seat gave on the rig in e2e-1105 CJ7, as the worst case; rc5-rc8 hold a seat that read the request right. rc9-rc11 (crew#1452) are NOT blind recordings either: rc9 and rc10 hold a seat that read the cost right (on main the words alone decided rc9 as the run cost model and never asked it); rc11 holds the unsure seat (0.1) the issue names, which the words decide on the detect-shape door and the chat door asks about.",
|
|
3
3
|
"answers": {
|
|
4
4
|
"p1": {
|
|
5
5
|
"card": "plan-it",
|
|
@@ -1795,6 +1795,30 @@
|
|
|
1795
1795
|
"confidence": 0.85,
|
|
1796
1796
|
"ask": null,
|
|
1797
1797
|
"reason": "past spend on bug fix runs"
|
|
1798
|
+
},
|
|
1799
|
+
"rc9": {
|
|
1800
|
+
"card": "estimate-price",
|
|
1801
|
+
"option": null,
|
|
1802
|
+
"depth": null,
|
|
1803
|
+
"confidence": 0.9,
|
|
1804
|
+
"ask": null,
|
|
1805
|
+
"reason": "price of building a checkout page"
|
|
1806
|
+
},
|
|
1807
|
+
"rc10": {
|
|
1808
|
+
"card": "run-cost",
|
|
1809
|
+
"option": null,
|
|
1810
|
+
"depth": null,
|
|
1811
|
+
"confidence": 0.88,
|
|
1812
|
+
"ask": null,
|
|
1813
|
+
"reason": "forecast monthly bug fix cost"
|
|
1814
|
+
},
|
|
1815
|
+
"rc11": {
|
|
1816
|
+
"card": "run-cost",
|
|
1817
|
+
"option": null,
|
|
1818
|
+
"depth": null,
|
|
1819
|
+
"confidence": 0.1,
|
|
1820
|
+
"ask": null,
|
|
1821
|
+
"reason": "unsure: a budget model or a price"
|
|
1798
1822
|
}
|
|
1799
1823
|
}
|
|
1800
1824
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.21",
|
|
4
4
|
"description": "The harness for the coding agents you already use: runs Claude Code, Codex, GitHub Copilot, OpenCode and Pi in sandboxes. By default a different agent reviews the work, and built-in feature, bug-fix, migration, MCP-server and editor-plugin jobs are acceptance-tested before delivery unless a labelled waiver or skip says otherwise. It also connects your databases, files, APIs and issue trackers for apps you build by chat, and agents read a database only through one data gate.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coding-agents",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"mysql2": "^3.24.6",
|
|
65
65
|
"postgres": "^3.4.9",
|
|
66
66
|
"smol-toml": "^1.9.1",
|
|
67
|
-
"wicked-core-ts": "^0.15.
|
|
67
|
+
"wicked-core-ts": "^0.15.49",
|
|
68
68
|
"wicked-ledger": "^0.6.1",
|
|
69
69
|
"wicked-vault": "^0.8.0",
|
|
70
70
|
"yaml": "^2.4.2",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"undici": "^6.28.1",
|
|
82
82
|
"vitest": "^5.0.2",
|
|
83
83
|
"wicked-bus": "^2.5.0",
|
|
84
|
-
"wicked-crew-api-types": "^0.
|
|
85
|
-
"wicked-studio": "^0.16.
|
|
84
|
+
"wicked-crew-api-types": "^0.224.0",
|
|
85
|
+
"wicked-studio": "^0.16.17"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=22.12.0"
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// It lives outside src/ on purpose: it is not daemon code, and the daemon's SQLite guards scan src/.
|
|
6
6
|
import { DatabaseSync, constants } from 'node:sqlite';
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
8
|
+
import { renameSync } from 'node:fs';
|
|
8
9
|
import { parseCsv, parseXlsx, detectHeader, columnNames, inferType, tableNameFor } from './upload-parse.mjs';
|
|
9
10
|
// One UTF-8 decoder for the whole request: a character split across two pipe chunks stays one.
|
|
10
11
|
process.stdin.setEncoding('utf8');
|
|
@@ -57,6 +58,36 @@ try {
|
|
|
57
58
|
await new Promise((done) => process.stdout.write(JSON.stringify({ ok: true, table, header: { detected, columns: names }, sample: body.slice(0, req.limits.sampleRows).map((r) => names.map((_n, i) => r[i] ?? '')) }), done));
|
|
58
59
|
process.exit(0);
|
|
59
60
|
}
|
|
61
|
+
if (req.op === 'strip') {
|
|
62
|
+
// (crew#1731) An uploaded .sqlite's virtual tables (a full-text index, an R-tree) are dropped from crew's COPY of
|
|
63
|
+
// the file, never the person's: DROP TABLE runs the module's own destroy, which drops its shadow tables too. A
|
|
64
|
+
// module this SQLite does not have cannot be dropped, and the upload is refused naming it. The copy (every upload's,
|
|
65
|
+
// with no virtual table to drop too: crew#1787) is then rewritten with VACUUM INTO (live pages only, so nothing dropped, now or before the upload, stays in its free
|
|
66
|
+
// pages) and put in its place. Not a plain VACUUM: that renumbers the rowids of a table without an INTEGER PRIMARY
|
|
67
|
+
// KEY, which another table may refer to; VACUUM INTO keeps them (codex r1, r2).
|
|
68
|
+
const quote = (n) => '"' + String(n).replace(/"/g, '""') + '"';
|
|
69
|
+
const w = new DatabaseSync(req.path, { enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
|
|
70
|
+
let answer;
|
|
71
|
+
try {
|
|
72
|
+
w.enableDefensive(true);
|
|
73
|
+
w.exec('PRAGMA trusted_schema = 0; PRAGMA journal_mode = DELETE;');
|
|
74
|
+
const failed = [];
|
|
75
|
+
for (const name of req.tables) {
|
|
76
|
+
try {
|
|
77
|
+
w.exec('DROP TABLE main.' + quote(name));
|
|
78
|
+
} catch (e) {
|
|
79
|
+
failed.push({ name, error: String(e && e.message || e) });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (failed.length === 0) w.exec("VACUUM INTO '" + String(req.into).replace(/'/g, "''") + "'");
|
|
83
|
+
answer = { ok: true, failed };
|
|
84
|
+
} finally {
|
|
85
|
+
w.close();
|
|
86
|
+
}
|
|
87
|
+
if (answer.failed.length === 0) renameSync(req.into, req.path);
|
|
88
|
+
await new Promise((done) => process.stdout.write(JSON.stringify(answer), done));
|
|
89
|
+
process.exit(0);
|
|
90
|
+
}
|
|
60
91
|
const db = new DatabaseSync(req.uri, { readOnly: true, enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
|
|
61
92
|
db.enableDefensive(true);
|
|
62
93
|
db.exec('PRAGMA query_only = 1; PRAGMA trusted_schema = 0;');
|
|
@@ -75,7 +106,14 @@ try {
|
|
|
75
106
|
const count = db.prepare('SELECT count(*) AS c FROM ' + quoted).get().c;
|
|
76
107
|
tables.push({ name: o.name, sql: o.sql, columns: cols, rows: Number(count) });
|
|
77
108
|
}
|
|
78
|
-
|
|
109
|
+
// A shadow table (FTS5's `_data`, `_idx`, …) is an ordinary table that belongs to its virtual table and goes with
|
|
110
|
+
// it; it is never called virtual (crew#1731). Any other kind that is not a plain table counts as virtual.
|
|
111
|
+
const kindOf = (o) => {
|
|
112
|
+
if (o.type !== 'table' || String(o.name).startsWith('sqlite_')) return null;
|
|
113
|
+
const k = kinds.get(o.name);
|
|
114
|
+
return k === 'table' ? null : k === 'shadow' ? 'shadow' : 'virtual';
|
|
115
|
+
};
|
|
116
|
+
out({ ok: true, objects: objects.map((o) => ({ type: o.type, name: o.name, virtual: kindOf(o) === 'virtual', shadow: kindOf(o) === 'shadow' })), tables });
|
|
79
117
|
} else {
|
|
80
118
|
const ctx = { tables: req.tables, functions: req.functions, denied: req.denied };
|
|
81
119
|
db.setAuthorizer((action, a1, a2, dbName, tv) => authorize(constants, ctx, action, a1, a2, dbName, tv));
|