@runtypelabs/sdk 10.2.2 → 10.2.3
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/index.cjs +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -14149,7 +14149,7 @@ function transformQueryParams(params) {
|
|
|
14149
14149
|
|
|
14150
14150
|
// src/version.ts
|
|
14151
14151
|
var FALLBACK_VERSION = "0.0.0";
|
|
14152
|
-
var SDK_VERSION = "10.2.
|
|
14152
|
+
var SDK_VERSION = "10.2.3".length > 0 ? "10.2.3" : FALLBACK_VERSION;
|
|
14153
14153
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
14154
14154
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
14155
14155
|
|
package/dist/index.d.cts
CHANGED
|
@@ -918,6 +918,8 @@ interface paths {
|
|
|
918
918
|
thinkingLevel?: string;
|
|
919
919
|
};
|
|
920
920
|
sandbox?: {
|
|
921
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
922
|
+
codingAgents?: "opencode"[];
|
|
921
923
|
enabled: boolean;
|
|
922
924
|
/**
|
|
923
925
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -1432,6 +1434,8 @@ interface paths {
|
|
|
1432
1434
|
thinkingLevel?: string;
|
|
1433
1435
|
};
|
|
1434
1436
|
sandbox?: {
|
|
1437
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
1438
|
+
codingAgents?: "opencode"[];
|
|
1435
1439
|
enabled: boolean;
|
|
1436
1440
|
/**
|
|
1437
1441
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -2220,6 +2224,8 @@ interface paths {
|
|
|
2220
2224
|
thinkingLevel?: string;
|
|
2221
2225
|
};
|
|
2222
2226
|
sandbox?: {
|
|
2227
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
2228
|
+
codingAgents?: "opencode"[];
|
|
2223
2229
|
enabled: boolean;
|
|
2224
2230
|
/**
|
|
2225
2231
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -4780,7 +4786,7 @@ interface paths {
|
|
|
4780
4786
|
};
|
|
4781
4787
|
/**
|
|
4782
4788
|
* Stream execution events
|
|
4783
|
-
* @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary.
|
|
4789
|
+
* @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. A Runtype session turn's response carries `X-Runtype-Execution-Driver`, the driver holding the turn when the stream attached: `request-worker` or `workflow-leg` while that driver holds it, otherwise `owner`.
|
|
4784
4790
|
*/
|
|
4785
4791
|
get: {
|
|
4786
4792
|
parameters: {
|
|
@@ -12971,6 +12977,8 @@ interface paths {
|
|
|
12971
12977
|
thinkingLevel?: string;
|
|
12972
12978
|
};
|
|
12973
12979
|
sandbox?: {
|
|
12980
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
12981
|
+
codingAgents?: "opencode"[];
|
|
12974
12982
|
enabled: boolean;
|
|
12975
12983
|
/**
|
|
12976
12984
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -13419,6 +13427,8 @@ interface paths {
|
|
|
13419
13427
|
thinkingLevel?: string;
|
|
13420
13428
|
};
|
|
13421
13429
|
sandbox?: {
|
|
13430
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
13431
|
+
codingAgents?: "opencode"[];
|
|
13422
13432
|
enabled: boolean;
|
|
13423
13433
|
/**
|
|
13424
13434
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -18137,7 +18147,7 @@ interface paths {
|
|
|
18137
18147
|
};
|
|
18138
18148
|
/**
|
|
18139
18149
|
* Stream execution events
|
|
18140
|
-
* @description Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone; a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. An API key needs `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for dispatch-started runs.
|
|
18150
|
+
* @description Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone; a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. A Runtype session turn's response carries `X-Runtype-Execution-Driver`, the driver holding the turn when the stream attached: `request-worker` or `workflow-leg` while that driver holds it, otherwise `owner`. An API key needs `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for dispatch-started runs.
|
|
18141
18151
|
*/
|
|
18142
18152
|
get: {
|
|
18143
18153
|
parameters: {
|
|
@@ -48730,6 +48740,8 @@ interface components {
|
|
|
48730
48740
|
thinkingLevel?: string;
|
|
48731
48741
|
};
|
|
48732
48742
|
sandbox?: {
|
|
48743
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
48744
|
+
codingAgents?: "opencode"[];
|
|
48733
48745
|
enabled: boolean;
|
|
48734
48746
|
/**
|
|
48735
48747
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
package/dist/index.d.ts
CHANGED
|
@@ -918,6 +918,8 @@ interface paths {
|
|
|
918
918
|
thinkingLevel?: string;
|
|
919
919
|
};
|
|
920
920
|
sandbox?: {
|
|
921
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
922
|
+
codingAgents?: "opencode"[];
|
|
921
923
|
enabled: boolean;
|
|
922
924
|
/**
|
|
923
925
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -1432,6 +1434,8 @@ interface paths {
|
|
|
1432
1434
|
thinkingLevel?: string;
|
|
1433
1435
|
};
|
|
1434
1436
|
sandbox?: {
|
|
1437
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
1438
|
+
codingAgents?: "opencode"[];
|
|
1435
1439
|
enabled: boolean;
|
|
1436
1440
|
/**
|
|
1437
1441
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -2220,6 +2224,8 @@ interface paths {
|
|
|
2220
2224
|
thinkingLevel?: string;
|
|
2221
2225
|
};
|
|
2222
2226
|
sandbox?: {
|
|
2227
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
2228
|
+
codingAgents?: "opencode"[];
|
|
2223
2229
|
enabled: boolean;
|
|
2224
2230
|
/**
|
|
2225
2231
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -4780,7 +4786,7 @@ interface paths {
|
|
|
4780
4786
|
};
|
|
4781
4787
|
/**
|
|
4782
4788
|
* Stream execution events
|
|
4783
|
-
* @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary.
|
|
4789
|
+
* @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. A Runtype session turn's response carries `X-Runtype-Execution-Driver`, the driver holding the turn when the stream attached: `request-worker` or `workflow-leg` while that driver holds it, otherwise `owner`.
|
|
4784
4790
|
*/
|
|
4785
4791
|
get: {
|
|
4786
4792
|
parameters: {
|
|
@@ -12971,6 +12977,8 @@ interface paths {
|
|
|
12971
12977
|
thinkingLevel?: string;
|
|
12972
12978
|
};
|
|
12973
12979
|
sandbox?: {
|
|
12980
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
12981
|
+
codingAgents?: "opencode"[];
|
|
12974
12982
|
enabled: boolean;
|
|
12975
12983
|
/**
|
|
12976
12984
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -13419,6 +13427,8 @@ interface paths {
|
|
|
13419
13427
|
thinkingLevel?: string;
|
|
13420
13428
|
};
|
|
13421
13429
|
sandbox?: {
|
|
13430
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
13431
|
+
codingAgents?: "opencode"[];
|
|
13422
13432
|
enabled: boolean;
|
|
13423
13433
|
/**
|
|
13424
13434
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
|
@@ -18137,7 +18147,7 @@ interface paths {
|
|
|
18137
18147
|
};
|
|
18138
18148
|
/**
|
|
18139
18149
|
* Stream execution events
|
|
18140
|
-
* @description Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone; a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. An API key needs `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for dispatch-started runs.
|
|
18150
|
+
* @description Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone; a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. A Runtype session turn's response carries `X-Runtype-Execution-Driver`, the driver holding the turn when the stream attached: `request-worker` or `workflow-leg` while that driver holds it, otherwise `owner`. An API key needs `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for dispatch-started runs.
|
|
18141
18151
|
*/
|
|
18142
18152
|
get: {
|
|
18143
18153
|
parameters: {
|
|
@@ -48730,6 +48740,8 @@ interface components {
|
|
|
48730
48740
|
thinkingLevel?: string;
|
|
48731
48741
|
};
|
|
48732
48742
|
sandbox?: {
|
|
48743
|
+
/** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
|
|
48744
|
+
codingAgents?: "opencode"[];
|
|
48733
48745
|
enabled: boolean;
|
|
48734
48746
|
/**
|
|
48735
48747
|
* @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
|
package/dist/index.mjs
CHANGED
|
@@ -13934,7 +13934,7 @@ function transformQueryParams(params) {
|
|
|
13934
13934
|
|
|
13935
13935
|
// src/version.ts
|
|
13936
13936
|
var FALLBACK_VERSION = "0.0.0";
|
|
13937
|
-
var SDK_VERSION = "10.2.
|
|
13937
|
+
var SDK_VERSION = "10.2.3".length > 0 ? "10.2.3" : FALLBACK_VERSION;
|
|
13938
13938
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
13939
13939
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
13940
13940
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@runtypelabs/shared": "3.
|
|
27
|
+
"@runtypelabs/shared": "3.60.0",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsup": "^8.0.2",
|
|
30
30
|
"typescript": "^6.0.3",
|