carrick 0.3.156 → 0.3.157

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.
Files changed (70) hide show
  1. package/dist/facts/enabled.d.ts +6 -0
  2. package/dist/facts/enabled.js +8 -0
  3. package/dist/facts/enabled.js.map +1 -1
  4. package/dist/facts/fetch.js +2 -1
  5. package/dist/facts/fetch.js.map +1 -1
  6. package/dist/held/client.d.ts +34 -0
  7. package/dist/held/client.js +85 -0
  8. package/dist/held/client.js.map +1 -0
  9. package/dist/held/daemon.d.ts +106 -0
  10. package/dist/held/daemon.js +307 -0
  11. package/dist/held/daemon.js.map +1 -0
  12. package/dist/held/engine.d.ts +50 -0
  13. package/dist/held/engine.js +166 -0
  14. package/dist/held/engine.js.map +1 -0
  15. package/dist/held/paths.d.ts +9 -0
  16. package/dist/held/paths.js +27 -0
  17. package/dist/held/paths.js.map +1 -0
  18. package/dist/held/place.d.ts +84 -0
  19. package/dist/held/place.js +198 -0
  20. package/dist/held/place.js.map +1 -0
  21. package/dist/held/registry.d.ts +22 -0
  22. package/dist/held/registry.js +72 -0
  23. package/dist/held/registry.js.map +1 -0
  24. package/dist/held/run.d.ts +2 -0
  25. package/dist/held/run.js +60 -0
  26. package/dist/held/run.js.map +1 -0
  27. package/dist/hook/bash-targets.d.ts +7 -2
  28. package/dist/hook/bash-targets.js +82 -27
  29. package/dist/hook/bash-targets.js.map +1 -1
  30. package/dist/hook/lock.d.ts +26 -0
  31. package/dist/hook/lock.js +122 -0
  32. package/dist/hook/lock.js.map +1 -0
  33. package/dist/hook/post-bash.js +14 -5
  34. package/dist/hook/post-bash.js.map +1 -1
  35. package/dist/hook/rechecks.d.ts +1 -0
  36. package/dist/hook/rechecks.js +8 -121
  37. package/dist/hook/rechecks.js.map +1 -1
  38. package/dist/hook/timings.d.ts +2 -2
  39. package/dist/hook/timings.js +1 -1
  40. package/dist/hook/timings.js.map +1 -1
  41. package/dist/lsp-frame.d.ts +20 -0
  42. package/dist/lsp-frame.js +47 -0
  43. package/dist/lsp-frame.js.map +1 -0
  44. package/dist/server.js +4 -28
  45. package/dist/server.js.map +1 -1
  46. package/package.json +6 -6
  47. package/plugin/.claude-plugin/plugin.json +1 -1
  48. package/sidecar/dist/src/capture/api.d.ts +31 -1
  49. package/sidecar/dist/src/capture/check-probe.d.ts +15 -9
  50. package/sidecar/dist/src/capture/check-probe.js +36 -11
  51. package/sidecar/dist/src/capture/index.d.ts +9 -3
  52. package/sidecar/dist/src/capture/index.js +9 -2
  53. package/sidecar/dist/src/capture/result-label.js +3 -1
  54. package/sidecar/dist/src/capture/type-reasons.json +78 -0
  55. package/sidecar/dist/src/definition-resolver.d.ts +4 -4
  56. package/sidecar/dist/src/definition-resolver.js +8 -9
  57. package/sidecar/dist/src/engine-stamp.json +1 -0
  58. package/sidecar/dist/src/held-shadow.d.ts +60 -0
  59. package/sidecar/dist/src/held-shadow.js +222 -0
  60. package/sidecar/dist/src/index.js +47 -1
  61. package/sidecar/dist/src/library-claims.d.ts +3 -1
  62. package/sidecar/dist/src/library-claims.js +79 -3
  63. package/sidecar/dist/src/type-home.d.ts +12 -0
  64. package/sidecar/dist/src/type-home.js +41 -1
  65. package/sidecar/dist/src/type-inferrer.d.ts +8 -3
  66. package/sidecar/dist/src/type-inferrer.js +36 -18
  67. package/sidecar/dist/src/type-structural-expander.d.ts +1 -11
  68. package/sidecar/dist/src/types.d.ts +43 -5
  69. package/sidecar/dist/src/validators.d.ts +293 -246
  70. package/sidecar/dist/src/validators.js +8 -0
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA,kEAAkE;AAClE,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,qEAAqE;AACrE,2DAA2D;AAC3D,EAAE;AACF,+EAA+E;AAC/E,qEAAqE;AACrE,EAAE;AACF,4EAA4E;AAC5E,gFAAgF;AAChF,mDAAmD;AACnD,gFAAgF;AAChF,g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"0.3.157",
4
4
  "carrickCache": {
5
5
  "cache_version": 22,
6
6
  "intent_cache_version": 2
@@ -115,11 +115,11 @@
115
115
  "zod": "^3.23.0"
116
116
  },
