@agentdock/wire 0.0.95 → 0.0.97

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.
Files changed (78) hide show
  1. package/dist/agentCapabilities.d.ts +5 -2
  2. package/dist/agentCapabilities.js +1 -1
  3. package/dist/agentCompatibility.d.ts +83 -0
  4. package/dist/agentCompatibility.js +1 -0
  5. package/dist/agentInstallGuide.js +1 -1
  6. package/dist/checkpointSchemas.d.ts +5 -0
  7. package/dist/checkpointSchemas.js +1 -1
  8. package/dist/enterpriseCurrency.d.ts +120 -0
  9. package/dist/enterpriseCurrency.js +1 -0
  10. package/dist/enterpriseDirectory.d.ts +636 -0
  11. package/dist/enterpriseDirectory.js +1 -0
  12. package/dist/enterpriseFileService.d.ts +7 -0
  13. package/dist/enterpriseFileService.js +1 -0
  14. package/dist/enterpriseGatewayExports.d.ts +4 -0
  15. package/dist/enterpriseGatewayExports.js +1 -0
  16. package/dist/enterpriseOverview.d.ts +423 -0
  17. package/dist/enterpriseOverview.js +1 -0
  18. package/dist/enterprisePolicy.d.ts +452 -489
  19. package/dist/enterprisePolicy.js +1 -1
  20. package/dist/enterprisePolicyExports.d.ts +4 -2
  21. package/dist/enterprisePolicyExports.js +1 -1
  22. package/dist/enterpriseRange.d.ts +19 -0
  23. package/dist/enterpriseRange.js +1 -0
  24. package/dist/enterpriseRuntime.d.ts +574 -46
  25. package/dist/enterpriseRuntime.js +1 -1
  26. package/dist/enterpriseUserContainer.d.ts +2 -0
  27. package/dist/enterpriseUserContainer.js +1 -0
  28. package/dist/gateway.d.ts +1393 -876
  29. package/dist/gateway.js +1 -1
  30. package/dist/gatewayBodyRetention.d.ts +149 -0
  31. package/dist/gatewayBodyRetention.js +2 -0
  32. package/dist/gatewayUsage.d.ts +3248 -0
  33. package/dist/gatewayUsage.js +1 -0
  34. package/dist/inboundEvents.d.ts +0 -6
  35. package/dist/inboundEvents.js +1 -1
  36. package/dist/index.d.ts +15 -6
  37. package/dist/index.js +1 -1
  38. package/dist/interactionEvents.d.ts +2 -2
  39. package/dist/legacyProtocol.d.ts +36 -36
  40. package/dist/machine.d.ts +1 -6
  41. package/dist/machine.js +1 -1
  42. package/dist/messageMeta.d.ts +9 -7
  43. package/dist/messageMeta.js +1 -1
  44. package/dist/messages.d.ts +36 -36
  45. package/dist/ops.d.ts +112 -0
  46. package/dist/ops.js +1 -1
  47. package/dist/opsExports.d.ts +4 -0
  48. package/dist/opsExports.js +1 -0
  49. package/dist/pushPreferences.d.ts +12 -0
  50. package/dist/pushPreferences.js +1 -0
  51. package/dist/rpc.d.ts +537 -66
  52. package/dist/rpc.js +1 -1
  53. package/dist/scheduledTasks.d.ts +96 -21
  54. package/dist/scheduledTasks.js +1 -1
  55. package/dist/session.d.ts +4 -0
  56. package/dist/session.js +1 -0
  57. package/dist/sessionBtw.d.ts +2 -2
  58. package/dist/sessionFiles.d.ts +70 -0
  59. package/dist/sessionFiles.js +1 -0
  60. package/dist/sessionSlashCommands.d.ts +15 -0
  61. package/dist/sessionSlashCommands.js +1 -0
  62. package/dist/spawnError.d.ts +3 -3
  63. package/dist/stats.d.ts +31 -31
  64. package/dist/sync.d.ts +45 -45
  65. package/dist/sync.js +1 -1
  66. package/dist/telemetry.d.ts +13 -13
  67. package/dist/telemetry.js +1 -1
  68. package/dist/workspaceFileReaderProtocol.d.ts +270 -0
  69. package/dist/workspaceFileReaderProtocol.js +1 -0
  70. package/dist/workspaceFileRelay.d.ts +188 -0
  71. package/dist/workspaceFileRelay.js +1 -0
  72. package/package.json +1 -1
  73. package/dist/agentRuntimeSettings.d.ts +0 -139
  74. package/dist/agentRuntimeSettings.js +0 -1
  75. package/dist/enterpriseGateway.d.ts +0 -214
  76. package/dist/enterpriseGateway.js +0 -1
  77. package/dist/goals.d.ts +0 -829
  78. package/dist/goals.js +0 -1
