@myagentroam/protocol 0.9.64 → 0.9.66

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/index.d.ts CHANGED
@@ -14,7 +14,7 @@ export type HealthStatus = z.infer<typeof healthStatusSchema>;
14
14
  /** The only wire protocol version understood by this build. */
15
15
  export declare const NODE_PROTOCOL_VERSION = 2;
16
16
  export declare const WORKBENCH_PROTOCOL_VERSION = 1;
17
- export declare const nodePlatformSchema: z.ZodEnum<["windows", "linux"]>;
17
+ export declare const nodePlatformSchema: z.ZodEnum<["windows", "linux", "macos"]>;
18
18
  export declare const runnerAvailabilitySchema: z.ZodObject<{
19
19
  available: z.ZodBoolean;
20
20
  version: z.ZodOptional<z.ZodString>;
@@ -314,7 +314,7 @@ export declare const nodeUpgradeStatusSchema: z.ZodObject<{
314
314
  }>;
315
315
  export type NodeUpgradeStatus = z.infer<typeof nodeUpgradeStatusSchema>;
316
316
  export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
317
- platform: z.ZodOptional<z.ZodOptional<z.ZodEnum<["windows", "linux"]>>>;
317
+ platform: z.ZodOptional<z.ZodOptional<z.ZodEnum<["windows", "linux", "macos"]>>>;
318
318
  architecture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
319
319
  nodeAppVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
320
320
  nodeVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -400,7 +400,7 @@ export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
400
400
  activeRunCount?: number | undefined;
401
401
  }>>>;
402
402
  }, "strict", z.ZodTypeAny, {
403
- platform?: "windows" | "linux" | undefined;
403
+ platform?: "windows" | "linux" | "macos" | undefined;
404
404
  architecture?: string | undefined;
405
405
  nodeAppVersion?: string | undefined;
406
406
  nodeVersion?: string | undefined;
@@ -438,7 +438,7 @@ export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
438
438
  activeRunCount?: number | undefined;
439
439
  } | undefined;
440
440
  }, {
441
- platform?: "windows" | "linux" | undefined;
441
+ platform?: "windows" | "linux" | "macos" | undefined;
442
442
  architecture?: string | undefined;
443
443
  nodeAppVersion?: string | undefined;
444
444
  nodeVersion?: string | undefined;
@@ -477,12 +477,12 @@ export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
477
477
  } | undefined;
478
478
  }>>;
479
479
  export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
480
- platform: z.ZodEnum<["windows", "linux"]>;
480
+ platform: z.ZodEnum<["windows", "linux", "macos"]>;
481
481
  architecture: z.ZodString;
482
482
  nodeAppVersion: z.ZodOptional<z.ZodString>;
483
483
  nodeVersion: z.ZodString;
484
484
  metadata: z.ZodOptional<z.ZodObject<{
485
- platform: z.ZodOptional<z.ZodOptional<z.ZodEnum<["windows", "linux"]>>>;
485
+ platform: z.ZodOptional<z.ZodOptional<z.ZodEnum<["windows", "linux", "macos"]>>>;
486
486
  architecture: z.ZodOptional<z.ZodOptional<z.ZodString>>;
487
487
  nodeAppVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
488
488
  nodeVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -568,7 +568,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
568
568
  activeRunCount?: number | undefined;
569
569
  }>>>;
570
570
  }, "strict", z.ZodTypeAny, {
571
- platform?: "windows" | "linux" | undefined;
571
+ platform?: "windows" | "linux" | "macos" | undefined;
572
572
  architecture?: string | undefined;
573
573
  nodeAppVersion?: string | undefined;
574
574
  nodeVersion?: string | undefined;
@@ -606,7 +606,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
606
606
  activeRunCount?: number | undefined;
607
607
  } | undefined;
608
608
  }, {
609
- platform?: "windows" | "linux" | undefined;
609
+ platform?: "windows" | "linux" | "macos" | undefined;
610
610
  architecture?: string | undefined;
611
611
  nodeAppVersion?: string | undefined;
612
612
  nodeVersion?: string | undefined;
@@ -744,7 +744,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
744
744
  httpVersions: ("2" | "1.1")[];
745
745
  }>>;
