@immediately-run/sandbox-protocol 0.1.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/README.md +78 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +26 -0
- package/dist/sandbox.d.ts +188 -0
- package/dist/sandbox.js +125 -0
- package/dist/sdk.d.ts +378 -0
- package/dist/sdk.js +202 -0
- package/package.json +54 -0
- package/snapshots/sandbox.json +791 -0
- package/snapshots/sdk.json +2123 -0
package/dist/sdk.d.ts
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
/** Every wire name this side speaks, as a union. */
|
|
2
|
+
export type WireName = 'api-catalog' | 'auth-state' | 'compile' | 'debug-enabled' | 'debug-log' | 'debug-query' | 'debug-query-result' | 'diagnostics' | 'dnd-cancel' | 'dropped-item' | 'editor-context' | 'form-factor' | 'fs-change' | 'invitations' | 'launch-dismiss' | 'launch-ended' | 'llm-provider' | 'metadata-update' | 'mount-add' | 'mount-remove' | 'protocol-contribute' | 'protocol-dnd' | 'protocol-editor' | 'protocol-fetch' | 'protocol-ipc' | 'protocol-launch' | 'protocol-llm' | 'protocol-secrets' | 'protocol-settings' | 'protocol-spaces' | 'protocol-task' | 'protocol-theme' | 'protocol-vcs' | 'region-message' | 'request-api-catalog' | 'request-auth-state' | 'request-debug-enabled' | 'request-diagnostics' | 'request-editor-context' | 'request-form-factor' | 'request-handshake' | 'request-invitations' | 'request-llm-provider' | 'request-mounts' | 'request-secrets-metadata' | 'request-session-mounts' | 'request-theme' | 'request-vcs-state' | 'sdk-handshake' | 'secrets-metadata' | 'session-mounts' | 'task-cancel' | 'task-complete' | 'task-input' | 'theme' | 'urlchange' | 'vcs-state';
|
|
3
|
+
/** `api-catalog` — push · host->app. polled with `request-api-catalog`. */
|
|
4
|
+
export declare const API_CATALOG = "api-catalog";
|
|
5
|
+
/** Read off this message today: `methods`. */
|
|
6
|
+
/** `auth-state` — push · host->app. polled with `request-auth-state`. */
|
|
7
|
+
export declare const AUTH_STATE = "auth-state";
|
|
8
|
+
/** Read off this message today: `state`. */
|
|
9
|
+
/** `compile` — message · host->app. */
|
|
10
|
+
export declare const COMPILE = "compile";
|
|
11
|
+
/** `debug-enabled` — push · host->app. polled with `request-debug-enabled`. */
|
|
12
|
+
export declare const DEBUG_ENABLED = "debug-enabled";
|
|
13
|
+
/** Read off this message today: `enabled`. */
|
|
14
|
+
/** `debug-log` — message · app->host. */
|
|
15
|
+
export declare const DEBUG_LOG = "debug-log";
|
|
16
|
+
export interface DebugLogPayload {
|
|
17
|
+
data: unknown;
|
|
18
|
+
level: "debug" | "error" | "info" | "warn";
|
|
19
|
+
message: string;
|
|
20
|
+
}
|
|
21
|
+
/** `debug-query` — message · host->app. */
|
|
22
|
+
export declare const DEBUG_QUERY = "debug-query";
|
|
23
|
+
export interface DebugQueryPayload {
|
|
24
|
+
id?: unknown;
|
|
25
|
+
method?: unknown;
|
|
26
|
+
params?: unknown;
|
|
27
|
+
}
|
|
28
|
+
/** `debug-query-result` — message · app->host. */
|
|
29
|
+
export declare const DEBUG_QUERY_RESULT = "debug-query-result";
|
|
30
|
+
export interface DebugQueryResultPayload {
|
|
31
|
+
error: string | undefined;
|
|
32
|
+
id: unknown;
|
|
33
|
+
ok: boolean;
|
|
34
|
+
result: unknown;
|
|
35
|
+
}
|
|
36
|
+
/** `diagnostics` — push · host->app. polled with `request-diagnostics`. */
|
|
37
|
+
export declare const DIAGNOSTICS = "diagnostics";
|
|
38
|
+
/** Read off this message today: `buildErrors`, `consoleEntries`, `provenance`. */
|
|
39
|
+
/** `dnd-cancel` — message · app->host. */
|
|
40
|
+
export declare const DND_CANCEL = "dnd-cancel";
|
|
41
|
+
/** `dropped-item` — message · host->app. */
|
|
42
|
+
export declare const DROPPED_ITEM = "dropped-item";
|
|
43
|
+
export interface DroppedItemPayload {
|
|
44
|
+
from: string;
|
|
45
|
+
item: {
|
|
46
|
+
bytes?: unknown | undefined;
|
|
47
|
+
kind: "dir" | "file";
|
|
48
|
+
mountId: string;
|
|
49
|
+
name: string;
|
|
50
|
+
relPath: string;
|
|
51
|
+
};
|
|
52
|
+
position: {
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** `editor-context` — push · host->app. polled with `request-editor-context`. DIVERGENT (R3-274e): declared-incomplete — the host (site-main channelBridge.ts) sends {dirtyPaths, openFiles, activeFile, viewedFile}; this side declares only {dirtyPaths, activeFile?} while the SDK reads all four. `viewedFile` (R3-268) and `openFiles` never entered this declaration. R3-274e picks one shape for both sides.. */
|
|
58
|
+
export declare const EDITOR_CONTEXT = "editor-context";
|
|
59
|
+
/** Read off this message today: `activeFile`, `dirtyPaths`, `openFiles`, `viewedFile`. */
|
|
60
|
+
/** `form-factor` — push · host->app. polled with `request-form-factor`. */
|
|
61
|
+
export declare const FORM_FACTOR = "form-factor";
|
|
62
|
+
/** Read off this message today: `formFactor`. */
|
|
63
|
+
/** `fs-change` — push · host->app. DIVERGENT (R3-274e): subset-reads with no declared owner on either side — the host sends {paths, epoch}; this side reads only `paths`, the SDK reads both. Nothing forces the two to agree, which is the divergence PLATFORM_LAYERING_SPEC §2 names as the exemplar. The `kind` also differs (message here, push channel in the SDK). R3-274e decides: keep `epoch` or drop it.. */
|
|
64
|
+
export declare const FS_CHANGE = "fs-change";
|
|
65
|
+
/** Read off this message today: `epoch`, `paths`. */
|
|
66
|
+
/** `invitations` — push · host->app. polled with `request-invitations`. */
|
|
67
|
+
export declare const INVITATIONS = "invitations";
|
|
68
|
+
/** Read off this message today: `invites`. */
|
|
69
|
+
/** `launch-dismiss` — message · app->host. */
|
|
70
|
+
export declare const LAUNCH_DISMISS = "launch-dismiss";
|
|
71
|
+
export interface LaunchDismissPayload {
|
|
72
|
+
launchId: string;
|
|
73
|
+
}
|
|
74
|
+
/** `launch-ended` — message · host->app. */
|
|
75
|
+
export declare const LAUNCH_ENDED = "launch-ended";
|
|
76
|
+
export interface LaunchEndedPayload {
|
|
77
|
+
launchId: string;
|
|
78
|
+
status: "dismissed" | "failed" | "revoked";
|
|
79
|
+
}
|
|
80
|
+
/** `llm-provider` — push · host->app. polled with `request-llm-provider`. */
|
|
81
|
+
export declare const LLM_PROVIDER = "llm-provider";
|
|
82
|
+
/** Read off this message today: `provider`. */
|
|
83
|
+
/** `metadata-update` — message · host->app. */
|
|
84
|
+
export declare const METADATA_UPDATE = "metadata-update";
|
|
85
|
+
/** `mount-add` — message · host->app. */
|
|
86
|
+
export declare const MOUNT_ADD = "mount-add";
|
|
87
|
+
/** Read off this message today: `mount`. */
|
|
88
|
+
/** `mount-remove` — message · host->app. */
|
|
89
|
+
export declare const MOUNT_REMOVE = "mount-remove";
|
|
90
|
+
/** Read off this message today: `id`, `path`, `reason`. */
|
|
91
|
+
/** `protocol-contribute` — stream · app->host. */
|
|
92
|
+
export declare const PROTOCOL_CONTRIBUTE = "protocol-contribute";
|
|
93
|
+
/** Params of `protocol-contribute` method `run`. */
|
|
94
|
+
export interface ProtocolContributeRunParams {
|
|
95
|
+
branchName?: string | undefined;
|
|
96
|
+
commitMessage: string;
|
|
97
|
+
mode?: "direct" | "pr" | undefined;
|
|
98
|
+
}
|
|
99
|
+
/** `protocol-dnd` — request · app->host. */
|
|
100
|
+
export declare const PROTOCOL_DND = "protocol-dnd";
|
|
101
|
+
/** Params of `protocol-dnd` method `startDrag`. */
|
|
102
|
+
export interface ProtocolDndStartDragParams {
|
|
103
|
+
bytes?: {
|
|
104
|
+
buffer: unknown;
|
|
105
|
+
byteLength: number;
|
|
106
|
+
byteOffset: number;
|
|
107
|
+
BYTES_PER_ELEMENT: number;
|
|
108
|
+
copyWithin: unknown;
|
|
109
|
+
entries: unknown;
|
|
110
|
+
every: unknown;
|
|
111
|
+
fill: unknown;
|
|
112
|
+
filter: unknown;
|
|
113
|
+
find: unknown;
|
|
114
|
+
findIndex: unknown;
|
|
115
|
+
forEach: unknown;
|
|
116
|
+
includes: unknown;
|
|
117
|
+
indexOf: unknown;
|
|
118
|
+
join: unknown;
|
|
119
|
+
keys: unknown;
|
|
120
|
+
lastIndexOf: unknown;
|
|
121
|
+
length: number;
|
|
122
|
+
map: unknown;
|
|
123
|
+
reduce: unknown;
|
|
124
|
+
reduceRight: unknown;
|
|
125
|
+
reverse: unknown;
|
|
126
|
+
set: unknown;
|
|
127
|
+
slice: unknown;
|
|
128
|
+
some: unknown;
|
|
129
|
+
sort: unknown;
|
|
130
|
+
subarray: unknown;
|
|
131
|
+
toLocaleString: unknown;
|
|
132
|
+
toString: () => string;
|
|
133
|
+
valueOf: unknown;
|
|
134
|
+
values: unknown;
|
|
135
|
+
} | undefined;
|
|
136
|
+
kind: "dir" | "file";
|
|
137
|
+
mountId: string;
|
|
138
|
+
name: string;
|
|
139
|
+
relPath: string;
|
|
140
|
+
}
|
|
141
|
+
/** `protocol-editor` — request · app->host. */
|
|
142
|
+
export declare const PROTOCOL_EDITOR = "protocol-editor";
|
|
143
|
+
/** `protocol-fetch` — request+stream · app->host. */
|
|
144
|
+
export declare const PROTOCOL_FETCH = "protocol-fetch";
|
|
145
|
+
/** Params of `protocol-fetch` method `fetch`. */
|
|
146
|
+
export interface ProtocolFetchFetchParams {
|
|
147
|
+
body: string | undefined;
|
|
148
|
+
headers: Record<string, string> | undefined;
|
|
149
|
+
method: string | undefined;
|
|
150
|
+
url: string;
|
|
151
|
+
}
|
|
152
|
+
/** Params of `protocol-fetch` method `fetchStream`. */
|
|
153
|
+
export interface ProtocolFetchFetchStreamParams {
|
|
154
|
+
body: string | undefined;
|
|
155
|
+
headers: Record<string, string> | undefined;
|
|
156
|
+
method: string | undefined;
|
|
157
|
+
url: string;
|
|
158
|
+
}
|
|
159
|
+
/** `protocol-ipc` — request · app->host. */
|
|
160
|
+
export declare const PROTOCOL_IPC = "protocol-ipc";
|
|
161
|
+
/** Params of `protocol-ipc` method `post`. */
|
|
162
|
+
export interface ProtocolIpcPostParams {
|
|
163
|
+
msg: unknown;
|
|
164
|
+
to: string;
|
|
165
|
+
}
|
|
166
|
+
/** Params of `protocol-ipc` method `reveal`. */
|
|
167
|
+
export interface ProtocolIpcRevealParams {
|
|
168
|
+
to: string;
|
|
169
|
+
}
|
|
170
|
+
/** `protocol-launch` — request · app->host. */
|
|
171
|
+
export declare const PROTOCOL_LAUNCH = "protocol-launch";
|
|
172
|
+
/** Params of `protocol-launch` method `create`. */
|
|
173
|
+
export interface ProtocolLaunchCreateParams {
|
|
174
|
+
opts: {
|
|
175
|
+
input?: Record<string, unknown> | undefined;
|
|
176
|
+
region: "overlay" | "stage";
|
|
177
|
+
};
|
|
178
|
+
target: {
|
|
179
|
+
entryPoint?: string | undefined;
|
|
180
|
+
task?: string | undefined;
|
|
181
|
+
version?: string | undefined;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
/** `protocol-llm` — stream · app->host. */
|
|
185
|
+
export declare const PROTOCOL_LLM = "protocol-llm";
|
|
186
|
+
/** Params of `protocol-llm` method `chat`. */
|
|
187
|
+
export interface ProtocolLlmChatParams {
|
|
188
|
+
maxTokens?: number | undefined;
|
|
189
|
+
messages: Array<{
|
|
190
|
+
content: unknown;
|
|
191
|
+
role: unknown;
|
|
192
|
+
}>;
|
|
193
|
+
modelHint?: "fast" | "smart" | undefined;
|
|
194
|
+
responseFormat?: "json" | "text" | undefined;
|
|
195
|
+
tools?: Array<unknown> | undefined;
|
|
196
|
+
}
|
|
197
|
+
/** `protocol-secrets` — request · app->host. */
|
|
198
|
+
export declare const PROTOCOL_SECRETS = "protocol-secrets";
|
|
199
|
+
/** `protocol-settings` — request · app->host. */
|
|
200
|
+
export declare const PROTOCOL_SETTINGS = "protocol-settings";
|
|
201
|
+
/** `protocol-spaces` — request · app->host. */
|
|
202
|
+
export declare const PROTOCOL_SPACES = "protocol-spaces";
|
|
203
|
+
/** Params of `protocol-spaces` method `invite`. */
|
|
204
|
+
export interface ProtocolSpacesInviteParams {
|
|
205
|
+
login: string;
|
|
206
|
+
role: "owner" | "reader" | "writer";
|
|
207
|
+
spaceId: string;
|
|
208
|
+
}
|
|
209
|
+
/** Params of `protocol-spaces` method `list`. */
|
|
210
|
+
export interface ProtocolSpacesListParams {
|
|
211
|
+
app?: false | true | undefined;
|
|
212
|
+
}
|
|
213
|
+
/** Params of `protocol-spaces` method `lookupUser`. */
|
|
214
|
+
export interface ProtocolSpacesLookupUserParams {
|
|
215
|
+
login: string;
|
|
216
|
+
}
|
|
217
|
+
/** Params of `protocol-spaces` method `members`. */
|
|
218
|
+
export interface ProtocolSpacesMembersParams {
|
|
219
|
+
spaceId: string;
|
|
220
|
+
}
|
|
221
|
+
/** Params of `protocol-spaces` method `revokeGrant`. */
|
|
222
|
+
export interface ProtocolSpacesRevokeGrantParams {
|
|
223
|
+
appKey: string;
|
|
224
|
+
spaceId: string;
|
|
225
|
+
}
|
|
226
|
+
/** Params of `protocol-spaces` method `setRole`. */
|
|
227
|
+
export interface ProtocolSpacesSetRoleParams {
|
|
228
|
+
role: "owner" | "reader" | "writer";
|
|
229
|
+
spaceId: string;
|
|
230
|
+
uid: string;
|
|
231
|
+
}
|
|
232
|
+
/** Params of `protocol-spaces` method `unshare`. */
|
|
233
|
+
export interface ProtocolSpacesUnshareParams {
|
|
234
|
+
spaceId: string;
|
|
235
|
+
uid: string;
|
|
236
|
+
}
|
|
237
|
+
/** `protocol-task` — request · app->host. */
|
|
238
|
+
export declare const PROTOCOL_TASK = "protocol-task";
|
|
239
|
+
/** Params of `protocol-task` method `invoke`. */
|
|
240
|
+
export interface ProtocolTaskInvokeParams {
|
|
241
|
+
params: Record<string, unknown>;
|
|
242
|
+
task: string;
|
|
243
|
+
}
|
|
244
|
+
/** `protocol-theme` — request · app->host. */
|
|
245
|
+
export declare const PROTOCOL_THEME = "protocol-theme";
|
|
246
|
+
/** Params of `protocol-theme` method `set`. */
|
|
247
|
+
export interface ProtocolThemeSetParams {
|
|
248
|
+
theme: "dark" | "light";
|
|
249
|
+
}
|
|
250
|
+
/** `protocol-vcs` — request · app->host. */
|
|
251
|
+
export declare const PROTOCOL_VCS = "protocol-vcs";
|
|
252
|
+
/** `region-message` — message · host->app. */
|
|
253
|
+
export declare const REGION_MESSAGE = "region-message";
|
|
254
|
+
export interface RegionMessagePayload {
|
|
255
|
+
data: unknown;
|
|
256
|
+
from: string;
|
|
257
|
+
}
|
|
258
|
+
/** `request-api-catalog` — poll · app->host. */
|
|
259
|
+
export declare const REQUEST_API_CATALOG = "request-api-catalog";
|
|
260
|
+
/** `request-auth-state` — poll · app->host. */
|
|
261
|
+
export declare const REQUEST_AUTH_STATE = "request-auth-state";
|
|
262
|
+
/** `request-debug-enabled` — poll · app->host. */
|
|
263
|
+
export declare const REQUEST_DEBUG_ENABLED = "request-debug-enabled";
|
|
264
|
+
/** `request-diagnostics` — poll · app->host. */
|
|
265
|
+
export declare const REQUEST_DIAGNOSTICS = "request-diagnostics";
|
|
266
|
+
/** `request-editor-context` — poll · app->host. */
|
|
267
|
+
export declare const REQUEST_EDITOR_CONTEXT = "request-editor-context";
|
|
268
|
+
/** `request-form-factor` — poll · app->host. */
|
|
269
|
+
export declare const REQUEST_FORM_FACTOR = "request-form-factor";
|
|
270
|
+
/** `request-handshake` — message · host->app. */
|
|
271
|
+
export declare const REQUEST_HANDSHAKE = "request-handshake";
|
|
272
|
+
/** `request-invitations` — poll · app->host. */
|
|
273
|
+
export declare const REQUEST_INVITATIONS = "request-invitations";
|
|
274
|
+
/** `request-llm-provider` — poll · app->host. */
|
|
275
|
+
export declare const REQUEST_LLM_PROVIDER = "request-llm-provider";
|
|
276
|
+
/** `request-mounts` — message · app->host. */
|
|
277
|
+
export declare const REQUEST_MOUNTS = "request-mounts";
|
|
278
|
+
/** `request-secrets-metadata` — poll · app->host. */
|
|
279
|
+
export declare const REQUEST_SECRETS_METADATA = "request-secrets-metadata";
|
|
280
|
+
/** `request-session-mounts` — poll · app->host. */
|
|
281
|
+
export declare const REQUEST_SESSION_MOUNTS = "request-session-mounts";
|
|
282
|
+
/** `request-theme` — poll · app->host. */
|
|
283
|
+
export declare const REQUEST_THEME = "request-theme";
|
|
284
|
+
/** `request-vcs-state` — poll · app->host. */
|
|
285
|
+
export declare const REQUEST_VCS_STATE = "request-vcs-state";
|
|
286
|
+
/** `sdk-handshake` — message · app->host. DIVERGENT (R3-274e): divergent-declared — TWO producers of one name with different payloads: this frame announces {protocolVersion, sandboxProtocolVersion}, the SDK announces {protocolVersion, sdkVersion}. R3-274d gave the frame its own SANDBOX_PROTOCOL_VERSION (announced additively; the host logs it, fail-open) and retired the sibling-checkout read that used to source `protocolVersion`. R3-274e picks one shape.. */
|
|
287
|
+
export declare const SDK_HANDSHAKE = "sdk-handshake";
|
|
288
|
+
export interface SdkHandshakePayload {
|
|
289
|
+
protocolVersion: string;
|
|
290
|
+
sdkVersion: string;
|
|
291
|
+
}
|
|
292
|
+
/** `secrets-metadata` — push · host->app. polled with `request-secrets-metadata`. */
|
|
293
|
+
export declare const SECRETS_METADATA = "secrets-metadata";
|
|
294
|
+
/** Read off this message today: `secrets`. */
|
|
295
|
+
/** `session-mounts` — push · host->app. polled with `request-session-mounts`. */
|
|
296
|
+
export declare const SESSION_MOUNTS = "session-mounts";
|
|
297
|
+
/** Read off this message today: `mounts`. */
|
|
298
|
+
/** `task-cancel` — message · app->host. */
|
|
299
|
+
export declare const TASK_CANCEL = "task-cancel";
|
|
300
|
+
/** `task-complete` — message · app->host. */
|
|
301
|
+
export declare const TASK_COMPLETE = "task-complete";
|
|
302
|
+
export interface TaskCompletePayload {
|
|
303
|
+
result: unknown;
|
|
304
|
+
}
|
|
305
|
+
/** `task-input` — message · host->app. */
|
|
306
|
+
export declare const TASK_INPUT = "task-input";
|
|
307
|
+
export interface TaskInputPayload {
|
|
308
|
+
params?: Record<string, unknown> | undefined;
|
|
309
|
+
task: string;
|
|
310
|
+
}
|
|
311
|
+
/** `theme` — push · host->app. polled with `request-theme`. */
|
|
312
|
+
export declare const THEME = "theme";
|
|
313
|
+
/** Read off this message today: `theme`. */
|
|
314
|
+
/** `urlchange` — message · both. */
|
|
315
|
+
export declare const URLCHANGE = "urlchange";
|
|
316
|
+
/** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
|
|
317
|
+
export declare const VCS_STATE = "vcs-state";
|
|
318
|
+
/** Read off this message today: `branch`, `changes`, `diffLoading`, `prs`. */
|
|
319
|
+
/** Every wire name this side speaks, keyed by its constant. */
|
|
320
|
+
export declare const WIRE_NAMES: {
|
|
321
|
+
readonly API_CATALOG: "api-catalog";
|
|
322
|
+
readonly AUTH_STATE: "auth-state";
|
|
323
|
+
readonly COMPILE: "compile";
|
|
324
|
+
readonly DEBUG_ENABLED: "debug-enabled";
|
|
325
|
+
readonly DEBUG_LOG: "debug-log";
|
|
326
|
+
readonly DEBUG_QUERY: "debug-query";
|
|
327
|
+
readonly DEBUG_QUERY_RESULT: "debug-query-result";
|
|
328
|
+
readonly DIAGNOSTICS: "diagnostics";
|
|
329
|
+
readonly DND_CANCEL: "dnd-cancel";
|
|
330
|
+
readonly DROPPED_ITEM: "dropped-item";
|
|
331
|
+
readonly EDITOR_CONTEXT: "editor-context";
|
|
332
|
+
readonly FORM_FACTOR: "form-factor";
|
|
333
|
+
readonly FS_CHANGE: "fs-change";
|
|
334
|
+
readonly INVITATIONS: "invitations";
|
|
335
|
+
readonly LAUNCH_DISMISS: "launch-dismiss";
|
|
336
|
+
readonly LAUNCH_ENDED: "launch-ended";
|
|
337
|
+
readonly LLM_PROVIDER: "llm-provider";
|
|
338
|
+
readonly METADATA_UPDATE: "metadata-update";
|
|
339
|
+
readonly MOUNT_ADD: "mount-add";
|
|
340
|
+
readonly MOUNT_REMOVE: "mount-remove";
|
|
341
|
+
readonly PROTOCOL_CONTRIBUTE: "protocol-contribute";
|
|
342
|
+
readonly PROTOCOL_DND: "protocol-dnd";
|
|
343
|
+
readonly PROTOCOL_EDITOR: "protocol-editor";
|
|
344
|
+
readonly PROTOCOL_FETCH: "protocol-fetch";
|
|
345
|
+
readonly PROTOCOL_IPC: "protocol-ipc";
|
|
346
|
+
readonly PROTOCOL_LAUNCH: "protocol-launch";
|
|
347
|
+
readonly PROTOCOL_LLM: "protocol-llm";
|
|
348
|
+
readonly PROTOCOL_SECRETS: "protocol-secrets";
|
|
349
|
+
readonly PROTOCOL_SETTINGS: "protocol-settings";
|
|
350
|
+
readonly PROTOCOL_SPACES: "protocol-spaces";
|
|
351
|
+
readonly PROTOCOL_TASK: "protocol-task";
|
|
352
|
+
readonly PROTOCOL_THEME: "protocol-theme";
|
|
353
|
+
readonly PROTOCOL_VCS: "protocol-vcs";
|
|
354
|
+
readonly REGION_MESSAGE: "region-message";
|
|
355
|
+
readonly REQUEST_API_CATALOG: "request-api-catalog";
|
|
356
|
+
readonly REQUEST_AUTH_STATE: "request-auth-state";
|
|
357
|
+
readonly REQUEST_DEBUG_ENABLED: "request-debug-enabled";
|
|
358
|
+
readonly REQUEST_DIAGNOSTICS: "request-diagnostics";
|
|
359
|
+
readonly REQUEST_EDITOR_CONTEXT: "request-editor-context";
|
|
360
|
+
readonly REQUEST_FORM_FACTOR: "request-form-factor";
|
|
361
|
+
readonly REQUEST_HANDSHAKE: "request-handshake";
|
|
362
|
+
readonly REQUEST_INVITATIONS: "request-invitations";
|
|
363
|
+
readonly REQUEST_LLM_PROVIDER: "request-llm-provider";
|
|
364
|
+
readonly REQUEST_MOUNTS: "request-mounts";
|
|
365
|
+
readonly REQUEST_SECRETS_METADATA: "request-secrets-metadata";
|
|
366
|
+
readonly REQUEST_SESSION_MOUNTS: "request-session-mounts";
|
|
367
|
+
readonly REQUEST_THEME: "request-theme";
|
|
368
|
+
readonly REQUEST_VCS_STATE: "request-vcs-state";
|
|
369
|
+
readonly SDK_HANDSHAKE: "sdk-handshake";
|
|
370
|
+
readonly SECRETS_METADATA: "secrets-metadata";
|
|
371
|
+
readonly SESSION_MOUNTS: "session-mounts";
|
|
372
|
+
readonly TASK_CANCEL: "task-cancel";
|
|
373
|
+
readonly TASK_COMPLETE: "task-complete";
|
|
374
|
+
readonly TASK_INPUT: "task-input";
|
|
375
|
+
readonly THEME: "theme";
|
|
376
|
+
readonly URLCHANGE: "urlchange";
|
|
377
|
+
readonly VCS_STATE: "vcs-state";
|
|
378
|
+
};
|
package/dist/sdk.js
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// GENERATED by scripts/generate.mjs — DO NOT EDIT.
|
|
3
|
+
// Source of truth: src/descriptors.protocol.mjs (@immediately-run/sandbox-protocol)
|
|
4
|
+
// descriptorsHash: fbd9b76f9e8edc71
|
|
5
|
+
//
|
|
6
|
+
// The sandbox↔SDK wire vocabulary (PLATFORM_LAYERING_SPEC §2 / S1). Import the
|
|
7
|
+
// constants instead of writing the string: a rename then has ONE edit site and
|
|
8
|
+
// the protocol snapshot gate sees it. Payload types are emitted for every name
|
|
9
|
+
// that has a declared shape; a name handled as `any` today gets its read field
|
|
10
|
+
// list in the doc comment instead (R3-274e is where those grow real types).
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SECRETS_METADATA = exports.SDK_HANDSHAKE = exports.REQUEST_VCS_STATE = exports.REQUEST_THEME = exports.REQUEST_SESSION_MOUNTS = exports.REQUEST_SECRETS_METADATA = exports.REQUEST_MOUNTS = exports.REQUEST_LLM_PROVIDER = exports.REQUEST_INVITATIONS = exports.REQUEST_HANDSHAKE = exports.REQUEST_FORM_FACTOR = exports.REQUEST_EDITOR_CONTEXT = exports.REQUEST_DIAGNOSTICS = exports.REQUEST_DEBUG_ENABLED = exports.REQUEST_AUTH_STATE = exports.REQUEST_API_CATALOG = exports.REGION_MESSAGE = exports.PROTOCOL_VCS = exports.PROTOCOL_THEME = exports.PROTOCOL_TASK = exports.PROTOCOL_SPACES = exports.PROTOCOL_SETTINGS = exports.PROTOCOL_SECRETS = exports.PROTOCOL_LLM = exports.PROTOCOL_LAUNCH = exports.PROTOCOL_IPC = exports.PROTOCOL_FETCH = exports.PROTOCOL_EDITOR = exports.PROTOCOL_DND = exports.PROTOCOL_CONTRIBUTE = exports.MOUNT_REMOVE = exports.MOUNT_ADD = exports.METADATA_UPDATE = exports.LLM_PROVIDER = exports.LAUNCH_ENDED = exports.LAUNCH_DISMISS = exports.INVITATIONS = exports.FS_CHANGE = exports.FORM_FACTOR = exports.EDITOR_CONTEXT = exports.DROPPED_ITEM = exports.DND_CANCEL = exports.DIAGNOSTICS = exports.DEBUG_QUERY_RESULT = exports.DEBUG_QUERY = exports.DEBUG_LOG = exports.DEBUG_ENABLED = exports.COMPILE = exports.AUTH_STATE = exports.API_CATALOG = void 0;
|
|
13
|
+
exports.WIRE_NAMES = exports.VCS_STATE = exports.URLCHANGE = exports.THEME = exports.TASK_INPUT = exports.TASK_COMPLETE = exports.TASK_CANCEL = exports.SESSION_MOUNTS = void 0;
|
|
14
|
+
/** `api-catalog` — push · host->app. polled with `request-api-catalog`. */
|
|
15
|
+
exports.API_CATALOG = 'api-catalog';
|
|
16
|
+
/** Read off this message today: `methods`. */
|
|
17
|
+
/** `auth-state` — push · host->app. polled with `request-auth-state`. */
|
|
18
|
+
exports.AUTH_STATE = 'auth-state';
|
|
19
|
+
/** Read off this message today: `state`. */
|
|
20
|
+
/** `compile` — message · host->app. */
|
|
21
|
+
exports.COMPILE = 'compile';
|
|
22
|
+
/** `debug-enabled` — push · host->app. polled with `request-debug-enabled`. */
|
|
23
|
+
exports.DEBUG_ENABLED = 'debug-enabled';
|
|
24
|
+
/** Read off this message today: `enabled`. */
|
|
25
|
+
/** `debug-log` — message · app->host. */
|
|
26
|
+
exports.DEBUG_LOG = 'debug-log';
|
|
27
|
+
/** `debug-query` — message · host->app. */
|
|
28
|
+
exports.DEBUG_QUERY = 'debug-query';
|
|
29
|
+
/** `debug-query-result` — message · app->host. */
|
|
30
|
+
exports.DEBUG_QUERY_RESULT = 'debug-query-result';
|
|
31
|
+
/** `diagnostics` — push · host->app. polled with `request-diagnostics`. */
|
|
32
|
+
exports.DIAGNOSTICS = 'diagnostics';
|
|
33
|
+
/** Read off this message today: `buildErrors`, `consoleEntries`, `provenance`. */
|
|
34
|
+
/** `dnd-cancel` — message · app->host. */
|
|
35
|
+
exports.DND_CANCEL = 'dnd-cancel';
|
|
36
|
+
/** `dropped-item` — message · host->app. */
|
|
37
|
+
exports.DROPPED_ITEM = 'dropped-item';
|
|
38
|
+
/** `editor-context` — push · host->app. polled with `request-editor-context`. DIVERGENT (R3-274e): declared-incomplete — the host (site-main channelBridge.ts) sends {dirtyPaths, openFiles, activeFile, viewedFile}; this side declares only {dirtyPaths, activeFile?} while the SDK reads all four. `viewedFile` (R3-268) and `openFiles` never entered this declaration. R3-274e picks one shape for both sides.. */
|
|
39
|
+
exports.EDITOR_CONTEXT = 'editor-context';
|
|
40
|
+
/** Read off this message today: `activeFile`, `dirtyPaths`, `openFiles`, `viewedFile`. */
|
|
41
|
+
/** `form-factor` — push · host->app. polled with `request-form-factor`. */
|
|
42
|
+
exports.FORM_FACTOR = 'form-factor';
|
|
43
|
+
/** Read off this message today: `formFactor`. */
|
|
44
|
+
/** `fs-change` — push · host->app. DIVERGENT (R3-274e): subset-reads with no declared owner on either side — the host sends {paths, epoch}; this side reads only `paths`, the SDK reads both. Nothing forces the two to agree, which is the divergence PLATFORM_LAYERING_SPEC §2 names as the exemplar. The `kind` also differs (message here, push channel in the SDK). R3-274e decides: keep `epoch` or drop it.. */
|
|
45
|
+
exports.FS_CHANGE = 'fs-change';
|
|
46
|
+
/** Read off this message today: `epoch`, `paths`. */
|
|
47
|
+
/** `invitations` — push · host->app. polled with `request-invitations`. */
|
|
48
|
+
exports.INVITATIONS = 'invitations';
|
|
49
|
+
/** Read off this message today: `invites`. */
|
|
50
|
+
/** `launch-dismiss` — message · app->host. */
|
|
51
|
+
exports.LAUNCH_DISMISS = 'launch-dismiss';
|
|
52
|
+
/** `launch-ended` — message · host->app. */
|
|
53
|
+
exports.LAUNCH_ENDED = 'launch-ended';
|
|
54
|
+
/** `llm-provider` — push · host->app. polled with `request-llm-provider`. */
|
|
55
|
+
exports.LLM_PROVIDER = 'llm-provider';
|
|
56
|
+
/** Read off this message today: `provider`. */
|
|
57
|
+
/** `metadata-update` — message · host->app. */
|
|
58
|
+
exports.METADATA_UPDATE = 'metadata-update';
|
|
59
|
+
/** `mount-add` — message · host->app. */
|
|
60
|
+
exports.MOUNT_ADD = 'mount-add';
|
|
61
|
+
/** Read off this message today: `mount`. */
|
|
62
|
+
/** `mount-remove` — message · host->app. */
|
|
63
|
+
exports.MOUNT_REMOVE = 'mount-remove';
|
|
64
|
+
/** Read off this message today: `id`, `path`, `reason`. */
|
|
65
|
+
/** `protocol-contribute` — stream · app->host. */
|
|
66
|
+
exports.PROTOCOL_CONTRIBUTE = 'protocol-contribute';
|
|
67
|
+
/** `protocol-dnd` — request · app->host. */
|
|
68
|
+
exports.PROTOCOL_DND = 'protocol-dnd';
|
|
69
|
+
/** `protocol-editor` — request · app->host. */
|
|
70
|
+
exports.PROTOCOL_EDITOR = 'protocol-editor';
|
|
71
|
+
/** `protocol-fetch` — request+stream · app->host. */
|
|
72
|
+
exports.PROTOCOL_FETCH = 'protocol-fetch';
|
|
73
|
+
/** `protocol-ipc` — request · app->host. */
|
|
74
|
+
exports.PROTOCOL_IPC = 'protocol-ipc';
|
|
75
|
+
/** `protocol-launch` — request · app->host. */
|
|
76
|
+
exports.PROTOCOL_LAUNCH = 'protocol-launch';
|
|
77
|
+
/** `protocol-llm` — stream · app->host. */
|
|
78
|
+
exports.PROTOCOL_LLM = 'protocol-llm';
|
|
79
|
+
/** `protocol-secrets` — request · app->host. */
|
|
80
|
+
exports.PROTOCOL_SECRETS = 'protocol-secrets';
|
|
81
|
+
/** `protocol-settings` — request · app->host. */
|
|
82
|
+
exports.PROTOCOL_SETTINGS = 'protocol-settings';
|
|
83
|
+
/** `protocol-spaces` — request · app->host. */
|
|
84
|
+
exports.PROTOCOL_SPACES = 'protocol-spaces';
|
|
85
|
+
/** `protocol-task` — request · app->host. */
|
|
86
|
+
exports.PROTOCOL_TASK = 'protocol-task';
|
|
87
|
+
/** `protocol-theme` — request · app->host. */
|
|
88
|
+
exports.PROTOCOL_THEME = 'protocol-theme';
|
|
89
|
+
/** `protocol-vcs` — request · app->host. */
|
|
90
|
+
exports.PROTOCOL_VCS = 'protocol-vcs';
|
|
91
|
+
/** `region-message` — message · host->app. */
|
|
92
|
+
exports.REGION_MESSAGE = 'region-message';
|
|
93
|
+
/** `request-api-catalog` — poll · app->host. */
|
|
94
|
+
exports.REQUEST_API_CATALOG = 'request-api-catalog';
|
|
95
|
+
/** `request-auth-state` — poll · app->host. */
|
|
96
|
+
exports.REQUEST_AUTH_STATE = 'request-auth-state';
|
|
97
|
+
/** `request-debug-enabled` — poll · app->host. */
|
|
98
|
+
exports.REQUEST_DEBUG_ENABLED = 'request-debug-enabled';
|
|
99
|
+
/** `request-diagnostics` — poll · app->host. */
|
|
100
|
+
exports.REQUEST_DIAGNOSTICS = 'request-diagnostics';
|
|
101
|
+
/** `request-editor-context` — poll · app->host. */
|
|
102
|
+
exports.REQUEST_EDITOR_CONTEXT = 'request-editor-context';
|
|
103
|
+
/** `request-form-factor` — poll · app->host. */
|
|
104
|
+
exports.REQUEST_FORM_FACTOR = 'request-form-factor';
|
|
105
|
+
/** `request-handshake` — message · host->app. */
|
|
106
|
+
exports.REQUEST_HANDSHAKE = 'request-handshake';
|
|
107
|
+
/** `request-invitations` — poll · app->host. */
|
|
108
|
+
exports.REQUEST_INVITATIONS = 'request-invitations';
|
|
109
|
+
/** `request-llm-provider` — poll · app->host. */
|
|
110
|
+
exports.REQUEST_LLM_PROVIDER = 'request-llm-provider';
|
|
111
|
+
/** `request-mounts` — message · app->host. */
|
|
112
|
+
exports.REQUEST_MOUNTS = 'request-mounts';
|
|
113
|
+
/** `request-secrets-metadata` — poll · app->host. */
|
|
114
|
+
exports.REQUEST_SECRETS_METADATA = 'request-secrets-metadata';
|
|
115
|
+
/** `request-session-mounts` — poll · app->host. */
|
|
116
|
+
exports.REQUEST_SESSION_MOUNTS = 'request-session-mounts';
|
|
117
|
+
/** `request-theme` — poll · app->host. */
|
|
118
|
+
exports.REQUEST_THEME = 'request-theme';
|
|
119
|
+
/** `request-vcs-state` — poll · app->host. */
|
|
120
|
+
exports.REQUEST_VCS_STATE = 'request-vcs-state';
|
|
121
|
+
/** `sdk-handshake` — message · app->host. DIVERGENT (R3-274e): divergent-declared — TWO producers of one name with different payloads: this frame announces {protocolVersion, sandboxProtocolVersion}, the SDK announces {protocolVersion, sdkVersion}. R3-274d gave the frame its own SANDBOX_PROTOCOL_VERSION (announced additively; the host logs it, fail-open) and retired the sibling-checkout read that used to source `protocolVersion`. R3-274e picks one shape.. */
|
|
122
|
+
exports.SDK_HANDSHAKE = 'sdk-handshake';
|
|
123
|
+
/** `secrets-metadata` — push · host->app. polled with `request-secrets-metadata`. */
|
|
124
|
+
exports.SECRETS_METADATA = 'secrets-metadata';
|
|
125
|
+
/** Read off this message today: `secrets`. */
|
|
126
|
+
/** `session-mounts` — push · host->app. polled with `request-session-mounts`. */
|
|
127
|
+
exports.SESSION_MOUNTS = 'session-mounts';
|
|
128
|
+
/** Read off this message today: `mounts`. */
|
|
129
|
+
/** `task-cancel` — message · app->host. */
|
|
130
|
+
exports.TASK_CANCEL = 'task-cancel';
|
|
131
|
+
/** `task-complete` — message · app->host. */
|
|
132
|
+
exports.TASK_COMPLETE = 'task-complete';
|
|
133
|
+
/** `task-input` — message · host->app. */
|
|
134
|
+
exports.TASK_INPUT = 'task-input';
|
|
135
|
+
/** `theme` — push · host->app. polled with `request-theme`. */
|
|
136
|
+
exports.THEME = 'theme';
|
|
137
|
+
/** Read off this message today: `theme`. */
|
|
138
|
+
/** `urlchange` — message · both. */
|
|
139
|
+
exports.URLCHANGE = 'urlchange';
|
|
140
|
+
/** `vcs-state` — push · host->app. polled with `request-vcs-state`. */
|
|
141
|
+
exports.VCS_STATE = 'vcs-state';
|
|
142
|
+
/** Read off this message today: `branch`, `changes`, `diffLoading`, `prs`. */
|
|
143
|
+
/** Every wire name this side speaks, keyed by its constant. */
|
|
144
|
+
exports.WIRE_NAMES = {
|
|
145
|
+
API_CATALOG: exports.API_CATALOG,
|
|
146
|
+
AUTH_STATE: exports.AUTH_STATE,
|
|
147
|
+
COMPILE: exports.COMPILE,
|
|
148
|
+
DEBUG_ENABLED: exports.DEBUG_ENABLED,
|
|
149
|
+
DEBUG_LOG: exports.DEBUG_LOG,
|
|
150
|
+
DEBUG_QUERY: exports.DEBUG_QUERY,
|
|
151
|
+
DEBUG_QUERY_RESULT: exports.DEBUG_QUERY_RESULT,
|
|
152
|
+
DIAGNOSTICS: exports.DIAGNOSTICS,
|
|
153
|
+
DND_CANCEL: exports.DND_CANCEL,
|
|
154
|
+
DROPPED_ITEM: exports.DROPPED_ITEM,
|
|
155
|
+
EDITOR_CONTEXT: exports.EDITOR_CONTEXT,
|
|
156
|
+
FORM_FACTOR: exports.FORM_FACTOR,
|
|
157
|
+
FS_CHANGE: exports.FS_CHANGE,
|
|
158
|
+
INVITATIONS: exports.INVITATIONS,
|
|
159
|
+
LAUNCH_DISMISS: exports.LAUNCH_DISMISS,
|
|
160
|
+
LAUNCH_ENDED: exports.LAUNCH_ENDED,
|
|
161
|
+
LLM_PROVIDER: exports.LLM_PROVIDER,
|
|
162
|
+
METADATA_UPDATE: exports.METADATA_UPDATE,
|
|
163
|
+
MOUNT_ADD: exports.MOUNT_ADD,
|
|
164
|
+
MOUNT_REMOVE: exports.MOUNT_REMOVE,
|
|
165
|
+
PROTOCOL_CONTRIBUTE: exports.PROTOCOL_CONTRIBUTE,
|
|
166
|
+
PROTOCOL_DND: exports.PROTOCOL_DND,
|
|
167
|
+
PROTOCOL_EDITOR: exports.PROTOCOL_EDITOR,
|
|
168
|
+
PROTOCOL_FETCH: exports.PROTOCOL_FETCH,
|
|
169
|
+
PROTOCOL_IPC: exports.PROTOCOL_IPC,
|
|
170
|
+
PROTOCOL_LAUNCH: exports.PROTOCOL_LAUNCH,
|
|
171
|
+
PROTOCOL_LLM: exports.PROTOCOL_LLM,
|
|
172
|
+
PROTOCOL_SECRETS: exports.PROTOCOL_SECRETS,
|
|
173
|
+
PROTOCOL_SETTINGS: exports.PROTOCOL_SETTINGS,
|
|
174
|
+
PROTOCOL_SPACES: exports.PROTOCOL_SPACES,
|
|
175
|
+
PROTOCOL_TASK: exports.PROTOCOL_TASK,
|
|
176
|
+
PROTOCOL_THEME: exports.PROTOCOL_THEME,
|
|
177
|
+
PROTOCOL_VCS: exports.PROTOCOL_VCS,
|
|
178
|
+
REGION_MESSAGE: exports.REGION_MESSAGE,
|
|
179
|
+
REQUEST_API_CATALOG: exports.REQUEST_API_CATALOG,
|
|
180
|
+
REQUEST_AUTH_STATE: exports.REQUEST_AUTH_STATE,
|
|
181
|
+
REQUEST_DEBUG_ENABLED: exports.REQUEST_DEBUG_ENABLED,
|
|
182
|
+
REQUEST_DIAGNOSTICS: exports.REQUEST_DIAGNOSTICS,
|
|
183
|
+
REQUEST_EDITOR_CONTEXT: exports.REQUEST_EDITOR_CONTEXT,
|
|
184
|
+
REQUEST_FORM_FACTOR: exports.REQUEST_FORM_FACTOR,
|
|
185
|
+
REQUEST_HANDSHAKE: exports.REQUEST_HANDSHAKE,
|
|
186
|
+
REQUEST_INVITATIONS: exports.REQUEST_INVITATIONS,
|
|
187
|
+
REQUEST_LLM_PROVIDER: exports.REQUEST_LLM_PROVIDER,
|
|
188
|
+
REQUEST_MOUNTS: exports.REQUEST_MOUNTS,
|
|
189
|
+
REQUEST_SECRETS_METADATA: exports.REQUEST_SECRETS_METADATA,
|
|
190
|
+
REQUEST_SESSION_MOUNTS: exports.REQUEST_SESSION_MOUNTS,
|
|
191
|
+
REQUEST_THEME: exports.REQUEST_THEME,
|
|
192
|
+
REQUEST_VCS_STATE: exports.REQUEST_VCS_STATE,
|
|
193
|
+
SDK_HANDSHAKE: exports.SDK_HANDSHAKE,
|
|
194
|
+
SECRETS_METADATA: exports.SECRETS_METADATA,
|
|
195
|
+
SESSION_MOUNTS: exports.SESSION_MOUNTS,
|
|
196
|
+
TASK_CANCEL: exports.TASK_CANCEL,
|
|
197
|
+
TASK_COMPLETE: exports.TASK_COMPLETE,
|
|
198
|
+
TASK_INPUT: exports.TASK_INPUT,
|
|
199
|
+
THEME: exports.THEME,
|
|
200
|
+
URLCHANGE: exports.URLCHANGE,
|
|
201
|
+
VCS_STATE: exports.VCS_STATE,
|
|
202
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@immediately-run/sandbox-protocol",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The sandbox<->SDK wire protocol: ONE descriptor set, projected into the wire-name constants, the payload types, and the per-side snapshots both repos gate against (PLATFORM_LAYERING_SPEC S1). Consumed by sandbox and immediately-run-sdk so a wire change is a version bump, not a hand-copied file.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/immediately-run/immediately-run-sandbox-protocol.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "commonjs",
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./sandbox": {
|
|
19
|
+
"types": "./dist/sandbox.d.ts",
|
|
20
|
+
"default": "./dist/sandbox.js"
|
|
21
|
+
},
|
|
22
|
+
"./sdk": {
|
|
23
|
+
"types": "./dist/sdk.d.ts",
|
|
24
|
+
"default": "./dist/sdk.js"
|
|
25
|
+
},
|
|
26
|
+
"./snapshots/sandbox": "./snapshots/sandbox.json",
|
|
27
|
+
"./snapshots/sdk": "./snapshots/sdk.json",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"snapshots"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"generate": "node scripts/generate.mjs",
|
|
36
|
+
"build": "npm run generate && tsc -p tsconfig.build.json",
|
|
37
|
+
"test": "jest",
|
|
38
|
+
"lint": "eslint src test",
|
|
39
|
+
"check:drift": "node scripts/verify-drift.mjs --self-test && node scripts/verify-drift.mjs",
|
|
40
|
+
"check:dependency-free": "node scripts/check-dependency-free.mjs --self-test && node scripts/check-dependency-free.mjs",
|
|
41
|
+
"verify": "npm run build && npm test && npm run lint && npm run check:drift && npm run check:dependency-free",
|
|
42
|
+
"prepare": "npm run build"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@eslint/js": "^9.18.0",
|
|
46
|
+
"@types/jest": "^29.5.14",
|
|
47
|
+
"@types/node": "^20.17.0",
|
|
48
|
+
"eslint": "^9.18.0",
|
|
49
|
+
"jest": "^29.7.0",
|
|
50
|
+
"ts-jest": "^29.2.5",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"typescript-eslint": "^8.20.0"
|
|
53
|
+
}
|
|
54
|
+
}
|