package/dist/stats.d.ts CHANGED
@@ -196,7 +196,7 @@ export declare const ProjectSummarySchema: z.ZodObject<{
196
196
  }>;
197
197
 
198
198
  export declare const AgentTypeUsageSchema: z.ZodObject<{
199
- agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
199
+ agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
200
200
  totalSessions: z.ZodNumber;
201
201
  totalMessages: z.ZodNumber;
202
202
  totalTokens: z.ZodNumber;
@@ -342,7 +342,7 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
342
342
  totalTokens?: number | undefined;
343
343
  }>, "many">>>;
344
344
  }, "strip", z.ZodTypeAny, {
345
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
345
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
346
346
  totalTokens: number;
347
347
  totalSessions: number;
348
348
  totalMessages: number;
@@ -383,7 +383,7 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
383
383
  hourCounts: Record<string, number>;
384
384
  } | null | undefined;
385
385
  }, {
386
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
386
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
387
387
  totalTokens: number;
388
388
  totalSessions: number;
389
389
  totalMessages: number;
@@ -564,10 +564,10 @@ export declare const StatsOverviewSchema: z.ZodObject<{
564
564
  }>, "many">;
565
565
  costEstimates: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
566
566
  totalEstimatedCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
567
- agentType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
567
+ agentType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
568
568
 
569
569
  agentTypeUsage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
570
- agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
570
+ agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
571
571
  totalSessions: z.ZodNumber;
572
572
  totalMessages: z.ZodNumber;
573
573
  totalTokens: z.ZodNumber;
@@ -713,7 +713,7 @@ export declare const StatsOverviewSchema: z.ZodObject<{
713
713
  totalTokens?: number | undefined;
714
714
  }>, "many">>>;
715
715
  }, "strip", z.ZodTypeAny, {
716
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
716
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
717
717
  totalTokens: number;
718
718
  totalSessions: number;
719
719
  totalMessages: number;
@@ -754,7 +754,7 @@ export declare const StatsOverviewSchema: z.ZodObject<{
754
754
  hourCounts: Record<string, number>;
755
755
  } | null | undefined;
756
756
  }, {
757
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
757
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
758
758
  totalTokens: number;
759
759
  totalSessions: number;
760
760
  totalMessages: number;
@@ -796,7 +796,7 @@ export declare const StatsOverviewSchema: z.ZodObject<{
796
796
  }[] | undefined;
797
797
  }>, "many">>>;
