@deepseek-ai/dsh-e2b 0.0.1-rc.2 → 0.0.1-rc.5

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.i18n.yaml CHANGED
@@ -3,4 +3,4 @@
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/e2b/e2b/README.md
5
5
  README.md: 7ade7c3d6522d8fa6d54d7011766238451b17c9a
6
- README.zh.md: b683f33d2211106cf422e780b2b37904b0c640ad
6
+ README.zh.md: 3795ee74f6f9b43df0ba7ac3be6f28821a15598a
package/README.zh.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  ## 生命周期与所有权
26
26
 
27
- 构造阶段会启动一次沙箱创建。服务在 `getSandbox()` 结算前创建 `cwd` 和私有的 `cwd/.dsh-e2b` 适配器状态目录,验证该预留路径是真实目录而非符号链接或其他文件类型,再把该目录的 mode 设为 `0700`。每个适配器内部的 E2B 命令 shell 都会获得一个位于根目录下、全新随机生成的 `HOME`,因此 SDK 固定使用的登录 shell 不会在控制命令之前解析可变用户主目录中的配置文件。
27
+ 构造阶段会启动一次沙箱创建。服务在 `getSandbox()` 成功返回前,会创建 `cwd` 和私有的 `cwd/.dsh-e2b` 适配器状态目录,验证该预留路径是真实目录而非符号链接或其他文件类型,再把该目录的 mode 设为 `0700`。每个适配器内部的 E2B 命令 shell 都会获得一个位于根目录下、全新随机生成的 `HOME`,因此 SDK 固定使用的登录 shell 不会在控制命令之前解析可变用户主目录中的配置文件。
28
28
 
29
29
  资源释放会先阻止继续获取新句柄,再等待初始化完成,然后删除沙箱。`SandboxNotFoundError` 表示沙箱已因超时或被另一个所有者删除,因此可视为完全停稳。初始目录设置失败时会尝试删除一次;若该尝试也失败,则由已配置的 E2B 超时约束沙箱的存活时间。提供方插件必须在该所有者之后加载,并在其之前 dispose(资源释放)。
30
30
 
package/lib/index.js CHANGED
@@ -33,7 +33,7 @@ function e2bControlEnvs(overrides = {}) {
33
33
  * timeout or disposal. Creation begins at plugin construction; adapters await
34
34
  * {@link getSandbox} before their first operation.
35
35
  */
36
- var E2BSandboxService = class extends Service {
36
+ var E2BRuntime = class extends Service {
37
37
  static Config = z.object({
38
38
  apiKey: z.string(),
39
39
  cwd: z.string().default("/home/user/workspace"),
@@ -114,4 +114,4 @@ var E2BSandboxService = class extends Service {
114
114
  }
115
115
  };
116
116
  //#endregion
117
- export { CommandExitError, E2BSandboxService, E2BSandboxService as default, FileNotFoundError, FileType, Sandbox, SandboxNotFoundError, e2bControlEnvs, quoteE2BShellArg };
117
+ export { CommandExitError, E2BRuntime, E2BRuntime as default, FileNotFoundError, FileType, Sandbox, SandboxNotFoundError, e2bControlEnvs, quoteE2BShellArg };
@@ -31,7 +31,7 @@ export interface Config {
31
31
  }
32
32
  declare module '@deepseek-ai/cordis' {
33
33
  interface Context {
34
- e2b: E2BSandboxService;
34
+ e2b: E2BRuntime;
35
35
  }
36
36
  }
37
37
  /**
@@ -39,7 +39,7 @@ declare module '@deepseek-ai/cordis' {
39
39
  * timeout or disposal. Creation begins at plugin construction; adapters await
40
40
  * {@link getSandbox} before their first operation.
41
41
  */
42
- export declare class E2BSandboxService extends Service {
42
+ export declare class E2BRuntime extends Service {
43
43
  static Config: z<Config>;
44
44
  /** Validated remote working directory shared by provider adapters. */
45
45
  readonly cwd: string;
@@ -58,5 +58,5 @@ export declare class E2BSandboxService extends Service {
58
58
  private validate;
59
59
  private open;
60
60
  }
61
- export default E2BSandboxService;
61
+ export default E2BRuntime;
62
62
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-e2b",
3
3
  "description": "Shared E2B sandbox lifecycle for DeepSeek Harness provider adapters",
4
- "version": "0.0.1-rc.2",
4
+ "version": "0.0.1-rc.5",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -32,17 +32,17 @@
32
32
  ],
33
33
  "license": "BSD-3-Clause",
34
34
  "peerDependencies": {
35
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
36
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
35
+ "@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
36
+ "@deepseek-ai/cordis": "^4.0.1-rc.4"
37
37
  },
38
38
  "dependencies": {
39
39
  "e2b": "2.29.1",
40
- "@deepseek-ai/schemastery": "^3.18.1-rc.1"
40
+ "@deepseek-ai/schemastery": "^3.18.1-rc.4"
41
41
  },
42
42
  "devDependencies": {
43
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
44
- "@deepseek-ai/dsh-sandbox-policy": "^0.0.1-rc.2",
45
- "@deepseek-ai/cordis": "^4.0.1-rc.1",
46
- "@deepseek-ai/dsh-loader-smoke": "^0.0.1-rc.2"
43
+ "@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
44
+ "@deepseek-ai/dsh-loader-smoke": "^0.0.1-rc.5",
45
+ "@deepseek-ai/dsh-sandbox-policy": "^0.0.1-rc.5",
46
+ "@deepseek-ai/cordis": "^4.0.1-rc.4"
47
47
  }
48
48
  }