@myagentroam/protocol 0.10.2 → 0.10.4

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.
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ export declare function isComposerAttachmentResourcePath(value: string): boolean;
2
3
  export declare const composerTagSchemas: {
3
4
  readonly mar_goal_start: z.ZodObject<{
4
5
  objective: z.ZodString;
@@ -12,7 +13,7 @@ export declare const composerTagSchemas: {
12
13
  files: z.ZodArray<z.ZodEffects<z.ZodObject<{
13
14
  name: z.ZodString;
14
15
  mime: z.ZodString;
15
- path: z.ZodEffects<z.ZodString, string, string>;
16
+ path: z.ZodString;
16
17
  workspacePath: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
17
18
  }, "strict", z.ZodTypeAny, {
18
19
  path: string;
@@ -4,17 +4,23 @@ const name = z.string().min(1).max(512);
4
4
  const MAX_COMPOSER_TAG_BYTES = 128 * 1024;
5
5
  const relativePath = path.refine((value) => !/^(?:[\\/]|[A-Za-z]:)/u.test(value));
6
6
  const workspacePath = relativePath.refine((value) => !value.split(/[\\/]/u).includes('..'));
7
+ export function isComposerAttachmentResourcePath(value) {
8
+ return (/^mar-attachment:\/\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/[^/\\\0]+$/u.test(value) && !value.split('/').includes('..'));
9
+ }
7
10
  const attachment = z
8
11
  .object({
9
12
  name,
10
13
  mime: z.string().min(1).max(128),
11
- path: relativePath,
14
+ path,
12
15
  workspacePath: workspacePath.optional()
13
16
  })
14
17
  .strict()
15
18
  .refine((value) => {
16
19
  const target = value.workspacePath ?? value.path;
17
- return workspacePath.safeParse(target).success && target.startsWith('.mar/temp-files/');
20
+ return (isComposerAttachmentResourcePath(target) ||
21
+ (relativePath.safeParse(value.path).success &&
22
+ workspacePath.safeParse(target).success &&
23
+ target.startsWith('.mar/temp-files/')));
18
24
  });
19
25
  export const composerTagSchemas = {
20
26
  mar_goal_start: z.object({ objective: z.string().max(100_000) }).strict(),
package/dist/index.d.ts CHANGED
@@ -7416,16 +7416,16 @@ export declare const subagentLatestMessageSchema: z.ZodObject<{
7416
7416
  truncated: z.ZodOptional<z.ZodBoolean>;
7417
7417
  }, "strip", z.ZodTypeAny, {
7418
7418
  text: string;
7419
+ phase: "commentary" | "final_answer";
7419
7420
  turnId: string;
7420
7421
  itemId: string;
7421
- phase: "commentary" | "final_answer";
7422
7422
  timestamp: string;
7423
7423
  truncated?: boolean | undefined;
7424
7424
  }, {
7425
7425
  text: string;
7426
+ phase: "commentary" | "final_answer";
7426
7427
  turnId: string;
7427
7428
  itemId: string;
7428
- phase: "commentary" | "final_answer";
7429
7429
  timestamp: string;
7430
7430
  truncated?: boolean | undefined;
7431
7431
  }>;
@@ -7978,16 +7978,16 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
7978
7978
  truncated: z.ZodOptional<z.ZodBoolean>;
7979
7979
  }, "strip", z.ZodTypeAny, {
7980
7980
  text: string;
7981
+ phase: "commentary" | "final_answer";
7981
7982
  turnId: string;
7982
7983
  itemId: string;
7983
- phase: "commentary" | "final_answer";
7984
7984
  timestamp: string;
7985
7985
  truncated?: boolean | undefined;
7986
7986
  }, {
7987
7987
  text: string;
7988
+ phase: "commentary" | "final_answer";
7988
7989
  turnId: string;
7989
7990
  itemId: string;
7990
- phase: "commentary" | "final_answer";
7991
7991
  timestamp: string;
7992
7992
  truncated?: boolean | undefined;
7993
7993
  }>>;
@@ -8052,9 +8052,9 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
8052
8052
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
8053
8053
  subagentLatestMessage?: {
8054
8054
  text: string;
8055
+ phase: "commentary" | "final_answer";
8055
8056
  turnId: string;
8056
8057
  itemId: string;
8057
- phase: "commentary" | "final_answer";
8058
8058
  timestamp: string;
8059
8059
  truncated?: boolean | undefined;
8060
8060
  } | undefined;
@@ -8083,9 +8083,9 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
8083
8083
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
8084
8084
  subagentLatestMessage?: {
8085
8085
  text: string;
8086
+ phase: "commentary" | "final_answer";
8086
8087
  turnId: string;
8087
8088
  itemId: string;
8088
- phase: "commentary" | "final_answer";
8089
8089
  timestamp: string;
8090
8090
  truncated?: boolean | undefined;
8091
8091
  } | undefined;
@@ -8117,9 +8117,9 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
8117
8117
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
8118
8118
  subagentLatestMessage?: {
8119
8119
  text: string;
8120
+ phase: "commentary" | "final_answer";
8120
8121
  turnId: string;
8121
8122
  itemId: string;
8122
- phase: "commentary" | "final_answer";
8123
8123
  timestamp: string;
8124
8124
  truncated?: boolean | undefined;
8125
8125
  } | undefined;
@@ -8163,9 +8163,9 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
8163
8163
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
8164
8164
  subagentLatestMessage?: {
8165
8165
  text: string;
8166
+ phase: "commentary" | "final_answer";
8166
8167
  turnId: string;
8167
8168
  itemId: string;
8168
- phase: "commentary" | "final_answer";
8169
8169
  timestamp: string;
8170
8170
  truncated?: boolean | undefined;
8171
8171
  } | undefined;
@@ -9482,16 +9482,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
9482
9482
  truncated: z.ZodOptional<z.ZodBoolean>;
9483
9483
  }, "strip", z.ZodTypeAny, {
9484
9484
  text: string;
9485
+ phase: "commentary" | "final_answer";
9485
9486
  turnId: string;
9486
9487
  itemId: string;
9487
- phase: "commentary" | "final_answer";
9488
9488
  timestamp: string;
9489
9489
  truncated?: boolean | undefined;
9490
9490
  }, {
9491
9491
  text: string;
9492
+ phase: "commentary" | "final_answer";
9492
9493
  turnId: string;
9493
9494
  itemId: string;
9494
- phase: "commentary" | "final_answer";
9495
9495
  timestamp: string;
9496
9496
  truncated?: boolean | undefined;
9497
9497
  }>>;
@@ -9556,9 +9556,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
9556
9556
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
9557
9557
  subagentLatestMessage?: {
9558
9558
  text: string;
9559
+ phase: "commentary" | "final_answer";
9559
9560
  turnId: string;
9560
9561
  itemId: string;
9561
- phase: "commentary" | "final_answer";
9562
9562
  timestamp: string;
9563
9563
  truncated?: boolean | undefined;
9564
9564
  } | undefined;
@@ -9587,9 +9587,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
9587
9587
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
9588
9588
  subagentLatestMessage?: {
9589
9589
  text: string;
9590
+ phase: "commentary" | "final_answer";
9590
9591
  turnId: string;
9591
9592
  itemId: string;
9592
- phase: "commentary" | "final_answer";
9593
9593
  timestamp: string;
9594
9594
  truncated?: boolean | undefined;
9595
9595
  } | undefined;
@@ -9621,9 +9621,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
9621
9621
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
9622
9622
  subagentLatestMessage?: {
9623
9623
  text: string;
9624
+ phase: "commentary" | "final_answer";
9624
9625
  turnId: string;
9625
9626
  itemId: string;
9626
- phase: "commentary" | "final_answer";
9627
9627
  timestamp: string;
9628
9628
  truncated?: boolean | undefined;
9629
9629
  } | undefined;
@@ -9667,9 +9667,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
9667
9667
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
9668
9668
  subagentLatestMessage?: {
9669
9669
  text: string;
9670
+ phase: "commentary" | "final_answer";
9670
9671
  turnId: string;
9671
9672
  itemId: string;
9672
- phase: "commentary" | "final_answer";
9673
9673
  timestamp: string;
9674
9674
  truncated?: boolean | undefined;
9675
9675
  } | undefined;
@@ -10612,9 +10612,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
10612
10612
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
10613
10613
  subagentLatestMessage?: {
10614
10614
  text: string;
10615
+ phase: "commentary" | "final_answer";
10615
10616
  turnId: string;
10616
10617
  itemId: string;
10617
- phase: "commentary" | "final_answer";
10618
10618
  timestamp: string;
10619
10619
  truncated?: boolean | undefined;
10620
10620
  } | undefined;
@@ -10982,9 +10982,9 @@ export declare const conversationTurnSchema: z.ZodObject<{
10982
10982
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
10983
10983
  subagentLatestMessage?: {
10984
10984
  text: string;
10985
+ phase: "commentary" | "final_answer";
10985
10986
  turnId: string;
10986
10987
  itemId: string;
10987
- phase: "commentary" | "final_answer";
10988
10988
  timestamp: string;
10989
10989
  truncated?: boolean | undefined;
10990
10990
  } | undefined;
@@ -13224,16 +13224,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13224
13224
  truncated: z.ZodOptional<z.ZodBoolean>;
13225
13225
  }, "strip", z.ZodTypeAny, {
13226
13226
  text: string;
13227
+ phase: "commentary" | "final_answer";
13227
13228
  turnId: string;
13228
13229
  itemId: string;
13229
- phase: "commentary" | "final_answer";
13230
13230
  timestamp: string;
13231
13231
  truncated?: boolean | undefined;
13232
13232
  }, {
13233
13233
  text: string;
13234
+ phase: "commentary" | "final_answer";
13234
13235
  turnId: string;
13235
13236
  itemId: string;
13236
- phase: "commentary" | "final_answer";
13237
13237
  timestamp: string;
13238
13238
  truncated?: boolean | undefined;
13239
13239
  }>>;
@@ -13298,9 +13298,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13298
13298
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
13299
13299
  subagentLatestMessage?: {
13300
13300
  text: string;
13301
+ phase: "commentary" | "final_answer";
13301
13302
  turnId: string;
13302
13303
  itemId: string;
13303
- phase: "commentary" | "final_answer";
13304
13304
  timestamp: string;
13305
13305
  truncated?: boolean | undefined;
13306
13306
  } | undefined;
@@ -13329,9 +13329,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13329
13329
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
13330
13330
  subagentLatestMessage?: {
13331
13331
  text: string;
13332
+ phase: "commentary" | "final_answer";
13332
13333
  turnId: string;
13333
13334
  itemId: string;
13334
- phase: "commentary" | "final_answer";
13335
13335
  timestamp: string;
13336
13336
  truncated?: boolean | undefined;
13337
13337
  } | undefined;
@@ -13363,9 +13363,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13363
13363
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
13364
13364
  subagentLatestMessage?: {
13365
13365
  text: string;
13366
+ phase: "commentary" | "final_answer";
13366
13367
  turnId: string;
13367
13368
  itemId: string;
13368
- phase: "commentary" | "final_answer";
13369
13369
  timestamp: string;
13370
13370
  truncated?: boolean | undefined;
13371
13371
  } | undefined;
@@ -13409,9 +13409,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
13409
13409
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
13410
13410
  subagentLatestMessage?: {
13411
13411
  text: string;
13412
+ phase: "commentary" | "final_answer";
13412
13413
  turnId: string;
13413
13414
  itemId: string;
13414
- phase: "commentary" | "final_answer";
13415
13415
  timestamp: string;
13416
13416
  truncated?: boolean | undefined;
13417
13417
  } | undefined;
@@ -14354,9 +14354,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14354
14354
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
14355
14355
  subagentLatestMessage?: {
14356
14356
  text: string;
14357
+ phase: "commentary" | "final_answer";
14357
14358
  turnId: string;
14358
14359
  itemId: string;
14359
- phase: "commentary" | "final_answer";
14360
14360
  timestamp: string;
14361
14361
  truncated?: boolean | undefined;
14362
14362
  } | undefined;
@@ -14724,9 +14724,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
14724
14724
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
14725
14725
  subagentLatestMessage?: {
14726
14726
  text: string;
14727
+ phase: "commentary" | "final_answer";
14727
14728
  turnId: string;
14728
14729
  itemId: string;
14729
- phase: "commentary" | "final_answer";
14730
14730
  timestamp: string;
14731
14731
  truncated?: boolean | undefined;
14732
14732
  } | undefined;
@@ -15320,9 +15320,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15320
15320
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
15321
15321
  subagentLatestMessage?: {
15322
15322
  text: string;
15323
+ phase: "commentary" | "final_answer";
15323
15324
  turnId: string;
15324
15325
  itemId: string;
15325
- phase: "commentary" | "final_answer";
15326
15326
  timestamp: string;
15327
15327
  truncated?: boolean | undefined;
15328
15328
  } | undefined;
@@ -15755,9 +15755,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
15755
15755
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
15756
15756
  subagentLatestMessage?: {
15757
15757
  text: string;
15758
+ phase: "commentary" | "final_answer";
15758
15759
  turnId: string;
15759
15760
  itemId: string;
15760
- phase: "commentary" | "final_answer";
15761
15761
  timestamp: string;
15762
15762
  truncated?: boolean | undefined;
15763
15763
  } | undefined;
@@ -16190,9 +16190,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
16190
16190
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
16191
16191
  subagentLatestMessage?: {
16192
16192
  text: string;
16193
+ phase: "commentary" | "final_answer";
16193
16194
  turnId: string;
16194
16195
  itemId: string;
16195
- phase: "commentary" | "final_answer";
16196
16196
  timestamp: string;
16197
16197
  truncated?: boolean | undefined;
16198
16198
  } | undefined;
@@ -16625,9 +16625,9 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
16625
16625
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
16626
16626
  subagentLatestMessage?: {
16627
16627
  text: string;
16628
+ phase: "commentary" | "final_answer";
16628
16629
  turnId: string;
16629
16630
  itemId: string;
16630
- phase: "commentary" | "final_answer";
16631
16631
  timestamp: string;
16632
16632
  truncated?: boolean | undefined;
16633
16633
  } | undefined;
@@ -17673,16 +17673,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17673
17673
  truncated: z.ZodOptional<z.ZodBoolean>;
17674
17674
  }, "strip", z.ZodTypeAny, {
17675
17675
  text: string;
17676
+ phase: "commentary" | "final_answer";
17676
17677
  turnId: string;
17677
17678
  itemId: string;
17678
- phase: "commentary" | "final_answer";
17679
17679
  timestamp: string;
17680
17680
  truncated?: boolean | undefined;
17681
17681
  }, {
17682
17682
  text: string;
17683
+ phase: "commentary" | "final_answer";
17683
17684
  turnId: string;
17684
17685
  itemId: string;
17685
- phase: "commentary" | "final_answer";
17686
17686
  timestamp: string;
17687
17687
  truncated?: boolean | undefined;
17688
17688
  }>>;
@@ -17747,9 +17747,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17747
17747
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
17748
17748
  subagentLatestMessage?: {
17749
17749
  text: string;
17750
+ phase: "commentary" | "final_answer";
17750
17751
  turnId: string;
17751
17752
  itemId: string;
17752
- phase: "commentary" | "final_answer";
17753
17753
  timestamp: string;
17754
17754
  truncated?: boolean | undefined;
17755
17755
  } | undefined;
@@ -17778,9 +17778,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17778
17778
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
17779
17779
  subagentLatestMessage?: {
17780
17780
  text: string;
17781
+ phase: "commentary" | "final_answer";
17781
17782
  turnId: string;
17782
17783
  itemId: string;
17783
- phase: "commentary" | "final_answer";
17784
17784
  timestamp: string;
17785
17785
  truncated?: boolean | undefined;
17786
17786
  } | undefined;
@@ -17812,9 +17812,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17812
17812
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
17813
17813
  subagentLatestMessage?: {
17814
17814
  text: string;
17815
+ phase: "commentary" | "final_answer";
17815
17816
  turnId: string;
17816
17817
  itemId: string;
17817
- phase: "commentary" | "final_answer";
17818
17818
  timestamp: string;
17819
17819
  truncated?: boolean | undefined;
17820
17820
  } | undefined;
@@ -17858,9 +17858,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
17858
17858
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
17859
17859
  subagentLatestMessage?: {
17860
17860
  text: string;
17861
+ phase: "commentary" | "final_answer";
17861
17862
  turnId: string;
17862
17863
  itemId: string;
17863
- phase: "commentary" | "final_answer";
17864
17864
  timestamp: string;
17865
17865
  truncated?: boolean | undefined;
17866
17866
  } | undefined;
@@ -18803,9 +18803,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
18803
18803
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
18804
18804
  subagentLatestMessage?: {
18805
18805
  text: string;
18806
+ phase: "commentary" | "final_answer";
18806
18807
  turnId: string;
18807
18808
  itemId: string;
18808
- phase: "commentary" | "final_answer";
18809
18809
  timestamp: string;
18810
18810
  truncated?: boolean | undefined;
18811
18811
  } | undefined;
@@ -19173,9 +19173,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
19173
19173
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
19174
19174
  subagentLatestMessage?: {
19175
19175
  text: string;
19176
+ phase: "commentary" | "final_answer";
19176
19177
  turnId: string;
19177
19178
  itemId: string;
19178
- phase: "commentary" | "final_answer";
19179
19179
  timestamp: string;
19180
19180
  truncated?: boolean | undefined;
19181
19181
  } | undefined;
@@ -19546,9 +19546,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
19546
19546
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
19547
19547
  subagentLatestMessage?: {
19548
19548
  text: string;
19549
+ phase: "commentary" | "final_answer";
19549
19550
  turnId: string;
19550
19551
  itemId: string;
19551
- phase: "commentary" | "final_answer";
19552
19552
  timestamp: string;
19553
19553
  truncated?: boolean | undefined;
19554
19554
  } | undefined;
@@ -19919,9 +19919,9 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
19919
19919
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
19920
19920
  subagentLatestMessage?: {
19921
19921
  text: string;
19922
+ phase: "commentary" | "final_answer";
19922
19923
  turnId: string;
19923
19924
  itemId: string;
19924
- phase: "commentary" | "final_answer";
19925
19925
  timestamp: string;
19926
19926
  truncated?: boolean | undefined;
19927
19927
  } | undefined;
@@ -21408,16 +21408,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21408
21408
  truncated: z.ZodOptional<z.ZodBoolean>;
21409
21409
  }, "strip", z.ZodTypeAny, {
21410
21410
  text: string;
21411
+ phase: "commentary" | "final_answer";
21411
21412
  turnId: string;
21412
21413
  itemId: string;
21413
- phase: "commentary" | "final_answer";
21414
21414
  timestamp: string;
21415
21415
  truncated?: boolean | undefined;
21416
21416
  }, {
21417
21417
  text: string;
21418
+ phase: "commentary" | "final_answer";
21418
21419
  turnId: string;
21419
21420
  itemId: string;
21420
- phase: "commentary" | "final_answer";
21421
21421
  timestamp: string;
21422
21422
  truncated?: boolean | undefined;
21423
21423
  }>>;
@@ -21482,9 +21482,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21482
21482
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
21483
21483
  subagentLatestMessage?: {
21484
21484
  text: string;
21485
+ phase: "commentary" | "final_answer";
21485
21486
  turnId: string;
21486
21487
  itemId: string;
21487
- phase: "commentary" | "final_answer";
21488
21488
  timestamp: string;
21489
21489
  truncated?: boolean | undefined;
21490
21490
  } | undefined;
@@ -21513,9 +21513,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21513
21513
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
21514
21514
  subagentLatestMessage?: {
21515
21515
  text: string;
21516
+ phase: "commentary" | "final_answer";
21516
21517
  turnId: string;
21517
21518
  itemId: string;
21518
- phase: "commentary" | "final_answer";
21519
21519
  timestamp: string;
21520
21520
  truncated?: boolean | undefined;
21521
21521
  } | undefined;
@@ -21547,9 +21547,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21547
21547
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
21548
21548
  subagentLatestMessage?: {
21549
21549
  text: string;
21550
+ phase: "commentary" | "final_answer";
21550
21551
  turnId: string;
21551
21552
  itemId: string;
21552
- phase: "commentary" | "final_answer";
21553
21553
  timestamp: string;
21554
21554
  truncated?: boolean | undefined;
21555
21555
  } | undefined;
@@ -21593,9 +21593,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
21593
21593
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
21594
21594
  subagentLatestMessage?: {
21595
21595
  text: string;
21596
+ phase: "commentary" | "final_answer";
21596
21597
  turnId: string;
21597
21598
  itemId: string;
21598
- phase: "commentary" | "final_answer";
21599
21599
  timestamp: string;
21600
21600
  truncated?: boolean | undefined;
21601
21601
  } | undefined;
@@ -22536,9 +22536,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
22536
22536
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
22537
22537
  subagentLatestMessage?: {
22538
22538
  text: string;
22539
+ phase: "commentary" | "final_answer";
22539
22540
  turnId: string;
22540
22541
  itemId: string;
22541
- phase: "commentary" | "final_answer";
22542
22542
  timestamp: string;
22543
22543
  truncated?: boolean | undefined;
22544
22544
  } | undefined;
@@ -22904,9 +22904,9 @@ export declare const conversationSegmentSchema: z.ZodObject<{
22904
22904
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
22905
22905
  subagentLatestMessage?: {
22906
22906
  text: string;
22907
+ phase: "commentary" | "final_answer";
22907
22908
  turnId: string;
22908
22909
  itemId: string;
22909
- phase: "commentary" | "final_answer";
22910
22910
  timestamp: string;
22911
22911
  truncated?: boolean | undefined;
22912
22912
  } | undefined;
@@ -23651,16 +23651,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23651
23651
  truncated: z.ZodOptional<z.ZodBoolean>;
23652
23652
  }, "strip", z.ZodTypeAny, {
23653
23653
  text: string;
23654
+ phase: "commentary" | "final_answer";
23654
23655
  turnId: string;
23655
23656
  itemId: string;
23656
- phase: "commentary" | "final_answer";
23657
23657
  timestamp: string;
23658
23658
  truncated?: boolean | undefined;
23659
23659
  }, {
23660
23660
  text: string;
23661
+ phase: "commentary" | "final_answer";
23661
23662
  turnId: string;
23662
23663
  itemId: string;
23663
- phase: "commentary" | "final_answer";
23664
23664
  timestamp: string;
23665
23665
  truncated?: boolean | undefined;
23666
23666
  }>>;
@@ -23725,9 +23725,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23725
23725
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
23726
23726
  subagentLatestMessage?: {
23727
23727
  text: string;
23728
+ phase: "commentary" | "final_answer";
23728
23729
  turnId: string;
23729
23730
  itemId: string;
23730
- phase: "commentary" | "final_answer";
23731
23731
  timestamp: string;
23732
23732
  truncated?: boolean | undefined;
23733
23733
  } | undefined;
@@ -23756,9 +23756,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23756
23756
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
23757
23757
  subagentLatestMessage?: {
23758
23758
  text: string;
23759
+ phase: "commentary" | "final_answer";
23759
23760
  turnId: string;
23760
23761
  itemId: string;
23761
- phase: "commentary" | "final_answer";
23762
23762
  timestamp: string;
23763
23763
  truncated?: boolean | undefined;
23764
23764
  } | undefined;
@@ -23790,9 +23790,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23790
23790
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
23791
23791
  subagentLatestMessage?: {
23792
23792
  text: string;
23793
+ phase: "commentary" | "final_answer";
23793
23794
  turnId: string;
23794
23795
  itemId: string;
23795
- phase: "commentary" | "final_answer";
23796
23796
  timestamp: string;
23797
23797
  truncated?: boolean | undefined;
23798
23798
  } | undefined;
@@ -23836,9 +23836,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
23836
23836
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
23837
23837
  subagentLatestMessage?: {
23838
23838
  text: string;
23839
+ phase: "commentary" | "final_answer";
23839
23840
  turnId: string;
23840
23841
  itemId: string;
23841
- phase: "commentary" | "final_answer";
23842
23842
  timestamp: string;
23843
23843
  truncated?: boolean | undefined;
23844
23844
  } | undefined;
@@ -24779,9 +24779,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
24779
24779
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
24780
24780
  subagentLatestMessage?: {
24781
24781
  text: string;
24782
+ phase: "commentary" | "final_answer";
24782
24783
  turnId: string;
24783
24784
  itemId: string;
24784
- phase: "commentary" | "final_answer";
24785
24785
  timestamp: string;
24786
24786
  truncated?: boolean | undefined;
24787
24787
  } | undefined;
@@ -25147,9 +25147,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
25147
25147
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
25148
25148
  subagentLatestMessage?: {
25149
25149
  text: string;
25150
+ phase: "commentary" | "final_answer";
25150
25151
  turnId: string;
25151
25152
  itemId: string;
25152
- phase: "commentary" | "final_answer";
25153
25153
  timestamp: string;
25154
25154
  truncated?: boolean | undefined;
25155
25155
  } | undefined;
@@ -25527,9 +25527,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
25527
25527
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
25528
25528
  subagentLatestMessage?: {
25529
25529
  text: string;
25530
+ phase: "commentary" | "final_answer";
25530
25531
  turnId: string;
25531
25532
  itemId: string;
25532
- phase: "commentary" | "final_answer";
25533
25533
  timestamp: string;
25534
25534
  truncated?: boolean | undefined;
25535
25535
  } | undefined;
@@ -25904,9 +25904,9 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
25904
25904
  subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
25905
25905
  subagentLatestMessage?: {
25906
25906
  text: string;
25907
+ phase: "commentary" | "final_answer";
25907
25908
  turnId: string;
25908
25909
  itemId: string;
25909
- phase: "commentary" | "final_answer";
25910
25910
  timestamp: string;
25911
25911
  truncated?: boolean | undefined;
25912
25912
  } | undefined;
@@ -204,12 +204,15 @@ export type TerminalDirectNodeCommand = z.infer<typeof terminalDirectNodeCommand
204
204
  export declare const terminalDirectNodeEventSchema: z.ZodObject<{
205
205
  type: z.ZodLiteral<"terminal.direct.ready">;
206
206
  directSessionId: z.ZodString;
207
+ phase: z.ZodOptional<z.ZodEnum<["PREPARED", "ATTACHED"]>>;
207
208
  }, "strict", z.ZodTypeAny, {
208
209
  type: "terminal.direct.ready";
209
210
  directSessionId: string;
211
+ phase?: "PREPARED" | "ATTACHED" | undefined;
210
212
  }, {
211
213
  type: "terminal.direct.ready";
212
214
  directSessionId: string;
215
+ phase?: "PREPARED" | "ATTACHED" | undefined;
213
216
  }>;
214
217
  export declare const terminalDirectOpenFrameSchema: z.ZodObject<{
215
218
  type: z.ZodLiteral<"OPEN">;
@@ -86,7 +86,8 @@ export const terminalDirectNodeCommandSchema = z.discriminatedUnion('type', [
86
86
  export const terminalDirectNodeEventSchema = z
87
87
  .object({
88
88
  type: z.literal('terminal.direct.ready'),
89
- directSessionId: id
89
+ directSessionId: id,
90
+ phase: z.enum(['PREPARED', 'ATTACHED']).optional()
90
91
  })
91
92
  .strict();
92
93
  export const terminalDirectOpenFrameSchema = z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",