798
798
  }, "strip", z.ZodTypeAny, {
799
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
799
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
800
800
  stats: {
801
801
  version: number;
802
802
  totalSessions: number;
@@ -835,7 +835,7 @@ export declare const StatsOverviewSchema: z.ZodObject<{
835
835
  costEstimates: Record<string, number>;
836
836
  totalEstimatedCost: number;
837
837
  agentTypeUsage: {
838
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
838
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
839
839
  totalTokens: number;
840
840
  totalSessions: number;
841
841
  totalMessages: number;
@@ -912,11 +912,11 @@ export declare const StatsOverviewSchema: z.ZodObject<{
912
912
  subagentSessionCount: number;
913
913
  totalTokens?: number | undefined;
914
914
  }[];
915
- agentType?: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw" | undefined;
915
+ agentType?: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
916
916
  costEstimates?: Record<string, number> | undefined;
917
917
  totalEstimatedCost?: number | undefined;
918
918
  agentTypeUsage?: {
919
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
919
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
920
920
  totalTokens: number;
921
921
  totalSessions: number;
922
922
  totalMessages: number;
@@ -967,36 +967,36 @@ export type LongestSession = z.infer<typeof LongestSessionSchema>;
967
967
  export type AgentTypeUsage = z.infer<typeof AgentTypeUsageSchema>;
968
968
 
969
969
  export declare const AgentSessionUsageEntrySchema: z.ZodObject<{
970
- agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
970
+ agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
971
971
  sessionCount: z.ZodNumber;
972
972
  }, "strict", z.ZodTypeAny, {
973
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
973
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
974
974
  sessionCount: number;
975
975
  }, {
976
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
976
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
977
977
  sessionCount: number;
978
978
  }>;
979
979
  export declare const AgentSessionUsageResponseSchema: z.ZodObject<{
980
980
  ok: z.ZodLiteral<true>;
981
981
  agents: z.ZodArray<z.ZodObject<{
982
- agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
982
+ agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
983
983
  sessionCount: z.ZodNumber;
984
984
  }, "strict", z.ZodTypeAny, {
985
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
985
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
986
986
  sessionCount: number;
987
987
  }, {
988
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
988
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
989
989
  sessionCount: number;
990
990
  }>, "many">;
991
991
  }, "strict", z.ZodTypeAny, {
992
992
  agents: {
993
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
993
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
994
994
  sessionCount: number;
995
995
  }[];
996
996
  ok: true;
997
997
  }, {
998
998
  agents: {
999
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
999
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1000
1000
  sessionCount: number;
1001
1001
  }[];
1002
1002
  ok: true;
@@ -1145,10 +1145,10 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1145
1145
  }>, "many">;
1146
1146
  costEstimates: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
1147
1147
  totalEstimatedCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1148
- agentType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
1148
+ agentType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
1149
1149
 
1150
1150
  agentTypeUsage: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1151
- agentType: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
1151
+ agentType: z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>;
1152
1152
  totalSessions: z.ZodNumber;
1153
1153
  totalMessages: z.ZodNumber;
1154
1154
  totalTokens: z.ZodNumber;
@@ -1294,7 +1294,7 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1294
1294
  totalTokens?: number | undefined;
1295
1295
  }>, "many">>>;
1296
1296
  }, "strip", z.ZodTypeAny, {
1297
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1297
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1298
1298
  totalTokens: number;
1299
1299
  totalSessions: number;
1300
1300
  totalMessages: number;
@@ -1335,7 +1335,7 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1335
1335
  hourCounts: Record<string, number>;
1336
1336
  } | null | undefined;
1337
1337
  }, {
1338
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1338
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1339
1339
  totalTokens: number;
1340
1340
  totalSessions: number;
1341
1341
  totalMessages: number;
@@ -1377,7 +1377,7 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1377
1377
  }[] | undefined;
1378
1378
  }>, "many">>>;
1379
1379
  }, "strip", z.ZodTypeAny, {
1380
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1380
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1381
1381
  stats: {
1382
1382
  version: number;
1383
1383
  totalSessions: number;
@@ -1416,7 +1416,7 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1416
1416
  costEstimates: Record<string, number>;
1417
1417
  totalEstimatedCost: number;
1418
1418
  agentTypeUsage: {
1419
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1419
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1420
1420
  totalTokens: number;
1421
1421
  totalSessions: number;
1422
1422
  totalMessages: number;
@@ -1493,11 +1493,11 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1493
1493
  subagentSessionCount: number;
1494
1494
  totalTokens?: number | undefined;
1495
1495
  }[];
1496
- agentType?: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw" | undefined;
1496
+ agentType?: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
1497
1497
  costEstimates?: Record<string, number> | undefined;
1498
1498
  totalEstimatedCost?: number | undefined;
1499
1499
  agentTypeUsage?: {
1500
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1500
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1501
1501
  totalTokens: number;
1502
1502
  totalSessions: number;
1503
1503
  totalMessages: number;
@@ -1543,7 +1543,7 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1543
1543
  }, "strict", z.ZodTypeAny, {
1544
1544
  date: string;
1545
1545
  stats: {
1546
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1546
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1547
1547
  stats: {
1548
1548
  version: number;
1549
1549
  totalSessions: number;
@@ -1582,7 +1582,7 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1582
1582
  costEstimates: Record<string, number>;
1583
1583
  totalEstimatedCost: number;
1584
1584
  agentTypeUsage: {
1585
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1585
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1586
1586
  totalTokens: number;
1587
1587
  totalSessions: number;
1588
1588
  totalMessages: number;
@@ -1663,11 +1663,11 @@ export declare const ActivityUploadSchema: z.ZodObject<{
1663
1663
  subagentSessionCount: number;
1664
1664
  totalTokens?: number | undefined;
1665
1665
  }[];
1666
- agentType?: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw" | undefined;
1666
+ agentType?: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw" | undefined;
1667
1667
  costEstimates?: Record<string, number> | undefined;
1668
1668
  totalEstimatedCost?: number | undefined;
1669
1669
  agentTypeUsage?: {
1670
- agentType: "custom" | "hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw";
1670
+ agentType: "custom" | "claude" | "codex" | "opencode" | "pi" | "copilot" | "gemini" | "hermes" | "openclaw";
1671
1671
  totalTokens: number;
1672
1672
  totalSessions: number;
1673
1673
  totalMessages: number;
package/dist/sync.d.ts CHANGED
@@ -382,9 +382,9 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
382
382
  displayName: z.ZodString;
383
383
  isDefault: z.ZodBoolean;
384
384
  hidden: z.ZodBoolean;
385
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
385
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
386
386
  }, "strip", z.ZodTypeAny, {
387
- source: "custom" | "builtin" | "acp" | "env";
387
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
388
388
  id: string;
389
389
  displayName: string;
390
390
  isDefault: boolean;
@@ -394,7 +394,7 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
394
394
  displayName: string;
395
395
  isDefault: boolean;
396
396
  hidden: boolean;
397
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
397
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
398
398
  }>, "many">>>;
399
399
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
400
400
  id: z.ZodString;
@@ -449,9 +449,9 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
449
449
  displayName: z.ZodString;
450
450
  isDefault: z.ZodBoolean;
451
451
  hidden: z.ZodBoolean;
452
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
452
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
453
453
  }, "strip", z.ZodTypeAny, {
454
- source: "custom" | "builtin" | "acp" | "env";
454
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
455
455
  id: string;
456
456
  displayName: string;
457
457
  isDefault: boolean;
@@ -461,7 +461,7 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
461
461
  displayName: string;
462
462
  isDefault: boolean;
463
463
  hidden: boolean;
464
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
464
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
465
465
  }>, "many">>>;
466
466
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
467
467
  id: z.ZodString;
@@ -516,9 +516,9 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
516
516
  displayName: z.ZodString;
517
517
  isDefault: z.ZodBoolean;
518
518
  hidden: z.ZodBoolean;
519
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
519
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
520
520
  }, "strip", z.ZodTypeAny, {
521
- source: "custom" | "builtin" | "acp" | "env";
521
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
522
522
  id: string;
523
523
  displayName: string;
524
524
  isDefault: boolean;
@@ -528,7 +528,7 @@ export declare const UpdateMachineBodySchema: z.ZodObject<{
528
528
  displayName: string;
529
529
  isDefault: boolean;
530
530
  hidden: boolean;
531
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
531
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
532
532
  }>, "many">>>;
533
533
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
534
534
  id: z.ZodString;
@@ -910,9 +910,9 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
910
910
  displayName: z.ZodString;
911
911
  isDefault: z.ZodBoolean;
912
912
  hidden: z.ZodBoolean;
913
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
913
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
914
914
  }, "strip", z.ZodTypeAny, {
915
- source: "custom" | "builtin" | "acp" | "env";
915
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
916
916
  id: string;
917
917
  displayName: string;
918
918
  isDefault: boolean;
@@ -922,7 +922,7 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
922
922
  displayName: string;
923
923
  isDefault: boolean;
924
924
  hidden: boolean;
925
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
925
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
926
926
  }>, "many">>>;
927
927
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
928
928
  id: z.ZodString;
@@ -977,9 +977,9 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
977
977
  displayName: z.ZodString;
978
978
  isDefault: z.ZodBoolean;
979
979
  hidden: z.ZodBoolean;
980
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
980
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
981
981
  }, "strip", z.ZodTypeAny, {
982
- source: "custom" | "builtin" | "acp" | "env";
982
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
983
983
  id: string;
984
984
  displayName: string;
985
985
  isDefault: boolean;
@@ -989,7 +989,7 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
989
989
  displayName: string;
990
990
  isDefault: boolean;
991
991
  hidden: boolean;
992
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
992
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
993
993
  }>, "many">>>;
994
994
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
995
995
  id: z.ZodString;
@@ -1044,9 +1044,9 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
1044
1044
  displayName: z.ZodString;
1045
1045
  isDefault: z.ZodBoolean;
1046
1046
  hidden: z.ZodBoolean;
1047
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1047
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
1048
1048
  }, "strip", z.ZodTypeAny, {
1049
- source: "custom" | "builtin" | "acp" | "env";
1049
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
1050
1050
  id: string;
1051
1051
  displayName: string;
1052
1052
  isDefault: boolean;
@@ -1056,7 +1056,7 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
1056
1056
  displayName: string;
1057
1057
  isDefault: boolean;
1058
1058
  hidden: boolean;
1059
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
1059
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
1060
1060
  }>, "many">>>;
1061
1061
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1062
1062
  id: z.ZodString;
@@ -1437,9 +1437,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1437
1437
  displayName: z.ZodString;
1438
1438
  isDefault: z.ZodBoolean;
1439
1439
  hidden: z.ZodBoolean;
1440
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1440
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
1441
1441
  }, "strip", z.ZodTypeAny, {
1442
- source: "custom" | "builtin" | "acp" | "env";
1442
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
1443
1443
  id: string;
1444
1444
  displayName: string;
1445
1445
  isDefault: boolean;
@@ -1449,7 +1449,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1449
1449
  displayName: string;
1450
1450
  isDefault: boolean;
1451
1451
  hidden: boolean;
1452
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
1452
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
1453
1453
  }>, "many">>>;
1454
1454
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1455
1455
  id: z.ZodString;
@@ -1504,9 +1504,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1504
1504
  displayName: z.ZodString;
1505
1505
  isDefault: z.ZodBoolean;
1506
1506
  hidden: z.ZodBoolean;
1507
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1507
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
1508
1508
  }, "strip", z.ZodTypeAny, {
1509
- source: "custom" | "builtin" | "acp" | "env";
1509
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
1510
1510
  id: string;
1511
1511
  displayName: string;
1512
1512
  isDefault: boolean;
@@ -1516,7 +1516,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1516
1516
  displayName: string;
1517
1517
  isDefault: boolean;
1518
1518
  hidden: boolean;
1519
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
1519
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
1520
1520
  }>, "many">>>;
