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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steering rules a governed run is checked against (operator ruling 2026-11-05, end-to-end pass E7: "validate them
|
|
3
|
+
* via third party", not creator citations; DES-RULE-CHECK-001 S1: "cutting off isn't an option").
|
|
4
|
+
*
|
|
5
|
+
* A workflow launch's brief gains a marked block that names EVERY rule in force for the run's project, each with its
|
|
6
|
+
* match against the job (the engine's `matchRules`): **applies** (a fact selects it), **may apply** (nothing scopes
|
|
7
|
+
* it either way), or **not applicable** (a recorded fact rules it out, said on its line). Rules to check are listed
|
|
8
|
+
* with their statements whole and no count cap; not-applicable rules are listed by id with their fact, so none is
|
|
9
|
+
* silent. The review and QE seats judge each rule to check (garden's governed-worker E7: KEPT / BROKEN / N/A /
|
|
10
|
+
* DEFERRED, a broken rule fails review); the builder is told it does not mark its own compliance.
|
|
11
|
+
*
|
|
12
|
+
* Like the learnings block (`learnings/recall.ts`), the deliver text takes it back out (`core/deliver-text.ts`) and a
|
|
13
|
+
* relaunch from an earlier run's problem replaces it, never stacks it. Nothing here records a verdict: per-rule
|
|
14
|
+
* verdicts in the assurance receipt are DES-RULE-CHECK-001 S2.
|
|
15
|
+
*/
|
|
16
|
+
import type { ConformanceRule } from '../core/types.js';
|
|
17
|
+
export declare const RULES_BRIEF_OPEN = "<!-- wicked-crew:rules -->";
|
|
18
|
+
export declare const RULES_BRIEF_CLOSE = "<!-- /wicked-crew:rules -->";
|
|
19
|
+
/**
|
|
20
|
+
* The whole block's size in UTF-8 bytes (headers, ids, statements, facts). The engine puts the task and the earlier
|
|
21
|
+
* steps' output (up to 96 KiB) into one argv argument under the host floor's 128 KiB limit (core
|
|
22
|
+
* `execute_wrapped.rs`), so the block keeps to 24 KiB and leaves room for the intent (xreview r2 on S1). Within it every
|
|
23
|
+
* rule is named first; statements and facts are added while they fit.
|
|
24
|
+
*/
|
|
25
|
+
export declare const RULES_BLOCK_MAX_BYTES: number;
|
|
26
|
+
export type RuleMatchStatus = 'applies' | 'may_apply' | 'not_applicable';
|
|
27
|
+
export interface RuleMatchFact {
|
|
28
|
+
kind: string;
|
|
29
|
+
detail: string;
|
|
30
|
+
}
|
|
31
|
+
/** One rule's match (the engine's `matchRules` wire shape). */
|
|
32
|
+
export interface RuleMatch {
|
|
33
|
+
rule_id: string;
|
|
34
|
+
status: RuleMatchStatus;
|
|
35
|
+
facts: RuleMatchFact[];
|
|
36
|
+
}
|
|
37
|
+
/** What a launch knows about the job when it matches the rules. */
|
|
38
|
+
export interface RuleMatchJob {
|
|
39
|
+
workflow?: string | null;
|
|
40
|
+
/** The job's steps as the gate sees them; a launch passes none (its steps are set with its plan). */
|
|
41
|
+
steps?: Array<{
|
|
42
|
+
tokens: string[];
|
|
43
|
+
kind?: string | null;
|
|
44
|
+
}> | null;
|
|
45
|
+
/** The step kinds the workflow runs (`build`, `test`, …), for the reading order only. */
|
|
46
|
+
kinds?: string[] | null;
|
|
47
|
+
project?: string | null;
|
|
48
|
+
/** (DES-RULE-CHECK-001, coord E7 rerun) The job's repository: a rule that names it applies. */
|
|
49
|
+
repo?: string | null;
|
|
50
|
+
}
|
|
51
|
+
type BriefRule = Pick<ConformanceRule, 'id' | 'severity' | 'statement'> & Partial<ConformanceRule>;
|
|
52
|
+
/**
|
|
53
|
+
* Every rule matched, none dropped: the engine's answer in its order, and any rule it did not answer for (an addon
|
|
54
|
+
* without `matchRules`, a failure, a short answer) as "may apply". `match` is the engine binding or `null`.
|
|
55
|
+
*/
|
|
56
|
+
export declare function matchRulesForJob(rules: ReadonlyArray<BriefRule>, job: RuleMatchJob, match: ((argsJson: string) => Promise<string>) | null, log?: (m: string) => void): Promise<RuleMatch[]>;
|
|
57
|
+
/**
|
|
58
|
+
* The marked block, or `null` when no rule is in force. Every rule in `matches` is named on a line while the ids fit
|
|
59
|
+
* {@link RULES_BLOCK_MAX_BYTES}: first every id (with its label), then, in reading order, the statements of the rules
|
|
60
|
+
* to check and the facts of the rules ruled out, each added only while the block still fits. Should the ids alone
|
|
61
|
+
* not fit (thousands of rules, or ids of thousands of characters), one line says how many were not named and that the
|
|
62
|
+
* review reads every rule from the store, never silently. The brief is the builder's; the review's check (S2) reads
|
|
63
|
+
* the store, not the brief.
|
|
64
|
+
*/
|
|
65
|
+
export declare function rulesBriefBlock(rules: ReadonlyArray<BriefRule>, matches: ReadonlyArray<RuleMatch>): string | null;
|
|
66
|
+
/** `problem` with every rules block the daemon appended taken back out. */
|
|
67
|
+
export declare function stripRulesBrief(problem: string): string;
|
|
68
|
+
/** Append the block to a launch's problem (an inherited block is replaced). Unchanged when no rule is in force.
|
|
69
|
+
* `listed` counts the rules to check; `notApplicable` the rules listed as ruled out. */
|
|
70
|
+
export declare function withRulesBrief(raw: string, rules: ReadonlyArray<BriefRule>, matches: ReadonlyArray<RuleMatch>): {
|
|
71
|
+
problem: string;
|
|
72
|
+
listed: number;
|
|
73
|
+
notApplicable: number;
|
|
74
|
+
};
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=rules-brief.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-brief.d.ts","sourceRoot":"","sources":["../../src/decisions/rules-brief.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAC7D,eAAO,MAAM,iBAAiB,gCAAgC,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,QAAY,CAAC;AAM/C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,gBAAgB,CAAC;AACzE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,+DAA+D;AAC/D,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,mEAAmE;AACnE,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,qGAAqG;IACrG,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IACjE,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,KAAK,SAAS,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAInG;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,EAC/B,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,EACrD,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,GACxB,OAAO,CAAC,SAAS,EAAE,CAAC,CAmCtB;AAyBD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,GAAG,MAAM,GAAG,IAAI,CA0DjH;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;yFACyF;AACzF,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,EAC/B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,GAChC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAM5D"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steering rules a governed run is checked against (operator ruling 2026-11-05, end-to-end pass E7: "validate them
|
|
3
|
+
* via third party", not creator citations; DES-RULE-CHECK-001 S1: "cutting off isn't an option").
|
|
4
|
+
*
|
|
5
|
+
* A workflow launch's brief gains a marked block that names EVERY rule in force for the run's project, each with its
|
|
6
|
+
* match against the job (the engine's `matchRules`): **applies** (a fact selects it), **may apply** (nothing scopes
|
|
7
|
+
* it either way), or **not applicable** (a recorded fact rules it out, said on its line). Rules to check are listed
|
|
8
|
+
* with their statements whole and no count cap; not-applicable rules are listed by id with their fact, so none is
|
|
9
|
+
* silent. The review and QE seats judge each rule to check (garden's governed-worker E7: KEPT / BROKEN / N/A /
|
|
10
|
+
* DEFERRED, a broken rule fails review); the builder is told it does not mark its own compliance.
|
|
11
|
+
*
|
|
12
|
+
* Like the learnings block (`learnings/recall.ts`), the deliver text takes it back out (`core/deliver-text.ts`) and a
|
|
13
|
+
* relaunch from an earlier run's problem replaces it, never stacks it. Nothing here records a verdict: per-rule
|
|
14
|
+
* verdicts in the assurance receipt are DES-RULE-CHECK-001 S2.
|
|
15
|
+
*/
|
|
16
|
+
import { orderBySeverity } from './rules-text.js';
|
|
17
|
+
import { inertIssueText } from '../core/linked-issues.js';
|
|
18
|
+
export const RULES_BRIEF_OPEN = '<!-- wicked-crew:rules -->';
|
|
19
|
+
export const RULES_BRIEF_CLOSE = '<!-- /wicked-crew:rules -->';
|
|
20
|
+
/**
|
|
21
|
+
* The whole block's size in UTF-8 bytes (headers, ids, statements, facts). The engine puts the task and the earlier
|
|
22
|
+
* steps' output (up to 96 KiB) into one argv argument under the host floor's 128 KiB limit (core
|
|
23
|
+
* `execute_wrapped.rs`), so the block keeps to 24 KiB and leaves room for the intent (xreview r2 on S1). Within it every
|
|
24
|
+
* rule is named first; statements and facts are added while they fit.
|
|
25
|
+
*/
|
|
26
|
+
export const RULES_BLOCK_MAX_BYTES = 24 * 1024;
|
|
27
|
+
/** A listable id: one token of at most 120 characters (the `[rule:<id>]` citation's own bound). */
|
|
28
|
+
const LISTABLE_ID = /^[^\s<>"]{1,120}$/u;
|
|
29
|
+
/** A not-applicable line's fact, bounded (the facts name a rule's own `applies_to` tokens). */
|
|
30
|
+
const FACT_MAX = 400;
|
|
31
|
+
const UNMATCHED = { kind: 'unmatched', detail: 'the engine did not match it; the review checks it' };
|
|
32
|
+
/**
|
|
33
|
+
* Every rule matched, none dropped: the engine's answer in its order, and any rule it did not answer for (an addon
|
|
34
|
+
* without `matchRules`, a failure, a short answer) as "may apply". `match` is the engine binding or `null`.
|
|
35
|
+
*/
|
|
36
|
+
export async function matchRulesForJob(rules, job, match, log) {
|
|
37
|
+
let answered = [];
|
|
38
|
+
if (match !== null && rules.length > 0) {
|
|
39
|
+
try {
|
|
40
|
+
const out = JSON.parse(await match(JSON.stringify({ rules, job })));
|
|
41
|
+
if (Array.isArray(out.matches)) {
|
|
42
|
+
answered = out.matches.filter((m) => m !== null &&
|
|
43
|
+
typeof m === 'object' &&
|
|
44
|
+
typeof m.rule_id === 'string' &&
|
|
45
|
+
['applies', 'may_apply', 'not_applicable'].includes(m.status) &&
|
|
46
|
+
Array.isArray(m.facts));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
log?.(`[rules] the engine could not match the rules; every rule is listed as may apply: ${err instanceof Error ? err.message : String(err)}`);
|
|
51
|
+
answered = [];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const known = new Set(rules.map((r) => r.id));
|
|
55
|
+
const seen = new Set();
|
|
56
|
+
const out = [];
|
|
57
|
+
for (const m of answered) {
|
|
58
|
+
if (!known.has(m.rule_id) || seen.has(m.rule_id))
|
|
59
|
+
continue;
|
|
60
|
+
seen.add(m.rule_id);
|
|
61
|
+
out.push(m);
|
|
62
|
+
}
|
|
63
|
+
for (const r of orderBySeverity(rules)) {
|
|
64
|
+
if (!seen.has(r.id)) {
|
|
65
|
+
seen.add(r.id);
|
|
66
|
+
out.push({ rule_id: r.id, status: 'may_apply', facts: [UNMATCHED] });
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return out;
|
|
70
|
+
}
|
|
71
|
+
/** Text that cannot open or close a daemon marker: whitespace folded first, then every `<!--` and `-->` made inert. */
|
|
72
|
+
function inert(text) {
|
|
73
|
+
return inertIssueText(text.replace(/\s+/gu, ' ').trim()).replaceAll('-->', '-->');
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* An id as listed: the id itself when it is one bounded token, else the id whole as a JSON string with `<` and `>`
|
|
77
|
+
* escaped (`\u003c`, `\u003e`), so it stays reversible, distinct from every other id, and cannot form a marker
|
|
78
|
+
* (xreview r1 on S1: truncating or folding merged distinct ids).
|
|
79
|
+
*/
|
|
80
|
+
function shownId(id) {
|
|
81
|
+
if (LISTABLE_ID.test(id))
|
|
82
|
+
return id;
|
|
83
|
+
return JSON.stringify(id).replaceAll('<', '\\u003c').replaceAll('>', '\\u003e');
|
|
84
|
+
}
|
|
85
|
+
function factLine(m) {
|
|
86
|
+
const words = inert(m.facts.map((f) => f.detail).join('; ')) || 'ruled out by its own scope';
|
|
87
|
+
return words.length > FACT_MAX ? `${words.slice(0, FACT_MAX)}…` : words;
|
|
88
|
+
}
|
|
89
|
+
const LABEL = { applies: 'applies', may_apply: 'may apply', not_applicable: 'not applicable' };
|
|
90
|
+
const bytes = (s) => Buffer.byteLength(s, 'utf8') + 1; // + the newline
|
|
91
|
+
/**
|
|
92
|
+
* The marked block, or `null` when no rule is in force. Every rule in `matches` is named on a line while the ids fit
|
|
93
|
+
* {@link RULES_BLOCK_MAX_BYTES}: first every id (with its label), then, in reading order, the statements of the rules
|
|
94
|
+
* to check and the facts of the rules ruled out, each added only while the block still fits. Should the ids alone
|
|
95
|
+
* not fit (thousands of rules, or ids of thousands of characters), one line says how many were not named and that the
|
|
96
|
+
* review reads every rule from the store, never silently. The brief is the builder's; the review's check (S2) reads
|
|
97
|
+
* the store, not the brief.
|
|
98
|
+
*/
|
|
99
|
+
export function rulesBriefBlock(rules, matches) {
|
|
100
|
+
if (matches.length === 0)
|
|
101
|
+
return null;
|
|
102
|
+
const byId = new Map(rules.map((r) => [r.id, r]));
|
|
103
|
+
const check = matches.filter((m) => m.status !== 'not_applicable');
|
|
104
|
+
const na = matches.filter((m) => m.status === 'not_applicable');
|
|
105
|
+
const applies = check.filter((m) => m.status === 'applies').length;
|
|
106
|
+
const head = [
|
|
107
|
+
RULES_BRIEF_OPEN,
|
|
108
|
+
`Steering rules for this job: ${matches.length} in force, ${check.length} to check (${applies} apply, ${check.length - applies} may apply), ${na.length} not applicable.`,
|
|
109
|
+
'The review and QE steps check the work against each rule to check (kept, broken or not applicable, with evidence);',
|
|
110
|
+
'a broken rule fails review. The step that builds does not mark its own compliance.',
|
|
111
|
+
];
|
|
112
|
+
const naHead = "Not applicable to this job, each by a fact of the rule's own scope:";
|
|
113
|
+
// One row per rule: its bare line (label and id), and the full one (with the statement, or the fact).
|
|
114
|
+
const rows = [
|
|
115
|
+
...check.map((m) => {
|
|
116
|
+
const r = byId.get(m.rule_id);
|
|
117
|
+
const bare = `- [${LABEL[m.status]}] ${shownId(m.rule_id)} (${r?.severity ?? 'info'})`;
|
|
118
|
+
const statement = inert(r?.statement ?? '');
|
|
119
|
+
const why = m.status === 'applies' ? ` (${factLine(m)})` : '';
|
|
120
|
+
return { bare, full: `${bare}: ${statement === '' ? '(no statement recorded)' : statement}${why}`, na: false };
|
|
121
|
+
}),
|
|
122
|
+
...na.map((m) => ({ bare: `- ${shownId(m.rule_id)}`, full: `- ${shownId(m.rule_id)}: ${factLine(m)}`, na: true })),
|
|
123
|
+
];
|
|
124
|
+
const short = 'A rule listed without its statement or fact did not fit this brief\'s size limit; the review reads it from the rule store.';
|
|
125
|
+
const pointer = (left) => `- … and ${left} more rule${left === 1 ? '' : 's'} in force whose ids did not fit this brief's size limit; the review reads every rule from the rule store.`;
|
|
126
|
+
const reserve = bytes(short) + bytes(pointer(rows.length));
|
|
127
|
+
let used = head.reduce((n, l) => n + bytes(l), 0) + bytes(RULES_BRIEF_CLOSE) + (na.length > 0 ? bytes(naHead) : 0) + reserve;
|
|
128
|
+
// Pass 1: every rule named while it fits (the pointer and the note reserved).
|
|
129
|
+
// A row that does not fit is skipped, not the end: a later short id is still named (xreview r2 on S1).
|
|
130
|
+
const fits = rows.filter((row) => {
|
|
131
|
+
if (used + bytes(row.bare) > RULES_BLOCK_MAX_BYTES)
|
|
132
|
+
return false;
|
|
133
|
+
used += bytes(row.bare);
|
|
134
|
+
return true;
|
|
135
|
+
});
|
|
136
|
+
const named = fits.length;
|
|
137
|
+
// Pass 2: the full line, in reading order, while the block still fits.
|
|
138
|
+
let anyBare = false;
|
|
139
|
+
const shown = fits.map((row) => {
|
|
140
|
+
const extra = bytes(row.full) - bytes(row.bare);
|
|
141
|
+
if (used + extra <= RULES_BLOCK_MAX_BYTES) {
|
|
142
|
+
used += extra;
|
|
143
|
+
return { na: row.na, line: row.full };
|
|
144
|
+
}
|
|
145
|
+
anyBare = true;
|
|
146
|
+
return { na: row.na, line: row.bare };
|
|
147
|
+
});
|
|
148
|
+
const checkLines = shown.filter((x) => !x.na).map((x) => x.line);
|
|
149
|
+
const naLines = shown.filter((x) => x.na).map((x) => x.line);
|
|
150
|
+
return [
|
|
151
|
+
...head,
|
|
152
|
+
...(anyBare ? [short] : []),
|
|
153
|
+
...checkLines,
|
|
154
|
+
...(naLines.length > 0 ? [naHead, ...naLines] : []),
|
|
155
|
+
...(named < rows.length ? [pointer(rows.length - named)] : []),
|
|
156
|
+
RULES_BRIEF_CLOSE,
|
|
157
|
+
].join('\n');
|
|
158
|
+
}
|
|
159
|
+
/** `problem` with every rules block the daemon appended taken back out. */
|
|
160
|
+
export function stripRulesBrief(problem) {
|
|
161
|
+
let out = problem;
|
|
162
|
+
for (let at = out.indexOf(RULES_BRIEF_OPEN); at !== -1; at = out.indexOf(RULES_BRIEF_OPEN)) {
|
|
163
|
+
const end = out.indexOf(RULES_BRIEF_CLOSE, at);
|
|
164
|
+
const tail = end === -1 ? '' : out.slice(end + RULES_BRIEF_CLOSE.length);
|
|
165
|
+
out = `${out.slice(0, at).trimEnd()}${tail}`;
|
|
166
|
+
}
|
|
167
|
+
return out;
|
|
168
|
+
}
|
|
169
|
+
/** Append the block to a launch's problem (an inherited block is replaced). Unchanged when no rule is in force.
|
|
170
|
+
* `listed` counts the rules to check; `notApplicable` the rules listed as ruled out. */
|
|
171
|
+
export function withRulesBrief(raw, rules, matches) {
|
|
172
|
+
const problem = stripRulesBrief(raw);
|
|
173
|
+
const block = rulesBriefBlock(rules, matches);
|
|
174
|
+
if (block === null)
|
|
175
|
+
return { problem, listed: 0, notApplicable: 0 };
|
|
176
|
+
const notApplicable = matches.filter((m) => m.status === 'not_applicable').length;
|
|
177
|
+
return { problem: `${problem.trimEnd()}\n\n${block}`, listed: matches.length - notApplicable, notApplicable };
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=rules-brief.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules-brief.js","sourceRoot":"","sources":["../../src/decisions/rules-brief.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AAC7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,6BAA6B,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,GAAG,IAAI,CAAC;AAC/C,mGAAmG;AACnG,MAAM,WAAW,GAAG,oBAAoB,CAAC;AACzC,+FAA+F;AAC/F,MAAM,QAAQ,GAAG,GAAG,CAAC;AA4BrB,MAAM,SAAS,GAAkB,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,mDAAmD,EAAE,CAAC;AAEpH;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAA+B,EAC/B,GAAiB,EACjB,KAAqD,EACrD,GAAyB;IAEzB,IAAI,QAAQ,GAAgB,EAAE,CAAC;IAC/B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC;YACH,MAAM,G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AAC,EAAE,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC3F,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;QAC/C,MAAM,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACzE,GAAG,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IAC/C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;yFACyF;AACzF,MAAM,UAAU,cAAc,CAC5B,GAAW,EACX,KAA+B,EAC/B,OAAiC;IAEjC,MAAM,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC9C,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;IACpE,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,gBAAgB,CAAC,CAAC,MAAM,CAAC;IAClF,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,GAAG,aAAa,EAAE,aAAa,EAAE,CAAC;AAChH,CAAC"}
|
package/dist/editors/csp.d.ts
CHANGED
|
@@ -5,11 +5,17 @@
|
|
|
5
5
|
* - {@link bundleHeaders}: on the bundle response. `sandbox allow-scripts` sandboxes the bundle even
|
|
6
6
|
* when opened top-level; `default-src 'none'` + `connect-src 'none'` is the line that protects the
|
|
7
7
|
* local no-auth daemon (no fetch, XHR, WebSocket, EventSource or beacon); `form-action 'none'`,
|
|
8
|
-
* `base-uri 'none'`, no workers, no manifest.
|
|
9
|
-
* because the bundle is ONE hashed file and nothing else can load. An editor holding
|
|
8
|
+
* `base-uri 'none'`, no workers, no manifest. An editor holding
|
|
10
9
|
* `network.media` (first-party `wicked-page`: agent-authored pages use web images) gets
|
|
11
10
|
* `img-src … https:` and `font-src … https:` — a GET-only channel, never `connect-src`.
|
|
12
11
|
* `navigate-to` / `prefetch-src` are deliberately absent: no browser enforces them (review B1).
|
|
12
|
+
* WebRTC is outside `connect-src`, so crew serves every bundle with the `webrtc-guard.ts` prelude at the
|
|
13
|
+
* start of each inline script. A THIRD-PARTY bundle's `script-src` is exactly those scripts' hashes, so no
|
|
14
|
+
* new realm it can make (a `srcdoc` child, a `blob:`/`data:` document it navigates to) runs a line before
|
|
15
|
+
* the prelude, and `javascript:` URLs and inline handlers are refused. A first-party bundle keeps
|
|
16
|
+
* `'unsafe-inline'`: its nested frames run agent HTML, which studio guards (from the studio release that carries
|
|
17
|
+
* `guardNestedHtml`; until crew bundles it, those nested frames are not covered). No bundle
|
|
18
|
+
* may load a child frame from a URL (`frame-src 'none'`); `srcdoc` frames are not URL loads.
|
|
13
19
|
* - {@link shellCsp}: on studio's own shell document. A sandboxed frame may navigate ITSELF, and
|
|
14
20
|
* once it does the bundle's policy is gone — so the shell limits what any frame may point at:
|
|
15
21
|
* crew's own editors route, crew's interactive proxy (today's Document mode), `blob:` and
|
|
@@ -17,8 +23,22 @@
|
|
|
17
23
|
*/
|
|
18
24
|
import type { EditorRecord } from './registry.js';
|
|
19
25
|
export declare const BUNDLE_CSP_BASE: string;
|
|
20
|
-
/**
|
|
21
|
-
export declare
|
|
26
|
+
/** A first-party bundle's `script-src`: its own inline scripts, whatever their text (see the module comment). */
|
|
27
|
+
export declare const FIRST_PARTY_SCRIPTS = "'unsafe-inline'";
|
|
28
|
+
/**
|
|
29
|
+
* The second policy every third-party bundle carries: inline scripts only, no URL at all. A hash source would also let
|
|
30
|
+
* an external script through when its `integrity` names that hash (CSP3), and the browser fetches it before checking:
|
|
31
|
+
* a plugin knows its own script's hash, so the hash policy alone would let it send a request anywhere. A script must
|
|
32
|
+
* satisfy both policies; documents the frame makes inherit both.
|
|
33
|
+
*/
|
|
34
|
+
export declare const INLINE_ONLY_POLICY = "script-src 'unsafe-inline'";
|
|
35
|
+
/** A third-party bundle's `script-src`: exactly its prefixed inline scripts (`guardBundle`), each once, or nothing. */
|
|
36
|
+
export declare function thirdPartyScripts(scriptHashes: readonly string[]): string;
|
|
37
|
+
/**
|
|
38
|
+
* Exactly the §8.2 header set for one editor's bundle. `scriptHashes` are the served bundle's prefixed inline
|
|
39
|
+
* scripts (`guardBundle`); a third-party bundle runs those and nothing else, so none given means none run.
|
|
40
|
+
*/
|
|
41
|
+
export declare function bundleHeaders(record: Pick<EditorRecord, 'manifest' | 'firstParty'>, scriptHashes?: readonly string[]): Record<string, string>;
|
|
22
42
|
/** The shell's `frame-src` policy for the request's own origin (`scheme://host[:port]`). */
|
|
23
43
|
export declare function shellCsp(origin: string): string;
|
|
24
44
|
/** `scheme://host` of a request, from what the client sent (a hosted skin may sit behind a proxy). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csp.d.ts","sourceRoot":"","sources":["../../src/editors/csp.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"csp.d.ts","sourceRoot":"","sources":["../../src/editors/csp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,eAAe,QAIc,CAAC;AAE3C,iHAAiH;AACjH,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,+BAA+B,CAAC;AAE/D,uHAAuH;AACvH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAGzE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,YAAY,CAAC,EAAE,YAAY,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBjJ;AAED,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,sGAAsG;AACtG,wBAAgB,aAAa,CAAC,GAAG,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,OAAO,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;CAAE,GAAG,MAAM,CAIpH"}
|
package/dist/editors/csp.js
CHANGED
|
@@ -5,27 +5,54 @@
|
|
|
5
5
|
* - {@link bundleHeaders}: on the bundle response. `sandbox allow-scripts` sandboxes the bundle even
|
|
6
6
|
* when opened top-level; `default-src 'none'` + `connect-src 'none'` is the line that protects the
|
|
7
7
|
* local no-auth daemon (no fetch, XHR, WebSocket, EventSource or beacon); `form-action 'none'`,
|
|
8
|
-
* `base-uri 'none'`, no workers, no manifest.
|
|
9
|
-
* because the bundle is ONE hashed file and nothing else can load. An editor holding
|
|
8
|
+
* `base-uri 'none'`, no workers, no manifest. An editor holding
|
|
10
9
|
* `network.media` (first-party `wicked-page`: agent-authored pages use web images) gets
|
|
11
10
|
* `img-src … https:` and `font-src … https:` — a GET-only channel, never `connect-src`.
|
|
12
11
|
* `navigate-to` / `prefetch-src` are deliberately absent: no browser enforces them (review B1).
|
|
12
|
+
* WebRTC is outside `connect-src`, so crew serves every bundle with the `webrtc-guard.ts` prelude at the
|
|
13
|
+
* start of each inline script. A THIRD-PARTY bundle's `script-src` is exactly those scripts' hashes, so no
|
|
14
|
+
* new realm it can make (a `srcdoc` child, a `blob:`/`data:` document it navigates to) runs a line before
|
|
15
|
+
* the prelude, and `javascript:` URLs and inline handlers are refused. A first-party bundle keeps
|
|
16
|
+
* `'unsafe-inline'`: its nested frames run agent HTML, which studio guards (from the studio release that carries
|
|
17
|
+
* `guardNestedHtml`; until crew bundles it, those nested frames are not covered). No bundle
|
|
18
|
+
* may load a child frame from a URL (`frame-src 'none'`); `srcdoc` frames are not URL loads.
|
|
13
19
|
* - {@link shellCsp}: on studio's own shell document. A sandboxed frame may navigate ITSELF, and
|
|
14
20
|
* once it does the bundle's policy is gone — so the shell limits what any frame may point at:
|
|
15
21
|
* crew's own editors route, crew's interactive proxy (today's Document mode), `blob:` and
|
|
16
22
|
* `data:`. The origin is written per response because a path cannot follow `'self'`.
|
|
17
23
|
*/
|
|
18
|
-
export const BUNDLE_CSP_BASE = "sandbox allow-scripts; default-src 'none'; script-src
|
|
19
|
-
"img-src data: blob:{MEDIA}; media-src blob:; font-src data:{MEDIA}; frame-src
|
|
20
|
-
"child-src
|
|
24
|
+
export const BUNDLE_CSP_BASE = "sandbox allow-scripts; default-src 'none'; script-src {SCRIPTS}; style-src 'unsafe-inline'; " +
|
|
25
|
+
"img-src data: blob:{MEDIA}; media-src blob:; font-src data:{MEDIA}; frame-src 'none'; " +
|
|
26
|
+
"child-src 'none'; connect-src 'none'; form-action 'none'; base-uri 'none'; " +
|
|
21
27
|
"worker-src 'none'; manifest-src 'none'";
|
|
22
|
-
/**
|
|
23
|
-
export
|
|
28
|
+
/** A first-party bundle's `script-src`: its own inline scripts, whatever their text (see the module comment). */
|
|
29
|
+
export const FIRST_PARTY_SCRIPTS = "'unsafe-inline'";
|
|
30
|
+
/**
|
|
31
|
+
* The second policy every third-party bundle carries: inline scripts only, no URL at all. A hash source would also let
|
|
32
|
+
* an external script through when its `integrity` names that hash (CSP3), and the browser fetches it before checking:
|
|
33
|
+
* a plugin knows its own script's hash, so the hash policy alone would let it send a request anywhere. A script must
|
|
34
|
+
* satisfy both policies; documents the frame makes inherit both.
|
|
35
|
+
*/
|
|
36
|
+
export const INLINE_ONLY_POLICY = "script-src 'unsafe-inline'";
|
|
37
|
+
/** A third-party bundle's `script-src`: exactly its prefixed inline scripts (`guardBundle`), each once, or nothing. */
|
|
38
|
+
export function thirdPartyScripts(scriptHashes) {
|
|
39
|
+
const unique = [...new Set(scriptHashes)];
|
|
40
|
+
return unique.length === 0 ? "'none'" : unique.map((h) => `'sha256-${h}'`).join(' ');
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Exactly the §8.2 header set for one editor's bundle. `scriptHashes` are the served bundle's prefixed inline
|
|
44
|
+
* scripts (`guardBundle`); a third-party bundle runs those and nothing else, so none given means none run.
|
|
45
|
+
*/
|
|
46
|
+
export function bundleHeaders(record, scriptHashes = []) {
|
|
24
47
|
// `network.media` widens only for a first-party editor: a third-party pack editor never gets the
|
|
25
48
|
// network (§6.1 would have it ASK; garden's editor scaffold refuses to declare it at all).
|
|
26
49
|
const media = record.firstParty && record.manifest.permissions.some((p) => p.id === 'network.media') ? ' https:' : '';
|
|
50
|
+
const policy = BUNDLE_CSP_BASE.replaceAll('{MEDIA}', media);
|
|
27
51
|
return {
|
|
28
|
-
|
|
52
|
+
// One header, a comma-separated policy list (CSP3): the third-party hash policy, then the inline-only one.
|
|
53
|
+
'Content-Security-Policy': record.firstParty
|
|
54
|
+
? policy.replace('{SCRIPTS}', FIRST_PARTY_SCRIPTS)
|
|
55
|
+
: `${policy.replace('{SCRIPTS}', thirdPartyScripts(scriptHashes))}, ${INLINE_ONLY_POLICY}`,
|
|
29
56
|
'Cross-Origin-Resource-Policy': 'same-origin',
|
|
30
57
|
'X-Content-Type-Options': 'nosniff',
|
|
31
58
|
'X-DNS-Prefetch-Control': 'off',
|
package/dist/editors/csp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csp.js","sourceRoot":"","sources":["../../src/editors/csp.ts"],"names":[],"mappings":"AAA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