@theway-ai/sdk 0.1.24 → 0.1.26
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theway-ai/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
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/session.proto
CHANGED
|
@@ -8,6 +8,7 @@ package theway.grpc.v1;
|
|
|
8
8
|
import "commands.proto";
|
|
9
9
|
import "extensions.proto";
|
|
10
10
|
import "graph_engine.proto";
|
|
11
|
+
import "settings.proto";
|
|
11
12
|
|
|
12
13
|
// Incremental transcript patch: appends/replacements since a consumer cursor.
|
|
13
14
|
message FeedBlockPatch {
|
|
@@ -160,12 +161,36 @@ message FeedBlock {
|
|
|
160
161
|
PlainBlock plain = 6;
|
|
161
162
|
ToolCallBlock tool_call = 7;
|
|
162
163
|
ErrorBlock error = 8;
|
|
164
|
+
ContextBlock context = 9;
|
|
163
165
|
}
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
message UserBlock {
|
|
167
169
|
string text = 1;
|
|
168
170
|
optional string timestamp = 2; // RFC3339 / ISO-8601 with offset (UTC), null when absent.
|
|
171
|
+
repeated FeedAttachment attachments = 3; // Attachment chips, in the order the user added them.
|
|
172
|
+
optional FeedSource source = 4; // Origin of the round; absent on transcripts written before records.
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// One attachment chip under a user block. `detail` is display-only.
|
|
176
|
+
message FeedAttachment {
|
|
177
|
+
string kind = 1; // "file" | "image"
|
|
178
|
+
string name = 2;
|
|
179
|
+
optional string detail = 3; // "src/foo.rs" | "image/png · 240 KiB"
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// Origin of one user round.
|
|
183
|
+
message FeedSource {
|
|
184
|
+
string kind = 1; // "user" | "trigger" | "subagent" | "host"
|
|
185
|
+
optional string label = 2; // Producer reference: trigger id / subagent job id.
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Content injected before the model saw the turn (skill preamble, trigger patch,
|
|
189
|
+
// extension note), rendered as its own row.
|
|
190
|
+
message ContextBlock {
|
|
191
|
+
string label = 1; // "<source>:<name>" or "<source>"
|
|
192
|
+
string text = 2;
|
|
193
|
+
optional string timestamp = 3; // RFC3339 / ISO-8601 with offset (UTC), null when absent.
|
|
169
194
|
}
|
|
170
195
|
|
|
171
196
|
message AssistantBlock {
|
|
@@ -460,6 +485,10 @@ message ActivateSessionRequest {
|
|
|
460
485
|
string client_key = 2;
|
|
461
486
|
optional string name = 3;
|
|
462
487
|
SessionRuntimeContext runtime = 4;
|
|
488
|
+
// Session-scoped MCP servers: layered over the daemon-level set for this
|
|
489
|
+
// session only, a same-name server replaces the daemon entry. Credentials
|
|
490
|
+
// stay in the daemon's auth.json (`token_keychain_ref`), never on the wire.
|
|
491
|
+
repeated ProvisionedMcpServer mcp_servers = 5;
|
|
463
492
|
}
|
|
464
493
|
|
|
465
494
|
message ActivateSessionResponse {
|