carrick 0.3.135 → 0.3.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/scripts/install-scanned-deps.sh +142 -2
- package/sidecar/dist/src/capture/api.d.ts +18 -2
- package/sidecar/dist/src/capture/check.d.ts +33 -0
- package/sidecar/dist/src/capture/check.js +102 -10
- package/sidecar/dist/src/capture/index.js +71 -1
- package/sidecar/dist/src/index.js +17 -11
- package/sidecar/dist/src/library-claims.d.ts +27 -1
- package/sidecar/dist/src/library-claims.js +1369 -90
- package/sidecar/dist/src/result-candidates.d.ts +7 -0
- package/sidecar/dist/src/result-candidates.js +12 -5
- package/sidecar/dist/src/runtime-emitter.d.ts +39 -0
- package/sidecar/dist/src/runtime-emitter.js +65 -0
- package/sidecar/dist/src/server-labels.js +2 -2
- package/sidecar/dist/src/stated-params.d.ts +73 -3
- package/sidecar/dist/src/stated-params.js +292 -9
- package/sidecar/dist/src/type-inferrer.d.ts +80 -54
- package/sidecar/dist/src/type-inferrer.js +273 -153
- package/sidecar/dist/src/types.d.ts +127 -12
- package/sidecar/dist/src/validators.d.ts +1428 -162
- package/sidecar/dist/src/validators.js +40 -5
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
*/
|
|
38
38
|
import { ts, type Project } from 'ts-morph';
|
|
39
39
|
import { type PackageDirectoryOf } from './position-rows.js';
|
|
40
|
-
import type { ClaimSlot, LibraryCheck, LibrarySurface, SemanticsCheck, SemanticsModule, SemanticsDeclaration, SemanticsResult } from './types.js';
|
|
40
|
+
import type { ClaimSlot, LibraryCheck, LibrarySurface, ResultShape, SemanticsCheck, SemanticsModule, SemanticsDeclaration, SemanticsResult } from './types.js';
|
|
41
41
|
/** How one check came out, before it is stamped with its claim and receiver. */
|
|
42
42
|
type Outcome = {
|
|
43
43
|
verdict: 'verified';
|
|
@@ -55,6 +55,12 @@ type Outcome = {
|
|
|
55
55
|
* itself verified (carrick#2968). Only `request_member_missing`.
|
|
56
56
|
*/
|
|
57
57
|
requestDropped?: string;
|
|
58
|
+
/**
|
|
59
|
+
* In-process only: on a type receiver, the declarations its type stands
|
|
60
|
+
* on (`declaredSymbols`), the key a reader joins a receiver by
|
|
61
|
+
* (carrick#3046).
|
|
62
|
+
*/
|
|
63
|
+
receiverTypes?: readonly ts.Declaration[];
|
|
58
64
|
} | {
|
|
59
65
|
verdict: 'failed' | 'unchecked';
|
|
60
66
|
reason: string;
|
|
@@ -198,6 +204,22 @@ export declare function declarationKey(declaration: ts.Node): string;
|
|
|
198
204
|
*/
|
|
199
205
|
export interface LabelledMembers {
|
|
200
206
|
sends: ReadonlyMap<string, ClaimSlot>;
|
|
207
|
+
/**
|
|
208
|
+
* The properties a service assigns to reply (`form: set`, carrick#3047),
|
|
209
|
+
* by {@link declarationKey} of the property, with the slot the assigned
|
|
210
|
+
* value sits in (always argument 0). Never in `sends`.
|
|
211
|
+
*/
|
|
212
|
+
sets: ReadonlyMap<string, ClaimSlot>;
|
|
213
|
+
/**
|
|
214
|
+
* The route members whose handler's return is the reply (`returns` on a
|
|
215
|
+
* receive op, carrick#3054), by {@link declarationKey} of the route member,
|
|
216
|
+
* with the slot the handler sits in and the part of the return that holds
|
|
217
|
+
* the body. Never in `sends`.
|
|
218
|
+
*/
|
|
219
|
+
returns: ReadonlyMap<string, {
|
|
220
|
+
handler: ClaimSlot;
|
|
221
|
+
result?: ResultShape;
|
|
222
|
+
}>;
|
|
201
223
|
bodies: ReadonlySet<string>;
|
|
202
224
|
/** How each label read came out (`verified`, or the reason it was not), for the log. */
|
|
203
225
|
outcomes?: Readonly<Record<string, number>>;
|
|
@@ -206,7 +228,11 @@ export interface LabelledMembers {
|
|
|
206
228
|
export interface SurfaceOptions {
|
|
207
229
|
/** Each member's `handlers` (carrick#2674 S3). */
|
|
208
230
|
handlers?: boolean;
|
|
231
|
+
/** `types[]` widened, `settable`, `types_left_out` (carrick#3050). */
|
|
232
|
+
types?: boolean;
|
|
209
233
|
/** Each signature's `result_candidates` (carrick#2817). */
|
|
210
234
|
resultCandidates?: boolean;
|
|
235
|
+
/** Handler-parameter members the whole call may list (default `HANDLER_LISTING_BUDGET`, carrick#3016). */
|
|
236
|
+
maxHandlerMembers?: number;
|
|
211
237
|
}
|
|
212
238
|
export {};
|