@deepagents/experimental 7.10.1 → 7.11.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.
@@ -28,8 +28,8 @@ export interface AgentPluginHost {
28
28
  * Attach the root agent's sandbox for `conversation`. The handle is
29
29
  * borrowed: a plugin must never dispose it. The backend is named by
30
30
  * `chatId` and re-attached across turns, workers, and restarts (see
31
- * `SandboxContext` in `agent.ts`), so this works before the conversation
32
- * exists.
31
+ * `AgentDeclaration.sandbox` in `agent.ts`), so this works before the
32
+ * conversation exists.
33
33
  */
34
34
  sandbox(conversation: ConversationId): Promise<ZukhrufSandbox>;
35
35
  conversationExists(conversation: ConversationId): Promise<boolean>;
@@ -1,4 +1,5 @@
1
- import type { AgentDeclaration, SandboxContext, ZukhrufSandbox } from '../agent.ts';
1
+ import { type SandboxContext } from '@deepagents/context';
2
+ import type { AgentDeclaration, ZukhrufSandbox } from '../agent.ts';
2
3
  /**
3
4
  * The sandbox of each conversation, as DESIGN.md places it (sandbox →
4
5
  * conversation, stream → turn). The first turn of a conversation acquires it
@@ -6,7 +7,8 @@ import type { AgentDeclaration, SandboxContext, ZukhrufSandbox } from '../agent.
6
7
  * the host disposes it when the host ends. A handle can hold a connection
7
8
  * (a Microsandbox microVM refuses every connect after about 107 open ones),
8
9
  * and disposing it can end the environment (a container sandbox stops its
9
- * container), so neither a turn nor a plugin disposes it.
10
+ * container), so neither a turn nor a plugin disposes it. A handle whose
11
+ * environment was removed outside it is disposed and acquired again by name.
10
12
  */
11
13
  export declare class ConversationSandboxes implements AsyncDisposable {
12
14
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-sandboxes.d.ts","sources":["../../../src/zukhruf/runtime/conversation-sandboxes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,YAAW,eAAe;;IAI3D,OAAO,CACL,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,cAAc,CAAC,CAezB;IAEK,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ3C;CACF"}
1
+ {"version":3,"file":"conversation-sandboxes.d.ts","sources":["../../../src/zukhruf/runtime/conversation-sandboxes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,qBAAqB,CAAC;AAEhF,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEpE;;;;;;;;;GASG;AACH,qBAAa,qBAAsB,YAAW,eAAe;;IAI3D,OAAO,CACL,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,cAAc,CAAC,CAgBzB;IA6BK,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAQ3C;CACF"}
@@ -1,7 +1,7 @@
1
- import { type CreateBashToolOptions } from '@deepagents/context';
2
- import type { SandboxContext, ZukhrufSandbox } from '../agent.ts';
1
+ import { type CreateBashToolOptions, type DisposableSandbox, type SandboxContext } from '@deepagents/context';
2
+ import type { ZukhrufSandbox } from '../agent.ts';
3
3
  type WrapOptions = Omit<CreateBashToolOptions, 'sandbox'>;
4
4
  /** Wrap a backend with Zukhruf's Bash toolkit and working-directory metadata. */
5
- export declare function defineSandbox(createBackend: (context: SandboxContext) => Promise<CreateBashToolOptions['sandbox']>, options?: WrapOptions): (context: SandboxContext) => Promise<ZukhrufSandbox>;
5
+ export declare function defineSandbox(createBackend: (context: SandboxContext) => Promise<DisposableSandbox>, options?: WrapOptions): (context: SandboxContext) => Promise<ZukhrufSandbox>;
6
6
  export {};
7
7
  //# sourceMappingURL=define.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"define.d.ts","sources":["../../../src/zukhruf/sandbox/define.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,KAAK,WAAW,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;AAI1D,iFAAiF;AACjF,wBAAgB,aAAa,CAC3B,aAAa,EAAE,CACb,OAAO,EAAE,cAAc,KACpB,OAAO,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC,EAC9C,OAAO,CAAC,EAAE,WAAW,GACpB,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CActD"}
1
+ {"version":3,"file":"define.d.ts","sources":["../../../src/zukhruf/sandbox/define.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,KAAK,WAAW,GAAG,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;AAI1D,iFAAiF;AACjF,wBAAgB,aAAa,CAC3B,aAAa,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,iBAAiB,CAAC,EACtE,OAAO,CAAC,EAAE,WAAW,GACpB,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CActD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepagents/experimental",
3
- "version": "7.10.1",
3
+ "version": "7.11.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -106,9 +106,9 @@
106
106
  "@ai-sdk/openai": "^4.0.111",
107
107
  "@ai-sdk/provider": "^4.0.37",
108
108
  "@ai-sdk/provider-utils": "^5.0.76",
109
- "@deepagents/compaction": "7.10.1",
110
- "@deepagents/context": "7.10.1",
111
- "@deepagents/elements": "7.10.1",
109
+ "@deepagents/compaction": "7.11.0",
110
+ "@deepagents/context": "7.11.0",
111
+ "@deepagents/elements": "7.11.0",
112
112
  "@electric-sql/pglite": "^0.5.4",
113
113
  "@iarna/toml": "^2.2.5",
114
114
  "@napi-rs/keyring": "^2.1.0",