1521
1521
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1522
1522
  id: z.ZodString;
@@ -1571,9 +1571,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1571
1571
  displayName: z.ZodString;
1572
1572
  isDefault: z.ZodBoolean;
1573
1573
  hidden: z.ZodBoolean;
1574
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1574
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
1575
1575
  }, "strip", z.ZodTypeAny, {
1576
- source: "custom" | "builtin" | "acp" | "env";
1576
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
1577
1577
  id: string;
1578
1578
  displayName: string;
1579
1579
  isDefault: boolean;
@@ -1583,7 +1583,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1583
1583
  displayName: string;
1584
1584
  isDefault: boolean;
1585
1585
  hidden: boolean;
1586
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
1586
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
1587
1587
  }>, "many">>>;
1588
1588
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1589
1589
  id: z.ZodString;
@@ -1964,9 +1964,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1964
1964
  displayName: z.ZodString;
1965
1965
  isDefault: z.ZodBoolean;
1966
1966
  hidden: z.ZodBoolean;
1967
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
1967
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
1968
1968
  }, "strip", z.ZodTypeAny, {
1969
- source: "custom" | "builtin" | "acp" | "env";
1969
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
1970
1970
  id: string;
1971
1971
  displayName: string;
1972
1972
  isDefault: boolean;
@@ -1976,7 +1976,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
1976
1976
  displayName: string;
1977
1977
  isDefault: boolean;
1978
1978
  hidden: boolean;
1979
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
1979
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
1980
1980
  }>, "many">>>;
