@maiaos/protocol 0.1.0-canary.41 → 0.1.0-canary.43
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 +4 -0
- package/dist/agent/worker-operation.d.ts.map +1 -1
- package/dist/discovery/contract.d.ts +4 -0
- package/dist/discovery/contract.d.ts.map +1 -1
- package/dist/discovery/effect-schema.d.ts +4 -0
- package/dist/discovery/effect-schema.d.ts.map +1 -1
- package/dist/event/feature.d.ts +1 -1
- package/dist/event/feature.js +1 -1
- package/dist/event/feature.js.map +1 -1
- package/dist/event/registry.js +1 -1
- package/dist/event/registry.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/local-node/effect-schema.d.ts +2 -0
- package/dist/local-node/effect-schema.d.ts.map +1 -1
- package/dist/presentation/contract.d.ts +4 -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 +39 -0
- package/dist/session/contract.d.ts.map +1 -1
- package/dist/session/effect-schema.d.ts +93 -0
- package/dist/session/effect-schema.d.ts.map +1 -1
- package/dist/session/effect-schema.js +13 -1
- package/dist/session/effect-schema.js.map +1 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +1 -1
- package/dist/session/index.js.map +1 -1
- package/dist/session/policy.d.ts +6 -0
- package/dist/session/policy.d.ts.map +1 -1
- package/dist/session/policy.js +6 -0
- package/dist/session/policy.js.map +1 -1
- package/dist/session/stop-resume-contract.d.ts +8 -0
- package/dist/session/stop-resume-contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,11 @@ export declare const sessionSchema: import("../runtime-schema/runtime-schema.js"
|
|
|
26
26
|
readonly code: string;
|
|
27
27
|
readonly message: string;
|
|
28
28
|
} | undefined;
|
|
29
|
+
readonly labels?: {
|
|
30
|
+
readonly [x: string]: string;
|
|
31
|
+
} | undefined;
|
|
29
32
|
readonly latestTurnId?: string | undefined;
|
|
33
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
30
34
|
readonly schemaVersion: 4;
|
|
31
35
|
readonly title?: string | undefined;
|
|
32
36
|
readonly worktree?: {
|
|
@@ -285,6 +289,9 @@ export declare const sessionCreateParametersSchema: import("../runtime-schema/ru
|
|
|
285
289
|
readonly effort?: "high" | "low" | "max" | "medium" | "ultra" | "xhigh" | undefined;
|
|
286
290
|
readonly executor?: "claude-code" | "codex-cli" | undefined;
|
|
287
291
|
readonly hostAuthority?: true | undefined;
|
|
292
|
+
readonly labels?: {
|
|
293
|
+
readonly [x: string]: string;
|
|
294
|
+
} | undefined;
|
|
288
295
|
readonly model?: string | undefined;
|
|
289
296
|
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
290
297
|
readonly role?: "orchestrator" | "worker" | undefined;
|
|
@@ -425,7 +432,11 @@ export declare const sessionWaitResultSchema: import("../runtime-schema/runtime-
|
|
|
425
432
|
readonly code: string;
|
|
426
433
|
readonly message: string;
|
|
427
434
|
} | undefined;
|
|
435
|
+
readonly labels?: {
|
|
436
|
+
readonly [x: string]: string;
|
|
437
|
+
} | undefined;
|
|
428
438
|
readonly latestTurnId?: string | undefined;
|
|
439
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
429
440
|
readonly schemaVersion: 4;
|
|
430
441
|
readonly title?: string | undefined;
|
|
431
442
|
readonly worktree?: {
|
|
@@ -501,7 +512,11 @@ export declare const sessionSpawnResultSchema: import("../runtime-schema/runtime
|
|
|
501
512
|
readonly code: string;
|
|
502
513
|
readonly message: string;
|
|
503
514
|
} | undefined;
|
|
515
|
+
readonly labels?: {
|
|
516
|
+
readonly [x: string]: string;
|
|
517
|
+
} | undefined;
|
|
504
518
|
readonly latestTurnId?: string | undefined;
|
|
519
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
505
520
|
readonly schemaVersion: 4;
|
|
506
521
|
readonly title?: string | undefined;
|
|
507
522
|
readonly worktree?: {
|
|
@@ -568,7 +583,11 @@ export declare const sessionCreateResultSchema: import("../runtime-schema/runtim
|
|
|
568
583
|
readonly code: string;
|
|
569
584
|
readonly message: string;
|
|
570
585
|
} | undefined;
|
|
586
|
+
readonly labels?: {
|
|
587
|
+
readonly [x: string]: string;
|
|
588
|
+
} | undefined;
|
|
571
589
|
readonly latestTurnId?: string | undefined;
|
|
590
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
572
591
|
readonly schemaVersion: 4;
|
|
573
592
|
readonly title?: string | undefined;
|
|
574
593
|
readonly worktree?: {
|
|
@@ -733,7 +752,11 @@ export declare const sessionListResultSchema: import("../runtime-schema/runtime-
|
|
|
733
752
|
readonly code: string;
|
|
734
753
|
readonly message: string;
|
|
735
754
|
} | undefined;
|
|
755
|
+
readonly labels?: {
|
|
756
|
+
readonly [x: string]: string;
|
|
757
|
+
} | undefined;
|
|
736
758
|
readonly latestTurnId?: string | undefined;
|
|
759
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
737
760
|
readonly schemaVersion: 4;
|
|
738
761
|
readonly title?: string | undefined;
|
|
739
762
|
readonly worktree?: {
|
|
@@ -779,7 +802,11 @@ export declare const sessionShowResultSchema: import("../runtime-schema/runtime-
|
|
|
779
802
|
readonly code: string;
|
|
780
803
|
readonly message: string;
|
|
781
804
|
} | undefined;
|
|
805
|
+
readonly labels?: {
|
|
806
|
+
readonly [x: string]: string;
|
|
807
|
+
} | undefined;
|
|
782
808
|
readonly latestTurnId?: string | undefined;
|
|
809
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
783
810
|
readonly schemaVersion: 4;
|
|
784
811
|
readonly title?: string | undefined;
|
|
785
812
|
readonly worktree?: {
|
|
@@ -1076,7 +1103,11 @@ export declare const sessionStartResultSchema: import("../runtime-schema/runtime
|
|
|
1076
1103
|
readonly code: string;
|
|
1077
1104
|
readonly message: string;
|
|
1078
1105
|
} | undefined;
|
|
1106
|
+
readonly labels?: {
|
|
1107
|
+
readonly [x: string]: string;
|
|
1108
|
+
} | undefined;
|
|
1079
1109
|
readonly latestTurnId?: string | undefined;
|
|
1110
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
1080
1111
|
readonly schemaVersion: 4;
|
|
1081
1112
|
readonly title?: string | undefined;
|
|
1082
1113
|
readonly worktree?: {
|
|
@@ -1188,7 +1219,11 @@ export declare const sessionArchiveResultSchema: import("../runtime-schema/runti
|
|
|
1188
1219
|
readonly code: string;
|
|
1189
1220
|
readonly message: string;
|
|
1190
1221
|
} | undefined;
|
|
1222
|
+
readonly labels?: {
|
|
1223
|
+
readonly [x: string]: string;
|
|
1224
|
+
} | undefined;
|
|
1191
1225
|
readonly latestTurnId?: string | undefined;
|
|
1226
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
1192
1227
|
readonly schemaVersion: 4;
|
|
1193
1228
|
readonly title?: string | undefined;
|
|
1194
1229
|
readonly worktree?: {
|
|
@@ -1256,7 +1291,11 @@ export declare const sessionRenameResultSchema: import("../runtime-schema/runtim
|
|
|
1256
1291
|
readonly code: string;
|
|
1257
1292
|
readonly message: string;
|
|
1258
1293
|
} | undefined;
|
|
1294
|
+
readonly labels?: {
|
|
1295
|
+
readonly [x: string]: string;
|
|
1296
|
+
} | undefined;
|
|
1259
1297
|
readonly latestTurnId?: string | undefined;
|
|
1298
|
+
readonly permission?: "acceptEdits" | "bypassPermissions" | "default" | "dontAsk" | "never" | "on-failure" | "on-request" | "plan" | "untrusted" | undefined;
|
|
1260
1299
|
readonly schemaVersion: 4;
|
|
1261
1300
|
readonly title?: string | undefined;
|
|
1262
1301
|
readonly worktree?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/session/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAgCrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AASnC,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/session/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAgCrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AASnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAC1E,MAAM,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,aAAa,CAAC,CAAC;AAE/D;;;GA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;;;;;;;;;;;;;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"}
|
|
@@ -6,6 +6,13 @@ import { SESSION_EFFORT_LEVELS, SESSION_PERMISSION_MODES } from "./policy.js";
|
|
|
6
6
|
* when it matches more than one Session.
|
|
7
7
|
*/
|
|
8
8
|
export declare const sessionTitleEffectSchema: Schema.String;
|
|
9
|
+
/**
|
|
10
|
+
* Up to 8 labels that tell a person or a bot which lane a Session belongs to
|
|
11
|
+
* (owner, lane, goal). A key is a lower-case name of up to 32 characters; a
|
|
12
|
+
* value is 1 to 64 printable ASCII characters without spaces or commas. A
|
|
13
|
+
* label is not a place for secrets: it shows in every Session list.
|
|
14
|
+
*/
|
|
15
|
+
export declare const sessionLabelsEffectSchema: Schema.$Record<Schema.String, Schema.String>;
|
|
9
16
|
/** 1 to 100 items. */
|
|
10
17
|
export declare const pageSizeEffectSchema: Schema.Int;
|
|
11
18
|
export declare const sessionExecutorKindEffectSchema: Schema.Literals<readonly ["claude-code", "codex-cli"]>;
|
|
@@ -47,8 +54,12 @@ export declare const sessionEffectSchema: Schema.Struct<{
|
|
|
47
54
|
readonly code: Schema.String;
|
|
48
55
|
readonly message: Schema.String;
|
|
49
56
|
}>>;
|
|
57
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
58
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
50
59
|
/** 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. */
|
|
51
60
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
61
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
62
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
52
63
|
readonly schemaVersion: Schema.Literal<4>;
|
|
53
64
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
54
65
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -319,6 +330,7 @@ export declare const sessionCreateParametersEffectSchema: Schema.Struct<{
|
|
|
319
330
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
320
331
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
321
332
|
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
333
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
322
334
|
readonly model: Schema.optional<Schema.String>;
|
|
323
335
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
324
336
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
@@ -634,8 +646,12 @@ export declare const sessionCreateResultEffectSchema: Schema.Struct<{
|
|
|
634
646
|
readonly code: Schema.String;
|
|
635
647
|
readonly message: Schema.String;
|
|
636
648
|
}>>;
|
|
649
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
650
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
637
651
|
/** 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. */
|
|
638
652
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
653
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
654
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
639
655
|
readonly schemaVersion: Schema.Literal<4>;
|
|
640
656
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
641
657
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -705,8 +721,12 @@ export declare const sessionSpawnResultEffectSchema: Schema.Struct<{
|
|
|
705
721
|
readonly code: Schema.String;
|
|
706
722
|
readonly message: Schema.String;
|
|
707
723
|
}>>;
|
|
724
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
725
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
708
726
|
/** 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. */
|
|
709
727
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
728
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
729
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
710
730
|
readonly schemaVersion: Schema.Literal<4>;
|
|
711
731
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
712
732
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -760,8 +780,12 @@ export declare const sessionListResultEffectSchema: Schema.Struct<{
|
|
|
760
780
|
readonly code: Schema.String;
|
|
761
781
|
readonly message: Schema.String;
|
|
762
782
|
}>>;
|
|
783
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
784
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
763
785
|
/** 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. */
|
|
764
786
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
787
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
788
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
765
789
|
readonly schemaVersion: Schema.Literal<4>;
|
|
766
790
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
767
791
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -814,8 +838,12 @@ export declare const sessionShowResultEffectSchema: Schema.Struct<{
|
|
|
814
838
|
readonly code: Schema.String;
|
|
815
839
|
readonly message: Schema.String;
|
|
816
840
|
}>>;
|
|
841
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
842
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
817
843
|
/** 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. */
|
|
818
844
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
845
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
846
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
819
847
|
readonly schemaVersion: Schema.Literal<4>;
|
|
820
848
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
821
849
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -868,8 +896,12 @@ export declare const sessionWaitResultEffectSchema: Schema.Struct<{
|
|
|
868
896
|
readonly code: Schema.String;
|
|
869
897
|
readonly message: Schema.String;
|
|
870
898
|
}>>;
|
|
899
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
900
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
871
901
|
/** 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. */
|
|
872
902
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
903
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
904
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
873
905
|
readonly schemaVersion: Schema.Literal<4>;
|
|
874
906
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
875
907
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1168,8 +1200,12 @@ export declare const sessionStartResultEffectSchema: Schema.Struct<{
|
|
|
1168
1200
|
readonly code: Schema.String;
|
|
1169
1201
|
readonly message: Schema.String;
|
|
1170
1202
|
}>>;
|
|
1203
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1204
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1171
1205
|
/** 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. */
|
|
1172
1206
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1207
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1208
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1173
1209
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1174
1210
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1175
1211
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1237,8 +1273,12 @@ export declare const sessionStopResultEffectSchema: Schema.Struct<{
|
|
|
1237
1273
|
readonly code: Schema.String;
|
|
1238
1274
|
readonly message: Schema.String;
|
|
1239
1275
|
}>>;
|
|
1276
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1277
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1240
1278
|
/** 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. */
|
|
1241
1279
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1280
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1281
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1242
1282
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1243
1283
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1244
1284
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1306,8 +1346,12 @@ export declare const sessionResumeResultEffectSchema: Schema.Struct<{
|
|
|
1306
1346
|
readonly code: Schema.String;
|
|
1307
1347
|
readonly message: Schema.String;
|
|
1308
1348
|
}>>;
|
|
1349
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1350
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1309
1351
|
/** 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. */
|
|
1310
1352
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1353
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1354
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1311
1355
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1312
1356
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1313
1357
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1375,8 +1419,12 @@ export declare const sessionRenameResultEffectSchema: Schema.Struct<{
|
|
|
1375
1419
|
readonly code: Schema.String;
|
|
1376
1420
|
readonly message: Schema.String;
|
|
1377
1421
|
}>>;
|
|
1422
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1423
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1378
1424
|
/** 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. */
|
|
1379
1425
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1426
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1427
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1380
1428
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1381
1429
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1382
1430
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1455,8 +1503,12 @@ export declare const sessionArchiveResultEffectSchema: Schema.Struct<{
|
|
|
1455
1503
|
readonly code: Schema.String;
|
|
1456
1504
|
readonly message: Schema.String;
|
|
1457
1505
|
}>>;
|
|
1506
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1507
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1458
1508
|
/** 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. */
|
|
1459
1509
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1510
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1511
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1460
1512
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1461
1513
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1462
1514
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1492,6 +1544,7 @@ export declare const sessionRequestPayloadEffectSchema: Schema.Union<readonly [S
|
|
|
1492
1544
|
readonly effort: Schema.optional<Schema.Literals<readonly ["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
1493
1545
|
readonly executor: Schema.optional<Schema.Literals<readonly ["claude-code", "codex-cli"]>>;
|
|
1494
1546
|
readonly hostAuthority: Schema.optional<Schema.Literal<true>>;
|
|
1547
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1495
1548
|
readonly model: Schema.optional<Schema.String>;
|
|
1496
1549
|
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1497
1550
|
readonly role: Schema.optional<Schema.Literals<readonly ["orchestrator", "worker"]>>;
|
|
@@ -1662,8 +1715,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1662
1715
|
readonly code: Schema.String;
|
|
1663
1716
|
readonly message: Schema.String;
|
|
1664
1717
|
}>>;
|
|
1718
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1719
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1665
1720
|
/** 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. */
|
|
1666
1721
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1722
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1723
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1667
1724
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1668
1725
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1669
1726
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1795,8 +1852,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1795
1852
|
readonly code: Schema.String;
|
|
1796
1853
|
readonly message: Schema.String;
|
|
1797
1854
|
}>>;
|
|
1855
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1856
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1798
1857
|
/** 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. */
|
|
1799
1858
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1859
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1860
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1800
1861
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1801
1862
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1802
1863
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1914,8 +1975,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1914
1975
|
readonly code: Schema.String;
|
|
1915
1976
|
readonly message: Schema.String;
|
|
1916
1977
|
}>>;
|
|
1978
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
1979
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1917
1980
|
/** 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. */
|
|
1918
1981
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
1982
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
1983
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1919
1984
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1920
1985
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1921
1986
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -1966,8 +2031,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
1966
2031
|
readonly code: Schema.String;
|
|
1967
2032
|
readonly message: Schema.String;
|
|
1968
2033
|
}>>;
|
|
2034
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2035
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
1969
2036
|
/** 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. */
|
|
1970
2037
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2038
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2039
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
1971
2040
|
readonly schemaVersion: Schema.Literal<4>;
|
|
1972
2041
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
1973
2042
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2036,8 +2105,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2036
2105
|
readonly code: Schema.String;
|
|
2037
2106
|
readonly message: Schema.String;
|
|
2038
2107
|
}>>;
|
|
2108
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2109
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2039
2110
|
/** 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. */
|
|
2040
2111
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2112
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2113
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2041
2114
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2042
2115
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2043
2116
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2334,8 +2407,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2334
2407
|
readonly code: Schema.String;
|
|
2335
2408
|
readonly message: Schema.String;
|
|
2336
2409
|
}>>;
|
|
2410
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2411
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2337
2412
|
/** 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. */
|
|
2338
2413
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2414
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2415
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2339
2416
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2340
2417
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2341
2418
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2402,8 +2479,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2402
2479
|
readonly code: Schema.String;
|
|
2403
2480
|
readonly message: Schema.String;
|
|
2404
2481
|
}>>;
|
|
2482
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2483
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2405
2484
|
/** 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. */
|
|
2406
2485
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2486
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2487
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2407
2488
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2408
2489
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2409
2490
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2470,8 +2551,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2470
2551
|
readonly code: Schema.String;
|
|
2471
2552
|
readonly message: Schema.String;
|
|
2472
2553
|
}>>;
|
|
2554
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2555
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2473
2556
|
/** 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. */
|
|
2474
2557
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2558
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2559
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2475
2560
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2476
2561
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2477
2562
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2561,8 +2646,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2561
2646
|
readonly code: Schema.String;
|
|
2562
2647
|
readonly message: Schema.String;
|
|
2563
2648
|
}>>;
|
|
2649
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2650
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2564
2651
|
/** 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. */
|
|
2565
2652
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2653
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2654
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2566
2655
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2567
2656
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2568
2657
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -2629,8 +2718,12 @@ export declare const sessionSuccessResultEffectSchema: Schema.Union<readonly [Sc
|
|
|
2629
2718
|
readonly code: Schema.String;
|
|
2630
2719
|
readonly message: Schema.String;
|
|
2631
2720
|
}>>;
|
|
2721
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
2722
|
+
readonly labels: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
2632
2723
|
/** 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. */
|
|
2633
2724
|
readonly latestTurnId: Schema.optional<Schema.String>;
|
|
2725
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
2726
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["default", "acceptEdits", "plan", "dontAsk", "bypassPermissions", "untrusted", "on-failure", "on-request", "never"]>>;
|
|
2634
2727
|
readonly schemaVersion: Schema.Literal<4>;
|
|
2635
2728
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
2636
2729
|
readonly title: Schema.optional<Schema.String>;
|
|
@@ -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;AAmBxC,OAAO,
|
|
1
|
+
{"version":3,"file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;;;;;;;;;;;;;;;;QAlBnE;;;;WAIG;;;;;;;;QAGH,mEAAmE;;;;;QAEnE,8DAA8D;;QAE9D,0JAA0J;;QAE1J,4HAA4H;;;QAG5H,kFAAkF;;QAElF,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAlBnE;;;;WAIG;;;;;;;;QAGH,mEAAmE;;;;;QAEnE,8DAA8D;;QAE9D,0JAA0J;;QAE1J,4HAA4H;;;QAG5H,kFAAkF;;QAElF,mEAAmE;;;;;;;;;;;;;IA2tBnE,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"}
|
|
@@ -7,7 +7,7 @@ import { hasControlCharacter } from "../envelope/index.js";
|
|
|
7
7
|
import { holdIdentifierEffectSchema } from "../hold/effect-schema.js";
|
|
8
8
|
import { sessionRoleEffectSchema } from "../session-guard/effect-schema.js";
|
|
9
9
|
import { sessionObserveParametersEffectSchema, sessionObserveResultEffectSchema, } from "./observation-effect-schema.js";
|
|
10
|
-
import { MAX_SESSION_INBOX_CHECK_LIMIT, 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";
|
|
10
|
+
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
11
|
import { sessionTurnEventEffectSchema } from "./turn-event-effect-schema.js";
|
|
12
12
|
import { SESSION_EVENT_SCHEMA_VERSION, SESSION_SCHEMA_VERSION, } from "./version.js";
|
|
13
13
|
import { sessionArchiveEffectSchema, sessionArchiveParametersEffectSchema, sessionDiffParametersEffectSchema, sessionDiffResultEffectSchema, sessionStartDirectoryEffectSchema, sessionWorktreeCreatedEffectSchema, sessionWorktreeEffectSchema, sessionWorktreeRemovedEffectSchema, sessionWorktreeRequestEffectSchema, } from "./worktree-effect-schema.js";
|
|
@@ -28,6 +28,13 @@ const revisionEffectSchema = aggregateRevisionEffectSchema;
|
|
|
28
28
|
export const sessionTitleEffectSchema = Schema.String.check(Schema.isBetweenLength(1, MAX_SESSION_TITLE_LENGTH), Schema.makeFilter((value) => value.trim() === value && !hasControlCharacter(value), {
|
|
29
29
|
expected: "a one-line title of 1 to 80 characters without surrounding spaces",
|
|
30
30
|
}));
|
|
31
|
+
/**
|
|
32
|
+
* Up to 8 labels that tell a person or a bot which lane a Session belongs to
|
|
33
|
+
* (owner, lane, goal). A key is a lower-case name of up to 32 characters; a
|
|
34
|
+
* value is 1 to 64 printable ASCII characters without spaces or commas. A
|
|
35
|
+
* label is not a place for secrets: it shows in every Session list.
|
|
36
|
+
*/
|
|
37
|
+
export const sessionLabelsEffectSchema = Schema.Record(Schema.String.check(Schema.isPattern(new RegExp(`^[a-z][a-z0-9_-]{0,${String(MAX_SESSION_LABEL_KEY_LENGTH - 1)}}$`, "u"))), Schema.String.check(Schema.isPattern(new RegExp(`^[\\x21-\\x2b\\x2d-\\x7e]{1,${String(MAX_SESSION_LABEL_VALUE_LENGTH)}}$`, "u")))).check(Schema.makeFilter((value) => Object.keys(value).length <= MAX_SESSION_LABELS, { expected: "at most 8 labels" }));
|
|
31
38
|
/** 1 to 100 items. */
|
|
32
39
|
export const pageSizeEffectSchema = Schema.Int.check(Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(MAX_PAGE_SIZE));
|
|
33
40
|
const sessionStateEffectSchema = Schema.Literals([
|
|
@@ -88,8 +95,12 @@ export const sessionEffectSchema = Schema.Struct({
|
|
|
88
95
|
executor: Schema.optional(sessionExecutorEffectSchema),
|
|
89
96
|
/** Why the runtime of a failed Session failed, when Maia knows. */
|
|
90
97
|
failure: Schema.optional(failureDetailEffectSchema),
|
|
98
|
+
/** Set at creation; absent when the Session has no labels. */
|
|
99
|
+
labels: Schema.optional(sessionLabelsEffectSchema),
|
|
91
100
|
/** 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. */
|
|
92
101
|
latestTurnId: Schema.optional(protocolIdentifierEffectSchema),
|
|
102
|
+
/** The permission mode a host-authority Session passes to its vendor CLI, fixed at creation; none is the vendor default. */
|
|
103
|
+
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
93
104
|
schemaVersion: Schema.Literal(SESSION_SCHEMA_VERSION),
|
|
94
105
|
/** Set at creation or by a rename; otherwise the first line of the first turn. */
|
|
95
106
|
title: Schema.optional(sessionTitleEffectSchema),
|
|
@@ -223,6 +234,7 @@ export const sessionCreateParametersEffectSchema = Schema.Struct({
|
|
|
223
234
|
effort: Schema.optional(sessionEffortEffectSchema),
|
|
224
235
|
executor: Schema.optional(sessionExecutorKindEffectSchema),
|
|
225
236
|
hostAuthority: Schema.optional(Schema.Literal(true)),
|
|
237
|
+
labels: Schema.optional(sessionLabelsEffectSchema),
|
|
226
238
|
model: Schema.optional(connectionModelIdEffectSchema),
|
|
227
239
|
permission: Schema.optional(sessionPermissionEffectSchema),
|
|
228
240
|
role: Schema.optional(sessionRoleEffectSchema),
|