wicked-crew 0.18.19 → 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/README.md +9 -6
- package/dist/api/ask-paths.d.ts +2 -0
- package/dist/api/ask-paths.d.ts.map +1 -1
- package/dist/api/ask-paths.js +6 -0
- package/dist/api/ask-paths.js.map +1 -1
- package/dist/api/auth.d.ts +7 -5
- package/dist/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +23 -9
- package/dist/api/auth.js.map +1 -1
- 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-attachments.d.ts.map +1 -1
- package/dist/api/chat-attachments.js +69 -19
- package/dist/api/chat-attachments.js.map +1 -1
- package/dist/api/chat-citations.d.ts.map +1 -1
- package/dist/api/chat-citations.js +22 -0
- package/dist/api/chat-citations.js.map +1 -1
- package/dist/api/chat-context.d.ts +16 -1
- package/dist/api/chat-context.d.ts.map +1 -1
- package/dist/api/chat-context.js +75 -14
- 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-history.d.ts +13 -0
- package/dist/api/chat-history.d.ts.map +1 -1
- package/dist/api/chat-history.js +25 -0
- package/dist/api/chat-history.js.map +1 -1
- package/dist/api/chat-jobs.d.ts +67 -6
- package/dist/api/chat-jobs.d.ts.map +1 -1
- package/dist/api/chat-jobs.js +243 -22
- package/dist/api/chat-jobs.js.map +1 -1
- package/dist/api/chat-proposals.d.ts +69 -6
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +310 -49
- 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 +17 -9
- package/dist/api/chat-scope.d.ts.map +1 -1
- package/dist/api/chat-scope.js +55 -21
- 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 +82 -4
- package/dist/api/cluster-status.js.map +1 -1
- package/dist/api/codebase-archive.d.ts +4 -3
- package/dist/api/codebase-archive.d.ts.map +1 -1
- package/dist/api/codebase-archive.js +6 -5
- 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/gate-cache.d.ts +1 -0
- package/dist/api/gate-cache.d.ts.map +1 -1
- package/dist/api/gate-cache.js +19 -6
- package/dist/api/gate-cache.js.map +1 -1
- package/dist/api/governance-steering.d.ts +17 -4
- 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 +12 -2
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +56 -12
- 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/product.d.ts +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 +38 -1
- package/dist/api/proposal-onboard.d.ts.map +1 -1
- package/dist/api/proposal-onboard.js +203 -14
- package/dist/api/proposal-onboard.js.map +1 -1
- package/dist/api/recording.d.ts +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 +37 -16
- 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/retry-index.d.ts +2 -0
- package/dist/api/retry-index.d.ts.map +1 -1
- package/dist/api/retry-index.js +16 -8
- package/dist/api/retry-index.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/roster-standing.d.ts +2 -0
- package/dist/api/roster-standing.d.ts.map +1 -1
- package/dist/api/roster-standing.js +8 -1
- package/dist/api/roster-standing.js.map +1 -1
- package/dist/api/routes.d.ts +55 -12
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +961 -277
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-documents.d.ts +9 -1
- package/dist/api/run-documents.d.ts.map +1 -1
- package/dist/api/run-documents.js +63 -5
- package/dist/api/run-documents.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 +47 -0
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +196 -86
- 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 +17 -9
- 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 +172 -59
- package/dist/api/server.js.map +1 -1
- package/dist/api/stall-watchdog.d.ts +6 -0
- package/dist/api/stall-watchdog.d.ts.map +1 -1
- package/dist/api/stall-watchdog.js +28 -0
- package/dist/api/stall-watchdog.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 +5 -0
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +22 -10
- package/dist/api/system-snapshot.js.map +1 -1
- package/dist/api/testing.d.ts +2 -2
- package/dist/api/ui-text.js +2 -2
- package/dist/api/ui-text.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/actions/api-action.js +5 -2
- package/dist/apps/actions/api-action.js.map +1 -1
- package/dist/apps/actions/write-path.d.ts +9 -0
- package/dist/apps/actions/write-path.d.ts.map +1 -1
- package/dist/apps/actions/write-path.js +17 -9
- package/dist/apps/actions/write-path.js.map +1 -1
- package/dist/apps/exec/executor.d.ts +8 -15
- package/dist/apps/exec/executor.d.ts.map +1 -1
- package/dist/apps/exec/executor.js +10 -3
- package/dist/apps/exec/executor.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/exec/redescribe.d.ts +37 -0
- package/dist/apps/exec/redescribe.d.ts.map +1 -0
- package/dist/apps/exec/redescribe.js +86 -0
- package/dist/apps/exec/redescribe.js.map +1 -0
- package/dist/apps/exec/source-stage.d.ts +3 -1
- package/dist/apps/exec/source-stage.d.ts.map +1 -1
- package/dist/apps/exec/source-stage.js +13 -3
- package/dist/apps/exec/source-stage.js.map +1 -1
- package/dist/apps/exec/sources.d.ts +6 -0
- package/dist/apps/exec/sources.d.ts.map +1 -1
- package/dist/apps/exec/sources.js +8 -0
- package/dist/apps/exec/sources.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 +8 -1
- package/dist/apps/publish/manifest.d.ts.map +1 -1
- package/dist/apps/publish/manifest.js +14 -3
- package/dist/apps/publish/manifest.js.map +1 -1
- package/dist/apps/publish/run.d.ts +15 -2
- package/dist/apps/publish/run.d.ts.map +1 -1
- package/dist/apps/publish/run.js +100 -17
- package/dist/apps/publish/run.js.map +1 -1
- package/dist/apps/routes.d.ts +3 -0
- package/dist/apps/routes.d.ts.map +1 -1
- package/dist/apps/routes.js +58 -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/Dockerfile +2 -2
- package/dist/apps-server/runners/sqlite-runner.mjs +67 -12
- package/dist/apps-server/server/lib/bundle/server.mjs +353 -159
- package/dist/cli/governance.d.ts +5 -2
- package/dist/cli/governance.d.ts.map +1 -1
- package/dist/cli/governance.js +8 -5
- package/dist/cli/governance.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +6 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/service.d.ts +10 -6
- package/dist/cli/service.d.ts.map +1 -1
- package/dist/cli/service.js +39 -23
- package/dist/cli/service.js.map +1 -1
- package/dist/core/adapter.d.ts +61 -29
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +214 -83
- 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 +45 -42
- package/dist/core/assurance.d.ts.map +1 -1
- package/dist/core/assurance.js +74 -67
- package/dist/core/assurance.js.map +1 -1
- package/dist/core/deliver-text.d.ts +14 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +41 -2
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts +66 -1
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +183 -10
- package/dist/core/deliver.js.map +1 -1
- package/dist/core/engine-roster.d.ts +2 -0
- package/dist/core/engine-roster.d.ts.map +1 -1
- package/dist/core/engine-roster.js +13 -0
- package/dist/core/engine-roster.js.map +1 -1
- package/dist/core/estate-mcp-client.d.ts +13 -14
- package/dist/core/estate-mcp-client.d.ts.map +1 -1
- package/dist/core/estate-mcp-client.js +49 -68
- 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/pr-checks-helper.d.ts +8 -4
- package/dist/core/pr-checks-helper.d.ts.map +1 -1
- package/dist/core/pr-checks-helper.js +39 -17
- package/dist/core/pr-checks-helper.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/repoPaths.d.ts +2 -4
- package/dist/core/repoPaths.d.ts.map +1 -1
- package/dist/core/repoPaths.js +4 -6
- package/dist/core/repoPaths.js.map +1 -1
- 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 +2 -0
- 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 +4 -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/csp.d.ts +6 -0
- package/dist/editors/csp.d.ts.map +1 -1
- package/dist/editors/csp.js +10 -0
- package/dist/editors/csp.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 +52 -65
- package/dist/editors/pack-install.js.map +1 -1
- package/dist/editors/registry.d.ts +31 -13
- package/dist/editors/registry.d.ts.map +1 -1
- package/dist/editors/registry.js +51 -18
- package/dist/editors/registry.js.map +1 -1
- package/dist/editors/routes.d.ts +4 -2
- package/dist/editors/routes.d.ts.map +1 -1
- package/dist/editors/routes.js +23 -6
- package/dist/editors/routes.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-corrections.js +1 -1
- package/dist/evals/shape-corrections.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 +32 -6
- package/dist/evals/workflow.js.map +1 -1
- package/dist/governance/rule-revision.d.ts +7 -0
- package/dist/governance/rule-revision.d.ts.map +1 -0
- package/dist/governance/rule-revision.js +23 -0
- package/dist/governance/rule-revision.js.map +1 -0
- package/dist/insights/review-service.d.ts +26 -3
- package/dist/insights/review-service.d.ts.map +1 -1
- package/dist/insights/review-service.js +101 -11
- 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 +2 -0
- package/dist/interactive/bridge-pool.d.ts.map +1 -1
- package/dist/interactive/bridge-pool.js +18 -8
- package/dist/interactive/bridge-pool.js.map +1 -1
- package/dist/interactive/chat-events.d.ts +3 -0
- package/dist/interactive/chat-events.d.ts.map +1 -1
- package/dist/interactive/chat-events.js +20 -5
- package/dist/interactive/chat-events.js.map +1 -1
- package/dist/interactive/doc-delete-routes.d.ts +1 -0
- package/dist/interactive/doc-delete-routes.d.ts.map +1 -1
- package/dist/interactive/doc-delete-routes.js +126 -123
- package/dist/interactive/doc-delete-routes.js.map +1 -1
- package/dist/interactive/draft-events.d.ts +11 -7
- package/dist/interactive/draft-events.d.ts.map +1 -1
- package/dist/interactive/draft-events.js +29 -22
- 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 +9 -11
- package/dist/interactive/proposal-create.d.ts.map +1 -1
- package/dist/interactive/proposal-create.js +28 -21
- package/dist/interactive/proposal-create.js.map +1 -1
- package/dist/interactive/proposal-refine.d.ts +4 -4
- package/dist/interactive/proposal-refine.d.ts.map +1 -1
- package/dist/interactive/proposal-refine.js +40 -7
- package/dist/interactive/proposal-refine.js.map +1 -1
- package/dist/interactive/proxy-routes.d.ts +10 -5
- package/dist/interactive/proxy-routes.d.ts.map +1 -1
- package/dist/interactive/proxy-routes.js +108 -11
- package/dist/interactive/proxy-routes.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 +13 -1
- package/dist/interactive/source-packet.d.ts.map +1 -1
- package/dist/interactive/source-packet.js +108 -34
- package/dist/interactive/source-packet.js.map +1 -1
- package/dist/knowledge/adapters/toolbox/memory.d.ts +2 -0
- package/dist/knowledge/adapters/toolbox/memory.d.ts.map +1 -0
- package/dist/knowledge/adapters/toolbox/memory.js +43 -0
- package/dist/knowledge/adapters/toolbox/memory.js.map +1 -0
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts +30 -4
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -1
- package/dist/knowledge/adapters/toolbox/supervisor.js +112 -28
- 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/gate/gate.d.ts.map +1 -1
- package/dist/knowledge/gate/gate.js +4 -1
- package/dist/knowledge/gate/gate.js.map +1 -1
- package/dist/knowledge/gate/record.d.ts +15 -2
- package/dist/knowledge/gate/record.d.ts.map +1 -1
- package/dist/knowledge/gate/record.js +108 -29
- package/dist/knowledge/gate/record.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/registry/entry.d.ts +7 -0
- package/dist/knowledge/registry/entry.d.ts.map +1 -1
- package/dist/knowledge/registry/entry.js +4 -0
- package/dist/knowledge/registry/entry.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 +13 -3
- package/dist/learn/scheduler.js.map +1 -1
- package/dist/learnings/estate.d.ts.map +1 -1
- package/dist/learnings/estate.js +3 -14
- package/dist/learnings/estate.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 +19 -5
- package/dist/mcp/broker.js.map +1 -1
- package/dist/mcp/env.d.ts +12 -4
- package/dist/mcp/env.d.ts.map +1 -1
- package/dist/mcp/env.js +24 -4
- package/dist/mcp/env.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 +7 -6
- package/dist/mcp/estate-relay.js.map +1 -1
- package/dist/mcp/invoke.d.ts.map +1 -1
- package/dist/mcp/invoke.js +6 -5
- package/dist/mcp/invoke.js.map +1 -1
- package/dist/mcp/probe.d.ts +14 -1
- package/dist/mcp/probe.d.ts.map +1 -1
- package/dist/mcp/probe.js +55 -10
- package/dist/mcp/probe.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 +37 -0
- package/dist/mcp/registry-store.d.ts.map +1 -1
- package/dist/mcp/registry-store.js +43 -0
- package/dist/mcp/registry-store.js.map +1 -1
- package/dist/mcp/registry.d.ts +38 -6
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +145 -14
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/rest.js +4 -4
- 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/secrets.d.ts +1 -1
- package/dist/mcp/secrets.d.ts.map +1 -1
- package/dist/mcp/secrets.js +10 -11
- package/dist/mcp/secrets.js.map +1 -1
- package/dist/mcp/upstream-error.d.ts +6 -2
- 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 +15 -5
- package/dist/projects/graph.d.ts.map +1 -1
- package/dist/projects/graph.js +354 -26
- package/dist/projects/graph.js.map +1 -1
- package/dist/projects/repo-watch.d.ts +2 -2
- package/dist/projects/repo-watch.d.ts.map +1 -1
- package/dist/projects/repo-watch.js +26 -9
- package/dist/projects/repo-watch.js.map +1 -1
- package/dist/projects/routes.d.ts +9 -1
- package/dist/projects/routes.d.ts.map +1 -1
- package/dist/projects/routes.js +63 -6
- 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 +9 -0
- package/dist/projects/state-home-registry.js.map +1 -1
- package/dist/projects/state-home.d.ts +11 -0
- package/dist/projects/state-home.d.ts.map +1 -1
- package/dist/projects/state-home.js +14 -0
- package/dist/projects/state-home.js.map +1 -1
- package/dist/qe/author-workflow.d.ts +4 -0
- package/dist/qe/author-workflow.d.ts.map +1 -1
- package/dist/qe/author-workflow.js +4 -0
- package/dist/qe/author-workflow.js.map +1 -1
- package/dist/qe/test-sets.d.ts +5 -6
- package/dist/qe/test-sets.d.ts.map +1 -1
- package/dist/qe/test-sets.js +4 -3
- 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/ask.d.ts.map +1 -1
- package/dist/sources/ask.js +12 -12
- package/dist/sources/ask.js.map +1 -1
- package/dist/sources/dialer.d.ts +6 -1
- package/dist/sources/dialer.d.ts.map +1 -1
- package/dist/sources/dialer.js +53 -31
- package/dist/sources/dialer.js.map +1 -1
- package/dist/sources/drivers/mysql.d.ts +2 -0
- package/dist/sources/drivers/mysql.d.ts.map +1 -1
- package/dist/sources/drivers/mysql.js +18 -2
- package/dist/sources/drivers/mysql.js.map +1 -1
- package/dist/sources/drivers/postgres.d.ts +2 -0
- package/dist/sources/drivers/postgres.d.ts.map +1 -1
- package/dist/sources/drivers/postgres.js +10 -3
- package/dist/sources/drivers/postgres.js.map +1 -1
- package/dist/sources/drivers/sqlite.d.ts +33 -3
- package/dist/sources/drivers/sqlite.d.ts.map +1 -1
- package/dist/sources/drivers/sqlite.js +18 -6
- package/dist/sources/drivers/sqlite.js.map +1 -1
- package/dist/sources/drivers/types.d.ts +3 -1
- package/dist/sources/drivers/types.d.ts.map +1 -1
- package/dist/sources/drivers/types.js +3 -1
- package/dist/sources/drivers/types.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 -15
- package/dist/sources/uploads.d.ts.map +1 -1
- package/dist/sources/uploads.js +124 -436
- package/dist/sources/uploads.js.map +1 -1
- package/dist/standing-orders/history.d.ts +5 -3
- package/dist/standing-orders/history.d.ts.map +1 -1
- package/dist/standing-orders/history.js +6 -2
- package/dist/standing-orders/history.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/apps-standalone/runtime.js +1 -1
- package/dist/studio/assets/{KnowledgeGraph-DWw0I8RJ.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 +2 -2
- package/dist/studio/editors/wicked-deck/editor.json +1 -1
- package/dist/studio/editors/wicked-deck/index.html +2 -2
- 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 +1589 -281
- package/dist/team/routes.d.ts +11 -1
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +8 -4
- 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-v2.d.ts +6 -2
- package/dist/workflow-catalog/catalog-data-v2.d.ts.map +1 -1
- package/dist/workflow-catalog/catalog-data-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/workflow-catalog/shape.d.ts +1 -1
- package/dist/working-doc/event-lines.d.ts +12 -2
- package/dist/working-doc/event-lines.d.ts.map +1 -1
- package/dist/working-doc/event-lines.js +62 -10
- 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 +148 -8
- 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 +67 -12
- package/runners/upload-parse.d.mts +13 -0
- package/runners/upload-parse.mjs +364 -0
- package/dist/studio/assets/index-C4Xj-zxa.css +0 -32
- package/dist/studio/assets/index-CrNY3d06.js +0 -1109
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",
|
|
@@ -141,6 +141,18 @@
|
|
|
141
141
|
503
|
|
142
142
|
]
|
|
143
143
|
},
|
|
144
|
+
{
|
|
145
|
+
"method": "GET",
|
|
146
|
+
"path": "/api/v1/apps/:app/calls",
|
|
147
|
+
"requestType": null,
|
|
148
|
+
"responseType": "AppCallRecordsResponse",
|
|
149
|
+
"statusCodes": [
|
|
150
|
+
200,
|
|
151
|
+
403,
|
|
152
|
+
404,
|
|
153
|
+
501
|
|
154
|
+
]
|
|
155
|
+
},
|
|
144
156
|
{
|
|
145
157
|
"method": "POST",
|
|
146
158
|
"path": "/api/v1/apps/:app/edits",
|
|
@@ -423,6 +435,7 @@
|
|
|
423
435
|
403,
|
|
424
436
|
404,
|
|
425
437
|
409,
|
|
438
|
+
410,
|
|
426
439
|
500,
|
|
427
440
|
501
|
|
428
441
|
]
|
|
@@ -441,7 +454,8 @@
|
|
|
441
454
|
"responseType": "ChatDetailResponse",
|
|
442
455
|
"statusCodes": [
|
|
443
456
|
200,
|
|
444
|
-
400
|
|
457
|
+
400,
|
|
458
|
+
404
|
|
445
459
|
]
|
|
446
460
|
},
|
|
447
461
|
{
|
|
@@ -466,6 +480,7 @@
|
|
|
466
480
|
200,
|
|
467
481
|
400,
|
|
468
482
|
404,
|
|
483
|
+
409,
|
|
469
484
|
501,
|
|
470
485
|
502
|
|
471
486
|
]
|
|
@@ -513,6 +528,7 @@
|
|
|
513
528
|
403,
|
|
514
529
|
404,
|
|
515
530
|
409,
|
|
531
|
+
422,
|
|
516
532
|
502
|
|
517
533
|
]
|
|
518
534
|
},
|
|
@@ -847,6 +863,7 @@
|
|
|
847
863
|
"statusCodes": [
|
|
848
864
|
200,
|
|
849
865
|
400,
|
|
866
|
+
409,
|
|
850
867
|
501
|
|
851
868
|
]
|
|
852
869
|
},
|
|
@@ -986,6 +1003,19 @@
|
|
|
986
1003
|
200
|
|
987
1004
|
]
|
|
988
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
|
+
},
|
|
989
1019
|
{
|
|
990
1020
|
"method": "GET",
|
|
991
1021
|
"path": "/api/v1/knowledge/map",
|
|
@@ -1074,6 +1104,25 @@
|
|
|
1074
1104
|
400
|
|
1075
1105
|
]
|
|
1076
1106
|
},
|
|
1107
|
+
{
|
|
1108
|
+
"method": "GET",
|
|
1109
|
+
"path": "/api/v1/maintenance",
|
|
1110
|
+
"requestType": null,
|
|
1111
|
+
"responseType": "MaintenanceState",
|
|
1112
|
+
"statusCodes": [
|
|
1113
|
+
200
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"method": "POST",
|
|
1118
|
+
"path": "/api/v1/maintenance",
|
|
1119
|
+
"requestType": "MaintenanceRequest",
|
|
1120
|
+
"responseType": "MaintenanceState",
|
|
1121
|
+
"statusCodes": [
|
|
1122
|
+
200,
|
|
1123
|
+
400
|
|
1124
|
+
]
|
|
1125
|
+
},
|
|
1077
1126
|
{
|
|
1078
1127
|
"method": "POST",
|
|
1079
1128
|
"path": "/api/v1/mcp-inspect/sessions",
|
|
@@ -1321,6 +1370,7 @@
|
|
|
1321
1370
|
"responseType": "McpServerTestResponse | McpServerTestAgentResponse",
|
|
1322
1371
|
"statusCodes": [
|
|
1323
1372
|
200,
|
|
1373
|
+
403,
|
|
1324
1374
|
404,
|
|
1325
1375
|
409,
|
|
1326
1376
|
503
|
|
@@ -1364,6 +1414,7 @@
|
|
|
1364
1414
|
400,
|
|
1365
1415
|
403,
|
|
1366
1416
|
404,
|
|
1417
|
+
409,
|
|
1367
1418
|
503
|
|
1368
1419
|
]
|
|
1369
1420
|
},
|
|
@@ -1386,6 +1437,7 @@
|
|
|
1386
1437
|
"statusCodes": [
|
|
1387
1438
|
200,
|
|
1388
1439
|
400,
|
|
1440
|
+
501,
|
|
1389
1441
|
502
|
|
1390
1442
|
]
|
|
1391
1443
|
},
|
|
@@ -1414,6 +1466,19 @@
|
|
|
1414
1466
|
502
|
|
1415
1467
|
]
|
|
1416
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
|
+
},
|
|
1417
1482
|
{
|
|
1418
1483
|
"method": "POST",
|
|
1419
1484
|
"path": "/api/v1/memory/retire",
|
|
@@ -1429,7 +1494,20 @@
|
|
|
1429
1494
|
"method": "POST",
|
|
1430
1495
|
"path": "/api/v1/memory/retire-item",
|
|
1431
1496
|
"requestType": "RetireMemoryItemBody",
|
|
1432
|
-
"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",
|
|
1433
1511
|
"statusCodes": [
|
|
1434
1512
|
200,
|
|
1435
1513
|
400,
|
|
@@ -1632,6 +1710,31 @@
|
|
|
1632
1710
|
503
|
|
1633
1711
|
]
|
|
1634
1712
|
},
|
|
1713
|
+
{
|
|
1714
|
+
"method": "GET",
|
|
1715
|
+
"path": "/api/v1/projects/:id/graph/boundaries",
|
|
1716
|
+
"requestType": null,
|
|
1717
|
+
"responseType": "ProjectGraphBoundaries",
|
|
1718
|
+
"statusCodes": [
|
|
1719
|
+
200,
|
|
1720
|
+
404,
|
|
1721
|
+
501,
|
|
1722
|
+
503
|
|
1723
|
+
]
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"method": "GET",
|
|
1727
|
+
"path": "/api/v1/projects/:id/graph/path",
|
|
1728
|
+
"requestType": null,
|
|
1729
|
+
"responseType": "ProjectGraphPath",
|
|
1730
|
+
"statusCodes": [
|
|
1731
|
+
200,
|
|
1732
|
+
400,
|
|
1733
|
+
404,
|
|
1734
|
+
501,
|
|
1735
|
+
503
|
|
1736
|
+
]
|
|
1737
|
+
},
|
|
1635
1738
|
{
|
|
1636
1739
|
"method": "POST",
|
|
1637
1740
|
"path": "/api/v1/projects/:id/graph/refresh",
|
|
@@ -1910,6 +2013,18 @@
|
|
|
1910
2013
|
503
|
|
1911
2014
|
]
|
|
1912
2015
|
},
|
|
2016
|
+
{
|
|
2017
|
+
"method": "DELETE",
|
|
2018
|
+
"path": "/api/v1/repos/:id",
|
|
2019
|
+
"requestType": null,
|
|
2020
|
+
"responseType": "UnregisterRepoResponse",
|
|
2021
|
+
"statusCodes": [
|
|
2022
|
+
200,
|
|
2023
|
+
404,
|
|
2024
|
+
409,
|
|
2025
|
+
501
|
|
2026
|
+
]
|
|
2027
|
+
},
|
|
1913
2028
|
{
|
|
1914
2029
|
"method": "GET",
|
|
1915
2030
|
"path": "/api/v1/repos/:id/contributors",
|
|
@@ -2007,6 +2122,13 @@
|
|
|
2007
2122
|
"responseType": null,
|
|
2008
2123
|
"statusCodes": []
|
|
2009
2124
|
},
|
|
2125
|
+
{
|
|
2126
|
+
"method": "POST",
|
|
2127
|
+
"path": "/api/v1/repos/:id/requirements/:key/retire",
|
|
2128
|
+
"requestType": null,
|
|
2129
|
+
"responseType": null,
|
|
2130
|
+
"statusCodes": []
|
|
2131
|
+
},
|
|
2010
2132
|
{
|
|
2011
2133
|
"method": "PUT",
|
|
2012
2134
|
"path": "/api/v1/repos/:id/requirements/minimum",
|
|
@@ -2075,7 +2197,8 @@
|
|
|
2075
2197
|
404,
|
|
2076
2198
|
409,
|
|
2077
2199
|
422,
|
|
2078
|
-
501
|
|
2200
|
+
501,
|
|
2201
|
+
503
|
|
2079
2202
|
]
|
|
2080
2203
|
},
|
|
2081
2204
|
{
|
|
@@ -2283,7 +2406,8 @@
|
|
|
2283
2406
|
400,
|
|
2284
2407
|
404,
|
|
2285
2408
|
409,
|
|
2286
|
-
501
|
|
2409
|
+
501,
|
|
2410
|
+
503
|
|
2287
2411
|
]
|
|
2288
2412
|
},
|
|
2289
2413
|
{
|
|
@@ -2427,9 +2551,15 @@
|
|
|
2427
2551
|
{
|
|
2428
2552
|
"method": "POST",
|
|
2429
2553
|
"path": "/api/v1/runs/:id/resume",
|
|
2430
|
-
"requestType":
|
|
2554
|
+
"requestType": "ResumeRequest",
|
|
2431
2555
|
"responseType": null,
|
|
2432
|
-
"statusCodes": [
|
|
2556
|
+
"statusCodes": [
|
|
2557
|
+
200,
|
|
2558
|
+
400,
|
|
2559
|
+
404,
|
|
2560
|
+
409,
|
|
2561
|
+
503
|
|
2562
|
+
]
|
|
2433
2563
|
},
|
|
2434
2564
|
{
|
|
2435
2565
|
"method": "POST",
|
|
@@ -2669,10 +2799,11 @@
|
|
|
2669
2799
|
{
|
|
2670
2800
|
"method": "POST",
|
|
2671
2801
|
"path": "/api/v1/schedules/:id/run",
|
|
2672
|
-
"requestType":
|
|
2802
|
+
"requestType": "ScheduleRunBody",
|
|
2673
2803
|
"responseType": "ScheduleRunResponse",
|
|
2674
2804
|
"statusCodes": [
|
|
2675
2805
|
200,
|
|
2806
|
+
400,
|
|
2676
2807
|
403,
|
|
2677
2808
|
404,
|
|
2678
2809
|
409,
|
|
@@ -2766,6 +2897,15 @@
|
|
|
2766
2897
|
"responseType": null,
|
|
2767
2898
|
"statusCodes": []
|
|
2768
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
|
+
},
|
|
2769
2909
|
{
|
|
2770
2910
|
"method": "GET",
|
|
2771
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 (
|
|
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"
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// The SQLite snapshot runner (DES-APPS-001 §5.1, §5.3, §7.5): one JSON request on stdin, one JSON
|
|
2
2
|
// answer on stdout. crew starts it as a CHILD PROCESS (packages/crew/src/sources/drivers/sqlite.ts):
|
|
3
3
|
// the daemon itself never loads a SQLite library (wicked-core#631), and a statement past its deadline
|
|
4
|
-
// is stopped by ending this process (node:sqlite has no interrupt). Plain ESM
|
|
4
|
+
// is stopped by ending this process (node:sqlite has no interrupt). Plain ESM outside the daemon.
|
|
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
|
+
import { readFile } from 'node:fs/promises';
|
|
8
|
+
import { renameSync } from 'node:fs';
|
|
9
|
+
import { parseCsv, parseXlsx, detectHeader, columnNames, inferType, tableNameFor } from './upload-parse.mjs';
|
|
7
10
|
// One UTF-8 decoder for the whole request: a character split across two pipe chunks stays one.
|
|
8
11
|
process.stdin.setEncoding('utf8');
|
|
9
12
|
let input = '';
|
|
@@ -16,21 +19,33 @@ try {
|
|
|
16
19
|
if (typeof DatabaseSync.prototype.setAuthorizer !== 'function' || typeof DatabaseSync.prototype.enableDefensive !== 'function') {
|
|
17
20
|
throw new Error('SQLite sources need Node.js 24.12, 25.1 or later (the authorizer and defensive mode)');
|
|
18
21
|
}
|
|
19
|
-
if (req.op === '
|
|
20
|
-
//
|
|
22
|
+
if (req.op === 'ingest') {
|
|
23
|
+
// Parsing and inference share the snapshot writer's killable process (crew#1289).
|
|
24
|
+
const data = await readFile(req.input);
|
|
25
|
+
const rows = req.kind === 'xlsx' ? parseXlsx(data, req.limits) : parseCsv(data.toString('utf8').replace(/^/, ''), req.limits);
|
|
26
|
+
if (rows.length === 0) throw { code: 'empty', message: 'the file has no rows' };
|
|
27
|
+
const detected = detectHeader(rows, req.header);
|
|
28
|
+
const width = rows.reduce((w, r) => Math.max(w, r.length), 0);
|
|
29
|
+
const names = columnNames(rows[0], width, detected);
|
|
30
|
+
const body = detected ? rows.slice(1) : rows;
|
|
31
|
+
if (body.length > req.limits.rows) throw { code: 'too_many_rows', message: `the file has more than ${req.limits.rows} rows` };
|
|
32
|
+
const types = names.map((_n, i) => inferType((function* () {
|
|
33
|
+
for (const r of body) yield r[i] ?? '';
|
|
34
|
+
})()));
|
|
35
|
+
const table = tableNameFor(req.filename);
|
|
21
36
|
const quote = (n) => '"' + String(n).replace(/"/g, '""') + '"';
|
|
22
37
|
const w = new DatabaseSync(req.path, { enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
|
|
23
38
|
try {
|
|
24
|
-
w.exec('CREATE TABLE ' + quote(
|
|
25
|
-
const ins = w.prepare('INSERT INTO ' + quote(
|
|
39
|
+
w.exec('CREATE TABLE ' + quote(table) + ' (' + names.map((n, i) => quote(n) + ' ' + types[i]).join(', ') + ')');
|
|
40
|
+
const ins = w.prepare('INSERT INTO ' + quote(table) + ' VALUES (' + names.map(() => '?').join(', ') + ')');
|
|
26
41
|
w.exec('BEGIN');
|
|
27
|
-
for (const r of
|
|
28
|
-
ins.run(...
|
|
42
|
+
for (const r of body) {
|
|
43
|
+
ins.run(...names.map((_n, i) => {
|
|
29
44
|
const raw = r[i] ?? '';
|
|
30
45
|
const v = raw.trim();
|
|
31
46
|
if (v === '') return null;
|
|
32
|
-
if (
|
|
33
|
-
if (
|
|
47
|
+
if (types[i] === 'INTEGER') return BigInt(v);
|
|
48
|
+
if (types[i] === 'REAL') return Number(v);
|
|
34
49
|
return raw;
|
|
35
50
|
}));
|
|
36
51
|
}
|
|
@@ -38,7 +53,39 @@ try {
|
|
|
38
53
|
} finally {
|
|
39
54
|
w.close();
|
|
40
55
|
}
|
|
41
|
-
|
|
56
|
+
// Exit only once the answer is written: a pipe write is async on macOS, and an exit before it drains cuts
|
|
57
|
+
// anything past 64 KiB (a wide 20-row preview) (crew#1721 coord r1).
|
|
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));
|
|
59
|
+
process.exit(0);
|
|
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));
|
|
42
89
|
process.exit(0);
|
|
43
90
|
}
|
|
44
91
|
const db = new DatabaseSync(req.uri, { readOnly: true, enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
|
|
@@ -59,7 +106,14 @@ try {
|
|
|
59
106
|
const count = db.prepare('SELECT count(*) AS c FROM ' + quoted).get().c;
|
|
60
107
|
tables.push({ name: o.name, sql: o.sql, columns: cols, rows: Number(count) });
|
|
61
108
|
}
|
|
62
|
-
|
|
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 });
|
|
63
117
|
} else {
|
|
64
118
|
const ctx = { tables: req.tables, functions: req.functions, denied: req.denied };
|
|
65
119
|
db.setAuthorizer((action, a1, a2, dbName, tv) => authorize(constants, ctx, action, a1, a2, dbName, tv));
|
|
@@ -106,5 +160,6 @@ try {
|
|
|
106
160
|
}
|
|
107
161
|
}
|
|
108
162
|
} catch (e) {
|
|
109
|
-
|
|
163
|
+
const refused = !(e instanceof Error) && typeof e?.code === 'string';
|
|
164
|
+
out({ ok: false, ...(refused ? { refused: true, code: e.code } : {}), error: String(e && e.message || e) });
|
|
110
165
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Limits are supplied by the daemon's UPLOAD_LIMITS (crew#1289). */
|
|
2
|
+
export interface UploadParseLimits {
|
|
3
|
+
readonly expandedBytes: number;
|
|
4
|
+
readonly rows: number;
|
|
5
|
+
readonly columns: number;
|
|
6
|
+
}
|
|
7
|
+
export function parseCsv(text: string, limits: UploadParseLimits): string[][];
|
|
8
|
+
export function parseXlsx(data: Buffer, limits: UploadParseLimits): string[][];
|
|
9
|
+
export function detectHeader(rows: readonly string[][], choice: 'yes' | 'no' | null): boolean;
|
|
10
|
+
export function looksLikeHeader(first: readonly string[]): boolean;
|
|
11
|
+
export function columnNames(first: readonly string[], width: number, header: boolean): string[];
|
|
12
|
+
export function inferType(values: Iterable<string>): 'INTEGER' | 'REAL' | 'TEXT';
|
|
13
|
+
export function tableNameFor(filename: string): string;
|