wicked-crew 0.18.20 → 0.18.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/capture.d.ts +5 -2
- package/dist/api/capture.d.ts.map +1 -1
- package/dist/api/capture.js +13 -10
- package/dist/api/capture.js.map +1 -1
- package/dist/api/chat-context.d.ts +12 -0
- package/dist/api/chat-context.d.ts.map +1 -1
- package/dist/api/chat-context.js +61 -6
- package/dist/api/chat-context.js.map +1 -1
- package/dist/api/chat-freshness.js +2 -2
- package/dist/api/chat-freshness.js.map +1 -1
- package/dist/api/chat-jobs.d.ts +54 -0
- package/dist/api/chat-jobs.d.ts.map +1 -1
- package/dist/api/chat-jobs.js +199 -7
- package/dist/api/chat-jobs.js.map +1 -1
- package/dist/api/chat-proposals.d.ts +39 -6
- package/dist/api/chat-proposals.d.ts.map +1 -1
- package/dist/api/chat-proposals.js +161 -36
- package/dist/api/chat-proposals.js.map +1 -1
- package/dist/api/chat-requirements.d.ts.map +1 -1
- package/dist/api/chat-requirements.js +4 -1
- package/dist/api/chat-requirements.js.map +1 -1
- package/dist/api/chat-scope.d.ts +8 -0
- package/dist/api/chat-scope.d.ts.map +1 -1
- package/dist/api/chat-scope.js +26 -2
- package/dist/api/chat-scope.js.map +1 -1
- package/dist/api/cluster-status.d.ts +24 -12
- package/dist/api/cluster-status.d.ts.map +1 -1
- package/dist/api/cluster-status.js +81 -3
- package/dist/api/cluster-status.js.map +1 -1
- package/dist/api/codebase-archive.js +2 -2
- package/dist/api/codebase-archive.js.map +1 -1
- package/dist/api/delivery-cache.d.ts +2 -0
- package/dist/api/delivery-cache.d.ts.map +1 -1
- package/dist/api/delivery-cache.js +1 -2
- package/dist/api/delivery-cache.js.map +1 -1
- package/dist/api/delivery-index.d.ts +2 -2
- package/dist/api/delivery-index.d.ts.map +1 -1
- package/dist/api/delivery-index.js +1 -2
- package/dist/api/delivery-index.js.map +1 -1
- package/dist/api/eval-compare.d.ts +1 -1
- package/dist/api/eval-compare.js +1 -1
- package/dist/api/eval-sample.d.ts +7 -0
- package/dist/api/eval-sample.d.ts.map +1 -1
- package/dist/api/eval-sample.js +20 -0
- package/dist/api/eval-sample.js.map +1 -1
- package/dist/api/governance-steering.d.ts +13 -0
- package/dist/api/governance-steering.d.ts.map +1 -1
- package/dist/api/governance-steering.js +56 -7
- package/dist/api/governance-steering.js.map +1 -1
- package/dist/api/mcp.d.ts +3 -1
- package/dist/api/mcp.d.ts.map +1 -1
- package/dist/api/mcp.js +5 -2
- package/dist/api/mcp.js.map +1 -1
- package/dist/api/needs.d.ts +20 -0
- package/dist/api/needs.d.ts.map +1 -1
- package/dist/api/needs.js +120 -19
- package/dist/api/needs.js.map +1 -1
- package/dist/api/onboarding-capture.d.ts +21 -1
- package/dist/api/onboarding-capture.d.ts.map +1 -1
- package/dist/api/onboarding-capture.js +112 -8
- package/dist/api/onboarding-capture.js.map +1 -1
- package/dist/api/policy-landing.d.ts +36 -0
- package/dist/api/policy-landing.d.ts.map +1 -1
- package/dist/api/policy-landing.js +123 -4
- package/dist/api/policy-landing.js.map +1 -1
- package/dist/api/post-hoc-deliver.d.ts.map +1 -1
- package/dist/api/post-hoc-deliver.js +2 -1
- package/dist/api/post-hoc-deliver.js.map +1 -1
- package/dist/api/proposal-decisions.d.ts +44 -0
- package/dist/api/proposal-decisions.d.ts.map +1 -0
- package/dist/api/proposal-decisions.js +85 -0
- package/dist/api/proposal-decisions.js.map +1 -0
- package/dist/api/proposal-onboard.d.ts +29 -0
- package/dist/api/proposal-onboard.d.ts.map +1 -1
- package/dist/api/proposal-onboard.js +162 -11
- package/dist/api/proposal-onboard.js.map +1 -1
- package/dist/api/recording.d.ts.map +1 -1
- package/dist/api/recording.js +4 -5
- package/dist/api/recording.js.map +1 -1
- package/dist/api/redeliver.d.ts.map +1 -1
- package/dist/api/redeliver.js +11 -7
- package/dist/api/redeliver.js.map +1 -1
- package/dist/api/repo-input.d.ts.map +1 -1
- package/dist/api/repo-input.js +5 -2
- package/dist/api/repo-input.js.map +1 -1
- package/dist/api/repo-origins.d.ts +24 -0
- package/dist/api/repo-origins.d.ts.map +1 -0
- package/dist/api/repo-origins.js +71 -0
- package/dist/api/repo-origins.js.map +1 -0
- package/dist/api/requirements.d.ts +36 -1
- package/dist/api/requirements.d.ts.map +1 -1
- package/dist/api/requirements.js +73 -2
- package/dist/api/requirements.js.map +1 -1
- package/dist/api/review-change.d.ts +5 -6
- package/dist/api/review-change.d.ts.map +1 -1
- package/dist/api/review-change.js +45 -8
- package/dist/api/review-change.js.map +1 -1
- package/dist/api/routes.d.ts +33 -4
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +518 -182
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-sources.d.ts +11 -1
- package/dist/api/run-sources.d.ts.map +1 -1
- package/dist/api/run-sources.js +26 -3
- package/dist/api/run-sources.js.map +1 -1
- package/dist/api/run-timing-index.d.ts +46 -1
- package/dist/api/run-timing-index.d.ts.map +1 -1
- package/dist/api/run-timing-index.js +135 -1
- package/dist/api/run-timing-index.js.map +1 -1
- package/dist/api/runtime-state.d.ts +6 -0
- package/dist/api/runtime-state.d.ts.map +1 -1
- package/dist/api/runtime-state.js +14 -3
- package/dist/api/runtime-state.js.map +1 -1
- package/dist/api/seat-agents.d.ts.map +1 -1
- package/dist/api/seat-agents.js +3 -3
- package/dist/api/seat-agents.js.map +1 -1
- package/dist/api/seat-container-login.d.ts +6 -2
- package/dist/api/seat-container-login.d.ts.map +1 -1
- package/dist/api/seat-container-login.js +15 -7
- package/dist/api/seat-container-login.js.map +1 -1
- package/dist/api/seat-governance.d.ts +3 -2
- package/dist/api/seat-governance.d.ts.map +1 -1
- package/dist/api/seat-governance.js +31 -9
- package/dist/api/seat-governance.js.map +1 -1
- package/dist/api/seat-standing.d.ts +8 -0
- package/dist/api/seat-standing.d.ts.map +1 -1
- package/dist/api/seat-standing.js +26 -1
- package/dist/api/seat-standing.js.map +1 -1
- package/dist/api/server.d.ts +7 -0
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +93 -39
- package/dist/api/server.js.map +1 -1
- package/dist/api/start-on-login.d.ts +4 -0
- package/dist/api/start-on-login.d.ts.map +1 -0
- package/dist/api/start-on-login.js +35 -0
- package/dist/api/start-on-login.js.map +1 -0
- package/dist/api/steering-landing.d.ts +33 -8
- package/dist/api/steering-landing.d.ts.map +1 -1
- package/dist/api/steering-landing.js +235 -51
- package/dist/api/steering-landing.js.map +1 -1
- package/dist/api/system-snapshot.d.ts.map +1 -1
- package/dist/api/system-snapshot.js +5 -3
- package/dist/api/system-snapshot.js.map +1 -1
- package/dist/api/worktree-sweep.d.ts +7 -3
- package/dist/api/worktree-sweep.d.ts.map +1 -1
- package/dist/api/worktree-sweep.js +10 -6
- package/dist/api/worktree-sweep.js.map +1 -1
- package/dist/apps/exec/recall.d.ts.map +1 -1
- package/dist/apps/exec/recall.js +4 -4
- package/dist/apps/exec/recall.js.map +1 -1
- package/dist/apps/git.js +2 -2
- package/dist/apps/git.js.map +1 -1
- package/dist/apps/publish/manifest.d.ts +2 -0
- package/dist/apps/publish/manifest.d.ts.map +1 -1
- package/dist/apps/publish/manifest.js +8 -3
- package/dist/apps/publish/manifest.js.map +1 -1
- package/dist/apps/publish/run.d.ts +11 -1
- package/dist/apps/publish/run.d.ts.map +1 -1
- package/dist/apps/publish/run.js +97 -17
- package/dist/apps/publish/run.js.map +1 -1
- package/dist/apps/routes.d.ts +2 -0
- package/dist/apps/routes.d.ts.map +1 -1
- package/dist/apps/routes.js +45 -2
- package/dist/apps/routes.js.map +1 -1
- package/dist/apps/store.d.ts +24 -3
- package/dist/apps/store.d.ts.map +1 -1
- package/dist/apps/store.js +26 -9
- package/dist/apps/store.js.map +1 -1
- package/dist/apps/turns.d.ts +25 -2
- package/dist/apps/turns.d.ts.map +1 -1
- package/dist/apps/turns.js +276 -11
- package/dist/apps/turns.js.map +1 -1
- package/dist/apps-server/runners/sqlite-runner.mjs +39 -1
- package/dist/apps-server/server/lib/bundle/server.mjs +113 -13
- package/dist/core/adapter.d.ts +23 -8
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +59 -26
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/ado-deliver-helper.d.ts +2 -1
- package/dist/core/ado-deliver-helper.d.ts.map +1 -1
- package/dist/core/ado-deliver-helper.js +26 -1
- package/dist/core/ado-deliver-helper.js.map +1 -1
- package/dist/core/assurance.d.ts +10 -0
- package/dist/core/assurance.d.ts.map +1 -1
- package/dist/core/assurance.js +23 -0
- package/dist/core/assurance.js.map +1 -1
- package/dist/core/deliver-text.d.ts +2 -0
- package/dist/core/deliver-text.d.ts.map +1 -1
- package/dist/core/deliver-text.js +1 -0
- package/dist/core/deliver-text.js.map +1 -1
- package/dist/core/deliver.d.ts +43 -1
- package/dist/core/deliver.d.ts.map +1 -1
- package/dist/core/deliver.js +131 -3
- package/dist/core/deliver.js.map +1 -1
- package/dist/core/estate-mcp-client.d.ts.map +1 -1
- package/dist/core/estate-mcp-client.js +4 -8
- package/dist/core/estate-mcp-client.js.map +1 -1
- package/dist/core/exec.d.ts +24 -0
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js +45 -2
- package/dist/core/exec.js.map +1 -1
- package/dist/core/linked-issues.d.ts +13 -2
- package/dist/core/linked-issues.d.ts.map +1 -1
- package/dist/core/linked-issues.js +135 -4
- package/dist/core/linked-issues.js.map +1 -1
- package/dist/core/redeliver.js +2 -2
- package/dist/core/redeliver.js.map +1 -1
- package/dist/core/repo-clone.d.ts +64 -0
- package/dist/core/repo-clone.d.ts.map +1 -0
- package/dist/core/repo-clone.js +306 -0
- package/dist/core/repo-clone.js.map +1 -0
- package/dist/core/run-identity.d.ts.map +1 -1
- package/dist/core/run-identity.js +3 -0
- package/dist/core/run-identity.js.map +1 -1
- package/dist/core/run-read-lane.d.ts +30 -0
- package/dist/core/run-read-lane.d.ts.map +1 -0
- package/dist/core/run-read-lane.js +103 -0
- package/dist/core/run-read-lane.js.map +1 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/core/walkthrough-root.d.ts.map +1 -1
- package/dist/core/walkthrough-root.js +3 -5
- package/dist/core/walkthrough-root.js.map +1 -1
- package/dist/core/wicked-home.d.ts +9 -0
- package/dist/core/wicked-home.d.ts.map +1 -0
- package/dist/core/wicked-home.js +25 -0
- package/dist/core/wicked-home.js.map +1 -0
- package/dist/decisions/consider.d.ts +2 -1
- package/dist/decisions/consider.d.ts.map +1 -1
- package/dist/decisions/consider.js +2 -2
- package/dist/decisions/consider.js.map +1 -1
- package/dist/decisions/land.d.ts +2 -0
- package/dist/decisions/land.d.ts.map +1 -1
- package/dist/decisions/land.js +16 -3
- package/dist/decisions/land.js.map +1 -1
- package/dist/decisions/rules-brief.d.ts +2 -1
- package/dist/decisions/rules-brief.d.ts.map +1 -1
- package/dist/decisions/rules-brief.js +3 -2
- package/dist/decisions/rules-brief.js.map +1 -1
- package/dist/editors/conformance-runtime.d.ts +0 -2
- package/dist/editors/conformance-runtime.d.ts.map +1 -1
- package/dist/editors/conformance-runtime.js +0 -4
- package/dist/editors/conformance-runtime.js.map +1 -1
- package/dist/editors/pack-install.d.ts +11 -15
- package/dist/editors/pack-install.d.ts.map +1 -1
- package/dist/editors/pack-install.js +51 -65
- package/dist/editors/pack-install.js.map +1 -1
- package/dist/editors/registry.d.ts +26 -12
- package/dist/editors/registry.d.ts.map +1 -1
- package/dist/editors/registry.js +35 -15
- package/dist/editors/registry.js.map +1 -1
- package/dist/editors/visuals.d.ts +4 -3
- package/dist/editors/visuals.d.ts.map +1 -1
- package/dist/editors/visuals.js +17 -7
- package/dist/editors/visuals.js.map +1 -1
- package/dist/evals/runner.js +1 -1
- package/dist/evals/runner.js.map +1 -1
- package/dist/evals/shape.d.ts +7 -1
- package/dist/evals/shape.d.ts.map +1 -1
- package/dist/evals/shape.js +26 -6
- package/dist/evals/shape.js.map +1 -1
- package/dist/evals/workflow.d.ts +16 -3
- package/dist/evals/workflow.d.ts.map +1 -1
- package/dist/evals/workflow.js +31 -6
- package/dist/evals/workflow.js.map +1 -1
- package/dist/insights/review-service.d.ts +24 -3
- package/dist/insights/review-service.d.ts.map +1 -1
- package/dist/insights/review-service.js +75 -12
- package/dist/insights/review-service.js.map +1 -1
- package/dist/insights/routes.d.ts +2 -1
- package/dist/insights/routes.d.ts.map +1 -1
- package/dist/insights/routes.js +19 -4
- package/dist/insights/routes.js.map +1 -1
- package/dist/insights/run-facts.d.ts +5 -0
- package/dist/insights/run-facts.d.ts.map +1 -1
- package/dist/insights/run-facts.js +15 -0
- package/dist/insights/run-facts.js.map +1 -1
- package/dist/insights/workflow.d.ts +2 -1
- package/dist/insights/workflow.d.ts.map +1 -1
- package/dist/insights/workflow.js +4 -4
- package/dist/insights/workflow.js.map +1 -1
- package/dist/inspect/service.d.ts +3 -2
- package/dist/inspect/service.d.ts.map +1 -1
- package/dist/inspect/service.js +4 -4
- package/dist/inspect/service.js.map +1 -1
- package/dist/interactive/bridge-pool.d.ts.map +1 -1
- package/dist/interactive/bridge-pool.js +6 -4
- package/dist/interactive/bridge-pool.js.map +1 -1
- package/dist/interactive/chat-events.d.ts.map +1 -1
- package/dist/interactive/chat-events.js +7 -1
- package/dist/interactive/chat-events.js.map +1 -1
- package/dist/interactive/draft-events.d.ts +3 -0
- package/dist/interactive/draft-events.d.ts.map +1 -1
- package/dist/interactive/draft-events.js +5 -8
- package/dist/interactive/draft-events.js.map +1 -1
- package/dist/interactive/draft-skill.d.ts +56 -3
- package/dist/interactive/draft-skill.d.ts.map +1 -1
- package/dist/interactive/draft-skill.js +129 -20
- package/dist/interactive/draft-skill.js.map +1 -1
- package/dist/interactive/landing-guard.d.ts +30 -5
- package/dist/interactive/landing-guard.d.ts.map +1 -1
- package/dist/interactive/landing-guard.js +121 -5
- package/dist/interactive/landing-guard.js.map +1 -1
- package/dist/interactive/proposal-create.d.ts.map +1 -1
- package/dist/interactive/proposal-create.js +1 -0
- package/dist/interactive/proposal-create.js.map +1 -1
- package/dist/interactive/proposal-refine.d.ts.map +1 -1
- package/dist/interactive/proposal-refine.js +16 -1
- package/dist/interactive/proposal-refine.js.map +1 -1
- package/dist/interactive/review-events.js +1 -1
- package/dist/interactive/review-events.js.map +1 -1
- package/dist/interactive/run-units.d.ts.map +1 -1
- package/dist/interactive/run-units.js +3 -2
- package/dist/interactive/run-units.js.map +1 -1
- package/dist/interactive/source-packet.d.ts +8 -0
- package/dist/interactive/source-packet.d.ts.map +1 -1
- package/dist/interactive/source-packet.js +47 -6
- package/dist/interactive/source-packet.js.map +1 -1
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts +21 -1
- package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -1
- package/dist/knowledge/adapters/toolbox/supervisor.js +76 -26
- package/dist/knowledge/adapters/toolbox/supervisor.js.map +1 -1
- package/dist/knowledge/estate-write.d.ts +5 -0
- package/dist/knowledge/estate-write.d.ts.map +1 -1
- package/dist/knowledge/estate-write.js +7 -0
- package/dist/knowledge/estate-write.js.map +1 -1
- package/dist/knowledge/projector.d.ts +60 -5
- package/dist/knowledge/projector.d.ts.map +1 -1
- package/dist/knowledge/projector.js +264 -21
- package/dist/knowledge/projector.js.map +1 -1
- package/dist/knowledge/shapes/map.d.ts.map +1 -1
- package/dist/knowledge/shapes/map.js +12 -2
- package/dist/knowledge/shapes/map.js.map +1 -1
- package/dist/knowledge/shapes/routes.d.ts +1 -1
- package/dist/knowledge/shapes/routes.d.ts.map +1 -1
- package/dist/knowledge/shapes/routes.js +42 -16
- package/dist/knowledge/shapes/routes.js.map +1 -1
- package/dist/knowledge/shapes/shapes.d.ts +60 -13
- package/dist/knowledge/shapes/shapes.d.ts.map +1 -1
- package/dist/knowledge/shapes/shapes.js +199 -31
- package/dist/knowledge/shapes/shapes.js.map +1 -1
- package/dist/knowledge/shapes/verified.d.ts.map +1 -1
- package/dist/knowledge/shapes/verified.js +3 -2
- package/dist/knowledge/shapes/verified.js.map +1 -1
- package/dist/knowledge/trackers/addresses.d.ts +27 -3
- package/dist/knowledge/trackers/addresses.d.ts.map +1 -1
- package/dist/knowledge/trackers/addresses.js +33 -5
- package/dist/knowledge/trackers/addresses.js.map +1 -1
- package/dist/knowledge/trackers/gate-pm.d.ts.map +1 -1
- package/dist/knowledge/trackers/gate-pm.js +4 -2
- package/dist/knowledge/trackers/gate-pm.js.map +1 -1
- package/dist/knowledge/trackers/projector.d.ts +3 -1
- package/dist/knowledge/trackers/projector.d.ts.map +1 -1
- package/dist/knowledge/trackers/projector.js +59 -8
- package/dist/knowledge/trackers/projector.js.map +1 -1
- package/dist/learn/scheduler.d.ts.map +1 -1
- package/dist/learn/scheduler.js +11 -2
- package/dist/learn/scheduler.js.map +1 -1
- package/dist/learnings/extract.d.ts +9 -3
- package/dist/learnings/extract.d.ts.map +1 -1
- package/dist/learnings/extract.js +62 -4
- package/dist/learnings/extract.js.map +1 -1
- package/dist/learnings/replacement-lineage.d.ts +3 -2
- package/dist/learnings/replacement-lineage.d.ts.map +1 -1
- package/dist/learnings/replacement-lineage.js +7 -6
- package/dist/learnings/replacement-lineage.js.map +1 -1
- package/dist/learnings/service.d.ts +12 -2
- package/dist/learnings/service.d.ts.map +1 -1
- package/dist/learnings/service.js +30 -5
- package/dist/learnings/service.js.map +1 -1
- package/dist/mcp/broker.d.ts.map +1 -1
- package/dist/mcp/broker.js +18 -4
- package/dist/mcp/broker.js.map +1 -1
- package/dist/mcp/estate-relay.d.ts +3 -0
- package/dist/mcp/estate-relay.d.ts.map +1 -1
- package/dist/mcp/estate-relay.js +5 -2
- package/dist/mcp/estate-relay.js.map +1 -1
- package/dist/mcp/invoke.js +2 -2
- package/dist/mcp/invoke.js.map +1 -1
- package/dist/mcp/redact.d.ts +1 -1
- package/dist/mcp/redact.d.ts.map +1 -1
- package/dist/mcp/redact.js +61 -4
- package/dist/mcp/redact.js.map +1 -1
- package/dist/mcp/registry-store.d.ts +25 -0
- package/dist/mcp/registry-store.d.ts.map +1 -1
- package/dist/mcp/registry-store.js +33 -0
- package/dist/mcp/registry-store.js.map +1 -1
- package/dist/mcp/registry.d.ts +25 -1
- package/dist/mcp/registry.d.ts.map +1 -1
- package/dist/mcp/registry.js +84 -5
- package/dist/mcp/registry.js.map +1 -1
- package/dist/mcp/rest.js +3 -3
- package/dist/mcp/rest.js.map +1 -1
- package/dist/mcp/run-fence.d.ts +2 -0
- package/dist/mcp/run-fence.d.ts.map +1 -1
- package/dist/mcp/run-fence.js +9 -0
- package/dist/mcp/run-fence.js.map +1 -1
- package/dist/mcp/upstream-error.d.ts +5 -1
- package/dist/mcp/upstream-error.d.ts.map +1 -1
- package/dist/mcp/upstream-error.js +5 -1
- package/dist/mcp/upstream-error.js.map +1 -1
- package/dist/projects/graph.d.ts +6 -4
- package/dist/projects/graph.d.ts.map +1 -1
- package/dist/projects/graph.js +173 -25
- package/dist/projects/graph.js.map +1 -1
- package/dist/projects/routes.d.ts +7 -1
- package/dist/projects/routes.d.ts.map +1 -1
- package/dist/projects/routes.js +13 -5
- package/dist/projects/routes.js.map +1 -1
- package/dist/projects/state-home-preflight.d.ts +5 -0
- package/dist/projects/state-home-preflight.d.ts.map +1 -1
- package/dist/projects/state-home-preflight.js +48 -8
- package/dist/projects/state-home-preflight.js.map +1 -1
- package/dist/projects/state-home-registry.d.ts.map +1 -1
- package/dist/projects/state-home-registry.js +6 -0
- package/dist/projects/state-home-registry.js.map +1 -1
- package/dist/projects/state-home.d.ts +6 -2
- package/dist/projects/state-home.d.ts.map +1 -1
- package/dist/projects/state-home.js +8 -5
- package/dist/projects/state-home.js.map +1 -1
- package/dist/qe/test-sets.d.ts +1 -1
- package/dist/qe/test-sets.d.ts.map +1 -1
- package/dist/qe/test-sets.js +2 -2
- package/dist/qe/test-sets.js.map +1 -1
- package/dist/schedules/routes.d.ts +5 -0
- package/dist/schedules/routes.d.ts.map +1 -1
- package/dist/schedules/routes.js +32 -5
- package/dist/schedules/routes.js.map +1 -1
- package/dist/schedules/scheduler.d.ts +8 -1
- package/dist/schedules/scheduler.d.ts.map +1 -1
- package/dist/schedules/scheduler.js +10 -1
- package/dist/schedules/scheduler.js.map +1 -1
- package/dist/schedules/store.d.ts +7 -0
- package/dist/schedules/store.d.ts.map +1 -1
- package/dist/schedules/store.js +19 -4
- package/dist/schedules/store.js.map +1 -1
- package/dist/skills/plugin-source.js +4 -4
- package/dist/skills/plugin-source.js.map +1 -1
- package/dist/sources/drivers/sqlite.d.ts +13 -0
- package/dist/sources/drivers/sqlite.d.ts.map +1 -1
- package/dist/sources/drivers/sqlite.js +11 -0
- package/dist/sources/drivers/sqlite.js.map +1 -1
- package/dist/sources/routes.d.ts.map +1 -1
- package/dist/sources/routes.js +1 -0
- package/dist/sources/routes.js.map +1 -1
- package/dist/sources/uploads.d.ts +22 -2
- package/dist/sources/uploads.d.ts.map +1 -1
- package/dist/sources/uploads.js +108 -10
- package/dist/sources/uploads.js.map +1 -1
- package/dist/standing-orders/parse.d.ts +8 -0
- package/dist/standing-orders/parse.d.ts.map +1 -1
- package/dist/standing-orders/parse.js +52 -5
- package/dist/standing-orders/parse.js.map +1 -1
- package/dist/studio/apps-standalone/fixture.js +3 -3
- package/dist/studio/assets/{KnowledgeGraph-dfq7Flyj.js → KnowledgeGraph-yP4WsnST.js} +1 -1
- package/dist/studio/assets/index-DNaLjJ7M.css +32 -0
- package/dist/studio/assets/index-DW53FKuT.js +1114 -0
- package/dist/studio/editors/wicked-apps/editor.json +1 -1
- package/dist/studio/editors/wicked-apps/index.html +1 -1
- package/dist/studio/editors/wicked-deck/editor.json +1 -1
- package/dist/studio/editors/wicked-deck/index.html +1 -1
- package/dist/studio/editors/wicked-doc/editor.json +1 -1
- package/dist/studio/editors/wicked-doc/index.html +1 -1
- package/dist/studio/editors/wicked-insights/editor.json +1 -1
- package/dist/studio/editors/wicked-insights/index.html +1 -1
- package/dist/studio/editors/wicked-page/editor.json +1 -1
- package/dist/studio/editors/wicked-page/index.html +1 -1
- package/dist/studio/editors/wicked-video/editor.json +1 -1
- package/dist/studio/editors/wicked-video/index.html +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/studio/testid-inventory.json +1125 -208
- package/dist/team/routes.d.ts.map +1 -1
- package/dist/team/routes.js +2 -1
- package/dist/team/routes.js.map +1 -1
- package/dist/voice/tts.d.ts +12 -0
- package/dist/voice/tts.d.ts.map +1 -1
- package/dist/voice/tts.js +118 -28
- package/dist/voice/tts.js.map +1 -1
- package/dist/workflow-catalog/build-v2.d.ts +34 -0
- package/dist/workflow-catalog/build-v2.d.ts.map +1 -1
- package/dist/workflow-catalog/build-v2.js +131 -10
- package/dist/workflow-catalog/build-v2.js.map +1 -1
- package/dist/workflow-catalog/catalog-data.d.ts.map +1 -1
- package/dist/workflow-catalog/catalog-data.js +0 -2
- package/dist/workflow-catalog/catalog-data.js.map +1 -1
- package/dist/workflow-catalog/detect.d.ts +18 -3
- package/dist/workflow-catalog/detect.d.ts.map +1 -1
- package/dist/workflow-catalog/detect.js +43 -8
- package/dist/workflow-catalog/detect.js.map +1 -1
- package/dist/working-doc/event-lines.d.ts +5 -2
- package/dist/working-doc/event-lines.d.ts.map +1 -1
- package/dist/working-doc/event-lines.js +38 -7
- package/dist/working-doc/event-lines.js.map +1 -1
- package/dist/working-doc/sections.d.ts +3 -0
- package/dist/working-doc/sections.d.ts.map +1 -1
- package/dist/working-doc/sections.js +5 -0
- package/dist/working-doc/sections.js.map +1 -1
- package/dist/working-doc/service.d.ts +23 -3
- package/dist/working-doc/service.d.ts.map +1 -1
- package/dist/working-doc/service.js +93 -54
- package/dist/working-doc/service.js.map +1 -1
- package/endpoint-manifest.json +60 -3
- package/evals/corpora/shape-v1.json +25 -1
- package/evals/corpora/shape-v1.seat-fixture.json +25 -1
- package/package.json +4 -4
- package/runners/sqlite-runner.mjs +39 -1
- package/dist/studio/assets/index-Bame65hj.js +0 -1108
- package/dist/studio/assets/index-CtB1BJRI.css +0 -32
package/dist/api/chat-jobs.d.ts
CHANGED
|
@@ -67,6 +67,9 @@ export interface JobContext {
|
|
|
67
67
|
revises: string | null;
|
|
68
68
|
lineage: string | null;
|
|
69
69
|
notes: string[];
|
|
70
|
+
/** (crew#1803) A review of a change names the seats it left off and why. Kept apart from `notes`, which a seat edit
|
|
71
|
+
* reads as its refusal. */
|
|
72
|
+
reviewNote?: string;
|
|
70
73
|
/** Authorised in the chat layer before this pure resolution; absent admits no document. */
|
|
71
74
|
documents?: ProposalSource[];
|
|
72
75
|
/** Sources in display order; a reason means the source cannot be picked. Absent = no list. */
|
|
@@ -89,7 +92,46 @@ export interface JobContext {
|
|
|
89
92
|
* accepts here (the launch's own `namesPreset` source). A job whose workflow is one is started as a power run or held
|
|
90
93
|
* at its plan by the person's Start, so its sentence promises neither. `null`/absent = no Start chooses. */
|
|
91
94
|
powerPresets?: ReadonlySet<string> | null;
|
|
95
|
+
/** (crew#1840) The pull requests this chat's runs delivered, read when the words name a pull request. Absent = none
|
|
96
|
+
* read (a job then never updates one). */
|
|
97
|
+
deliveredPrs?: readonly DeliveredPr[];
|
|
92
98
|
}
|
|
99
|
+
/** A pull request a run of this chat delivered (its run record's `deliverUrl`), on the run's repository. */
|
|
100
|
+
export interface DeliveredPr {
|
|
101
|
+
number: number;
|
|
102
|
+
url: string;
|
|
103
|
+
runId: string;
|
|
104
|
+
repoRef: string | null;
|
|
105
|
+
}
|
|
106
|
+
/** The number of a pull request URL crew records (`…/pull/<n>` on GitHub, `…/_git/<repo>/pullrequest/<n>` on Azure
|
|
107
|
+
* DevOps), else `null`. */
|
|
108
|
+
export declare function prNumberOfUrl(url: string): number | null;
|
|
109
|
+
/** Whether `words` name a pull request at all (the cheap gate before the chat's runs are read). */
|
|
110
|
+
export declare function mentionsPullRequest(words: string): boolean;
|
|
111
|
+
/** Why a job asked to change a pull request does not update one (the card's note says it). */
|
|
112
|
+
export type PrRevisionMiss = 'not-delivered' | 'none' | 'several';
|
|
113
|
+
/**
|
|
114
|
+
* Which delivered pull request, if any, the person's words ask this job to update. `null` = they do not ask to change
|
|
115
|
+
* a pull request (or ask for a new one). `{ pr: null, … }` = they ask, but crew cannot attach one: a PR they name (a
|
|
116
|
+
* URL or a number) is not one this chat delivered on the job's repository (`named`), they name more than one this chat
|
|
117
|
+
* delivered (`several`), or they name none and there is not exactly one (`none`). Every PR named is a target: one that
|
|
118
|
+
* cannot be matched never falls back to another.
|
|
119
|
+
*/
|
|
120
|
+
export declare function prRevisionOf(words: string, delivered: readonly DeliveredPr[], repoRef: string | null): {
|
|
121
|
+
pr: DeliveredPr;
|
|
122
|
+
named: null;
|
|
123
|
+
miss?: undefined;
|
|
124
|
+
} | {
|
|
125
|
+
pr: null;
|
|
126
|
+
named: string | null;
|
|
127
|
+
miss: PrRevisionMiss;
|
|
128
|
+
} | null;
|
|
129
|
+
/** (crew#1840) What a job's Go adds to its run launch when the job updates a delivered pull request: `revisesPr` and
|
|
130
|
+
* `deliver: "pr"` (a revision needs its deliver phase). Empty for any other job. */
|
|
131
|
+
export declare function jobRevisionLaunch(p: Pick<ArtifactProposal, 'revisesPr' | 'repoRefs'>): {
|
|
132
|
+
revisesPr?: number;
|
|
133
|
+
deliver?: 'pr';
|
|
134
|
+
};
|
|
93
135
|
export declare class JobRefusal extends Error {
|
|
94
136
|
readonly code: string;
|
|
95
137
|
readonly status: number;
|
|
@@ -107,6 +149,18 @@ export declare function judgeDisclosure(r: ResolvedOption, seatCount: number): s
|
|
|
107
149
|
* `after` is the published card's workers (a job's seats, a document's helpers).
|
|
108
150
|
*/
|
|
109
151
|
export declare function seatRemovalNote(asked: readonly string[] | undefined, before: readonly string[], after: readonly string[], nameOf: (k: string) => string): string[];
|
|
152
|
+
/** The chat's repositories the words name, by name, id or link, in the chat's order (studio's `reposNamedIn`). */
|
|
153
|
+
export declare function reposNamedIn<R extends {
|
|
154
|
+
id: string;
|
|
155
|
+
name: string;
|
|
156
|
+
}>(words: string, repos: readonly R[]): R[];
|
|
157
|
+
/** (crew#1791) The one repository the words clearly name ("In tiny-math-rd, fix …", or a link into it): named by a
|
|
158
|
+
* link, a distinct name or id, and no other named. `null` = none or several: the proposal asks. Studio's
|
|
159
|
+
* `repoNamedInWords`, so the repository crew picks is the one studio would. */
|
|
160
|
+
export declare function repoNamedIn<R extends {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
}>(words: string, repos: readonly R[]): R | null;
|
|
110
164
|
/** The repository a job runs on: the one named, else the chat's only one. */
|
|
111
165
|
export declare function repoOf(facts: Pick<JobFacts, 'repoRef'>, chat: JobChat): {
|
|
112
166
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-jobs.d.ts","sourceRoot":"","sources":["../../src/api/chat-jobs.ts"],"names":[],"mappings":"AAiBA,OAAO,
|
|
1
|
+
{"version":3,"file":"chat-jobs.d.ts","sourceRoot":"","sources":["../../src/api/chat-jobs.ts"],"names":[],"mappings":"AAiBA,OAAO,EAA8B,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtF,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EAEb,kBAAkB,EAGlB,qBAAqB,EAGrB,cAAc,EACd,aAAa,EAKd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACvG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAiDlE,0FAA0F;AAC1F,wBAAgB,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAMtE;AAoBD,eAAO,MAAM,WAAW,GAAI,MAAM,SAAS,aAAa,EAAE,KAAG,MAAsF,CAAC;AAOpJ;iGACiG;AACjG,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,MAAM,CAAgD,CAAC;AAI7F,8CAA8C;AAC9C,MAAM,WAAW,OAAO;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AAO,CAAC,CAiBzB"}
|
package/dist/api/chat-jobs.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* that turn answers.
|
|
15
15
|
*/
|
|
16
16
|
import { createHash } from 'node:crypto';
|
|
17
|
-
import { coverageNote } from '../core/assurance.js';
|
|
17
|
+
import { coverageNote, sharingNotes } from '../core/assurance.js';
|
|
18
18
|
import { SEAT_STANDING_FIELDS } from '../core/engine-roster.js';
|
|
19
19
|
import { CATALOG_V2_CARDS } from '../workflow-catalog/catalog-data-v2.js';
|
|
20
20
|
import { resolveOption } from '../workflow-catalog/build-v2.js';
|
|
@@ -95,6 +95,89 @@ const humanStep = (id) => {
|
|
|
95
95
|
/** Workflows whose launch picks its own seat (the run review's preparer, the default evals' Tool step): the proposal's
|
|
96
96
|
* seats are not what runs there, so they are neither shown as choosable nor sent (codex r2). */
|
|
97
97
|
export const SELF_SEATED = new Set(['review-recent-work', 'run-evals']);
|
|
98
|
+
/** The number of a pull request URL crew records (`…/pull/<n>` on GitHub, `…/_git/<repo>/pullrequest/<n>` on Azure
|
|
99
|
+
* DevOps), else `null`. */
|
|
100
|
+
export function prNumberOfUrl(url) {
|
|
101
|
+
const m = /^https:\/\/[^\s?#]+\/(?:pull|pullrequest)\/(\d+)$/i.exec(url.trim());
|
|
102
|
+
return m === null ? null : Number(m[1]);
|
|
103
|
+
}
|
|
104
|
+
const PR_WORD = String.raw `(?:PRs?|pull[ -]?requests?)`;
|
|
105
|
+
/** A pull request URL inside words, up to its number (a `/files` tab, a query or a fragment after it is not part of it). */
|
|
106
|
+
const PR_URL_IN_WORDS = /https:\/\/[^\s?#)\]>"'<]+?\/(?:pull|pullrequest)\/\d+(?!\d)/gi;
|
|
107
|
+
/** Words that ask to change an existing pull request rather than make new work: "revise the PR", "update pull request
|
|
108
|
+
* #3", "add a test to PR #4", "push it on PR #4", "on the same PR", "do not open a new PR". */
|
|
109
|
+
const ASKS_PR_CHANGE = new RegExp([
|
|
110
|
+
String.raw `\b(?:revise|revising|update|updating|amend|amending|fix up)\b[^!?\n]{0,80}?(?:\b${PR_WORD}\b|\/(?:pull|pullrequest)\/\d+)`,
|
|
111
|
+
String.raw `\b(?:add|adding|push|pushing|commit|committing|put|apply|applying)\b[^!?\n]{0,80}?\b(?:to|on|onto|into)\s+(?:(?:the|that|this|my|our)\s+)?(?:(?:same|existing|open|delivered)\s+)?(?:\b${PR_WORD}\b|https:\/\/\S+\/(?:pull|pullrequest)\/\d+)`,
|
|
112
|
+
String.raw `\b(?:on|to|onto|into)\s+${PR_WORD}\s*#?\d+`,
|
|
113
|
+
String.raw `\b(?:same|existing|that|this|delivered|open)\s+${PR_WORD}\b`,
|
|
114
|
+
String.raw `\b(?:no|not open a|don'?t open a|never open a)\s+(?:new|second)\s+${PR_WORD}\b`,
|
|
115
|
+
].join('|'), 'i');
|
|
116
|
+
/** The verbs of a request to change a pull request (the positive asks above and their negations below share them). */
|
|
117
|
+
const CHANGE_VERBS = String.raw `(?:revise|revising|update|updating|amend|amending|change|changing|touch|touching|fix up|add|adding|push|pushing|commit|committing|put|apply|applying)`;
|
|
118
|
+
const NEW_ADJ = String.raw `(?:new|second|separate|another|fresh)`;
|
|
119
|
+
/** Words that ask for a NEW pull request ("open a PR", "create a new pull request", "in a separate PR"), or say not to
|
|
120
|
+
* change one ("do not update PR #4", "don't add tests to PR #4"): no existing pull request is attached. A negated
|
|
121
|
+
* new-PR ask ("do not open a new PR", "don't open a PR") is not one. */
|
|
122
|
+
const NEW_PR_ASK = new RegExp(String.raw `\b(?:(?:open|opening|create|creating|raise|raising|make|making|start|starting|file|filing)\s+(?:(?:a|an)\s+(?:${NEW_ADJ}\s+)?|${NEW_ADJ}\s+|(?=(?:PRs|pull[ -]?requests)\b))|(?:in|as|into|with)\s+(?:a\s+|an\s+)?${NEW_ADJ}\s+)${PR_WORD}\b`, 'gi');
|
|
123
|
+
const NEW_PR_NEGATED = /(?:\b(?:not|never|without|no need to|dont)|n't|n’t)\s+(?:\w+\s+)?$/i;
|
|
124
|
+
const KEEP_PR_ASK = new RegExp(String.raw `(?:\b(?:do not|dont|never|without)|n't|n’t)\s+${CHANGE_VERBS}\b[^!?\n.;,]{0,40}?\b${PR_WORD}\b`, 'i');
|
|
125
|
+
function asksForNewPr(words) {
|
|
126
|
+
if (KEEP_PR_ASK.test(words))
|
|
127
|
+
return true;
|
|
128
|
+
return [...words.matchAll(NEW_PR_ASK)].some((m) => !NEW_PR_NEGATED.test(words.slice(Math.max(0, m.index - 24), m.index)));
|
|
129
|
+
}
|
|
130
|
+
/** Whether `words` name a pull request at all (the cheap gate before the chat's runs are read). */
|
|
131
|
+
export function mentionsPullRequest(words) {
|
|
132
|
+
return /\b(?:PRs?|pull[ -]?requests?)\b|\/(?:pull|pullrequest)\/\d+/i.test(words);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Which delivered pull request, if any, the person's words ask this job to update. `null` = they do not ask to change
|
|
136
|
+
* a pull request (or ask for a new one). `{ pr: null, … }` = they ask, but crew cannot attach one: a PR they name (a
|
|
137
|
+
* URL or a number) is not one this chat delivered on the job's repository (`named`), they name more than one this chat
|
|
138
|
+
* delivered (`several`), or they name none and there is not exactly one (`none`). Every PR named is a target: one that
|
|
139
|
+
* cannot be matched never falls back to another.
|
|
140
|
+
*/
|
|
141
|
+
export function prRevisionOf(words, delivered, repoRef) {
|
|
142
|
+
if (!ASKS_PR_CHANGE.test(words) || asksForNewPr(words))
|
|
143
|
+
return null;
|
|
144
|
+
const mine = delivered.filter((d) => repoRef !== null && d.repoRef === repoRef);
|
|
145
|
+
const hits = new Map();
|
|
146
|
+
const urls = [...words.matchAll(PR_URL_IN_WORDS)].map((m) => m[0]);
|
|
147
|
+
for (const u of urls) {
|
|
148
|
+
const hit = mine.find((d) => d.url.toLowerCase() === u.toLowerCase());
|
|
149
|
+
if (hit === undefined)
|
|
150
|
+
return { pr: null, named: u, miss: 'not-delivered' };
|
|
151
|
+
hits.set(hit.url.toLowerCase(), hit);
|
|
152
|
+
}
|
|
153
|
+
// Numbers outside the URLs: "PR #4", "pull request 4", a list ("PRs #4 and #9") and a repository's ("PR o/r#9").
|
|
154
|
+
const rest = words.replace(PR_URL_IN_WORDS, ' ');
|
|
155
|
+
// After a singular head a list member needs its `#` ("PR #4 and 5 more tests" names one PR); after a plural one it may
|
|
156
|
+
// be bare ("pull requests 4 and 9").
|
|
157
|
+
const target = String.raw `(?:[\w.-]+\/[\w.-]+)?#?\d+`;
|
|
158
|
+
const list = new RegExp(String.raw `\b(?:(?:PR|pull[ -]?request)\s*(${target}(?:\s*(?:,|and|&|or)\s*(?:[\w.-]+\/[\w.-]+)?#\d+)*)|(?:PRs|pull[ -]?requests)\s*(${target}(?:\s*(?:,|and|&|or)\s*${target})*))`, 'gi');
|
|
159
|
+
for (const m of rest.matchAll(list)) {
|
|
160
|
+
for (const t of (m[1] ?? m[2]).matchAll(/(?:([\w.-]+\/[\w.-]+)#)?#?(\d+)/g)) {
|
|
161
|
+
const n = Number(t[2]);
|
|
162
|
+
const repo = t[1];
|
|
163
|
+
const hit = mine.find((d) => d.number === n && (repo === undefined || new RegExp(String.raw `/${repo.replace(/[.]/g, '\\.')}/pull/${n}$`, 'i').test(d.url)));
|
|
164
|
+
if (hit === undefined)
|
|
165
|
+
return { pr: null, named: repo === undefined ? `pull request #${n}` : `${repo}#${n}`, miss: 'not-delivered' };
|
|
166
|
+
hits.set(hit.url.toLowerCase(), hit);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (hits.size > 1)
|
|
170
|
+
return { pr: null, named: null, miss: 'several' };
|
|
171
|
+
if (hits.size === 1)
|
|
172
|
+
return { pr: [...hits.values()][0], named: null };
|
|
173
|
+
const distinct = [...new Map(mine.map((d) => [d.url.toLowerCase(), d])).values()];
|
|
174
|
+
return distinct.length === 1 ? { pr: distinct[0], named: null } : { pr: null, named: null, miss: 'none' };
|
|
175
|
+
}
|
|
176
|
+
/** (crew#1840) What a job's Go adds to its run launch when the job updates a delivered pull request: `revisesPr` and
|
|
177
|
+
* `deliver: "pr"` (a revision needs its deliver phase). Empty for any other job. */
|
|
178
|
+
export function jobRevisionLaunch(p) {
|
|
179
|
+
return p.revisesPr !== undefined && p.repoRefs?.[0] !== undefined ? { revisesPr: p.revisesPr.number, deliver: 'pr' } : {};
|
|
180
|
+
}
|
|
98
181
|
export class JobRefusal extends Error {
|
|
99
182
|
code;
|
|
100
183
|
status;
|
|
@@ -193,7 +276,7 @@ function needsOf(facts, ctx, r) {
|
|
|
193
276
|
}
|
|
194
277
|
if (i.id === 'repo') {
|
|
195
278
|
const hit = ctx.chat.repos.find((x) => x.id === facts.repoRef);
|
|
196
|
-
const choices = ctx.chat.repos
|
|
279
|
+
const choices = repoChoicesFor(facts.words, ctx.chat.repos).map((x) => ({ label: x.name, value: x.id }));
|
|
197
280
|
out.push({ id: i.id, label: i.label, kind: i.kind, required: i.required, status: hit !== undefined ? 'met' : 'missing', ...(hit !== undefined ? { value: hit.id } : {}), ...(choices.length > 0 ? { choices } : {}) });
|
|
198
281
|
continue;
|
|
199
282
|
}
|
|
@@ -215,6 +298,96 @@ function needsOf(facts, ctx, r) {
|
|
|
215
298
|
}
|
|
216
299
|
return out;
|
|
217
300
|
}
|
|
301
|
+
const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
302
|
+
/** Whether `words` name `term` as a whole token (case-insensitive): not inside a longer name (`rg1` is not named by
|
|
303
|
+
* `rg10` or `rg1-old`); a sentence's punctuation after it still ends it. studio's `names` (repoProjects.ts), the same
|
|
304
|
+
* rule, so the chips studio offers and the repository crew picks agree. */
|
|
305
|
+
function namesTerm(words, term) {
|
|
306
|
+
if (term.trim() === '')
|
|
307
|
+
return false;
|
|
308
|
+
return new RegExp(`(?:^|[^\\p{L}\\p{N}_./-])${escapeRe(term)}(?=$|[^\\p{L}\\p{N}_./-]|\\.(?:$|[^\\p{L}\\p{N}_./-]))`, 'iu').test(words);
|
|
309
|
+
}
|
|
310
|
+
/** A name distinct enough to be read as a repository rather than a word (`tiny-math-rd`, `billing-api`): it carries
|
|
311
|
+
* something other than letters. `domain` or `docs` never is (studio's `distinctName`). */
|
|
312
|
+
function distinctName(name) {
|
|
313
|
+
return name.length >= 3 && /[^\p{L}]/u.test(name);
|
|
314
|
+
}
|
|
315
|
+
const REPO_OPS = new Set(['pull', 'pulls', 'pull-requests', 'merge_requests', 'tree', 'blob', 'commit', 'commits', 'compare']);
|
|
316
|
+
/** First path segments that are a host's own pages, not an owner: an organisation's or a group's link names no
|
|
317
|
+
* repository (`github.com/orgs/acme/projects/7`, `gitlab.com/groups/acme/-/merge_requests`), so it picks none. */
|
|
318
|
+
const NOT_AN_OWNER = new Set(['orgs', 'users', 'enterprises', 'settings', 'sponsors', 'marketplace', 'apps', 'topics', 'collections', 'search', 'notifications', 'groups', 'dashboard', 'explore', 'workspace', 'account']);
|
|
319
|
+
/** The repository one link names, or null: studio's `linkedRepo` (repoProjects.ts), and a host's own pages
|
|
320
|
+
* ({@link NOT_AN_OWNER}) name none. GitHub and Bitbucket:
|
|
321
|
+
* `<owner>/<repo>`, whatever follows. Elsewhere the segment before the first repository operation after it (or
|
|
322
|
+
* GitLab's `-` before one; on gitlab.com any `-`); with no operation, a GitLab project home names its last segment and
|
|
323
|
+
* a clone link (`…/<repo>.git`) its repository. Other links name nothing. */
|
|
324
|
+
function linkedRepo(link) {
|
|
325
|
+
let url;
|
|
326
|
+
try {
|
|
327
|
+
url = new URL(link);
|
|
328
|
+
}
|
|
329
|
+
catch {
|
|
330
|
+
return null;
|
|
331
|
+
}
|
|
332
|
+
const segs = url.pathname.split('/').filter((x) => x !== '').map((x) => { try {
|
|
333
|
+
return decodeURIComponent(x);
|
|
334
|
+
}
|
|
335
|
+
catch {
|
|
336
|
+
return x;
|
|
337
|
+
} });
|
|
338
|
+
const host = url.hostname.toLowerCase().replace(/^www\./u, '');
|
|
339
|
+
if (NOT_AN_OWNER.has((segs[0] ?? '').toLowerCase()))
|
|
340
|
+
return null;
|
|
341
|
+
let repo;
|
|
342
|
+
if (host === 'github.com' || host === 'bitbucket.org')
|
|
343
|
+
repo = segs.length >= 2 ? segs[1] : undefined;
|
|
344
|
+
else {
|
|
345
|
+
const gitlab = host === 'gitlab.com';
|
|
346
|
+
const at = segs.findIndex((x, i) => i >= 2 && (REPO_OPS.has(x) || (x === '-' && (gitlab || REPO_OPS.has(segs[i + 1] ?? '')))));
|
|
347
|
+
if (at >= 2)
|
|
348
|
+
repo = segs[at - 1];
|
|
349
|
+
else if (gitlab)
|
|
350
|
+
repo = segs.length >= 2 ? segs[segs.length - 1] : undefined;
|
|
351
|
+
else if (segs.length >= 2 && /\.git$/iu.test(segs[segs.length - 1]))
|
|
352
|
+
repo = segs[segs.length - 1];
|
|
353
|
+
}
|
|
354
|
+
const name = repo?.replace(/\.git$/iu, '').toLowerCase();
|
|
355
|
+
return name === undefined || name === '' || name === '-' ? null : name;
|
|
356
|
+
}
|
|
357
|
+
/** The repositories the links in the words name (lower-cased): studio's `linkedRepos`. A link ends at a space, a
|
|
358
|
+
* bracket or a quote, and a sentence's punctuation after it is not part of it. */
|
|
359
|
+
function linkedRepos(words) {
|
|
360
|
+
const out = [];
|
|
361
|
+
for (const m of words.matchAll(/https?:\/\/[^\s<>()[\]"'`]+/giu)) {
|
|
362
|
+
const name = linkedRepo(m[0].replace(/[.,;:!?]+$/u, ''));
|
|
363
|
+
if (name !== null)
|
|
364
|
+
out.push(name);
|
|
365
|
+
}
|
|
366
|
+
return out;
|
|
367
|
+
}
|
|
368
|
+
const linkedTo = (linked, r) => linked.includes(r.name.toLowerCase()) || linked.includes(r.id.toLowerCase());
|
|
369
|
+
/** The chat's repositories the words name, by name, id or link, in the chat's order (studio's `reposNamedIn`). */
|
|
370
|
+
export function reposNamedIn(words, repos) {
|
|
371
|
+
const linked = linkedRepos(words);
|
|
372
|
+
return repos.filter((r) => namesTerm(words, r.name) || (r.id !== r.name && namesTerm(words, r.id)) || linkedTo(linked, r));
|
|
373
|
+
}
|
|
374
|
+
/** (crew#1791) The one repository the words clearly name ("In tiny-math-rd, fix …", or a link into it): named by a
|
|
375
|
+
* link, a distinct name or id, and no other named. `null` = none or several: the proposal asks. Studio's
|
|
376
|
+
* `repoNamedInWords`, so the repository crew picks is the one studio would. */
|
|
377
|
+
export function repoNamedIn(words, repos) {
|
|
378
|
+
const named = reposNamedIn(words, repos);
|
|
379
|
+
if (named.length !== 1)
|
|
380
|
+
return null;
|
|
381
|
+
const r = named[0];
|
|
382
|
+
const linked = linkedRepos(words);
|
|
383
|
+
return linkedTo(linked, r) || (distinctName(r.name) && namesTerm(words, r.name)) || (r.id !== r.name && distinctName(r.id) && namesTerm(words, r.id)) ? r : null;
|
|
384
|
+
}
|
|
385
|
+
/** (crew#1791) Every repository the person can pick, those the words name first: no cap, so the named one and every
|
|
386
|
+
* other in the chat's scope are reachable from "Which repository?". */
|
|
387
|
+
function repoChoicesFor(words, repos) {
|
|
388
|
+
const named = reposNamedIn(words, repos);
|
|
389
|
+
return [...named, ...repos.filter((r) => !named.includes(r))];
|
|
390
|
+
}
|
|
218
391
|
/** The repository a job runs on: the one named, else the chat's only one. */
|
|
219
392
|
export function repoOf(facts, chat) {
|
|
220
393
|
if (facts.repoRef !== null)
|
|
@@ -279,7 +452,7 @@ export function resolveJob(facts, ctx, opts = {}) {
|
|
|
279
452
|
const kind = proposalKindOf(r);
|
|
280
453
|
if (kind !== 'job')
|
|
281
454
|
throw new JobRefusal('not_a_job', `${card.title} makes a document: it is proposed as one`);
|
|
282
|
-
const notes = [...ctx.notes];
|
|
455
|
+
const notes = [...ctx.notes, ...(ctx.reviewNote !== undefined ? [ctx.reviewNote] : [])];
|
|
283
456
|
const takesDocuments = r.resolved.inputs.some((i) => i.id === 'documents');
|
|
284
457
|
const takesSources = r.resolved.inputs.some((i) => i.id === 'sources');
|
|
285
458
|
if (takesSources) {
|
|
@@ -341,7 +514,7 @@ export function resolveJob(facts, ctx, opts = {}) {
|
|
|
341
514
|
question = {
|
|
342
515
|
kind: 'missing',
|
|
343
516
|
text: ctx.chat.repos.length === 0 ? 'Which repository? This chat has none in its scope: start a thread on one.' : 'Which repository?',
|
|
344
|
-
choices: ctx.chat.repos
|
|
517
|
+
choices: repoChoicesFor(facts.words, ctx.chat.repos).map((x) => ({ label: x.name, edit: { repoRef: x.id } })),
|
|
345
518
|
};
|
|
346
519
|
}
|
|
347
520
|
else if (missing.kind === 'documents') {
|
|
@@ -383,11 +556,13 @@ export function resolveJob(facts, ctx, opts = {}) {
|
|
|
383
556
|
swap: ctx.chat.repos.length > 1 ? { choices: ctx.chat.repos.filter((x) => x.id !== repo.id).slice(0, 4).map((x) => ({ label: x.name, edit: { repoRef: x.id } })) } : null,
|
|
384
557
|
});
|
|
385
558
|
const selfSeated = r.workflow !== null && SELF_SEATED.has(r.workflow);
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
|
|
559
|
+
const nameOfSeat = (key) => ctx.roster.find((s) => s.key === key)?.name ?? key;
|
|
560
|
+
const coverage = !short && !selfSeated ? ctx.coverage?.(seats.keys, repo !== null) ?? null : null;
|
|
561
|
+
const disclosure = !short && !selfSeated ? coverageNote(coverage, nameOfSeat) ?? judgeDisclosure(r, seats.keys.length) : null;
|
|
389
562
|
if (disclosure !== null)
|
|
390
563
|
notes.push(disclosure);
|
|
564
|
+
// (crew#1673) A covered card still says, before launch, which seats were seen sharing a provider (core#1594).
|
|
565
|
+
notes.push(...sharingNotes(coverage, nameOfSeat));
|
|
391
566
|
// Lead swaps come from the pool work is drawn from; the row shows only when it offers a choice (crew#1590).
|
|
392
567
|
const swapChoices = (ctx.pool ?? ctx.roster).filter((x) => x.key !== seats.lead).slice(0, 4).map((x) => ({ label: `${x.name} leads`, edit: { lead: x.key } }));
|
|
393
568
|
const seatsTok = t({
|
|
@@ -437,6 +612,22 @@ export function resolveJob(facts, ctx, opts = {}) {
|
|
|
437
612
|
}
|
|
438
613
|
if (facts.skipQe !== null)
|
|
439
614
|
parts.push(`Without QE acceptance (you said: “${facts.skipQe.reason}”), labelled on the job.`);
|
|
615
|
+
// (crew#1840) A job that makes a pull request, asked to change one this chat delivered on the same repository,
|
|
616
|
+
// updates THAT pull request (`revisesPr`); asked but not attachable, the card says it updates none, why, and where a
|
|
617
|
+
// delivered PR is revised. Nothing else in the proposal ever says where the work is delivered.
|
|
618
|
+
const prAsk = launch === 'run' && delivers === 'pr' && repo !== null ? prRevisionOf(facts.words, ctx.deliveredPrs ?? [], repo.id) : null;
|
|
619
|
+
const revisesPr = prAsk?.pr ?? null;
|
|
620
|
+
if (revisesPr !== null) {
|
|
621
|
+
parts.push(`It updates pull request #${revisesPr.number}, which an earlier job of this chat delivered; no new pull request is opened.`);
|
|
622
|
+
}
|
|
623
|
+
else if (prAsk !== null && prAsk.miss !== undefined) {
|
|
624
|
+
const why = prAsk.miss === 'not-delivered'
|
|
625
|
+
? `${prAsk.named ?? 'the pull request you named'} is not one this chat delivered on ${repo.name}`
|
|
626
|
+
: prAsk.miss === 'several'
|
|
627
|
+
? `you named more than one pull request this chat delivered on ${repo.name}`
|
|
628
|
+
: `this chat has no one pull request on ${repo.name} it delivered to update`;
|
|
629
|
+
notes.push(`This job won't update an existing pull request: ${why}. To change a delivered pull request, use Revise this PR on the job that delivered it.`);
|
|
630
|
+
}
|
|
440
631
|
// crew#1570: a domain extraction runs many hours on a large repository; the catalog's fixed range would mislead.
|
|
441
632
|
const sizeBound = card.id === 'analyze-codebase' && r.option?.id === 'domain';
|
|
442
633
|
const time = sizeBound ? DOMAIN_TIME : minutesLabel(r.resolved.typicalMinutes);
|
|
@@ -507,6 +698,7 @@ export function resolveJob(facts, ctx, opts = {}) {
|
|
|
507
698
|
suggestions: suggestions.slice(0, 2),
|
|
508
699
|
question,
|
|
509
700
|
sketch: sketchOf(r, startChooses),
|
|
701
|
+
...(revisesPr !== null ? { revisesPr: { number: revisesPr.number, url: revisesPr.url, runId: revisesPr.runId } } : {}),
|
|
510
702
|
revises: ctx.revises,
|
|
511
703
|
lineage: ctx.lineage ?? ctx.pid,
|
|
512
704
|
...(ctx.answers !== undefined ? { answers: ctx.answers } : {}),
|