@myagentroam/protocol 0.13.23 → 0.13.25

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
@@ -56,6 +56,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
56
56
  contextGcControl: z.ZodOptional<z.ZodBoolean>;
57
57
  modelSocks5Proxy: z.ZodOptional<z.ZodBoolean>;
58
58
  unifiedCompactControl: z.ZodOptional<z.ZodBoolean>;
59
+ smartCompactControl: z.ZodOptional<z.ZodBoolean>;
59
60
  conversationModels: z.ZodOptional<z.ZodBoolean>;
60
61
  resourceInput: z.ZodOptional<z.ZodBoolean>;
61
62
  httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
@@ -70,6 +71,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
70
71
  contextGcControl?: boolean | undefined;
71
72
  modelSocks5Proxy?: boolean | undefined;
72
73
  unifiedCompactControl?: boolean | undefined;
74
+ smartCompactControl?: boolean | undefined;
73
75
  conversationModels?: boolean | undefined;
74
76
  resourceInput?: boolean | undefined;
75
77
  }, {
@@ -83,6 +85,7 @@ export declare const marAgentRuntimeCredentialCapabilitySchema: z.ZodObject<{
83
85
  contextGcControl?: boolean | undefined;
84
86
  modelSocks5Proxy?: boolean | undefined;
85
87
  unifiedCompactControl?: boolean | undefined;
88
+ smartCompactControl?: boolean | undefined;
86
89
  conversationModels?: boolean | undefined;
87
90
  resourceInput?: boolean | undefined;
88
91
  }>;
@@ -1078,6 +1081,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1078
1081
  contextGcControl: z.ZodOptional<z.ZodBoolean>;
1079
1082
  modelSocks5Proxy: z.ZodOptional<z.ZodBoolean>;
1080
1083
  unifiedCompactControl: z.ZodOptional<z.ZodBoolean>;
1084
+ smartCompactControl: z.ZodOptional<z.ZodBoolean>;
1081
1085
  conversationModels: z.ZodOptional<z.ZodBoolean>;
1082
1086
  resourceInput: z.ZodOptional<z.ZodBoolean>;
1083
1087
  httpVersions: z.ZodEffects<z.ZodArray<z.ZodEnum<["1.1", "2"]>, "many">, ("2" | "1.1")[], ("2" | "1.1")[]>;
@@ -1092,6 +1096,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1092
1096
  contextGcControl?: boolean | undefined;
1093
1097
  modelSocks5Proxy?: boolean | undefined;
1094
1098
  unifiedCompactControl?: boolean | undefined;
1099
+ smartCompactControl?: boolean | undefined;
1095
1100
  conversationModels?: boolean | undefined;
1096
1101
  resourceInput?: boolean | undefined;
1097
1102
  }, {
@@ -1105,6 +1110,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1105
1110
  contextGcControl?: boolean | undefined;
1106
1111
  modelSocks5Proxy?: boolean | undefined;
1107
1112
  unifiedCompactControl?: boolean | undefined;
1113
+ smartCompactControl?: boolean | undefined;
1108
1114
  conversationModels?: boolean | undefined;
1109
1115
  resourceInput?: boolean | undefined;
1110
1116
  }>>;
@@ -1325,6 +1331,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1325
1331
  contextGcControl?: boolean | undefined;
1326
1332
  modelSocks5Proxy?: boolean | undefined;
1327
1333
  unifiedCompactControl?: boolean | undefined;
1334
+ smartCompactControl?: boolean | undefined;
1328
1335
  conversationModels?: boolean | undefined;
1329
1336
  resourceInput?: boolean | undefined;
1330
1337
  } | undefined;
@@ -1471,6 +1478,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1471
1478
  contextGcControl?: boolean | undefined;
1472
1479
  modelSocks5Proxy?: boolean | undefined;
1473
1480
  unifiedCompactControl?: boolean | undefined;
1481
+ smartCompactControl?: boolean | undefined;
1474
1482
  conversationModels?: boolean | undefined;
1475
1483
  resourceInput?: boolean | undefined;
1476
1484
  } | undefined;
@@ -1617,6 +1625,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1617
1625
  contextGcControl?: boolean | undefined;
1618
1626
  modelSocks5Proxy?: boolean | undefined;
1619
1627
  unifiedCompactControl?: boolean | undefined;
1628
+ smartCompactControl?: boolean | undefined;
1620
1629
  conversationModels?: boolean | undefined;
1621
1630
  resourceInput?: boolean | undefined;
1622
1631
  } | undefined;
