wicked-crew 0.16.13 → 0.17.1
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 +27 -9
- 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-jobs.d.ts +163 -0
- package/dist/api/chat-jobs.d.ts.map +1 -0
- package/dist/api/chat-jobs.js +767 -0
- package/dist/api/chat-jobs.js.map +1 -0
- 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 +170 -152
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +833 -15
- 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 +20 -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 +81 -23
- package/dist/api/product.d.ts.map +1 -1
- package/dist/api/product.js +149 -72
- 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 +69 -39
- package/dist/api/recording.d.ts.map +1 -1
- package/dist/api/recording.js +60 -49
- package/dist/api/recording.js.map +1 -1
- package/dist/api/routes.d.ts +229 -1506
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +1226 -169
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-timing-index.d.ts +12 -1
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +35 -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 +179 -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 +322 -2640
- package/dist/apps/spec.d.ts.map +1 -1
- package/dist/apps/spec.js +89 -120
- package/dist/apps/spec.js.map +1 -1
- 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 +6 -1
- 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 +34 -1
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +78 -2
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/builtin-catalog.d.ts.map +1 -1
- package/dist/core/builtin-catalog.js +2 -0
- package/dist/core/builtin-catalog.js.map +1 -1
- package/dist/core/deliver-text.d.ts +62 -1
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +244 -22
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +30 -3
- 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/qe-acceptance-setting.d.ts.map +1 -1
- package/dist/core/qe-acceptance-setting.js +6 -0
- package/dist/core/qe-acceptance-setting.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/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.js +3 -3
- package/dist/editors/routes.js.map +1 -1
- 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/proxy-routes.d.ts.map +1 -1
- package/dist/interactive/proxy-routes.js +76 -7
- package/dist/interactive/proxy-routes.js.map +1 -1
- 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 +31 -172
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +31 -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-v2.d.ts +90 -0
- package/dist/workflow-catalog/build-v2.d.ts.map +1 -0
- package/dist/workflow-catalog/build-v2.js +527 -0
- package/dist/workflow-catalog/build-v2.js.map +1 -0
- 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-v2.d.ts +12 -0
- package/dist/workflow-catalog/catalog-data-v2.d.ts.map +1 -0
- package/dist/workflow-catalog/catalog-data-v2.js +2582 -0
- package/dist/workflow-catalog/catalog-data-v2.js.map +1 -0
- 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/workflow-catalog/seeds-v2.d.ts +91 -0
- package/dist/workflow-catalog/seeds-v2.d.ts.map +1 -0
- package/dist/workflow-catalog/seeds-v2.js +2 -0
- package/dist/workflow-catalog/seeds-v2.js.map +1 -0
- package/dist/workflow-catalog/shape.d.ts +97 -0
- package/dist/workflow-catalog/shape.d.ts.map +1 -0
- package/dist/workflow-catalog/shape.js +97 -0
- package/dist/workflow-catalog/shape.js.map +1 -0
- 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 +651 -11
- package/package.json +31 -7
- 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-u4O_7N-b.js +0 -986
|
@@ -30,9 +30,10 @@
|
|
|
30
30
|
import { homedir } from 'node:os';
|
|
31
31
|
import { stripLinkedIssues } from './linked-issues.js';
|
|
32
32
|
import { stripRunLearnings } from '../learnings/recall.js';
|
|
33
|
-
|
|
33
|
+
import { stripRulesBrief } from '../decisions/rules-brief.js';
|
|
34
|
+
/** The intent without the daemon's appended blocks: linked-issue text (crew#627), approved learnings and the rules. */
|
|
34
35
|
function intentOnly(problem) {
|
|
35
|
-
return stripRunLearnings(stripLinkedIssues(problem));
|
|
36
|
+
return stripRulesBrief(stripRunLearnings(stripLinkedIssues(problem)));
|
|
36
37
|
}
|
|
37
38
|
import { rewriteHostPaths, withRootAliases } from './host-paths.js';
|
|
38
39
|
/**
|
|
@@ -239,15 +240,61 @@ export function commitSubject(title) {
|
|
|
239
240
|
/** One `#N` / `repo#N` / `owner/repo#N` inside a closing list. */
|
|
240
241
|
const ONE_REF = String.raw `(?:(?:[\w.-]+\/)?[\w.-]+)?#\d+\b`;
|
|
241
242
|
/**
|
|
242
|
-
* `fix issue #214`, `fixes #7`, `closes wicked-studio#3`, `resolved: #9` — a closing verb + a ref —
|
|
243
|
+
* `fix issue #214`, `fixes #7`, `fix the bug #3`, `closes wicked-studio#3`, `resolved: #9` — a closing verb + a ref —
|
|
243
244
|
* and a LIST after one verb (crew#635: `fix #618, #619 and #620` closed only #618, so every merge
|
|
244
245
|
* left the rest open): refs joined by `,` / `and` / `&` / `+` / `/` all ride the one verb.
|
|
245
246
|
*/
|
|
246
|
-
const CLOSING_LIST = new RegExp(String.raw `\b(?:fix(?:es|ed)?|close[sd]?|resolve[sd]?)\b(?:\s+(?:issues?|bugs?|for))?\s*:?\s*(` +
|
|
247
|
+
const CLOSING_LIST = new RegExp(String.raw `\b(?:fix(?:es|ed)?|close[sd]?|resolve[sd]?)\b(?:\s+the)?(?:\s+(?:issues?|bugs?|for))?\s*:?\s*(` +
|
|
247
248
|
ONE_REF +
|
|
248
249
|
String.raw `(?:\s*(?:,|&|\+|\/|\band\b)?\s*` +
|
|
249
250
|
ONE_REF +
|
|
250
251
|
`)*)`, 'gi');
|
|
252
|
+
/**
|
|
253
|
+
* (e2e-1105 F4) A closing verb its own sentence negates — "does not fix #1", "don't close #2", "cannot resolve #3",
|
|
254
|
+
* "does not, in this PR, close #4", "do not under any circumstances close #5" — never closes: the ref stays a mention.
|
|
255
|
+
* The negation is looked for in the verb's sentence or clause only (back to `.` `;` `!` `?` or a blank line), so
|
|
256
|
+
* "It never renders.\n\nFix #6" still closes #6, and "not only fixes #7" closes #7. Erring here leaves an issue open
|
|
257
|
+
* for a person to close (or to say so in a note at the deliver gate); it never closes one the words did not claim.
|
|
258
|
+
*/
|
|
259
|
+
const NEGATION = /(?:\b(?:not|never|neither|nor|cannot|no longer)\b|n['\u2019]t\b)(?![ \t]+only\b)/i;
|
|
260
|
+
/** A clause boundary: `.` `;` `!` `?` before whitespace (not the dot of `e.g.` / `i.e.` / `etc.` / `vs.`), or a blank line. */
|
|
261
|
+
const CLAUSE_START = /(?<!\b(?:e\.g|i\.e|etc|vs))[.;!?](?=\s)|\n[ \t]*\n/gi;
|
|
262
|
+
/** Whether the clause before `index` in `text` (the closing verb's own) carries a negation. */
|
|
263
|
+
function negatedBefore(text, index) {
|
|
264
|
+
const before = text.slice(0, index);
|
|
265
|
+
let from = 0;
|
|
266
|
+
for (const m of before.matchAll(CLAUSE_START))
|
|
267
|
+
from = m.index + m[0].length;
|
|
268
|
+
return NEGATION.test(before.slice(from));
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* `text` with what it quotes blanked — fenced code, `>` quote lines, and "…", “…”, `…`, '…' spans, across lines — and
|
|
272
|
+
* the daemon's appended blocks removed: words a note quotes are someone else's, not the note's claim.
|
|
273
|
+
*/
|
|
274
|
+
function unquoted(text) {
|
|
275
|
+
return intentOnly(text)
|
|
276
|
+
.replace(/(^|\n)[ \t]*(```|~~~)[^\n]*\n[\s\S]*?(\n[ \t]*\2[^\n]*|$)/g, '$1 ')
|
|
277
|
+
// A `>` quote runs to the next blank line (Markdown's lazy continuation); indented code is quoted too.
|
|
278
|
+
.replace(/(^|\n)[ \t]*>[^\n]*(?:\n(?![ \t]*\n)[^\n]*)*/g, '$1 ')
|
|
279
|
+
.replace(/(^|\n)(?: {4}|\t)[^\n]*/g, '$1 ')
|
|
280
|
+
.replace(/"[^"]*"|\u201c[^\u201d]*\u201d|\u2018[^\u2019]*\u2019|`[^`]*`|(?<!\w)'[^']*'(?!\w)/g, ' ');
|
|
281
|
+
}
|
|
282
|
+
const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
283
|
+
/**
|
|
284
|
+
* (e2e-1105 F4) `tiny-math issue #1`, `owner/tiny-math bug #1`: an issue of the DELIVERY repository named by its repo
|
|
285
|
+
* and the word `issue` / `bug`, the job-title form studio and chat write ("Fix tiny-math issue #1: sum() …"). It is the
|
|
286
|
+
* same reference as `tiny-math#1` (`owner/tiny-math#1`), so it is rewritten to that before the scan, and from there it
|
|
287
|
+
* is read exactly as that spelling always was: "Fix tiny-math issue #1" closes #1, "Fix owner/tiny-math issue #1"
|
|
288
|
+
* closes `owner/tiny-math#1` as written, and "(tiny-math issue #1)" with no verb stays a mention. Only the delivery
|
|
289
|
+
* repo's own name qualifies: "Fix other-repo issue #1" or "Fix login issue #1" is left as written, so another
|
|
290
|
+
* repository's #1 never becomes this one's `Fixes #1`.
|
|
291
|
+
*/
|
|
292
|
+
function sameRepoIssueWords(text, repoRef) {
|
|
293
|
+
if (repoRef === undefined || repoRef === null || repoRef === '')
|
|
294
|
+
return text;
|
|
295
|
+
const words = new RegExp(String.raw `(?<![\w./#-])((?:[\w.-]+\/)?${escapeRe(repoRef)})\s+(?:issues?|bugs?)\s*:?\s*(?=#\d)`, 'gi');
|
|
296
|
+
return text.replace(words, '$1');
|
|
297
|
+
}
|
|
251
298
|
/** Any `#N`, `repo#N` or `owner/repo#N` not glued to a word/path (so `a/b#1` is one ref, `#1a` none). */
|
|
252
299
|
const ANY_REF = /(?<![\w/#])((?:[\w.-]+\/)?[\w.-]+)?#(\d+)\b/g;
|
|
253
300
|
/** Does `owner/repo#N` name the delivery repository (`repoRef`, the registered repo id)? */
|
|
@@ -266,29 +313,53 @@ function sameRepo(ref, repoRef) {
|
|
|
266
313
|
* on a wicked-studio delivery must close #214). Any other owner-less `repo#N` rides verbatim as
|
|
267
314
|
* information; `owner/repo#N` is left exactly as written.
|
|
268
315
|
*/
|
|
269
|
-
export function issueRefs(rawIntent, repoRef) {
|
|
316
|
+
export function issueRefs(rawIntent, repoRef, notes = []) {
|
|
270
317
|
// The daemon's linked-issues block (crew#627) is issue TEXT, not the intent: its mentions are
|
|
271
318
|
// never the run's references.
|
|
272
|
-
const intent = intentOnly(rawIntent);
|
|
319
|
+
const intent = sameRepoIssueWords(intentOnly(rawIntent), repoRef);
|
|
273
320
|
const normalize = (prefix, n) => {
|
|
274
321
|
if (prefix === undefined || prefix === '')
|
|
275
322
|
return `#${n}`;
|
|
276
|
-
if (!prefix.includes('/') && repoRef !== undefined && repoRef !== null && prefix === repoRef)
|
|
323
|
+
if (!prefix.includes('/') && repoRef !== undefined && repoRef !== null && prefix.toLowerCase() === repoRef.toLowerCase())
|
|
277
324
|
return `#${n}`;
|
|
278
325
|
return `${prefix}#${n}`;
|
|
279
326
|
};
|
|
280
|
-
|
|
327
|
+
/** The refs `text` says it closes, and the ones it says it does NOT close (a negated verb). */
|
|
328
|
+
const closing = (text) => {
|
|
329
|
+
const closes = [];
|
|
330
|
+
const notCloses = [];
|
|
331
|
+
for (const list of text.matchAll(CLOSING_LIST)) {
|
|
332
|
+
const negated = negatedBefore(text, list.index);
|
|
333
|
+
// Inside a matched list a ref may follow `/` (`#618/#619`), which ANY_REF's guard refuses.
|
|
334
|
+
for (const m of list[1].matchAll(/((?:[\w.-]+\/)?[\w.-]+)?#(\d+)\b/g)) {
|
|
335
|
+
const ref = normalize(m[1], m[2]);
|
|
336
|
+
// crew#635: an `owner/repo#N` in ANOTHER repository stays `Refs:` even under a closing verb —
|
|
337
|
+
// merging this PR must not close an issue whose share of the work lives elsewhere.
|
|
338
|
+
if (ref.includes('/') && !sameRepo(ref, repoRef))
|
|
339
|
+
continue;
|
|
340
|
+
const into = negated ? notCloses : closes;
|
|
341
|
+
if (!into.includes(ref))
|
|
342
|
+
into.push(ref);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
return { closes, notCloses };
|
|
346
|
+
};
|
|
347
|
+
const said = closing(intent);
|
|
348
|
+
// A negated verb wins over a closing one for the same ref: closing is the claim that needs the words.
|
|
349
|
+
const fixes = said.closes.filter((r) => !said.notCloses.includes(r));
|
|
281
350
|
const refs = [];
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
351
|
+
const byNote = [];
|
|
352
|
+
// (e2e-1105 F4c) The person's notes at the deliver gate add to the closing line: a ref a note says this PR closes
|
|
353
|
+
// (not negated, not inside quotes, which are someone else's words) is closed. The person's word, never a seat's: a
|
|
354
|
+
// note is an operator ruling the engine recorded on the deliver unit. A note cannot un-close what the intent closes:
|
|
355
|
+
// the intent is published in the body, where its own words would still close it.
|
|
356
|
+
for (const note of notes) {
|
|
357
|
+
const n = closing(sameRepoIssueWords(unquoted(note), repoRef));
|
|
358
|
+
for (const ref of n.closes.filter((r) => !n.notCloses.includes(r))) {
|
|
290
359
|
if (!fixes.includes(ref))
|
|
291
360
|
fixes.push(ref);
|
|
361
|
+
if (!said.closes.filter((r) => !said.notCloses.includes(r)).includes(ref) && !byNote.includes(ref))
|
|
362
|
+
byNote.push(ref);
|
|
292
363
|
}
|
|
293
364
|
}
|
|
294
365
|
for (const m of intent.matchAll(ANY_REF)) {
|
|
@@ -304,7 +375,7 @@ export function issueRefs(rawIntent, repoRef) {
|
|
|
304
375
|
if (!fixes.includes(ref) && !refs.includes(ref))
|
|
305
376
|
refs.push(ref);
|
|
306
377
|
}
|
|
307
|
-
return { fixes, refs };
|
|
378
|
+
return byNote.length > 0 ? { fixes, refs, byNote } : { fixes, refs };
|
|
308
379
|
}
|
|
309
380
|
/**
|
|
310
381
|
* (crew#933) The Azure Boards work items the intent names — `AB#<id>`, the syntax Azure Boards
|
|
@@ -347,7 +418,7 @@ export function boundIntentForEmbedding(intent) {
|
|
|
347
418
|
* and the reference is not.
|
|
348
419
|
*/
|
|
349
420
|
export function composeEmbeddedDeliverText(f) {
|
|
350
|
-
return composeDeliverText({ ...f, intent: boundIntentForEmbedding(f.intent) }, issueRefs(f.intent, f.repoRef));
|
|
421
|
+
return composeDeliverText({ ...f, intent: boundIntentForEmbedding(f.intent) }, issueRefs(f.intent, f.repoRef, f.deliveryNotes));
|
|
351
422
|
}
|
|
352
423
|
// ── the body ───────────────────────────────────────────────────────────────────────────────────
|
|
353
424
|
/** A markdown table cell: control characters out, pipes escaped, bounded. */
|
|
@@ -388,19 +459,32 @@ const FOOTER_LINK = '[wicked-crew](https://wc.wickedagile.com)';
|
|
|
388
459
|
* `links` defaults to the issue references of `f.intent`; the embedded-fallback path passes the
|
|
389
460
|
* references of the FULL intent while `f.intent` is the bounded copy ({@link composeEmbeddedDeliverText}).
|
|
390
461
|
*/
|
|
391
|
-
export function composeDeliverText(raw, links = issueRefs(intentOnly(raw.intent), raw.repoRef)) {
|
|
462
|
+
export function composeDeliverText(raw, links = issueRefs(intentOnly(raw.intent), raw.repoRef, raw.deliveryNotes)) {
|
|
392
463
|
// crew#886: redact the FACTS, not only the text — the title and table cells are cut to a width,
|
|
393
464
|
// and a cut through a home path would no longer match it (codex on crew#887). The output pass
|
|
394
465
|
// below stays as the backstop.
|
|
395
466
|
const f = redactFacts(raw);
|
|
396
|
-
const
|
|
397
|
-
const
|
|
467
|
+
const jiraKeys = [...new Set((f.trackerRefs ?? []).filter((t) => t.system === 'jira' && /^[A-Z][A-Z0-9_]{0,19}-[1-9][0-9]{0,9}$/.test(t.ref)).map((t) => t.ref))];
|
|
468
|
+
const bare = deliverTitle(intentOnly(f.intent), f.runId, f.workflowId);
|
|
469
|
+
// A Jira key the title does not already name leads it, so a cut at the title's bound never drops it.
|
|
470
|
+
const missing = jiraKeys.filter((k) => !new RegExp(`(?<![\\w-])${k}(?![\\w-])`).test(bare));
|
|
471
|
+
const title = missing.length === 0 ? bare : boundedTitle(`${missing.join(' ')} ${bare}`);
|
|
472
|
+
// (DES-PM-001 §6 step 3) A bare `#N` the launch resolved through the run repo's linked GitHub tracker is THAT
|
|
473
|
+
// tracker's issue: it links back as `owner/repo#N`, so a tracker in another repository is named, never guessed.
|
|
474
|
+
// Keyed by the reference as the intent spelled it, so `#42` and `owner/other#42` never stand in for each other.
|
|
475
|
+
const viaTracker = new Map((f.trackerRefs ?? []).filter((t) => t.system === 'github' && t.asked !== undefined && t.asked.startsWith('#') && /^[\w.-]+\/[\w.-]+#\d+$/.test(t.ref)).map((t) => [t.asked, t.ref]));
|
|
476
|
+
const canon = (r) => (r.startsWith('#') ? (viaTracker.get(r) ?? r) : r);
|
|
477
|
+
const fixes = links.fixes.map(canon);
|
|
478
|
+
const refs = links.refs.map(canon);
|
|
398
479
|
const intent = intentOnly(f.intent).replace(/\r\n?/g, '\n').replace(CONTROL_CHARS, ' ').trim();
|
|
399
480
|
const out = [];
|
|
400
481
|
out.push('## Intent', '', intent === '' ? '_(the run recorded no intent)_' : intent, '');
|
|
401
482
|
if (fixes.length > 0 || refs.length > 0) {
|
|
402
483
|
for (const x of fixes)
|
|
403
484
|
out.push(`Fixes ${x}`);
|
|
485
|
+
const noted = (links.byNote ?? []).map(canon).filter((x) => fixes.includes(x));
|
|
486
|
+
if (noted.length > 0)
|
|
487
|
+
out.push('', `_${noted.join(', ')} closed on the word of the person who answered the deliver gate (the intent did not say it)._`);
|
|
404
488
|
if (refs.length > 0) {
|
|
405
489
|
out.push(`Refs: ${refs.join(', ')}`);
|
|
406
490
|
// crew#635: say why a Refs issue stays open, so "a human closes it" is a stated step.
|
|
@@ -408,6 +492,8 @@ export function composeDeliverText(raw, links = issueRefs(intentOnly(raw.intent)
|
|
|
408
492
|
}
|
|
409
493
|
out.push('');
|
|
410
494
|
}
|
|
495
|
+
if (jiraKeys.length > 0)
|
|
496
|
+
out.push(`Tracks: ${jiraKeys.join(', ')} (Jira)`, '');
|
|
411
497
|
out.push('## Run', '');
|
|
412
498
|
// The label is the same one-line code span as the unlinked form — a caller-supplied id cannot
|
|
413
499
|
// break the line or the Markdown (the URL half is `urlPathSegment`-encoded by `runUrlFor`).
|
|
@@ -441,6 +527,9 @@ export function composeDeliverText(raw, links = issueRefs(intentOnly(raw.intent)
|
|
|
441
527
|
}
|
|
442
528
|
}
|
|
443
529
|
out.push('');
|
|
530
|
+
if (f.ruleSkipsAsked !== undefined && f.ruleSkipsAsked.length > 0) {
|
|
531
|
+
out.push(`Steering rules the person asked to skip at a gate, each with a written reason on the run record: ${f.ruleSkipsAsked.map((id) => code(oneLine(id))).join(', ')}.`, '');
|
|
532
|
+
}
|
|
444
533
|
out.push('## Repo checks', '');
|
|
445
534
|
if (f.source === 'workflow') {
|
|
446
535
|
out.push('_Not available at composition time — the run record has them._');
|
|
@@ -854,6 +943,108 @@ export function operatorJudgedLabel(u) {
|
|
|
854
943
|
];
|
|
855
944
|
return lines.join('; ');
|
|
856
945
|
}
|
|
946
|
+
/** The gate cell with its steering-rule line beside it, when the gate checked rules. */
|
|
947
|
+
function withRules(gate, rules) {
|
|
948
|
+
return rules === null ? gate : `${gate} · ${rules}`;
|
|
949
|
+
}
|
|
950
|
+
/** (DES-RULE-CHECK-001 S4) `N rules checked: K kept, B broken, X not applicable` (and the held, disputed and
|
|
951
|
+
* skipped ones, each skip with its reason, and each council ruling with its vote) for a gate whose receipt carries rule verdicts
|
|
952
|
+
* (`assurance.rules`, api-types 0.190.0); else `null`. */
|
|
953
|
+
export function rulesLabel(u) {
|
|
954
|
+
const rows = u.assurance?.rules;
|
|
955
|
+
if (!Array.isArray(rows) || rows.length === 0)
|
|
956
|
+
return null;
|
|
957
|
+
return rulesSummaryLine(rows);
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* (e2e-1105 F4c) The rules the person asked to skip at a gate of this run (`rule_skips`, recorded by the gate's
|
|
961
|
+
* `skip_rules` before the step runs again), so a delivery that runs after a skip says so in its own text: the check
|
|
962
|
+
* that records the skip on the receipt runs only after the PR text is written. Rule ids only, every one (listed
|
|
963
|
+
* after the phases table, not in a bounded cell): the written reasons are on the run record and the delivery
|
|
964
|
+
* receipt, never copied here (free text could carry a closing keyword).
|
|
965
|
+
*/
|
|
966
|
+
export function ruleSkipsAsked(units) {
|
|
967
|
+
const ids = [];
|
|
968
|
+
for (const u of units) {
|
|
969
|
+
const skips = u.rule_skips;
|
|
970
|
+
if (!Array.isArray(skips))
|
|
971
|
+
continue;
|
|
972
|
+
for (const x of skips) {
|
|
973
|
+
const id = typeof x === 'object' && x !== null ? x.ruleId : undefined;
|
|
974
|
+
if (typeof id === 'string' && id.trim() !== '' && !ids.includes(id))
|
|
975
|
+
ids.push(id);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
return ids;
|
|
979
|
+
}
|
|
980
|
+
/** The summary line over rule rows (one wording for the PR body and the delivery). A process rule
|
|
981
|
+
* (`blocking: false`, DES-RULE-CHECK-001 rev 2 B.4) never decides the gate, so it is left out of the
|
|
982
|
+
* "N rules checked" counts and reported after them. */
|
|
983
|
+
export function rulesSummaryLine(rows) {
|
|
984
|
+
const gate = rows.filter((r) => r.blocking !== false);
|
|
985
|
+
const process = rows.filter((r) => r.blocking === false);
|
|
986
|
+
let line = gateRulesLine(gate);
|
|
987
|
+
if (process.length > 0) {
|
|
988
|
+
const n = (s) => process.filter((r) => r.status === s).length;
|
|
989
|
+
line += `; ${process.length} process rules reported (do not block): ${n('kept')} kept, ${n('broken')} broken, ${n('n_a')} not applicable`;
|
|
990
|
+
const other = process.length - n('kept') - n('broken') - n('n_a');
|
|
991
|
+
if (other > 0)
|
|
992
|
+
line += `, ${other} not ruled`;
|
|
993
|
+
}
|
|
994
|
+
return line;
|
|
995
|
+
}
|
|
996
|
+
/** Statuses the line names after kept / broken / not applicable, in the engine's order (core `summary()`). */
|
|
997
|
+
const HELD_WORDS = [
|
|
998
|
+
['waived', 'waived by instruction (to confirm)'],
|
|
999
|
+
['deferred', 'deferred to delivery'],
|
|
1000
|
+
['unchecked', 'unchecked'],
|
|
1001
|
+
['disputed', 'disputed (you decide)'],
|
|
1002
|
+
];
|
|
1003
|
+
const NAMED_STATUSES = new Set(['kept', 'broken', 'n_a', 'skipped', ...HELD_WORDS.map(([s]) => s)]);
|
|
1004
|
+
function gateRulesLine(rows) {
|
|
1005
|
+
const n = (s) => rows.filter((r) => r.status === s).length;
|
|
1006
|
+
let line = `${rows.length} rules checked: ${n('kept')} kept, ${n('broken')} broken, ${n('n_a')} not applicable`;
|
|
1007
|
+
for (const [status, word] of HELD_WORDS)
|
|
1008
|
+
if (n(status) > 0)
|
|
1009
|
+
line += `, ${n(status)} ${word}`;
|
|
1010
|
+
// A status this crew does not know yet holds the gate in the engine: counted, never dropped from the line.
|
|
1011
|
+
const unknown = rows.filter((r) => !NAMED_STATUSES.has(String(r.status))).length;
|
|
1012
|
+
if (unknown > 0)
|
|
1013
|
+
line += `, ${unknown} not ruled`;
|
|
1014
|
+
const skipped = rows.filter((r) => r.status === 'skipped');
|
|
1015
|
+
if (skipped.length > 0) {
|
|
1016
|
+
line += `, ${skipped.length} skipped by operator (${skipped
|
|
1017
|
+
// A reason is the person's free text: a `#N` in it is never published as a reference (e2e-1105 F4c).
|
|
1018
|
+
.map((r) => `${String(r.ruleId)}: ${typeof r.reason === 'string' ? r.reason.replace(/^skipped by [^:]*:\s*/u, '').replace(/#(?=\d)/g, '# ') : ''}`)
|
|
1019
|
+
.join('; ')})`;
|
|
1020
|
+
}
|
|
1021
|
+
// A ruling a council reached (DES-RULE-CHECK-001 rev 2 A.5): the rule, the ruling and the vote. Engine words
|
|
1022
|
+
// only (ids, statuses, counts), never a seat's free text.
|
|
1023
|
+
const settled = rows.flatMap((r) => {
|
|
1024
|
+
const t = councilRuling(r);
|
|
1025
|
+
return t === null ? [] : [`${String(r.ruleId)}: ${t}`];
|
|
1026
|
+
});
|
|
1027
|
+
if (settled.length > 0)
|
|
1028
|
+
line += `, ${settled.length} settled by council (${settled.join('; ')})`;
|
|
1029
|
+
return line;
|
|
1030
|
+
}
|
|
1031
|
+
const RULING_WORD = { kept: 'kept', broken: 'broken', n_a: 'not applicable', waived: 'waived by instruction' };
|
|
1032
|
+
/** `broken 2-1` for a row a council ruled on (origin `council`, a ruling it holds); else `null`. The tally is the
|
|
1033
|
+
* engine's (`RuleCouncil::tally`): the counted votes for the ruling (a kept vote counts toward a waiver), then the
|
|
1034
|
+
* rest of the counted votes. */
|
|
1035
|
+
export function councilRuling(r) {
|
|
1036
|
+
if (r.origin !== 'council' || typeof r.council !== 'object' || r.council === null)
|
|
1037
|
+
return null;
|
|
1038
|
+
const c = r.council;
|
|
1039
|
+
if (typeof c.ruling !== 'string' || c.ruling !== r.status || RULING_WORD[c.ruling] === undefined)
|
|
1040
|
+
return null;
|
|
1041
|
+
const counted = (Array.isArray(c.votes) ? c.votes : [])
|
|
1042
|
+
.filter((v) => typeof v === 'object' && v !== null)
|
|
1043
|
+
.filter((v) => v.counted === true && typeof v.status === 'string')
|
|
1044
|
+
.map((v) => v.status);
|
|
1045
|
+
const won = counted.filter((s) => s === c.ruling || (c.ruling === 'waived' && s === 'kept')).length;
|
|
1046
|
+
return `${RULING_WORD[c.ruling]} ${won}-${counted.length - won}`;
|
|
1047
|
+
}
|
|
857
1048
|
/** (operator ruling 2026-10-14) The engine's disclosure line — `judge: agy (fallback; codex benched: …)` — when
|
|
858
1049
|
* this phase's gate was judged by a fallback seat (`assurance.judgeFallbacks`, api-types 0.121.0); else `null`. */
|
|
859
1050
|
export function judgeFallbackLabel(u) {
|
|
@@ -986,7 +1177,7 @@ export function factsFromRun(view, runUrl, resolved = {}) {
|
|
|
986
1177
|
id,
|
|
987
1178
|
stage: u.stage,
|
|
988
1179
|
role: u.role ?? 'neutral',
|
|
989
|
-
gate: withJudgeFallback(operatorJudgedLabel(u) ?? gateLabel(u.gate), judgeFallbackLabel(u)),
|
|
1180
|
+
gate: withRules(withJudgeFallback(operatorJudgedLabel(u) ?? gateLabel(u.gate), judgeFallbackLabel(u)), rulesLabel(u)),
|
|
990
1181
|
seat: seatOf(u),
|
|
991
1182
|
outcome: id === 'deliver' && running ? 'this PR' : (u.phase_status ?? u.status),
|
|
992
1183
|
};
|
|
@@ -1007,8 +1198,39 @@ export function factsFromRun(view, runUrl, resolved = {}) {
|
|
|
1007
1198
|
...(resolved.followUps !== undefined ? { followUps: resolved.followUps } : {}),
|
|
1008
1199
|
...(resolved.reports !== undefined ? { reports: resolved.reports } : {}),
|
|
1009
1200
|
...(assurance !== undefined ? { assurance } : {}),
|
|
1201
|
+
...(resolved.trackerRefs !== undefined && resolved.trackerRefs.length > 0 ? { trackerRefs: resolved.trackerRefs } : {}),
|
|
1202
|
+
...(() => {
|
|
1203
|
+
const notes = deliveryNotesOf(units);
|
|
1204
|
+
return notes.length > 0 ? { deliveryNotes: notes } : {};
|
|
1205
|
+
})(),
|
|
1206
|
+
...(() => {
|
|
1207
|
+
const asked = ruleSkipsAsked(units);
|
|
1208
|
+
return asked.length > 0 ? { ruleSkipsAsked: asked } : {};
|
|
1209
|
+
})(),
|
|
1010
1210
|
};
|
|
1011
1211
|
}
|
|
1212
|
+
/**
|
|
1213
|
+
* (e2e-1105 F4c) The person's notes at the deliver gate, oldest first: the `amend` rulings the engine recorded on the
|
|
1214
|
+
* deliver unit (`operator_rulings`, written only by a person's gate answer). A seat's output never lands there.
|
|
1215
|
+
*/
|
|
1216
|
+
export function deliveryNotesOf(units) {
|
|
1217
|
+
const amends = [];
|
|
1218
|
+
for (const u of units) {
|
|
1219
|
+
if (phaseIdOf(u) !== 'deliver' && u.catalog !== 'deliver')
|
|
1220
|
+
continue;
|
|
1221
|
+
const rulings = u.operator_rulings;
|
|
1222
|
+
if (!Array.isArray(rulings))
|
|
1223
|
+
continue;
|
|
1224
|
+
for (const r of rulings) {
|
|
1225
|
+
if (typeof r !== 'object' || r === null)
|
|
1226
|
+
continue;
|
|
1227
|
+
const { action, text, at } = r;
|
|
1228
|
+
if (action === 'amend' && typeof text === 'string' && text.trim() !== '')
|
|
1229
|
+
amends.push({ text, at: typeof at === 'number' ? at : 0 });
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
return amends.sort((a, b) => a.at - b.at).map((a) => a.text);
|
|
1233
|
+
}
|
|
1012
1234
|
/** What is known at LAUNCH, from the workflow definition — the script's embedded fallback. */
|
|
1013
1235
|
export function factsFromWorkflow(input) {
|
|
1014
1236
|
return {
|