@theway-ai/sdk 0.1.12 → 0.1.13
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/generated/graph_engine.d.ts +40 -0
- package/dist/generated/graph_engine.d.ts.map +1 -1
- package/dist/generated/graph_engine.js +136 -0
- package/dist/generated/graph_engine.js.map +1 -1
- package/dist/generated/session.d.ts +7 -0
- package/dist/generated/session.d.ts.map +1 -1
- package/dist/generated/session.js +20 -0
- package/dist/generated/session.js.map +1 -1
- package/package.json +1 -1
- package/proto/graph_engine.proto +16 -0
- package/proto/session.proto +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theway-ai/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Typed TypeScript SDK for theway, a terminal-first local AI agent runtime: commands, sessions, DAG orchestration, events, settings, and health over gRPC.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/proto/graph_engine.proto
CHANGED
|
@@ -180,6 +180,19 @@ message GraphListResponse {
|
|
|
180
180
|
repeated DagRunSnapshot runs = 1;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
// Clear the terminal (Completed/Failed/Cancelled) runs of a session, keeping
|
|
184
|
+
// the newest `keep` of them. Running runs are never removed.
|
|
185
|
+
message GraphClearRequest {
|
|
186
|
+
// Owning session. Omitted = the session this connection belongs to.
|
|
187
|
+
optional string session_id = 1;
|
|
188
|
+
// Keep the newest `keep` terminal runs (default 0 = clear all).
|
|
189
|
+
uint32 keep = 2;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message GraphClearResponse {
|
|
193
|
+
uint64 removed = 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
183
196
|
// Node type in a session graph.
|
|
184
197
|
enum SessionGraphNodeType {
|
|
185
198
|
SESSION_GRAPH_NODE_TYPE_UNSPECIFIED = 0;
|
|
@@ -233,4 +246,7 @@ service GraphEngineService {
|
|
|
233
246
|
rpc GraphRestore(GraphRestoreRequest) returns (GraphRestoreResponse);
|
|
234
247
|
// Enumerate one session's graph runs (DagRunSnapshot shape).
|
|
235
248
|
rpc GraphList(GraphListRequest) returns (GraphListResponse);
|
|
249
|
+
// Clear the terminal runs of a session (keeps running runs; `keep` keeps
|
|
250
|
+
// the newest N terminal runs). Backs `/graph clear` and MCP `graph_clear`.
|
|
251
|
+
rpc GraphClear(GraphClearRequest) returns (GraphClearResponse);
|
|
236
252
|
}
|
package/proto/session.proto
CHANGED
|
@@ -271,6 +271,11 @@ message SessionRuntime {
|
|
|
271
271
|
// tool inventory + working directory + memory + lineage). Mirrors the
|
|
272
272
|
// request/header epoch snapshot in deepseek-harness session logs.
|
|
273
273
|
string system_context = 12;
|
|
274
|
+
// Number of background shells still alive (registered and not yet exited)
|
|
275
|
+
// across the daemon process. Mirrors `WireStatus.shell_count`; carried so
|
|
276
|
+
// the gRPC session-snapshot round-trip preserves the TUI `[n shell]`
|
|
277
|
+
// counter.
|
|
278
|
+
optional uint64 shell_count = 13;
|
|
274
279
|
}
|
|
275
280
|
|
|
276
281
|
// Transcript plane of a session snapshot.
|