@immediately-run/sdk 0.81.0 → 0.82.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/dist/netFetch.cjs +7 -1
- package/dist/netFetch.cjs.map +1 -1
- package/dist/netFetch.d.cts +10 -1
- package/dist/netFetch.d.ts +10 -1
- package/dist/netFetch.js +7 -1
- package/dist/netFetch.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +5 -4
package/dist/netFetch.cjs
CHANGED
|
@@ -29,7 +29,13 @@ var import_protocolSchemes = require("./protocolSchemes");
|
|
|
29
29
|
var import_protocol = require("./generated/protocol");
|
|
30
30
|
const hostFetch = async (url, init = {}) => {
|
|
31
31
|
const res = await (0, import_sandboxUtils.protocolRequest)(import_protocolSchemes.SCHEMES[import_protocol.PROTOCOL_FETCH], "fetch", [
|
|
32
|
-
{
|
|
32
|
+
{
|
|
33
|
+
url,
|
|
34
|
+
method: init.method,
|
|
35
|
+
headers: init.headers,
|
|
36
|
+
body: init.body,
|
|
37
|
+
...init.responseType ? { responseType: init.responseType } : {}
|
|
38
|
+
}
|
|
33
39
|
]);
|
|
34
40
|
(0, import_protocolRefusal.throwOnRefusal)(res, "hostFetch failed");
|
|
35
41
|
return res.data;
|
package/dist/netFetch.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/netFetch.ts"],"sourcesContent":["// hostFetch — the app-facing side of the §5.11 parent-fetch proxy. The app calls\n// `hostFetch(url, init)`; the HOST performs the fetch with its real origin, but\n// only after validating `url` against your manifest's\n// `requests.\"net:fetch\".hosts` ∩ the user's consented hosts, blocking SSRF\n// targets, omitting immediately.run credentials, refusing redirects, and bounding\n// the response size. No raw network handle ever crosses the boundary (§8.10) —\n// only the serialized response.\n\nimport { protocolRequest } from './sandboxUtils';\nimport { throwOnRefusal } from './protocolRefusal';\nimport { protocolStream } from './protocolStream';\nimport { SCHEMES } from './protocolSchemes';\nimport { PROTOCOL_FETCH } from './generated/protocol';\n\n/** Request options for {@link hostFetch}: method, headers, and a string body. */\nexport interface HostFetchInit {\n method?: string;\n headers?: Record<string, string>;\n /** Request body for non-GET/HEAD methods (string). */\n body?: string;\n}\n\n/** The serialized response from {@link hostFetch} (no live stream crosses the boundary). */\nexport interface HostFetchResponse {\n status: number;\n statusText: string;\n headers: Record<string, string>;\n body: string;\n /** True if the body hit the host's size cap and was truncated. */\n truncated: boolean;\n}\n\n/**\n * Fetch through the host's parent-fetch proxy (§5.11). Requires the `net:fetch`\n * capability with `url`'s origin in your effective allowlist (manifest ∩ the\n * user's consent) — both are arranged at load via the consent screen.\n *\n * A reachable server's reply (including a non-2xx status) RESOLVES — inspect\n * `.status`. A gate/SSRF/transport failure REJECTS with an {@link Error} carrying\n * a machine `.code`: `forbidden` (outside the allowlist), `blocked` (SSRF target),\n * `invalid` (bad url/scheme), `redirect` (the host refuses to follow redirects),\n * `too-large`, or `network`.\n */\nexport const hostFetch = async (url: string, init: HostFetchInit = {}): Promise<HostFetchResponse> => {\n const res = (await protocolRequest(SCHEMES[PROTOCOL_FETCH], 'fetch', [\n {
|
|
1
|
+
{"version":3,"sources":["../src/netFetch.ts"],"sourcesContent":["// hostFetch — the app-facing side of the §5.11 parent-fetch proxy. The app calls\n// `hostFetch(url, init)`; the HOST performs the fetch with its real origin, but\n// only after validating `url` against your manifest's\n// `requests.\"net:fetch\".hosts` ∩ the user's consented hosts, blocking SSRF\n// targets, omitting immediately.run credentials, refusing redirects, and bounding\n// the response size. No raw network handle ever crosses the boundary (§8.10) —\n// only the serialized response.\n\nimport { protocolRequest } from './sandboxUtils';\nimport { throwOnRefusal } from './protocolRefusal';\nimport { protocolStream } from './protocolStream';\nimport { SCHEMES } from './protocolSchemes';\nimport { PROTOCOL_FETCH } from './generated/protocol';\n\n/** Request options for {@link hostFetch}: method, headers, and a string body. */\nexport interface HostFetchInit {\n method?: string;\n headers?: Record<string, string>;\n /** Request body for non-GET/HEAD methods (string). */\n body?: string;\n /** R3-861: `'bytes'` returns the exact response bytes in `bodyBytes` (an image,\n * a PDF — never text-decoded). Default `'text'`, unchanged. A bytes response\n * over the host's size cap is REFUSED `too-large`, never truncated. */\n responseType?: 'text' | 'bytes';\n}\n\n/** The serialized response from {@link hostFetch} (no live stream crosses the boundary). */\nexport interface HostFetchResponse {\n status: number;\n statusText: string;\n headers: Record<string, string>;\n /** The text body — `''` when the request asked for bytes. */\n body: string;\n /** True if the body hit the host's size cap and was truncated (text mode only —\n * bytes mode refuses `too-large` instead). */\n truncated: boolean;\n /** R3-861: the exact response bytes when the request said `responseType: 'bytes'`\n * (transferred, zero-copy). */\n bodyBytes?: Uint8Array;\n}\n\n/**\n * Fetch through the host's parent-fetch proxy (§5.11). Requires the `net:fetch`\n * capability with `url`'s origin in your effective allowlist (manifest ∩ the\n * user's consent) — both are arranged at load via the consent screen.\n *\n * A reachable server's reply (including a non-2xx status) RESOLVES — inspect\n * `.status`. A gate/SSRF/transport failure REJECTS with an {@link Error} carrying\n * a machine `.code`: `forbidden` (outside the allowlist), `blocked` (SSRF target),\n * `invalid` (bad url/scheme), `redirect` (the host refuses to follow redirects),\n * `too-large`, or `network`.\n */\nexport const hostFetch = async (url: string, init: HostFetchInit = {}): Promise<HostFetchResponse> => {\n const res = (await protocolRequest(SCHEMES[PROTOCOL_FETCH], 'fetch', [\n {\n url,\n method: init.method,\n headers: init.headers,\n body: init.body,\n ...(init.responseType ? { responseType: init.responseType } : {}),\n },\n ])) as { ok: true; data: HostFetchResponse } | { ok: false; code?: string; message?: string } | undefined;\n throwOnRefusal(res, 'hostFetch failed');\n return res.data;\n};\n\n/** One streamed slice of the response body (a chunk as it arrives from the\n * host). Concatenate `.chunk` across the stream to rebuild the body. */\nexport interface HostFetchStreamEvent {\n chunk: string;\n}\n\n/** The terminal value of a {@link hostFetchStream} run — the response metadata,\n * delivered once after the last body chunk. There is no `body` field: the body\n * arrived as the stream of {@link HostFetchStreamEvent}s. */\nexport interface HostFetchStreamResult {\n status: number;\n statusText: string;\n headers: Record<string, string>;\n /** True if the stream hit the host's cumulative byte cap and was truncated. */\n truncated: boolean;\n /** Total decoded body bytes delivered. */\n bytes: number;\n}\n\n/**\n * Stream a response through the host's parent-fetch proxy (§5.11 streaming;\n * `LLM_AND_AGENTS_SPEC §2.2`) — the streaming counterpart of {@link hostFetch},\n * for SSE / LLM token streaming. Same `net:fetch` gate (manifest ∩ consent),\n * same credential-less rule and per-hop SSRF re-check; the response body is\n * pumped as a sequence of {@link HostFetchStreamEvent} chunks instead of a single\n * buffered reply.\n *\n * ```ts\n * let body = '';\n * for await (const { chunk } of hostFetchStream(url, { method: 'POST', body })) {\n * body += chunk; // e.g. parse SSE / token deltas as they arrive\n * }\n * ```\n *\n * The generator **returns** a {@link HostFetchStreamResult} (status + headers +\n * `truncated`/`bytes`) when the body completes. A gate/SSRF/transport failure —\n * or one of the host's stream bounds — **throws** a `StreamError` (from\n * `./protocolStream`) carrying a\n * machine `.code`: `forbidden` (outside the allowlist), `blocked` (SSRF target),\n * `invalid` (bad url/scheme), `redirect` (the host refuses to follow redirects),\n * `idle-timeout` / `total-timeout` (the host's stream bounds), `byte-cap`, or\n * `network`. The stream is bounded by the host's idle/total timeouts and a\n * cumulative byte cap, so it cannot be used as an unbounded transfer channel.\n *\n * Requires the host to implement the `protocol-fetch` streaming emitter; until\n * that lands a streaming request fails with `not-streamable` and callers should\n * fall back to {@link hostFetch} (`LLM_AND_AGENTS_SPEC §2.2`, roadmap P3-71).\n */\nexport function hostFetchStream(\n url: string,\n init: HostFetchInit = {},\n): AsyncGenerator<HostFetchStreamEvent, HostFetchStreamResult, void> {\n return protocolStream<HostFetchStreamEvent, HostFetchStreamResult>(PROTOCOL_FETCH, 'fetchStream', [\n { url, method: init.method, headers: init.headers, body: init.body },\n ]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,0BAAgC;AAChC,6BAA+B;AAC/B,4BAA+B;AAC/B,6BAAwB;AACxB,sBAA+B;AAwCxB,MAAM,YAAY,OAAO,KAAa,OAAsB,CAAC,MAAkC;AACpG,QAAM,MAAO,UAAM,qCAAgB,+BAAQ,8BAAc,GAAG,SAAS;AAAA,IACnE;AAAA,MACE;AAAA,MACA,QAAQ,KAAK;AAAA,MACb,SAAS,KAAK;AAAA,MACd,MAAM,KAAK;AAAA,MACX,GAAI,KAAK,eAAe,EAAE,cAAc,KAAK,aAAa,IAAI,CAAC;AAAA,IACjE;AAAA,EACF,CAAC;AACD,6CAAe,KAAK,kBAAkB;AACtC,SAAO,IAAI;AACb;AAkDO,SAAS,gBACd,KACA,OAAsB,CAAC,GAC4C;AACnE,aAAO,sCAA4D,gCAAgB,eAAe;AAAA,IAChG,EAAE,KAAK,QAAQ,KAAK,QAAQ,SAAS,KAAK,SAAS,MAAM,KAAK,KAAK;AAAA,EACrE,CAAC;AACH;","names":[]}
|
package/dist/netFetch.d.cts
CHANGED
|
@@ -4,15 +4,24 @@ interface HostFetchInit {
|
|
|
4
4
|
headers?: Record<string, string>;
|
|
5
5
|
/** Request body for non-GET/HEAD methods (string). */
|
|
6
6
|
body?: string;
|
|
7
|
+
/** R3-861: `'bytes'` returns the exact response bytes in `bodyBytes` (an image,
|
|
8
|
+
* a PDF — never text-decoded). Default `'text'`, unchanged. A bytes response
|
|
9
|
+
* over the host's size cap is REFUSED `too-large`, never truncated. */
|
|
10
|
+
responseType?: 'text' | 'bytes';
|
|
7
11
|
}
|
|
8
12
|
/** The serialized response from {@link hostFetch} (no live stream crosses the boundary). */
|
|
9
13
|
interface HostFetchResponse {
|
|
10
14
|
status: number;
|
|
11
15
|
statusText: string;
|
|
12
16
|
headers: Record<string, string>;
|
|
17
|
+
/** The text body — `''` when the request asked for bytes. */
|
|
13
18
|
body: string;
|
|
14
|
-
/** True if the body hit the host's size cap and was truncated
|
|
19
|
+
/** True if the body hit the host's size cap and was truncated (text mode only —
|
|
20
|
+
* bytes mode refuses `too-large` instead). */
|
|
15
21
|
truncated: boolean;
|
|
22
|
+
/** R3-861: the exact response bytes when the request said `responseType: 'bytes'`
|
|
23
|
+
* (transferred, zero-copy). */
|
|
24
|
+
bodyBytes?: Uint8Array;
|
|
16
25
|
}
|
|
17
26
|
/**
|
|
18
27
|
* Fetch through the host's parent-fetch proxy (§5.11). Requires the `net:fetch`
|
package/dist/netFetch.d.ts
CHANGED
|
@@ -4,15 +4,24 @@ interface HostFetchInit {
|
|
|
4
4
|
headers?: Record<string, string>;
|
|
5
5
|
/** Request body for non-GET/HEAD methods (string). */
|
|
6
6
|
body?: string;
|
|
7
|
+
/** R3-861: `'bytes'` returns the exact response bytes in `bodyBytes` (an image,
|
|
8
|
+
* a PDF — never text-decoded). Default `'text'`, unchanged. A bytes response
|
|
9
|
+
* over the host's size cap is REFUSED `too-large`, never truncated. */
|
|
10
|
+
responseType?: 'text' | 'bytes';
|
|
7
11
|
}
|
|
8
12
|
/** The serialized response from {@link hostFetch} (no live stream crosses the boundary). */
|
|
9
13
|
interface HostFetchResponse {
|
|
10
14
|
status: number;
|
|
11
15
|
statusText: string;
|
|
12
16
|
headers: Record<string, string>;
|
|
17
|
+
/** The text body — `''` when the request asked for bytes. */
|
|
13
18
|
body: string;
|
|
14
|
-
/** True if the body hit the host's size cap and was truncated
|
|
19
|
+
/** True if the body hit the host's size cap and was truncated (text mode only —
|
|
20
|
+
* bytes mode refuses `too-large` instead). */
|
|
15
21
|
truncated: boolean;
|
|
22
|
+
/** R3-861: the exact response bytes when the request said `responseType: 'bytes'`
|
|
23
|
+
* (transferred, zero-copy). */
|
|
24
|
+
bodyBytes?: Uint8Array;
|
|
16
25
|
}
|
|
17
26
|
/**
|
|
18
27
|
* Fetch through the host's parent-fetch proxy (§5.11). Requires the `net:fetch`
|
package/dist/netFetch.js
CHANGED
|
@@ -6,7 +6,13 @@ import { SCHEMES } from "./protocolSchemes.js";
|
|
|
6
6
|
import { PROTOCOL_FETCH } from "./generated/protocol.js";
|
|
7
7
|
const hostFetch = async (url, init = {}) => {
|
|
8
8
|
const res = await protocolRequest(SCHEMES[PROTOCOL_FETCH], "fetch", [
|
|
9
|
-
{
|
|
9
|
+
{
|
|
10
|
+
url,
|
|
11
|
+
method: init.method,
|
|
12
|
+
headers: init.headers,
|
|
13
|
+
body: init.body,
|
|
14
|
+
...init.responseType ? { responseType: init.responseType } : {}
|
|
15
|
+
}
|
|
10
16
|
]);
|
|
11
17
|
throwOnRefusal(res, "hostFetch failed");
|
|
12
18
|
return res.data;
|
package/dist/netFetch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/netFetch.ts"],"sourcesContent":["// hostFetch — the app-facing side of the §5.11 parent-fetch proxy. The app calls\n// `hostFetch(url, init)`; the HOST performs the fetch with its real origin, but\n// only after validating `url` against your manifest's\n// `requests.\"net:fetch\".hosts` ∩ the user's consented hosts, blocking SSRF\n// targets, omitting immediately.run credentials, refusing redirects, and bounding\n// the response size. No raw network handle ever crosses the boundary (§8.10) —\n// only the serialized response.\n\nimport { protocolRequest } from './sandboxUtils';\nimport { throwOnRefusal } from './protocolRefusal';\nimport { protocolStream } from './protocolStream';\nimport { SCHEMES } from './protocolSchemes';\nimport { PROTOCOL_FETCH } from './generated/protocol';\n\n/** Request options for {@link hostFetch}: method, headers, and a string body. */\nexport interface HostFetchInit {\n method?: string;\n headers?: Record<string, string>;\n /** Request body for non-GET/HEAD methods (string). */\n body?: string;\n}\n\n/** The serialized response from {@link hostFetch} (no live stream crosses the boundary). */\nexport interface HostFetchResponse {\n status: number;\n statusText: string;\n headers: Record<string, string>;\n body: string;\n /** True if the body hit the host's size cap and was truncated. */\n truncated: boolean;\n}\n\n/**\n * Fetch through the host's parent-fetch proxy (§5.11). Requires the `net:fetch`\n * capability with `url`'s origin in your effective allowlist (manifest ∩ the\n * user's consent) — both are arranged at load via the consent screen.\n *\n * A reachable server's reply (including a non-2xx status) RESOLVES — inspect\n * `.status`. A gate/SSRF/transport failure REJECTS with an {@link Error} carrying\n * a machine `.code`: `forbidden` (outside the allowlist), `blocked` (SSRF target),\n * `invalid` (bad url/scheme), `redirect` (the host refuses to follow redirects),\n * `too-large`, or `network`.\n */\nexport const hostFetch = async (url: string, init: HostFetchInit = {}): Promise<HostFetchResponse> => {\n const res = (await protocolRequest(SCHEMES[PROTOCOL_FETCH], 'fetch', [\n {
|
|
1
|
+
{"version":3,"sources":["../src/netFetch.ts"],"sourcesContent":["// hostFetch — the app-facing side of the §5.11 parent-fetch proxy. The app calls\n// `hostFetch(url, init)`; the HOST performs the fetch with its real origin, but\n// only after validating `url` against your manifest's\n// `requests.\"net:fetch\".hosts` ∩ the user's consented hosts, blocking SSRF\n// targets, omitting immediately.run credentials, refusing redirects, and bounding\n// the response size. No raw network handle ever crosses the boundary (§8.10) —\n// only the serialized response.\n\nimport { protocolRequest } from './sandboxUtils';\nimport { throwOnRefusal } from './protocolRefusal';\nimport { protocolStream } from './protocolStream';\nimport { SCHEMES } from './protocolSchemes';\nimport { PROTOCOL_FETCH } from './generated/protocol';\n\n/** Request options for {@link hostFetch}: method, headers, and a string body. */\nexport interface HostFetchInit {\n method?: string;\n headers?: Record<string, string>;\n /** Request body for non-GET/HEAD methods (string). */\n body?: string;\n /** R3-861: `'bytes'` returns the exact response bytes in `bodyBytes` (an image,\n * a PDF — never text-decoded). Default `'text'`, unchanged. A bytes response\n * over the host's size cap is REFUSED `too-large`, never truncated. */\n responseType?: 'text' | 'bytes';\n}\n\n/** The serialized response from {@link hostFetch} (no live stream crosses the boundary). */\nexport interface HostFetchResponse {\n status: number;\n statusText: string;\n headers: Record<string, string>;\n /** The text body — `''` when the request asked for bytes. */\n body: string;\n /** True if the body hit the host's size cap and was truncated (text mode only —\n * bytes mode refuses `too-large` instead). */\n truncated: boolean;\n /** R3-861: the exact response bytes when the request said `responseType: 'bytes'`\n * (transferred, zero-copy). */\n bodyBytes?: Uint8Array;\n}\n\n/**\n * Fetch through the host's parent-fetch proxy (§5.11). Requires the `net:fetch`\n * capability with `url`'s origin in your effective allowlist (manifest ∩ the\n * user's consent) — both are arranged at load via the consent screen.\n *\n * A reachable server's reply (including a non-2xx status) RESOLVES — inspect\n * `.status`. A gate/SSRF/transport failure REJECTS with an {@link Error} carrying\n * a machine `.code`: `forbidden` (outside the allowlist), `blocked` (SSRF target),\n * `invalid` (bad url/scheme), `redirect` (the host refuses to follow redirects),\n * `too-large`, or `network`.\n */\nexport const hostFetch = async (url: string, init: HostFetchInit = {}): Promise<HostFetchResponse> => {\n const res = (await protocolRequest(SCHEMES[PROTOCOL_FETCH], 'fetch', [\n {\n url,\n method: init.method,\n headers: init.headers,\n body: init.body,\n ...(init.responseType ? { responseType: init.responseType } : {}),\n },\n ])) as { ok: true; data: HostFetchResponse } | { ok: false; code?: string; message?: string } | undefined;\n throwOnRefusal(res, 'hostFetch failed');\n return res.data;\n};\n\n/** One streamed slice of the response body (a chunk as it arrives from the\n * host). Concatenate `.chunk` across the stream to rebuild the body. */\nexport interface HostFetchStreamEvent {\n chunk: string;\n}\n\n/** The terminal value of a {@link hostFetchStream} run — the response metadata,\n * delivered once after the last body chunk. There is no `body` field: the body\n * arrived as the stream of {@link HostFetchStreamEvent}s. */\nexport interface HostFetchStreamResult {\n status: number;\n statusText: string;\n headers: Record<string, string>;\n /** True if the stream hit the host's cumulative byte cap and was truncated. */\n truncated: boolean;\n /** Total decoded body bytes delivered. */\n bytes: number;\n}\n\n/**\n * Stream a response through the host's parent-fetch proxy (§5.11 streaming;\n * `LLM_AND_AGENTS_SPEC §2.2`) — the streaming counterpart of {@link hostFetch},\n * for SSE / LLM token streaming. Same `net:fetch` gate (manifest ∩ consent),\n * same credential-less rule and per-hop SSRF re-check; the response body is\n * pumped as a sequence of {@link HostFetchStreamEvent} chunks instead of a single\n * buffered reply.\n *\n * ```ts\n * let body = '';\n * for await (const { chunk } of hostFetchStream(url, { method: 'POST', body })) {\n * body += chunk; // e.g. parse SSE / token deltas as they arrive\n * }\n * ```\n *\n * The generator **returns** a {@link HostFetchStreamResult} (status + headers +\n * `truncated`/`bytes`) when the body completes. A gate/SSRF/transport failure —\n * or one of the host's stream bounds — **throws** a `StreamError` (from\n * `./protocolStream`) carrying a\n * machine `.code`: `forbidden` (outside the allowlist), `blocked` (SSRF target),\n * `invalid` (bad url/scheme), `redirect` (the host refuses to follow redirects),\n * `idle-timeout` / `total-timeout` (the host's stream bounds), `byte-cap`, or\n * `network`. The stream is bounded by the host's idle/total timeouts and a\n * cumulative byte cap, so it cannot be used as an unbounded transfer channel.\n *\n * Requires the host to implement the `protocol-fetch` streaming emitter; until\n * that lands a streaming request fails with `not-streamable` and callers should\n * fall back to {@link hostFetch} (`LLM_AND_AGENTS_SPEC §2.2`, roadmap P3-71).\n */\nexport function hostFetchStream(\n url: string,\n init: HostFetchInit = {},\n): AsyncGenerator<HostFetchStreamEvent, HostFetchStreamResult, void> {\n return protocolStream<HostFetchStreamEvent, HostFetchStreamResult>(PROTOCOL_FETCH, 'fetchStream', [\n { url, method: init.method, headers: init.headers, body: init.body },\n ]);\n}\n"],"mappings":";AAQA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAwCxB,MAAM,YAAY,OAAO,KAAa,OAAsB,CAAC,MAAkC;AACpG,QAAM,MAAO,MAAM,gBAAgB,QAAQ,cAAc,GAAG,SAAS;AAAA,IACnE;AAAA,MACE;AAAA,MACA,QAAQ,KAAK;AAAA,MACb,SAAS,KAAK;AAAA,MACd,MAAM,KAAK;AAAA,MACX,GAAI,KAAK,eAAe,EAAE,cAAc,KAAK,aAAa,IAAI,CAAC;AAAA,IACjE;AAAA,EACF,CAAC;AACD,iBAAe,KAAK,kBAAkB;AACtC,SAAO,IAAI;AACb;AAkDO,SAAS,gBACd,KACA,OAAsB,CAAC,GAC4C;AACnE,SAAO,eAA4D,gBAAgB,eAAe;AAAA,IAChG,EAAE,KAAK,QAAQ,KAAK,QAAQ,SAAS,KAAK,SAAS,MAAM,KAAK,KAAK;AAAA,EACrE,CAAC;AACH;","names":[]}
|
package/dist/version.cjs
CHANGED
|
@@ -21,7 +21,7 @@ __export(version_exports, {
|
|
|
21
21
|
SDK_VERSION: () => SDK_VERSION
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(version_exports);
|
|
24
|
-
const SDK_VERSION = "0.
|
|
24
|
+
const SDK_VERSION = "0.82.0";
|
|
25
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
26
|
0 && (module.exports = {
|
|
27
27
|
SDK_VERSION
|
package/dist/version.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.82.0';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,cAAc;","names":[]}
|
package/dist/version.d.cts
CHANGED
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.82.0';\n"],"mappings":";AAIO,MAAM,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.82.0",
|
|
4
4
|
"description": "Runtime SDK for code executing inside an immediately.run sandbox.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:immediately-run/immediately-run-sdk",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"check:clones": "node scripts/check-clones.mjs",
|
|
47
47
|
"check:unused": "node scripts/check-unused.mjs",
|
|
48
48
|
"check:untested": "node scripts/check-untested.mjs",
|
|
49
|
-
"verify": "npm run check:lock-version && npm run check:pins && npm run check:publish-version && npm run check:published && npm run check:verify-parity && npm run format:check && npm run check:circular && npm run check:clones && npm run check:unused && npm run check:untested && npm run check:bundler:selftest && npm run check:bundler && npm run build && npm run check:published && npm run check:reproducible && npm test && npm run test:safe-content && npm run test:metadata-e2e && npm run test:subpath-imports && npm run api:selftest && npm run api:check && npm run compat:selftest && npm run compat:previous && npm run protocol:check && npm run protocol:selftest && npm run check:ambient:selftest && npm run check:ambient && npm run check:selfhost:selftest && npm run check:selfhost && npm run check:dist-specifiers:selftest && npm run verify:codegen-parity && npm run verify:descriptor-lockstep",
|
|
49
|
+
"verify": "npm run check:lock-version && npm run check:pins && npm run check:publish-version && npm run check:published && npm run check:verify-parity && npm run format:check && npm run check:circular && npm run check:clones && npm run check:unused && npm run check:untested && npm run check:bundler:selftest && npm run check:bundler && npm run build && npm run check:published && npm run check:reproducible && npm test && npm run test:safe-content && npm run test:metadata-e2e && npm run test:subpath-imports && npm run test:netfetch-bytes-e2e && npm run api:selftest && npm run api:check && npm run compat:selftest && npm run compat:previous && npm run protocol:check && npm run protocol:selftest && npm run check:ambient:selftest && npm run check:ambient && npm run check:selfhost:selftest && npm run check:selfhost && npm run check:dist-specifiers:selftest && npm run verify:codegen-parity && npm run verify:descriptor-lockstep",
|
|
50
50
|
"docs": "typedoc --json docs/api.json && node scripts/gen-descriptor-docs.mjs && node scripts/gen-llms.mjs",
|
|
51
51
|
"prepublishOnly": "npm run check:circular && npm run build && npm run api:selftest && npm run api:check",
|
|
52
52
|
"test:safe-content": "node scripts/build-safecontent-e2e.mjs && node --test test/safeContent.e2e.mjs",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"check:ambient": "node scripts/check-ambient-types.mjs",
|
|
64
64
|
"check:dist-specifiers:selftest": "node scripts/fix-dist-esm-specifiers.mjs --self-test",
|
|
65
65
|
"check:ambient:selftest": "node scripts/check-ambient-types.mjs --self-test",
|
|
66
|
-
"check:lock-version": "node scripts/check-lock-version.mjs --self-test && node scripts/check-lock-version.mjs"
|
|
66
|
+
"check:lock-version": "node scripts/check-lock-version.mjs --self-test && node scripts/check-lock-version.mjs",
|
|
67
|
+
"test:netfetch-bytes-e2e": "node --test test/netFetchBytes.e2e.mjs"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
69
70
|
"react": "^19.0.0",
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
"@immediately-run/mdx-plugins": "0.7.1",
|
|
74
75
|
"@immediately-run/platform-constants": "0.2.0",
|
|
75
76
|
"@immediately-run/safe-content": "0.1.0",
|
|
76
|
-
"@immediately-run/sandbox-protocol": "^0.
|
|
77
|
+
"@immediately-run/sandbox-protocol": "^0.18.0",
|
|
77
78
|
"react-error-boundary": "^6.0.0"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|