1981
1981
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1982
1982
  id: z.ZodString;
@@ -2031,9 +2031,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2031
2031
  displayName: z.ZodString;
2032
2032
  isDefault: z.ZodBoolean;
2033
2033
  hidden: z.ZodBoolean;
2034
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2034
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
2035
2035
  }, "strip", z.ZodTypeAny, {
2036
- source: "custom" | "builtin" | "acp" | "env";
2036
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
2037
2037
  id: string;
2038
2038
  displayName: string;
2039
2039
  isDefault: boolean;
@@ -2043,7 +2043,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2043
2043
  displayName: string;
2044
2044
  isDefault: boolean;
2045
2045
  hidden: boolean;
2046
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
2046
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
2047
2047
  }>, "many">>>;
2048
2048
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2049
2049
  id: z.ZodString;
@@ -2098,9 +2098,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2098
2098
  displayName: z.ZodString;
2099
2099
  isDefault: z.ZodBoolean;
2100
2100
  hidden: z.ZodBoolean;
2101
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2101
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
2102
2102
  }, "strip", z.ZodTypeAny, {
2103
- source: "custom" | "builtin" | "acp" | "env";
2103
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
2104
2104
  id: string;
2105
2105
  displayName: string;
2106
2106
  isDefault: boolean;
@@ -2110,7 +2110,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2110
2110
  displayName: string;
2111
2111
  isDefault: boolean;
2112
2112
  hidden: boolean;
2113
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
2113
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
2114
2114
  }>, "many">>>;
