@descryy/mcp 0.1.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/descry-mcp.js +30 -2
- package/dist/bin/descry-mcp.js.map +1 -1
- package/dist/browser/driver.d.ts +236 -0
- package/dist/browser/driver.d.ts.map +1 -0
- package/dist/browser/driver.js +70 -0
- package/dist/browser/driver.js.map +1 -0
- package/dist/browser/evidence.d.ts +47 -0
- package/dist/browser/evidence.d.ts.map +1 -0
- package/dist/browser/evidence.js +55 -0
- package/dist/browser/evidence.js.map +1 -0
- package/dist/browser/fake-driver.d.ts +58 -0
- package/dist/browser/fake-driver.d.ts.map +1 -0
- package/dist/browser/fake-driver.js +161 -0
- package/dist/browser/fake-driver.js.map +1 -0
- package/dist/browser/graph-write.d.ts +86 -0
- package/dist/browser/graph-write.d.ts.map +1 -0
- package/dist/browser/graph-write.js +135 -0
- package/dist/browser/graph-write.js.map +1 -0
- package/dist/browser/playwright-driver.d.ts +65 -0
- package/dist/browser/playwright-driver.d.ts.map +1 -0
- package/dist/browser/playwright-driver.js +359 -0
- package/dist/browser/playwright-driver.js.map +1 -0
- package/dist/browser/provider.d.ts +49 -0
- package/dist/browser/provider.d.ts.map +1 -0
- package/dist/browser/provider.js +28 -0
- package/dist/browser/provider.js.map +1 -0
- package/dist/browser/registry.d.ts +182 -0
- package/dist/browser/registry.d.ts.map +1 -0
- package/dist/browser/registry.js +215 -0
- package/dist/browser/registry.js.map +1 -0
- package/dist/browser/scenario-resolve.d.ts +62 -0
- package/dist/browser/scenario-resolve.d.ts.map +1 -0
- package/dist/browser/scenario-resolve.js +127 -0
- package/dist/browser/scenario-resolve.js.map +1 -0
- package/dist/browser/scenario-runner.d.ts +113 -0
- package/dist/browser/scenario-runner.d.ts.map +1 -0
- package/dist/browser/scenario-runner.js +315 -0
- package/dist/browser/scenario-runner.js.map +1 -0
- package/dist/browser/stack-parser.d.ts +43 -0
- package/dist/browser/stack-parser.d.ts.map +1 -0
- package/dist/browser/stack-parser.js +112 -0
- package/dist/browser/stack-parser.js.map +1 -0
- package/dist/browser/tool-support.d.ts +113 -0
- package/dist/browser/tool-support.d.ts.map +1 -0
- package/dist/browser/tool-support.js +181 -0
- package/dist/browser/tool-support.js.map +1 -0
- package/dist/disclosure-ledger.d.ts +38 -0
- package/dist/disclosure-ledger.d.ts.map +1 -0
- package/dist/disclosure-ledger.js +40 -0
- package/dist/disclosure-ledger.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/protocol.d.ts +12 -3
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +12 -3
- package/dist/protocol.js.map +1 -1
- package/dist/render.d.ts +121 -10
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +96 -15
- package/dist/render.js.map +1 -1
- package/dist/runtime-registry.d.ts +63 -0
- package/dist/runtime-registry.d.ts.map +1 -0
- package/dist/runtime-registry.js +131 -0
- package/dist/runtime-registry.js.map +1 -0
- package/dist/scenarios/index.d.ts +4 -0
- package/dist/scenarios/index.d.ts.map +1 -0
- package/dist/scenarios/index.js +4 -0
- package/dist/scenarios/index.js.map +1 -0
- package/dist/scenarios/parse.d.ts +32 -0
- package/dist/scenarios/parse.d.ts.map +1 -0
- package/dist/scenarios/parse.js +199 -0
- package/dist/scenarios/parse.js.map +1 -0
- package/dist/scenarios/scenario.d.ts +115 -0
- package/dist/scenarios/scenario.d.ts.map +1 -0
- package/dist/scenarios/scenario.js +41 -0
- package/dist/scenarios/scenario.js.map +1 -0
- package/dist/scenarios/storage.d.ts +51 -0
- package/dist/scenarios/storage.d.ts.map +1 -0
- package/dist/scenarios/storage.js +93 -0
- package/dist/scenarios/storage.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +11 -3
- package/dist/server.js.map +1 -1
- package/dist/session.d.ts +142 -2
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +266 -4
- package/dist/session.js.map +1 -1
- package/dist/tools/analyze.d.ts +41 -1
- package/dist/tools/analyze.d.ts.map +1 -1
- package/dist/tools/analyze.js +111 -9
- package/dist/tools/analyze.js.map +1 -1
- package/dist/tools/browser-click.d.ts +36 -0
- package/dist/tools/browser-click.d.ts.map +1 -0
- package/dist/tools/browser-click.js +117 -0
- package/dist/tools/browser-click.js.map +1 -0
- package/dist/tools/browser-close-session.d.ts +24 -0
- package/dist/tools/browser-close-session.d.ts.map +1 -0
- package/dist/tools/browser-close-session.js +63 -0
- package/dist/tools/browser-close-session.js.map +1 -0
- package/dist/tools/browser-fill.d.ts +49 -0
- package/dist/tools/browser-fill.d.ts.map +1 -0
- package/dist/tools/browser-fill.js +138 -0
- package/dist/tools/browser-fill.js.map +1 -0
- package/dist/tools/browser-navigate.d.ts +32 -0
- package/dist/tools/browser-navigate.d.ts.map +1 -0
- package/dist/tools/browser-navigate.js +103 -0
- package/dist/tools/browser-navigate.js.map +1 -0
- package/dist/tools/browser-run-scenario.d.ts +54 -0
- package/dist/tools/browser-run-scenario.d.ts.map +1 -0
- package/dist/tools/browser-run-scenario.js +228 -0
- package/dist/tools/browser-run-scenario.js.map +1 -0
- package/dist/tools/browser-save-scenario.d.ts +44 -0
- package/dist/tools/browser-save-scenario.d.ts.map +1 -0
- package/dist/tools/browser-save-scenario.js +298 -0
- package/dist/tools/browser-save-scenario.js.map +1 -0
- package/dist/tools/browser-snapshot.d.ts +60 -0
- package/dist/tools/browser-snapshot.d.ts.map +1 -0
- package/dist/tools/browser-snapshot.js +139 -0
- package/dist/tools/browser-snapshot.js.map +1 -0
- package/dist/tools/browser-start-session.d.ts +43 -0
- package/dist/tools/browser-start-session.d.ts.map +1 -0
- package/dist/tools/browser-start-session.js +272 -0
- package/dist/tools/browser-start-session.js.map +1 -0
- package/dist/tools/browser-type.d.ts +48 -0
- package/dist/tools/browser-type.d.ts.map +1 -0
- package/dist/tools/browser-type.js +136 -0
- package/dist/tools/browser-type.js.map +1 -0
- package/dist/tools/contracts.d.ts +15 -0
- package/dist/tools/contracts.d.ts.map +1 -1
- package/dist/tools/contracts.js +14 -3
- package/dist/tools/contracts.js.map +1 -1
- package/dist/tools/cross-pr.d.ts.map +1 -1
- package/dist/tools/cross-pr.js +1 -0
- package/dist/tools/cross-pr.js.map +1 -1
- package/dist/tools/git-diff.d.ts.map +1 -1
- package/dist/tools/git-diff.js +104 -4
- package/dist/tools/git-diff.js.map +1 -1
- package/dist/tools/git-history.d.ts.map +1 -1
- package/dist/tools/git-history.js +1 -0
- package/dist/tools/git-history.js.map +1 -1
- package/dist/tools/history.js +1 -1
- package/dist/tools/history.js.map +1 -1
- package/dist/tools/impact.d.ts +9 -0
- package/dist/tools/impact.d.ts.map +1 -1
- package/dist/tools/impact.js +4 -4
- package/dist/tools/impact.js.map +1 -1
- package/dist/tools/index.d.ts +12 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +31 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/kit.d.ts +11 -1
- package/dist/tools/kit.d.ts.map +1 -1
- package/dist/tools/kit.js +3 -0
- package/dist/tools/kit.js.map +1 -1
- package/dist/tools/link-workspace.d.ts.map +1 -1
- package/dist/tools/link-workspace.js +13 -1
- package/dist/tools/link-workspace.js.map +1 -1
- package/dist/tools/mark-incident.d.ts +69 -0
- package/dist/tools/mark-incident.d.ts.map +1 -0
- package/dist/tools/mark-incident.js +212 -0
- package/dist/tools/mark-incident.js.map +1 -0
- package/dist/tools/observe-runtime.d.ts +292 -0
- package/dist/tools/observe-runtime.d.ts.map +1 -0
- package/dist/tools/observe-runtime.js +1192 -0
- package/dist/tools/observe-runtime.js.map +1 -0
- package/dist/tools/observe-tests.d.ts +125 -0
- package/dist/tools/observe-tests.d.ts.map +1 -0
- package/dist/tools/observe-tests.js +313 -0
- package/dist/tools/observe-tests.js.map +1 -0
- package/dist/tools/pr-analysis.d.ts +71 -13
- package/dist/tools/pr-analysis.d.ts.map +1 -1
- package/dist/tools/pr-analysis.js +55 -12
- package/dist/tools/pr-analysis.js.map +1 -1
- package/dist/tools/pre-push.d.ts +77 -0
- package/dist/tools/pre-push.d.ts.map +1 -0
- package/dist/tools/pre-push.js +250 -0
- package/dist/tools/pre-push.js.map +1 -0
- package/dist/tools/propagation.d.ts.map +1 -1
- package/dist/tools/propagation.js +1 -0
- package/dist/tools/propagation.js.map +1 -1
- package/dist/tools/questions.d.ts.map +1 -1
- package/dist/tools/questions.js +101 -14
- package/dist/tools/questions.js.map +1 -1
- package/dist/tools/refusal-fetch.d.ts.map +1 -1
- package/dist/tools/refusal-fetch.js +1 -0
- package/dist/tools/refusal-fetch.js.map +1 -1
- package/dist/tools/runtime-incident.d.ts +92 -0
- package/dist/tools/runtime-incident.d.ts.map +1 -0
- package/dist/tools/runtime-incident.js +144 -0
- package/dist/tools/runtime-incident.js.map +1 -0
- package/dist/tools/scope.d.ts.map +1 -1
- package/dist/tools/scope.js +1 -0
- package/dist/tools/scope.js.map +1 -1
- package/dist/tools/similar-incidents.d.ts +13 -0
- package/dist/tools/similar-incidents.d.ts.map +1 -1
- package/dist/tools/similar-incidents.js +22 -8
- package/dist/tools/similar-incidents.js.map +1 -1
- package/dist/tools/verification-status.d.ts +22 -0
- package/dist/tools/verification-status.d.ts.map +1 -1
- package/dist/tools/verification-status.js +52 -5
- package/dist/tools/verification-status.js.map +1 -1
- package/dist/tools/verify-claim.d.ts.map +1 -1
- package/dist/tools/verify-claim.js +5 -0
- package/dist/tools/verify-claim.js.map +1 -1
- package/package.json +16 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-analysis.d.ts","sourceRoot":"","sources":["../../src/tools/pr-analysis.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr-analysis.d.ts","sourceRoot":"","sources":["../../src/tools/pr-analysis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG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untested list without it would turn a measured recall
|
|
23
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.
|
|
24
32
|
*/
|
|
25
|
-
import { changedFiles, changeRisk, NODE_BUDGETS, nodesInFiles } from "@descryy/core";
|
|
33
|
+
import { changedFiles, changeRisk, NODE_BUDGETS, nodesInFiles, withProminence } from "@descryy/core";
|
|
26
34
|
import { answer, briefNode, optionalEnum, optionalInteger, optionalString, requiredString, } 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
|
+
}
|
|
27
60
|
const TRIGGERS = ["pre-push", "pr", "nightly"];
|
|
28
61
|
const SCHEMA = {
|
|
29
62
|
type: "object",
|
|
@@ -67,6 +100,7 @@ async function run(args, ctx) {
|
|
|
67
100
|
commitSha: stamp.commitSha,
|
|
68
101
|
graphBuiltAt: stamp.graphBuiltAt,
|
|
69
102
|
irSchemaVersion: stamp.irSchemaVersion,
|
|
103
|
+
commitSpread: stamp.commitSpread,
|
|
70
104
|
notes: [
|
|
71
105
|
`git rejected the range: ${error.message.trim()}. Check that "${base}" exists ` +
|
|
72
106
|
"locally — a shallow clone or a missing fetch is the usual cause.",
|
|
@@ -79,12 +113,18 @@ async function run(args, ctx) {
|
|
|
79
113
|
return answer({
|
|
80
114
|
headline: `${base}...${head} changes no files.`,
|
|
81
115
|
nameLevel: true,
|
|
82
|
-
|
|
116
|
+
// 0, not 4. Every other branch of this tool already stamps 0 for the same
|
|
117
|
+
// reason `get_git_diff` does — a live git read is not a graph-traversal
|
|
118
|
+
// claim — and this branch reads *less* than they do, not more. Stamping
|
|
119
|
+
// the strongest tier on the answer that rests on no graph evidence at all
|
|
120
|
+
// was the same leaked default `createResolutionFloor` exists to remove.
|
|
121
|
+
resolutionFloor: 0,
|
|
83
122
|
commitSha: stamp.commitSha,
|
|
84
123
|
graphBuiltAt: stamp.graphBuiltAt,
|
|
85
124
|
irSchemaVersion: stamp.irSchemaVersion,
|
|
125
|
+
commitSpread: stamp.commitSpread,
|
|
86
126
|
notes: ["An empty diff is a real answer: there is nothing to assess."],
|
|
87
|
-
data: { base, head, files: [], affected: [], untested: [], tests: [] },
|
|
127
|
+
data: { base, head, files: [], nodes: {}, affected: [], untested: [], tests: [] },
|
|
88
128
|
});
|
|
89
129
|
}
|
|
90
130
|
ctx.progress(`Resolving ${files.length} changed file(s)`, 1, 3);
|
|
@@ -104,12 +144,13 @@ async function run(args, ctx) {
|
|
|
104
144
|
commitSha: stamp.commitSha,
|
|
105
145
|
graphBuiltAt: stamp.graphBuiltAt,
|
|
106
146
|
irSchemaVersion: stamp.irSchemaVersion,
|
|
147
|
+
commitSpread: stamp.commitSpread,
|
|
107
148
|
notes: [
|
|
108
149
|
...notes,
|
|
109
150
|
"No blast radius was computed. Run analyze first; if it has already run, its disclosures " +
|
|
110
151
|
"name the languages and paths it could not read.",
|
|
111
152
|
],
|
|
112
|
-
data: { base, head, files, missing, affected: [], untested: [], tests: [] },
|
|
153
|
+
data: { base, head, files, missing, nodes: {}, affected: [], untested: [], tests: [] },
|
|
113
154
|
});
|
|
114
155
|
}
|
|
115
156
|
ctx.progress(`Assessing ${nodes.length} changed symbol(s)`, 2, 3);
|
|
@@ -123,6 +164,10 @@ async function run(args, ctx) {
|
|
|
123
164
|
"not as a proven hole.");
|
|
124
165
|
const untested = risk.data.untested;
|
|
125
166
|
const affected = risk.data.affected.filter((entry) => entry.node.type !== "TEST_CASE");
|
|
167
|
+
// One node map, three id lists — see `indexPrAnalysisNodes`. Each list is
|
|
168
|
+
// capped by `limit` *before* indexing, so the map holds only what the reply
|
|
169
|
+
// actually names.
|
|
170
|
+
const lists = indexPrAnalysisNodes(affected.slice(0, limit), untested.slice(0, limit), risk.data.tests.slice(0, limit));
|
|
126
171
|
ctx.progress("Done", 3, 3);
|
|
127
172
|
return {
|
|
128
173
|
result: {
|
|
@@ -134,15 +179,9 @@ async function run(args, ctx) {
|
|
|
134
179
|
missing,
|
|
135
180
|
changedSymbols: nodes.length,
|
|
136
181
|
affectedTotal: affected.length,
|
|
137
|
-
affected: affected.slice(0, limit).map((entry) => ({
|
|
138
|
-
...briefNode(entry.node),
|
|
139
|
-
score: Number(entry.score.toFixed(4)),
|
|
140
|
-
depth: entry.depth,
|
|
141
|
-
})),
|
|
142
182
|
untestedTotal: untested.length,
|
|
143
|
-
untested: untested.slice(0, limit).map(briefNode),
|
|
144
|
-
tests: risk.data.tests.slice(0, limit).map(briefNode),
|
|
145
183
|
testsTotal: risk.data.tests.length,
|
|
184
|
+
...lists,
|
|
146
185
|
},
|
|
147
186
|
notes: [...risk.notes, ...notes],
|
|
148
187
|
},
|
|
@@ -157,7 +196,11 @@ export const prAnalysisTool = {
|
|
|
157
196
|
name: "pr_analysis",
|
|
158
197
|
class: "read",
|
|
159
198
|
tier: "evidence",
|
|
160
|
-
|
|
199
|
+
// 2.0.0, not 1.0.1: the three node lists became id lists into a single
|
|
200
|
+
// `nodes` map. Nothing was added or removed from the answer, but a caller
|
|
201
|
+
// that read `affected[0].name` reads `nodes[affected[0].id].name` now, and
|
|
202
|
+
// a version that did not say so would be a silent break.
|
|
203
|
+
version: "2.0.0",
|
|
161
204
|
title: "What this change affects, and what is not covered",
|
|
162
205
|
description: "Diff a branch against its merge base, compute the blast radius of the change, and split it " +
|
|
163
206
|
"into what existing tests cover and what they do not. The uncovered list is the point: a " +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-analysis.js","sourceRoot":"","sources":["../../src/tools/pr-analysis.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr-analysis.js","sourceRoot":"","sources":["../../src/tools/pr-analysis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAErG,OAAO,EACL,MAAM,EACN,SAAS,EACT,YAAY,EACZ,eAAe,EACf,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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ChB,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"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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. Those are
|
|
42
|
+
* claims that something is *wrong*. `scope` and `pr_analysis` answer "what does
|
|
43
|
+
* this change touch" — real, useful, and not a defect, so counting them would
|
|
44
|
+
* make every change with a blast radius look like a failure. `descry check`
|
|
45
|
+
* exits non-zero on `blockingTotal`, which is why the line has to be drawn
|
|
46
|
+
* here rather than left to the caller.
|
|
47
|
+
*
|
|
48
|
+
* ## Class and tier
|
|
49
|
+
*
|
|
50
|
+
* `read` — it runs four read tools and writes nothing. `evidence` — it reports
|
|
51
|
+
* what those four found and draws no conclusion of its own.
|
|
52
|
+
*/
|
|
53
|
+
import { type ToolDefinition } from "./kit.ts";
|
|
54
|
+
export type PrePushSource = "scope" | "pr_analysis" | "contracts" | "validate";
|
|
55
|
+
export interface PrePushSection {
|
|
56
|
+
readonly source: PrePushSource;
|
|
57
|
+
/** `ok`, `empty`, `refused`, `failed` — this constituent's own state, never flattened away. */
|
|
58
|
+
readonly state: string;
|
|
59
|
+
/** How many items this source found in total, before this tool took its top few. */
|
|
60
|
+
readonly total: number;
|
|
61
|
+
/** The top few, in the order that source reported them. */
|
|
62
|
+
readonly shown: readonly unknown[];
|
|
63
|
+
/** True when this source's findings count toward `blockingTotal`. */
|
|
64
|
+
readonly blocking: boolean;
|
|
65
|
+
/** This source's own headline, kept verbatim. */
|
|
66
|
+
readonly headline: string;
|
|
67
|
+
}
|
|
68
|
+
export interface PrePushData {
|
|
69
|
+
readonly files: readonly string[];
|
|
70
|
+
readonly sections: readonly PrePushSection[];
|
|
71
|
+
/** Contract and environment findings only — see the module header on why scope is not counted. */
|
|
72
|
+
readonly blockingTotal: number;
|
|
73
|
+
/** The node budget actually applied to the traversing constituents. */
|
|
74
|
+
readonly nodeBudget: number;
|
|
75
|
+
}
|
|
76
|
+
export declare const prePushTool: ToolDefinition;
|
|
77
|
+
//# sourceMappingURL=pre-push.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pre-push.d.ts","sourceRoot":"","sources":["../../src/tools/pre-push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAKH,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAuClB,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,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAC;IAC7C,kGAAkG;IAClG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAgND,eAAO,MAAM,WAAW,EAAE,cAezB,CAAC"}
|
|
@@ -0,0 +1,250 @@
|
|
|
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. Those are
|
|
42
|
+
* claims that something is *wrong*. `scope` and `pr_analysis` answer "what does
|
|
43
|
+
* this change touch" — real, useful, and not a defect, so counting them would
|
|
44
|
+
* make every change with a blast radius look like a failure. `descry check`
|
|
45
|
+
* exits non-zero on `blockingTotal`, which is why the line has to be drawn
|
|
46
|
+
* here rather than left to the caller.
|
|
47
|
+
*
|
|
48
|
+
* ## Class and tier
|
|
49
|
+
*
|
|
50
|
+
* `read` — it runs four read tools and writes nothing. `evidence` — it reports
|
|
51
|
+
* what those four found and draws no conclusion of its own.
|
|
52
|
+
*/
|
|
53
|
+
import { NODE_BUDGETS } from "@descryy/core";
|
|
54
|
+
import { contractsTool } from "./contracts.js";
|
|
55
|
+
import { answer, optionalInteger, optionalString, optionalStringArray, } from "./kit.js";
|
|
56
|
+
import { prAnalysisTool } from "./pr-analysis.js";
|
|
57
|
+
import { scopeTool } from "./scope.js";
|
|
58
|
+
import { validateTool } from "./validate.js";
|
|
59
|
+
/** How many items each source contributes to the envelope. Matches `PROMINENCE_CUTOFFS.top`. */
|
|
60
|
+
const PER_SOURCE = 3;
|
|
61
|
+
/** `validate`'s own default is 25; a blocked developer reads far fewer. */
|
|
62
|
+
const VALIDATE_MAX_FINDINGS = 10;
|
|
63
|
+
const SCHEMA = {
|
|
64
|
+
type: "object",
|
|
65
|
+
properties: {
|
|
66
|
+
files: {
|
|
67
|
+
type: "array",
|
|
68
|
+
items: { type: "string" },
|
|
69
|
+
description: "Repository-relative paths you are about to push. These seed the blast radius and scope " +
|
|
70
|
+
"the environment check. Required — without them there is nothing to be pre-push about.",
|
|
71
|
+
},
|
|
72
|
+
base: {
|
|
73
|
+
type: "string",
|
|
74
|
+
description: "Git ref to compare against, three-dot. Required by pr_analysis, which has no defensible " +
|
|
75
|
+
"default base and says so; without it that one section is reported as refused and the other " +
|
|
76
|
+
"three still run.",
|
|
77
|
+
},
|
|
78
|
+
perSource: {
|
|
79
|
+
type: "integer",
|
|
80
|
+
minimum: 1,
|
|
81
|
+
description: `How many items each source contributes. Default ${PER_SOURCE}.`,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
required: ["files"],
|
|
85
|
+
additionalProperties: false,
|
|
86
|
+
};
|
|
87
|
+
function unwrap(reply) {
|
|
88
|
+
return {
|
|
89
|
+
state: reply.state ?? "ok",
|
|
90
|
+
headline: reply.headline,
|
|
91
|
+
notes: reply.result.notes,
|
|
92
|
+
data: (reply.result.data ?? {}),
|
|
93
|
+
resolutionFloor: reply.result.stamp.resolutionFloor,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function listOf(data, key) {
|
|
97
|
+
const value = data[key];
|
|
98
|
+
return Array.isArray(value) ? value : [];
|
|
99
|
+
}
|
|
100
|
+
async function run(args, ctx) {
|
|
101
|
+
const files = optionalStringArray(args, "files") ?? [];
|
|
102
|
+
const perSource = optionalInteger(args, "perSource", 1) ?? PER_SOURCE;
|
|
103
|
+
const baseRef = optionalString(args, "base");
|
|
104
|
+
const base = ctx.session.provider().baseStamp();
|
|
105
|
+
const nodeBudget = NODE_BUDGETS["pre-push"];
|
|
106
|
+
const notes = [
|
|
107
|
+
"Four tools in one call: scope, pr_analysis, contracts and validate, under the pre-push node " +
|
|
108
|
+
`budget (${nodeBudget}). Each still answers on its own; this composes them for the moment ` +
|
|
109
|
+
"someone is about to push.",
|
|
110
|
+
"Sources are NOT ranked against each other. Whether a contract mismatch outranks an unset " +
|
|
111
|
+
"environment variable is a judgement Descry has no model for, so each source contributes its " +
|
|
112
|
+
"own top few and the totals say what they were selected from.",
|
|
113
|
+
"blockingTotal counts contracts and validate findings only. scope and pr_analysis answer what a " +
|
|
114
|
+
"change touches, which is not a defect — counting them would make every change with a blast " +
|
|
115
|
+
"radius look like a failure.",
|
|
116
|
+
];
|
|
117
|
+
if (files.length === 0) {
|
|
118
|
+
return answer({
|
|
119
|
+
headline: "No files were named, so there is nothing to check before a push.",
|
|
120
|
+
state: "refused",
|
|
121
|
+
nameLevel: true,
|
|
122
|
+
resolutionFloor: 0,
|
|
123
|
+
commitSha: base.commitSha,
|
|
124
|
+
graphBuiltAt: base.graphBuiltAt,
|
|
125
|
+
irSchemaVersion: base.irSchemaVersion,
|
|
126
|
+
commitSpread: base.commitSpread,
|
|
127
|
+
notes,
|
|
128
|
+
data: { files: [], sections: [], blockingTotal: 0, nodeBudget },
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
// Sequential rather than concurrent, deliberately: these share one SQLite
|
|
132
|
+
// connection through the session, and the driver is synchronous. Racing them
|
|
133
|
+
// would buy nothing and interleave progress messages into nonsense.
|
|
134
|
+
const sections = [];
|
|
135
|
+
const collectedNotes = [];
|
|
136
|
+
// The composite's floor is the weakest of whatever actually ran. Reporting
|
|
137
|
+
// the strongest, or a default, would let one well-resolved section vouch for
|
|
138
|
+
// three that were not -- the same leaked-default failure this repository's
|
|
139
|
+
// own UAT caught on a refusal path.
|
|
140
|
+
const floors = [];
|
|
141
|
+
const runOne = async (source, tool, toolArgs, pick, blocking) => {
|
|
142
|
+
ctx.progress(`Running ${source}`);
|
|
143
|
+
let sub;
|
|
144
|
+
try {
|
|
145
|
+
sub = unwrap(await tool.run(toolArgs, ctx));
|
|
146
|
+
}
|
|
147
|
+
catch (error) {
|
|
148
|
+
// One constituent failing must not take the other three with it: a
|
|
149
|
+
// developer mid-push is better served by three answers and a named gap
|
|
150
|
+
// than by nothing at all.
|
|
151
|
+
sections.push({
|
|
152
|
+
source,
|
|
153
|
+
state: "failed",
|
|
154
|
+
total: 0,
|
|
155
|
+
shown: [],
|
|
156
|
+
blocking,
|
|
157
|
+
headline: `${source} failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
158
|
+
});
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
floors.push(sub.resolutionFloor);
|
|
162
|
+
const items = pick(sub.data);
|
|
163
|
+
sections.push({
|
|
164
|
+
source,
|
|
165
|
+
state: sub.state,
|
|
166
|
+
total: items.length,
|
|
167
|
+
shown: items.slice(0, perSource),
|
|
168
|
+
blocking,
|
|
169
|
+
headline: sub.headline,
|
|
170
|
+
});
|
|
171
|
+
for (const note of sub.notes)
|
|
172
|
+
collectedNotes.push(`${source}: ${note}`);
|
|
173
|
+
};
|
|
174
|
+
await runOne("scope", scopeTool, { files, trigger: "pre-push" }, (data) => listOf(data, "affected"), false);
|
|
175
|
+
if (baseRef === undefined) {
|
|
176
|
+
// Reported, not skipped silently, and not as a failure either: pr_analysis
|
|
177
|
+
// requires a base and deliberately refuses to invent one ("there is no
|
|
178
|
+
// defensible default base"). Borrowing this tool's own working-tree default
|
|
179
|
+
// would manufacture exactly the guess that tool declines to make.
|
|
180
|
+
sections.push({
|
|
181
|
+
source: "pr_analysis",
|
|
182
|
+
state: "refused",
|
|
183
|
+
total: 0,
|
|
184
|
+
shown: [],
|
|
185
|
+
blocking: false,
|
|
186
|
+
headline: "pr_analysis needs a base ref to diff against and has no default. Pass \"base\" to include it.",
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
// Stated because it is not obvious and it was not obvious in a real run:
|
|
191
|
+
// called with two files and a three-commit base, the envelope said "across
|
|
192
|
+
// 2 changed file(s)" while this section said "across 25". Both are right --
|
|
193
|
+
// pr_analysis takes no file list, by design, and derives its own from
|
|
194
|
+
// base...head -- but two sections describing different change sets side by
|
|
195
|
+
// side read as one answer about one change unless the reply says otherwise.
|
|
196
|
+
notes.push("pr_analysis scopes itself from the base diff (" +
|
|
197
|
+
`${baseRef}...HEAD), not from the files given here: it takes no file list, deliberately, ` +
|
|
198
|
+
"because the diff is what defines a change to review. So its section may describe a wider " +
|
|
199
|
+
"or narrower set of files than the other three, which use the list you passed.");
|
|
200
|
+
await runOne("pr_analysis", prAnalysisTool, { base: baseRef, trigger: "pre-push" }, (data) => listOf(data, "untested"), false);
|
|
201
|
+
}
|
|
202
|
+
await runOne("contracts", contractsTool,
|
|
203
|
+
// pathsOnly is what the pre-push tier means for a tool with no traversal to
|
|
204
|
+
// budget — see the module header.
|
|
205
|
+
{ pathsOnly: true }, (data) => listOf(data, "findings"), true);
|
|
206
|
+
await runOne("validate", validateTool, { files, maxFindings: VALIDATE_MAX_FINDINGS }, (data) => listOf(data, "findings"), true);
|
|
207
|
+
const blockingTotal = sections
|
|
208
|
+
.filter((section) => section.blocking)
|
|
209
|
+
.reduce((sum, section) => sum + section.total, 0);
|
|
210
|
+
const failed = sections.filter((section) => section.state === "failed");
|
|
211
|
+
if (failed.length > 0) {
|
|
212
|
+
notes.push(`${failed.length} of 4 constituent(s) failed and contributed nothing: ` +
|
|
213
|
+
`${failed.map((f) => f.source).join(", ")}. The remaining sections are complete; this ` +
|
|
214
|
+
"reply is not.");
|
|
215
|
+
}
|
|
216
|
+
return answer({
|
|
217
|
+
headline: blockingTotal === 0
|
|
218
|
+
? `No contract or environment findings across ${files.length} changed file(s).`
|
|
219
|
+
: `${blockingTotal} blocking finding(s) across ${files.length} changed file(s) — see the ` +
|
|
220
|
+
"contracts and validate sections.",
|
|
221
|
+
// `empty` is earned here: all four ran against a real graph and found
|
|
222
|
+
// nothing blocking. A constituent that refused makes that untrue, so the
|
|
223
|
+
// state follows the weakest link rather than the happy path.
|
|
224
|
+
state: failed.length > 0 ? "failed" : blockingTotal > 0 ? "ok" : "empty",
|
|
225
|
+
data: { files, sections, blockingTotal, nodeBudget },
|
|
226
|
+
resolutionFloor: (floors.length === 0 ? 0 : Math.min(...floors)),
|
|
227
|
+
nameLevel: true,
|
|
228
|
+
commitSha: base.commitSha,
|
|
229
|
+
graphBuiltAt: base.graphBuiltAt,
|
|
230
|
+
irSchemaVersion: base.irSchemaVersion,
|
|
231
|
+
commitSpread: base.commitSpread,
|
|
232
|
+
notes: [...notes, ...collectedNotes],
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
export const prePushTool = {
|
|
236
|
+
name: "pre_push",
|
|
237
|
+
class: "read",
|
|
238
|
+
tier: "evidence",
|
|
239
|
+
version: "1.0.0",
|
|
240
|
+
title: "Everything worth knowing before you push, in one call",
|
|
241
|
+
description: "Runs scope, pr_analysis, contracts and validate together under the pre-push node budget and " +
|
|
242
|
+
"returns one short envelope: what your change touches, what it touches that has no test, which " +
|
|
243
|
+
"API contracts break, and which environment claims do not hold. Each source contributes its own " +
|
|
244
|
+
"top few — they are deliberately not ranked against each other, because Descry has no model for " +
|
|
245
|
+
"whether a contract mismatch outranks an unset variable. blockingTotal counts only the two " +
|
|
246
|
+
"sources that report defects, and is what a git hook should branch on.",
|
|
247
|
+
inputSchema: SCHEMA,
|
|
248
|
+
run,
|
|
249
|
+
};
|
|
250
|
+
//# sourceMappingURL=pre-push.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pre-push.js","sourceRoot":"","sources":["../../src/tools/pre-push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EACL,MAAM,EACN,eAAe,EACf,cAAc,EACd,mBAAmB,GAGpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,gGAAgG;AAChG,MAAM,UAAU,GAAG,CAAC,CAAC;AAErB,2EAA2E;AAC3E,MAAM,qBAAqB,GAA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,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,oFAAoF;IACpF,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"propagation.d.ts","sourceRoot":"","sources":["../../src/tools/propagation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAIH,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAGlB,sEAAsE;AACtE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,oFAAoF;IACpF,QAAQ,CAAC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,cAAc,CAAC;AAuKjE,eAAO,MAAM,eAAe,EAAE,cAY7B,CAAC"}
|
|
@@ -87,6 +87,7 @@ async function run(args, ctx) {
|
|
|
87
87
|
commitSha: base.commitSha,
|
|
88
88
|
graphBuiltAt: base.graphBuiltAt,
|
|
89
89
|
irSchemaVersion: base.irSchemaVersion,
|
|
90
|
+
commitSpread: base.commitSpread,
|
|
90
91
|
notes: found.notes,
|
|
91
92
|
data: { candidates: found.candidates.map(briefNode) },
|
|
92
93
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propagation.js","sourceRoot":"","sources":["../../src/tools/propagation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,cAAc,GAKf,MAAM,UAAU,CAAC;AAyClB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8BAA8B,EAAE;QACvE,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,0FAA0F;gBAC1F,4CAA4C;SAC/C;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+EAA+E;SAC7F;QACD,SAAS,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,WAAW,EACT,0FAA0F;gBAC1F,iCAAiC;SACpC;QACD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE;QACvF,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,WAAW,EACT,uFAAuF;gBACvF,yFAAyF;gBACzF,yCAAyC;SAC5C;KACF;IACD,oBAAoB,EAAE,KAAK;CACnB,CAAC;AAEX,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,mEAAmE;YACxF,CAAC,CAAC,UAAU;gBACV,CAAC,CAAC,aAAa,KAAK,CAAC,IAAI,CAAC,IAAI,YAAY,OAAO,CAAC,MAAM,2BAA2B;gBACnF,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,cAAc,OAAO,CAAC,MAAM,2CAA2C;oBACzF,gDAAgD;KACvD,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAmB;IAC7C,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,MAAM;IACb,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,8BAA8B;IACrC,WAAW,EACT,2FAA2F;QAC3F,2FAA2F;QAC3F,0CAA0C;IAC5C,WAAW,EAAE,MAA4C;IACzD,GAAG;CACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/tools/questions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,OAAO,
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/tools/questions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAGlB;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IACxC;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,CAAC;IAC/C,0EAA0E;IAC1E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,yFAAyF;IACzF,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;CACrC;AA6RD,eAAO,MAAM,aAAa,EAAE,cAoB3B,CAAC"}
|