@@ -1763,6 +1772,7 @@ export declare const nodeCapabilitiesSchema: z.ZodEffects<z.ZodObject<{
1763
1772
  contextGcControl?: boolean | undefined;
1764
1773
  modelSocks5Proxy?: boolean | undefined;
1765
1774
  unifiedCompactControl?: boolean | undefined;
1775
+ smartCompactControl?: boolean | undefined;
1766
1776
  conversationModels?: boolean | undefined;
1767
1777
  resourceInput?: boolean | undefined;
1768
1778
  } | undefined;
@@ -3887,6 +3897,7 @@ export type MarAgentNodeModelSummary = Omit<MarAgentModelSummary, 'access'>;
3887
3897
  export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3888
3898
  baseUrl: z.ZodString;
3889
3899
  useResourceUrl: z.ZodDefault<z.ZodBoolean>;
3900
+ smartCompactEnabled: z.ZodOptional<z.ZodBoolean>;
3890
3901
  credential: z.ZodUnion<[z.ZodObject<{
3891
3902
  type: z.ZodLiteral<"INLINE_API_KEY">;
3892
3903
  value: z.ZodString;
@@ -4400,6 +4411,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
4400
4411
  transport: "HTTP";
4401
4412
  httpVersion: "2" | "1.1";
4402
4413
  } | undefined;
4414
+ smartCompactEnabled?: boolean | undefined;
4403
4415
  responsesToolNamespace?: string | undefined;
4404
4416
  responsesConfigurationUpdates?: boolean | undefined;
4405
4417
  }, {
@@ -4492,6 +4504,7 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
4492
4504
  httpVersion: "2" | "1.1";
4493
4505
  } | undefined;
4494
4506
  responsesPreviousResponseId?: boolean | undefined;
4507
+ smartCompactEnabled?: boolean | undefined;
4495
4508
  responsesToolNamespace?: string | undefined;
4496
4509
  responsesConfigurationUpdates?: boolean | undefined;
