@steerable/agent-runtime 0.12.8 → 0.14.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.
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.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"];
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"];
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
@@ -19,6 +19,8 @@ export const SIDECAR_METHODS = [
19
19
  'agent.session.fork',
20
20
  'agent.session.branches',
21
21
  'agent.session.messages',
22
+ 'agent.session.compact',
23
+ 'agent.session.context_status',
22
24
  'agent.chat.stream',
23
25
  'agent.chat.cancel',
24
26
  'agent.chat.steer',
@@ -48,6 +50,9 @@ export const SIDECAR_METHODS = [
48
50
  'plugin.disable',
49
51
  'plugin.reload',
50
52
  'plugin.tools.describe',
53
+ 'license.status',
54
+ 'license.reload',
55
+ 'license.verify',
51
56
  ];
52
57
  /** Notification methods the sidecar pushes (no id, no response). */
53
58
  export const SIDECAR_NOTIFICATIONS = [
package/dist/runtime.d.ts CHANGED
@@ -387,6 +387,30 @@ export declare class AgentRuntime {
387
387
  steerChat(streamId: string, content: string): Promise<boolean>;
388
388
  /** Fork the record of a running turn. */
389
389
  forkChat(streamId: string, label?: string): Promise<BranchPoint>;
390
+ /** Authoritatively compact a session record (supports partial compaction via focus/keepHeadTurns/keepTailMessages). */
391
+ compactSession(params: {
392
+ recordId: string;
393
+ focus?: string;
394
+ keepHeadTurns?: number;
395
+ keepTailMessages?: number;
396
+ provider?: string;
397
+ model?: string;
398
+ baseUrl?: string;
399
+ apiKey?: string;
400
+ }): Promise<Record<string, unknown>>;
401
+ /** Query live estimated tokens, wire bytes, and compaction watermark for a session record. */
402
+ sessionContextStatus(params: {
403
+ recordId: string;
404
+ model?: string;
405
+ maxContextTokens?: number;
406
+ maxRequestBytes?: number;
407
+ }): Promise<Record<string, unknown>>;
408
+ /** Read redacted commercial license state (`disabled` on open-source builds). */
409
+ licenseStatus(): Promise<Record<string, unknown>>;
410
+ /** Hot-reload the configured `.lic` file without restarting the sidecar. */
411
+ reloadLicense(): Promise<Record<string, unknown>>;
412
+ /** Verify candidate `.lic` text in memory without mutating active state. */
413
+ verifyLicense(content: string): Promise<Record<string, unknown>>;
390
414
  listTools(): Promise<ToolDescriptor[]>;
391
415
  invokeTool(call: ToolCall): Promise<ToolResult>;
392
416
  listSkills(roots: string[]): Promise<{
package/dist/runtime.js CHANGED
@@ -218,6 +218,26 @@ export class AgentRuntime {
218
218
  forkChat(streamId, label) {
219
219
  return this.process.request('agent.chat.fork', { streamId, label });
220
220
  }
221
+ /** Authoritatively compact a session record (supports partial compaction via focus/keepHeadTurns/keepTailMessages). */
222
+ compactSession(params) {
223
+ return this.process.request('agent.session.compact', params);
224
+ }
225
+ /** Query live estimated tokens, wire bytes, and compaction watermark for a session record. */
226
+ sessionContextStatus(params) {
227
+ return this.process.request('agent.session.context_status', params);
228
+ }
229
+ /** Read redacted commercial license state (`disabled` on open-source builds). */
230
+ licenseStatus() {
231
+ return this.process.request('license.status');
232
+ }
233
+ /** Hot-reload the configured `.lic` file without restarting the sidecar. */
234
+ reloadLicense() {
235
+ return this.process.request('license.reload');
236
+ }
237
+ /** Verify candidate `.lic` text in memory without mutating active state. */
238
+ verifyLicense(content) {
239
+ return this.process.request('license.verify', { content });
240
+ }
221
241
  // ---- tools / skills / workspace --------------------------------------
222
242
  listTools() {
223
243
  return this.process.request('tool.list');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerable/agent-runtime",
3
- "version": "0.12.8",
3
+ "version": "0.14.0",
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.12.8"
38
+ "@steerable/agent-protocol": "0.14.0"
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.12.8"
44
+ "@steerable/agent-ui": "0.14.0"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@steerable/runtime-darwin-arm64": "0.12.8",
48
- "@steerable/runtime-darwin-x64": "0.12.8",
49
- "@steerable/runtime-linux-arm64": "0.12.8",
50
- "@steerable/runtime-linux-x64": "0.12.8",
51
- "@steerable/runtime-win32-x64": "0.12.8"
47
+ "@steerable/runtime-darwin-arm64": "0.14.0",
48
+ "@steerable/runtime-darwin-x64": "0.14.0",
49
+ "@steerable/runtime-linux-arm64": "0.14.0",
50
+ "@steerable/runtime-linux-x64": "0.14.0",
51
+ "@steerable/runtime-win32-x64": "0.14.0"
52
52
  },
53
53
  "scripts": {
54
54
  "gen": "echo agent-runtime-ts",