@descryy/mcp 0.11.3 → 0.11.5
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/package.json +20 -20
- package/dist/action-handshake.d.ts +0 -38
- package/dist/action-handshake.d.ts.map +0 -1
- package/dist/action-handshake.js +0 -127
- package/dist/action-handshake.js.map +0 -1
- package/dist/bin/descry-mcp.d.ts +0 -7
- package/dist/bin/descry-mcp.d.ts.map +0 -1
- package/dist/bin/descry-mcp.js +0 -72
- package/dist/bin/descry-mcp.js.map +0 -1
- package/dist/browser/auth.d.ts +0 -84
- package/dist/browser/auth.d.ts.map +0 -1
- package/dist/browser/auth.js +0 -233
- package/dist/browser/auth.js.map +0 -1
- package/dist/browser/capability-probe.d.ts +0 -109
- package/dist/browser/capability-probe.d.ts.map +0 -1
- package/dist/browser/capability-probe.js +0 -201
- package/dist/browser/capability-probe.js.map +0 -1
- package/dist/browser/driver.d.ts +0 -570
- package/dist/browser/driver.d.ts.map +0 -1
- package/dist/browser/driver.js +0 -116
- package/dist/browser/driver.js.map +0 -1
- package/dist/browser/evidence.d.ts +0 -28
- package/dist/browser/evidence.d.ts.map +0 -1
- package/dist/browser/evidence.js +0 -82
- package/dist/browser/evidence.js.map +0 -1
- package/dist/browser/fake-driver.d.ts +0 -116
- package/dist/browser/fake-driver.d.ts.map +0 -1
- package/dist/browser/fake-driver.js +0 -416
- package/dist/browser/fake-driver.js.map +0 -1
- package/dist/browser/fault-attribution.d.ts +0 -178
- package/dist/browser/fault-attribution.d.ts.map +0 -1
- package/dist/browser/fault-attribution.js +0 -266
- package/dist/browser/fault-attribution.js.map +0 -1
- package/dist/browser/graph-write.d.ts +0 -45
- package/dist/browser/graph-write.d.ts.map +0 -1
- package/dist/browser/graph-write.js +0 -103
- package/dist/browser/graph-write.js.map +0 -1
- package/dist/browser/identity-graph-write.d.ts +0 -55
- package/dist/browser/identity-graph-write.d.ts.map +0 -1
- package/dist/browser/identity-graph-write.js +0 -45
- package/dist/browser/identity-graph-write.js.map +0 -1
- package/dist/browser/page-probe.d.ts +0 -81
- package/dist/browser/page-probe.d.ts.map +0 -1
- package/dist/browser/page-probe.js +0 -202
- package/dist/browser/page-probe.js.map +0 -1
- package/dist/browser/playwright-driver.d.ts +0 -114
- package/dist/browser/playwright-driver.d.ts.map +0 -1
- package/dist/browser/playwright-driver.js +0 -1479
- package/dist/browser/playwright-driver.js.map +0 -1
- package/dist/browser/provider.d.ts +0 -26
- package/dist/browser/provider.d.ts.map +0 -1
- package/dist/browser/provider.js +0 -14
- package/dist/browser/provider.js.map +0 -1
- package/dist/browser/reach-recording-session.d.ts +0 -44
- package/dist/browser/reach-recording-session.d.ts.map +0 -1
- package/dist/browser/reach-recording-session.js +0 -143
- package/dist/browser/reach-recording-session.js.map +0 -1
- package/dist/browser/reachability.d.ts +0 -168
- package/dist/browser/reachability.d.ts.map +0 -1
- package/dist/browser/reachability.js +0 -294
- package/dist/browser/reachability.js.map +0 -1
- package/dist/browser/registry.d.ts +0 -126
- package/dist/browser/registry.d.ts.map +0 -1
- package/dist/browser/registry.js +0 -177
- package/dist/browser/registry.js.map +0 -1
- package/dist/browser/scenario-provenance.d.ts +0 -23
- package/dist/browser/scenario-provenance.d.ts.map +0 -1
- package/dist/browser/scenario-provenance.js +0 -73
- package/dist/browser/scenario-provenance.js.map +0 -1
- package/dist/browser/scenario-resolve.d.ts +0 -28
- package/dist/browser/scenario-resolve.d.ts.map +0 -1
- package/dist/browser/scenario-resolve.js +0 -96
- package/dist/browser/scenario-resolve.js.map +0 -1
- package/dist/browser/scenario-runner.d.ts +0 -72
- package/dist/browser/scenario-runner.d.ts.map +0 -1
- package/dist/browser/scenario-runner.js +0 -353
- package/dist/browser/scenario-runner.js.map +0 -1
- package/dist/browser/stack-parser.d.ts +0 -19
- package/dist/browser/stack-parser.d.ts.map +0 -1
- package/dist/browser/stack-parser.js +0 -85
- package/dist/browser/stack-parser.js.map +0 -1
- package/dist/browser/tool-support.d.ts +0 -71
- package/dist/browser/tool-support.d.ts.map +0 -1
- package/dist/browser/tool-support.js +0 -216
- package/dist/browser/tool-support.js.map +0 -1
- package/dist/browser/url-scheme.d.ts +0 -14
- package/dist/browser/url-scheme.d.ts.map +0 -1
- package/dist/browser/url-scheme.js +0 -38
- package/dist/browser/url-scheme.js.map +0 -1
- package/dist/browser/wait-target.d.ts +0 -37
- package/dist/browser/wait-target.d.ts.map +0 -1
- package/dist/browser/wait-target.js +0 -54
- package/dist/browser/wait-target.js.map +0 -1
- package/dist/cancellation.d.ts +0 -20
- package/dist/cancellation.d.ts.map +0 -1
- package/dist/cancellation.js +0 -41
- package/dist/cancellation.js.map +0 -1
- package/dist/capped.d.ts +0 -17
- package/dist/capped.d.ts.map +0 -1
- package/dist/capped.js +0 -15
- package/dist/capped.js.map +0 -1
- package/dist/credential-store.d.ts +0 -22
- package/dist/credential-store.d.ts.map +0 -1
- package/dist/credential-store.js +0 -33
- package/dist/credential-store.js.map +0 -1
- package/dist/disclosure-ledger.d.ts +0 -14
- package/dist/disclosure-ledger.d.ts.map +0 -1
- package/dist/disclosure-ledger.js +0 -18
- package/dist/disclosure-ledger.js.map +0 -1
- package/dist/evidence/observed-route-evidence.d.ts +0 -25
- package/dist/evidence/observed-route-evidence.d.ts.map +0 -1
- package/dist/evidence/observed-route-evidence.js +0 -76
- package/dist/evidence/observed-route-evidence.js.map +0 -1
- package/dist/heap.d.ts +0 -61
- package/dist/heap.d.ts.map +0 -1
- package/dist/heap.js +0 -82
- package/dist/heap.js.map +0 -1
- package/dist/heartbeat.d.ts +0 -46
- package/dist/heartbeat.d.ts.map +0 -1
- package/dist/heartbeat.js +0 -66
- package/dist/heartbeat.js.map +0 -1
- package/dist/index.d.ts +0 -32
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
- package/dist/module-trust.d.ts +0 -37
- package/dist/module-trust.d.ts.map +0 -1
- package/dist/module-trust.js +0 -77
- package/dist/module-trust.js.map +0 -1
- package/dist/path-confinement.d.ts +0 -31
- package/dist/path-confinement.d.ts.map +0 -1
- package/dist/path-confinement.js +0 -44
- package/dist/path-confinement.js.map +0 -1
- package/dist/planner/predict-then-propose.d.ts +0 -134
- package/dist/planner/predict-then-propose.d.ts.map +0 -1
- package/dist/planner/predict-then-propose.js +0 -138
- package/dist/planner/predict-then-propose.js.map +0 -1
- package/dist/planner/propose-journey.d.ts +0 -75
- package/dist/planner/propose-journey.d.ts.map +0 -1
- package/dist/planner/propose-journey.js +0 -96
- package/dist/planner/propose-journey.js.map +0 -1
- package/dist/protocol.d.ts +0 -57
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -90
- package/dist/protocol.js.map +0 -1
- package/dist/registry.d.ts +0 -103
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -319
- package/dist/registry.js.map +0 -1
- package/dist/render.d.ts +0 -580
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js +0 -867
- package/dist/render.js.map +0 -1
- package/dist/runtime-registry.d.ts +0 -22
- package/dist/runtime-registry.d.ts.map +0 -1
- package/dist/runtime-registry.js +0 -142
- package/dist/runtime-registry.js.map +0 -1
- package/dist/sandbox-defaults.d.ts +0 -41
- package/dist/sandbox-defaults.d.ts.map +0 -1
- package/dist/sandbox-defaults.js +0 -14
- package/dist/sandbox-defaults.js.map +0 -1
- package/dist/scenarios/browser-run-plan-projection.d.ts +0 -161
- package/dist/scenarios/browser-run-plan-projection.d.ts.map +0 -1
- package/dist/scenarios/browser-run-plan-projection.js +0 -264
- package/dist/scenarios/browser-run-plan-projection.js.map +0 -1
- package/dist/scenarios/credential-ref.d.ts +0 -102
- package/dist/scenarios/credential-ref.d.ts.map +0 -1
- package/dist/scenarios/credential-ref.js +0 -148
- package/dist/scenarios/credential-ref.js.map +0 -1
- package/dist/scenarios/index.d.ts +0 -7
- package/dist/scenarios/index.d.ts.map +0 -1
- package/dist/scenarios/index.js +0 -7
- package/dist/scenarios/index.js.map +0 -1
- package/dist/scenarios/parse.d.ts +0 -18
- package/dist/scenarios/parse.d.ts.map +0 -1
- package/dist/scenarios/parse.js +0 -212
- package/dist/scenarios/parse.js.map +0 -1
- package/dist/scenarios/scenario.d.ts +0 -93
- package/dist/scenarios/scenario.d.ts.map +0 -1
- package/dist/scenarios/scenario.js +0 -27
- package/dist/scenarios/scenario.js.map +0 -1
- package/dist/scenarios/secret-ref.d.ts +0 -86
- package/dist/scenarios/secret-ref.d.ts.map +0 -1
- package/dist/scenarios/secret-ref.js +0 -125
- package/dist/scenarios/secret-ref.js.map +0 -1
- package/dist/scenarios/storage.d.ts +0 -21
- package/dist/scenarios/storage.d.ts.map +0 -1
- package/dist/scenarios/storage.js +0 -103
- package/dist/scenarios/storage.js.map +0 -1
- package/dist/server.d.ts +0 -61
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js +0 -541
- package/dist/server.js.map +0 -1
- package/dist/session.d.ts +0 -243
- package/dist/session.d.ts.map +0 -1
- package/dist/session.js +0 -602
- package/dist/session.js.map +0 -1
- package/dist/tools/alias-kit.d.ts +0 -29
- package/dist/tools/alias-kit.d.ts.map +0 -1
- package/dist/tools/alias-kit.js +0 -21
- package/dist/tools/alias-kit.js.map +0 -1
- package/dist/tools/aliases.d.ts +0 -42
- package/dist/tools/aliases.d.ts.map +0 -1
- package/dist/tools/aliases.js +0 -52
- package/dist/tools/aliases.js.map +0 -1
- package/dist/tools/analyze-workspace.d.ts +0 -52
- package/dist/tools/analyze-workspace.d.ts.map +0 -1
- package/dist/tools/analyze-workspace.js +0 -207
- package/dist/tools/analyze-workspace.js.map +0 -1
- package/dist/tools/analyze.d.ts +0 -163
- package/dist/tools/analyze.d.ts.map +0 -1
- package/dist/tools/analyze.js +0 -724
- package/dist/tools/analyze.js.map +0 -1
- package/dist/tools/browser-click.d.ts +0 -18
- package/dist/tools/browser-click.d.ts.map +0 -1
- package/dist/tools/browser-click.js +0 -110
- package/dist/tools/browser-click.js.map +0 -1
- package/dist/tools/browser-close-session.d.ts +0 -39
- package/dist/tools/browser-close-session.d.ts.map +0 -1
- package/dist/tools/browser-close-session.js +0 -120
- package/dist/tools/browser-close-session.js.map +0 -1
- package/dist/tools/browser-fill.d.ts +0 -18
- package/dist/tools/browser-fill.d.ts.map +0 -1
- package/dist/tools/browser-fill.js +0 -117
- package/dist/tools/browser-fill.js.map +0 -1
- package/dist/tools/browser-navigate.d.ts +0 -15
- package/dist/tools/browser-navigate.d.ts.map +0 -1
- package/dist/tools/browser-navigate.js +0 -104
- package/dist/tools/browser-navigate.js.map +0 -1
- package/dist/tools/browser-read.d.ts +0 -33
- package/dist/tools/browser-read.d.ts.map +0 -1
- package/dist/tools/browser-read.js +0 -113
- package/dist/tools/browser-read.js.map +0 -1
- package/dist/tools/browser-run-scenario.d.ts +0 -28
- package/dist/tools/browser-run-scenario.d.ts.map +0 -1
- package/dist/tools/browser-run-scenario.js +0 -206
- package/dist/tools/browser-run-scenario.js.map +0 -1
- package/dist/tools/browser-save-scenario.d.ts +0 -19
- package/dist/tools/browser-save-scenario.d.ts.map +0 -1
- package/dist/tools/browser-save-scenario.js +0 -447
- package/dist/tools/browser-save-scenario.js.map +0 -1
- package/dist/tools/browser-select.d.ts +0 -20
- package/dist/tools/browser-select.d.ts.map +0 -1
- package/dist/tools/browser-select.js +0 -120
- package/dist/tools/browser-select.js.map +0 -1
- package/dist/tools/browser-snapshot.d.ts +0 -46
- package/dist/tools/browser-snapshot.d.ts.map +0 -1
- package/dist/tools/browser-snapshot.js +0 -127
- package/dist/tools/browser-snapshot.js.map +0 -1
- package/dist/tools/browser-start-session.d.ts +0 -24
- package/dist/tools/browser-start-session.d.ts.map +0 -1
- package/dist/tools/browser-start-session.js +0 -622
- package/dist/tools/browser-start-session.js.map +0 -1
- package/dist/tools/browser-submit.d.ts +0 -18
- package/dist/tools/browser-submit.d.ts.map +0 -1
- package/dist/tools/browser-submit.js +0 -106
- package/dist/tools/browser-submit.js.map +0 -1
- package/dist/tools/browser-type.d.ts +0 -18
- package/dist/tools/browser-type.d.ts.map +0 -1
- package/dist/tools/browser-type.js +0 -115
- package/dist/tools/browser-type.js.map +0 -1
- package/dist/tools/browser-wait-for.d.ts +0 -45
- package/dist/tools/browser-wait-for.d.ts.map +0 -1
- package/dist/tools/browser-wait-for.js +0 -150
- package/dist/tools/browser-wait-for.js.map +0 -1
- package/dist/tools/browser.d.ts +0 -69
- package/dist/tools/browser.d.ts.map +0 -1
- package/dist/tools/browser.js +0 -386
- package/dist/tools/browser.js.map +0 -1
- package/dist/tools/chain.d.ts +0 -41
- package/dist/tools/chain.d.ts.map +0 -1
- package/dist/tools/chain.js +0 -105
- package/dist/tools/chain.js.map +0 -1
- package/dist/tools/change-scope.d.ts +0 -25
- package/dist/tools/change-scope.d.ts.map +0 -1
- package/dist/tools/change-scope.js +0 -110
- package/dist/tools/change-scope.js.map +0 -1
- package/dist/tools/code-context.d.ts +0 -83
- package/dist/tools/code-context.d.ts.map +0 -1
- package/dist/tools/code-context.js +0 -416
- package/dist/tools/code-context.js.map +0 -1
- package/dist/tools/contracts.d.ts +0 -74
- package/dist/tools/contracts.d.ts.map +0 -1
- package/dist/tools/contracts.js +0 -196
- package/dist/tools/contracts.js.map +0 -1
- package/dist/tools/cross-pr.d.ts +0 -178
- package/dist/tools/cross-pr.d.ts.map +0 -1
- package/dist/tools/cross-pr.js +0 -321
- package/dist/tools/cross-pr.js.map +0 -1
- package/dist/tools/disclosure.d.ts +0 -75
- package/dist/tools/disclosure.d.ts.map +0 -1
- package/dist/tools/disclosure.js +0 -288
- package/dist/tools/disclosure.js.map +0 -1
- package/dist/tools/draw-conclusion.d.ts +0 -55
- package/dist/tools/draw-conclusion.d.ts.map +0 -1
- package/dist/tools/draw-conclusion.js +0 -259
- package/dist/tools/draw-conclusion.js.map +0 -1
- package/dist/tools/git-context.d.ts +0 -39
- package/dist/tools/git-context.d.ts.map +0 -1
- package/dist/tools/git-context.js +0 -364
- package/dist/tools/git-context.js.map +0 -1
- package/dist/tools/git-diff.d.ts +0 -45
- package/dist/tools/git-diff.d.ts.map +0 -1
- package/dist/tools/git-diff.js +0 -338
- package/dist/tools/git-diff.js.map +0 -1
- package/dist/tools/git-history.d.ts +0 -16
- package/dist/tools/git-history.d.ts.map +0 -1
- package/dist/tools/git-history.js +0 -86
- package/dist/tools/git-history.js.map +0 -1
- package/dist/tools/history.d.ts +0 -34
- package/dist/tools/history.d.ts.map +0 -1
- package/dist/tools/history.js +0 -121
- package/dist/tools/history.js.map +0 -1
- package/dist/tools/impact.d.ts +0 -46
- package/dist/tools/impact.d.ts.map +0 -1
- package/dist/tools/impact.js +0 -225
- package/dist/tools/impact.js.map +0 -1
- package/dist/tools/index.d.ts +0 -59
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -70
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/kit.d.ts +0 -165
- package/dist/tools/kit.d.ts.map +0 -1
- package/dist/tools/kit.js +0 -153
- package/dist/tools/kit.js.map +0 -1
- package/dist/tools/link-workspace.d.ts +0 -24
- package/dist/tools/link-workspace.d.ts.map +0 -1
- package/dist/tools/link-workspace.js +0 -131
- package/dist/tools/link-workspace.js.map +0 -1
- package/dist/tools/lookup.d.ts +0 -19
- package/dist/tools/lookup.d.ts.map +0 -1
- package/dist/tools/lookup.js +0 -63
- package/dist/tools/lookup.js.map +0 -1
- package/dist/tools/mark-incident.d.ts +0 -28
- package/dist/tools/mark-incident.d.ts.map +0 -1
- package/dist/tools/mark-incident.js +0 -188
- package/dist/tools/mark-incident.js.map +0 -1
- package/dist/tools/merged-browser.d.ts +0 -11
- package/dist/tools/merged-browser.d.ts.map +0 -1
- package/dist/tools/merged-browser.js +0 -20
- package/dist/tools/merged-browser.js.map +0 -1
- package/dist/tools/merged-context.d.ts +0 -11
- package/dist/tools/merged-context.d.ts.map +0 -1
- package/dist/tools/merged-context.js +0 -21
- package/dist/tools/merged-context.js.map +0 -1
- package/dist/tools/merged-observe.d.ts +0 -13
- package/dist/tools/merged-observe.d.ts.map +0 -1
- package/dist/tools/merged-observe.js +0 -21
- package/dist/tools/merged-observe.js.map +0 -1
- package/dist/tools/merged-workspace.d.ts +0 -14
- package/dist/tools/merged-workspace.d.ts.map +0 -1
- package/dist/tools/merged-workspace.js +0 -21
- package/dist/tools/merged-workspace.js.map +0 -1
- package/dist/tools/observe-runtime.d.ts +0 -250
- package/dist/tools/observe-runtime.d.ts.map +0 -1
- package/dist/tools/observe-runtime.js +0 -1753
- package/dist/tools/observe-runtime.js.map +0 -1
- package/dist/tools/observe-tests.d.ts +0 -57
- package/dist/tools/observe-tests.d.ts.map +0 -1
- package/dist/tools/observe-tests.js +0 -368
- package/dist/tools/observe-tests.js.map +0 -1
- package/dist/tools/observe.d.ts +0 -28
- package/dist/tools/observe.d.ts.map +0 -1
- package/dist/tools/observe.js +0 -330
- package/dist/tools/observe.js.map +0 -1
- package/dist/tools/pr-analysis.d.ts +0 -189
- package/dist/tools/pr-analysis.d.ts.map +0 -1
- package/dist/tools/pr-analysis.js +0 -299
- package/dist/tools/pr-analysis.js.map +0 -1
- package/dist/tools/pre-push.d.ts +0 -168
- package/dist/tools/pre-push.d.ts.map +0 -1
- package/dist/tools/pre-push.js +0 -416
- package/dist/tools/pre-push.js.map +0 -1
- package/dist/tools/predict-reach.d.ts +0 -57
- package/dist/tools/predict-reach.d.ts.map +0 -1
- package/dist/tools/predict-reach.js +0 -159
- package/dist/tools/predict-reach.js.map +0 -1
- package/dist/tools/propagation.d.ts +0 -37
- package/dist/tools/propagation.d.ts.map +0 -1
- package/dist/tools/propagation.js +0 -162
- package/dist/tools/propagation.js.map +0 -1
- package/dist/tools/propose-journey.d.ts +0 -16
- package/dist/tools/propose-journey.d.ts.map +0 -1
- package/dist/tools/propose-journey.js +0 -121
- package/dist/tools/propose-journey.js.map +0 -1
- package/dist/tools/prove-reach.d.ts +0 -74
- package/dist/tools/prove-reach.d.ts.map +0 -1
- package/dist/tools/prove-reach.js +0 -286
- package/dist/tools/prove-reach.js.map +0 -1
- package/dist/tools/questions.d.ts +0 -30
- package/dist/tools/questions.d.ts.map +0 -1
- package/dist/tools/questions.js +0 -232
- package/dist/tools/questions.js.map +0 -1
- package/dist/tools/refusal-fetch.d.ts +0 -35
- package/dist/tools/refusal-fetch.d.ts.map +0 -1
- package/dist/tools/refusal-fetch.js +0 -103
- package/dist/tools/refusal-fetch.js.map +0 -1
- package/dist/tools/runtime-incident.d.ts +0 -33
- package/dist/tools/runtime-incident.d.ts.map +0 -1
- package/dist/tools/runtime-incident.js +0 -67
- package/dist/tools/runtime-incident.js.map +0 -1
- package/dist/tools/runtime-journey-drive.d.ts +0 -102
- package/dist/tools/runtime-journey-drive.d.ts.map +0 -1
- package/dist/tools/runtime-journey-drive.js +0 -247
- package/dist/tools/runtime-journey-drive.js.map +0 -1
- package/dist/tools/scope.d.ts +0 -45
- package/dist/tools/scope.d.ts.map +0 -1
- package/dist/tools/scope.js +0 -186
- package/dist/tools/scope.js.map +0 -1
- package/dist/tools/similar-incidents.d.ts +0 -43
- package/dist/tools/similar-incidents.d.ts.map +0 -1
- package/dist/tools/similar-incidents.js +0 -179
- package/dist/tools/similar-incidents.js.map +0 -1
- package/dist/tools/validate.d.ts +0 -133
- package/dist/tools/validate.d.ts.map +0 -1
- package/dist/tools/validate.js +0 -442
- package/dist/tools/validate.js.map +0 -1
- package/dist/tools/verb.d.ts +0 -46
- package/dist/tools/verb.d.ts.map +0 -1
- package/dist/tools/verb.js +0 -78
- package/dist/tools/verb.js.map +0 -1
- package/dist/tools/verification-status.d.ts +0 -38
- package/dist/tools/verification-status.d.ts.map +0 -1
- package/dist/tools/verification-status.js +0 -203
- package/dist/tools/verification-status.js.map +0 -1
- package/dist/tools/verify-claim.d.ts +0 -29
- package/dist/tools/verify-claim.d.ts.map +0 -1
- package/dist/tools/verify-claim.js +0 -220
- package/dist/tools/verify-claim.js.map +0 -1
- package/dist/tools/workspace.d.ts +0 -28
- package/dist/tools/workspace.d.ts.map +0 -1
- package/dist/tools/workspace.js +0 -101
- package/dist/tools/workspace.js.map +0 -1
- package/dist/transport.d.ts +0 -32
- package/dist/transport.d.ts.map +0 -1
- package/dist/transport.js +0 -85
- package/dist/transport.js.map +0 -1
- package/dist/workspace-index.d.ts +0 -164
- package/dist/workspace-index.d.ts.map +0 -1
- package/dist/workspace-index.js +0 -381
- package/dist/workspace-index.js.map +0 -1
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `pr-analysis` — "what should I test before I open this PR?"
|
|
3
|
-
*
|
|
4
|
-
* The blast radius of a diff, intersected with the tests that cover it. The
|
|
5
|
-
* useful half of the answer is the second list: **what is affected and has no
|
|
6
|
-
* covering test.** A green suite proves nothing about that set, and it is the
|
|
7
|
-
* only part of a PR review that a test run cannot supply.
|
|
8
|
-
*
|
|
9
|
-
* ## `base...head`, three dots
|
|
10
|
-
*
|
|
11
|
-
* `changedFiles` diffs against the merge base rather than the two tips. On a
|
|
12
|
-
* branch a week behind `main`, two dots would fold every change made on `main`
|
|
13
|
-
* since the branch point into "this PR", and the blast radius would belong to
|
|
14
|
-
* somebody else's work. This is stated here as well as at the git call because
|
|
15
|
-
* it is the kind of thing that gets "simplified" later.
|
|
16
|
-
*
|
|
17
|
-
* ## Absence of a test is not evidence of absence
|
|
18
|
-
*
|
|
19
|
-
* `TESTS` edges come from adapters, and every adapter's recall is below 100% by
|
|
20
|
-
* design — precision over recall, when in doubt omit the edge. So "no covering
|
|
21
|
-
* test" means "no test that this graph can link", and the difference is
|
|
22
|
-
* disclosed. Reporting the untested list without it would turn a measured recall
|
|
23
|
-
* gap into a confident accusation.
|
|
24
|
-
*
|
|
25
|
-
* ## One node map, three id lists
|
|
26
|
-
*
|
|
27
|
-
* `affected`, `untested` and `tests` overlap heavily by construction — an
|
|
28
|
-
* affected node with no covering test is in two of them — and each used to
|
|
29
|
-
* carry the whole node inline, so the same fields were serialized up to three
|
|
30
|
-
* times in one reply. `indexPrAnalysisNodes` collapses that: the lists name
|
|
31
|
-
* ids, `nodes` holds each node once. Tool version 2.0.0 for it.
|
|
32
|
-
*/
|
|
33
|
-
import { addedLineRanges, changeRisk, gitDiff, gitWorkingTreeChange, NODE_BUDGETS, nodesInFiles, withProminence, } from "@descryy/core";
|
|
34
|
-
import { answer, briefNode, optionalEnum, optionalInteger, descryOwnState, optionalString, ToolInputError, } from "./kit.js";
|
|
35
|
-
/**
|
|
36
|
-
* Collapse three overlapping node lists into one map plus three id lists.
|
|
37
|
-
*
|
|
38
|
-
* Order within each list is preserved exactly — it is the ranking the query
|
|
39
|
-
* layer produced, and re-sorting it here would silently change which nodes a
|
|
40
|
-
* caller's own `limit` keeps.
|
|
41
|
-
*/
|
|
42
|
-
export function indexPrAnalysisNodes(affected, untested, tests) {
|
|
43
|
-
const nodes = {};
|
|
44
|
-
const remember = (node) => {
|
|
45
|
-
if (nodes[node.id] === undefined)
|
|
46
|
-
nodes[node.id] = briefNode(node);
|
|
47
|
-
return node.id;
|
|
48
|
-
};
|
|
49
|
-
return {
|
|
50
|
-
affected: withProminence(affected.map((entry) => ({
|
|
51
|
-
id: remember(entry.node),
|
|
52
|
-
score: Number(entry.score.toFixed(4)),
|
|
53
|
-
depth: entry.depth,
|
|
54
|
-
}))),
|
|
55
|
-
untested: untested.map(remember),
|
|
56
|
-
tests: tests.map(remember),
|
|
57
|
-
nodes,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/** Path to the lines the diff actually added in it — `null` when the patch was
|
|
61
|
-
* withheld (binary, or a size budget), which is not the same as "no lines added". */
|
|
62
|
-
function addedLinesByFile(files) {
|
|
63
|
-
return new Map(files.map((f) => [f.path, f.patch === null ? null : addedLineRanges(f.patch)]));
|
|
64
|
-
}
|
|
65
|
-
/** Does this node's declared range land on a line the diff actually added?
|
|
66
|
-
* `false` for anything unprovable — no range, no file, or a file whose patch
|
|
67
|
-
* was withheld — never assumed true (F5, UAT Phase 5, rule 2). */
|
|
68
|
-
function touchesAddedLine(node, addedByFile) {
|
|
69
|
-
if (node.file === null || node.range === null)
|
|
70
|
-
return false;
|
|
71
|
-
const ranges = addedByFile.get(node.file);
|
|
72
|
-
if (ranges === null || ranges === undefined)
|
|
73
|
-
return false;
|
|
74
|
-
return ranges.some((r) => node.range.startLine <= r.end && node.range.endLine >= r.start);
|
|
75
|
-
}
|
|
76
|
-
const TRIGGERS = ["pre-push", "pr", "nightly"];
|
|
77
|
-
const SCHEMA = {
|
|
78
|
-
type: "object",
|
|
79
|
-
properties: {
|
|
80
|
-
base: {
|
|
81
|
-
type: "string",
|
|
82
|
-
description: "The branch or commit this change is measured against, e.g. \"main\" or \"origin/main\". " +
|
|
83
|
-
"Required unless \"workingTree\" is given — there is no defensible default, and guessing " +
|
|
84
|
-
"one silently changes the diff.",
|
|
85
|
-
},
|
|
86
|
-
head: { type: "string", description: "The tip being reviewed. Default HEAD." },
|
|
87
|
-
workingTree: {
|
|
88
|
-
type: "string",
|
|
89
|
-
enum: ["unstaged", "staged", "all"],
|
|
90
|
-
description: "Review the change as it stands in the working tree rather than between two refs — the " +
|
|
91
|
-
"change about to be committed, including files git has never seen. \"all\" is staged and " +
|
|
92
|
-
"unstaged together. Mutually exclusive with \"base\", and never inferred: the two answer " +
|
|
93
|
-
"different questions, so the caller declares which one they are asking. Which ran is " +
|
|
94
|
-
"stated in the reply.",
|
|
95
|
-
},
|
|
96
|
-
includeUntracked: {
|
|
97
|
-
type: "boolean",
|
|
98
|
-
description: "With \"workingTree\", include files git has never seen. On by default — a new file " +
|
|
99
|
-
"written and not yet added is part of the change about to be committed.",
|
|
100
|
-
},
|
|
101
|
-
trigger: {
|
|
102
|
-
type: "string",
|
|
103
|
-
enum: [...TRIGGERS],
|
|
104
|
-
description: "Node budget to use. Default pr (1000).",
|
|
105
|
-
},
|
|
106
|
-
limit: { type: "integer", minimum: 1, description: "Cap on nodes per list. Default 50." },
|
|
107
|
-
},
|
|
108
|
-
additionalProperties: false,
|
|
109
|
-
};
|
|
110
|
-
async function run(args, ctx) {
|
|
111
|
-
// One of the two questions has to be chosen, and neither has a defensible
|
|
112
|
-
// default: guessing would silently change which change set the whole answer
|
|
113
|
-
// describes. This tool's own reasoning is that the diff is what defines a
|
|
114
|
-
// change to review — a working tree *is* a diff, it is simply not a
|
|
115
|
-
// ref-to-ref one, so accepting it completes that principle rather than
|
|
116
|
-
// bending it. Which one ran is stated in the reply.
|
|
117
|
-
const workingTree = optionalString(args, "workingTree");
|
|
118
|
-
const includeUntracked = args["includeUntracked"] !== false;
|
|
119
|
-
const baseArg = optionalString(args, "base");
|
|
120
|
-
if (workingTree === undefined && baseArg === undefined) {
|
|
121
|
-
throw new ToolInputError('Give either "base" (a ref range) or "workingTree" (the change as it stands, uncommitted). ' +
|
|
122
|
-
"There is no defensible default, and guessing one silently changes which change set the " +
|
|
123
|
-
"answer describes.");
|
|
124
|
-
}
|
|
125
|
-
if (workingTree !== undefined && baseArg !== undefined) {
|
|
126
|
-
throw new ToolInputError('"base" and "workingTree" are mutually exclusive — they are two different questions. Ask one.');
|
|
127
|
-
}
|
|
128
|
-
if (workingTree !== undefined && !["unstaged", "staged", "all"].includes(workingTree)) {
|
|
129
|
-
throw new ToolInputError(`"workingTree" must be "unstaged", "staged" or "all" — got "${workingTree}".`);
|
|
130
|
-
}
|
|
131
|
-
const scope = (workingTree ?? "all");
|
|
132
|
-
const mode = baseArg === undefined ? "working-tree" : "range";
|
|
133
|
-
const base = baseArg ?? null;
|
|
134
|
-
const head = base === null ? null : optionalString(args, "head") ?? "HEAD";
|
|
135
|
-
const subject = base === null ? `the working tree (${scope})` : `${base}...${head}`;
|
|
136
|
-
/** Carried into every one of the four reply shapes, so none can omit it. */
|
|
137
|
-
const identity = {
|
|
138
|
-
mode,
|
|
139
|
-
base,
|
|
140
|
-
head,
|
|
141
|
-
...(base === null ? { workingTree: { scope, includeUntracked } } : {}),
|
|
142
|
-
};
|
|
143
|
-
const trigger = optionalEnum(args, "trigger", TRIGGERS) ?? "pr";
|
|
144
|
-
const limit = optionalInteger(args, "limit", 1) ?? 50;
|
|
145
|
-
const session = ctx.session;
|
|
146
|
-
const stamp = session.provider().baseStamp();
|
|
147
|
-
ctx.progress(`Diffing ${subject}`);
|
|
148
|
-
let diffFiles;
|
|
149
|
-
try {
|
|
150
|
-
diffFiles =
|
|
151
|
-
base === null
|
|
152
|
-
? (await gitWorkingTreeChange(session.repoPath, {
|
|
153
|
-
scope,
|
|
154
|
-
includeUntracked,
|
|
155
|
-
exclude: descryOwnState(session.config.graph),
|
|
156
|
-
})).files
|
|
157
|
-
: await gitDiff(session.repoPath, base, head);
|
|
158
|
-
}
|
|
159
|
-
catch (error) {
|
|
160
|
-
return answer({
|
|
161
|
-
headline: `Could not diff ${subject}.`,
|
|
162
|
-
state: "refused",
|
|
163
|
-
nameLevel: true,
|
|
164
|
-
resolutionFloor: 0,
|
|
165
|
-
commitSha: stamp.commitSha,
|
|
166
|
-
graphBuiltAt: stamp.graphBuiltAt,
|
|
167
|
-
irSchemaVersion: stamp.irSchemaVersion,
|
|
168
|
-
commitSpread: stamp.commitSpread,
|
|
169
|
-
repoCount: stamp.repoCount,
|
|
170
|
-
notes: [
|
|
171
|
-
(base === null
|
|
172
|
-
? `git rejected the working-tree read: ${error.message.trim()}.`
|
|
173
|
-
: `git rejected the range: ${error.message.trim()}. Check that "${base}" ` +
|
|
174
|
-
"exists locally — a shallow clone or a missing fetch is the usual cause."),
|
|
175
|
-
],
|
|
176
|
-
data: { ...identity, files: [] },
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
const files = diffFiles.map((f) => f.path);
|
|
180
|
-
const addedByFile = addedLinesByFile(diffFiles);
|
|
181
|
-
const notes = [];
|
|
182
|
-
if (files.length === 0) {
|
|
183
|
-
return answer({
|
|
184
|
-
headline: `${subject} changes no files.`,
|
|
185
|
-
nameLevel: true,
|
|
186
|
-
// 0, not 4. Every other branch of this tool already stamps 0 for the same
|
|
187
|
-
// reason `get_git_diff` does — a live git read is not a graph-traversal
|
|
188
|
-
// claim — and this branch reads *less* than they do, not more. Stamping
|
|
189
|
-
// the strongest tier on the answer that rests on no graph evidence at all
|
|
190
|
-
// was the same leaked default `createResolutionFloor` exists to remove.
|
|
191
|
-
resolutionFloor: 0,
|
|
192
|
-
commitSha: stamp.commitSha,
|
|
193
|
-
graphBuiltAt: stamp.graphBuiltAt,
|
|
194
|
-
irSchemaVersion: stamp.irSchemaVersion,
|
|
195
|
-
commitSpread: stamp.commitSpread,
|
|
196
|
-
repoCount: stamp.repoCount,
|
|
197
|
-
notes: ["An empty diff is a real answer: there is nothing to assess."],
|
|
198
|
-
data: { ...identity, files: [], nodes: {}, affected: [], untested: [], tests: [] },
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
ctx.progress(`Resolving ${files.length} changed file(s)`, 1, 3);
|
|
202
|
-
const { nodes, missing } = nodesInFiles(session.store().driver, files);
|
|
203
|
-
if (missing.length > 0) {
|
|
204
|
-
notes.push(`${missing.length} of ${files.length} changed file(s) have no node in the graph ` +
|
|
205
|
-
`(${missing.slice(0, 5).join(", ")}${missing.length > 5 ? ", …" : ""}). They are outside ` +
|
|
206
|
-
"what any configured adapter reads, or the graph predates them. Their impact is absent " +
|
|
207
|
-
"from this analysis and they are not being reported as safe.");
|
|
208
|
-
}
|
|
209
|
-
if (nodes.length === 0) {
|
|
210
|
-
return answer({
|
|
211
|
-
headline: `None of the ${files.length} file(s) changed in ${subject} are in the graph.`,
|
|
212
|
-
state: "refused",
|
|
213
|
-
nameLevel: true,
|
|
214
|
-
resolutionFloor: 0,
|
|
215
|
-
commitSha: stamp.commitSha,
|
|
216
|
-
graphBuiltAt: stamp.graphBuiltAt,
|
|
217
|
-
irSchemaVersion: stamp.irSchemaVersion,
|
|
218
|
-
commitSpread: stamp.commitSpread,
|
|
219
|
-
repoCount: stamp.repoCount,
|
|
220
|
-
notes: [
|
|
221
|
-
...notes,
|
|
222
|
-
"No blast radius was computed. Run analyze first; if it has already run, its disclosures " +
|
|
223
|
-
"name the languages and paths it could not read.",
|
|
224
|
-
],
|
|
225
|
-
data: { ...identity, files, missing, nodes: {}, affected: [], untested: [], tests: [] },
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
ctx.progress(`Assessing ${nodes.length} changed symbol(s)`, 2, 3);
|
|
229
|
-
// `changeRisk` takes a raw node budget rather than a trigger: the trigger is a
|
|
230
|
-
// scoping concept and the query layer deliberately does not know about it.
|
|
231
|
-
// Translating here keeps the tool's vocabulary the developer's ("this is a
|
|
232
|
-
// PR") and the engine's its own.
|
|
233
|
-
//
|
|
234
|
-
// Seeded from every symbol in a touched file, not only the ones whose range
|
|
235
|
-
// actually intersects an added line (F5, UAT Phase 5) — deliberately: a
|
|
236
|
-
// line-precise seed set would silently lose a deleted file's symbols (no
|
|
237
|
-
// added lines to intersect) and any file whose patch was withheld by the
|
|
238
|
-
// diff's own size budget. `changedSymbols` below reports the precise count;
|
|
239
|
-
// this traversal stays seeded from the broader, disclosed one.
|
|
240
|
-
const risk = changeRisk(session.provider(), nodes.map((n) => n.id), { budget: NODE_BUDGETS[trigger] });
|
|
241
|
-
const changedSymbols = nodes.filter((n) => touchesAddedLine(n, addedByFile)).length;
|
|
242
|
-
notes.push("\"Untested\" means no test is linked to the node in this graph. Adapters omit an edge they " +
|
|
243
|
-
"cannot prove, so a genuinely covered symbol can appear here — treat it as a gap to check, " +
|
|
244
|
-
"not as a proven hole.", `"changedSymbols" counts only nodes whose declared range intersects a line the diff actually ` +
|
|
245
|
-
`added; "symbolsInChangedFiles" (${nodes.length}) counts every node living in a touched ` +
|
|
246
|
-
"file, whichever lines moved — the blast radius below is seeded from that broader set, not " +
|
|
247
|
-
"only from changedSymbols, so a deleted file's callers and a size-capped file's symbols are " +
|
|
248
|
-
"not silently dropped from the analysis.");
|
|
249
|
-
const untested = risk.data.untested;
|
|
250
|
-
const affected = risk.data.affected.filter((entry) => entry.node.type !== "TEST_CASE");
|
|
251
|
-
// One node map, three id lists — see `indexPrAnalysisNodes`. Each list is
|
|
252
|
-
// capped by `limit` *before* indexing, so the map holds only what the reply
|
|
253
|
-
// actually names.
|
|
254
|
-
const lists = indexPrAnalysisNodes(affected.slice(0, limit), untested.slice(0, limit), risk.data.tests.slice(0, limit));
|
|
255
|
-
ctx.progress("Done", 3, 3);
|
|
256
|
-
return {
|
|
257
|
-
result: {
|
|
258
|
-
...risk,
|
|
259
|
-
data: {
|
|
260
|
-
...identity,
|
|
261
|
-
files,
|
|
262
|
-
missing,
|
|
263
|
-
changedSymbols,
|
|
264
|
-
symbolsInChangedFiles: nodes.length,
|
|
265
|
-
affectedTotal: affected.length,
|
|
266
|
-
untestedTotal: untested.length,
|
|
267
|
-
testsTotal: risk.data.tests.length,
|
|
268
|
-
...lists,
|
|
269
|
-
},
|
|
270
|
-
notes: [...risk.notes, ...notes],
|
|
271
|
-
},
|
|
272
|
-
...(affected.length === 0 ? { state: "empty" } : {}),
|
|
273
|
-
nameLevel: true,
|
|
274
|
-
headline: `Across ${subject}: ${changedSymbols} changed symbol(s)` +
|
|
275
|
-
(nodes.length > changedSymbols
|
|
276
|
-
? ` (${nodes.length - changedSymbols} more live in the ${files.length} touched file(s) without being touched themselves)`
|
|
277
|
-
: "") +
|
|
278
|
-
` affect ${affected.length} other node(s). ${risk.data.tests.length} test(s) cover part of ` +
|
|
279
|
-
`that; ${untested.length} affected node(s) have no covering test in the graph.`,
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
export const prAnalysisTool = {
|
|
283
|
-
name: "pr_analysis",
|
|
284
|
-
class: "read",
|
|
285
|
-
tier: "evidence",
|
|
286
|
-
// 2.0.0, not 1.0.1: the three node lists became id lists into a single
|
|
287
|
-
// `nodes` map. Nothing was added or removed from the answer, but a caller
|
|
288
|
-
// that read `affected[0].name` reads `nodes[affected[0].id].name` now, and
|
|
289
|
-
// a version that did not say so would be a silent break.
|
|
290
|
-
version: "2.0.0",
|
|
291
|
-
title: "What this change affects, and what is not covered",
|
|
292
|
-
description: "Diff a branch against its merge base, compute the blast radius of the change, and split it " +
|
|
293
|
-
"into what existing tests cover and what they do not. The uncovered list is the point: a " +
|
|
294
|
-
"passing suite says nothing about it. Files outside what the adapters read are named rather " +
|
|
295
|
-
"than counted as safe.",
|
|
296
|
-
inputSchema: SCHEMA,
|
|
297
|
-
run,
|
|
298
|
-
};
|
|
299
|
-
//# sourceMappingURL=pr-analysis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pr-analysis.js","sourceRoot":"","sources":["../../src/tools/pr-analysis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EACL,eAAe,EACf,UAAU,EACV,OAAO,EACP,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,cAAc,GAGf,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,MAAM,EACN,SAAS,EACT,YAAY,EACZ,eAAe,EACf,cAAc,EACd,cAAc,EACd,cAAc,GAIf,MAAM,UAAU,CAAC;AAsDlB;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,QAAqG,EACrG,QAAkC,EAClC,KAA+B;IAE/B,MAAM,KAAK,GAA8B,EAAE,CAAC;IAC5C,MAAM,QAAQ,GAAG,CAAC,IAAmB,EAAU,EAAE;QAC/C,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO;QACL,QAAQ,EAAE,cAAc,CACtB,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACvB,EAAE,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;YACxB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAC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AAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;gBAClC,GAAG,KAAK;aACT;YACD,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,KAAK,CAAC;SACjC;QACD,GAAG,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7D,SAAS,EAAE,IAAI;QACf,QAAQ,EACN,UAAU,OAAO,KAAK,cAAc,oBAAoB;YACxD,CAAC,KAAK,CAAC,MAAM,GAAG,cAAc;gBAC5B,CAAC,CAAC,KAAK,KAAK,CAAC,MAAM,GAAG,cAAc,qBAAqB,KAAK,CAAC,MAAM,oDAAoD;gBACzH,CAAC,CAAC,EAAE,CAAC;YACP,WAAW,QAAQ,CAAC,MAAM,mBAAmB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,yBAAyB;YAC5F,SAAS,QAAQ,CAAC,MAAM,uDAAuD;KAClF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,UAAU;IAChB,uEAAuE;IACvE,0EAA0E;IAC1E,2EAA2E;IAC3E,yDAAyD;IACzD,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,mDAAmD;IAC1D,WAAW,EACT,6FAA6F;QAC7F,0FAA0F;QAC1F,6FAA6F;QAC7F,uBAAuB;IACzB,WAAW,EAAE,MAA4C;IACzD,GAAG;CACJ,CAAC"}
|
package/dist/tools/pre-push.d.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `pre_push` — one call where a developer about to push would otherwise make four.
|
|
3
|
-
*
|
|
4
|
-
* The UAT's own verdict was that in agentic use the gap is composition, not
|
|
5
|
-
* correctness: `scope`, `pr_analysis`, `contracts` and `validate` each answer
|
|
6
|
-
* well, and nothing puts them together at the moment someone actually wants
|
|
7
|
-
* them together. This is that composition, under the tightest budget the
|
|
8
|
-
* scoping tiers define.
|
|
9
|
-
*
|
|
10
|
-
* ## What "under the pre-push tier" actually means, per constituent
|
|
11
|
-
*
|
|
12
|
-
* The plan this comes from said the tier was "honoured by `scope`, `pr_analysis`
|
|
13
|
-
* and `contracts`". Two of those are true and the third is not, and the
|
|
14
|
-
* difference decides what this tool can pass down:
|
|
15
|
-
*
|
|
16
|
-
* - `scope` and `pr_analysis` take a `trigger`, and apply
|
|
17
|
-
* `NODE_BUDGETS["pre-push"]` (200 nodes) to their traversal. Passed straight
|
|
18
|
-
* through.
|
|
19
|
-
* - `contracts` has **no `trigger` and no node budget**, because it does not
|
|
20
|
-
* traverse — it compares every endpoint in the graph. Its expensive half is
|
|
21
|
-
* the shape comparison, and its own schema already names the answer:
|
|
22
|
-
* `pathsOnly` is "the honest choice for a pre-push run". So that is what the
|
|
23
|
-
* tier means here, and this tool sets it.
|
|
24
|
-
* - `validate` has no traversal budget either; it is bounded by `maxFindings`,
|
|
25
|
-
* which this tool tightens rather than leaving at its default 25.
|
|
26
|
-
*
|
|
27
|
-
* ## Why findings are grouped by source and not merged into one ranking
|
|
28
|
-
*
|
|
29
|
-
* A single global ranking would need to say that a contract mismatch outranks
|
|
30
|
-
* an unset environment variable, or the reverse. Descry has no model that
|
|
31
|
-
* supports either claim, and inventing one would be a judgement presented as a
|
|
32
|
-
* measurement — the same reason `contracts` ranks by evidence strength rather
|
|
33
|
-
* than severity. So each source contributes its own top few, and the envelope
|
|
34
|
-
* says plainly that the sources are not ranked against each other.
|
|
35
|
-
*
|
|
36
|
-
* That is still one call, one envelope, and a short read. It just does not
|
|
37
|
-
* pretend to a comparison nobody has made.
|
|
38
|
-
*
|
|
39
|
-
* ## Blocking versus informational
|
|
40
|
-
*
|
|
41
|
-
* `blockingTotal` counts `contracts` and `validate` findings only, and — since
|
|
42
|
-
* UAT round 3, Suggestion 6 — only the ones each tool's own `claim` field
|
|
43
|
-
* marks a `defect`. `scope` and `pr_analysis` answer "what does this change
|
|
44
|
-
* touch" — real, useful, and not a defect, so counting them would make every
|
|
45
|
-
* change with a blast radius look like a failure. A `lead` (`ROUTE_NOT_CALLED`,
|
|
46
|
-
* `SET_BUT_UNDOCUMENTED`) is worth a look but is not provable from the graph
|
|
47
|
-
* alone, so it is counted separately in `leadTotal` rather than folded into
|
|
48
|
-
* the number a git hook branches on. `descry check` exits non-zero on
|
|
49
|
-
* `blockingTotal`, which is why the line has to be drawn here rather than
|
|
50
|
-
* left to the caller.
|
|
51
|
-
*
|
|
52
|
-
* ## Scoped to what you are pushing
|
|
53
|
-
*
|
|
54
|
-
* UAT round 3, B11. `contracts` did not receive the `files` this tool was
|
|
55
|
-
* called with, so `blockingTotal` counted the repository's entire standing
|
|
56
|
-
* backlog rather than the change being pushed — 15 pre-existing
|
|
57
|
-
* `ROUTE_NOT_CALLED` findings for unrelated paths, on a push touching three
|
|
58
|
-
* unrelated files. `contracts` now takes the same `files` this tool was
|
|
59
|
-
* given (it already accepted `paths`, a different axis — a URL template
|
|
60
|
-
* substring, not a source file), so both blocking sources answer about the
|
|
61
|
-
* files in front of the developer. `validate` already took `files`; only the
|
|
62
|
-
* threading into `contracts` was missing.
|
|
63
|
-
*
|
|
64
|
-
* ## Class and tier
|
|
65
|
-
*
|
|
66
|
-
* `read` — it runs four read tools and writes nothing. `evidence` — it reports
|
|
67
|
-
* what those four found and draws no conclusion of its own.
|
|
68
|
-
*/
|
|
69
|
-
import { type ToolDefinition } from "./kit.ts";
|
|
70
|
-
export type PrePushSource = "scope" | "pr_analysis" | "contracts" | "validate";
|
|
71
|
-
export interface PrePushSection {
|
|
72
|
-
readonly source: PrePushSource;
|
|
73
|
-
/** `ok`, `empty`, `refused`, `failed` — this constituent's own state, never flattened away. */
|
|
74
|
-
readonly state: string;
|
|
75
|
-
/** How many items this source found in total, before this tool took its top few. */
|
|
76
|
-
readonly total: number;
|
|
77
|
-
/** The top few, in the order that source reported them. */
|
|
78
|
-
readonly shown: readonly unknown[];
|
|
79
|
-
/**
|
|
80
|
-
* True when this source is **the kind that claims something is wrong** —
|
|
81
|
-
* a property of the source, not of what it found this time.
|
|
82
|
-
*
|
|
83
|
-
* **It was called `blocking`, sitting beside a `blockingTotal` that means the
|
|
84
|
-
* other thing.** `contracts` can be `blocking: true` with `total: 0`, and
|
|
85
|
-
* `validate` `blocking: true` with ten leads and a `blockingTotal` of zero,
|
|
86
|
-
* so the obvious consumer arithmetic — sum `total` over the blocking
|
|
87
|
-
* sections — is wrong in both directions. This tool's own test suite made
|
|
88
|
-
* exactly that mistake and passed, because the fixture happened to produce no
|
|
89
|
-
* leads.
|
|
90
|
-
*
|
|
91
|
-
* The name now says which question it answers. The other question — *did this
|
|
92
|
-
* section find anything that blocks?* — is `defects > 0`, and there is no
|
|
93
|
-
* longer a field whose name suggests it answers both.
|
|
94
|
-
*/
|
|
95
|
-
readonly claimsFaults: boolean;
|
|
96
|
-
/** Of `total`, how many assert a fault. Zero for a source that claims none. */
|
|
97
|
-
readonly defects: number;
|
|
98
|
-
/** Of `total`, how many are worth a look without asserting one. */
|
|
99
|
-
readonly leads: number;
|
|
100
|
-
/** This source's own headline, kept verbatim. */
|
|
101
|
-
readonly headline: string;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Which change set the coverage section actually described.
|
|
105
|
-
*
|
|
106
|
-
* `pr_analysis` derives its own file list from `base...head` and takes none,
|
|
107
|
-
* deliberately. Three constituents therefore describe the files passed and one
|
|
108
|
-
* describes the branch's committed diff, and in a real run those were 2 files
|
|
109
|
-
* and 25. Both answers were right; presented side by side under one headline
|
|
110
|
-
* they read as one answer about one change.
|
|
111
|
-
*
|
|
112
|
-
* The disclosure explaining that has always been in the reply. It sat below a
|
|
113
|
-
* headline and a section total that both read as though they described the
|
|
114
|
-
* files passed, which is the wrong order for the most common working moment:
|
|
115
|
-
* before a commit, when the git-derived half can see none of the work.
|
|
116
|
-
*/
|
|
117
|
-
export interface PrePushCoverage {
|
|
118
|
-
/**
|
|
119
|
-
* What `pr_analysis` answered about: a ref-to-ref diff (`base...head`) when
|
|
120
|
-
* `base` was given, or the working tree (with its scope) when `workingTree`
|
|
121
|
-
* was given instead. Whichever it is, it is not necessarily the file list
|
|
122
|
-
* this tool itself was called with — see `filesOutsideDiff`.
|
|
123
|
-
*/
|
|
124
|
-
readonly describes: string;
|
|
125
|
-
/** Files passed that the base diff does not contain — whatever the reason. */
|
|
126
|
-
readonly filesOutsideDiff: readonly string[];
|
|
127
|
-
/**
|
|
128
|
-
* Of those, the ones git reports as modified, staged or untracked.
|
|
129
|
-
*
|
|
130
|
-
* Separated because "not in the diff" has two causes and only one is about
|
|
131
|
-
* timing: uncommitted work the developer can commit, versus a file they named
|
|
132
|
-
* that this branch never touched.
|
|
133
|
-
*/
|
|
134
|
-
readonly uncommitted: readonly string[];
|
|
135
|
-
}
|
|
136
|
-
export interface PrePushData {
|
|
137
|
-
readonly files: readonly string[];
|
|
138
|
-
readonly sections: readonly PrePushSection[];
|
|
139
|
-
/**
|
|
140
|
-
* Contract and environment findings that **assert a fault**.
|
|
141
|
-
*
|
|
142
|
-
* The doctrine that keeps `scope` and `pr_analysis` out of this number is the
|
|
143
|
-
* same one that keeps a lead out of it: a change with a large blast radius is
|
|
144
|
-
* not a broken change, and neither is a route no code in this graph calls.
|
|
145
|
-
* Both constituents already knew which of their findings claimed a fault —
|
|
146
|
-
* `validate` in a field, `contracts` in the prose of the finding itself — and
|
|
147
|
-
* this composite flattened them into one count a git hook exits on.
|
|
148
|
-
*
|
|
149
|
-
* "15 blocking findings" and "1 defect, 15 leads" are different sentences and
|
|
150
|
-
* only one is worth acting on. A check that cries wolf is worse than no
|
|
151
|
-
* check, because it also discredits the real findings underneath it.
|
|
152
|
-
*/
|
|
153
|
-
readonly blockingTotal: number;
|
|
154
|
-
/** Findings worth a look that assert nothing. Reported, never exited on. */
|
|
155
|
-
readonly leadTotal: number;
|
|
156
|
-
/** The node budget actually applied to the traversing constituents. */
|
|
157
|
-
readonly nodeBudget: number;
|
|
158
|
-
/**
|
|
159
|
-
* What the coverage section was about, when one ran.
|
|
160
|
-
*
|
|
161
|
-
* `null` when neither `base` nor `workingTree` was given: `pr_analysis` is
|
|
162
|
-
* skipped entirely then, and a caveat about a section that did not run is a
|
|
163
|
-
* caveat about nothing.
|
|
164
|
-
*/
|
|
165
|
-
readonly coverage: PrePushCoverage | null;
|
|
166
|
-
}
|
|
167
|
-
export declare const prePushTool: ToolDefinition;
|
|
168
|
-
//# sourceMappingURL=pre-push.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pre-push.d.ts","sourceRoot":"","sources":["../../src/tools/pre-push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AAKH,OAAO,EASL,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAyDlB,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,+FAA+F;IAC/F,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oFAAoF;IACpF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;IACnC;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3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