746
746
  }, "strip", z.ZodTypeAny, {
747
- platform: "windows" | "linux";
747
+ platform: "windows" | "linux" | "macos";
748
748
  architecture: string;
749
749
  nodeVersion: string;
750
750
  codex: {
@@ -756,7 +756,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
756
756
  version?: string | undefined;
757
757
  };
758
758
  metadata?: {
759
- platform?: "windows" | "linux" | undefined;
759
+ platform?: "windows" | "linux" | "macos" | undefined;
760
760
  architecture?: string | undefined;
761
761
  nodeAppVersion?: string | undefined;
762
762
  nodeVersion?: string | undefined;
@@ -819,7 +819,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
819
819
  httpVersions: ("2" | "1.1")[];
820
820
  } | undefined;
821
821
  }, {
822
- platform: "windows" | "linux";
822
+ platform: "windows" | "linux" | "macos";
823
823
  architecture: string;
824
824
  nodeVersion: string;
825
825
  codex: {
@@ -831,7 +831,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
831
831
  version?: string | undefined;
832
832
  };
833
833
  metadata?: {
834
- platform?: "windows" | "linux" | undefined;
834
+ platform?: "windows" | "linux" | "macos" | undefined;
835
835
  architecture?: string | undefined;
836
836
  nodeAppVersion?: string | undefined;
837
837
  nodeVersion?: string | undefined;
@@ -894,7 +894,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
894
894
  httpVersions: ("2" | "1.1")[];
895
895
  } | undefined;
896
896
  }>, {
897
- platform: "windows" | "linux";
897
+ platform: "windows" | "linux" | "macos";
898
898
  architecture: string;
899
899
  nodeVersion: string;
900
900
  codex: {
@@ -906,7 +906,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
906
906
  version?: string | undefined;
907
907
  };
908
908
  metadata?: {
909
- platform?: "windows" | "linux" | undefined;
909
+ platform?: "windows" | "linux" | "macos" | undefined;
910
910
  architecture?: string | undefined;
911
911
  nodeAppVersion?: string | undefined;
912
912
  nodeVersion?: string | undefined;
@@ -969,7 +969,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
969
969
  httpVersions: ("2" | "1.1")[];
970
970
  } | undefined;
971
971
  }, {
972
- platform: "windows" | "linux";
972
+ platform: "windows" | "linux" | "macos";
973
973
  architecture: string;
974
974
  nodeVersion: string;
975
975
  codex: {
@@ -981,7 +981,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
981
981
  version?: string | undefined;
982
982
  };
983
983
  metadata?: {
984
- platform?: "windows" | "linux" | undefined;
984
+ platform?: "windows" | "linux" | "macos" | undefined;
985
985
  architecture?: string | undefined;
986
986
  nodeAppVersion?: string | undefined;
987
987
  nodeVersion?: string | undefined;
@@ -5246,7 +5246,7 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
5246
5246
  manifestVersion: z.ZodLiteral<1>;
5247
5247
  revision: z.ZodNumber;
5248
5248
  observedAt: z.ZodNumber;
5249
- platform: z.ZodEnum<["windows", "linux"]>;
5249
+ platform: z.ZodEnum<["windows", "linux", "macos"]>;
5250
5250
  architecture: z.ZodString;
5251
5251
  conversation: z.ZodEffects<z.ZodObject<{
5252
5252
  available: z.ZodBoolean;
@@ -5551,7 +5551,7 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
5551
5551
  git: {
5552
5552
  [x: string]: any;
5553
5553
  };
5554
- platform: "windows" | "linux";
5554
+ platform: "windows" | "linux" | "macos";
5555
5555
  architecture: string;
5556
5556
  revision: number;
5557
5557
  conversation: {
@@ -5597,7 +5597,7 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
5597
5597
  git: {
5598
5598
  [x: string]: any;
5599
5599
  };
5600
- platform: "windows" | "linux";
5600
+ platform: "windows" | "linux" | "macos";
5601
5601
  architecture: string;
5602
5602
  revision: number;
5603
5603
  conversation: {
@@ -15110,30 +15110,35 @@ export declare const hostedConversationMessageInputSchema: z.ZodEffects<z.ZodObj
15110
15110
  prompt: z.ZodString;
15111
15111
  attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
15112
15112
  modelId: z.ZodOptional<z.ZodString>;
15113
+ deliveryIntent: z.ZodOptional<z.ZodLiteral<"REPLACE_CURRENT">>;
15113
15114
  }, "strict", z.ZodTypeAny, {
15114
15115
  clientMessageId: string;
15115
15116
  conversationId: string;
15116
15117
  prompt: string;
15117
15118
  attachmentIds: string[];
15118
15119
  modelId?: string | undefined;
15120
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15119
15121
  }, {
15120
15122
  clientMessageId: string;
15121
15123
  conversationId: string;
15122
15124
  prompt: string;
15123
15125
  modelId?: string | undefined;
15124
15126
  attachmentIds?: string[] | undefined;
15127
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15125
15128
  }>, {
15126
15129
  clientMessageId: string;
15127
15130
  conversationId: string;
15128
15131
  prompt: string;
15129
15132
  attachmentIds: string[];
15130
15133
  modelId?: string | undefined;
15134
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15131
15135
  }, {
15132
15136
  clientMessageId: string;
15133
15137
  conversationId: string;
15134
15138
  prompt: string;
15135
15139
  modelId?: string | undefined;
15136
15140
  attachmentIds?: string[] | undefined;
15141
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15137
15142
  }>;
15138
15143
  export type HostedConversationMessageInput = z.infer<typeof hostedConversationMessageInputSchema>;
15139
15144
  export declare const hostedConversationConfigUpdateInputSchema: z.ZodObject<{
@@ -15539,7 +15544,7 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
15539
15544
  eof: boolean;
15540
15545
  }>;
15541
15546
  export type HostedConversationFileReadResult = z.infer<typeof hostedConversationFileReadResultSchema>;
15542
- export declare const hostedConversationUploadPreflightInputSchema: z.ZodEffects<z.ZodObject<{
15547
+ export declare const hostedConversationUploadPreflightInputSchema: z.ZodObject<{
15543
15548
  conversationId: z.ZodString;
15544
15549
  } & {
15545
15550
  files: z.ZodArray<z.ZodObject<{
@@ -15569,20 +15574,6 @@ export declare const hostedConversationUploadPreflightInputSchema: z.ZodEffects<
15569
15574
  mimeType: string;
15570
15575
  size: number;
15571
15576
  }[];
15572
- }>, {
15573
- conversationId: string;
15574
- files: {
15575
- name: string;
15576
- mimeType: string;
15577
- size: number;
15578
- }[];
15579
- }, {
15580
- conversationId: string;
15581
- files: {
15582
- name: string;
15583
- mimeType: string;
15584
- size: number;
15585
- }[];
15586
15577
  }>;
15587
15578
  export type HostedConversationUploadPreflightInput = z.infer<typeof hostedConversationUploadPreflightInputSchema>;
15588
15579
  export declare const hostedConversationUploadPreflightResultSchema: z.ZodObject<{
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ export const healthStatusSchema = z.object({
9
9
  /** The only wire protocol version understood by this build. */
10
10
  export const NODE_PROTOCOL_VERSION = 2;
11
11
  export const WORKBENCH_PROTOCOL_VERSION = 1;
12
- export const nodePlatformSchema = z.enum(['windows', 'linux']);
12
+ export const nodePlatformSchema = z.enum(['windows', 'linux', 'macos']);
13
13
  export const runnerAvailabilitySchema = z.object({
14
14
  available: z.boolean(),
15
15
  version: z.string().optional()
@@ -1213,7 +1213,7 @@ export const nodeWorkbenchCapabilitiesSchema = z.object({
1213
1213
  manifestVersion: z.literal(1),
1214
1214
  revision: z.number().int().nonnegative(),
1215
1215
  observedAt: z.number().int().nonnegative(),
1216
- platform: z.enum(['windows', 'linux']),
1216
+ platform: nodePlatformSchema,
1217
1217
  architecture: z.string().min(1).max(128),
1218
1218
  conversation: capabilitySchemaWith({
1219
1219
  itemVersions: z.array(z.literal(1)),
@@ -1966,7 +1966,8 @@ export const hostedConversationMessageInputSchema = z
1966
1966
  clientMessageId: protocolIdSchema,
1967
1967
  prompt: z.string().max(100_000),
1968
1968
  attachmentIds: z.array(protocolIdSchema).max(32).default([]),
1969
- modelId: protocolIdSchema.optional()
1969
+ modelId: protocolIdSchema.optional(),
1970
+ deliveryIntent: z.literal('REPLACE_CURRENT').optional()
1970
1971
  })
1971
1972
  .strict()
1972
1973
  .superRefine((input, context) => {
@@ -2083,12 +2084,7 @@ export const hostedConversationUploadPreflightInputSchema = hostedConversationId
2083
2084
  .extend({
2084
2085
  files: z.array(hostedConversationUploadFileSchema).min(1).max(32)
2085
2086
  })
2086
- .strict()
2087
- .superRefine((input, context) => {
2088
- const normalized = input.files.map((file) => file.name.normalize('NFKC').toLocaleLowerCase());
2089
- if (new Set(normalized).size !== normalized.length)
2090
- context.addIssue({ code: 'custom', path: ['files'], message: 'upload names must be unique' });
2091
- });
2087
+ .strict();
2092
2088
  export const hostedConversationUploadPreflightResultSchema = z
2093
2089
  .object({
2094
2090
  files: z.array(z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.64",
3
+ "version": "0.9.66",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",