@evelandhq/sandbox-bwrap 0.4.0 → 0.4.1
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/index.d.ts +1 -1
- package/dist/provider-definition.d.ts +10 -1
- package/dist/provider.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { BwrapSandboxCreateOptions } from "./options.js";
|
|
|
3
3
|
export { BWRAP_BACKEND_NAME, createBwrapSandboxBackend, type CreateBwrapSandboxBackendInput, } from "./backend.js";
|
|
4
4
|
export type { BwrapBackendBootstrapContext, BwrapBackendCreateInput, BwrapBackendHandle, BwrapBackendPrewarmInput, BwrapBackendRuntimeContext, BwrapBackendSessionState, BwrapSandboxBackend, BwrapSeedFile, } from "./backend-contract.js";
|
|
5
5
|
export { BwrapTemplateNotProvisionedError } from "./errors.js";
|
|
6
|
-
export { BWRAP_PROVIDER_STATE_PROTOCOL_VERSION, createBwrapSandboxProviderDefinition, type BwrapPreparedArtifact, type BwrapSandboxEnvironmentOptions, type BwrapSandboxOpenOptions, type BwrapSandboxProviderDefinition, type BwrapSessionState, type CreateBwrapSandboxProviderDefinitionInput, } from "./provider-definition.js";
|
|
6
|
+
export { BWRAP_PROVIDER_STATE_PROTOCOL_VERSION, createBwrapSandboxProviderDefinition, type BwrapPreparedArtifact, type BwrapSandboxEnvironmentOptions, type BwrapSandboxOpenOptions, type BwrapSandboxProviderDefinition, type BwrapSessionState, type CreateBwrapSandboxProviderDefinitionInput, type MutableNetworkSandboxSession, } from "./provider-definition.js";
|
|
7
7
|
export type { BwrapSession } from "./session.js";
|
|
8
8
|
export type { BwrapNetworkPolicy, BwrapSandboxCreateOptions, BwrapSandboxUseOptions, } from "./options.js";
|
|
9
9
|
export type { BwrapCommandFinishReason, BwrapSandboxEvent, BwrapSandboxEventSink, } from "./events.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SandboxNetworkPolicy, SandboxSession } from "eve/sandbox";
|
|
2
2
|
import type { SandboxProviderDefinition } from "eve/sandbox/provider";
|
|
3
3
|
import { type BwrapDirectoryCopier } from "./cache.js";
|
|
4
4
|
import type { BwrapNetworkPolicy, BwrapSandboxCreateOptions } from "./options.js";
|
|
@@ -9,6 +9,15 @@ import type { ProcessRunner } from "./process.js";
|
|
|
9
9
|
* with a reader for the old shape.
|
|
10
10
|
*/
|
|
11
11
|
export declare const BWRAP_PROVIDER_STATE_PROTOCOL_VERSION = 1;
|
|
12
|
+
/**
|
|
13
|
+
* The session this provider hands eve: a `SandboxSession` whose egress can be
|
|
14
|
+
* changed while it runs. eve exported this type itself until 0.66 removed it,
|
|
15
|
+
* so it is declared here from the parts eve still exports, the same shape eve
|
|
16
|
+
* now uses for its own `DockerSandboxSession`. `prepare` callbacks receive it.
|
|
17
|
+
*/
|
|
18
|
+
export type MutableNetworkSandboxSession = SandboxSession & {
|
|
19
|
+
setNetworkPolicy(policy: SandboxNetworkPolicy): Promise<void>;
|
|
20
|
+
};
|
|
12
21
|
/** Options for `BwrapSandbox.environment(...)`. */
|
|
13
22
|
export type BwrapSandboxEnvironmentOptions = Omit<BwrapSandboxCreateOptions, "templateRevision"> & {
|
|
14
23
|
/**
|
package/dist/provider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BWRAP_PROVIDER_STATE_PROTOCOL_VERSION, createBwrapSandboxProviderDefinition, type BwrapPreparedArtifact, type BwrapSandboxEnvironmentOptions, type BwrapSandboxOpenOptions, type BwrapSandboxProviderDefinition, type BwrapSessionState, type CreateBwrapSandboxProviderDefinitionInput, } from "./provider-definition.js";
|
|
1
|
+
export { BWRAP_PROVIDER_STATE_PROTOCOL_VERSION, createBwrapSandboxProviderDefinition, type BwrapPreparedArtifact, type BwrapSandboxEnvironmentOptions, type BwrapSandboxOpenOptions, type BwrapSandboxProviderDefinition, type BwrapSessionState, type CreateBwrapSandboxProviderDefinitionInput, type MutableNetworkSandboxSession, } from "./provider-definition.js";
|
|
2
2
|
export { isBwrapAvailable } from "./process.js";
|
|
3
3
|
/**
|
|
4
4
|
* The bubblewrap sandbox provider for eve 0.64 and later.
|
|
@@ -15,4 +15,4 @@ export { isBwrapAvailable } from "./process.js";
|
|
|
15
15
|
* This entry point imports `eve/sandbox/provider`, which exists only from eve
|
|
16
16
|
* 0.64 on. On eve 0.62 and 0.63 use `bwrap()` from the package root.
|
|
17
17
|
*/
|
|
18
|
-
export declare const BwrapSandbox: import("eve/sandbox/provider").SandboxProvider<import("./provider-definition.js").BwrapSandboxEnvironmentOptions, import("./provider-definition.js").BwrapSandboxOpenOptions, import("
|
|
18
|
+
export declare const BwrapSandbox: import("eve/sandbox/provider").SandboxProvider<import("./provider-definition.js").BwrapSandboxEnvironmentOptions, import("./provider-definition.js").BwrapSandboxOpenOptions, import("./provider-definition.js").MutableNetworkSandboxSession>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evelandhq/sandbox-bwrap",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "bubblewrap sandbox for eve agents — real exec sandboxing without Docker or KVM",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^26.0.1",
|
|
47
47
|
"ai": "^7.0.44",
|
|
48
|
-
"eve": "0.
|
|
48
|
+
"eve": "0.72.1",
|
|
49
49
|
"eve-floor": "npm:eve@0.62.0",
|
|
50
50
|
"oxfmt": "0.58.0",
|
|
51
51
|
"oxlint": "1.73.0",
|