@theway-ai/sdk 1.1.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theway-ai/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "TypeScript SDK for the theway gRPC daemon (five theway.grpc.v1 domain services + grpc.health.v1). Typed client for all RPCs, generated from the domain proto files via ts-proto.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,6 +16,7 @@ message StreamFrame {
16
16
  }
17
17
 
18
18
  message StreamEvent {
19
+ string session_id = 7;
19
20
  oneof kind {
20
21
  SubagentStarted subagent_started = 1;
21
22
  SubagentOutput subagent_output = 2;
@@ -278,6 +278,39 @@ message SetSkillDirsRequest {
278
278
  repeated string dirs = 1;
279
279
  }
280
280
 
281
+ // Session activation (issue #26): explicit client key and optional runtime.
282
+ // Runtime is a singular message so its presence remains observable.
283
+ message SessionRuntimeContext {
284
+ string work_dir = 1;
285
+ optional string provider = 2;
286
+ optional string model = 3;
287
+ optional string base_url = 4;
288
+ optional bool thinking = 5;
289
+ }
290
+
291
+ message ActivateSessionRequest {
292
+ optional string session_id = 1;
293
+ string client_key = 2;
294
+ optional string name = 3;
295
+ SessionRuntimeContext runtime = 4;
296
+ }
297
+
298
+ message ActivateSessionResponse {
299
+ SessionSummary session = 1;
300
+ bool created = 2;
301
+ }
302
+
303
+ message SetCredentialRequest {
304
+ string session_id = 1;
305
+ string provider = 2;
306
+ bytes secret = 3;
307
+ }
308
+
309
+ message ClearCredentialRequest {
310
+ string session_id = 1;
311
+ optional string provider = 2;
312
+ }
313
+
281
314
  service SessionService {
282
315
  // Full structured state (binary protobuf).
283
316
  rpc GetState(Empty) returns (SessionState);
@@ -296,4 +329,9 @@ service SessionService {
296
329
  // into the event loop, which applies it authoritatively (hot-reload).
297
330
  // `accepted` = the command was queued.
298
331
  rpc SetSkillDirs(SetSkillDirsRequest) returns (CommandResult);
332
+ // Session activation and credentials (issue #26): activate/resume a session
333
+ // and manage provider credentials without echoing secrets.
334
+ rpc ActivateSession(ActivateSessionRequest) returns (ActivateSessionResponse);
335
+ rpc SetCredential(SetCredentialRequest) returns (CommandResult);
336
+ rpc ClearCredential(ClearCredentialRequest) returns (CommandResult);
299
337
  }