2115
2115
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2116
2116
  id: z.ZodString;
@@ -2491,9 +2491,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2491
2491
  displayName: z.ZodString;
2492
2492
  isDefault: z.ZodBoolean;
2493
2493
  hidden: z.ZodBoolean;
2494
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2494
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
2495
2495
  }, "strip", z.ZodTypeAny, {
2496
- source: "custom" | "builtin" | "acp" | "env";
2496
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
2497
2497
  id: string;
2498
2498
  displayName: string;
2499
2499
  isDefault: boolean;
@@ -2503,7 +2503,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2503
2503
  displayName: string;
2504
2504
  isDefault: boolean;
2505
2505
  hidden: boolean;
2506
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
2506
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
2507
2507
  }>, "many">>>;
2508
2508
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2509
2509
  id: z.ZodString;
@@ -2558,9 +2558,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2558
2558
  displayName: z.ZodString;
2559
2559
  isDefault: z.ZodBoolean;
2560
2560
  hidden: z.ZodBoolean;
2561
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2561
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
2562
2562
  }, "strip", z.ZodTypeAny, {
2563
- source: "custom" | "builtin" | "acp" | "env";
2563
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
2564
2564
  id: string;
2565
2565
  displayName: string;
2566
2566
  isDefault: boolean;
@@ -2570,7 +2570,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2570
2570
  displayName: string;
2571
2571
  isDefault: boolean;
2572
2572
  hidden: boolean;
2573
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
2573
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
2574
2574
  }>, "many">>>;
