@steerable/agent-runtime 0.14.9 → 0.14.11

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/methods.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * has) fails CI instead of drifting silently.
10
10
  */
11
11
  /** Every host→sidecar request method the sidecar registers. */
12
- export declare const SIDECAR_METHODS: readonly ["system.ping", "system.shutdown", "system.shutdown_now", "agent.session.create", "agent.session.resume", "agent.session.list", "agent.session.fork", "agent.session.branches", "agent.session.messages", "agent.session.compact", "agent.session.context_status", "agent.chat.stream", "agent.chat.cancel", "agent.chat.steer", "agent.chat.fork", "agent.chat.compact", "agent.session.tree", "agent.children.list", "agent.children.interrupt", "tool.list", "tool.invoke", "workspace.apply_edits", "skills.list", "trace.fetch", "trace.export", "metrics.export", "config.get", "config.set", "compat.describe", "sandbox.describe", "harness.describe", "models.list", "presets.describe", "presets.resolve", "catalog.describe", "plugin.list", "plugin.enable", "plugin.disable", "plugin.reload", "plugin.tools.describe", "license.status", "license.reload", "license.verify"];
12
+ export declare const SIDECAR_METHODS: readonly ["system.ping", "system.shutdown", "system.shutdown_now", "agent.session.create", "agent.session.resume", "agent.session.list", "agent.session.fork", "agent.session.branches", "agent.session.messages", "agent.session.compact", "agent.session.context_status", "agent.chat.stream", "agent.chat.cancel", "agent.chat.steer", "agent.chat.fork", "agent.chat.compact", "agent.session.tree", "agent.children.list", "agent.children.interrupt", "tool.list", "tool.invoke", "workspace.apply_edits", "skills.list", "trace.fetch", "trace.export", "metrics.export", "config.get", "config.set", "compat.describe", "sandbox.describe", "sandbox.wrap", "chat.grant_roots", "harness.describe", "models.list", "presets.describe", "presets.resolve", "catalog.describe", "plugin.list", "plugin.enable", "plugin.disable", "plugin.reload", "plugin.tools.describe", "license.status", "license.reload", "license.verify"];
13
13
  export type SidecarMethod = (typeof SIDECAR_METHODS)[number];
14
14
  /** Notification methods the sidecar pushes (no id, no response). */
15
15
  export declare const SIDECAR_NOTIFICATIONS: readonly ["lifecycle.ready", "lifecycle.shutdown", "stream.chunk", "stream.done", "stream.error", "agent.child"];
package/dist/methods.js CHANGED
@@ -40,6 +40,8 @@ export const SIDECAR_METHODS = [
40
40
  'config.set',
41
41
  'compat.describe',
42
42
  'sandbox.describe',
43
+ 'sandbox.wrap',
44
+ 'chat.grant_roots',
43
45
  'harness.describe',
44
46
  'models.list',
45
47
  'presets.describe',
package/dist/runtime.d.ts CHANGED
@@ -454,6 +454,41 @@ export declare class AgentRuntime {
454
454
  backend: string;
455
455
  enforcement: 'full' | 'partial' | 'none';
456
456
  }>;
457
+ /**
458
+ * Widen the writable roots of every active turn for `chatId`
459
+ * (`chat.grant_roots`). Later tool calls in those turns see the new roots.
460
+ */
461
+ grantChatRoots(params: {
462
+ chatId: string;
463
+ roots: string[];
464
+ }): Promise<{
465
+ ok: boolean;
466
+ updatedStreams: number;
467
+ roots: string[];
468
+ }>;
469
+ /**
470
+ * Wrap a host-run command in the active turn's OS sandbox (`sandbox.wrap`).
471
+ * `wrapped: false` means the host runs `command` unchanged. `hostSpawn`
472
+ * carries the Windows policy the host applies itself.
473
+ */
474
+ wrapSandboxCommand(params: {
475
+ command: string;
476
+ streamId?: string;
477
+ chatId?: string;
478
+ }): Promise<{
479
+ wrapped: boolean;
480
+ command: string;
481
+ hostSpawn?: boolean;
482
+ policy?: {
483
+ writableRoots: string[];
484
+ network: boolean;
485
+ allowedHosts: string[];
486
+ };
487
+ sandbox: {
488
+ backend: string;
489
+ enforcement: string;
490
+ };
491
+ }>;
457
492
  /**
458
493
  * The framework-owned harness vocabulary (`harness.describe`, W1.2.2):
459
494
  * every dimension's available implementations with their assumption
package/dist/runtime.js CHANGED
@@ -287,6 +287,21 @@ export class AgentRuntime {
287
287
  describeSandbox(params) {
288
288
  return this.process.request('sandbox.describe', params);
289
289
  }
290
+ /**
291
+ * Widen the writable roots of every active turn for `chatId`
292
+ * (`chat.grant_roots`). Later tool calls in those turns see the new roots.
293
+ */
294
+ grantChatRoots(params) {
295
+ return this.process.request('chat.grant_roots', params);
296
+ }
297
+ /**
298
+ * Wrap a host-run command in the active turn's OS sandbox (`sandbox.wrap`).
299
+ * `wrapped: false` means the host runs `command` unchanged. `hostSpawn`
300
+ * carries the Windows policy the host applies itself.
301
+ */
302
+ wrapSandboxCommand(params) {
303
+ return this.process.request('sandbox.wrap', params);
304
+ }
290
305
  /**
291
306
  * The framework-owned harness vocabulary (`harness.describe`, W1.2.2):
292
307
  * every dimension's available implementations with their assumption
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerable/agent-runtime",
3
- "version": "0.14.9",
3
+ "version": "0.14.11",
4
4
  "description": "Steerable framework — official TypeScript production runtime. Owns the embedded Python sidecar lifecycle (spawn / ready handshake / health / bounded auto-restart / graceful drain) and exposes the CoreLoop-level API over the sidecar JSON-RPC surface. There is no TS CoreLoop; this package drives the same Rust CoreLoop the server uses (via the Python sidecar facade), so cross-language conformance holds by construction.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://steerableframework.com/",
@@ -35,20 +35,20 @@
35
35
  "node": ">=22.19.0"
36
36
  },
37
37
  "dependencies": {
38
- "@steerable/agent-protocol": "0.14.9"
38
+ "@steerable/agent-protocol": "0.14.11"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^22.10.5",
42
42
  "typescript": "^5.8.3",
43
43
  "vitest": "^3.2.4",
44
- "@steerable/agent-ui": "0.14.9"
44
+ "@steerable/agent-ui": "0.14.11"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@steerable/runtime-darwin-arm64": "0.14.9",
48
- "@steerable/runtime-darwin-x64": "0.14.9",
49
- "@steerable/runtime-linux-arm64": "0.14.9",
50
- "@steerable/runtime-linux-x64": "0.14.9",
51
- "@steerable/runtime-win32-x64": "0.14.9"
47
+ "@steerable/runtime-darwin-arm64": "0.14.11",
48
+ "@steerable/runtime-darwin-x64": "0.14.11",
49
+ "@steerable/runtime-linux-arm64": "0.14.11",
50
+ "@steerable/runtime-linux-x64": "0.14.11",
51
+ "@steerable/runtime-win32-x64": "0.14.11"
52
52
  },
53
53
  "scripts": {
54
54
  "gen": "echo agent-runtime-ts",