@ai-hero/sandcastle 0.13.0 → 0.14.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 +3 -3
- package/dist/{SandboxProvider-YCL97qco.d.ts → SandboxProvider-Chsi-Zs6.d.ts} +3 -2
- package/dist/{chunk-767EAJVT.js → chunk-ATA2V2TC.js} +3 -3
- package/dist/{chunk-767EAJVT.js.map → chunk-ATA2V2TC.js.map} +1 -1
- package/dist/{chunk-4EIVTSOZ.js → chunk-BIF2X6QB.js} +4 -3
- package/dist/chunk-BIF2X6QB.js.map +1 -0
- package/dist/{chunk-XCYK7I45.js → chunk-BVZWLFFT.js} +2 -2
- package/dist/chunk-BVZWLFFT.js.map +1 -0
- package/dist/chunk-EXYXBRCX.js +60 -0
- package/dist/chunk-EXYXBRCX.js.map +1 -0
- package/dist/chunk-G2R53CVZ.js +3172 -0
- package/dist/chunk-G2R53CVZ.js.map +1 -0
- package/dist/{chunk-U42XXICG.js → chunk-GCLEXPXG.js} +7 -4
- package/dist/chunk-GCLEXPXG.js.map +1 -0
- package/dist/chunk-H2PEFS4W.js +1244 -0
- package/dist/chunk-H2PEFS4W.js.map +1 -0
- package/dist/{chunk-NMQ5Z6YG.js → chunk-HSXPRZKG.js} +5 -3
- package/dist/chunk-HSXPRZKG.js.map +1 -0
- package/dist/{chunk-J5J5YJ5S.js → chunk-IBK2XNSS.js} +3 -3
- package/dist/{chunk-J5J5YJ5S.js.map → chunk-IBK2XNSS.js.map} +1 -1
- package/dist/chunk-RDW7FNN6.js +792 -0
- package/dist/chunk-RDW7FNN6.js.map +1 -0
- package/dist/{chunk-A4C2FG74.js → chunk-S6UHPTRG.js} +43 -42
- package/dist/chunk-S6UHPTRG.js.map +1 -0
- package/dist/{chunk-LWNC4UTZ.js → chunk-STB2U7BB.js} +5414 -9389
- package/dist/chunk-STB2U7BB.js.map +1 -0
- package/dist/{chunk-XCWKLDH4.js → chunk-VRXR2T3S.js} +3 -3
- package/dist/{chunk-XCWKLDH4.js.map → chunk-VRXR2T3S.js.map} +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +458 -1675
- package/dist/index.js.map +1 -1
- package/dist/main.js +262 -247
- package/dist/main.js.map +1 -1
- package/dist/sandboxes/bwrap.d.ts +1 -1
- package/dist/sandboxes/bwrap.js +9 -6
- package/dist/sandboxes/bwrap.js.map +1 -1
- package/dist/sandboxes/daytona.d.ts +1 -1
- package/dist/sandboxes/daytona.js +179 -135
- package/dist/sandboxes/daytona.js.map +1 -1
- package/dist/sandboxes/docker.d.ts +1 -1
- package/dist/sandboxes/docker.js +6 -3
- package/dist/sandboxes/e2b.d.ts +41 -0
- package/dist/sandboxes/e2b.js +202 -0
- package/dist/sandboxes/e2b.js.map +1 -0
- package/dist/sandboxes/modal.d.ts +78 -0
- package/dist/sandboxes/modal.js +171 -0
- package/dist/sandboxes/modal.js.map +1 -0
- package/dist/sandboxes/no-sandbox.d.ts +1 -1
- package/dist/sandboxes/podman.d.ts +1 -1
- package/dist/sandboxes/podman.js +6 -3
- package/dist/sandboxes/podman.js.map +1 -1
- package/dist/sandboxes/seatbelt.d.ts +1 -1
- package/dist/sandboxes/seatbelt.js +9 -6
- package/dist/sandboxes/seatbelt.js.map +1 -1
- package/dist/sandboxes/sprites.d.ts +54 -0
- package/dist/sandboxes/sprites.js +198 -0
- package/dist/sandboxes/sprites.js.map +1 -0
- package/dist/sandboxes/vercel.d.ts +1 -1
- package/dist/sandboxes/vercel.js +1 -1
- package/package.json +30 -2
- package/dist/chunk-4EIVTSOZ.js.map +0 -1
- package/dist/chunk-A4C2FG74.js.map +0 -1
- package/dist/chunk-LWNC4UTZ.js.map +0 -1
- package/dist/chunk-NMQ5Z6YG.js.map +0 -1
- package/dist/chunk-U42XXICG.js.map +0 -1
- package/dist/chunk-XCYK7I45.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
-
import { NativeInteractiveNotSupportedError } from './chunk-
|
|
2
|
+
import { NativeInteractiveNotSupportedError } from './chunk-RDW7FNN6.js';
|
|
3
3
|
|
|
4
4
|
createRequire(import.meta.url);
|
|
5
5
|
|
|
@@ -20,5 +20,5 @@ var assertInteractiveSupported = (provider) => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { NativeInteractiveNotSupportedError2 as NativeInteractiveNotSupportedError, assertInteractiveSupported, markNativeSandboxProvider };
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
23
|
+
//# sourceMappingURL=chunk-VRXR2T3S.js.map
|
|
24
|
+
//# sourceMappingURL=chunk-VRXR2T3S.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/nativeSandboxProvider.ts"],"names":["NativeInteractiveNotSupportedError"],"mappings":";;;;;;AAUA,IAAM,eAAA,uBAAsB,OAAA,EAAyB;AAG9C,IAAM,yBAAA,GAA4B,CACvC,QAAA,KACM;AACN,EAAA,eAAA,CAAgB,IAAI,QAAQ,CAAA;AAC5B,EAAA,OAAO,QAAA;AACT;AA4BO,IAAMA,mCAAAA,GACX;AAGK,IAAM,0BAAA,GAA6B,CACxC,QAAA,KACS;AACT,EAAA,IAAI,QAAA,KAAa,MAAA,IAAa,eAAA,CAAgB,GAAA,CAAI,QAAQ,CAAA,EAAG;AAC3D,IAAA,MAAM,IAAIA,mCAAAA,CAAmC;AAAA,MAC3C,OAAA,EACE,CAAA,wDAAA,EAA2D,QAAA,CAAS,IAAI,CAAA,iEAAA,CAAA;AAAA,MAE1E,UAAU,QAAA,CAAS;AAAA,KACpB,CAAA;AAAA,EACH;AACF","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/nativeSandboxProvider.ts"],"names":["NativeInteractiveNotSupportedError"],"mappings":";;;;;;AAUA,IAAM,eAAA,uBAAsB,OAAA,EAAyB;AAG9C,IAAM,yBAAA,GAA4B,CACvC,QAAA,KACM;AACN,EAAA,eAAA,CAAgB,IAAI,QAAQ,CAAA;AAC5B,EAAA,OAAO,QAAA;AACT;AA4BO,IAAMA,mCAAAA,GACX;AAGK,IAAM,0BAAA,GAA6B,CACxC,QAAA,KACS;AACT,EAAA,IAAI,QAAA,KAAa,MAAA,IAAa,eAAA,CAAgB,GAAA,CAAI,QAAQ,CAAA,EAAG;AAC3D,IAAA,MAAM,IAAIA,mCAAAA,CAAmC;AAAA,MAC3C,OAAA,EACE,CAAA,wDAAA,EAA2D,QAAA,CAAS,IAAI,CAAA,iEAAA,CAAA;AAAA,MAE1E,UAAU,QAAA,CAAS;AAAA,KACpB,CAAA;AAAA,EACH;AACF","file":"chunk-VRXR2T3S.js","sourcesContent":["/**\n * Native sandbox providers: bind-mount sandbox providers that contain the\n * agent with the host OS's own process sandbox (Bubblewrap, Seatbelt) instead\n * of a container. They share the \"bind-mount\" tag, so core knows them by a\n * mark set when the provider is constructed.\n */\n\nimport { NativeInteractiveNotSupportedError as NativeInteractiveNotSupportedErrorImpl } from \"./errors.js\";\nimport type { SandboxProvider } from \"./SandboxProvider.js\";\n\nconst nativeProviders = new WeakSet<SandboxProvider>();\n\n/** Marks `provider` as a native sandbox provider, and returns it. */\nexport const markNativeSandboxProvider = <P extends SandboxProvider>(\n provider: P,\n): P => {\n nativeProviders.add(provider);\n return provider;\n};\n\n/**\n * `interactive()` was called with a native sandbox provider (`bwrap()`,\n * `seatbelt()`). Native providers don't run interactive sessions: use `run()`,\n * or pass `docker()` or `noSandbox()` to `interactive()`.\n *\n * Public-facing type for `NativeInteractiveNotSupportedError`. The runtime\n * class is the same `Data.TaggedError` from `errors.ts`, re-declared here as a\n * plain `Error` subclass so that Effect's types stay out of Sandcastle's\n * published `.d.ts` files.\n */\nexport interface NativeInteractiveNotSupportedError extends Error {\n readonly _tag: \"NativeInteractiveNotSupportedError\";\n readonly message: string;\n /** The native sandbox provider `interactive()` was called with. */\n readonly provider: string;\n}\n\ninterface NativeInteractiveNotSupportedErrorConstructor {\n new (args: {\n readonly message: string;\n readonly provider: string;\n }): NativeInteractiveNotSupportedError;\n readonly prototype: NativeInteractiveNotSupportedError;\n}\n\n/** `interactive()` was called with a native sandbox provider. */\nexport const NativeInteractiveNotSupportedError: NativeInteractiveNotSupportedErrorConstructor =\n NativeInteractiveNotSupportedErrorImpl;\n\n/** Throws `NativeInteractiveNotSupportedError` when `provider` is a native sandbox provider. */\nexport const assertInteractiveSupported = (\n provider: SandboxProvider | undefined,\n): void => {\n if (provider !== undefined && nativeProviders.has(provider)) {\n throw new NativeInteractiveNotSupportedError({\n message:\n `interactive() is not supported on native providers (got ${provider.name}()). ` +\n `Use run(), or pass docker() or noSandbox() to interactive().`,\n provider: provider.name,\n });\n }\n};\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as BindMountSandboxHandle, S as SandboxProvider, b as BranchStrategy, E as ExecResult, M as MergeToHeadBranchStrategy, c as NamedBranchStrategy } from './SandboxProvider-
|
|
2
|
-
export { A as AnySandboxProvider, d as BindMountBranchStrategy, e as BindMountCreateOptions, B as BindMountSandboxProvider, f as BindMountSandboxProviderConfig, H as HeadBranchStrategy, g as InteractiveExecOptions, h as IsolatedBranchStrategy, i as IsolatedCreateOptions, j as IsolatedSandboxHandle, I as IsolatedSandboxProvider, k as IsolatedSandboxProviderConfig, l as NoSandboxBranchStrategy, m as NoSandboxHandle, N as NoSandboxProvider, n as createBindMountSandboxProvider, o as createIsolatedSandboxProvider } from './SandboxProvider-
|
|
1
|
+
import { a as BindMountSandboxHandle, S as SandboxProvider, b as BranchStrategy, E as ExecResult, M as MergeToHeadBranchStrategy, c as NamedBranchStrategy } from './SandboxProvider-Chsi-Zs6.js';
|
|
2
|
+
export { A as AnySandboxProvider, d as BindMountBranchStrategy, e as BindMountCreateOptions, B as BindMountSandboxProvider, f as BindMountSandboxProviderConfig, H as HeadBranchStrategy, g as InteractiveExecOptions, h as IsolatedBranchStrategy, i as IsolatedCreateOptions, j as IsolatedSandboxHandle, I as IsolatedSandboxProvider, k as IsolatedSandboxProviderConfig, l as NoSandboxBranchStrategy, m as NoSandboxHandle, N as NoSandboxProvider, n as createBindMountSandboxProvider, o as createIsolatedSandboxProvider } from './SandboxProvider-Chsi-Zs6.js';
|
|
3
3
|
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
4
4
|
export { M as MountConfig } from './MountConfig-CmXclHA5.js';
|
|
5
5
|
|
|
@@ -944,6 +944,10 @@ interface Sandbox {
|
|
|
944
944
|
* then call `stop()`.
|
|
945
945
|
* - `daytona()`: the Daytona sandbox id: `daytona.get(<sandboxId>)`, then
|
|
946
946
|
* `delete()`, from `@daytona/sdk`.
|
|
947
|
+
* - `modal()`: the Modal sandbox id: `modal.sandboxes.fromId(<sandboxId>)`,
|
|
948
|
+
* then `terminate()`, from `modal`.
|
|
949
|
+
* - `sprites()`: the Sprite's name: `client.getSprite(<sandboxId>)`, then
|
|
950
|
+
* `delete()`, from `@fly/sprites`.
|
|
947
951
|
* - A custom provider: whatever its handle's `sandboxId` is.
|
|
948
952
|
*
|
|
949
953
|
* `undefined` for `noSandbox()` and the native `bwrap()` and `seatbelt()`
|