2575
2575
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2576
2576
  id: z.ZodString;
@@ -2625,9 +2625,9 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2625
2625
  displayName: z.ZodString;
2626
2626
  isDefault: z.ZodBoolean;
2627
2627
  hidden: z.ZodBoolean;
2628
- source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "env", "custom"]>>>;
2628
+ source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["builtin", "acp", "runtime", "env", "custom"]>>>;
2629
2629
  }, "strip", z.ZodTypeAny, {
2630
- source: "custom" | "builtin" | "acp" | "env";
2630
+ source: "custom" | "builtin" | "acp" | "runtime" | "env";
2631
2631
  id: string;
2632
2632
  displayName: string;
2633
2633
  isDefault: boolean;
@@ -2637,7 +2637,7 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
2637
2637
  displayName: string;
2638
2638
  isDefault: boolean;
2639
2639
  hidden: boolean;
2640
- source?: "custom" | "builtin" | "acp" | "env" | undefined;
2640
+ source?: "custom" | "builtin" | "acp" | "runtime" | "env" | undefined;
2641
2641
  }>, "many">>>;
2642
2642
  agentModes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2643
2643
  id: z.ZodString;
package/dist/sync.js CHANGED
@@ -1 +1 @@
1
- "use strict";import{z as e}from"zod";import{SessionMessageSchema as o}from"./messages.js";import{PlatformSchema as t}from"./machine.js";export const VersionedEncryptedValueSchema=e.object({version:e.number(),value:e.string()}).passthrough(),VersionedNullableEncryptedValueSchema=e.object({version:e.number(),value:e.string().nullable()}).passthrough(),VersionedMachineEncryptedValueSchema=e.object({version:e.number(),value:e.string()}).passthrough(),UpdateNewMessageBodySchema=e.object({t:e.literal("new-message"),sid:e.string(),message:o}).passthrough(),UpdateSessionBodySchema=e.object({t:e.literal("update-session"),id:e.string(),tag:e.string().optional(),displayName:e.string().nullish(),machineId:e.string().optional(),metadata:VersionedEncryptedValueSchema.nullish(),agentState:VersionedNullableEncryptedValueSchema.nullish(),active:e.boolean().optional(),source:e.enum(["managed","history","scheduled"]).optional(),contextUsage:e.record(e.unknown()).nullish(),dataEncryptionKey:e.string().nullish(),handoffEnabled:e.boolean().optional(),inheritedFrom:e.array(e.string().uuid()).max(5).optional()}).passthrough(),UpdateMachineBodySchema=e.object({t:e.literal("update-machine"),machineId:e.string(),metadata:VersionedMachineEncryptedValueSchema.nullish(),daemonState:VersionedMachineEncryptedValueSchema.nullish(),active:e.boolean().optional(),activeAt:e.number().optional(),hostname:e.string().optional(),platform:t.optional(),arch:e.string().optional(),daemonVersion:e.string().optional(),displayName:e.string().optional(),availableAgents:e.array(e.string()).optional(),supportedMethods:e.array(e.string()).optional(),disconnectReason:e.enum(["normal","upgrade-required"]).optional(),upgradeStatus:e.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:e.string().optional(),superseded:e.boolean().optional(),derivationVersion:e.number().int().min(0).optional(),autoUpgradeDaemon:e.boolean().optional(),agentModels:e.record(e.string(),e.array(e.object({id:e.string(),displayName:e.string(),isDefault:e.boolean(),hidden:e.boolean(),source:e.enum(["builtin","acp","env","custom"]).optional().default("acp")}))).optional(),agentModes:e.record(e.string(),e.array(e.object({id:e.string(),label:e.string()}))).optional()}).passthrough(),UpdateSessionResetBodySchema=e.object({t:e.literal("session-reset"),sessionId:e.string()}).passthrough(),UpdateDeleteSessionBodySchema=e.object({t:e.literal("delete-session"),id:e.string()}).passthrough(),CoreUpdateBodySchema=e.discriminatedUnion("t",[UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,UpdateDeleteSessionBodySchema]),CoreUpdateContainerSchema=e.object({id:e.string(),seq:e.number(),body:CoreUpdateBodySchema,createdAt:e.number()}).passthrough();
1
+ "use strict";import{z as e}from"zod";import{SessionMessageSchema as t}from"./messages.js";import{PlatformSchema as o}from"./machine.js";export const VersionedEncryptedValueSchema=e.object({version:e.number(),value:e.string()}).passthrough(),VersionedNullableEncryptedValueSchema=e.object({version:e.number(),value:e.string().nullable()}).passthrough(),VersionedMachineEncryptedValueSchema=e.object({version:e.number(),value:e.string()}).passthrough(),UpdateNewMessageBodySchema=e.object({t:e.literal("new-message"),sid:e.string(),message:t}).passthrough(),UpdateSessionBodySchema=e.object({t:e.literal("update-session"),id:e.string(),tag:e.string().optional(),displayName:e.string().nullish(),machineId:e.string().optional(),metadata:VersionedEncryptedValueSchema.nullish(),agentState:VersionedNullableEncryptedValueSchema.nullish(),active:e.boolean().optional(),source:e.enum(["managed","history","scheduled"]).optional(),contextUsage:e.record(e.unknown()).nullish(),dataEncryptionKey:e.string().nullish(),handoffEnabled:e.boolean().optional(),inheritedFrom:e.array(e.string().uuid()).max(5).optional()}).passthrough(),UpdateMachineBodySchema=e.object({t:e.literal("update-machine"),machineId:e.string(),metadata:VersionedMachineEncryptedValueSchema.nullish(),daemonState:VersionedMachineEncryptedValueSchema.nullish(),active:e.boolean().optional(),activeAt:e.number().optional(),hostname:e.string().optional(),platform:o.optional(),arch:e.string().optional(),daemonVersion:e.string().optional(),displayName:e.string().optional(),availableAgents:e.array(e.string()).optional(),supportedMethods:e.array(e.string()).optional(),disconnectReason:e.enum(["normal","upgrade-required"]).optional(),upgradeStatus:e.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:e.string().optional(),superseded:e.boolean().optional(),derivationVersion:e.number().int().min(0).optional(),autoUpgradeDaemon:e.boolean().optional(),agentModels:e.record(e.string(),e.array(e.object({id:e.string(),displayName:e.string(),isDefault:e.boolean(),hidden:e.boolean(),source:e.enum(["builtin","acp","runtime","env","custom"]).optional().default("acp")}))).optional(),agentModes:e.record(e.string(),e.array(e.object({id:e.string(),label:e.string()}))).optional()}).passthrough(),UpdateSessionResetBodySchema=e.object({t:e.literal("session-reset"),sessionId:e.string()}).passthrough(),UpdateDeleteSessionBodySchema=e.object({t:e.literal("delete-session"),id:e.string()}).passthrough(),CoreUpdateBodySchema=e.discriminatedUnion("t",[UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,UpdateDeleteSessionBodySchema]),CoreUpdateContainerSchema=e.object({id:e.string(),seq:e.number(),body:CoreUpdateBodySchema,createdAt:e.number()}).passthrough();