@agentproto/sandbox 0.11.0 → 0.11.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/README.md +16 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -75,6 +75,22 @@ caller's explicit `env.passthrough` entries are kept and deduped. When no
|
|
|
75
75
|
credential resolved — or the host cannot resolve the var — nothing is
|
|
76
76
|
injected and the spawn proceeds: the flag is a convenience, not a contract.
|
|
77
77
|
|
|
78
|
+
## Lifetime: re-armed while the session works
|
|
79
|
+
|
|
80
|
+
A provider box has a lifetime (e2b: `timeoutMs`, 45 min by default, 1 h
|
|
81
|
+
account cap). It counts from the last re-arm, not from boot. While its
|
|
82
|
+
session is active the runtime keeps re-arming it with the same duration:
|
|
83
|
+
on each prompt dispatch, on streamed box events (at most once a minute), and
|
|
84
|
+
every 10 minutes while a turn is in flight, even one that streams nothing
|
|
85
|
+
for a long time (a single long tool call). An idle box is not renewed and
|
|
86
|
+
expires on schedule.
|
|
87
|
+
|
|
88
|
+
About 5 minutes before the deadline it knows about, the proxy acts once
|
|
89
|
+
more. If a turn is still in flight it tries one last renewal. If the session
|
|
90
|
+
is idle, or that renewal fails, it runs a final checkpoint while the box's
|
|
91
|
+
filesystem can still be reached. A detached box (host-daemon restart)
|
|
92
|
+
follows its own rule: it is asked for 1 h from the moment of detach.
|
|
93
|
+
|
|
78
94
|
## Lifecycle: pause is the default teardown
|
|
79
95
|
|
|
80
96
|
Closing a session PAUSES its box by default (`pause({ keepMemory: true })`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/sandbox",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "@agentproto/sandbox — AIP-36 SANDBOX.md reference implementation. A composable schema block defining the `sandbox` field — provider, config, command env, network egress, resource limits — for any manifest that names a compute environment for agent-issued shell commands. Sibling primitive to STORAGE.md (AIP-35); inline or ref, mirroring AIP-17 RUNNER and AIP-19 SECRETS. Also ships createSandboxAgentSessionHost — the provider-agnostic seam that runs an AgentStep's coding-agent turn inside a booted sandbox by pointing the existing daemon-backed AgentSessionHost at its MCP URL.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentproto",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"gray-matter": "^4.0.3",
|
|
50
50
|
"zod": "^4.6.5",
|
|
51
51
|
"@agentproto/define-doctype": "0.1.3",
|
|
52
|
-
"@agentproto/secrets": "2.0.
|
|
53
|
-
"@agentproto/workflow-runtime": "0.
|
|
54
|
-
"@agentproto/worktree": "0.15.
|
|
52
|
+
"@agentproto/secrets": "2.0.2",
|
|
53
|
+
"@agentproto/workflow-runtime": "0.19.0",
|
|
54
|
+
"@agentproto/worktree": "0.15.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^25.9.5",
|