wicked-crew 0.16.12 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/api/audit-view.d.ts +24 -0
- package/dist/api/audit-view.d.ts.map +1 -0
- package/dist/api/audit-view.js +70 -0
- package/dist/api/audit-view.js.map +1 -0
- package/dist/api/auth.d.ts +42 -2
- package/dist/api/auth.d.ts.map +1 -1
- package/dist/api/auth.js +157 -18
- package/dist/api/auth.js.map +1 -1
- package/dist/api/capture.d.ts +12 -59
- package/dist/api/capture.d.ts.map +1 -1
- package/dist/api/capture.js +9 -17
- package/dist/api/capture.js.map +1 -1
- package/dist/api/chat-context.d.ts +6 -62
- package/dist/api/chat-context.d.ts.map +1 -1
- package/dist/api/chat-context.js +6 -12
- package/dist/api/chat-context.js.map +1 -1
- package/dist/api/chat-history.d.ts +6 -0
- package/dist/api/chat-history.d.ts.map +1 -1
- package/dist/api/chat-history.js +21 -0
- package/dist/api/chat-history.js.map +1 -1
- package/dist/api/chat-mcp.d.ts +37 -0
- package/dist/api/chat-mcp.d.ts.map +1 -1
- package/dist/api/chat-mcp.js +118 -2
- package/dist/api/chat-mcp.js.map +1 -1
- package/dist/api/chat-proposals.d.ts +82 -155
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +254 -28
- package/dist/api/chat-proposals.js.map +1 -1
- package/dist/api/delivery-assurance.d.ts +3 -1
- package/dist/api/delivery-assurance.d.ts.map +1 -1
- package/dist/api/delivery-assurance.js +17 -0
- package/dist/api/delivery-assurance.js.map +1 -1
- package/dist/api/delivery-freeze.d.ts +2 -8
- package/dist/api/delivery-freeze.d.ts.map +1 -1
- package/dist/api/delivery-freeze.js +2 -4
- package/dist/api/delivery-freeze.js.map +1 -1
- package/dist/api/eval-sample.d.ts +18 -114
- package/dist/api/eval-sample.d.ts.map +1 -1
- package/dist/api/eval-sample.js +7 -13
- package/dist/api/eval-sample.js.map +1 -1
- package/dist/api/governance-steering.d.ts +27 -71
- package/dist/api/governance-steering.d.ts.map +1 -1
- package/dist/api/governance-steering.js +11 -19
- package/dist/api/governance-steering.js.map +1 -1
- package/dist/api/mcp.d.ts +159 -199
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +433 -68
- package/dist/api/mcp.js.map +1 -1
- package/dist/api/needs.d.ts +10 -0
- package/dist/api/needs.d.ts.map +1 -1
- package/dist/api/needs.js +77 -0
- package/dist/api/needs.js.map +1 -1
- package/dist/api/open-path.d.ts +10 -0
- package/dist/api/open-path.d.ts.map +1 -1
- package/dist/api/open-path.js +58 -1
- package/dist/api/open-path.js.map +1 -1
- package/dist/api/plan-schema.d.ts +8 -51
- package/dist/api/plan-schema.d.ts.map +1 -1
- package/dist/api/plan-schema.js +6 -6
- package/dist/api/plan-schema.js.map +1 -1
- package/dist/api/product.d.ts +3 -22
- package/dist/api/product.d.ts.map +1 -1
- package/dist/api/product.js +4 -6
- package/dist/api/product.js.map +1 -1
- package/dist/api/project-aggregates.d.ts +12 -20
- package/dist/api/project-aggregates.d.ts.map +1 -1
- package/dist/api/project-aggregates.js +3 -3
- package/dist/api/project-aggregates.js.map +1 -1
- package/dist/api/recording.d.ts +10 -37
- package/dist/api/recording.d.ts.map +1 -1
- package/dist/api/recording.js +9 -11
- package/dist/api/recording.js.map +1 -1
- package/dist/api/routes.d.ts +173 -1507
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +660 -139
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-timing-index.d.ts +18 -0
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +34 -0
- package/dist/api/run-timing-index.js.map +1 -1
- package/dist/api/seat-images.d.ts +10 -0
- package/dist/api/seat-images.d.ts.map +1 -1
- package/dist/api/seat-images.js +16 -3
- package/dist/api/seat-images.js.map +1 -1
- package/dist/api/server-error-body.d.ts +44 -0
- package/dist/api/server-error-body.d.ts.map +1 -0
- package/dist/api/server-error-body.js +206 -0
- package/dist/api/server-error-body.js.map +1 -0
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +276 -4
- package/dist/api/server.js.map +1 -1
- package/dist/api/skills.d.ts +12 -36
- package/dist/api/skills.d.ts.map +1 -1
- package/dist/api/skills.js +12 -15
- package/dist/api/skills.js.map +1 -1
- package/dist/api/system-snapshot.d.ts +1 -5
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +7 -15
- package/dist/api/system-snapshot.js.map +1 -1
- package/dist/api/testing.d.ts +29 -50
- package/dist/api/testing.d.ts.map +1 -1
- package/dist/api/testing.js +7 -13
- package/dist/api/testing.js.map +1 -1
- package/dist/apps/actions/api-action.d.ts +47 -0
- package/dist/apps/actions/api-action.d.ts.map +1 -0
- package/dist/apps/actions/api-action.js +135 -0
- package/dist/apps/actions/api-action.js.map +1 -0
- package/dist/apps/actions/pg-fit.d.ts +27 -0
- package/dist/apps/actions/pg-fit.d.ts.map +1 -0
- package/dist/apps/actions/pg-fit.js +35 -0
- package/dist/apps/actions/pg-fit.js.map +1 -0
- package/dist/apps/actions/pg-write.d.ts +84 -0
- package/dist/apps/actions/pg-write.d.ts.map +1 -0
- package/dist/apps/actions/pg-write.js +161 -0
- package/dist/apps/actions/pg-write.js.map +1 -0
- package/dist/apps/actions/store.d.ts +109 -0
- package/dist/apps/actions/store.d.ts.map +1 -0
- package/dist/apps/actions/store.js +182 -0
- package/dist/apps/actions/store.js.map +1 -0
- package/dist/apps/actions/values.d.ts +59 -0
- package/dist/apps/actions/values.d.ts.map +1 -0
- package/dist/apps/actions/values.js +315 -0
- package/dist/apps/actions/values.js.map +1 -0
- package/dist/apps/actions/write-path.d.ts +103 -0
- package/dist/apps/actions/write-path.d.ts.map +1 -0
- package/dist/apps/actions/write-path.js +576 -0
- package/dist/apps/actions/write-path.js.map +1 -0
- package/dist/apps/check.d.ts +112 -0
- package/dist/apps/check.d.ts.map +1 -0
- package/dist/apps/check.js +358 -0
- package/dist/apps/check.js.map +1 -0
- package/dist/apps/exec/arg-types.d.ts +56 -0
- package/dist/apps/exec/arg-types.d.ts.map +1 -0
- package/dist/apps/exec/arg-types.js +234 -0
- package/dist/apps/exec/arg-types.js.map +1 -0
- package/dist/apps/exec/cache.d.ts +46 -0
- package/dist/apps/exec/cache.d.ts.map +1 -0
- package/dist/apps/exec/cache.js +93 -0
- package/dist/apps/exec/cache.js.map +1 -0
- package/dist/apps/exec/contract.d.ts +83 -0
- package/dist/apps/exec/contract.d.ts.map +1 -0
- package/dist/apps/exec/contract.js +220 -0
- package/dist/apps/exec/contract.js.map +1 -0
- package/dist/apps/exec/executor.d.ts +122 -0
- package/dist/apps/exec/executor.d.ts.map +1 -0
- package/dist/apps/exec/executor.js +455 -0
- package/dist/apps/exec/executor.js.map +1 -0
- package/dist/apps/exec/limits.d.ts +25 -0
- package/dist/apps/exec/limits.d.ts.map +1 -0
- package/dist/apps/exec/limits.js +71 -0
- package/dist/apps/exec/limits.js.map +1 -0
- package/dist/apps/exec/params.d.ts +34 -0
- package/dist/apps/exec/params.d.ts.map +1 -0
- package/dist/apps/exec/params.js +97 -0
- package/dist/apps/exec/params.js.map +1 -0
- package/dist/apps/exec/project.d.ts +67 -0
- package/dist/apps/exec/project.d.ts.map +1 -0
- package/dist/apps/exec/project.js +299 -0
- package/dist/apps/exec/project.js.map +1 -0
- package/dist/apps/exec/recall.d.ts +88 -0
- package/dist/apps/exec/recall.d.ts.map +1 -0
- package/dist/apps/exec/recall.js +301 -0
- package/dist/apps/exec/recall.js.map +1 -0
- package/dist/apps/exec/source-stage.d.ts +61 -0
- package/dist/apps/exec/source-stage.d.ts.map +1 -0
- package/dist/apps/exec/source-stage.js +540 -0
- package/dist/apps/exec/source-stage.js.map +1 -0
- package/dist/apps/exec/sources.d.ts +65 -0
- package/dist/apps/exec/sources.d.ts.map +1 -0
- package/dist/apps/exec/sources.js +77 -0
- package/dist/apps/exec/sources.js.map +1 -0
- package/dist/apps/exec/texts.d.ts +140 -0
- package/dist/apps/exec/texts.d.ts.map +1 -0
- package/dist/apps/exec/texts.js +76 -0
- package/dist/apps/exec/texts.js.map +1 -0
- package/dist/apps/exec/viewer.d.ts +11 -0
- package/dist/apps/exec/viewer.d.ts.map +1 -0
- package/dist/apps/exec/viewer.js +26 -0
- package/dist/apps/exec/viewer.js.map +1 -0
- package/dist/apps/git.d.ts +109 -0
- package/dist/apps/git.d.ts.map +1 -0
- package/dist/apps/git.js +361 -0
- package/dist/apps/git.js.map +1 -0
- package/dist/apps/publish/image.d.ts +25 -0
- package/dist/apps/publish/image.d.ts.map +1 -0
- package/dist/apps/publish/image.js +86 -0
- package/dist/apps/publish/image.js.map +1 -0
- package/dist/apps/publish/layout.d.ts +41 -0
- package/dist/apps/publish/layout.d.ts.map +1 -0
- package/dist/apps/publish/layout.js +31 -0
- package/dist/apps/publish/layout.js.map +1 -0
- package/dist/apps/publish/manifest.d.ts +64 -0
- package/dist/apps/publish/manifest.d.ts.map +1 -0
- package/dist/apps/publish/manifest.js +282 -0
- package/dist/apps/publish/manifest.js.map +1 -0
- package/dist/apps/publish/pack.d.ts +40 -0
- package/dist/apps/publish/pack.d.ts.map +1 -0
- package/dist/apps/publish/pack.js +78 -0
- package/dist/apps/publish/pack.js.map +1 -0
- package/dist/apps/routes.d.ts +103 -0
- package/dist/apps/routes.d.ts.map +1 -0
- package/dist/apps/routes.js +440 -0
- package/dist/apps/routes.js.map +1 -0
- package/dist/apps/spec.d.ts +691 -0
- package/dist/apps/spec.d.ts.map +1 -0
- package/dist/apps/spec.js +839 -0
- package/dist/apps/spec.js.map +1 -0
- package/dist/apps/store.d.ts +341 -0
- package/dist/apps/store.d.ts.map +1 -0
- package/dist/apps/store.js +905 -0
- package/dist/apps/store.js.map +1 -0
- package/dist/apps/turns.d.ts +169 -0
- package/dist/apps/turns.d.ts.map +1 -0
- package/dist/apps/turns.js +556 -0
- package/dist/apps/turns.js.map +1 -0
- package/dist/apps/views.d.ts +44 -0
- package/dist/apps/views.d.ts.map +1 -0
- package/dist/apps/views.js +53 -0
- package/dist/apps/views.js.map +1 -0
- package/dist/campaigns/routes.d.ts +22 -94
- package/dist/campaigns/routes.d.ts.map +1 -1
- package/dist/campaigns/routes.js +8 -14
- package/dist/campaigns/routes.js.map +1 -1
- package/dist/cli/apps-check.d.ts +43 -0
- package/dist/cli/apps-check.d.ts.map +1 -0
- package/dist/cli/apps-check.js +166 -0
- package/dist/cli/apps-check.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +9 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp.js +2 -2
- package/dist/cli/mcp.js.map +1 -1
- package/dist/core/adapter.d.ts +23 -0
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +49 -1
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/deliver-text.d.ts +25 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +50 -5
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +6 -0
- package/dist/core/deliver.js.map +1 -1
- package/dist/core/estate-mcp-client.d.ts +9 -0
- package/dist/core/estate-mcp-client.d.ts.map +1 -1
- package/dist/core/estate-mcp-client.js +31 -3
- package/dist/core/estate-mcp-client.js.map +1 -1
- package/dist/core/linked-issues.d.ts +51 -3
- package/dist/core/linked-issues.d.ts.map +1 -1
- package/dist/core/linked-issues.js +59 -14
- package/dist/core/linked-issues.js.map +1 -1
- package/dist/core/run-boot-resume.d.ts +4 -1
- package/dist/core/run-boot-resume.d.ts.map +1 -1
- package/dist/core/run-boot-resume.js +6 -1
- package/dist/core/run-boot-resume.js.map +1 -1
- package/dist/decisions/chat-recorder.js +1 -1
- package/dist/decisions/chat-recorder.js.map +1 -1
- package/dist/decisions/routes.d.ts.map +1 -1
- package/dist/decisions/routes.js +5 -9
- package/dist/decisions/routes.js.map +1 -1
- package/dist/decisions/rules-brief.d.ts +76 -0
- package/dist/decisions/rules-brief.d.ts.map +1 -0
- package/dist/decisions/rules-brief.js +179 -0
- package/dist/decisions/rules-brief.js.map +1 -0
- package/dist/editors/csp.d.ts +24 -4
- package/dist/editors/csp.d.ts.map +1 -1
- package/dist/editors/csp.js +35 -8
- package/dist/editors/csp.js.map +1 -1
- package/dist/editors/registry.d.ts +97 -258
- package/dist/editors/registry.d.ts.map +1 -1
- package/dist/editors/registry.js +11 -11
- package/dist/editors/registry.js.map +1 -1
- package/dist/editors/routes.d.ts +4 -1
- package/dist/editors/routes.d.ts.map +1 -1
- package/dist/editors/routes.js +33 -6
- package/dist/editors/routes.js.map +1 -1
- package/dist/editors/webrtc-guard.d.ts +94 -0
- package/dist/editors/webrtc-guard.d.ts.map +1 -0
- package/dist/editors/webrtc-guard.js +506 -0
- package/dist/editors/webrtc-guard.js.map +1 -0
- package/dist/evals/routes.d.ts.map +1 -1
- package/dist/evals/routes.js +3 -5
- package/dist/evals/routes.js.map +1 -1
- package/dist/insights/routes.js +2 -2
- package/dist/insights/routes.js.map +1 -1
- package/dist/interactive/bridge-pool.d.ts +11 -2
- package/dist/interactive/bridge-pool.d.ts.map +1 -1
- package/dist/interactive/bridge-pool.js +10 -1
- package/dist/interactive/bridge-pool.js.map +1 -1
- package/dist/interactive/doc-binding.d.ts +156 -0
- package/dist/interactive/doc-binding.d.ts.map +1 -0
- package/dist/interactive/doc-binding.js +277 -0
- package/dist/interactive/doc-binding.js.map +1 -0
- package/dist/interactive/doc-delete-routes.d.ts +3 -0
- package/dist/interactive/doc-delete-routes.d.ts.map +1 -1
- package/dist/interactive/doc-delete-routes.js +4 -0
- package/dist/interactive/doc-delete-routes.js.map +1 -1
- package/dist/interactive/draft-events.d.ts +89 -3
- package/dist/interactive/draft-events.d.ts.map +1 -1
- package/dist/interactive/draft-events.js +438 -27
- package/dist/interactive/draft-events.js.map +1 -1
- package/dist/interactive/edit-events.d.ts +2 -0
- package/dist/interactive/edit-events.d.ts.map +1 -1
- package/dist/interactive/edit-events.js +11 -0
- package/dist/interactive/edit-events.js.map +1 -1
- package/dist/interactive/proposal-create.d.ts +143 -0
- package/dist/interactive/proposal-create.d.ts.map +1 -0
- package/dist/interactive/proposal-create.js +318 -0
- package/dist/interactive/proposal-create.js.map +1 -0
- package/dist/interactive/proxy-routes.d.ts +60 -3
- package/dist/interactive/proxy-routes.d.ts.map +1 -1
- package/dist/interactive/proxy-routes.js +285 -10
- package/dist/interactive/proxy-routes.js.map +1 -1
- package/dist/interactive/source-packet.d.ts +126 -0
- package/dist/interactive/source-packet.d.ts.map +1 -0
- package/dist/interactive/source-packet.js +482 -0
- package/dist/interactive/source-packet.js.map +1 -0
- package/dist/interactive/ws-relay.d.ts +3 -9
- package/dist/interactive/ws-relay.d.ts.map +1 -1
- package/dist/interactive/ws-relay.js +4 -6
- package/dist/interactive/ws-relay.js.map +1 -1
- package/dist/knowledge/adapters/native.d.ts +44 -0
- package/dist/knowledge/adapters/native.d.ts.map +1 -0
- package/dist/knowledge/adapters/native.js +60 -0
- package/dist/knowledge/adapters/native.js.map +1 -0
- package/dist/knowledge/adapters/toolbox/binary.d.ts +48 -0
- package/dist/knowledge/adapters/toolbox/binary.d.ts.map +1 -0
- package/dist/knowledge/adapters/toolbox/binary.js +145 -0
- package/dist/knowledge/adapters/toolbox/binary.js.map +1 -0
- package/dist/knowledge/adapters/toolbox/catalog.d.ts +22 -0
- package/dist/knowledge/adapters/toolbox/catalog.d.ts.map +1 -0
- package/dist/knowledge/adapters/toolbox/catalog.js +87 -0
- package/dist/knowledge/adapters/toolbox/catalog.js.map +1 -0
- package/dist/knowledge/adapters/toolbox/document.d.ts +71 -0
- package/dist/knowledge/adapters/toolbox/document.d.ts.map +1 -0
- package/dist/knowledge/adapters/toolbox/document.js +165 -0
- package/dist/knowledge/adapters/toolbox/document.js.map +1 -0
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts +142 -0
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -0
- package/dist/knowledge/adapters/toolbox/supervisor.js +438 -0
- package/dist/knowledge/adapters/toolbox/supervisor.js.map +1 -0
- package/dist/knowledge/gate/access.d.ts +36 -0
- package/dist/knowledge/gate/access.d.ts.map +1 -0
- package/dist/knowledge/gate/access.js +46 -0
- package/dist/knowledge/gate/access.js.map +1 -0
- package/dist/knowledge/gate/envelope.d.ts +67 -0
- package/dist/knowledge/gate/envelope.d.ts.map +1 -0
- package/dist/knowledge/gate/envelope.js +96 -0
- package/dist/knowledge/gate/envelope.js.map +1 -0
- package/dist/knowledge/gate/gate.d.ts +238 -0
- package/dist/knowledge/gate/gate.d.ts.map +1 -0
- package/dist/knowledge/gate/gate.js +782 -0
- package/dist/knowledge/gate/gate.js.map +1 -0
- package/dist/knowledge/gate/pg.d.ts +57 -0
- package/dist/knowledge/gate/pg.d.ts.map +1 -0
- package/dist/knowledge/gate/pg.js +94 -0
- package/dist/knowledge/gate/pg.js.map +1 -0
- package/dist/knowledge/gate/record.d.ts +77 -0
- package/dist/knowledge/gate/record.d.ts.map +1 -0
- package/dist/knowledge/gate/record.js +205 -0
- package/dist/knowledge/gate/record.js.map +1 -0
- package/dist/knowledge/gate/routes.d.ts +38 -0
- package/dist/knowledge/gate/routes.d.ts.map +1 -0
- package/dist/knowledge/gate/routes.js +102 -0
- package/dist/knowledge/gate/routes.js.map +1 -0
- package/dist/knowledge/gate/scheduler.d.ts +90 -0
- package/dist/knowledge/gate/scheduler.d.ts.map +1 -0
- package/dist/knowledge/gate/scheduler.js +224 -0
- package/dist/knowledge/gate/scheduler.js.map +1 -0
- package/dist/knowledge/gate/sources.d.ts +69 -0
- package/dist/knowledge/gate/sources.d.ts.map +1 -0
- package/dist/knowledge/gate/sources.js +135 -0
- package/dist/knowledge/gate/sources.js.map +1 -0
- package/dist/knowledge/package.d.ts +136 -0
- package/dist/knowledge/package.d.ts.map +1 -0
- package/dist/knowledge/package.js +148 -0
- package/dist/knowledge/package.js.map +1 -0
- package/dist/knowledge/projector.d.ts +144 -0
- package/dist/knowledge/projector.d.ts.map +1 -0
- package/dist/knowledge/projector.js +287 -0
- package/dist/knowledge/projector.js.map +1 -0
- package/dist/knowledge/registry/entry.d.ts +177 -0
- package/dist/knowledge/registry/entry.d.ts.map +1 -0
- package/dist/knowledge/registry/entry.js +126 -0
- package/dist/knowledge/registry/entry.js.map +1 -0
- package/dist/knowledge/registry/policy.d.ts +79 -0
- package/dist/knowledge/registry/policy.d.ts.map +1 -0
- package/dist/knowledge/registry/policy.js +139 -0
- package/dist/knowledge/registry/policy.js.map +1 -0
- package/dist/knowledge/shapes/code-search.d.ts +55 -0
- package/dist/knowledge/shapes/code-search.d.ts.map +1 -0
- package/dist/knowledge/shapes/code-search.js +88 -0
- package/dist/knowledge/shapes/code-search.js.map +1 -0
- package/dist/knowledge/shapes/map.d.ts +25 -0
- package/dist/knowledge/shapes/map.d.ts.map +1 -0
- package/dist/knowledge/shapes/map.js +187 -0
- package/dist/knowledge/shapes/map.js.map +1 -0
- package/dist/knowledge/shapes/profile.d.ts +117 -0
- package/dist/knowledge/shapes/profile.d.ts.map +1 -0
- package/dist/knowledge/shapes/profile.js +264 -0
- package/dist/knowledge/shapes/profile.js.map +1 -0
- package/dist/knowledge/shapes/routes.d.ts +69 -0
- package/dist/knowledge/shapes/routes.d.ts.map +1 -0
- package/dist/knowledge/shapes/routes.js +270 -0
- package/dist/knowledge/shapes/routes.js.map +1 -0
- package/dist/knowledge/shapes/shapes.d.ts +144 -0
- package/dist/knowledge/shapes/shapes.d.ts.map +1 -0
- package/dist/knowledge/shapes/shapes.js +280 -0
- package/dist/knowledge/shapes/shapes.js.map +1 -0
- package/dist/knowledge/shapes/verified.d.ts +36 -0
- package/dist/knowledge/shapes/verified.d.ts.map +1 -0
- package/dist/knowledge/shapes/verified.js +73 -0
- package/dist/knowledge/shapes/verified.js.map +1 -0
- package/dist/knowledge/summary.d.ts +45 -0
- package/dist/knowledge/summary.d.ts.map +1 -0
- package/dist/knowledge/summary.js +119 -0
- package/dist/knowledge/summary.js.map +1 -0
- package/dist/knowledge/trackers/actions.d.ts +55 -0
- package/dist/knowledge/trackers/actions.d.ts.map +1 -0
- package/dist/knowledge/trackers/actions.js +327 -0
- package/dist/knowledge/trackers/actions.js.map +1 -0
- package/dist/knowledge/trackers/addresses.d.ts +45 -0
- package/dist/knowledge/trackers/addresses.d.ts.map +1 -0
- package/dist/knowledge/trackers/addresses.js +59 -0
- package/dist/knowledge/trackers/addresses.js.map +1 -0
- package/dist/knowledge/trackers/bindings.d.ts +190 -0
- package/dist/knowledge/trackers/bindings.d.ts.map +1 -0
- package/dist/knowledge/trackers/bindings.js +970 -0
- package/dist/knowledge/trackers/bindings.js.map +1 -0
- package/dist/knowledge/trackers/gate-pm.d.ts +160 -0
- package/dist/knowledge/trackers/gate-pm.d.ts.map +1 -0
- package/dist/knowledge/trackers/gate-pm.js +427 -0
- package/dist/knowledge/trackers/gate-pm.js.map +1 -0
- package/dist/knowledge/trackers/issues.d.ts +69 -0
- package/dist/knowledge/trackers/issues.d.ts.map +1 -0
- package/dist/knowledge/trackers/issues.js +193 -0
- package/dist/knowledge/trackers/issues.js.map +1 -0
- package/dist/knowledge/trackers/map.d.ts +23 -0
- package/dist/knowledge/trackers/map.d.ts.map +1 -0
- package/dist/knowledge/trackers/map.js +130 -0
- package/dist/knowledge/trackers/map.js.map +1 -0
- package/dist/knowledge/trackers/projector.d.ts +113 -0
- package/dist/knowledge/trackers/projector.d.ts.map +1 -0
- package/dist/knowledge/trackers/projector.js +274 -0
- package/dist/knowledge/trackers/projector.js.map +1 -0
- package/dist/knowledge/trackers/routes.d.ts +107 -0
- package/dist/knowledge/trackers/routes.d.ts.map +1 -0
- package/dist/knowledge/trackers/routes.js +563 -0
- package/dist/knowledge/trackers/routes.js.map +1 -0
- package/dist/knowledge/trackers/set.d.ts +61 -0
- package/dist/knowledge/trackers/set.d.ts.map +1 -0
- package/dist/knowledge/trackers/set.js +77 -0
- package/dist/knowledge/trackers/set.js.map +1 -0
- package/dist/knowledge/trackers/view.d.ts +22 -0
- package/dist/knowledge/trackers/view.d.ts.map +1 -0
- package/dist/knowledge/trackers/view.js +31 -0
- package/dist/knowledge/trackers/view.js.map +1 -0
- package/dist/knowledge/trackers/visible.d.ts +9 -0
- package/dist/knowledge/trackers/visible.d.ts.map +1 -0
- package/dist/knowledge/trackers/visible.js +10 -0
- package/dist/knowledge/trackers/visible.js.map +1 -0
- package/dist/learn/routes.d.ts +3 -17
- package/dist/learn/routes.d.ts.map +1 -1
- package/dist/learn/routes.js +4 -6
- package/dist/learn/routes.js.map +1 -1
- package/dist/mcp/ask-server.d.ts +6 -0
- package/dist/mcp/ask-server.d.ts.map +1 -1
- package/dist/mcp/ask-server.js +15 -9
- package/dist/mcp/ask-server.js.map +1 -1
- package/dist/mcp/broker.d.ts +16 -0
- package/dist/mcp/broker.d.ts.map +1 -1
- package/dist/mcp/broker.js +137 -3
- package/dist/mcp/broker.js.map +1 -1
- package/dist/mcp/estate-relay.d.ts +50 -2
- package/dist/mcp/estate-relay.d.ts.map +1 -1
- package/dist/mcp/estate-relay.js +126 -4
- package/dist/mcp/estate-relay.js.map +1 -1
- package/dist/mcp/invoke.d.ts +12 -1
- package/dist/mcp/invoke.d.ts.map +1 -1
- package/dist/mcp/invoke.js +5 -2
- package/dist/mcp/invoke.js.map +1 -1
- package/dist/mcp/probe.d.ts +34 -2
- package/dist/mcp/probe.d.ts.map +1 -1
- package/dist/mcp/probe.js +51 -9
- package/dist/mcp/probe.js.map +1 -1
- package/dist/mcp/registry-store.d.ts +91 -0
- package/dist/mcp/registry-store.d.ts.map +1 -1
- package/dist/mcp/registry-store.js +116 -9
- package/dist/mcp/registry-store.js.map +1 -1
- package/dist/mcp/registry.d.ts +249 -6
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +735 -35
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/rest.d.ts +36 -10
- package/dist/mcp/rest.d.ts.map +1 -1
- package/dist/mcp/rest.js +71 -73
- package/dist/mcp/rest.js.map +1 -1
- package/dist/mcp/tool-list.d.ts +7 -0
- package/dist/mcp/tool-list.d.ts.map +1 -1
- package/dist/mcp/tool-list.js +32 -4
- package/dist/mcp/tool-list.js.map +1 -1
- package/dist/mcp-inspect/routes.d.ts +3 -0
- package/dist/mcp-inspect/routes.d.ts.map +1 -1
- package/dist/mcp-inspect/routes.js +31 -18
- package/dist/mcp-inspect/routes.js.map +1 -1
- package/dist/persona/routes.d.ts +14 -69
- package/dist/persona/routes.d.ts.map +1 -1
- package/dist/persona/routes.js +2 -2
- package/dist/persona/routes.js.map +1 -1
- package/dist/persona/store.d.ts +13 -40
- package/dist/persona/store.d.ts.map +1 -1
- package/dist/persona/store.js +9 -11
- package/dist/persona/store.js.map +1 -1
- package/dist/presets/routes.d.ts +3 -21
- package/dist/presets/routes.d.ts.map +1 -1
- package/dist/presets/routes.js +5 -7
- package/dist/presets/routes.js.map +1 -1
- package/dist/projects/repo-guard.d.ts +32 -0
- package/dist/projects/repo-guard.d.ts.map +1 -0
- package/dist/projects/repo-guard.js +46 -0
- package/dist/projects/repo-guard.js.map +1 -0
- package/dist/projects/routes.d.ts +16 -44
- package/dist/projects/routes.d.ts.map +1 -1
- package/dist/projects/routes.js +15 -18
- package/dist/projects/routes.js.map +1 -1
- package/dist/schedules/routes.d.ts +4 -18
- package/dist/schedules/routes.d.ts.map +1 -1
- package/dist/schedules/routes.js +4 -6
- package/dist/schedules/routes.js.map +1 -1
- package/dist/skills/plugin-source.d.ts +6 -5
- package/dist/skills/plugin-source.d.ts.map +1 -1
- package/dist/skills/plugin-source.js +6 -5
- package/dist/skills/plugin-source.js.map +1 -1
- package/dist/sources/ask.d.ts +108 -0
- package/dist/sources/ask.d.ts.map +1 -0
- package/dist/sources/ask.js +251 -0
- package/dist/sources/ask.js.map +1 -0
- package/dist/sources/catalog/mysql.d.ts +9 -0
- package/dist/sources/catalog/mysql.d.ts.map +1 -0
- package/dist/sources/catalog/mysql.js +77 -0
- package/dist/sources/catalog/mysql.js.map +1 -0
- package/dist/sources/catalog/postgres.d.ts +68 -0
- package/dist/sources/catalog/postgres.d.ts.map +1 -0
- package/dist/sources/catalog/postgres.js +164 -0
- package/dist/sources/catalog/postgres.js.map +1 -0
- package/dist/sources/catalog/types.d.ts +53 -0
- package/dist/sources/catalog/types.d.ts.map +1 -0
- package/dist/sources/catalog/types.js +30 -0
- package/dist/sources/catalog/types.js.map +1 -0
- package/dist/sources/connection-test.d.ts +37 -0
- package/dist/sources/connection-test.d.ts.map +1 -0
- package/dist/sources/connection-test.js +101 -0
- package/dist/sources/connection-test.js.map +1 -0
- package/dist/sources/crew-source.d.ts +31 -0
- package/dist/sources/crew-source.d.ts.map +1 -0
- package/dist/sources/crew-source.js +48 -0
- package/dist/sources/crew-source.js.map +1 -0
- package/dist/sources/dialer.d.ts +169 -0
- package/dist/sources/dialer.d.ts.map +1 -0
- package/dist/sources/dialer.js +761 -0
- package/dist/sources/dialer.js.map +1 -0
- package/dist/sources/drivers/mysql.d.ts +52 -0
- package/dist/sources/drivers/mysql.d.ts.map +1 -0
- package/dist/sources/drivers/mysql.js +348 -0
- package/dist/sources/drivers/mysql.js.map +1 -0
- package/dist/sources/drivers/postgres.d.ts +84 -0
- package/dist/sources/drivers/postgres.d.ts.map +1 -0
- package/dist/sources/drivers/postgres.js +381 -0
- package/dist/sources/drivers/postgres.js.map +1 -0
- package/dist/sources/drivers/sqlite.d.ts +47 -0
- package/dist/sources/drivers/sqlite.d.ts.map +1 -0
- package/dist/sources/drivers/sqlite.js +156 -0
- package/dist/sources/drivers/sqlite.js.map +1 -0
- package/dist/sources/drivers/types.d.ts +79 -0
- package/dist/sources/drivers/types.d.ts.map +1 -0
- package/dist/sources/drivers/types.js +31 -0
- package/dist/sources/drivers/types.js.map +1 -0
- package/dist/sources/graphql.d.ts +85 -0
- package/dist/sources/graphql.d.ts.map +1 -0
- package/dist/sources/graphql.js +155 -0
- package/dist/sources/graphql.js.map +1 -0
- package/dist/sources/kinds.d.ts +79 -0
- package/dist/sources/kinds.d.ts.map +1 -0
- package/dist/sources/kinds.js +145 -0
- package/dist/sources/kinds.js.map +1 -0
- package/dist/sources/policy/allowlists.d.ts +30 -0
- package/dist/sources/policy/allowlists.d.ts.map +1 -0
- package/dist/sources/policy/allowlists.js +104 -0
- package/dist/sources/policy/allowlists.js.map +1 -0
- package/dist/sources/policy/index.d.ts +20 -0
- package/dist/sources/policy/index.d.ts.map +1 -0
- package/dist/sources/policy/index.js +34 -0
- package/dist/sources/policy/index.js.map +1 -0
- package/dist/sources/policy/mysql.d.ts +21 -0
- package/dist/sources/policy/mysql.d.ts.map +1 -0
- package/dist/sources/policy/mysql.js +834 -0
- package/dist/sources/policy/mysql.js.map +1 -0
- package/dist/sources/policy/pg.d.ts +37 -0
- package/dist/sources/policy/pg.d.ts.map +1 -0
- package/dist/sources/policy/pg.js +572 -0
- package/dist/sources/policy/pg.js.map +1 -0
- package/dist/sources/policy/sqlite.d.ts +37 -0
- package/dist/sources/policy/sqlite.d.ts.map +1 -0
- package/dist/sources/policy/sqlite.js +94 -0
- package/dist/sources/policy/sqlite.js.map +1 -0
- package/dist/sources/policy/types.d.ts +46 -0
- package/dist/sources/policy/types.d.ts.map +1 -0
- package/dist/sources/policy/types.js +13 -0
- package/dist/sources/policy/types.js.map +1 -0
- package/dist/sources/routes.d.ts +154 -0
- package/dist/sources/routes.d.ts.map +1 -0
- package/dist/sources/routes.js +745 -0
- package/dist/sources/routes.js.map +1 -0
- package/dist/sources/safety/postgres.d.ts +87 -0
- package/dist/sources/safety/postgres.d.ts.map +1 -0
- package/dist/sources/safety/postgres.js +349 -0
- package/dist/sources/safety/postgres.js.map +1 -0
- package/dist/sources/sql.d.ts +51 -0
- package/dist/sources/sql.d.ts.map +1 -0
- package/dist/sources/sql.js +89 -0
- package/dist/sources/sql.js.map +1 -0
- package/dist/sources/store.d.ts +25 -0
- package/dist/sources/store.d.ts.map +1 -0
- package/dist/sources/store.js +59 -0
- package/dist/sources/store.js.map +1 -0
- package/dist/sources/uploads.d.ts +70 -0
- package/dist/sources/uploads.d.ts.map +1 -0
- package/dist/sources/uploads.js +636 -0
- package/dist/sources/uploads.js.map +1 -0
- package/dist/standing-orders/parse.d.ts +38 -0
- package/dist/standing-orders/parse.d.ts.map +1 -1
- package/dist/standing-orders/parse.js +104 -43
- package/dist/standing-orders/parse.js.map +1 -1
- package/dist/standing-orders/routes.d.ts +25 -126
- package/dist/standing-orders/routes.d.ts.map +1 -1
- package/dist/standing-orders/routes.js +4 -6
- package/dist/standing-orders/routes.js.map +1 -1
- package/dist/standing-orders/store.d.ts +22 -73
- package/dist/standing-orders/store.d.ts.map +1 -1
- package/dist/standing-orders/store.js +8 -12
- package/dist/standing-orders/store.js.map +1 -1
- package/dist/studio/assets/KnowledgeGraph-Cpm46tEp.js +1 -0
- package/dist/studio/assets/WickedSansA-Regular-CGPJLyb8.woff2 +0 -0
- package/dist/studio/assets/WickedSansA-SemiBold-Bk9KXUaV.woff2 +0 -0
- package/dist/studio/assets/favicon-BJA6hF2f.svg +1 -0
- package/dist/studio/assets/index-BRBwWQMH.css +32 -0
- package/dist/studio/assets/index-CVrWDGRP.js +1097 -0
- package/dist/studio/assets/wicked-studio-lettering-small-CBwSGqop.svg +2 -0
- package/dist/studio/assets/wicked-studio-wordmark-small-gF5xn6IC.svg +2 -0
- package/dist/studio/editors/wicked-apps/editor.json +45 -0
- package/dist/studio/editors/wicked-apps/icon.svg +1 -0
- package/dist/studio/editors/wicked-apps/index.html +151 -0
- package/dist/studio/editors/wicked-deck/editor.json +1 -1
- package/dist/studio/editors/wicked-deck/index.html +12 -8
- package/dist/studio/editors/wicked-doc/editor.json +1 -1
- package/dist/studio/editors/wicked-doc/index.html +12 -8
- 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 +12 -8
- package/dist/studio/editors/wicked-video/editor.json +1 -1
- package/dist/studio/editors/wicked-video/index.html +1 -1
- package/dist/studio/fonts/LICENSE-WickedSans.txt +97 -0
- package/dist/studio/index.html +3 -2
- package/dist/studio/testid-inventory.json +10850 -6700
- package/dist/team/routes.d.ts +21 -172
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +4 -8
- package/dist/team/routes.js.map +1 -1
- package/dist/voice/dashboard.d.ts +35 -313
- package/dist/voice/dashboard.d.ts.map +1 -1
- package/dist/voice/dashboard.js +10 -10
- package/dist/voice/dashboard.js.map +1 -1
- package/dist/voice/routes.d.ts +2 -6
- package/dist/voice/routes.d.ts.map +1 -1
- package/dist/voice/routes.js +2 -2
- package/dist/voice/routes.js.map +1 -1
- package/dist/watch/checks/check-failed.d.ts +4 -10
- package/dist/watch/checks/check-failed.d.ts.map +1 -1
- package/dist/watch/checks/check-failed.js +6 -8
- package/dist/watch/checks/check-failed.js.map +1 -1
- package/dist/watch/checks/claim-vs-evidence.js +3 -3
- package/dist/watch/checks/claim-vs-evidence.js.map +1 -1
- package/dist/watch/checks/deliver-audit.js +3 -3
- package/dist/watch/checks/deliver-audit.js.map +1 -1
- package/dist/watch/checks/discovery.d.ts.map +1 -1
- package/dist/watch/checks/discovery.js +5 -7
- package/dist/watch/checks/discovery.js.map +1 -1
- package/dist/watch/checks/lag.d.ts +4 -10
- package/dist/watch/checks/lag.d.ts.map +1 -1
- package/dist/watch/checks/lag.js +6 -8
- package/dist/watch/checks/lag.js.map +1 -1
- package/dist/watch/checks/quiet-after-claim.js +3 -3
- package/dist/watch/checks/quiet-after-claim.js.map +1 -1
- package/dist/watch/checks/scope-drift.js +3 -3
- package/dist/watch/checks/scope-drift.js.map +1 -1
- package/dist/watch/checks/team-path.js +2 -2
- package/dist/watch/checks/team-path.js.map +1 -1
- package/dist/watch/checks/ungated.js +3 -3
- package/dist/watch/checks/ungated.js.map +1 -1
- package/dist/watch/checks/warned-rule.js +3 -3
- package/dist/watch/checks/warned-rule.js.map +1 -1
- package/dist/watch/loader.d.ts.map +1 -1
- package/dist/watch/loader.js +12 -16
- package/dist/watch/loader.js.map +1 -1
- package/dist/workflow-catalog/build.d.ts +2 -0
- package/dist/workflow-catalog/build.d.ts.map +1 -1
- package/dist/workflow-catalog/build.js +8 -4
- package/dist/workflow-catalog/build.js.map +1 -1
- package/dist/workflow-catalog/catalog-data.d.ts +7 -1
- package/dist/workflow-catalog/catalog-data.d.ts.map +1 -1
- package/dist/workflow-catalog/catalog-data.js +36 -7
- package/dist/workflow-catalog/catalog-data.js.map +1 -1
- package/dist/working-doc/service.d.ts.map +1 -1
- package/dist/working-doc/service.js +2 -1
- package/dist/working-doc/service.js.map +1 -1
- package/dist/zod.d.ts +39 -0
- package/dist/zod.d.ts.map +1 -0
- package/dist/zod.js +197 -0
- package/dist/zod.js.map +1 -0
- package/endpoint-manifest.json +617 -7
- package/package.json +11 -5
- package/runners/sqlite-runner.mjs +110 -0
- package/dist/studio/assets/WickedSans-Regular-fb698rcD.woff2 +0 -0
- package/dist/studio/assets/WickedSans-SemiBold-CD53n1AC.woff2 +0 -0
- package/dist/studio/assets/index-BUZ_-Syk.css +0 -32
- package/dist/studio/assets/index-C_UIgTiy.js +0 -986
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
* (the effective proposal and the identity derived from the pid), then the one launcher per run id
|
|
25
25
|
* ({@link LaunchOnceRegistry}), then `proposal_decided`. Not now runs no other check.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* operation's resolution on and registers a {@link RecordingStubDispatcher}
|
|
31
|
-
* nothing.
|
|
27
|
+
* Each operation's launcher is registered by its own slice: A3's real `create` (`interactive/proposal-create.ts`)
|
|
28
|
+
* whenever the draft seam is armed, so production advertises `proposals` and `create`; refine (A5), theme (A7) and demo
|
|
29
|
+
* (A8) stay off there until their slices land. The TEST configuration (`WICKED_CHAT_ARTIFACTS_STUB=1`, DES §13 A2)
|
|
30
|
+
* turns every operation's resolution on and registers a {@link RecordingStubDispatcher} for the kinds that have no real
|
|
31
|
+
* launcher yet (`capabilities.chatArtifacts.stubOps`): those record a dispatch and start nothing.
|
|
32
32
|
*
|
|
33
33
|
* Records go to the chat's live transcript, or to its kept history copy once the chat has ended, so an open proposal
|
|
34
34
|
* stays answerable after a restart (§4.3).
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
import { createHash } from 'node:crypto';
|
|
37
37
|
import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync } from 'node:fs';
|
|
38
38
|
import { dirname } from 'node:path';
|
|
39
|
-
import { z } from 'zod';
|
|
39
|
+
import { z } from '../zod.js';
|
|
40
40
|
import { artifactExists, artifactHead, chatMount, parseArtifactRef, UNFILED_MOUNT } from './chat-context.js';
|
|
41
41
|
import { tornTailPrefix } from './chat-transcripts.js';
|
|
42
42
|
// ── the block ──────────────────────────────────────────────────────────────────────────────────────────────────────
|
|
@@ -47,8 +47,7 @@ const SOURCES = z.array(TOKEN).max(PROPOSAL_SOURCES_MAX).default([]);
|
|
|
47
47
|
const REPOS = z.array(z.string().trim().min(1).max(200)).max(8).default([]);
|
|
48
48
|
const REASON = z.string().max(600).optional();
|
|
49
49
|
/** studio's appearance scalars (`theming/appearance.ts`), as a partial patch: only the keys that change. */
|
|
50
|
-
export const ThemePatchSchema = z
|
|
51
|
-
.object({
|
|
50
|
+
export const ThemePatchSchema = z.strictObject({
|
|
52
51
|
theme: z.enum(['wicked-dark', 'wicked-light']).optional(),
|
|
53
52
|
accent_h: z.number().min(0).max(360).optional(),
|
|
54
53
|
accent_s: z.number().min(0).max(100).optional(),
|
|
@@ -56,7 +55,6 @@ export const ThemePatchSchema = z
|
|
|
56
55
|
ambient: z.boolean().optional(),
|
|
57
56
|
ambient_still: z.boolean().optional(),
|
|
58
57
|
})
|
|
59
|
-
.strict()
|
|
60
58
|
.refine((p) => Object.keys(p).length > 0, 'a theme patch changes at least one key');
|
|
61
59
|
const EntryBlock = z.object({
|
|
62
60
|
entry: z.string().trim().min(1).max(80),
|
|
@@ -236,11 +234,15 @@ export class LaunchOnceRegistry {
|
|
|
236
234
|
const d = this.dispatchers.get(kind);
|
|
237
235
|
return d?.live === undefined ? false : d.live(runId);
|
|
238
236
|
}
|
|
239
|
-
/** Whether a run this daemon started for the artifact is still live
|
|
237
|
+
/** Whether a run this daemon started for the artifact is still live, or a launcher's durable record says an attempt at
|
|
238
|
+
* it has no outcome yet (A3: across a restart too). */
|
|
240
239
|
async liveForArtifact(artifactRef) {
|
|
241
240
|
for (const r of this.byArtifact.get(artifactRef) ?? [])
|
|
242
241
|
if (await this.live(r.kind, r.runId))
|
|
243
242
|
return true;
|
|
243
|
+
for (const d of new Set(this.dispatchers.values()))
|
|
244
|
+
if (d.docBusy !== undefined && (await d.docBusy(artifactRef)))
|
|
245
|
+
return true;
|
|
244
246
|
return false;
|
|
245
247
|
}
|
|
246
248
|
launchOnce(dispatch) {
|
|
@@ -691,12 +693,23 @@ export class ChatProposals {
|
|
|
691
693
|
const style = seed !== undefined && seed.launch.kind === 'document' ? seed.launch.style : null;
|
|
692
694
|
const title = block.title !== undefined && block.title !== '' ? block.title : seed?.title ?? block.entry;
|
|
693
695
|
const repos = [];
|
|
696
|
+
const repoRefs = [];
|
|
694
697
|
for (const want of block.repos) {
|
|
695
|
-
const
|
|
696
|
-
if (
|
|
698
|
+
const hits = chat.repos.filter((r) => r.name === want || r.id === want);
|
|
699
|
+
if (hits.length === 0)
|
|
697
700
|
blocked.push(`${want} isn't in this chat's scope`);
|
|
698
|
-
else if (
|
|
699
|
-
|
|
701
|
+
else if (hits.length > 1)
|
|
702
|
+
blocked.push(`${want} names ${hits.length} repositories in this chat's scope (name it by id)`);
|
|
703
|
+
else if (!repoRefs.includes(hits[0].id)) {
|
|
704
|
+
repos.push(hits[0].name);
|
|
705
|
+
repoRefs.push(hits[0].id);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
// A3 (§5.2): a chat-made document is grounded on the chat's scope. A block that names none, in a chat scoped to ONE
|
|
709
|
+
// repository, is about that one; with several, nothing is guessed (the card says what it is about).
|
|
710
|
+
if (kind === 'create' && block.repos.length === 0 && chat.repos.length === 1) {
|
|
711
|
+
repos.push(chat.repos[0].name);
|
|
712
|
+
repoRefs.push(chat.repos[0].id);
|
|
700
713
|
}
|
|
701
714
|
let demo;
|
|
702
715
|
if (kind === 'demo') {
|
|
@@ -736,6 +749,7 @@ export class ChatProposals {
|
|
|
736
749
|
reason: block.reason ?? null,
|
|
737
750
|
sources,
|
|
738
751
|
repos,
|
|
752
|
+
...(repoRefs.length > 0 ? { repoRefs } : {}),
|
|
739
753
|
helpers,
|
|
740
754
|
time: await this.timeOf(kind, seed ?? null, chat.projectId),
|
|
741
755
|
stops: STOPS[kind],
|
|
@@ -851,10 +865,9 @@ export class ChatProposals {
|
|
|
851
865
|
continue;
|
|
852
866
|
}
|
|
853
867
|
if (token === 'page') {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
strike(token, 'the page you were on', 'no page was shared with this message');
|
|
868
|
+
// A3: studio's page summary rides with its message and is not kept after it, so a document cannot be made from
|
|
869
|
+
// it later: struck with the reason, never promised on the card and then dropped at launch.
|
|
870
|
+
strike(token, 'the page you were on', ctx.turnHas && ctx.binding?.page === true ? "studio's page summary is not kept after the message" : 'no page was shared with this message');
|
|
858
871
|
continue;
|
|
859
872
|
}
|
|
860
873
|
const colon = token.indexOf(':');
|
|
@@ -877,6 +890,9 @@ export class ChatProposals {
|
|
|
877
890
|
const a = this.deps.attachments(ctx.chatId).find((x) => x.id === id);
|
|
878
891
|
if (a === undefined)
|
|
879
892
|
strike(`attachment:${id}`, `attachment ${id.slice(0, 12)}`, 'not a file attached to this chat');
|
|
893
|
+
// A3: the packet's per-file cap (512 KB): a file over it could never reach the draft.
|
|
894
|
+
else if (typeof a.bytes === 'number' && a.bytes > 512 * 1024)
|
|
895
|
+
strike(`attachment:${a.id}`, a.name, 'too large for a document\'s sources (over 512 KB)');
|
|
880
896
|
else
|
|
881
897
|
push({ token: `attachment:${a.id}`, label: a.name, status: 'ok' });
|
|
882
898
|
continue;
|
|
@@ -1064,7 +1080,7 @@ export class ChatProposals {
|
|
|
1064
1080
|
* proposals of one chat (or two chats changing one document) can never both pass the busy check.
|
|
1065
1081
|
*/
|
|
1066
1082
|
go(chatId, folded, resolution, edits, identity, actor, instance) {
|
|
1067
|
-
const docKey = resolution.kind === 'refine' && identity.artifactRef !== null ? identity.artifactRef : null;
|
|
1083
|
+
const docKey = (resolution.kind === 'refine' || (resolution.kind === 'create' && resolution.artifactRef !== undefined)) && identity.artifactRef !== null ? identity.artifactRef : null;
|
|
1068
1084
|
// Keyed by the chat's instance (shared by its original id and an ended chat's archived alias), else its id.
|
|
1069
1085
|
return this.lock.run(`chat\u0000${instance ?? chatId}`, () => docKey === null
|
|
1070
1086
|
? this.goLocked(chatId, folded, resolution, edits, identity, actor, instance)
|
|
@@ -1168,6 +1184,9 @@ export class ChatProposals {
|
|
|
1168
1184
|
if (p.kind === 'refine')
|
|
1169
1185
|
return { artifactRef: p.target?.ref ?? null, runId };
|
|
1170
1186
|
if (p.kind === 'create') {
|
|
1187
|
+
// A retry fills the same document again (§4.3: artifact identity and attempt identity are separate).
|
|
1188
|
+
if (p.artifactRef !== undefined)
|
|
1189
|
+
return { artifactRef: p.artifactRef, runId };
|
|
1171
1190
|
const mount = chatMount(p.filedIn.projectId) ?? UNFILED_MOUNT;
|
|
1172
1191
|
return { artifactRef: `${mount}/${proposalDocName(p.pid, p.what.title)}`, runId };
|
|
1173
1192
|
}
|
|
@@ -1179,6 +1198,13 @@ export class ChatProposals {
|
|
|
1179
1198
|
*/
|
|
1180
1199
|
async firstGone(chatId, p) {
|
|
1181
1200
|
let runs = null;
|
|
1201
|
+
// A3: a repository the card names must still be registered (never silently dropped from the launch).
|
|
1202
|
+
if ((p.repoRefs ?? []).length > 0 && this.deps.repoIds !== undefined) {
|
|
1203
|
+
const have = await this.deps.repoIds();
|
|
1204
|
+
const lost = (p.repoRefs ?? []).findIndex((id) => !have.has(id));
|
|
1205
|
+
if (lost !== -1)
|
|
1206
|
+
return `${p.repos[lost] ?? p.repoRefs[lost]} is no longer registered on this daemon; ask again in the chat`;
|
|
1207
|
+
}
|
|
1182
1208
|
for (const s of p.sources) {
|
|
1183
1209
|
if (s.status !== 'ok')
|
|
1184
1210
|
continue;
|
|
@@ -1225,16 +1251,16 @@ export class ChatProposals {
|
|
|
1225
1251
|
continue;
|
|
1226
1252
|
return { code: 'chat_busy', reason: `This chat already has a job running (run ${v.session.id.slice(0, 8)}). Wait, or stop that run.` };
|
|
1227
1253
|
}
|
|
1228
|
-
if (artifactRef !== null && p.kind === 'refine') {
|
|
1254
|
+
if (artifactRef !== null && (p.kind === 'refine' || (p.kind === 'create' && p.artifactRef !== undefined))) {
|
|
1229
1255
|
if (await this.deps.registry.liveForArtifact(artifactRef)) {
|
|
1230
|
-
return { code: 'document_busy', reason: `“${p.target?.title ??
|
|
1256
|
+
return { code: 'document_busy', reason: `“${p.target?.title ?? p.what.title}” is being ${p.kind === 'create' ? 'drafted' : 'revised'}. Wait, or stop that run.` };
|
|
1231
1257
|
}
|
|
1232
1258
|
const ref = parseArtifactRef(artifactRef);
|
|
1233
1259
|
if (ref !== null) {
|
|
1234
1260
|
for (const v of runs) {
|
|
1235
1261
|
const doc = v.session.document_id;
|
|
1236
1262
|
if (isLive(v) && doc === ref.doc && runMount(v) === ref.mount) {
|
|
1237
|
-
return { code: 'document_busy', reason: `“${p.target?.title ??
|
|
1263
|
+
return { code: 'document_busy', reason: `“${p.target?.title ?? p.what.title}” is being ${p.kind === 'create' ? 'drafted' : 'revised'}. Wait, or stop that run.` };
|
|
1238
1264
|
}
|
|
1239
1265
|
}
|
|
1240
1266
|
}
|
|
@@ -1252,7 +1278,7 @@ export class ChatProposals {
|
|
|
1252
1278
|
if (edits === undefined)
|
|
1253
1279
|
return p;
|
|
1254
1280
|
const allowed = {
|
|
1255
|
-
create: ['title', 'brief', 'sources', 'helpers'],
|
|
1281
|
+
create: p.artifactRef !== undefined ? ['title', 'brief', 'sources', 'helpers'] : ['title', 'brief', 'sources', 'helpers', 'repos', 'project'],
|
|
1256
1282
|
refine: ['ask', 'helpers'],
|
|
1257
1283
|
theme: ['name', 'patch'],
|
|
1258
1284
|
demo: ['audience', 'show', 'helpers'],
|
|
@@ -1306,13 +1332,52 @@ export class ChatProposals {
|
|
|
1306
1332
|
// Two helpers lift the one block a person can lift.
|
|
1307
1333
|
next = { ...next, helpers, blocked: next.blocked === NEEDS_HELPER ? null : next.blocked };
|
|
1308
1334
|
}
|
|
1335
|
+
// A3 (§4.2 Change something, create): the project — only in a chat filed in no project. Every source, repository
|
|
1336
|
+
// and turn is re-checked against the target below; what is outside it is struck (a `message:` whole).
|
|
1337
|
+
let recheck = false;
|
|
1338
|
+
if (edits.project !== undefined) {
|
|
1339
|
+
const chatProject = this.deps.chat(chatId)?.projectId ?? this.deps.projectOf(chatId);
|
|
1340
|
+
if (chatProject !== null)
|
|
1341
|
+
throw new EditRefusal("this chat is filed in a project: its documents stay there");
|
|
1342
|
+
const target = edits.project === null || edits.project === '' || edits.project === 'default' ? null : edits.project;
|
|
1343
|
+
if (target !== null && (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/.test(target) || (await this.deps.docsRoot(target)) === null)) {
|
|
1344
|
+
throw new EditRefusal(`there is no project ${target.slice(0, 80)} on this daemon`);
|
|
1345
|
+
}
|
|
1346
|
+
if (target !== p.filedIn.projectId) {
|
|
1347
|
+
recheck = true;
|
|
1348
|
+
next = { ...next, filedIn: { projectId: target, label: target === null ? 'Not in a project · this chat' : ((await this.deps.projectName(target)) ?? target) } };
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
if (edits.repos !== undefined) {
|
|
1352
|
+
if (edits.repos.length > 8)
|
|
1353
|
+
throw new EditRefusal('at most 8 repositories');
|
|
1354
|
+
// In the chat's scope: the live chat's, else (an ended chat) the repositories the proposal was resolved with.
|
|
1355
|
+
const scope = this.deps.chat(chatId)?.repos ?? (p.repoRefs ?? []).map((id, i) => ({ id, name: p.repos[i] ?? id }));
|
|
1356
|
+
const repos = [];
|
|
1357
|
+
const repoRefs = [];
|
|
1358
|
+
for (const want of edits.repos) {
|
|
1359
|
+
const hits = scope.filter((r) => r.id === want || r.name === want);
|
|
1360
|
+
if (hits.length !== 1)
|
|
1361
|
+
throw new EditRefusal(`${want.slice(0, 120)} ${hits.length === 0 ? "isn't in this chat's scope" : 'names several repositories (name it by id)'}`);
|
|
1362
|
+
if (!repoRefs.includes(hits[0].id)) {
|
|
1363
|
+
repos.push(hits[0].name);
|
|
1364
|
+
repoRefs.push(hits[0].id);
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
next = { ...next, repos, ...(repoRefs.length > 0 ? { repoRefs } : {}) };
|
|
1368
|
+
if (repoRefs.length === 0)
|
|
1369
|
+
delete next.repoRefs;
|
|
1370
|
+
}
|
|
1371
|
+
if (recheck)
|
|
1372
|
+
next = await this.recheckProject(next, edits.repos !== undefined);
|
|
1309
1373
|
if (edits.sources !== undefined) {
|
|
1310
1374
|
if (edits.sources.length > PROPOSAL_SOURCES_MAX)
|
|
1311
1375
|
throw new EditRefusal(`at most ${PROPOSAL_SOURCES_MAX} sources`);
|
|
1312
1376
|
const records = this.deps.records(chatId);
|
|
1313
1377
|
const { binding, turnHas } = bindingOf(records, f.turnId);
|
|
1314
|
-
// A source the person adds counts as named by them, and is
|
|
1315
|
-
|
|
1378
|
+
// A source the person adds counts as named by them, and is checked against the chat's own scope first; then the
|
|
1379
|
+
// project re-check (when the document moves) strikes what is outside the target.
|
|
1380
|
+
const resolved = await this.resolveSources(edits.sources, {
|
|
1316
1381
|
chatId,
|
|
1317
1382
|
turnId: f.turnId,
|
|
1318
1383
|
records,
|
|
@@ -1322,13 +1387,174 @@ export class ChatProposals {
|
|
|
1322
1387
|
words: personWords(records, f.turnId),
|
|
1323
1388
|
personNamed: true,
|
|
1324
1389
|
});
|
|
1325
|
-
|
|
1326
|
-
|
|
1390
|
+
next = { ...next, sources: resolved };
|
|
1391
|
+
// Re-checked whenever the document is filed outside the chat's own scope (a moved document, or a retry of one).
|
|
1392
|
+
const chatScope = this.deps.chat(chatId)?.projectId ?? this.deps.projectOf(chatId);
|
|
1393
|
+
if (recheck || next.filedIn.projectId !== chatScope)
|
|
1394
|
+
next = await this.recheckProject(next, edits.repos !== undefined);
|
|
1395
|
+
// A source the person ADDED (not one the proposal already held) that cannot be used is said back, never silently
|
|
1396
|
+
// dropped from a launch; one it already held is struck with the reason, as the project change promises.
|
|
1397
|
+
const had = new Set(p.sources.map((s) => s.token));
|
|
1398
|
+
const added = next.sources.find((src) => src.status === 'struck' && !had.has(src.token));
|
|
1327
1399
|
if (added !== undefined)
|
|
1328
1400
|
throw new EditRefusal(`${added.label}: ${added.reason ?? 'it cannot be used'}`);
|
|
1329
|
-
|
|
1401
|
+
// The attachments together must fit the packet (1 MB with room for the rest), or one would be left out at launch.
|
|
1402
|
+
const files = this.deps.attachments(chatId);
|
|
1403
|
+
const attached = next.sources
|
|
1404
|
+
.filter((s) => s.status === 'ok' && s.token.startsWith('attachment:'))
|
|
1405
|
+
.reduce((n, s) => n + (files.find((a) => `attachment:${a.id}` === s.token)?.bytes ?? 0), 0);
|
|
1406
|
+
if (attached > 768 * 1024)
|
|
1407
|
+
throw new EditRefusal(`the attached files together are ${Math.round(attached / 1024)} KB: a document's sources take at most 768 KB of attachments; leave one out`);
|
|
1330
1408
|
}
|
|
1331
1409
|
return next;
|
|
1332
1410
|
}
|
|
1411
|
+
/**
|
|
1412
|
+
* A3 (§4.2): re-check a create against the project it is now filed in. A run or document source from elsewhere is
|
|
1413
|
+
* struck; a `message:` source is struck whole when any record its answer was given is elsewhere (the conversation
|
|
1414
|
+
* keeps only what is in the project, at packet time); repositories outside the project's members are cut (or, when
|
|
1415
|
+
* the person chose them, refused).
|
|
1416
|
+
*/
|
|
1417
|
+
async recheckProject(p, personRepos) {
|
|
1418
|
+
const target = p.filedIn.projectId;
|
|
1419
|
+
const label = target === null ? 'Unfiled' : p.filedIn.label;
|
|
1420
|
+
const records = this.deps.records(p.chatId);
|
|
1421
|
+
let runs = null;
|
|
1422
|
+
const runProject = async (id) => {
|
|
1423
|
+
runs ??= await this.deps.runs();
|
|
1424
|
+
const v = runs.find((x) => x.session.id === id);
|
|
1425
|
+
return v === undefined ? undefined : projectOfMount(runMount(v));
|
|
1426
|
+
};
|
|
1427
|
+
const sources = [];
|
|
1428
|
+
for (const s of p.sources) {
|
|
1429
|
+
if (s.status !== 'ok') {
|
|
1430
|
+
sources.push(s);
|
|
1431
|
+
continue;
|
|
1432
|
+
}
|
|
1433
|
+
if (s.token.startsWith('run:') || s.token.startsWith('doc:')) {
|
|
1434
|
+
const proj = s.projectId !== undefined ? s.projectId : s.token.startsWith('run:') ? await runProject(s.token.slice(4)) : projectOfMount(parseArtifactRef(s.token.slice(4))?.mount ?? '');
|
|
1435
|
+
sources.push(proj === target ? s : { ...s, status: 'struck', reason: `not in ${label}` });
|
|
1436
|
+
continue;
|
|
1437
|
+
}
|
|
1438
|
+
if (s.token.startsWith('message:')) {
|
|
1439
|
+
const turn = s.token.slice('message:'.length);
|
|
1440
|
+
const ctx = records.find((r) => r.kind === 'context' && r.turnId === turn);
|
|
1441
|
+
let inside = true;
|
|
1442
|
+
for (const r of ctx?.runs ?? [])
|
|
1443
|
+
if ((await runProject(r.id)) !== target)
|
|
1444
|
+
inside = false;
|
|
1445
|
+
if (ctx?.artifact !== undefined && projectOfMount(parseArtifactRef(ctx.artifact.ref)?.mount ?? '') !== target)
|
|
1446
|
+
inside = false;
|
|
1447
|
+
sources.push(inside ? s : { ...s, status: 'struck', reason: `it was answered from records outside ${label}` });
|
|
1448
|
+
continue;
|
|
1449
|
+
}
|
|
1450
|
+
sources.push(s);
|
|
1451
|
+
}
|
|
1452
|
+
let repos = p.repos;
|
|
1453
|
+
let repoRefs = p.repoRefs ?? [];
|
|
1454
|
+
if (target !== null && repoRefs.length > 0) {
|
|
1455
|
+
const members = (await this.deps.projectRepos?.(target)) ?? [];
|
|
1456
|
+
const outside = repoRefs.filter((id) => !members.some((m) => m.id === id));
|
|
1457
|
+
if (outside.length > 0 && personRepos) {
|
|
1458
|
+
throw new EditRefusal(`${outside.map((id) => p.repos[repoRefs.indexOf(id)] ?? id).join(', ')} ${outside.length === 1 ? 'is' : 'are'} not in ${label}`);
|
|
1459
|
+
}
|
|
1460
|
+
repos = repos.filter((_, i) => !outside.includes(repoRefs[i]));
|
|
1461
|
+
repoRefs = repoRefs.filter((id) => !outside.includes(id));
|
|
1462
|
+
}
|
|
1463
|
+
const out = { ...p, sources, repos, ...(repoRefs.length > 0 ? { repoRefs } : {}) };
|
|
1464
|
+
if (repoRefs.length === 0)
|
|
1465
|
+
delete out.repoRefs;
|
|
1466
|
+
return out;
|
|
1467
|
+
}
|
|
1468
|
+
// ── A3: what the create launcher and the daemon need from the proposals ────────────────────────────────────────────
|
|
1469
|
+
/**
|
|
1470
|
+
* The accepted proposal a create's `chat_id` + `proposal_id` names, for this actor (§5.2): accepting (or decided go),
|
|
1471
|
+
* accepted by them, a create. `null` otherwise — and then the create is refused.
|
|
1472
|
+
*/
|
|
1473
|
+
grantFor(chatId, pid, actorId) {
|
|
1474
|
+
const f = foldProposals(this.deps.records(chatId)).get(pid);
|
|
1475
|
+
const acc = f?.accepting;
|
|
1476
|
+
if (f === undefined || acc === undefined || acc.actor !== actorId || acc.resolution.kind !== 'create')
|
|
1477
|
+
return null;
|
|
1478
|
+
if (!(f.state === 'accepting' || (f.state === 'decided' && f.decision === 'go')))
|
|
1479
|
+
return null;
|
|
1480
|
+
const ref = acc.identity.artifactRef === null ? null : parseArtifactRef(acc.identity.artifactRef);
|
|
1481
|
+
if (ref === null)
|
|
1482
|
+
return null;
|
|
1483
|
+
const ids = acc.resolution.repoRefs ?? [];
|
|
1484
|
+
return { doc: ref.doc, projectId: ref.projectId, repos: ids.map((id, i) => ({ id, name: acc.resolution.repos[i] ?? id })) };
|
|
1485
|
+
}
|
|
1486
|
+
/** The accepted resolution and identity of a proposal (the launcher's bus trigger rebuilds its dispatch from it). */
|
|
1487
|
+
acceptedOf(chatId, pid) {
|
|
1488
|
+
const f = foldProposals(this.deps.records(chatId)).get(pid);
|
|
1489
|
+
if (f?.accepting === undefined)
|
|
1490
|
+
return null;
|
|
1491
|
+
return { actor: f.accepting.actor, resolution: f.accepting.resolution, identity: f.accepting.identity, turnId: f.turnId, state: f.state };
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* §6.2: a proposal-bound attempt ended without landing. Crew appends `<chatId>:retry:<runId>` — the same artifact, the
|
|
1495
|
+
* failed attempt's effective resolution (edits, helpers, sources; the conversation cutoff stays the binding's), a new
|
|
1496
|
+
* run id derived from its own pid — to the live chat or its kept history. Once per failed run.
|
|
1497
|
+
*/
|
|
1498
|
+
async appendRetry(chatId, failedPid, runId, artifactRef, reason, bound) {
|
|
1499
|
+
const instance = bound ?? this.deps.instanceOf(chatId);
|
|
1500
|
+
return this.lock.run(`chat\u0000${instance ?? chatId}`, async () => {
|
|
1501
|
+
// Checked under the lock: only on the chat instance the document was made in, never on another chat that reused
|
|
1502
|
+
// the id meanwhile (the caller resolves the instance's current id again and retries).
|
|
1503
|
+
if (bound !== undefined && bound !== null && this.deps.instanceOf(chatId) !== bound) {
|
|
1504
|
+
throw new Error(`chat ${chatId} is no longer the chat run ${runId} was made from`);
|
|
1505
|
+
}
|
|
1506
|
+
const records = this.deps.records(chatId);
|
|
1507
|
+
const folded = foldProposals(records);
|
|
1508
|
+
const failed = folded.get(failedPid);
|
|
1509
|
+
const base = failed?.accepting?.resolution ?? failed?.proposal;
|
|
1510
|
+
if (failed === undefined || base === undefined) {
|
|
1511
|
+
this.log(`[proposals] chat ${chatId}: run ${runId} failed but proposal ${failedPid} is not in its records — no retry card`);
|
|
1512
|
+
return null;
|
|
1513
|
+
}
|
|
1514
|
+
// Named by the chat's own id (an ended chat's archive alias still holds the same proposals).
|
|
1515
|
+
const pid = `${base.chatId}:retry:${runId}`;
|
|
1516
|
+
if (folded.has(pid))
|
|
1517
|
+
return pid;
|
|
1518
|
+
const retry = {
|
|
1519
|
+
...base,
|
|
1520
|
+
pid,
|
|
1521
|
+
turnId: null,
|
|
1522
|
+
sourceRunId: runId,
|
|
1523
|
+
artifactRef,
|
|
1524
|
+
reason: `The last attempt ended without a draft: ${reason}. Try again fills the same document.`,
|
|
1525
|
+
blocked: null,
|
|
1526
|
+
};
|
|
1527
|
+
return this.write(chatId, { at: this.now(), turnId: failed.turnId, kind: 'proposal', proposal: retry }, instance) ? pid : null;
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* The artifact job a chat's proposal started that is still live (busy until its outcome is recorded), as the card
|
|
1532
|
+
* names it, or `null`. A work launch filed under the chat (`POST /runs {chatId}`) is refused while one is: one live
|
|
1533
|
+
* job per chat, work and artifact runs together (DES §4.3).
|
|
1534
|
+
*/
|
|
1535
|
+
async liveJobOf(chatId) {
|
|
1536
|
+
for (const f of foldProposals(this.deps.records(chatId)).values()) {
|
|
1537
|
+
const runId = f.state === 'decided' && f.decision === 'go' ? f.result?.runId ?? null : f.state === 'accepting' ? f.accepting?.identity.runId ?? null : null;
|
|
1538
|
+
if (runId !== null && (await this.deps.registry.live(f.proposal.kind, runId)))
|
|
1539
|
+
return f.proposal.what.label;
|
|
1540
|
+
}
|
|
1541
|
+
return null;
|
|
1542
|
+
}
|
|
1543
|
+
/** At daemon start (§6.2): an `accepting` proposal whose run exists is decided (adopted). `true` when it recorded. */
|
|
1544
|
+
async settleAccepting(chatId, pid) {
|
|
1545
|
+
const instance = this.deps.instanceOf(chatId);
|
|
1546
|
+
return this.lock.run(`pid\u0000${pid}`, async () => {
|
|
1547
|
+
const f = foldProposals(this.deps.records(chatId)).get(pid);
|
|
1548
|
+
const acc = f?.accepting;
|
|
1549
|
+
if (f === undefined || acc === undefined || f.state !== 'accepting')
|
|
1550
|
+
return false;
|
|
1551
|
+
const found = await this.deps.registry.find(f.proposal.kind, acc.identity);
|
|
1552
|
+
if (found === null)
|
|
1553
|
+
return false;
|
|
1554
|
+
const result = { runId: acc.identity.runId, artifactRef: acc.identity.artifactRef, adopted: true, stub: found.stub };
|
|
1555
|
+
const actor = { id: acc.actor, kind: 'human', trust: 'operator' };
|
|
1556
|
+
return this.decided(chatId, f.turnId, pid, actor, 'go', result, acc.resolution, acc.edits, instance);
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1333
1559
|
}
|
|
1334
1560
|
//# sourceMappingURL=chat-proposals.js.map
|