4497
4510
  }>, {
@@ -4506,24 +4519,29 @@ export declare const marAgentRuntimeModelConfigurationSchema: z.ZodEffects<z.Zod
4506
4519
  export type MarAgentRuntimeModelConfiguration = z.infer<typeof marAgentRuntimeModelConfigurationSchema>;
4507
4520
  export declare const marAgentCompactConfigurationSchema: z.ZodEffects<z.ZodObject<{
4508
4521
  enabled: z.ZodBoolean;
4522
+ smartCompactEnabled: z.ZodDefault<z.ZodBoolean>;
4509
4523
  modelId: z.ZodNullable<z.ZodString>;
4510
4524
  reasoningEffort: z.ZodNullable<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
4511
4525
  }, "strict", z.ZodTypeAny, {
4512
4526
  modelId: string | null;
4513
4527
  enabled: boolean;
4528
+ smartCompactEnabled: boolean;
4514
4529
  reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4515
4530
  }, {
4516
4531
  modelId: string | null;
4517
4532
  enabled: boolean;
4518
4533
  reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4534
+ smartCompactEnabled?: boolean | undefined;
4519
4535
  }>, {
4520
4536
  modelId: string | null;
4521
4537
  enabled: boolean;
4538
+ smartCompactEnabled: boolean;
4522
4539
  reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4523
4540
  }, {
4524
4541
  modelId: string | null;
4525
4542
  enabled: boolean;
4526
4543
  reasoningEffort: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | null;
4544
+ smartCompactEnabled?: boolean | undefined;
4527
4545
  }>;
4528
4546
  export type MarAgentCompactConfiguration = z.infer<typeof marAgentCompactConfigurationSchema>;
4529
4547
  export declare const promptCompletionConfigurationSchema: z.ZodEffects<z.ZodObject<{
@@ -5193,6 +5211,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
5193
5211
  model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
5194
5212
  baseUrl: z.ZodString;
5195
5213
  useResourceUrl: z.ZodDefault<z.ZodBoolean>;
5214
+ smartCompactEnabled: z.ZodOptional<z.ZodBoolean>;
5196
5215
  credential: z.ZodUnion<[z.ZodObject<{
5197
5216
  type: z.ZodLiteral<"INLINE_API_KEY">;
5198
5217
  value: z.ZodString;
@@ -5706,6 +5725,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
5706
5725
  transport: "HTTP";
5707
5726
  httpVersion: "2" | "1.1";
5708
5727
  } | undefined;
5728
+ smartCompactEnabled?: boolean | undefined;
5709
5729
  responsesToolNamespace?: string | undefined;
5710
5730
  responsesConfigurationUpdates?: boolean | undefined;
5711
5731
  }, {
@@ -5798,6 +5818,7 @@ export declare const promptCompletionRuntimeSchema: z.ZodObject<{
5798
5818
  httpVersion: "2" | "1.1";
5799
5819
  } | undefined;
5800
5820
  responsesPreviousResponseId?: boolean | undefined;
5821
+ smartCompactEnabled?: boolean | undefined;
5801
5822
  responsesToolNamespace?: string | undefined;
5802
5823
  responsesConfigurationUpdates?: boolean | undefined;
5803
5824
  }>, {
@@ -5838,6 +5859,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
5838
5859
  model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
5839
5860
  baseUrl: z.ZodString;
5840
5861
  useResourceUrl: z.ZodDefault<z.ZodBoolean>;
5862
+ smartCompactEnabled: z.ZodOptional<z.ZodBoolean>;
5841
5863
  credential: z.ZodUnion<[z.ZodObject<{
5842
5864
  type: z.ZodLiteral<"INLINE_API_KEY">;
5843
5865
  value: z.ZodString;
@@ -6351,6 +6373,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
6351
6373
  transport: "HTTP";
6352
6374
  httpVersion: "2" | "1.1";
6353
6375
  } | undefined;
6376
+ smartCompactEnabled?: boolean | undefined;
6354
6377
  responsesToolNamespace?: string | undefined;
6355
6378
  responsesConfigurationUpdates?: boolean | undefined;
6356
6379
  }, {
@@ -6443,6 +6466,7 @@ export declare const marAgentRuntimeCompactConfigurationSchema: z.ZodObject<{
6443
6466
  httpVersion: "2" | "1.1";
6444
6467
  } | undefined;
6445
6468
  responsesPreviousResponseId?: boolean | undefined;
6469
+ smartCompactEnabled?: boolean | undefined;
6446
6470
  responsesToolNamespace?: string | undefined;
6447
6471
  responsesConfigurationUpdates?: boolean | undefined;
6448
6472
  }>, {
@@ -6473,6 +6497,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
6473
6497
  model: z.ZodEffects<z.ZodEffects<z.ZodObject<{
6474
6498
  baseUrl: z.ZodString;
6475
6499
  useResourceUrl: z.ZodDefault<z.ZodBoolean>;
6500
+ smartCompactEnabled: z.ZodOptional<z.ZodBoolean>;
6476
6501
  credential: z.ZodUnion<[z.ZodObject<{
6477
6502
  type: z.ZodLiteral<"INLINE_API_KEY">;
6478
6503
  value: z.ZodString;
@@ -6986,6 +7011,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
6986
7011
  transport: "HTTP";
6987
7012
  httpVersion: "2" | "1.1";
6988
7013
  } | undefined;
7014
+ smartCompactEnabled?: boolean | undefined;
6989
7015
  responsesToolNamespace?: string | undefined;
6990
7016
  responsesConfigurationUpdates?: boolean | undefined;
6991
7017
  }, {
@@ -7078,6 +7104,7 @@ export declare const marAgentModelTransportTestInputSchema: z.ZodObject<{
7078
7104
  httpVersion: "2" | "1.1";
7079
7105
  } | undefined;
7080
7106
  responsesPreviousResponseId?: boolean | undefined;
7107
+ smartCompactEnabled?: boolean | undefined;
7081
7108
  responsesToolNamespace?: string | undefined;
7082
7109
  responsesConfigurationUpdates?: boolean | undefined;
7083
7110
  }>, {
package/dist/index.js CHANGED
@@ -65,6 +65,7 @@ export const marAgentRuntimeCredentialCapabilitySchema = z
65
65
  contextGcControl: z.boolean().optional(),
66
66
  modelSocks5Proxy: z.boolean().optional(),
67
67
  unifiedCompactControl: z.boolean().optional(),
68
+ smartCompactControl: z.boolean().optional(),
68
69
  conversationModels: z.boolean().optional(),
69
70
  resourceInput: z.boolean().optional(),
70
71
  httpVersions: z
@@ -871,6 +872,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
871
872
  ...marAgentModelShape,
872
873
  baseUrl: z.string().url().max(2048),
873
874
  useResourceUrl: z.boolean().default(false),
875
+ smartCompactEnabled: z.boolean().optional(),
874
876
  credential: marAgentRuntimeCredentialSchema,
875
877
  socks5Url: modelSocks5UrlSchema.optional(),
876
878
  responsesToolNamespace: z
@@ -919,6 +921,7 @@ export const marAgentRuntimeModelConfigurationSchema = refineMarAgentModel(z
919
921
  export const marAgentCompactConfigurationSchema = z
920
922
  .object({
921
923
  enabled: z.boolean(),
924
+ smartCompactEnabled: z.boolean().default(false),
922
925
  modelId: boundedIdentifierSchema.nullable(),
923
926
  reasoningEffort: marAgentReasoningEffortSchema.nullable()
924
927
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.13.23",
3
+ "version": "0.13.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/myagentroam/mar.git",