@descryy/mcp 0.5.0 → 0.7.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/action-handshake.d.ts +8 -75
- package/dist/action-handshake.d.ts.map +1 -1
- package/dist/action-handshake.js +9 -79
- package/dist/action-handshake.js.map +1 -1
- package/dist/bin/descry-mcp.d.ts +4 -15
- package/dist/bin/descry-mcp.d.ts.map +1 -1
- package/dist/bin/descry-mcp.js +12 -42
- package/dist/bin/descry-mcp.js.map +1 -1
- package/dist/browser/driver.d.ts +62 -178
- package/dist/browser/driver.d.ts.map +1 -1
- package/dist/browser/driver.js +14 -46
- package/dist/browser/driver.js.map +1 -1
- package/dist/browser/evidence.d.ts +11 -35
- package/dist/browser/evidence.d.ts.map +1 -1
- package/dist/browser/evidence.js +25 -51
- package/dist/browser/evidence.js.map +1 -1
- package/dist/browser/fake-driver.d.ts +12 -16
- package/dist/browser/fake-driver.d.ts.map +1 -1
- package/dist/browser/fake-driver.js +24 -17
- package/dist/browser/fake-driver.js.map +1 -1
- package/dist/browser/graph-write.d.ts +4 -45
- package/dist/browser/graph-write.d.ts.map +1 -1
- package/dist/browser/graph-write.js +8 -53
- package/dist/browser/graph-write.js.map +1 -1
- package/dist/browser/playwright-driver.d.ts +17 -67
- package/dist/browser/playwright-driver.d.ts.map +1 -1
- package/dist/browser/playwright-driver.js +169 -166
- package/dist/browser/playwright-driver.js.map +1 -1
- package/dist/browser/provider.d.ts +5 -34
- package/dist/browser/provider.d.ts.map +1 -1
- package/dist/browser/provider.js +4 -24
- package/dist/browser/provider.js.map +1 -1
- package/dist/browser/registry.d.ts +26 -106
- package/dist/browser/registry.d.ts.map +1 -1
- package/dist/browser/registry.js +20 -77
- package/dist/browser/registry.js.map +1 -1
- package/dist/browser/scenario-resolve.d.ts +10 -44
- package/dist/browser/scenario-resolve.d.ts.map +1 -1
- package/dist/browser/scenario-resolve.js +10 -41
- package/dist/browser/scenario-resolve.js.map +1 -1
- package/dist/browser/scenario-runner.d.ts +12 -70
- package/dist/browser/scenario-runner.d.ts.map +1 -1
- package/dist/browser/scenario-runner.js +33 -91
- package/dist/browser/scenario-runner.js.map +1 -1
- package/dist/browser/stack-parser.d.ts +4 -28
- package/dist/browser/stack-parser.d.ts.map +1 -1
- package/dist/browser/stack-parser.js +12 -39
- package/dist/browser/stack-parser.js.map +1 -1
- package/dist/browser/tool-support.d.ts +20 -67
- package/dist/browser/tool-support.d.ts.map +1 -1
- package/dist/browser/tool-support.js +22 -66
- package/dist/browser/tool-support.js.map +1 -1
- package/dist/browser/url-scheme.d.ts +14 -0
- package/dist/browser/url-scheme.d.ts.map +1 -0
- package/dist/browser/url-scheme.js +38 -0
- package/dist/browser/url-scheme.js.map +1 -0
- package/dist/cancellation.d.ts +11 -46
- package/dist/cancellation.d.ts.map +1 -1
- package/dist/cancellation.js +11 -46
- package/dist/cancellation.js.map +1 -1
- package/dist/capped.d.ts +17 -0
- package/dist/capped.d.ts.map +1 -0
- package/dist/capped.js +15 -0
- package/dist/capped.js.map +1 -0
- package/dist/disclosure-ledger.d.ts +6 -30
- package/dist/disclosure-ledger.d.ts.map +1 -1
- package/dist/disclosure-ledger.js +4 -26
- package/dist/disclosure-ledger.js.map +1 -1
- package/dist/index.d.ts +10 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/module-trust.d.ts +24 -0
- package/dist/module-trust.d.ts.map +1 -0
- package/dist/module-trust.js +60 -0
- package/dist/module-trust.js.map +1 -0
- package/dist/path-confinement.d.ts +31 -0
- package/dist/path-confinement.d.ts.map +1 -0
- package/dist/path-confinement.js +44 -0
- package/dist/path-confinement.js.map +1 -0
- package/dist/protocol.d.ts +10 -53
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +14 -60
- package/dist/protocol.js.map +1 -1
- package/dist/registry.d.ts +10 -58
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +38 -90
- package/dist/registry.js.map +1 -1
- package/dist/render.d.ts +79 -11
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +126 -14
- package/dist/render.js.map +1 -1
- package/dist/runtime-registry.d.ts +8 -49
- package/dist/runtime-registry.d.ts.map +1 -1
- package/dist/runtime-registry.js +72 -63
- package/dist/runtime-registry.js.map +1 -1
- package/dist/scenarios/index.d.ts +1 -1
- package/dist/scenarios/index.d.ts.map +1 -1
- package/dist/scenarios/index.js +1 -1
- package/dist/scenarios/index.js.map +1 -1
- package/dist/scenarios/parse.d.ts +4 -18
- package/dist/scenarios/parse.d.ts.map +1 -1
- package/dist/scenarios/parse.js +14 -34
- package/dist/scenarios/parse.js.map +1 -1
- package/dist/scenarios/scenario.d.ts +18 -74
- package/dist/scenarios/scenario.d.ts.map +1 -1
- package/dist/scenarios/scenario.js +7 -34
- package/dist/scenarios/scenario.js.map +1 -1
- package/dist/scenarios/storage.d.ts +11 -41
- package/dist/scenarios/storage.d.ts.map +1 -1
- package/dist/scenarios/storage.js +57 -47
- package/dist/scenarios/storage.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +55 -13
- package/dist/server.js.map +1 -1
- package/dist/session.d.ts +69 -239
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +76 -231
- package/dist/session.js.map +1 -1
- package/dist/tools/analyze.d.ts +27 -101
- package/dist/tools/analyze.d.ts.map +1 -1
- package/dist/tools/analyze.js +58 -148
- package/dist/tools/analyze.js.map +1 -1
- package/dist/tools/browser-click.d.ts +3 -21
- package/dist/tools/browser-click.d.ts.map +1 -1
- package/dist/tools/browser-click.js +10 -31
- package/dist/tools/browser-click.js.map +1 -1
- package/dist/tools/browser-close-session.d.ts +4 -13
- package/dist/tools/browser-close-session.d.ts.map +1 -1
- package/dist/tools/browser-close-session.js +4 -13
- package/dist/tools/browser-close-session.js.map +1 -1
- package/dist/tools/browser-fill.d.ts +5 -36
- package/dist/tools/browser-fill.d.ts.map +1 -1
- package/dist/tools/browser-fill.js +9 -44
- package/dist/tools/browser-fill.js.map +1 -1
- package/dist/tools/browser-navigate.d.ts +6 -27
- package/dist/tools/browser-navigate.d.ts.map +1 -1
- package/dist/tools/browser-navigate.js +6 -23
- package/dist/tools/browser-navigate.js.map +1 -1
- package/dist/tools/browser-run-scenario.d.ts +5 -31
- package/dist/tools/browser-run-scenario.d.ts.map +1 -1
- package/dist/tools/browser-run-scenario.js +10 -46
- package/dist/tools/browser-run-scenario.js.map +1 -1
- package/dist/tools/browser-save-scenario.d.ts +3 -28
- package/dist/tools/browser-save-scenario.d.ts.map +1 -1
- package/dist/tools/browser-save-scenario.js +102 -55
- package/dist/tools/browser-save-scenario.js.map +1 -1
- package/dist/tools/browser-snapshot.d.ts +6 -39
- package/dist/tools/browser-snapshot.d.ts.map +1 -1
- package/dist/tools/browser-snapshot.js +4 -31
- package/dist/tools/browser-snapshot.js.map +1 -1
- package/dist/tools/browser-start-session.d.ts +4 -23
- package/dist/tools/browser-start-session.d.ts.map +1 -1
- package/dist/tools/browser-start-session.js +38 -51
- package/dist/tools/browser-start-session.js.map +1 -1
- package/dist/tools/browser-type.d.ts +5 -35
- package/dist/tools/browser-type.d.ts.map +1 -1
- package/dist/tools/browser-type.js +10 -45
- package/dist/tools/browser-type.js.map +1 -1
- package/dist/tools/contracts.d.ts +17 -63
- package/dist/tools/contracts.d.ts.map +1 -1
- package/dist/tools/contracts.js +91 -47
- package/dist/tools/contracts.js.map +1 -1
- package/dist/tools/cross-pr.d.ts +56 -15
- package/dist/tools/cross-pr.d.ts.map +1 -1
- package/dist/tools/cross-pr.js +141 -38
- package/dist/tools/cross-pr.js.map +1 -1
- package/dist/tools/git-diff.d.ts +18 -2
- package/dist/tools/git-diff.d.ts.map +1 -1
- package/dist/tools/git-diff.js +143 -23
- package/dist/tools/git-diff.js.map +1 -1
- package/dist/tools/git-history.d.ts +5 -16
- package/dist/tools/git-history.d.ts.map +1 -1
- package/dist/tools/git-history.js +3 -10
- package/dist/tools/git-history.js.map +1 -1
- package/dist/tools/history.d.ts +4 -33
- package/dist/tools/history.d.ts.map +1 -1
- package/dist/tools/history.js +6 -31
- package/dist/tools/history.js.map +1 -1
- package/dist/tools/impact.d.ts +7 -51
- package/dist/tools/impact.d.ts.map +1 -1
- package/dist/tools/impact.js +15 -67
- package/dist/tools/impact.js.map +1 -1
- package/dist/tools/index.d.ts +3 -8
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -8
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/kit.d.ts +66 -113
- package/dist/tools/kit.d.ts.map +1 -1
- package/dist/tools/kit.js +60 -28
- package/dist/tools/kit.js.map +1 -1
- package/dist/tools/link-workspace.d.ts +7 -45
- package/dist/tools/link-workspace.d.ts.map +1 -1
- package/dist/tools/link-workspace.js +10 -48
- package/dist/tools/link-workspace.js.map +1 -1
- package/dist/tools/lookup.d.ts +4 -14
- package/dist/tools/lookup.d.ts.map +1 -1
- package/dist/tools/lookup.js +4 -14
- package/dist/tools/lookup.js.map +1 -1
- package/dist/tools/mark-incident.d.ts +7 -54
- package/dist/tools/mark-incident.d.ts.map +1 -1
- package/dist/tools/mark-incident.js +15 -68
- package/dist/tools/mark-incident.js.map +1 -1
- package/dist/tools/observe-runtime.d.ts +27 -210
- package/dist/tools/observe-runtime.d.ts.map +1 -1
- package/dist/tools/observe-runtime.js +258 -436
- package/dist/tools/observe-runtime.js.map +1 -1
- package/dist/tools/observe-tests.d.ts +9 -88
- package/dist/tools/observe-tests.d.ts.map +1 -1
- package/dist/tools/observe-tests.js +34 -108
- package/dist/tools/observe-tests.js.map +1 -1
- package/dist/tools/pr-analysis.d.ts +18 -2
- package/dist/tools/pr-analysis.d.ts.map +1 -1
- package/dist/tools/pr-analysis.js +73 -23
- package/dist/tools/pr-analysis.js.map +1 -1
- package/dist/tools/pre-push.d.ts +94 -9
- package/dist/tools/pre-push.d.ts.map +1 -1
- package/dist/tools/pre-push.js +139 -34
- package/dist/tools/pre-push.js.map +1 -1
- package/dist/tools/propagation.d.ts +11 -53
- package/dist/tools/propagation.d.ts.map +1 -1
- package/dist/tools/propagation.js +14 -57
- package/dist/tools/propagation.js.map +1 -1
- package/dist/tools/questions.d.ts +13 -63
- package/dist/tools/questions.d.ts.map +1 -1
- package/dist/tools/questions.js +33 -105
- package/dist/tools/questions.js.map +1 -1
- package/dist/tools/refusal-fetch.d.ts +4 -40
- package/dist/tools/refusal-fetch.d.ts.map +1 -1
- package/dist/tools/refusal-fetch.js +4 -40
- package/dist/tools/refusal-fetch.js.map +1 -1
- package/dist/tools/runtime-incident.d.ts +4 -63
- package/dist/tools/runtime-incident.d.ts.map +1 -1
- package/dist/tools/runtime-incident.js +10 -87
- package/dist/tools/runtime-incident.js.map +1 -1
- package/dist/tools/scope.d.ts +7 -25
- package/dist/tools/scope.d.ts.map +1 -1
- package/dist/tools/scope.js +17 -20
- package/dist/tools/scope.js.map +1 -1
- package/dist/tools/similar-incidents.d.ts +11 -86
- package/dist/tools/similar-incidents.d.ts.map +1 -1
- package/dist/tools/similar-incidents.js +7 -71
- package/dist/tools/similar-incidents.js.map +1 -1
- package/dist/tools/validate.d.ts +31 -47
- package/dist/tools/validate.d.ts.map +1 -1
- package/dist/tools/validate.js +133 -61
- package/dist/tools/validate.js.map +1 -1
- package/dist/tools/verification-status.d.ts +9 -64
- package/dist/tools/verification-status.d.ts.map +1 -1
- package/dist/tools/verification-status.js +9 -62
- package/dist/tools/verification-status.js.map +1 -1
- package/dist/tools/verify-claim.d.ts +5 -52
- package/dist/tools/verify-claim.d.ts.map +1 -1
- package/dist/tools/verify-claim.js +6 -56
- package/dist/tools/verify-claim.js.map +1 -1
- package/dist/transport.d.ts +15 -52
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +16 -60
- package/dist/transport.js.map +1 -1
- package/package.json +33 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/tools/validate.ts"],"names":[],"mappings":"AAAA
|
|
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-
* `
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Wraps `packages/core/src/query/verification-status.ts`'s
|
|
7
|
-
* `computeVerificationStatus` — the module's own header calls itself "the
|
|
8
|
-
* static half only" and says building the `ScopeItem[]` from a caller's refs
|
|
9
|
-
* is "the caller's job, done above this boundary." This tool is that caller.
|
|
10
|
-
*
|
|
11
|
-
* ## Real capability lookup, without ever naming a language up here
|
|
12
|
-
*
|
|
13
|
-
* `computeVerificationStatus`'s `ScopeItem.capabilities`, when supplied,
|
|
14
|
-
* lets a `notExercised` reason describe a real declared gap rather than a
|
|
15
|
-
* generic absence. The first design attempted here guessed a language from
|
|
16
|
-
* a ref's file extension and matched it against a `language` tag on a
|
|
17
|
-
* configured source — and `npm run lint` caught it immediately:
|
|
18
|
-
* `descry-boundary/no-language-vocabulary` and `no-language-branch` both
|
|
19
|
-
* fired, because `packages/*\/src/**` (this file included, not just
|
|
20
|
-
* `packages/core`) is bound by architecture principle 7 — nothing above the
|
|
21
|
-
* Canonical IR may name or dispatch on a language, full stop. A hardcoded
|
|
22
|
-
* extension table and a `.get(guessedLanguage)` lookup are exactly the
|
|
23
|
-
* "lookup dispatch" shape that rule exists to catch, not a false positive.
|
|
24
|
-
*
|
|
25
|
-
* The fix moves the decision below the boundary, where it belongs:
|
|
26
|
-
* `LanguageAdapter` (`@descryy/ir`) gained an optional
|
|
27
|
-
* `ownsPath(path): boolean` — the adapter decides, using whatever
|
|
28
|
-
* language-specific logic it wants, entirely inside `descry-adapters`,
|
|
29
|
-
* which is not bound by this repo's lint. This tool never sees or compares
|
|
30
|
-
* a language string; it just asks every loaded, configured adapter "do you
|
|
31
|
-
* own this path," and attaches whichever one says yes. An unresolved ref's
|
|
32
|
-
* `language` therefore stays `null` here always — this tool does not
|
|
33
|
-
* determine one, and does not need to: `computeVerificationStatus`'s reason
|
|
34
|
-
* text already reads correctly either way (see its own module header),
|
|
35
|
-
* naming an adapter as registered without ever naming which language it is
|
|
36
|
-
* for.
|
|
37
|
-
*
|
|
38
|
-
* A configured source that fails to import cannot be asked at all — this
|
|
39
|
-
* tool's own `notes` disclose that plainly, the same register `analyze.ts`
|
|
40
|
-
* already uses for a source that will not import.
|
|
41
|
-
*
|
|
42
|
-
* ## Resolving a ref: node id first, then file
|
|
43
|
-
*
|
|
44
|
-
* A ref that is a real node id resolves directly (`getNode`). Otherwise it
|
|
45
|
-
* is tried as a file path (`findNodes({ file: ref })`, the same reader
|
|
46
|
-
* `lookup.ts`'s `resolveOneNode` already uses for symbol/file matching): the
|
|
47
|
-
* file's own `FILE`-typed node stands in when one exists, else the node
|
|
48
|
-
* with the *weakest* resolution in that file — the same "report the
|
|
49
|
-
* weakest link" convention `resolutionFloor` uses elsewhere in this
|
|
50
|
-
* package, since a file is only as verified as its least-resolved member.
|
|
51
|
-
* A ref that resolves neither way is `notExercised`.
|
|
52
|
-
*/
|
|
1
|
+
/** `verification_status`, §4 technique 6: coverage is a separate axis and call, paid once, only
|
|
2
|
+
* when asked. Wraps `computeVerificationStatus` (the static half). Never names a language (rule
|
|
3
|
+
* 1) — an earlier extension-guessing design tripped the boundary lint, so it now asks each
|
|
4
|
+
* loaded adapter's `ownsPath` instead. Resolves a ref by node id first, then file (the file's own
|
|
5
|
+
* `FILE` node, else its weakest-resolution member) — neither way found means `notExercised`. */
|
|
53
6
|
import type { ResolutionLevel } from "@descryy/ir";
|
|
54
7
|
import { type ToolDefinition } from "./kit.ts";
|
|
55
8
|
export interface VerificationStatusExercisedItem {
|
|
@@ -63,22 +16,14 @@ export interface VerificationStatusData {
|
|
|
63
16
|
readonly scope: string;
|
|
64
17
|
readonly reason: string;
|
|
65
18
|
}[];
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* finished. Empty when no suite has been run through `observe_tests`, which
|
|
69
|
-
* is a different statement from "nothing covers this" and is why the notes
|
|
70
|
-
* say which of the two a reader is looking at.
|
|
71
|
-
*/
|
|
19
|
+
/** The runtime half: refs a real test run bore on and how those tests finished. Empty means
|
|
20
|
+
* either "nothing covers this" or "no suite run yet" — the notes disambiguate. */
|
|
72
21
|
readonly verifiedByTests: readonly VerificationStatusTestedItem[];
|
|
73
22
|
}
|
|
74
23
|
export interface VerificationStatusTestedItem {
|
|
75
24
|
readonly ref: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* observed itself. The run witnessed that a test executed; it did not witness
|
|
79
|
-
* the test touching this ref. Carried per item so the distinction survives
|
|
80
|
-
* into the reply instead of living only in a disclosure.
|
|
81
|
-
*/
|
|
25
|
+
/** `false` when reached via a static `TESTS` edge, not observed directly — the run witnessed the
|
|
26
|
+
* test execute, not that it touched this ref. Carried per item, not just in a disclosure. */
|
|
82
27
|
readonly direct: boolean;
|
|
83
28
|
readonly tests: readonly {
|
|
84
29
|
readonly qualifiedName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-status.d.ts","sourceRoot":"","sources":["../../src/tools/verification-status.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"verification-status.d.ts","sourceRoot":"","sources":["../../src/tools/verification-status.ts"],"names":[],"mappings":"AAAA;;;;iGAIiG;AAUjG,OAAO,KAAK,EAA4B,eAAe,EAAE,MAAM,aAAa,CAAC;AAE7E,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAqBlB,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAC/D,QAAQ,CAAC,YAAY,EAAE,SAAS;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtF;uFACmF;IACnF,QAAQ,CAAC,eAAe,EAAE,SAAS,4BAA4B,EAAE,CAAC;CACnE;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;kGAC8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS;QACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;QAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;KACxB,EAAE,CAAC;CACL;AA2JD,eAAO,MAAM,sBAAsB,EAAE,cAkBpC,CAAC"}
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Wraps `packages/core/src/query/verification-status.ts`'s
|
|
7
|
-
* `computeVerificationStatus` — the module's own header calls itself "the
|
|
8
|
-
* static half only" and says building the `ScopeItem[]` from a caller's refs
|
|
9
|
-
* is "the caller's job, done above this boundary." This tool is that caller.
|
|
10
|
-
*
|
|
11
|
-
* ## Real capability lookup, without ever naming a language up here
|
|
12
|
-
*
|
|
13
|
-
* `computeVerificationStatus`'s `ScopeItem.capabilities`, when supplied,
|
|
14
|
-
* lets a `notExercised` reason describe a real declared gap rather than a
|
|
15
|
-
* generic absence. The first design attempted here guessed a language from
|
|
16
|
-
* a ref's file extension and matched it against a `language` tag on a
|
|
17
|
-
* configured source — and `npm run lint` caught it immediately:
|
|
18
|
-
* `descry-boundary/no-language-vocabulary` and `no-language-branch` both
|
|
19
|
-
* fired, because `packages/*\/src/**` (this file included, not just
|
|
20
|
-
* `packages/core`) is bound by architecture principle 7 — nothing above the
|
|
21
|
-
* Canonical IR may name or dispatch on a language, full stop. A hardcoded
|
|
22
|
-
* extension table and a `.get(guessedLanguage)` lookup are exactly the
|
|
23
|
-
* "lookup dispatch" shape that rule exists to catch, not a false positive.
|
|
24
|
-
*
|
|
25
|
-
* The fix moves the decision below the boundary, where it belongs:
|
|
26
|
-
* `LanguageAdapter` (`@descryy/ir`) gained an optional
|
|
27
|
-
* `ownsPath(path): boolean` — the adapter decides, using whatever
|
|
28
|
-
* language-specific logic it wants, entirely inside `descry-adapters`,
|
|
29
|
-
* which is not bound by this repo's lint. This tool never sees or compares
|
|
30
|
-
* a language string; it just asks every loaded, configured adapter "do you
|
|
31
|
-
* own this path," and attaches whichever one says yes. An unresolved ref's
|
|
32
|
-
* `language` therefore stays `null` here always — this tool does not
|
|
33
|
-
* determine one, and does not need to: `computeVerificationStatus`'s reason
|
|
34
|
-
* text already reads correctly either way (see its own module header),
|
|
35
|
-
* naming an adapter as registered without ever naming which language it is
|
|
36
|
-
* for.
|
|
37
|
-
*
|
|
38
|
-
* A configured source that fails to import cannot be asked at all — this
|
|
39
|
-
* tool's own `notes` disclose that plainly, the same register `analyze.ts`
|
|
40
|
-
* already uses for a source that will not import.
|
|
41
|
-
*
|
|
42
|
-
* ## Resolving a ref: node id first, then file
|
|
43
|
-
*
|
|
44
|
-
* A ref that is a real node id resolves directly (`getNode`). Otherwise it
|
|
45
|
-
* is tried as a file path (`findNodes({ file: ref })`, the same reader
|
|
46
|
-
* `lookup.ts`'s `resolveOneNode` already uses for symbol/file matching): the
|
|
47
|
-
* file's own `FILE`-typed node stands in when one exists, else the node
|
|
48
|
-
* with the *weakest* resolution in that file — the same "report the
|
|
49
|
-
* weakest link" convention `resolutionFloor` uses elsewhere in this
|
|
50
|
-
* package, since a file is only as verified as its least-resolved member.
|
|
51
|
-
* A ref that resolves neither way is `notExercised`.
|
|
52
|
-
*/
|
|
1
|
+
/** `verification_status`, §4 technique 6: coverage is a separate axis and call, paid once, only
|
|
2
|
+
* when asked. Wraps `computeVerificationStatus` (the static half). Never names a language (rule
|
|
3
|
+
* 1) — an earlier extension-guessing design tripped the boundary lint, so it now asks each
|
|
4
|
+
* loaded adapter's `ownsPath` instead. Resolves a ref by node id first, then file (the file's own
|
|
5
|
+
* `FILE` node, else its weakest-resolution member) — neither way found means `notExercised`. */
|
|
53
6
|
import { getNode, findNodes, computeVerificationStatus, observedTestCoverage, resolutionOfExercised, } from "@descryy/core";
|
|
54
7
|
import { answer, optionalStringArray, ToolInputError, } from "./kit.js";
|
|
55
8
|
import { loadSources } from "../registry.js";
|
|
@@ -86,11 +39,8 @@ function resolveRef(driver, ref) {
|
|
|
86
39
|
}
|
|
87
40
|
return { ref, language: null, node: null };
|
|
88
41
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* unresolved ref — decided entirely by the adapter's own `ownsPath`, never
|
|
92
|
-
* by a language name compared up here. See the module header.
|
|
93
|
-
*/
|
|
42
|
+
/** Real capabilities for whichever loaded adapter owns each unresolved ref, via `ownsPath` —
|
|
43
|
+
* never a language name compared here (see module header). */
|
|
94
44
|
async function capabilitiesForUnresolvedRefs(sources, unresolvedRefs, repoPath) {
|
|
95
45
|
const capabilitiesByRef = new Map();
|
|
96
46
|
const failedNotes = [];
|
|
@@ -134,11 +84,8 @@ async function run(args, ctx) {
|
|
|
134
84
|
}));
|
|
135
85
|
const status = computeVerificationStatus(scope);
|
|
136
86
|
const exercised = status.exercised.map((entry) => resolutionOfExercised(entry));
|
|
137
|
-
// The runtime half
|
|
138
|
-
//
|
|
139
|
-
// that way and joining above it is the same posture observe_runtime takes —
|
|
140
|
-
// the tool layer is where composition belongs. Only refs that resolved to a
|
|
141
|
-
// real node can be looked up: an unresolved ref has no id to join on.
|
|
87
|
+
// The runtime half is composed here, not inside computeVerificationStatus (static-only by
|
|
88
|
+
// design) — same posture as observe_runtime. Only resolved refs can be looked up.
|
|
142
89
|
const lookupIds = resolved.filter((r) => r.node !== null).map((r) => r.node.id);
|
|
143
90
|
const coverage = observedTestCoverage(driver, lookupIds);
|
|
144
91
|
const verifiedByTests = resolved.flatMap((r) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-status.js","sourceRoot":"","sources":["../../src/tools/verification-status.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"verification-status.js","sourceRoot":"","sources":["../../src/tools/verification-status.ts"],"names":[],"mappings":"AAAA;;;;iGAIiG;AAEjG,OAAO,EACL,OAAO,EACP,SAAS,EACT,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,MAAM,EACN,mBAAmB,EACnB,cAAc,GAGf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,QAAQ,EAAE,CAAC;YACX,WAAW,EACT,uFAAuF;gBACvF,2FAA2F;gBAC3F,qCAAqC;SACxC;KACF;IACD,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,oBAAoB,EAAE,KAAK;CACnB,CAAC;AA4BX,mHAAmH;AACnH,SAAS,qBAAqB,CAAC,KAAwB;IACrD,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;IACtD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,QAAQ,CAAC;IAC5C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AACzF,CAAC;AASD,SAAS,UAAU,CAAC,MAAiB,EAAE,GAAW;IAChD,M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AChB,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EACT,8FAA8F;QAC9F,2FAA2F;QAC3F,8FAA8F;QAC9F,4FAA4F;QAC5F,6FAA6F;QAC7F,iGAAiG;QACjG,gGAAgG;QAChG,kGAAkG;QAClG,8FAA8F;IAChG,WAAW,EAAE,MAA4C;IACzD,GAAG;CACJ,CAAC"}
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `reportCategory`, `FINDING_CAPS` or the ratified G4 arithmetic").
|
|
7
|
-
*
|
|
8
|
-
* ## What this checks, and what it deliberately does not
|
|
9
|
-
*
|
|
10
|
-
* §2's G1 rejects a factual claim whose citation "does not resolve against
|
|
11
|
-
* this run's own recorded tool calls." §3's G2 rejects a plan item naming "a
|
|
12
|
-
* file, node or symbol that does not appear" in an already-produced
|
|
13
|
-
* candidate set. Both gates are, at their core, a lookup against calls
|
|
14
|
-
* already made — and that lookup is exactly what a stateless MCP call *can*
|
|
15
|
-
* do without the stage machinery (candidate generation, plan slots) that
|
|
16
|
-
* produced G1/G2's own inputs in the full pipeline. This tool is that
|
|
17
|
-
* lookup, offered voluntarily: **it does not enforce anything** — a host
|
|
18
|
-
* that never calls it, or calls it and ignores an ungrounded verdict, has
|
|
19
|
-
* lost nothing it had before. What it converts is *"we cannot check"* into
|
|
20
|
-
* *"we offered to check and it declined"* — testable and loggable, per this
|
|
21
|
-
* item's own text.
|
|
22
|
-
*
|
|
23
|
-
* A claim is checked two ways, either or both:
|
|
24
|
-
*
|
|
25
|
-
* - **`path`** (G1-shaped): does the cited call exist in this session, and
|
|
26
|
-
* does the given dot-path resolve to a real value inside its recorded
|
|
27
|
-
* result? A path into a call from a different session, or a path the
|
|
28
|
-
* result does not actually have, is ungrounded — the direct equivalent of
|
|
29
|
-
* G1's own negative control, "a citation pointing at a tool call from a
|
|
30
|
-
* different run."
|
|
31
|
-
* - **`target`** (G2-shaped): does the given string appear anywhere in the
|
|
32
|
-
* cited call's recorded result at all? This is deliberately a plain
|
|
33
|
-
* substring search over the result's JSON text, not a structural walk —
|
|
34
|
-
* disclosed in the tool description, not smoothed over as something
|
|
35
|
-
* stronger. It answers "was this ever actually returned as a candidate,"
|
|
36
|
-
* which is what G2 checks; it does not verify the string's *role* in that
|
|
37
|
-
* result (a rejected candidate and an accepted one both pass this check
|
|
38
|
-
* equally, since substring search cannot see which list held it).
|
|
39
|
-
*
|
|
40
|
-
* A claim with neither is a malformed citation, not a free pass: it is
|
|
41
|
-
* reported ungrounded with a reason naming what is missing, not silently
|
|
42
|
-
* treated as making no claim at all.
|
|
43
|
-
*
|
|
44
|
-
* ## What this can never return
|
|
45
|
-
*
|
|
46
|
-
* `confirmed` does not appear here, on any path — MK-11's ruling holds:
|
|
47
|
-
* `confirmed` "stays reserved for results that passed the full governance
|
|
48
|
-
* pipeline," which this tool is not and does not run. This tool answers
|
|
49
|
-
* exactly one narrower question — *does this citation resolve* — in its own
|
|
50
|
-
* plain words, the same register the three deterministic tools (`validate`,
|
|
51
|
-
* `contracts`, `cross_pr`) already conclude in per MK-11.
|
|
52
|
-
*/
|
|
1
|
+
/** `verify_claim`, MK-12: offers G1/G2 (`ai-governance-spec.md` §2/§3) as a voluntary lookup — the
|
|
2
|
+
* full pipeline doesn't run here (MK-11). `path` checks a dot-path resolves in a recorded call's
|
|
3
|
+
* result (G1); `target` is a plain substring search (G2-shaped, disclosed as weaker — it can't
|
|
4
|
+
* see whether the string was accepted or rejected). Never returns `confirmed` (MK-11): it
|
|
5
|
+
* enforces nothing, just converts "we cannot check" into "we offered and it declined." */
|
|
53
6
|
import { type ToolDefinition } from "./kit.ts";
|
|
54
7
|
export interface VerifyClaimResult {
|
|
55
8
|
readonly statement: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-claim.d.ts","sourceRoot":"","sources":["../../src/tools/verify-claim.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"verify-claim.d.ts","sourceRoot":"","sources":["../../src/tools/verify-claim.ts"],"names":[],"mappings":"AAAA;;;;2FAI2F;AAE3F,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAyClB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAChD;AAqID,eAAO,MAAM,eAAe,EAAE,cAc7B,CAAC"}
|
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `reportCategory`, `FINDING_CAPS` or the ratified G4 arithmetic").
|
|
7
|
-
*
|
|
8
|
-
* ## What this checks, and what it deliberately does not
|
|
9
|
-
*
|
|
10
|
-
* §2's G1 rejects a factual claim whose citation "does not resolve against
|
|
11
|
-
* this run's own recorded tool calls." §3's G2 rejects a plan item naming "a
|
|
12
|
-
* file, node or symbol that does not appear" in an already-produced
|
|
13
|
-
* candidate set. Both gates are, at their core, a lookup against calls
|
|
14
|
-
* already made — and that lookup is exactly what a stateless MCP call *can*
|
|
15
|
-
* do without the stage machinery (candidate generation, plan slots) that
|
|
16
|
-
* produced G1/G2's own inputs in the full pipeline. This tool is that
|
|
17
|
-
* lookup, offered voluntarily: **it does not enforce anything** — a host
|
|
18
|
-
* that never calls it, or calls it and ignores an ungrounded verdict, has
|
|
19
|
-
* lost nothing it had before. What it converts is *"we cannot check"* into
|
|
20
|
-
* *"we offered to check and it declined"* — testable and loggable, per this
|
|
21
|
-
* item's own text.
|
|
22
|
-
*
|
|
23
|
-
* A claim is checked two ways, either or both:
|
|
24
|
-
*
|
|
25
|
-
* - **`path`** (G1-shaped): does the cited call exist in this session, and
|
|
26
|
-
* does the given dot-path resolve to a real value inside its recorded
|
|
27
|
-
* result? A path into a call from a different session, or a path the
|
|
28
|
-
* result does not actually have, is ungrounded — the direct equivalent of
|
|
29
|
-
* G1's own negative control, "a citation pointing at a tool call from a
|
|
30
|
-
* different run."
|
|
31
|
-
* - **`target`** (G2-shaped): does the given string appear anywhere in the
|
|
32
|
-
* cited call's recorded result at all? This is deliberately a plain
|
|
33
|
-
* substring search over the result's JSON text, not a structural walk —
|
|
34
|
-
* disclosed in the tool description, not smoothed over as something
|
|
35
|
-
* stronger. It answers "was this ever actually returned as a candidate,"
|
|
36
|
-
* which is what G2 checks; it does not verify the string's *role* in that
|
|
37
|
-
* result (a rejected candidate and an accepted one both pass this check
|
|
38
|
-
* equally, since substring search cannot see which list held it).
|
|
39
|
-
*
|
|
40
|
-
* A claim with neither is a malformed citation, not a free pass: it is
|
|
41
|
-
* reported ungrounded with a reason naming what is missing, not silently
|
|
42
|
-
* treated as making no claim at all.
|
|
43
|
-
*
|
|
44
|
-
* ## What this can never return
|
|
45
|
-
*
|
|
46
|
-
* `confirmed` does not appear here, on any path — MK-11's ruling holds:
|
|
47
|
-
* `confirmed` "stays reserved for results that passed the full governance
|
|
48
|
-
* pipeline," which this tool is not and does not run. This tool answers
|
|
49
|
-
* exactly one narrower question — *does this citation resolve* — in its own
|
|
50
|
-
* plain words, the same register the three deterministic tools (`validate`,
|
|
51
|
-
* `contracts`, `cross_pr`) already conclude in per MK-11.
|
|
52
|
-
*/
|
|
1
|
+
/** `verify_claim`, MK-12: offers G1/G2 (`ai-governance-spec.md` §2/§3) as a voluntary lookup — the
|
|
2
|
+
* full pipeline doesn't run here (MK-11). `path` checks a dot-path resolves in a recorded call's
|
|
3
|
+
* result (G1); `target` is a plain substring search (G2-shaped, disclosed as weaker — it can't
|
|
4
|
+
* see whether the string was accepted or rejected). Never returns `confirmed` (MK-11): it
|
|
5
|
+
* enforces nothing, just converts "we cannot check" into "we offered and it declined." */
|
|
53
6
|
import { answer, requiredString, ToolInputError, } from "./kit.js";
|
|
54
7
|
const SCHEMA = {
|
|
55
8
|
type: "object",
|
|
@@ -193,10 +146,7 @@ async function run(args, ctx) {
|
|
|
193
146
|
commitSha: null,
|
|
194
147
|
graphBuiltAt: null,
|
|
195
148
|
irSchemaVersion: 0,
|
|
196
|
-
// No graph
|
|
197
|
-
// disclosure this feeds only fires above 1, so 0 is the value that says
|
|
198
|
-
// "this question was never about the graph" rather than one that hides a
|
|
199
|
-
// spread the caller should have seen.
|
|
149
|
+
// No graph consulted, so no commit spread — 0 says "not a graph question," not a hidden spread.
|
|
200
150
|
commitSpread: 0,
|
|
201
151
|
nameLevel: true,
|
|
202
152
|
notes: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-claim.js","sourceRoot":"","sources":["../../src/tools/verify-claim.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"verify-claim.js","sourceRoot":"","sources":["../../src/tools/verify-claim.ts"],"names":[],"mappings":"AAAA;;;;2FAI2F;AAE3F,OAAO,EACL,MAAM,EACN,cAAc,EACd,cAAc,GAGf,MAAM,UAAU,CAAC;AAGlB,MAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oGAAoG;qBAClH;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,+FAA+F;qBA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|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* **stdout is the protocol channel and nothing else may write to it.** A single
|
|
7
|
-
* `console.log` anywhere in the process — in the engine, in a loaded adapter, in
|
|
8
|
-
* a dependency — emits a line the client tries to parse as a frame, and the
|
|
9
|
-
* session dies with an error that names the parser rather than the culprit.
|
|
10
|
-
*
|
|
11
|
-
* This is not a comment asking people to be careful. `guardStdout()` replaces
|
|
12
|
-
* `console.log` and friends with writers onto **stderr**, which the MCP host
|
|
13
|
-
* shows as server logs, so a stray print stays visible and stops being fatal.
|
|
14
|
-
* The transport keeps the one real handle to stdout for itself.
|
|
15
|
-
*
|
|
16
|
-
* ## Framing
|
|
17
|
-
*
|
|
18
|
-
* MCP's stdio transport is one JSON object per line, UTF-8, with no embedded
|
|
19
|
-
* newlines. `JSON.stringify` never emits a raw newline, so writing is a
|
|
20
|
-
* stringify plus `"\n"`. Reading needs a buffer because a chunk boundary can
|
|
21
|
-
* land anywhere, including mid-multibyte-character — hence `StringDecoder`
|
|
22
|
-
* rather than `chunk.toString()`, which would corrupt any non-ASCII payload
|
|
23
|
-
* split across two chunks.
|
|
24
|
-
*/
|
|
1
|
+
/** stdio transport: newline-delimited JSON over stdin/stdout. Stdout is the protocol
|
|
2
|
+
* channel and nothing else may write to it — a stray `console.log` anywhere (engine,
|
|
3
|
+
* adapter, dependency) corrupts a frame and kills the session with a misleading error;
|
|
4
|
+
* `guardStdout()` redirects console.* to stderr instead. Framing: one JSON object per
|
|
5
|
+
* line, UTF-8, no embedded newlines; reads use `StringDecoder` since a chunk boundary can split a multibyte character. */
|
|
25
6
|
import type { Readable, Writable } from "node:stream";
|
|
26
7
|
export interface Transport {
|
|
27
8
|
/** Write one frame. Must never be called with anything but a JSON-RPC message. */
|
|
28
9
|
send(frame: unknown): void;
|
|
29
10
|
}
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* Called once, by the stdio runner, before any handler can run. The returned
|
|
34
|
-
* function is the only sanctioned path to stdout in the process.
|
|
35
|
-
*/
|
|
11
|
+
/** Redirects every console channel to stderr and returns the real stdout writer. Called
|
|
12
|
+
* once, before any handler runs — the returned function is the only sanctioned path to stdout. */
|
|
36
13
|
export declare function guardStdout(stdout: Writable, stderr: Writable): (line: string) => void;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* Returned as a function rather than a class because the buffer is the entire
|
|
41
|
-
* state and there is nothing else to hang on an object.
|
|
42
|
-
*/
|
|
14
|
+
/** Splits a byte stream into lines, decoding correctly across chunk boundaries. Returned as
|
|
15
|
+
* a function, not a class — the buffer is the entire state, nothing else to hang on an object. */
|
|
43
16
|
export declare function createLineReader(onLine: (line: string) => void): (chunk: Buffer) => void;
|
|
44
17
|
export interface StdioOptions {
|
|
45
18
|
readonly stdin: Readable;
|
|
46
19
|
readonly stdout: Writable;
|
|
47
20
|
readonly stderr: Writable;
|
|
48
21
|
}
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* Resolves on end-of-input, which is how an MCP host asks a stdio server to shut
|
|
53
|
-
* down — it closes the pipe. Anything the server holds open (a database handle,
|
|
54
|
-
* a worker pool) is disposed by the caller after this resolves, not here: this
|
|
55
|
-
* function knows about bytes and nothing else.
|
|
56
|
-
*/
|
|
22
|
+
/** Runs a dispatcher over stdio until stdin closes. Resolves on end-of-input — how an MCP
|
|
23
|
+
* host asks a stdio server to shut down. Anything the server holds open (DB handle, worker
|
|
24
|
+
* pool) is disposed by the caller after, not here — this function knows only about bytes. */
|
|
57
25
|
export interface ServeOptions {
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* Supplied by the caller rather than decided here: which methods mean what is
|
|
62
|
-
* the server's knowledge, and this module otherwise knows only about bytes.
|
|
63
|
-
* `server.ts` exports `isOutOfBand`, which answers true for
|
|
64
|
-
* `notifications/cancelled` and nothing else.
|
|
65
|
-
*/
|
|
26
|
+
/** Frames that must not wait behind an in-flight call. Supplied by the caller — which
|
|
27
|
+
* methods mean what is the server's knowledge; `server.ts`'s `isOutOfBand` answers true
|
|
28
|
+
* only for `notifications/cancelled`. */
|
|
66
29
|
readonly isOutOfBand?: (line: string) => boolean;
|
|
67
30
|
}
|
|
68
31
|
export declare function serveStdio(options: StdioOptions, dispatch: (line: string, transport: Transport) => Promise<void>, serveOptions?: ServeOptions): Promise<void>;
|
package/dist/transport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA;;;;2HAI2H;AAG3H,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,SAAS;IACxB,kFAAkF;IAClF,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B;AAED;mGACmG;AACnG,wBAAgB,WAAW,CACzB,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,GACf,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAiBxB;AAWD;mGACmG;AACnG,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAcxF;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC3B;AAED;;8FAE8F;AAC9F,MAAM,WAAW,YAAY;IAC3B;;8CAE0C;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;CAClD;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,YAAY,EACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,EAC/D,YAAY,GAAE,YAAiB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAqCf"}
|