117
117
  "optionalDependencies": {
118
- "@carrick-tools/cli-darwin-arm64": "0.3.156",
119
- "@carrick-tools/cli-darwin-x64": "0.3.156",
120
- "@carrick-tools/cli-linux-arm64": "0.3.156",
121
- "@carrick-tools/cli-linux-x64": "0.3.156",
122
- "@carrick-tools/cli-win32-x64": "0.3.156"
118
+ "@carrick-tools/cli-darwin-arm64": "0.3.157",
119
+ "@carrick-tools/cli-darwin-x64": "0.3.157",
120
+ "@carrick-tools/cli-linux-arm64": "0.3.157",
121
+ "@carrick-tools/cli-linux-x64": "0.3.157",
122
+ "@carrick-tools/cli-win32-x64": "0.3.157"
123
123
  },
124
124
  "devDependencies": {
125
125
  "@types/node": "^24.13.3"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "carrick",
3
3
  "description": "Claude Code plugin for Carrick, which indexes TypeScript codebases across service and repository boundaries. After each edit it adds the file's routes, calls, and cross-service type mismatches to the session, and it registers Carrick's language server. It pairs with the Carrick MCP server, which lets agents search functions by intent rather than name.",
4
- "version": "0.3.156",
4
+ "version": "0.3.157",
5
5
  "author": {
6
6
  "name": "Carrick",
7
7
  "email": "hello@carrick.tools"
@@ -8,6 +8,7 @@
8
8
  * stdio `capture_v2` action is the only surface the Rust client sees.
9
9
  */
10
10
  import type { ResultLabel } from './result-label.js';
11
+ import type TypeReasons from './type-reasons.json';
11
12
  export type { ResultLabel };
12
13
  /**
13
14
  * How the anchor was produced upstream (design-doc amendment 2). Recorded so
@@ -273,8 +274,25 @@ export type SelfCheckOutcome = 'ok' | 'allowlisted_external' | 'decayed_internal
273
274
  * layer placed (carrick#3995). Stamped at the entry's root.
274
275
  * - `not_recorded`: the position carries a top type and this layer has no
275
276
  * cause for it.
277
+ *
278
+ * The words are the keys of `./type-reasons.json`, the one list of reasons
279
+ * (carrick#4231): each word's reader sentence and whether it means the scan
280
+ * DECIDED there is no contract (`always`, `at_call_result`, `never`). The
281
+ * engine's decided set and the Rust driver's `reason_decided` both read that
282
+ * file. A word stays in it while any stored index can still carry it.
283
+ */
284
+ export type TypeProvenanceReason = keyof typeof TypeReasons;
285
+ /**
286
+ * When a root `unknown` with this reason is a decision rather than a failed
287
+ * read: at every site, only at a consumer call's result, or never.
276
288
  */
277
- export type TypeProvenanceReason = 'declared' | 'unresolved_import' | 'budget_exhausted' | 'no_payload_evidence' | 'machinery_envelope' | 'coerced_input' | 'no_success_payload' | 'no_request_body' | 'projected_value_only' | 'serialised_body_unread' | 'body_built_by_callee' | 'reshaped_by_callback' | 'result_member_missing' | 'bound_by_callers' | 'body_member_undecided' | 'not_located' | 'site_unreadable' | 'unplaced_top_type' | 'not_recorded';
289
+ export type ReasonDecided = 'always' | 'at_call_result' | 'never';
290
+ /** One word's row in `./type-reasons.json`. */
291
+ export interface TypeReason {
292
+ /** What a reader is told the word means. */
293
+ sentence: string;
294
+ decided: ReasonDecided;
295
+ }
278
296
  /**
279
297
  * One `any`/`unknown` finding inside a captured or inferred type, with its
280
298
  * position and its cause. Sorted by `path` wherever a list is emitted, so the
@@ -506,6 +524,18 @@ export type ProbeProtocol = 'http' | 'graphql' | 'socket' | 'pubsub';
506
524
  * pairs are `both`.
507
525
  */
508
526
  export type ProbeTypeKind = 'request' | 'response' | 'both';
527
+ /**
528
+ * The representation a type is printed in.
529
+ *
530
+ * `'declared'` prints the type the source declares. `'json'` prints what a
531
+ * JSON serialiser puts on the wire for a value of that type (carrick#1163):
532
+ * `JSON.stringify` calls a value's `toJSON()` and serialises its RESULT, so a
533
+ * `Date` travels as the string its `toJSON` returns, and so does any other
534
+ * type that declares one. The mapping is read from the compiler's own
535
+ * signature, never from a list of type names. Which payloads travel in which
536
+ * form is `wireFormFor` (check-probe.ts), the one rule.
537
+ */
538
+ export type WireFormat = 'declared' | 'json';
509
539
  /** One capture stub package to assemble into the check workspace. */
510
540
  export interface CheckStubInput {
511
541
  /** Service name (used for scrub labels + pair endpoints). */
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * Seam: node builtins + `typescript` + this bundle only. No imports needed here.
32
32
  */
33
- import type { CheckPairEndpoint, CheckPairSpec, ProbeProtocol, ProbeTypeKind } from './api.js';
33
+ import type { CheckPairEndpoint, CheckPairSpec, ProbeProtocol, ProbeTypeKind, WireFormat } from './api.js';
34
34
  /** Which pair endpoint supplies the `sent` value / the `expected` binding. */
35
35
  export type Side = 'producer' | 'consumer';
36
36
  export interface Direction {
@@ -49,15 +49,21 @@ export interface Direction {
49
49
  */
50
50
  export declare function directionFor(protocol: ProbeProtocol, typeKind: ProbeTypeKind): Direction;
51
51
  /**
52
- * Whether a payload travels in its JSON wire form: the one rule the judge and
53
- * the stored type text both read (carrick-cloud#3503). An `http` payload is
54
- * serialised before it travels, and `JSON.stringify` writes a value's
55
- * `toJSON()` result, so the SENDING side of an `http` pair (`directionFor`'s
56
- * `sent`: the producer of a response, the consumer of a request body) is
57
- * what the other side receives in wire form. Every other protocol is compared
58
- * and stored as declared (carrick#4275 decides theirs here, once).
52
+ * The form a payload travels in: the one rule the judge and the stored type
53
+ * text both read (carrick-cloud#3503, carrick#4275). Only the SENDING side
54
+ * (`directionFor`'s `sent`) is ever transformed, because that is where
55
+ * serialisation happens:
56
+ *
57
+ * - `http`: a body is serialised with `JSON.stringify`, which writes a
58
+ * value's `toJSON()` result, so the producer of a response and the
59
+ * consumer of a request body send their JSON form;
60
+ * - `graphql` response: the server sends each leaf through its scalar's
61
+ * `serialize`, so a resolver's `Date` reaches the client as a string. The
62
+ * request (variables) is read by the server as declared;
63
+ * - socket and pub/sub payloads stay declared until the codec each library
64
+ * uses is a known fact: the codec belongs to the client, not the protocol.
59
65
  */
60
- export declare function sentInJsonWireForm(protocol: ProbeProtocol, typeKind: ProbeTypeKind, side: Side): boolean;
66
+ export declare function wireFormFor(protocol: ProbeProtocol, typeKind: ProbeTypeKind, side: Side): WireFormat;
61
67
  /** Deterministic FNV-1a (32-bit) over the pair's stable key. Never a path. */
62
68
  export declare function fnv1a(input: string): string;
63
69
  /** The pair ID is derived from the pair's semantic identity, not the workspace
@@ -51,16 +51,28 @@ export function directionFor(protocol, typeKind) {
51
51
  return { sent: 'producer', expected: 'consumer' };
52
52
  }
53
53
  /**
54
- * Whether a payload travels in its JSON wire form: the one rule the judge and
55
- * the stored type text both read (carrick-cloud#3503). An `http` payload is
56
- * serialised before it travels, and `JSON.stringify` writes a value's
57
- * `toJSON()` result, so the SENDING side of an `http` pair (`directionFor`'s
58
- * `sent`: the producer of a response, the consumer of a request body) is
59
- * what the other side receives in wire form. Every other protocol is compared
60
- * and stored as declared (carrick#4275 decides theirs here, once).
54
+ * The form a payload travels in: the one rule the judge and the stored type
55
+ * text both read (carrick-cloud#3503, carrick#4275). Only the SENDING side
56
+ * (`directionFor`'s `sent`) is ever transformed, because that is where
57
+ * serialisation happens:
58
+ *
59
+ * - `http`: a body is serialised with `JSON.stringify`, which writes a
60
+ * value's `toJSON()` result, so the producer of a response and the
61
+ * consumer of a request body send their JSON form;
62
+ * - `graphql` response: the server sends each leaf through its scalar's
63
+ * `serialize`, so a resolver's `Date` reaches the client as a string. The
64
+ * request (variables) is read by the server as declared;
65
+ * - socket and pub/sub payloads stay declared until the codec each library
66
+ * uses is a known fact: the codec belongs to the client, not the protocol.
61
67
  */
62
- export function sentInJsonWireForm(protocol, typeKind, side) {
63
- return protocol === 'http' && directionFor(protocol, typeKind).sent === side;
68
+ export function wireFormFor(protocol, typeKind, side) {
69
+ if (directionFor(protocol, typeKind).sent !== side)
70
+ return 'declared';
71
+ if (protocol === 'http')
72
+ return 'json';
73
+ if (protocol === 'graphql' && typeKind === 'response')
74
+ return 'json';
75
+ return 'declared';
64
76
  }
65
77
  /** Deterministic FNV-1a (32-bit) over the pair's stable key. Never a path. */
66
78
  export function fnv1a(input) {
@@ -252,7 +264,9 @@ export function buildProbe(spec, packageOf, unwidenedAliasFor, expectedTolerates
252
264
  push(`type SentBody = ${sentBodyType('Sent')};`);
253
265
  const sentBody = absentBodyAllowed ? 'SentBody' : 'Sent';
254
266
  push(`declare const sent: ${sentBody};`);
267
+ const wire = wireFormFor(spec.protocol, spec.type_kind, direction.sent);
255
268
  let assignmentLine;
269
+ let wireAssignmentLine;
256
270
  if (spec.protocol === 'graphql') {
257
271
  // GraphQL selection-set semantics (v1 `unwrapGraphqlPayload` parity): the
258
272
  // producer side (always `sent` for graphql — see the direction table) is
@@ -318,6 +332,18 @@ export function buildProbe(spec, packageOf, unwidenedAliasFor, expectedTolerates
318
332
  gateLines.set(push(`type _G_comparand_never = Assert<Not<IsNever<GqlComparand>>>;`), 'sent:never');
319
333
  push(`declare const sentComparand: GqlComparand;`);
320
334
  assignmentLine = push(`const expected: GqlExpected = sentComparand;`);
335
+ // The wire line over the comparand (carrick#4275): JSON applies after the
336
+ // envelope unwrap, so the unwrap reads the declared shape and never meets
337
+ // the transform. It mirrors `WireSent` below and keeps the comparand
338
+ // whenever that already assigns. The const is `sentWire`, the name the
339
+ // field report reads (`comparedTypes`).
340
+ if (wire === 'json') {
341
+ for (const line of jsonWireDeclarations(''))
342
+ push(line);
343
+ push(`type GqlWire = [GqlComparand] extends [GqlExpected] ? GqlComparand : (JsonWireSame<JsonWire<GqlComparand>, GqlComparand> extends true ? GqlComparand : JsonWire<GqlComparand>);`);
344
+ push(`declare const sentWire: GqlWire;`);
345
+ wireAssignmentLine = push(`const expectedWire: GqlExpected = sentWire;`);
346
+ }
321
347
  }
322
348
  else {
323
349
  assignmentLine = push(`const expected: Expected = sent;`);
@@ -336,8 +362,7 @@ export function buildProbe(spec, packageOf, unwidenedAliasFor, expectedTolerates
336
362
  // so a pair that agrees as declared never instantiates the mapped type (no
337
363
  // cost, and no way for the transform to turn an agreeing pair into a
338
364
  // disagreeing one). tsc stays the judge of both forms.
339
- let wireAssignmentLine;
340
- if (sentInJsonWireForm(spec.protocol, spec.type_kind, direction.sent)) {
365
+ if (spec.protocol !== 'graphql' && wire === 'json') {
341
366
  // Keep the DECLARED type whenever serialising changes nothing observable,
342
367
  // so the compiler's headline still names the real surface alias (the probe
343
368
  // prints `Sent`, which the scrub rewrites) instead of expanding a mapped
@@ -27,9 +27,15 @@
27
27
  * node builtins and `typescript`; the rest of the sidecar reaches it only
28
28
  * through ./api.js types and this file's `captureStub`.
29
29
  */
30
- import type { CaptureStubOptions, CaptureStubResult } from './api.js';
30
+ import type { CaptureStubOptions, CaptureStubResult, TypeProvenanceReason, TypeReason } from './api.js';
31
31
  import { WriteGuard } from './guarded-fs.js';
32
32
  export type { CaptureStubOptions, CaptureStubResult } from './api.js';
33
+ /**
34
+ * The one list of type reasons (carrick#4231), keyed by word. The Rust driver
35
+ * embeds the same file; `test/type-reasons-one-source.test.ts` checks every
36
+ * row's `decided` is one of the three values the cast states.
37
+ */
38
+ export declare const TYPE_REASONS: Readonly<Record<TypeProvenanceReason, TypeReason>>;
33
39
  export { DenoProject, findDenoConfig } from './deno-project.js';
34
40
  export { sidecarCompilerOptions } from './compiler-options.js';
35
41
  export { withStubResolution, type StubModuleResolver } from './stub-resolution.js';
@@ -46,9 +52,9 @@ export { toPosix } from './installed-package.js';
46
52
  export { constituentsOf } from './result-label.js';
47
53
  export { moduleExport } from './anchors.js';
48
54
  export { callNamedBy, callResultNamesNoCall, isFrameworkMachinery, nodeByLocatorText, normalizeLocatorText, symbolDeclaredOutside, typeIsOrContainsMachinery, wrapsValueTransparently, type DeclaredOutside, } from './site-node.js';
49
- export { runCheck } from './check.js';
55
+ export { runCheck, judgeTscPath } from './check.js';
50
56
  export type { CheckProgress } from './check.js';
51
- export { jsonWireDeclarations, sentInJsonWireForm } from './check-probe.js';
57
+ export { jsonWireDeclarations, wireFormFor } from './check-probe.js';
52
58
  export { findDisqualifyingTopTypes } from './deep-walk.js';
53
59
  /**
54
60
  * The name of THIS capture's surface entry, without an extension
@@ -49,7 +49,14 @@ import { findServiceTsconfig } from './service-config.js';
49
49
  import { placeEmittedTree, surfaceModuleInTree } from './outside-root.js';
50
50
  import { WriteGuard } from './guarded-fs.js';
51
51
  import { sidecarCompilerOptions } from './compiler-options.js';
52
+ import typeReasons from './type-reasons.json' with { type: 'json' };
52
53
  import { boundedCompilerHost, boundedSys, isInsideCheckout, untrustedReadBound } from './checkout.js';
54
+ /**
55
+ * The one list of type reasons (carrick#4231), keyed by word. The Rust driver
56
+ * embeds the same file; `test/type-reasons-one-source.test.ts` checks every
57
+ * row's `decided` is one of the three values the cast states.
58
+ */
59
+ export const TYPE_REASONS = typeReasons;
53
60
  export { DenoProject, findDenoConfig } from './deno-project.js';
54
61
  export { sidecarCompilerOptions } from './compiler-options.js';
55
62
  export { withStubResolution } from './stub-resolution.js';
@@ -71,8 +78,8 @@ export { moduleExport } from './anchors.js';
71
78
  export { callNamedBy, callResultNamesNoCall, isFrameworkMachinery, nodeByLocatorText, normalizeLocatorText, symbolDeclaredOutside, typeIsOrContainsMachinery, wrapsValueTransparently, } from './site-node.js';
72
79
  // v2 check core ("tsc as the judge"). Same bundle, same seam: the sidecar
73
80
  // reaches it only through this door (index.js).
74
- export { runCheck } from './check.js';
75
- export { jsonWireDeclarations, sentInJsonWireForm } from './check-probe.js';
81
+ export { runCheck, judgeTscPath } from './check.js';
82
+ export { jsonWireDeclarations, wireFormFor } from './check-probe.js';
76
83
  export { findDisqualifyingTopTypes } from './deep-walk.js';
77
84
  const SURFACE_ENTRY_BASENAME = '__carrick_surface__';
78
85
  /** Captures made by this process, so each one's entry file has a name of its
@@ -24,8 +24,10 @@ const NULLISH = ts.TypeFlags.Undefined | ts.TypeFlags.Null | ts.TypeFlags.Void;
24
24
  export function constituentsOf(type) {
25
25
  return type.isUnion() ? type.types : [type];
26
26
  }
27
+ /** The abstain's word, checked against the one list of reasons. */
28
+ const RESULT_MEMBER_MISSING = 'result_member_missing';
27
29
  function missing(what) {
28
- return { abstain: `result_member_missing: ${what}` };
30
+ return { abstain: `${RESULT_MEMBER_MISSING}: ${what}` };
29
31
  }
30
32
  /**
31
33
  * Read `label` off a call's type. `raw` is the type as the call returns it and
@@ -0,0 +1,78 @@
1
+ {
2
+ "declared": {
3
+ "sentence": "declared that way in the code or in a library it calls",
4
+ "decided": "never"
5
+ },
6
+ "unresolved_import": {
7
+ "sentence": "a dependency or generated module could not be resolved on the scanned checkout",
8
+ "decided": "never"
9
+ },
10
+ "budget_exhausted": {
11
+ "sentence": "the type walk hit its budget before resolving this",
12
+ "decided": "never"
13
+ },
14
+ "no_payload_evidence": {
15
+ "sentence": "nothing in the handler states what it returns",
16
+ "decided": "never"
17
+ },
18
+ "machinery_envelope": {
19
+ "sentence": "the value sits inside framework machinery the walk does not read through",
20
+ "decided": "at_call_result"
21
+ },
22
+ "coerced_input": {
23
+ "sentence": "the request schema takes this position untyped and coerces it to the type printed here, so the finding is what a caller may send rather than the printed member",
24
+ "decided": "never"
25
+ },
26
+ "no_success_payload": {
27
+ "sentence": "every response the route sends is an error or a redirect, so the scan found no success body and compared nothing at this site",
28
+ "decided": "always"
29
+ },
30
+ "no_request_body": {
31
+ "sentence": "the request read located here is a path parameter or a query the route validates rather than a body, so the scan compared nothing at this site",
32
+ "decided": "always"
33
+ },
34
+ "projected_value_only": {
35
+ "sentence": "every read of the call's result takes a member out of it, so the site states part of a payload rather than a whole one and the scan compared nothing here",
36
+ "decided": "always"
37
+ },
38
+ "serialised_body_unread": {
39
+ "sentence": "the handler returns a status and a body it serialised to a string, and the scan could not see what it serialised, so nothing was compared at this site. Read the handler for the body's shape rather than this type",
40
+ "decided": "always"
41
+ },
42
+ "body_built_by_callee": {
43
+ "sentence": "the call hands its argument to a function that builds the request body from it in a way the scan could not type, so the argument is not the body and nothing was compared at this site. Read the called function for the body's shape",
44
+ "decided": "always"
45
+ },
46
+ "bound_by_callers": {
47
+ "sentence": "the type here is still an open type parameter of a generic function, which only that function's callers set, so this site states no type of its own and nothing was compared here. Read the callers of the function that declares the parameter (the detail names it) for the type",
48
+ "decided": "always"
49
+ },
50
+ "body_member_undecided": {
51
+ "sentence": "the call's result is an object that holds the transport response beside other members, and the called function's code does not settle which member holds the parsed body, so the site states no contract and nothing was compared here. Read the called function's returns for the member that holds the body",
52
+ "decided": "always"
53
+ },
54
+ "result_member_missing": {
55
+ "sentence": "the library this call uses says which part of its result holds the response body, and the type at this call has no such part, so the site states no contract and nothing was compared here",
56
+ "decided": "always"
57
+ },
58
+ "reshaped_by_callback": {
59
+ "sentence": "the call's result is handed unread to a callback in its chain that builds a new value from it, and nothing in the chain states the body, so the site states no contract and nothing was compared here",
60
+ "decided": "always"
61
+ },
62
+ "not_located": {
63
+ "sentence": "the scan found no value in the code for this payload, so no type was read at this site",
64
+ "decided": "never"
65
+ },
66
+ "site_unreadable": {
67
+ "sentence": "the scan located the site and the compiler engine could not read a type there",
68
+ "decided": "never"
69
+ },
70
+ "unplaced_top_type": {
71
+ "sentence": "at a member the scan could not identify",
72
+ "decided": "never"
73
+ },
74
+ "not_recorded": {
75
+ "sentence": "the layer that produced it recorded no cause",
76
+ "decided": "never"
77
+ }
78
+ }
@@ -11,10 +11,10 @@
11
11
  * line itself is the as-written form.
12
12
  * - `expanded`: the fully *structural* form, with every named member type
13
13
  * inlined to its member structure, recursively. The sending side of an
14
- * `http` payload prints in JSON wire form (a `Date` as `string`), by the
15
- * rule the judge compares it under (`sentInJsonWireForm`,
16
- * carrick-cloud#3503): the stored text says what travels. `definition`
17
- * stays as written.
14
+ * `http` payload and a GraphQL producer response print in JSON wire form
15
+ * (a `Date` as `string`), by the rule the judge compares them under
16
+ * (`wireFormFor`, carrick-cloud#3503, carrick#4275): the stored text says
17
+ * what travels. `definition` stays as written.
18
18
  *
19
19
  * An alias whose own type did not resolve produces neither: the tree is read
20
20
  * as its self-check read it, so a reference that leaves it and that the
@@ -11,10 +11,10 @@
11
11
  * line itself is the as-written form.
12
12
  * - `expanded`: the fully *structural* form, with every named member type
13
13
  * inlined to its member structure, recursively. The sending side of an
14
- * `http` payload prints in JSON wire form (a `Date` as `string`), by the
15
- * rule the judge compares it under (`sentInJsonWireForm`,
16
- * carrick-cloud#3503): the stored text says what travels. `definition`
17
- * stays as written.
14
+ * `http` payload and a GraphQL producer response print in JSON wire form
15
+ * (a `Date` as `string`), by the rule the judge compares them under
16
+ * (`wireFormFor`, carrick-cloud#3503, carrick#4275): the stored text says
17
+ * what travels. `definition` stays as written.
18
18
  *
19
19
  * An alias whose own type did not resolve produces neither: the tree is read
20
20
  * as its self-check read it, so a reference that leaves it and that the
@@ -43,7 +43,7 @@
43
43
  import * as path from 'node:path';
44
44
  import * as fs from 'node:fs';
45
45
  import { Project, Node } from 'ts-morph';
46
- import { sentInJsonWireForm, sidecarCompilerOptions, withStubResolution } from './capture/index.js';
46
+ import { wireFormFor, sidecarCompilerOptions, withStubResolution } from './capture/index.js';
47
47
  import { defaultLibraryOptions } from './default-library.js';
48
48
  import { expandTypeStructural, } from './type-structural-expander.js';
49
49
  export class DefinitionResolver {
@@ -156,10 +156,9 @@ export class DefinitionResolver {
156
156
  // form the payload travels in where the judge compares that form. An
157
157
  // RPC procedure fails closed to the declared form: its router's
158
158
  // transformer, not JSON, decides what travels (carrick#4275).
159
- const wire = !payload.procedure &&
160
- sentInJsonWireForm(payload.protocol, payload.type_kind, payload.side)
161
- ? 'json'
162
- : 'declared';
159
+ const wire = payload.procedure
160
+ ? 'declared'
161
+ : wireFormFor(payload.protocol, payload.type_kind, payload.side);
163
162
  const expanded = expandTypeStructural(type, origin, { wire });
164
163
  return { type_alias: alias, definition, expanded };
165
164
  }
@@ -0,0 +1 @@
1
+ {"inputs_sha256":"c1246197a0eb92ca60d59fba5847424f2654dcf52c08307d5badee9f3e8b3314"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * The shadow tree a held-open compiler reads: a copy of one service's program
3
+ * that lives outside the checkout and loads on TypeScript 7.
4
+ *
5
+ * The scan's loader builds the program on TypeScript 6 (repo tsconfig, Deno
6
+ * graph, workspace links). TypeScript 7's command line refuses options the
7
+ * repo may set (`baseUrl`, `moduleResolution: node`, `target: es5`,
8
+ * `esModuleInterop: false`), and a config outside the repo cannot govern files
9
+ * inside it, so the held compiler never reads the repo's own config or files.
10
+ * It reads this tree instead:
11
+ *
12
+ * - `w/<repo-relative path>`: byte copies of the service's own files;
13
+ * - `v/<absolute path>`: every other program file (installed packages,
14
+ * runtime types), with each import, export, import type, augmentation and
15
+ * `types` reference pinned to the copy of the file TypeScript 6 resolved it
16
+ * to, so one package name that resolves to two versions stays two files;
17
+ * - `w/tsconfig.json`: generated, `moduleResolution: bundler`, exact `paths`
18
+ * for the bare specifiers the own files use, every non-library program file
19
+ * named in `files` (so `@types` the loader included on its own are
20
+ * explicit), and the library files TypeScript 6 loaded named in `lib`.
21
+ *
22
+ * Own = under the scanned repo, not under a `node_modules` segment, not under
23
+ * `.carrick/`. A bare import added later is not in `paths` (it needs a new
24
+ * shadow).
25
+ */
26
+ import type { ProjectLoader } from './project-loader.js';
27
+ /** What `write_shadow` answers. */
28
+ export interface ShadowResult {
29
+ /** Absolute path of the generated `w/tsconfig.json`. */
30
+ tsconfig: string;
31
+ /** The service's own files, repo-relative (to the scan root), sorted. */
32
+ own_files: string[];
33
+ /** Program files copied to `v/`. */
34
+ vendored: number;
35
+ /** Specifiers and references rewritten inside those copies. */
36
+ rewritten: number;
37
+ /** Specifiers TypeScript 6 left unresolved or resolved outside the program. */
38
+ unresolved: number;
39
+ /** A bare specifier two own files resolve to different files: reported, not solved. */
40
+ path_conflicts: Array<{
41
+ spec: string;
42
+ a: string;
43
+ b: string;
44
+ from: string;
45
+ }>;
46
+ /** The bare specifiers the own files use, as written to `paths`. */
47
+ bare_specifiers: string[];
48
+ /** Some own file imports a package named `hono` that resolved into the program. */
49
+ hono: boolean;
50
+ /** The native TypeScript 7 executable, or null when only TypeScript 6's tsc is installed. */
51
+ native_tsc: string | null;
52
+ }
53
+ /** `judgeTscPath()` when it is the native executable, else null (no held compiler). */
54
+ export declare function nativeTscPath(tscPath?: string): string | null;
55
+ /**
56
+ * Write the shadow tree of the loader's default program under `outDir` (which
57
+ * must be outside the scan root). Reads the program; changes nothing in the
58
+ * checkout.
59
+ */
60
+ export declare function writeShadow(loader: ProjectLoader, outDir: string): ShadowResult;