carrick 0.3.133 → 0.3.135
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/contract.d.ts +6 -0
- package/dist/contract.js.map +1 -1
- package/dist/hook/post-edit.d.ts +10 -5
- package/dist/hook/post-edit.js +80 -23
- package/dist/hook/post-edit.js.map +1 -1
- package/dist/hook/refresh.d.ts +23 -3
- package/dist/hook/refresh.js +48 -6
- package/dist/hook/refresh.js.map +1 -1
- package/dist/hook/reuse.d.ts +7 -21
- package/dist/hook/reuse.js +23 -36
- package/dist/hook/reuse.js.map +1 -1
- package/dist/hook/session-start.js +15 -2
- package/dist/hook/session-start.js.map +1 -1
- package/dist/hook/stop.js.map +1 -1
- package/dist/init/agents-section.js +1 -1
- package/dist/init/agents-section.js.map +1 -1
- package/dist/init/doctor.js +4 -0
- package/dist/init/doctor.js.map +1 -1
- package/dist/init/hosted.d.ts +1 -0
- package/dist/init/hosted.js +4 -1
- package/dist/init/hosted.js.map +1 -1
- package/dist/init/remove.js +7 -1
- package/dist/init/remove.js.map +1 -1
- package/dist/init/repo-copies.js +3 -1
- package/dist/init/repo-copies.js.map +1 -1
- package/dist/init/run.d.ts +1 -1
- package/dist/init/run.js +10 -2
- package/dist/init/run.js.map +1 -1
- package/dist/init/task-skills.d.ts +22 -1
- package/dist/init/task-skills.js +65 -1
- package/dist/init/task-skills.js.map +1 -1
- package/dist/render.d.ts +41 -16
- package/dist/render.js +91 -102
- package/dist/render.js.map +1 -1
- package/package.json +10 -9
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/capture/anchors.js +18 -1
- package/sidecar/dist/src/capture/api.d.ts +17 -4
- package/sidecar/dist/src/capture/check-workspace.js +1 -1
- package/sidecar/dist/src/capture/check.d.ts +44 -0
- package/sidecar/dist/src/capture/check.js +112 -10
- package/sidecar/dist/src/capture/index.js +18 -0
- package/sidecar/dist/src/capture/installed-package.d.ts +5 -0
- package/sidecar/dist/src/capture/installed-package.js +64 -6
- package/sidecar/dist/src/capture/machine-paths.d.ts +44 -0
- package/sidecar/dist/src/capture/machine-paths.js +97 -0
- package/sidecar/dist/src/capture/node-builder.d.ts +2 -0
- package/sidecar/dist/src/capture/node-builder.js +1 -1
- package/sidecar/dist/src/capture/paths-rewrite.js +3 -3
- package/sidecar/dist/src/capture/result-label.d.ts +42 -0
- package/sidecar/dist/src/capture/result-label.js +91 -0
- package/sidecar/dist/src/capture/self-check.js +13 -2
- package/sidecar/dist/src/index.js +117 -5
- package/sidecar/dist/src/infer-cache.d.ts +125 -0
- package/sidecar/dist/src/infer-cache.js +244 -0
- package/sidecar/dist/src/library-claims.d.ts +35 -3
- package/sidecar/dist/src/library-claims.js +417 -61
- package/sidecar/dist/src/node-index.d.ts +53 -0
- package/sidecar/dist/src/node-index.js +100 -0
- package/sidecar/dist/src/project-loader.d.ts +11 -0
- package/sidecar/dist/src/project-loader.js +15 -0
- package/sidecar/dist/src/result-candidates.d.ts +28 -0
- package/sidecar/dist/src/result-candidates.js +209 -0
- package/sidecar/dist/src/type-inferrer.d.ts +27 -0
- package/sidecar/dist/src/type-inferrer.js +175 -43
- package/sidecar/dist/src/types.d.ts +77 -1
- package/sidecar/dist/src/unwidened.js +10 -1
- package/sidecar/dist/src/validators.d.ts +931 -197
- package/sidecar/dist/src/validators.js +34 -0
- package/templates/skills/carrick-reuse.md +11 -0
|
@@ -50,6 +50,11 @@ type Outcome = {
|
|
|
50
50
|
*/
|
|
51
51
|
members?: readonly ts.Declaration[];
|
|
52
52
|
bodyMembers?: readonly ts.Declaration[];
|
|
53
|
+
/**
|
|
54
|
+
* Stamped: why a receive op's `request` was dropped while the op
|
|
55
|
+
* itself verified (carrick#2968). Only `request_member_missing`.
|
|
56
|
+
*/
|
|
57
|
+
requestDropped?: string;
|
|
53
58
|
} | {
|
|
54
59
|
verdict: 'failed' | 'unchecked';
|
|
55
60
|
reason: string;
|
|
@@ -86,6 +91,15 @@ export interface ModuleGraph {
|
|
|
86
91
|
/** How the program resolves `name` from `from`; `undefined` where there is no graph, and Node resolution answers. */
|
|
87
92
|
resolveModule(name: string, from: string, options: ts.CompilerOptions): ts.ResolvedModuleFull | undefined;
|
|
88
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Test instrumentation, never on the wire: how many times the lister built a
|
|
96
|
+
* handler parameter's members and printed a type, since the caller last
|
|
97
|
+
* reset them (carrick#2977).
|
|
98
|
+
*/
|
|
99
|
+
export declare const surfaceReadCounts: {
|
|
100
|
+
handlerMemberBuilds: number;
|
|
101
|
+
typePrints: number;
|
|
102
|
+
};
|
|
89
103
|
export declare class LibraryClaimsVerifier {
|
|
90
104
|
private readonly project;
|
|
91
105
|
private readonly graph;
|
|
@@ -124,9 +138,20 @@ export declare class LibraryClaimsVerifier {
|
|
|
124
138
|
* (`receiverExpression` on the export's `importLine`, read through
|
|
125
139
|
* `DeclarationReader.returnOf`) and lists from it.
|
|
126
140
|
*
|
|
141
|
+
* A member of an `instance:` receiver whose call returns another object
|
|
142
|
+
* that routes are registered on lists that object as its `scope_receiver`
|
|
143
|
+
* (carrick#2774), built as the verifier builds a scope step, under a cap of
|
|
144
|
+
* its own and left out of the hash.
|
|
145
|
+
*
|
|
146
|
+
* Each member's handler-parameter members (carrick#2674 S3) are listed
|
|
147
|
+
* only when `options.handlers` is set, and each signature's result
|
|
148
|
+
* candidates (carrick#2817) only when `options.resultCandidates` is
|
|
149
|
+
* (carrick#2966): on a large package either costs more than the rest of the
|
|
150
|
+
* listing.
|
|
151
|
+
*
|
|
127
152
|
* `surface_sha256` is the full-surface hash (see `fullSurfaceSha256`).
|
|
128
153
|
*/
|
|
129
|
-
listSurface(fromDir: string, packages: string[], maxEntries: number, only?: Readonly<Record<string, string[]
|
|
154
|
+
listSurface(fromDir: string, packages: string[], maxEntries: number, only?: Readonly<Record<string, string[]>>, options?: SurfaceOptions): ListedSurface;
|
|
130
155
|
/** `read` over a probe file holding `lines` in `fromDir`, removed again afterwards. */
|
|
131
156
|
private readProbe;
|
|
132
157
|
}
|
|
@@ -140,8 +165,8 @@ export interface ListedSurface {
|
|
|
140
165
|
* array of `[package, exports]` for every surface that listed at least one
|
|
141
166
|
* export, sorted by `package` (code unit order). A specifier that lists
|
|
142
167
|
* nothing (unresolved, local, no value exports) is left out, so asking for a
|
|
143
|
-
* subpath a version does not have changes nothing. Handler members
|
|
144
|
-
* hashed. Type text already names
|
|
168
|
+
* subpath a version does not have changes nothing. Handler members, result
|
|
169
|
+
* candidates and scope receivers are not hashed. Type text already names
|
|
145
170
|
* the request's directory as `<root>`.
|
|
146
171
|
*/
|
|
147
172
|
export declare function fullSurfaceSha256(surfaces: readonly LibrarySurface[]): string;
|
|
@@ -177,4 +202,11 @@ export interface LabelledMembers {
|
|
|
177
202
|
/** How each label read came out (`verified`, or the reason it was not), for the log. */
|
|
178
203
|
outcomes?: Readonly<Record<string, number>>;
|
|
179
204
|
}
|
|
205
|
+
/** What a surface listing adds beyond the hashed surface, each only when asked (carrick#2966). */
|
|
206
|
+
export interface SurfaceOptions {
|
|
207
|
+
/** Each member's `handlers` (carrick#2674 S3). */
|
|
208
|
+
handlers?: boolean;
|
|
209
|
+
/** Each signature's `result_candidates` (carrick#2817). */
|
|
210
|
+
resultCandidates?: boolean;
|
|
211
|
+
}
|
|
180
212
|
export {};
|