@maiaos/protocol 0.1.0-canary.45 → 0.1.0-canary.47
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/agent/worker-operation.d.ts +2 -0
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/discovery/contract.d.ts +6 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/effect-schema.d.ts +12 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/discovery/effect-schema.js +19 -2
- package/dist/discovery/effect-schema.js.map +1 -1
- package/dist/event/effect-schema.d.ts +1 -0
- package/dist/event/effect-schema.d.ts.map +1 -1
- package/dist/event/effect-schema.js +1 -0
- package/dist/event/effect-schema.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +8 -2
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/presentation/contract.d.ts +2 -0
- package/dist/presentation/contract.d.ts.map +1 -1
- package/dist/presentation/effect-schema.d.ts +2 -0
- package/dist/presentation/effect-schema.d.ts.map +1 -1
- package/dist/presentation/session-list-effect-schema.d.ts +2 -0
- package/dist/presentation/session-list-effect-schema.d.ts.map +1 -1
- package/dist/session/contract.d.ts +20 -1
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/effect-schema.d.ts +90 -2
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +10 -2
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +4 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/dist/turn/effect-schema.d.ts +3 -0
- package/dist/turn/effect-schema.d.ts.map +1 -1
- package/dist/turn/effect-schema.js +11 -9
- package/dist/turn/effect-schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/session/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBA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AAM,MAAM,cAAc,GAAG,kBAAkB,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E,eAAO,MAAM,qBAAqB;;;;;;;;;;EAEjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE/E,eAAO,MAAM,2BAA2B;;;EAEvC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CACpD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;EAE1C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,kBAAkB,CACvD,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,kBAAkB,CACnD,OAAO,0BAA0B,CAClC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;EAEzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,CACtD,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAClD,OAAO,yBAAyB,CACjC,CAAC"}
|
|
@@ -32,6 +32,8 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
32
32
|
readonly updatedAt: Schema.String;
|
|
33
33
|
readonly workspaceId: Schema.String;
|
|
34
34
|
readonly workspaceRevision: Schema.String;
|
|
35
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
36
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
35
37
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
36
38
|
readonly contentDigest: Schema.String;
|
|
37
39
|
readonly key: Schema.String;
|
|
@@ -58,6 +60,8 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
58
60
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
59
61
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
60
62
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
63
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
64
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
61
65
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
62
66
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
63
67
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -369,9 +373,11 @@ export declare const sessionShowParametersEffectSchema: Schema.Struct<{
|
|
|
369
373
|
readonly sessionId: Schema.String;
|
|
370
374
|
}>;
|
|
371
375
|
export declare const sessionWaitParametersEffectSchema: Schema.Struct<{
|
|
376
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
377
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
372
378
|
readonly sessionId: Schema.String;
|
|
373
379
|
/** The wait ends when the Session is in any of these states. */
|
|
374
|
-
readonly states: Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]
|
|
380
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
375
381
|
readonly waitMilliseconds: Schema.Int;
|
|
376
382
|
}>;
|
|
377
383
|
export declare const sessionEventsListParametersEffectSchema: Schema.Struct<{
|
|
@@ -624,6 +630,8 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
624
630
|
readonly updatedAt: Schema.String;
|
|
625
631
|
readonly workspaceId: Schema.String;
|
|
626
632
|
readonly workspaceRevision: Schema.String;
|
|
633
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
634
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
627
635
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
628
636
|
readonly contentDigest: Schema.String;
|
|
629
637
|
readonly key: Schema.String;
|
|
@@ -650,6 +658,8 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
650
658
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
651
659
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
652
660
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
661
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
662
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
653
663
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
654
664
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
655
665
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -699,6 +709,8 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
699
709
|
readonly updatedAt: Schema.String;
|
|
700
710
|
readonly workspaceId: Schema.String;
|
|
701
711
|
readonly workspaceRevision: Schema.String;
|
|
712
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
713
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
702
714
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
703
715
|
readonly contentDigest: Schema.String;
|
|
704
716
|
readonly key: Schema.String;
|
|
@@ -725,6 +737,8 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
725
737
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
726
738
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
727
739
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
740
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
741
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
728
742
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
729
743
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
730
744
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -758,6 +772,8 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
758
772
|
readonly updatedAt: Schema.String;
|
|
759
773
|
readonly workspaceId: Schema.String;
|
|
760
774
|
readonly workspaceRevision: Schema.String;
|
|
775
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
776
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
761
777
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
762
778
|
readonly contentDigest: Schema.String;
|
|
763
779
|
readonly key: Schema.String;
|
|
@@ -784,6 +800,8 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
784
800
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
785
801
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
786
802
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
803
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
804
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
787
805
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
788
806
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
789
807
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -816,6 +834,8 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
816
834
|
readonly updatedAt: Schema.String;
|
|
817
835
|
readonly workspaceId: Schema.String;
|
|
818
836
|
readonly workspaceRevision: Schema.String;
|
|
837
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
838
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
819
839
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
820
840
|
readonly contentDigest: Schema.String;
|
|
821
841
|
readonly key: Schema.String;
|
|
@@ -842,6 +862,8 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
842
862
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
843
863
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
844
864
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
865
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
866
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
845
867
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
846
868
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
847
869
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -874,6 +896,8 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
874
896
|
readonly updatedAt: Schema.String;
|
|
875
897
|
readonly workspaceId: Schema.String;
|
|
876
898
|
readonly workspaceRevision: Schema.String;
|
|
899
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
900
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
877
901
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
878
902
|
readonly contentDigest: Schema.String;
|
|
879
903
|
readonly key: Schema.String;
|
|
@@ -900,6 +924,8 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
900
924
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
901
925
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
902
926
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
927
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
928
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
903
929
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
904
930
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
905
931
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1178,6 +1204,8 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1178
1204
|
readonly updatedAt: Schema.String;
|
|
1179
1205
|
readonly workspaceId: Schema.String;
|
|
1180
1206
|
readonly workspaceRevision: Schema.String;
|
|
1207
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1208
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1181
1209
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1182
1210
|
readonly contentDigest: Schema.String;
|
|
1183
1211
|
readonly key: Schema.String;
|
|
@@ -1204,6 +1232,8 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1204
1232
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1205
1233
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1206
1234
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1235
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1236
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1207
1237
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1208
1238
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1209
1239
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1251,6 +1281,8 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1251
1281
|
readonly updatedAt: Schema.String;
|
|
1252
1282
|
readonly workspaceId: Schema.String;
|
|
1253
1283
|
readonly workspaceRevision: Schema.String;
|
|
1284
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1285
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1254
1286
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1255
1287
|
readonly contentDigest: Schema.String;
|
|
1256
1288
|
readonly key: Schema.String;
|
|
@@ -1277,6 +1309,8 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1277
1309
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1278
1310
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1279
1311
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1312
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1313
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1280
1314
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1281
1315
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1282
1316
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1324,6 +1358,8 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1324
1358
|
readonly updatedAt: Schema.String;
|
|
1325
1359
|
readonly workspaceId: Schema.String;
|
|
1326
1360
|
readonly workspaceRevision: Schema.String;
|
|
1361
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1362
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1327
1363
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1328
1364
|
readonly contentDigest: Schema.String;
|
|
1329
1365
|
readonly key: Schema.String;
|
|
@@ -1350,6 +1386,8 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1350
1386
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1351
1387
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1352
1388
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1389
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1390
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1353
1391
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1354
1392
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1355
1393
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1397,6 +1435,8 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1397
1435
|
readonly updatedAt: Schema.String;
|
|
1398
1436
|
readonly workspaceId: Schema.String;
|
|
1399
1437
|
readonly workspaceRevision: Schema.String;
|
|
1438
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1439
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1400
1440
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1401
1441
|
readonly contentDigest: Schema.String;
|
|
1402
1442
|
readonly key: Schema.String;
|
|
@@ -1423,6 +1463,8 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1423
1463
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1424
1464
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1425
1465
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1466
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1467
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1426
1468
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1427
1469
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1428
1470
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1481,6 +1523,8 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1481
1523
|
readonly updatedAt: Schema.String;
|
|
1482
1524
|
readonly workspaceId: Schema.String;
|
|
1483
1525
|
readonly workspaceRevision: Schema.String;
|
|
1526
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1527
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1484
1528
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1485
1529
|
readonly contentDigest: Schema.String;
|
|
1486
1530
|
readonly key: Schema.String;
|
|
@@ -1507,6 +1551,8 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1507
1551
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1508
1552
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1509
1553
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1554
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1555
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1510
1556
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1511
1557
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1512
1558
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1570,9 +1616,11 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1570
1616
|
}>, Schema.Struct<{
|
|
1571
1617
|
readonly method: Schema.Literal<"session.wait">;
|
|
1572
1618
|
readonly parameters: Schema.Struct<{
|
|
1619
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
1620
|
+
readonly activities: Schema.optional<Schema.$Array<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>>;
|
|
1573
1621
|
readonly sessionId: Schema.String;
|
|
1574
1622
|
/** The wait ends when the Session is in any of these states. */
|
|
1575
|
-
readonly states: Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]
|
|
1623
|
+
readonly states: Schema.optional<Schema.$Array<Schema.Literals<readonly ["idle", "starting", "running", "waiting-approval", "interrupted", "recovering", "stopping", "stopped", "failed"]>>>;
|
|
1576
1624
|
readonly waitMilliseconds: Schema.Int;
|
|
1577
1625
|
}>;
|
|
1578
1626
|
}>, Schema.Struct<{
|
|
@@ -1693,6 +1741,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1693
1741
|
readonly updatedAt: Schema.String;
|
|
1694
1742
|
readonly workspaceId: Schema.String;
|
|
1695
1743
|
readonly workspaceRevision: Schema.String;
|
|
1744
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1745
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1696
1746
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1697
1747
|
readonly contentDigest: Schema.String;
|
|
1698
1748
|
readonly key: Schema.String;
|
|
@@ -1719,6 +1769,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1719
1769
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1720
1770
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1721
1771
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1772
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1773
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1722
1774
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1723
1775
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1724
1776
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1830,6 +1882,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1830
1882
|
readonly updatedAt: Schema.String;
|
|
1831
1883
|
readonly workspaceId: Schema.String;
|
|
1832
1884
|
readonly workspaceRevision: Schema.String;
|
|
1885
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
1886
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1833
1887
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1834
1888
|
readonly contentDigest: Schema.String;
|
|
1835
1889
|
readonly key: Schema.String;
|
|
@@ -1856,6 +1910,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1856
1910
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1857
1911
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1858
1912
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1913
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
1914
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1859
1915
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1860
1916
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1861
1917
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1953,6 +2009,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1953
2009
|
readonly updatedAt: Schema.String;
|
|
1954
2010
|
readonly workspaceId: Schema.String;
|
|
1955
2011
|
readonly workspaceRevision: Schema.String;
|
|
2012
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2013
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
1956
2014
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
1957
2015
|
readonly contentDigest: Schema.String;
|
|
1958
2016
|
readonly key: Schema.String;
|
|
@@ -1979,6 +2037,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1979
2037
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1980
2038
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
1981
2039
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2040
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2041
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
1982
2042
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1983
2043
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1984
2044
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2009,6 +2069,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2009
2069
|
readonly updatedAt: Schema.String;
|
|
2010
2070
|
readonly workspaceId: Schema.String;
|
|
2011
2071
|
readonly workspaceRevision: Schema.String;
|
|
2072
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2073
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2012
2074
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2013
2075
|
readonly contentDigest: Schema.String;
|
|
2014
2076
|
readonly key: Schema.String;
|
|
@@ -2035,6 +2097,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2035
2097
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2036
2098
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2037
2099
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2100
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2101
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2038
2102
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2039
2103
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2040
2104
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2083,6 +2147,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2083
2147
|
readonly updatedAt: Schema.String;
|
|
2084
2148
|
readonly workspaceId: Schema.String;
|
|
2085
2149
|
readonly workspaceRevision: Schema.String;
|
|
2150
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2151
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2086
2152
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2087
2153
|
readonly contentDigest: Schema.String;
|
|
2088
2154
|
readonly key: Schema.String;
|
|
@@ -2109,6 +2175,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2109
2175
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2110
2176
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2111
2177
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2178
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2179
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2112
2180
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2113
2181
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2114
2182
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2385,6 +2453,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2385
2453
|
readonly updatedAt: Schema.String;
|
|
2386
2454
|
readonly workspaceId: Schema.String;
|
|
2387
2455
|
readonly workspaceRevision: Schema.String;
|
|
2456
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2457
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2388
2458
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2389
2459
|
readonly contentDigest: Schema.String;
|
|
2390
2460
|
readonly key: Schema.String;
|
|
@@ -2411,6 +2481,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2411
2481
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2412
2482
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2413
2483
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2484
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2485
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2414
2486
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2415
2487
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2416
2488
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2457,6 +2529,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2457
2529
|
readonly updatedAt: Schema.String;
|
|
2458
2530
|
readonly workspaceId: Schema.String;
|
|
2459
2531
|
readonly workspaceRevision: Schema.String;
|
|
2532
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2533
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2460
2534
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2461
2535
|
readonly contentDigest: Schema.String;
|
|
2462
2536
|
readonly key: Schema.String;
|
|
@@ -2483,6 +2557,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2483
2557
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2484
2558
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2485
2559
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2560
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2561
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2486
2562
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2487
2563
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2488
2564
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2529,6 +2605,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2529
2605
|
readonly updatedAt: Schema.String;
|
|
2530
2606
|
readonly workspaceId: Schema.String;
|
|
2531
2607
|
readonly workspaceRevision: Schema.String;
|
|
2608
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2609
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2532
2610
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2533
2611
|
readonly contentDigest: Schema.String;
|
|
2534
2612
|
readonly key: Schema.String;
|
|
@@ -2555,6 +2633,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2555
2633
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2556
2634
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2557
2635
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2636
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2637
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2558
2638
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2559
2639
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2560
2640
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2624,6 +2704,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2624
2704
|
readonly updatedAt: Schema.String;
|
|
2625
2705
|
readonly workspaceId: Schema.String;
|
|
2626
2706
|
readonly workspaceRevision: Schema.String;
|
|
2707
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2708
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2627
2709
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2628
2710
|
readonly contentDigest: Schema.String;
|
|
2629
2711
|
readonly key: Schema.String;
|
|
@@ -2650,6 +2732,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2650
2732
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2651
2733
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2652
2734
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2735
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2736
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2653
2737
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2654
2738
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2655
2739
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -2696,6 +2780,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2696
2780
|
readonly updatedAt: Schema.String;
|
|
2697
2781
|
readonly workspaceId: Schema.String;
|
|
2698
2782
|
readonly workspaceRevision: Schema.String;
|
|
2783
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
2784
|
+
readonly activity: Schema.optional<Schema.Literals<readonly ["stopped", "waiting_approval", "working", "idle"]>>;
|
|
2699
2785
|
readonly agentDefinitionRef: Schema.optional<Schema.Struct<{
|
|
2700
2786
|
readonly contentDigest: Schema.String;
|
|
2701
2787
|
readonly key: Schema.String;
|
|
@@ -2722,6 +2808,8 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2722
2808
|
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2723
2809
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
2724
2810
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2811
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
2812
|
+
readonly latestTurnState: Schema.optional<Schema.Literals<readonly ["queued", "dispatching", "running", "completed", "failed", "outcome-unknown", "interrupted"]>>;
|
|
2725
2813
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2726
2814
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2727
2815
|
readonly schemaVersion: Schema.Literal<4>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/session/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"effect-schema.d.ts","sourceRoot":"","sources":["../../src/session/effect-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAqBxC,OAAO,EAWL,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AA0CrB;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,eASpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,8CAsBrC,CAAC;AAEF,sBAAsB;AACtB,eAAO,MAAM,oBAAoB,YAGhC,CAAC;AAyBF,eAAO,MAAM,+BAA+B,wDAG1C,CAAC;AAEH,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,eAEvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,8EAErC,CAAC;AACF,eAAO,MAAM,cAAc,SACnB,MAAM,OAAO,qBAAqB,UAChC,MAAM,KACb,OACkE,CAAC;AAEtE,6GAA6G;AAC7G,eAAO,MAAM,6BAA6B,gJAGxC,CAAC;AACH,eAAO,MAAM,kBAAkB,SACvB,MAAM,OAAO,wBAAwB,cAC/B,MAAM,KACjB,OACyE,CAAC;AAoB7E,eAAO,MAAM,mBAAmB;;;;;;;;;IAE9B,+EAA+E;;;;;;;IAG/E;;;;OAIG;;;;;;;;IAGH,mEAAmE;;;;;IAEnE,8DAA8D;;IAE9D,0JAA0J;;IAE1J,0FAA0F;;IAE1F,4HAA4H;;;IAG5H,kFAAkF;;IAElF,mEAAmE;;;;;;;;;;;;EAcpE,CAAC;AAiIF,eAAO,MAAM,wBAAwB;;;;;QA5HnC,2E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;;;;QAEnE,8DAA8D;;QAE9D,0JAA0J;;QAE1J,0FAA0F;;QAE1F,4HAA4H;;;QAG5H,kFAAkF;;QAElF,mEAAmE;;;;;;;;;;;;;IAyuBnE,CAAC;AAEH,OAAO,EACL,kCAAkC,EAClC,iCAAiC,GAClC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,oCAAoC,EACpC,iCAAiC,EACjC,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC"}
|
|
@@ -4,8 +4,10 @@ import { commandReceiptEffectSchema } from "../command-receipt/effect-schema.js"
|
|
|
4
4
|
import { connectionModelIdEffectSchema } from "../connection/effect-schema.js";
|
|
5
5
|
import { aggregateRevisionEffectSchema, failureDetailEffectSchema, protocolIdentifierEffectSchema, recordedAtEffectSchema, } from "../envelope/effect-schema.js";
|
|
6
6
|
import { hasControlCharacter } from "../envelope/index.js";
|
|
7
|
+
import { sessionActivityEffectSchema } from "../event/effect-schema.js";
|
|
7
8
|
import { holdIdentifierEffectSchema } from "../hold/effect-schema.js";
|
|
8
9
|
import { sessionRoleEffectSchema } from "../session-guard/effect-schema.js";
|
|
10
|
+
import { turnStateEffectSchema } from "../turn/effect-schema.js";
|
|
9
11
|
import { sessionObserveParametersEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
10
12
|
import { MAX_SESSION_INBOX_CHECK_LIMIT, MAX_SESSION_LABEL_KEY_LENGTH, MAX_SESSION_LABEL_VALUE_LENGTH, MAX_SESSION_LABELS, MAX_SESSION_MESSAGE_BODY_BYTES, MAX_SESSION_MESSAGE_SUBJECT_BYTES, MAX_SESSION_TITLE_LENGTH, MAX_SESSION_WAIT_MILLISECONDS, MAX_SESSION_WAIT_STATES, SESSION_ATTENTION_VALUES, SESSION_EFFORT_LEVELS, SESSION_PERMISSION_MODES, } from "./policy.js";
|
|
11
13
|
import { sessionTurnEventEffectSchema } from "./turn-event-effect-schema.js";
|
|
@@ -85,6 +87,8 @@ const sessionExecutorEffectSchema = Schema.Struct({
|
|
|
85
87
|
}).check(Schema.makeFilter((value) => value.effort === undefined || supportsEffort(value.kind, value.effort), { expected: "an effort level the executor kind supports" }));
|
|
86
88
|
export const sessionEffectSchema = Schema.Struct({
|
|
87
89
|
...sessionBaseFields,
|
|
90
|
+
/** What the Session is doing; present on `session.list` and `session.show`. */
|
|
91
|
+
activity: Schema.optional(sessionActivityEffectSchema),
|
|
88
92
|
agentDefinitionRef: Schema.optional(agentDefinitionReferenceEffectSchema),
|
|
89
93
|
/**
|
|
90
94
|
* `none` for a host-authority Session: the vendor harness runs as the
|
|
@@ -99,6 +103,8 @@ export const sessionEffectSchema = Schema.Struct({
|
|
|
99
103
|
labels: Schema.optional(sessionLabelsEffectSchema),
|
|
100
104
|
/** The Session's newest turn that ran (running or settled); a turn that never ran (queued, withdrawn or rejected) never counts; absent until one runs. */
|
|
101
105
|
latestTurnId: Schema.optional(protocolIdentifierEffectSchema),
|
|
106
|
+
/** How `latestTurnId` ended or is going; present on `session.list` and `session.show`. */
|
|
107
|
+
latestTurnState: Schema.optional(turnStateEffectSchema),
|
|
102
108
|
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
103
109
|
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
104
110
|
schemaVersion: Schema.Literal(SESSION_SCHEMA_VERSION),
|
|
@@ -288,11 +294,13 @@ export const sessionShowParametersEffectSchema = Schema.Struct({
|
|
|
288
294
|
sessionId: protocolIdentifierEffectSchema,
|
|
289
295
|
});
|
|
290
296
|
export const sessionWaitParametersEffectSchema = Schema.Struct({
|
|
297
|
+
/** The wait ends when the Session is in any of these activities. */
|
|
298
|
+
activities: Schema.optional(Schema.Array(sessionActivityEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(4))),
|
|
291
299
|
sessionId: protocolIdentifierEffectSchema,
|
|
292
300
|
/** The wait ends when the Session is in any of these states. */
|
|
293
|
-
states: Schema.Array(sessionStateEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(MAX_SESSION_WAIT_STATES)),
|
|
301
|
+
states: Schema.optional(Schema.Array(sessionStateEffectSchema).check(Schema.isMinLength(1), Schema.isMaxLength(MAX_SESSION_WAIT_STATES))),
|
|
294
302
|
waitMilliseconds: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(MAX_SESSION_WAIT_MILLISECONDS)),
|
|
295
|
-
});
|
|
303
|
+
}).check(Schema.makeFilter((value) => value.states !== undefined || value.activities !== undefined, { expected: "states, activities or both to wait for" }));
|
|
296
304
|
export const sessionEventsListParametersEffectSchema = Schema.Struct({
|
|
297
305
|
afterSessionCursor: revisionEffectSchema,
|
|
298
306
|
limit: Schema.Int.check(Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(MAX_EVENT_PAGE_SIZE)),
|