wicked-crew 0.18.18 → 0.18.20
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/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 +4 -1
- package/dist/api/chat-context.d.ts.map +1 -1
- package/dist/api/chat-context.js +15 -9
- package/dist/api/chat-context.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 +15 -6
- package/dist/api/chat-jobs.d.ts.map +1 -1
- package/dist/api/chat-jobs.js +48 -19
- package/dist/api/chat-jobs.js.map +1 -1
- package/dist/api/chat-proposals.d.ts +36 -7
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +224 -52
- package/dist/api/chat-proposals.js.map +1 -1
- package/dist/api/chat-scope.d.ts +18 -9
- package/dist/api/chat-scope.d.ts.map +1 -1
- package/dist/api/chat-scope.js +62 -23
- package/dist/api/chat-scope.js.map +1 -1
- package/dist/api/cluster-status.js +1 -1
- 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 +4 -3
- package/dist/api/codebase-archive.js.map +1 -1
- package/dist/api/delivery-index.d.ts.map +1 -1
- package/dist/api/delivery-index.js +13 -0
- package/dist/api/delivery-index.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 +4 -4
- package/dist/api/mcp.d.ts +10 -2
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +54 -13
- package/dist/api/mcp.js.map +1 -1
- package/dist/api/needs.js +1 -1
- package/dist/api/needs.js.map +1 -1
- package/dist/api/product.d.ts +1 -1
- package/dist/api/proposal-onboard.d.ts +9 -1
- package/dist/api/proposal-onboard.d.ts.map +1 -1
- package/dist/api/proposal-onboard.js +41 -3
- package/dist/api/proposal-onboard.js.map +1 -1
- package/dist/api/recording.d.ts +1 -1
- package/dist/api/redeliver.d.ts +48 -0
- package/dist/api/redeliver.d.ts.map +1 -0
- package/dist/api/redeliver.js +178 -0
- package/dist/api/redeliver.js.map +1 -0
- package/dist/api/requirements.d.ts +2 -16
- package/dist/api/requirements.d.ts.map +1 -1
- 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/roster-standing.d.ts +5 -1
- package/dist/api/roster-standing.d.ts.map +1 -1
- package/dist/api/roster-standing.js +10 -3
- package/dist/api/roster-standing.js.map +1 -1
- package/dist/api/routes.d.ts +31 -9
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +572 -181
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-base-notice.d.ts +5 -0
- package/dist/api/run-base-notice.d.ts.map +1 -0
- package/dist/api/run-base-notice.js +15 -0
- package/dist/api/run-base-notice.js.map +1 -0
- 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-timing-index.d.ts +2 -0
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +62 -86
- package/dist/api/run-timing-index.js.map +1 -1
- package/dist/api/seat-container-login.js +2 -2
- package/dist/api/seat-container-login.js.map +1 -1
- package/dist/api/seat-probe.d.ts +6 -5
- package/dist/api/seat-probe.d.ts.map +1 -1
- package/dist/api/seat-probe.js +11 -7
- package/dist/api/seat-probe.js.map +1 -1
- package/dist/api/seat-standing.js +4 -4
- package/dist/api/seat-standing.js.map +1 -1
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +92 -25
- 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/system-snapshot.d.ts +5 -0
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +20 -9
- 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/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/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/publish/manifest.d.ts +6 -1
- package/dist/apps/publish/manifest.d.ts.map +1 -1
- package/dist/apps/publish/manifest.js +6 -0
- package/dist/apps/publish/manifest.js.map +1 -1
- package/dist/apps/publish/run.d.ts +4 -1
- package/dist/apps/publish/run.d.ts.map +1 -1
- package/dist/apps/publish/run.js +4 -1
- package/dist/apps/publish/run.js.map +1 -1
- package/dist/apps/routes.d.ts +1 -0
- package/dist/apps/routes.d.ts.map +1 -1
- package/dist/apps/routes.js +13 -0
- package/dist/apps/routes.js.map +1 -1
- package/dist/apps-server/Dockerfile +2 -2
- package/dist/apps-server/runners/sqlite-runner.mjs +28 -11
- package/dist/apps-server/server/lib/bundle/server.mjs +348 -150
- 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 +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +8 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/service.d.ts +12 -6
- package/dist/cli/service.d.ts.map +1 -1
- package/dist/cli/service.js +53 -23
- package/dist/cli/service.js.map +1 -1
- package/dist/core/adapter.d.ts +44 -23
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +158 -60
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/assurance.d.ts +37 -44
- package/dist/core/assurance.d.ts.map +1 -1
- package/dist/core/assurance.js +53 -69
- package/dist/core/assurance.js.map +1 -1
- package/dist/core/bridge-reaper.d.ts +4 -3
- package/dist/core/bridge-reaper.d.ts.map +1 -1
- package/dist/core/bridge-reaper.js +24 -8
- package/dist/core/bridge-reaper.js.map +1 -1
- package/dist/core/deliver-exclusions.d.ts +5 -2
- package/dist/core/deliver-exclusions.d.ts.map +1 -1
- package/dist/core/deliver-exclusions.js +5 -2
- package/dist/core/deliver-exclusions.js.map +1 -1
- package/dist/core/deliver-text.d.ts +12 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +40 -2
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts +27 -0
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +162 -39
- 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 +47 -62
- package/dist/core/estate-mcp-client.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.d.ts +16 -0
- package/dist/core/redeliver.d.ts.map +1 -0
- package/dist/core/redeliver.js +64 -0
- package/dist/core/redeliver.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/threadpool.d.ts +3 -0
- package/dist/core/threadpool.d.ts.map +1 -0
- package/dist/core/threadpool.js +14 -0
- package/dist/core/threadpool.js.map +1 -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/decisions/rules-brief.d.ts +2 -0
- package/dist/decisions/rules-brief.d.ts.map +1 -1
- package/dist/decisions/rules-brief.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.map +1 -1
- package/dist/editors/pack-install.js +1 -0
- package/dist/editors/pack-install.js.map +1 -1
- package/dist/editors/registry.d.ts +5 -1
- package/dist/editors/registry.d.ts.map +1 -1
- package/dist/editors/registry.js +16 -3
- 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/evals/shape-corrections.js +1 -1
- package/dist/evals/shape-corrections.js.map +1 -1
- package/dist/evals/workflow.d.ts.map +1 -1
- package/dist/evals/workflow.js +1 -0
- 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 +2 -0
- package/dist/insights/review-service.d.ts.map +1 -1
- package/dist/insights/review-service.js +27 -0
- package/dist/insights/review-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 +12 -4
- 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 +13 -4
- package/dist/interactive/chat-events.js.map +1 -1
- package/dist/interactive/council-outcome.js +1 -1
- package/dist/interactive/council-outcome.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 +8 -7
- package/dist/interactive/draft-events.d.ts.map +1 -1
- package/dist/interactive/draft-events.js +24 -14
- package/dist/interactive/draft-events.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 +27 -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 +25 -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/source-packet.d.ts +5 -1
- package/dist/interactive/source-packet.d.ts.map +1 -1
- package/dist/interactive/source-packet.js +62 -29
- 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 +9 -3
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -1
- package/dist/knowledge/adapters/toolbox/supervisor.js +40 -6
- package/dist/knowledge/adapters/toolbox/supervisor.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/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/learn/scheduler.d.ts.map +1 -1
- package/dist/learn/scheduler.js +2 -1
- 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 +7 -12
- package/dist/learnings/extract.d.ts.map +1 -1
- package/dist/learnings/extract.js +9 -40
- package/dist/learnings/extract.js.map +1 -1
- package/dist/learnings/service.d.ts +12 -15
- package/dist/learnings/service.d.ts.map +1 -1
- package/dist/learnings/service.js +23 -43
- package/dist/learnings/service.js.map +1 -1
- package/dist/mcp/broker.js +1 -1
- 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 +27 -7
- package/dist/mcp/env.js.map +1 -1
- package/dist/mcp/estate-relay.d.ts.map +1 -1
- package/dist/mcp/estate-relay.js +2 -4
- package/dist/mcp/estate-relay.js.map +1 -1
- package/dist/mcp/invoke.d.ts.map +1 -1
- package/dist/mcp/invoke.js +4 -3
- 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/registry-store.d.ts +12 -0
- package/dist/mcp/registry-store.d.ts.map +1 -1
- package/dist/mcp/registry-store.js +10 -0
- package/dist/mcp/registry-store.js.map +1 -1
- package/dist/mcp/registry.d.ts +13 -5
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +64 -12
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/rest.js +1 -1
- package/dist/mcp/rest.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 +1 -1
- package/dist/mcp/upstream-error.d.ts.map +1 -1
- package/dist/projects/auto-refresh.d.ts +21 -0
- package/dist/projects/auto-refresh.d.ts.map +1 -1
- package/dist/projects/auto-refresh.js +55 -1
- package/dist/projects/auto-refresh.js.map +1 -1
- package/dist/projects/graph.d.ts +49 -2
- package/dist/projects/graph.d.ts.map +1 -1
- package/dist/projects/graph.js +334 -23
- 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 +2 -0
- package/dist/projects/routes.d.ts.map +1 -1
- package/dist/projects/routes.js +50 -1
- package/dist/projects/routes.js.map +1 -1
- package/dist/projects/state-home-registry.d.ts.map +1 -1
- package/dist/projects/state-home-registry.js +3 -0
- package/dist/projects/state-home-registry.js.map +1 -1
- package/dist/projects/state-home.d.ts +7 -0
- package/dist/projects/state-home.d.ts.map +1 -1
- package/dist/projects/state-home.js +11 -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 +4 -5
- package/dist/qe/test-sets.d.ts.map +1 -1
- package/dist/qe/test-sets.js +2 -1
- package/dist/qe/test-sets.js.map +1 -1
- package/dist/schedules/scheduler.d.ts +40 -1
- package/dist/schedules/scheduler.d.ts.map +1 -1
- package/dist/schedules/scheduler.js +175 -13
- package/dist/schedules/scheduler.js.map +1 -1
- package/dist/schedules/store.d.ts +20 -0
- package/dist/schedules/store.d.ts.map +1 -1
- package/dist/schedules/store.js +17 -0
- package/dist/schedules/store.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 +22 -5
- package/dist/sources/drivers/sqlite.d.ts.map +1 -1
- package/dist/sources/drivers/sqlite.js +10 -9
- 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.js +1 -1
- package/dist/sources/routes.js.map +1 -1
- package/dist/sources/uploads.d.ts +2 -15
- package/dist/sources/uploads.d.ts.map +1 -1
- package/dist/sources/uploads.js +30 -440
- 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.js +1 -1
- 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-JfsMExo3.js → KnowledgeGraph-dfq7Flyj.js} +1 -1
- package/dist/studio/assets/index-Bame65hj.js +1108 -0
- package/dist/studio/assets/index-CtB1BJRI.css +32 -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 +14 -14
- package/dist/studio/editors/wicked-doc/editor.json +1 -1
- package/dist/studio/editors/wicked-doc/index.html +12 -12
- package/dist/studio/editors/wicked-insights/editor.json +1 -1
- package/dist/studio/editors/wicked-insights/index.html +2 -2
- package/dist/studio/editors/wicked-page/editor.json +1 -1
- package/dist/studio/editors/wicked-page/index.html +12 -12
- package/dist/studio/editors/wicked-video/editor.json +1 -1
- package/dist/studio/editors/wicked-video/index.html +10 -10
- package/dist/studio/index.html +2 -2
- package/dist/studio/testid-inventory.json +432 -11
- package/dist/team/routes.d.ts +11 -1
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +6 -3
- package/dist/team/routes.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/shape.d.ts +1 -1
- package/dist/working-doc/event-lines.d.ts +11 -0
- package/dist/working-doc/event-lines.d.ts.map +1 -1
- package/dist/working-doc/event-lines.js +32 -5
- package/dist/working-doc/event-lines.js.map +1 -1
- package/dist/working-doc/notes-index.d.ts.map +1 -1
- package/dist/working-doc/notes-index.js +2 -2
- package/dist/working-doc/notes-index.js.map +1 -1
- package/endpoint-manifest.json +114 -6
- package/evals/corpora/shape-v1.json +1 -1
- package/package.json +4 -4
- package/runners/sqlite-runner.mjs +28 -11
- package/runners/upload-parse.d.mts +13 -0
- package/runners/upload-parse.mjs +364 -0
- package/workflows/distill-learnings.json +2 -2
- package/dist/studio/assets/index-CkosDNYp.css +0 -32
- package/dist/studio/assets/index-pq0QeOmo.js +0 -1109
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* of the daemon's other trail-hydrated indexes (`RunTimingIndex`, `GuidanceIndex`: every run, for the daemon's life);
|
|
15
15
|
* a global eviction and read-back was tried and dropped in xreview r4 (it lost live answers and thrashed the trail).
|
|
16
16
|
*/
|
|
17
|
-
import { NOTE_ACTIONS, personNotes } from './event-lines.js';
|
|
17
|
+
import { NOTE_ACTIONS, notedActor, personNotes } from './event-lines.js';
|
|
18
18
|
export const NOTES_PER_RUN = 160;
|
|
19
|
-
const relevant = (e) => typeof e.runId === 'string' && e.runId !== '' && e
|
|
19
|
+
const relevant = (e) => typeof e.runId === 'string' && e.runId !== '' && notedActor(e) && NOTE_ACTIONS.has(e.action) && typeof e.ts === 'number';
|
|
20
20
|
/** One record's identity while the start-up read and live entries are merged (never kept after). */
|
|
21
21
|
const keyOf = (e) => JSON.stringify([e.runId, e.ts, e.action, typeof e.actor?.id === 'string' ? e.actor.id : null, e.detail ?? null]);
|
|
22
22
|
export class PersonNotesIndex {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notes-index.js","sourceRoot":"","sources":["../../src/working-doc/notes-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAmC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"notes-index.js","sourceRoot":"","sources":["../../src/working-doc/notes-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAmC,MAAM,kBAAkB,CAAC;AAE1G,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,CAAY,EAAsC,EAAE,CACpE,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC;AAE3H,oGAAoG;AACpG,MAAM,KAAK,GAAG,CAAC,CAAY,EAAU,EAAE,CACrC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC;AAEnH,MAAM,OAAO,gBAAgB;IAKE;IAJZ,KAAK,GAAG,IAAI,GAAG,EAAwB,CAAC;IACjD,KAAK,GAAG,KAAK,CAAC;IACd,OAAO,GAAyC,EAAE,CAAC;IAE3D,YAA6B,SAAiB,aAAa;QAA9B,WAAM,GAAN,MAAM,CAAwB;IAAG,CAAC;IAE/D;gGAC4F;IAC5F,GAAG,CAAC,KAAgB;QAClB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAClC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/C,CAAC;IAED;iHAC6G;IAC7G,OAAO,CAAC,WAAiC;QACvC,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;QAC/B,KAAK,IAAI,CAAC,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;YACpD,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAE,CAAC;YAC1B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAAE,SAAS;YAC3B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACnB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACf,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;QAClC,kHAAkH;QAClH,gDAAgD;QAChD,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC7B,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;gBAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC5F,CAAC;QACD,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC;IACtB,CAAC;IAED,qCAAqC;IACrC,EAAE,CAAC,KAAa;QACd,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;IAEO,IAAI,CAAC,CAAgC;QAC3C,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,IAAI,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;;YAClD,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAE,CAAC;QACtC,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
package/endpoint-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 1,
|
|
3
|
-
"apiTypesVersion": "0.
|
|
3
|
+
"apiTypesVersion": "0.223.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
|
},
|
|
@@ -1074,6 +1091,25 @@
|
|
|
1074
1091
|
400
|
|
1075
1092
|
]
|
|
1076
1093
|
},
|
|
1094
|
+
{
|
|
1095
|
+
"method": "GET",
|
|
1096
|
+
"path": "/api/v1/maintenance",
|
|
1097
|
+
"requestType": null,
|
|
1098
|
+
"responseType": "MaintenanceState",
|
|
1099
|
+
"statusCodes": [
|
|
1100
|
+
200
|
|
1101
|
+
]
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"method": "POST",
|
|
1105
|
+
"path": "/api/v1/maintenance",
|
|
1106
|
+
"requestType": "MaintenanceRequest",
|
|
1107
|
+
"responseType": "MaintenanceState",
|
|
1108
|
+
"statusCodes": [
|
|
1109
|
+
200,
|
|
1110
|
+
400
|
|
1111
|
+
]
|
|
1112
|
+
},
|
|
1077
1113
|
{
|
|
1078
1114
|
"method": "POST",
|
|
1079
1115
|
"path": "/api/v1/mcp-inspect/sessions",
|
|
@@ -1321,6 +1357,7 @@
|
|
|
1321
1357
|
"responseType": "McpServerTestResponse | McpServerTestAgentResponse",
|
|
1322
1358
|
"statusCodes": [
|
|
1323
1359
|
200,
|
|
1360
|
+
403,
|
|
1324
1361
|
404,
|
|
1325
1362
|
409,
|
|
1326
1363
|
503
|
|
@@ -1364,6 +1401,7 @@
|
|
|
1364
1401
|
400,
|
|
1365
1402
|
403,
|
|
1366
1403
|
404,
|
|
1404
|
+
409,
|
|
1367
1405
|
503
|
|
1368
1406
|
]
|
|
1369
1407
|
},
|
|
@@ -1632,6 +1670,31 @@
|
|
|
1632
1670
|
503
|
|
1633
1671
|
]
|
|
1634
1672
|
},
|
|
1673
|
+
{
|
|
1674
|
+
"method": "GET",
|
|
1675
|
+
"path": "/api/v1/projects/:id/graph/boundaries",
|
|
1676
|
+
"requestType": null,
|
|
1677
|
+
"responseType": "ProjectGraphBoundaries",
|
|
1678
|
+
"statusCodes": [
|
|
1679
|
+
200,
|
|
1680
|
+
404,
|
|
1681
|
+
501,
|
|
1682
|
+
503
|
|
1683
|
+
]
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"method": "GET",
|
|
1687
|
+
"path": "/api/v1/projects/:id/graph/path",
|
|
1688
|
+
"requestType": null,
|
|
1689
|
+
"responseType": "ProjectGraphPath",
|
|
1690
|
+
"statusCodes": [
|
|
1691
|
+
200,
|
|
1692
|
+
400,
|
|
1693
|
+
404,
|
|
1694
|
+
501,
|
|
1695
|
+
503
|
|
1696
|
+
]
|
|
1697
|
+
},
|
|
1635
1698
|
{
|
|
1636
1699
|
"method": "POST",
|
|
1637
1700
|
"path": "/api/v1/projects/:id/graph/refresh",
|
|
@@ -1910,6 +1973,18 @@
|
|
|
1910
1973
|
503
|
|
1911
1974
|
]
|
|
1912
1975
|
},
|
|
1976
|
+
{
|
|
1977
|
+
"method": "DELETE",
|
|
1978
|
+
"path": "/api/v1/repos/:id",
|
|
1979
|
+
"requestType": null,
|
|
1980
|
+
"responseType": "UnregisterRepoResponse",
|
|
1981
|
+
"statusCodes": [
|
|
1982
|
+
200,
|
|
1983
|
+
404,
|
|
1984
|
+
409,
|
|
1985
|
+
501
|
|
1986
|
+
]
|
|
1987
|
+
},
|
|
1913
1988
|
{
|
|
1914
1989
|
"method": "GET",
|
|
1915
1990
|
"path": "/api/v1/repos/:id/contributors",
|
|
@@ -2075,7 +2150,8 @@
|
|
|
2075
2150
|
404,
|
|
2076
2151
|
409,
|
|
2077
2152
|
422,
|
|
2078
|
-
501
|
|
2153
|
+
501,
|
|
2154
|
+
503
|
|
2079
2155
|
]
|
|
2080
2156
|
},
|
|
2081
2157
|
{
|
|
@@ -2283,7 +2359,8 @@
|
|
|
2283
2359
|
400,
|
|
2284
2360
|
404,
|
|
2285
2361
|
409,
|
|
2286
|
-
501
|
|
2362
|
+
501,
|
|
2363
|
+
503
|
|
2287
2364
|
]
|
|
2288
2365
|
},
|
|
2289
2366
|
{
|
|
@@ -2360,6 +2437,18 @@
|
|
|
2360
2437
|
"responseType": null,
|
|
2361
2438
|
"statusCodes": []
|
|
2362
2439
|
},
|
|
2440
|
+
{
|
|
2441
|
+
"method": "GET",
|
|
2442
|
+
"path": "/api/v1/runs/:id/pr",
|
|
2443
|
+
"requestType": null,
|
|
2444
|
+
"responseType": "RunPullRequest",
|
|
2445
|
+
"statusCodes": [
|
|
2446
|
+
200,
|
|
2447
|
+
404,
|
|
2448
|
+
409,
|
|
2449
|
+
500
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
2363
2452
|
{
|
|
2364
2453
|
"method": "POST",
|
|
2365
2454
|
"path": "/api/v1/runs/:id/reassign",
|
|
@@ -2372,6 +2461,19 @@
|
|
|
2372
2461
|
409
|
|
2373
2462
|
]
|
|
2374
2463
|
},
|
|
2464
|
+
{
|
|
2465
|
+
"method": "POST",
|
|
2466
|
+
"path": "/api/v1/runs/:id/redeliver",
|
|
2467
|
+
"requestType": null,
|
|
2468
|
+
"responseType": "RedeliverRunResult",
|
|
2469
|
+
"statusCodes": [
|
|
2470
|
+
200,
|
|
2471
|
+
404,
|
|
2472
|
+
409,
|
|
2473
|
+
500,
|
|
2474
|
+
501
|
|
2475
|
+
]
|
|
2476
|
+
},
|
|
2375
2477
|
{
|
|
2376
2478
|
"method": "POST",
|
|
2377
2479
|
"path": "/api/v1/runs/:id/reshape",
|
|
@@ -2402,9 +2504,15 @@
|
|
|
2402
2504
|
{
|
|
2403
2505
|
"method": "POST",
|
|
2404
2506
|
"path": "/api/v1/runs/:id/resume",
|
|
2405
|
-
"requestType":
|
|
2507
|
+
"requestType": "ResumeRequest",
|
|
2406
2508
|
"responseType": null,
|
|
2407
|
-
"statusCodes": [
|
|
2509
|
+
"statusCodes": [
|
|
2510
|
+
200,
|
|
2511
|
+
400,
|
|
2512
|
+
404,
|
|
2513
|
+
409,
|
|
2514
|
+
503
|
|
2515
|
+
]
|
|
2408
2516
|
},
|
|
2409
2517
|
{
|
|
2410
2518
|
"method": "POST",
|
|
@@ -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.",
|
|
3
3
|
"cases": [
|
|
4
4
|
{
|
|
5
5
|
"id": "p1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.20",
|
|
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.48",
|
|
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.223.0",
|
|
85
|
+
"wicked-studio": "^0.16.16"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=22.12.0"
|
|
@@ -1,9 +1,11 @@
|
|
|
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 { parseCsv, parseXlsx, detectHeader, columnNames, inferType, tableNameFor } from './upload-parse.mjs';
|
|
7
9
|
// One UTF-8 decoder for the whole request: a character split across two pipe chunks stays one.
|
|
8
10
|
process.stdin.setEncoding('utf8');
|
|
9
11
|
let input = '';
|
|
@@ -16,21 +18,33 @@ try {
|
|
|
16
18
|
if (typeof DatabaseSync.prototype.setAuthorizer !== 'function' || typeof DatabaseSync.prototype.enableDefensive !== 'function') {
|
|
17
19
|
throw new Error('SQLite sources need Node.js 24.12, 25.1 or later (the authorizer and defensive mode)');
|
|
18
20
|
}
|
|
19
|
-
if (req.op === '
|
|
20
|
-
//
|
|
21
|
+
if (req.op === 'ingest') {
|
|
22
|
+
// Parsing and inference share the snapshot writer's killable process (crew#1289).
|
|
23
|
+
const data = await readFile(req.input);
|
|
24
|
+
const rows = req.kind === 'xlsx' ? parseXlsx(data, req.limits) : parseCsv(data.toString('utf8').replace(/^/, ''), req.limits);
|
|
25
|
+
if (rows.length === 0) throw { code: 'empty', message: 'the file has no rows' };
|
|
26
|
+
const detected = detectHeader(rows, req.header);
|
|
27
|
+
const width = rows.reduce((w, r) => Math.max(w, r.length), 0);
|
|
28
|
+
const names = columnNames(rows[0], width, detected);
|
|
29
|
+
const body = detected ? rows.slice(1) : rows;
|
|
30
|
+
if (body.length > req.limits.rows) throw { code: 'too_many_rows', message: `the file has more than ${req.limits.rows} rows` };
|
|
31
|
+
const types = names.map((_n, i) => inferType((function* () {
|
|
32
|
+
for (const r of body) yield r[i] ?? '';
|
|
33
|
+
})()));
|
|
34
|
+
const table = tableNameFor(req.filename);
|
|
21
35
|
const quote = (n) => '"' + String(n).replace(/"/g, '""') + '"';
|
|
22
36
|
const w = new DatabaseSync(req.path, { enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
|
|
23
37
|
try {
|
|
24
|
-
w.exec('CREATE TABLE ' + quote(
|
|
25
|
-
const ins = w.prepare('INSERT INTO ' + quote(
|
|
38
|
+
w.exec('CREATE TABLE ' + quote(table) + ' (' + names.map((n, i) => quote(n) + ' ' + types[i]).join(', ') + ')');
|
|
39
|
+
const ins = w.prepare('INSERT INTO ' + quote(table) + ' VALUES (' + names.map(() => '?').join(', ') + ')');
|
|
26
40
|
w.exec('BEGIN');
|
|
27
|
-
for (const r of
|
|
28
|
-
ins.run(...
|
|
41
|
+
for (const r of body) {
|
|
42
|
+
ins.run(...names.map((_n, i) => {
|
|
29
43
|
const raw = r[i] ?? '';
|
|
30
44
|
const v = raw.trim();
|
|
31
45
|
if (v === '') return null;
|
|
32
|
-
if (
|
|
33
|
-
if (
|
|
46
|
+
if (types[i] === 'INTEGER') return BigInt(v);
|
|
47
|
+
if (types[i] === 'REAL') return Number(v);
|
|
34
48
|
return raw;
|
|
35
49
|
}));
|
|
36
50
|
}
|
|
@@ -38,7 +52,9 @@ try {
|
|
|
38
52
|
} finally {
|
|
39
53
|
w.close();
|
|
40
54
|
}
|
|
41
|
-
|
|
55
|
+
// Exit only once the answer is written: a pipe write is async on macOS, and an exit before it drains cuts
|
|
56
|
+
// anything past 64 KiB (a wide 20-row preview) (crew#1721 coord r1).
|
|
57
|
+
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));
|
|
42
58
|
process.exit(0);
|
|
43
59
|
}
|
|
44
60
|
const db = new DatabaseSync(req.uri, { readOnly: true, enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
|
|
@@ -106,5 +122,6 @@ try {
|
|
|
106
122
|
}
|
|
107
123
|
}
|
|
108
124
|
} catch (e) {
|
|
109
|
-
|
|
125
|
+
const refused = !(e instanceof Error) && typeof e?.code === 'string';
|
|
126
|
+
out({ ok: false, ...(refused ? { refused: true, code: e.code } : {}), error: String(e && e.message || e) });
|
|
110
127
|
}
|
|
@@ -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;
|