@agent-relay/sandbox 0.1.2 → 0.1.3
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 +226 -5
- package/dist/agent37/client.d.ts +115 -0
- package/dist/agent37/client.d.ts.map +1 -0
- package/dist/agent37/client.js +270 -0
- package/dist/agent37/client.js.map +1 -0
- package/dist/agent37/runtime.d.ts +415 -0
- package/dist/agent37/runtime.d.ts.map +1 -0
- package/dist/agent37/runtime.js +855 -0
- package/dist/agent37/runtime.js.map +1 -0
- package/dist/agentcore/bench.d.ts +93 -0
- package/dist/agentcore/bench.d.ts.map +1 -0
- package/dist/agentcore/bench.js +125 -0
- package/dist/agentcore/bench.js.map +1 -0
- package/dist/agentcore/capabilities.d.ts +169 -0
- package/dist/agentcore/capabilities.d.ts.map +1 -0
- package/dist/agentcore/capabilities.js +153 -0
- package/dist/agentcore/capabilities.js.map +1 -0
- package/dist/agentcore/config.d.ts +156 -0
- package/dist/agentcore/config.d.ts.map +1 -0
- package/dist/agentcore/config.js +12 -0
- package/dist/agentcore/config.js.map +1 -0
- package/dist/agentcore/internal/sdk.d.ts +181 -0
- package/dist/agentcore/internal/sdk.d.ts.map +1 -0
- package/dist/agentcore/internal/sdk.js +223 -0
- package/dist/agentcore/internal/sdk.js.map +1 -0
- package/dist/agentcore/runtime.d.ts +177 -0
- package/dist/agentcore/runtime.d.ts.map +1 -0
- package/dist/agentcore/runtime.js +706 -0
- package/dist/agentcore/runtime.js.map +1 -0
- package/dist/daytona/runtime.d.ts +23 -0
- package/dist/daytona/runtime.d.ts.map +1 -1
- package/dist/daytona/runtime.js +167 -5
- package/dist/daytona/runtime.js.map +1 -1
- package/dist/daytona/wire-supplement.d.ts +25 -0
- package/dist/daytona/wire-supplement.d.ts.map +1 -0
- package/dist/daytona/wire-supplement.js +16 -0
- package/dist/daytona/wire-supplement.js.map +1 -0
- package/dist/e2b/runtime.d.ts +107 -72
- package/dist/e2b/runtime.d.ts.map +1 -1
- package/dist/e2b/runtime.js +675 -190
- package/dist/e2b/runtime.js.map +1 -1
- package/dist/freestyle/capabilities.d.ts +28 -0
- package/dist/freestyle/capabilities.d.ts.map +1 -0
- package/dist/freestyle/capabilities.js +42 -0
- package/dist/freestyle/capabilities.js.map +1 -0
- package/dist/freestyle/config.d.ts +36 -0
- package/dist/freestyle/config.d.ts.map +1 -0
- package/dist/freestyle/config.js +2 -0
- package/dist/freestyle/config.js.map +1 -0
- package/dist/freestyle/internal/sdk.d.ts +69 -0
- package/dist/freestyle/internal/sdk.d.ts.map +1 -0
- package/dist/freestyle/internal/sdk.js +19 -0
- package/dist/freestyle/internal/sdk.js.map +1 -0
- package/dist/freestyle/runtime.d.ts +163 -0
- package/dist/freestyle/runtime.d.ts.map +1 -0
- package/dist/freestyle/runtime.js +798 -0
- package/dist/freestyle/runtime.js.map +1 -0
- package/dist/index.d.ts +35 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/microsandbox/runtime.d.ts +793 -0
- package/dist/microsandbox/runtime.d.ts.map +1 -0
- package/dist/microsandbox/runtime.js +2303 -0
- package/dist/microsandbox/runtime.js.map +1 -0
- package/dist/modal/bench.d.ts +199 -0
- package/dist/modal/bench.d.ts.map +1 -0
- package/dist/modal/bench.js +450 -0
- package/dist/modal/bench.js.map +1 -0
- package/dist/modal/capabilities.d.ts +180 -0
- package/dist/modal/capabilities.d.ts.map +1 -0
- package/dist/modal/capabilities.js +159 -0
- package/dist/modal/capabilities.js.map +1 -0
- package/dist/modal/config.d.ts +192 -0
- package/dist/modal/config.d.ts.map +1 -0
- package/dist/modal/config.js +169 -0
- package/dist/modal/config.js.map +1 -0
- package/dist/modal/internal/sdk.d.ts +141 -0
- package/dist/modal/internal/sdk.d.ts.map +1 -0
- package/dist/modal/internal/sdk.js +51 -0
- package/dist/modal/internal/sdk.js.map +1 -0
- package/dist/modal/runtime.d.ts +271 -0
- package/dist/modal/runtime.d.ts.map +1 -0
- package/dist/modal/runtime.js +871 -0
- package/dist/modal/runtime.js.map +1 -0
- package/dist/mount-script.d.ts +16 -1
- package/dist/mount-script.d.ts.map +1 -1
- package/dist/mount-script.js +76 -15
- package/dist/mount-script.js.map +1 -1
- package/dist/orchestrator.d.ts +15 -0
- package/dist/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator.js +13 -1
- package/dist/orchestrator.js.map +1 -1
- package/dist/port.d.ts +144 -6
- package/dist/port.d.ts.map +1 -1
- package/dist/port.js +27 -5
- package/dist/port.js.map +1 -1
- package/dist/types.d.ts +50 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vercel/bench.d.ts +169 -0
- package/dist/vercel/bench.d.ts.map +1 -0
- package/dist/vercel/bench.js +337 -0
- package/dist/vercel/bench.js.map +1 -0
- package/dist/vercel/capabilities.d.ts +106 -0
- package/dist/vercel/capabilities.d.ts.map +1 -0
- package/dist/vercel/capabilities.js +128 -0
- package/dist/vercel/capabilities.js.map +1 -0
- package/dist/vercel/config.d.ts +119 -0
- package/dist/vercel/config.d.ts.map +1 -0
- package/dist/vercel/config.js +8 -0
- package/dist/vercel/config.js.map +1 -0
- package/dist/vercel/internal/sdk.d.ts +173 -0
- package/dist/vercel/internal/sdk.d.ts.map +1 -0
- package/dist/vercel/internal/sdk.js +117 -0
- package/dist/vercel/internal/sdk.js.map +1 -0
- package/dist/vercel/runtime.d.ts +305 -0
- package/dist/vercel/runtime.d.ts.map +1 -0
- package/dist/vercel/runtime.js +1169 -0
- package/dist/vercel/runtime.js.map +1 -0
- package/docs/freestyle.md +110 -0
- package/package.json +35 -4
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { Buffer } from "node:buffer";
|
|
2
|
+
import type { RunScriptResult, SandboxCountOptions, SandboxLookupOptions, SandboxRuntime } from "../port.js";
|
|
3
|
+
import type { ExecOptions, ExecResult, LaunchOptions, RuntimeHandle, WorkflowRuntime } from "../types.js";
|
|
4
|
+
import type { VercelRuntimeOptions } from "./config.js";
|
|
5
|
+
import { type VercelSandboxApiFactory } from "./internal/sdk.js";
|
|
6
|
+
export declare class VercelOperationTimeoutError extends Error {
|
|
7
|
+
readonly operation: string;
|
|
8
|
+
readonly timeoutMs: number;
|
|
9
|
+
constructor(operation: string, timeoutMs: number);
|
|
10
|
+
}
|
|
11
|
+
export declare class VercelLifecycleTimeoutError extends Error {
|
|
12
|
+
readonly sandboxName: string;
|
|
13
|
+
readonly expected: string;
|
|
14
|
+
readonly lastState: string;
|
|
15
|
+
readonly timeoutMs: number;
|
|
16
|
+
constructor(sandboxName: string, expected: string, lastState: string, timeoutMs: number);
|
|
17
|
+
}
|
|
18
|
+
export declare class VercelDestroyVerificationError extends Error {
|
|
19
|
+
readonly sandboxName: string;
|
|
20
|
+
readonly timeoutMs: number;
|
|
21
|
+
constructor(sandboxName: string, timeoutMs: number);
|
|
22
|
+
}
|
|
23
|
+
export declare class VercelUnknownExitCodeError extends Error {
|
|
24
|
+
readonly cmdId: string;
|
|
25
|
+
constructor(cmdId: string);
|
|
26
|
+
}
|
|
27
|
+
export declare class VercelForeignSandboxError extends Error {
|
|
28
|
+
readonly sandboxName: string;
|
|
29
|
+
readonly namePrefix: string;
|
|
30
|
+
constructor(sandboxName: string, namePrefix: string);
|
|
31
|
+
}
|
|
32
|
+
export declare class VercelDetachedLaunchUnsupportedError extends Error {
|
|
33
|
+
constructor();
|
|
34
|
+
}
|
|
35
|
+
export declare class VercelTagLimitError extends Error {
|
|
36
|
+
readonly count: number;
|
|
37
|
+
constructor(count: number);
|
|
38
|
+
}
|
|
39
|
+
export declare class VercelListPageLimitError extends Error {
|
|
40
|
+
readonly maxPages: number;
|
|
41
|
+
readonly operation: string;
|
|
42
|
+
constructor(maxPages: number, operation: string);
|
|
43
|
+
}
|
|
44
|
+
export declare class VercelCapabilityMismatchError extends Error {
|
|
45
|
+
constructor(message: string);
|
|
46
|
+
}
|
|
47
|
+
export interface VercelAttachedSandboxOptions {
|
|
48
|
+
states?: readonly string[] | null;
|
|
49
|
+
owned?: boolean;
|
|
50
|
+
homeDir?: string;
|
|
51
|
+
workdir?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface VercelListOwnedOptions {
|
|
54
|
+
states?: readonly string[] | null;
|
|
55
|
+
/**
|
|
56
|
+
* Include sandboxes in a terminal dead state (`failed`, `aborted`). They are
|
|
57
|
+
* excluded by default because they are not usable, but a cleanup audit needs
|
|
58
|
+
* to see them: the provider still lists them, and a name they hold is not
|
|
59
|
+
* free.
|
|
60
|
+
*/
|
|
61
|
+
includeTerminated?: boolean;
|
|
62
|
+
timeoutMs?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface VercelOwnedSandbox {
|
|
65
|
+
name: string;
|
|
66
|
+
state: string;
|
|
67
|
+
/** The provider's own status string, unmapped. */
|
|
68
|
+
providerStatus: string;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
terminated: boolean;
|
|
71
|
+
tags?: Record<string, string>;
|
|
72
|
+
vcpus?: number;
|
|
73
|
+
memoryMiB?: number;
|
|
74
|
+
/** Active-CPU milliseconds billed so far, when the provider reports it. */
|
|
75
|
+
activeCpuMs?: number;
|
|
76
|
+
/** Wall-clock milliseconds so far, when the provider reports it. */
|
|
77
|
+
wallClockMs?: number;
|
|
78
|
+
}
|
|
79
|
+
export interface VercelBundleFile {
|
|
80
|
+
/** Host path when a string; exact file content when a Buffer. */
|
|
81
|
+
source: string | Buffer;
|
|
82
|
+
destination: string;
|
|
83
|
+
}
|
|
84
|
+
export interface VercelUploadBundleOptions {
|
|
85
|
+
files: VercelBundleFile[];
|
|
86
|
+
manifest?: unknown;
|
|
87
|
+
manifestPath?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface VercelRunScriptOptions extends ExecOptions {
|
|
90
|
+
command: string;
|
|
91
|
+
sessionId?: string;
|
|
92
|
+
}
|
|
93
|
+
/** Test-only injection seam. Not exported from the package barrel. */
|
|
94
|
+
export interface VercelRuntimeDependencies {
|
|
95
|
+
apiFactory?: VercelSandboxApiFactory;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Vercel Sandbox provider adapter.
|
|
99
|
+
*
|
|
100
|
+
* Identity note, and it is load-bearing: a Vercel sandbox is addressed by its
|
|
101
|
+
* **name**, unique within a project, not by an opaque server id. `RuntimeHandle.id`
|
|
102
|
+
* therefore carries the sandbox name. That is what makes prefix ownership a real
|
|
103
|
+
* boundary here rather than a labelling convention — the adapter will not mutate
|
|
104
|
+
* a sandbox whose name falls outside its prefix.
|
|
105
|
+
*/
|
|
106
|
+
export declare class VercelSandboxRuntime implements SandboxRuntime, WorkflowRuntime {
|
|
107
|
+
readonly id = "vercel";
|
|
108
|
+
readonly capabilities: {
|
|
109
|
+
readonly pty: false;
|
|
110
|
+
readonly snapshots: false;
|
|
111
|
+
readonly isolation: "strong";
|
|
112
|
+
readonly persistentHandle: true;
|
|
113
|
+
readonly streamingLogs: false;
|
|
114
|
+
};
|
|
115
|
+
readonly declaredCapabilities: {
|
|
116
|
+
readonly warmLease: false;
|
|
117
|
+
readonly lifecycle: false;
|
|
118
|
+
};
|
|
119
|
+
readonly declaredCapabilityModes: {
|
|
120
|
+
readonly outputStreams: "buffered";
|
|
121
|
+
readonly lifetime: "deadline";
|
|
122
|
+
readonly interactive: "not-exposed";
|
|
123
|
+
readonly snapshots: "not-exposed";
|
|
124
|
+
};
|
|
125
|
+
readonly observedCapabilities: import("./capabilities.js").VercelObservedCapabilities;
|
|
126
|
+
private readonly credentials;
|
|
127
|
+
private readonly namePrefix;
|
|
128
|
+
private readonly defaultHomeDir;
|
|
129
|
+
private readonly source;
|
|
130
|
+
private readonly vcpus?;
|
|
131
|
+
private readonly sandboxTimeoutMs?;
|
|
132
|
+
private readonly persistent?;
|
|
133
|
+
private readonly ports?;
|
|
134
|
+
private readonly env;
|
|
135
|
+
private readonly requestTimeoutMs;
|
|
136
|
+
private readonly createTimeoutMs;
|
|
137
|
+
private readonly lookupTimeoutMs;
|
|
138
|
+
private readonly execTimeoutMs;
|
|
139
|
+
private readonly fileTimeoutMs;
|
|
140
|
+
private readonly lifecycleTimeoutMs;
|
|
141
|
+
private readonly deleteTimeoutMs;
|
|
142
|
+
private readonly pollIntervalMs;
|
|
143
|
+
private readonly retryDeadlineMs;
|
|
144
|
+
private readonly listPageSize;
|
|
145
|
+
private readonly maxListPages;
|
|
146
|
+
private readonly injectedApiFactory?;
|
|
147
|
+
private readonly registrations;
|
|
148
|
+
private readonly instances;
|
|
149
|
+
constructor(options: VercelRuntimeOptions, dependencies?: VercelRuntimeDependencies);
|
|
150
|
+
launch(options?: LaunchOptions): Promise<RuntimeHandle>;
|
|
151
|
+
/**
|
|
152
|
+
* Launch a sandbox bound to the caller's scope.
|
|
153
|
+
*
|
|
154
|
+
* Ergonomic borrowed from the `await using` shape the SDK itself exposes on
|
|
155
|
+
* `Sandbox.create`: the sandbox is destroyed — and its destruction verified —
|
|
156
|
+
* when the scope exits, including on a thrown error. Cleanup you cannot
|
|
157
|
+
* forget is the only kind that survives a crash path.
|
|
158
|
+
*
|
|
159
|
+
* ```ts
|
|
160
|
+
* await using lease = await runtime.acquire({ labels: { job: "build" } });
|
|
161
|
+
* await runtime.exec(lease.handle, "npm test");
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
acquire(options?: LaunchOptions): Promise<{
|
|
165
|
+
handle: RuntimeHandle;
|
|
166
|
+
} & AsyncDisposable>;
|
|
167
|
+
findByLabels(labels: Record<string, string>, options?: SandboxLookupOptions): Promise<RuntimeHandle | null>;
|
|
168
|
+
findAllByLabels(labels: Record<string, string>, options?: SandboxLookupOptions): Promise<RuntimeHandle[]>;
|
|
169
|
+
countByLabels(labels: Record<string, string>, options?: SandboxCountOptions): Promise<number>;
|
|
170
|
+
/**
|
|
171
|
+
* Re-resolve a sandbox by name.
|
|
172
|
+
*
|
|
173
|
+
* Deliberately implemented over `list`, not `Sandbox.get`: `get` resumes the
|
|
174
|
+
* session as a side effect, which starts billing and boots a VM. A lookup
|
|
175
|
+
* must not be able to do that — a crash-recovery scan over a hundred handles
|
|
176
|
+
* would otherwise wake every one of them.
|
|
177
|
+
*/
|
|
178
|
+
getById(id: string, options?: VercelAttachedSandboxOptions): Promise<RuntimeHandle | null>;
|
|
179
|
+
listOwned(options?: VercelListOwnedOptions): Promise<VercelOwnedSandbox[]>;
|
|
180
|
+
runScript(handle: RuntimeHandle, options: VercelRunScriptOptions): Promise<RunScriptResult>;
|
|
181
|
+
/**
|
|
182
|
+
* Same as `runScript` but reuses an existing operation deadline.
|
|
183
|
+
*
|
|
184
|
+
* `uploadBundle` calls in from behind its own bundle-wide budget; giving the
|
|
185
|
+
* verification step a fresh `runScript` deadline would let a partly-consumed
|
|
186
|
+
* upload silently extend past its promised total. `sandboxTimeoutMs` is the
|
|
187
|
+
* script's sandbox-side cap and is passed through separately: the provider
|
|
188
|
+
* is timing the process, not our round trips.
|
|
189
|
+
*/
|
|
190
|
+
private runScriptWithDeadline;
|
|
191
|
+
exec(handle: RuntimeHandle, command: string, options?: ExecOptions): Promise<ExecResult>;
|
|
192
|
+
readonly startScript?: undefined;
|
|
193
|
+
readonly getScriptStatus?: undefined;
|
|
194
|
+
readonly getScriptLogs?: undefined;
|
|
195
|
+
uploadFile(handle: RuntimeHandle, source: string | Buffer, destination: string): Promise<void>;
|
|
196
|
+
uploadBundle(handle: RuntimeHandle, options: VercelUploadBundleOptions): Promise<void>;
|
|
197
|
+
downloadFile(handle: RuntimeHandle, source: string, destination?: string): Promise<Buffer | void>;
|
|
198
|
+
getHomeDir(handle: RuntimeHandle): Promise<string>;
|
|
199
|
+
stop(handle: RuntimeHandle): Promise<void>;
|
|
200
|
+
/**
|
|
201
|
+
* Resume a stopped sandbox.
|
|
202
|
+
*
|
|
203
|
+
* Vercel has no explicit start call: `Sandbox.get({ resume: true })` is the
|
|
204
|
+
* resume path, and it is the one place this adapter *wants* that side effect.
|
|
205
|
+
*/
|
|
206
|
+
start(handle: RuntimeHandle): Promise<RuntimeHandle>;
|
|
207
|
+
/**
|
|
208
|
+
* Delete a sandbox and verify it is gone.
|
|
209
|
+
*
|
|
210
|
+
* The registration is retained when verification fails, so a caller can retry
|
|
211
|
+
* cleanup. Dropping it would make a leaked sandbox unreachable through this
|
|
212
|
+
* runtime and therefore invisible to every subsequent audit.
|
|
213
|
+
*/
|
|
214
|
+
destroy(handle: RuntimeHandle): Promise<void>;
|
|
215
|
+
readonly launchDetached?: undefined;
|
|
216
|
+
private api;
|
|
217
|
+
/**
|
|
218
|
+
* Resolve a live sandbox object, caching it per name.
|
|
219
|
+
*
|
|
220
|
+
* The cached instance holds the SDK client, and that client's fetch reads the
|
|
221
|
+
* ambient operation deadline at call time rather than at construction time —
|
|
222
|
+
* so a cached handle never carries a stale deadline into a later operation.
|
|
223
|
+
*/
|
|
224
|
+
private sandbox;
|
|
225
|
+
/**
|
|
226
|
+
* Bound one logical operation by an absolute deadline.
|
|
227
|
+
*
|
|
228
|
+
* Two mechanisms, deliberately: the ambient signal aborts the SDK's requests
|
|
229
|
+
* *including its internal retries*, and the race turns whatever comes back
|
|
230
|
+
* into one typed error. Either alone leaves a hole — the signal alone yields
|
|
231
|
+
* an opaque `AbortError`, the race alone leaves the request running.
|
|
232
|
+
*/
|
|
233
|
+
/**
|
|
234
|
+
* Bound one logical operation by an absolute deadline.
|
|
235
|
+
*
|
|
236
|
+
* Two mechanisms, deliberately: the ambient signal aborts the SDK's requests
|
|
237
|
+
* *including its internal retries*, and the race turns whatever comes back
|
|
238
|
+
* into one typed error. Either alone leaves a hole — the signal alone yields
|
|
239
|
+
* an opaque `AbortError`, the race alone leaves the request running.
|
|
240
|
+
*
|
|
241
|
+
* Pass a `Deadline` to share one budget across a multi-round-trip operation;
|
|
242
|
+
* pass a number for a single call that owns its own budget.
|
|
243
|
+
*/
|
|
244
|
+
private run;
|
|
245
|
+
private commandParams;
|
|
246
|
+
private collect;
|
|
247
|
+
private register;
|
|
248
|
+
private forget;
|
|
249
|
+
private requireRegistered;
|
|
250
|
+
private requireOwnedName;
|
|
251
|
+
/**
|
|
252
|
+
* Walk the sandbox listing one page at a time.
|
|
253
|
+
*
|
|
254
|
+
* A generator so callers can consume pages incrementally: a single-result
|
|
255
|
+
* lookup can stop after the first candidate on page one instead of forcing
|
|
256
|
+
* every page in the project to load before filtering. Every page still draws
|
|
257
|
+
* from one shared budget, so a listing cannot cost pages x timeout.
|
|
258
|
+
*/
|
|
259
|
+
private listPages;
|
|
260
|
+
private listAll;
|
|
261
|
+
private remoteByName;
|
|
262
|
+
private requireRemote;
|
|
263
|
+
private waitForSettled;
|
|
264
|
+
/**
|
|
265
|
+
* Poll until the named sandbox is verifiably gone.
|
|
266
|
+
*
|
|
267
|
+
* Vercel deletion removes the row rather than flagging it, so absence is the
|
|
268
|
+
* proof. The `createdAtMs` guard covers the one case absence alone gets
|
|
269
|
+
* wrong: a *new* sandbox created under the same name would otherwise read as
|
|
270
|
+
* our deleted one surviving, and we would report a leak that does not exist —
|
|
271
|
+
* or worse, keep waiting on it and time out a clean teardown.
|
|
272
|
+
*/
|
|
273
|
+
private waitUntilDeleted;
|
|
274
|
+
private toHandle;
|
|
275
|
+
private ownedName;
|
|
276
|
+
private isOwnedName;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The subset of a runtime the reconciliation actually inspects.
|
|
280
|
+
*
|
|
281
|
+
* Structural rather than `VercelSandboxRuntime` so the failure modes can be
|
|
282
|
+
* unit-tested with deliberately broken fakes. A reconciliation whose failure
|
|
283
|
+
* path is untestable is a reconciliation nobody has checked.
|
|
284
|
+
*/
|
|
285
|
+
export type VercelCapabilitySurface = {
|
|
286
|
+
getById?: unknown;
|
|
287
|
+
findAllByLabels?: unknown;
|
|
288
|
+
start?: unknown;
|
|
289
|
+
stop?: unknown;
|
|
290
|
+
destroy?: unknown;
|
|
291
|
+
listOwned?: unknown;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Construction-time reconciliation between the SDK-free declarations and the
|
|
295
|
+
* surface actually implemented.
|
|
296
|
+
*
|
|
297
|
+
* The registries are exhaustive over every capability key, so adding a key
|
|
298
|
+
* without deciding how it is backed is a type error rather than an unnoticed
|
|
299
|
+
* `false`. A conservative *under*-claim is always allowed — that is how a
|
|
300
|
+
* capability stays false until live evidence promotes it — but a `true` claim
|
|
301
|
+
* without the implementation behind it throws here, at construction, rather
|
|
302
|
+
* than surfacing as a runtime surprise at the call site.
|
|
303
|
+
*/
|
|
304
|
+
export declare function reconcileVercelCapabilities(runtime: VercelCapabilitySurface): void;
|
|
305
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/vercel/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIrC,OAAO,KAAK,EACV,eAAe,EAEf,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACf,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,eAAe,EAChB,MAAM,aAAa,CAAC;AAOrB,OAAO,KAAK,EAAE,oBAAoB,EAAuB,MAAM,aAAa,CAAC;AAC7E,OAAO,EAML,KAAK,uBAAuB,EAI7B,MAAM,mBAAmB,CAAC;AAgC3B,qBAAa,2BAA4B,SAAQ,KAAK;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM;gBAA7C,SAAS,EAAE,MAAM,EAAW,SAAS,EAAE,MAAM;CAInE;AAED,qBAAa,2BAA4B,SAAQ,KAAK;IAElD,QAAQ,CAAC,WAAW,EAAE,MAAM;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM;gBAHjB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,E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