@agentrix/shared 2.0.14 → 2.2.0

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.cjs CHANGED
@@ -234,6 +234,8 @@ const StartTaskRequestSchema = zod.z.object({
234
234
  // Repository source type
235
235
  dataEncryptionKey: zod.z.string().optional(),
236
236
  // base64 sealed-box: app public key encrypted by machine public key
237
+ ownerEncryptedDataKey: zod.z.string().optional(),
238
+ // base64 secretbox: task data key encrypted by owner's machine AES key (local mode)
237
239
  // Multi-agent collaboration fields
238
240
  agentId: zod.z.string().optional(),
239
241
  // Agent ID to execute the task (overrides chat's first agent)
@@ -281,8 +283,8 @@ const StartTaskResponseSchema = zod.z.object({
281
283
  });
282
284
  const TaskItemSchema = zod.z.object({
283
285
  id: IdSchema,
284
- type: zod.z.enum(["chat", "work"]).default("work"),
285
- // Task type: "chat" (virtual task for chat events) | "work" (real work task)
286
+ type: zod.z.enum(["chat", "work", "shadow"]).default("work"),
287
+ // Task type: "chat" (virtual) | "work" (real work) | "shadow" (companion heartbeat/shadow)
286
288
  chatId: IdSchema,
287
289
  userId: zod.z.string(),
288
290
  state: zod.z.string(),
@@ -299,6 +301,7 @@ const TaskItemSchema = zod.z.object({
299
301
  // Custom task title (set by user, takes priority over title)
300
302
  agentSessionId: zod.z.string().nullable(),
301
303
  dataEncryptionKey: zod.z.string().nullable(),
304
+ ownerEncryptedDataKey: zod.z.string().nullable(),
302
305
  cwd: zod.z.string().nullable(),
303
306
  // Current working directory from CLI worker
304
307
  userCwd: zod.z.string().nullable(),
@@ -537,6 +540,25 @@ const SubTaskSummarySchema = zod.z.object({
537
540
  const ListSubTasksResponseSchema = zod.z.object({
538
541
  tasks: zod.z.array(SubTaskSummarySchema)
539
542
  });
543
+ const ListRecentTasksRequestSchema = zod.z.object({
544
+ chatId: zod.z.string(),
545
+ limit: zod.z.coerce.number().int().min(1).max(50).optional().default(10),
546
+ status: zod.z.enum(["all", "active", "completed"]).optional().default("all")
547
+ });
548
+ const RecentTaskSummarySchema = zod.z.object({
549
+ taskId: IdSchema,
550
+ type: zod.z.enum(["chat", "work", "shadow"]),
551
+ state: zod.z.string(),
552
+ agentId: zod.z.string(),
553
+ title: zod.z.string().nullable(),
554
+ totalDuration: zod.z.number().nullable(),
555
+ createdAt: zod.z.string(),
556
+ updatedAt: zod.z.string()
557
+ });
558
+ const ListRecentTasksResponseSchema = zod.z.object({
559
+ tasks: zod.z.array(RecentTaskSummarySchema),
560
+ hasMore: zod.z.boolean()
561
+ });
540
562
  const FindTaskByAgentRequestSchema = zod.z.object({
541
563
  parentTaskId: zod.z.string(),
542
564
  agentId: zod.z.string()
@@ -583,7 +605,10 @@ const ChatMemberInputSchema = zod.z.object({
583
605
  const CreateChatRequestSchema = zod.z.object({
584
606
  type: ChatTypeSchema.default("direct"),
585
607
  // Optional, defaults to 'direct'
586
- members: zod.z.array(ChatMemberInputSchema)
608
+ members: zod.z.array(ChatMemberInputSchema),
609
+ // Encryption keys for companion chat tasks (generated by App, stored on virtual task)
610
+ dataEncryptionKey: zod.z.string().optional(),
611
+ ownerEncryptedDataKey: zod.z.string().optional()
587
612
  });
588
613
  const CreateChatResponseSchema = ChatWithMembersSchema;
589
614
  const ListChatsQuerySchema = zod.z.object({
@@ -621,7 +646,7 @@ const UpdateChatContextRequestSchema = zod.z.object({
621
646
  });
622
647
  const UpdateChatContextResponseSchema = ChatSchema;
623
648
 
624
- const AgentTypeSchema = zod.z.enum(["claude", "codex"]);
649
+ const AgentTypeSchema = zod.z.enum(["claude", "codex", "companion"]);
625
650
  const DisplayConfigKeysSchema = zod.z.object({
626
651
  // PR Actions
627
652
  createPR: zod.z.string().optional(),
@@ -645,7 +670,9 @@ const DisplayConfigKeysSchema = zod.z.object({
645
670
  });
646
671
  const DisplayConfigSchema = zod.z.record(zod.z.string(), DisplayConfigKeysSchema);
647
672
  const AgentCustomConfigSchema = zod.z.object({
648
- displayConfig: DisplayConfigSchema.optional()
673
+ displayConfig: DisplayConfigSchema.optional(),
674
+ machineId: zod.z.string().optional(),
675
+ heartbeatTaskId: zod.z.string().optional()
649
676
  });
650
677
  const AgentPermissionsSchema = zod.z.object({
651
678
  role: zod.z.string(),
@@ -656,6 +683,7 @@ const AgentPermissionsSchema = zod.z.object({
656
683
  const AgentSchema = zod.z.object({
657
684
  id: IdSchema,
658
685
  name: zod.z.string(),
686
+ displayName: zod.z.string().nullable(),
659
687
  type: AgentTypeSchema,
660
688
  avatar: zod.z.string().nullable(),
661
689
  userId: zod.z.string(),
@@ -692,6 +720,7 @@ const CreateAgentRequestSchema = zod.z.object({
692
720
  const CreateAgentResponseSchema = AgentSchema;
693
721
  const UpdateAgentRequestSchema = zod.z.object({
694
722
  name: zod.z.string().min(1).optional(),
723
+ displayName: zod.z.string().nullable().optional(),
695
724
  type: AgentTypeSchema.optional(),
696
725
  avatar: zod.z.string().nullable().optional(),
697
726
  description: zod.z.string().nullable().optional(),
@@ -1154,6 +1183,16 @@ const GitServerSchema = zod.z.object({
1154
1183
  baseUrl: zod.z.string().url(),
1155
1184
  apiUrl: zod.z.string().url(),
1156
1185
  oauthServerId: zod.z.string().nullable(),
1186
+ ownerId: zod.z.string().nullable(),
1187
+ // null = public (admin-created), userId = private (user-created)
1188
+ authModeDefault: zod.z.string().default("oauth"),
1189
+ // "oauth" | "local_pat"
1190
+ executionMode: zod.z.string().default("server"),
1191
+ // "server" | "daemon_proxy"
1192
+ syncMode: zod.z.string().default("polling_only"),
1193
+ // "polling_only" | "hybrid" | "webhook_only"
1194
+ networkMode: zod.z.string().default("direct"),
1195
+ // "direct" | "tunnel"
1157
1196
  enabled: zod.z.boolean(),
1158
1197
  createdAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())]),
1159
1198
  updatedAt: zod.z.union([DateSchema, zod.z.date().transform((d) => d.toISOString())])
@@ -1216,7 +1255,7 @@ const AskUserResponseMessageSchema = zod.z.object({
1216
1255
  const TaskAgentInfoSchema = zod.z.object({
1217
1256
  id: zod.z.string(),
1218
1257
  name: zod.z.string(),
1219
- type: zod.z.enum(["claude", "codex"]).optional().default("claude"),
1258
+ type: AgentTypeSchema.optional().default("claude"),
1220
1259
  description: zod.z.string().optional()
1221
1260
  });
1222
1261
  function isAskUserMessage(message) {
@@ -1225,8 +1264,14 @@ function isAskUserMessage(message) {
1225
1264
  function isAskUserResponseMessage(message) {
1226
1265
  return typeof message === "object" && message !== null && "type" in message && message.type === "ask_user_response";
1227
1266
  }
1267
+ function isCompanionHeartbeatMessage(message) {
1268
+ return typeof message === "object" && message !== null && "type" in message && message.type === "companion_heartbeat";
1269
+ }
1270
+ function isCompanionReminderMessage(message) {
1271
+ return typeof message === "object" && message !== null && "type" in message && message.type === "companion_reminder";
1272
+ }
1228
1273
  function isSDKMessage(message) {
1229
- return typeof message === "object" && message !== null && "type" in message && message.type !== "ask_user" && message.type !== "ask_user_response";
1274
+ return typeof message === "object" && message !== null && "type" in message && message.type !== "ask_user" && message.type !== "ask_user_response" && message.type !== "companion_heartbeat" && message.type !== "companion_reminder";
1230
1275
  }
1231
1276
  function isSDKUserMessage(message) {
1232
1277
  return isSDKMessage(message) && message.type === "user";
@@ -1350,6 +1395,8 @@ const baseTaskSchema = EventBaseSchema.extend({
1350
1395
  // Existing repository ID (used to skip auto-association)
1351
1396
  repositorySourceType: zod.z.enum(["temporary", "directory", "git-server"]).optional().default("temporary"),
1352
1397
  // Repository source type (determines workspace mode)
1398
+ gitServerId: zod.z.string().optional(),
1399
+ // Git server ID (for local_pat mode: worker loads PAT locally)
1353
1400
  environmentVariables: zod.z.record(zod.z.string(), zod.z.string()).optional(),
1354
1401
  // Environment variables for task execution
1355
1402
  // Multi-agent collaboration fields
@@ -1361,8 +1408,8 @@ const baseTaskSchema = EventBaseSchema.extend({
1361
1408
  // Agents available for this task
1362
1409
  todos: zod.z.array(TaskTodoSchema).optional(),
1363
1410
  // Structured todos for group tasks
1364
- taskType: zod.z.enum(["chat", "work"]).optional().default("work"),
1365
- // Task type: 'chat' for main chat, 'work' for task execution
1411
+ taskType: zod.z.enum(["chat", "work", "shadow"]).optional().default("work"),
1412
+ // Task type: 'chat' for main chat, 'work' for task execution, 'shadow' for companion shadow
1366
1413
  customTitle: zod.z.string().min(1).max(200).optional()
1367
1414
  // Custom task title (set by user/tool)
1368
1415
  });
@@ -1437,6 +1484,8 @@ const TaskMessageSchema = EventBaseSchema.extend({
1437
1484
  message: "Invalid TaskMessagePayload format"
1438
1485
  }
1439
1486
  ).optional(),
1487
+ messageType: zod.z.string().optional(),
1488
+ // Message type metadata (for encrypted payload routing)
1440
1489
  encryptedMessage: zod.z.string().optional(),
1441
1490
  // base64 sealed-box payload (local mode)
1442
1491
  // Multi-agent collaboration fields
@@ -1491,7 +1540,9 @@ const MachineRtcRequestSchema = EventBaseSchema.extend({
1491
1540
  machineId: zod.z.string(),
1492
1541
  sessionId: zod.z.string(),
1493
1542
  role: zod.z.literal("app"),
1494
- userId: zod.z.string().optional()
1543
+ taskId: zod.z.string().optional(),
1544
+ userId: zod.z.string().optional(),
1545
+ workspaceUserId: zod.z.string().optional()
1495
1546
  });
1496
1547
  const MachineRtcResponseSchema = EventBaseSchema.extend({
1497
1548
  machineId: zod.z.string(),
@@ -1509,7 +1560,9 @@ const RtcSignalSchema = EventBaseSchema.extend({
1509
1560
  sessionId: zod.z.string(),
1510
1561
  from: zod.z.enum(["app", "machine"]),
1511
1562
  signal: zod.z.any(),
1512
- userId: zod.z.string().optional()
1563
+ userId: zod.z.string().optional(),
1564
+ taskId: zod.z.string().optional(),
1565
+ workspaceUserId: zod.z.string().optional()
1513
1566
  });
1514
1567
  const WorkspaceFileRequestSchema = EventBaseSchema.extend({
1515
1568
  taskId: zod.z.string(),
@@ -1604,6 +1657,8 @@ const SubTaskResultUpdatedEventSchema = EventBaseSchema.extend({
1604
1657
  result: zod.z.string(),
1605
1658
  is_error: zod.z.boolean().optional()
1606
1659
  }),
1660
+ encryptedResultMessage: zod.z.string().optional(),
1661
+ // Encrypted result payload for E2E forwarding
1607
1662
  // Optional artifacts summary (for displaying in parent task chat)
1608
1663
  artifacts: TaskArtifactsSummarySchema.optional()
1609
1664
  });
@@ -1662,6 +1717,15 @@ const AssociateRepoEventDataSchema = EventBaseSchema.extend({
1662
1717
  remoteUrl: zod.z.string()
1663
1718
  // Original URL for logging
1664
1719
  });
1720
+ const UpdateAgentInfoEventSchema = EventBaseSchema.extend({
1721
+ taskId: zod.z.string(),
1722
+ agentId: zod.z.string(),
1723
+ displayName: zod.z.string().optional(),
1724
+ avatar: zod.z.string().optional(),
1725
+ // emoji or URL (fileId)
1726
+ signature: zod.z.string().optional()
1727
+ // status line / tagline
1728
+ });
1665
1729
  const IdOnlySchema = zod.z.object({
1666
1730
  id: zod.z.string()
1667
1731
  });
@@ -1686,6 +1750,7 @@ const SystemMessageSchema = EventBaseSchema.extend({
1686
1750
  "repo-removed",
1687
1751
  "pr-state-changed",
1688
1752
  "draft-agent-added",
1753
+ "agent-updated",
1689
1754
  "task-added"
1690
1755
  ]),
1691
1756
  data: zod.z.union([
@@ -1703,11 +1768,53 @@ const SystemMessageSchema = EventBaseSchema.extend({
1703
1768
  // pr-state-changed
1704
1769
  DraftAgentSchema,
1705
1770
  // draft-agent-added
1771
+ AgentSchema,
1772
+ // agent-updated
1706
1773
  TaskItemSchema
1707
1774
  // task-added
1708
1775
  ]),
1709
1776
  timestamp: zod.z.string()
1710
1777
  });
1778
+ const DaemonGitlabOperationSchema = zod.z.enum([
1779
+ "listRepos",
1780
+ "listBranches",
1781
+ "createMergeRequest",
1782
+ "getMergeRequest",
1783
+ "listMergeRequests",
1784
+ "resolveGitAuthContext"
1785
+ ]);
1786
+ const DaemonGitlabRequestSchema = EventBaseSchema.extend({
1787
+ requestId: zod.z.string(),
1788
+ userId: zod.z.string(),
1789
+ gitServerId: zod.z.string(),
1790
+ operation: DaemonGitlabOperationSchema,
1791
+ payload: zod.z.record(zod.z.string(), zod.z.unknown()),
1792
+ ttlMs: zod.z.number(),
1793
+ nonce: zod.z.string()
1794
+ });
1795
+ const DaemonGitlabResponseSchema = EventBaseSchema.extend({
1796
+ requestId: zod.z.string(),
1797
+ success: zod.z.boolean(),
1798
+ data: zod.z.unknown().optional(),
1799
+ errorCode: zod.z.string().optional(),
1800
+ errorMessage: zod.z.string().optional(),
1801
+ machineId: zod.z.string(),
1802
+ executionTimeMs: zod.z.number()
1803
+ });
1804
+ const CompanionHeartbeatRequestSchema = EventBaseSchema.extend({
1805
+ machineId: zod.z.string(),
1806
+ agentId: zod.z.string(),
1807
+ chatId: zod.z.string(),
1808
+ userId: zod.z.string(),
1809
+ timestamp: zod.z.string()
1810
+ });
1811
+ const CompanionHeartbeatResponseSchema = EventBaseSchema.extend({
1812
+ taskId: zod.z.string(),
1813
+ chatId: zod.z.string()
1814
+ });
1815
+ const ResetTaskSessionSchema = EventBaseSchema.extend({
1816
+ taskId: zod.z.string()
1817
+ });
1711
1818
  const EventSchemaMap = {
1712
1819
  // App events
1713
1820
  "app-alive": AppAliveEventSchema,
@@ -1748,6 +1855,8 @@ const EventSchemaMap = {
1748
1855
  "sub-task-result-updated": SubTaskResultUpdatedEventSchema,
1749
1856
  // Repository association events
1750
1857
  "associate-repo": AssociateRepoEventDataSchema,
1858
+ // Agent info update events
1859
+ "update-agent-info": UpdateAgentInfoEventSchema,
1751
1860
  // System message events
1752
1861
  "system-message": SystemMessageSchema,
1753
1862
  // Billing events
@@ -1763,6 +1872,13 @@ const EventSchemaMap = {
1763
1872
  "workspace-file-response": WorkspaceFileResponseSchema,
1764
1873
  // RPC events
1765
1874
  "rpc-call": RpcCallEventSchema,
1875
+ // Daemon GitLab proxy events
1876
+ "daemon-gitlab-request": DaemonGitlabRequestSchema,
1877
+ "daemon-gitlab-response": DaemonGitlabResponseSchema,
1878
+ // Companion heartbeat events
1879
+ "request-companion-heartbeat": CompanionHeartbeatRequestSchema,
1880
+ "companion-heartbeat-response": CompanionHeartbeatResponseSchema,
1881
+ "reset-task-session": ResetTaskSessionSchema,
1766
1882
  // Ack events
1767
1883
  "event-ack": EventAckSchema
1768
1884
  };
@@ -1774,9 +1890,11 @@ const workerTaskEvents = [
1774
1890
  "worker-exit",
1775
1891
  "change-task-title",
1776
1892
  "update-task-agent-session-id",
1893
+ "reset-task-session",
1777
1894
  "merge-request",
1778
1895
  "merge-pr",
1779
- "associate-repo"
1896
+ "associate-repo",
1897
+ "update-agent-info"
1780
1898
  ];
1781
1899
 
1782
1900
  function userAuth(token) {
@@ -2068,10 +2186,51 @@ async function loadSystemPrompt(claudeDir, promptFile) {
2068
2186
  );
2069
2187
  }
2070
2188
  }
2071
- function replacePromptPlaceholders(template, cwd) {
2072
- return template.replace(/\{\{WORKING_DIR\}\}/g, cwd).replace(/\{\{PLATFORM\}\}/g, process.platform).replace(/\{\{OS_VERSION\}\}/g, `${os__namespace.type()} ${os__namespace.release()}`).replace(/\{\{DATE\}\}/g, (/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
2189
+ function replacePromptPlaceholders(template, cwd, extra) {
2190
+ const vars = {
2191
+ WORKING_DIR: cwd,
2192
+ PLATFORM: process.platform,
2193
+ OS_VERSION: `${os__namespace.type()} ${os__namespace.release()}`,
2194
+ DATE: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
2195
+ ...extra
2196
+ };
2197
+ let result = template.replace(
2198
+ /\{\{#if\s+(\w+)\s*(==|!=)\s*(\w+)\}\}([\s\S]*?)\{\{\/if\}\}/g,
2199
+ (_match, key, op, expected, content) => {
2200
+ const actual = vars[key] ?? "";
2201
+ const matches = op === "==" ? actual === expected : actual !== expected;
2202
+ return matches ? content : "";
2203
+ }
2204
+ );
2205
+ for (const [key, value] of Object.entries(vars)) {
2206
+ result = result.replace(new RegExp(`\\{\\{${key}\\}\\}`, "g"), value);
2207
+ }
2208
+ return result;
2073
2209
  }
2074
2210
 
2211
+ const CompanionWorkspaceFileSchema = zod.z.object({
2212
+ name: zod.z.string(),
2213
+ path: zod.z.string(),
2214
+ // relative to workspace root
2215
+ size: zod.z.number(),
2216
+ modifiedAt: zod.z.number(),
2217
+ isDirectory: zod.z.boolean()
2218
+ });
2219
+ const RegisterCompanionRequestSchema = zod.z.object({
2220
+ machineId: zod.z.string().min(1)
2221
+ });
2222
+ const RegisterCompanionResponseSchema = zod.z.object({
2223
+ agentId: zod.z.string(),
2224
+ userId: zod.z.string(),
2225
+ chatId: zod.z.string(),
2226
+ created: zod.z.boolean()
2227
+ // true = newly created, false = already existed
2228
+ });
2229
+ const CompanionEnsureResponseSchema = zod.z.object({
2230
+ agentDir: zod.z.string(),
2231
+ workspaceDir: zod.z.string()
2232
+ });
2233
+
2075
2234
  const cryptoModule = typeof globalThis.crypto !== "undefined" ? globalThis.crypto : (async () => {
2076
2235
  try {
2077
2236
  const nodeCrypto = await import('node:crypto');
@@ -2706,6 +2865,10 @@ exports.CloudJoinResultQuerySchema = CloudJoinResultQuerySchema;
2706
2865
  exports.CloudJoinStatusQuerySchema = CloudJoinStatusQuerySchema;
2707
2866
  exports.CloudMachineSchema = CloudMachineSchema;
2708
2867
  exports.CloudSchema = CloudSchema;
2868
+ exports.CompanionEnsureResponseSchema = CompanionEnsureResponseSchema;
2869
+ exports.CompanionHeartbeatRequestSchema = CompanionHeartbeatRequestSchema;
2870
+ exports.CompanionHeartbeatResponseSchema = CompanionHeartbeatResponseSchema;
2871
+ exports.CompanionWorkspaceFileSchema = CompanionWorkspaceFileSchema;
2709
2872
  exports.ConfirmUploadRequestSchema = ConfirmUploadRequestSchema;
2710
2873
  exports.ConfirmUploadResponseSchema = ConfirmUploadResponseSchema;
2711
2874
  exports.ConsumeTransactionSchema = ConsumeTransactionSchema;
@@ -2724,6 +2887,9 @@ exports.CreateTaskShareResponseSchema = CreateTaskShareResponseSchema;
2724
2887
  exports.CreateTaskShareSchema = CreateTaskShareSchema;
2725
2888
  exports.CreditExhaustedEventSchema = CreditExhaustedEventSchema;
2726
2889
  exports.CreditsPackageSchema = CreditsPackageSchema;
2890
+ exports.DaemonGitlabOperationSchema = DaemonGitlabOperationSchema;
2891
+ exports.DaemonGitlabRequestSchema = DaemonGitlabRequestSchema;
2892
+ exports.DaemonGitlabResponseSchema = DaemonGitlabResponseSchema;
2727
2893
  exports.DateSchema = DateSchema;
2728
2894
  exports.DeleteAgentResponseSchema = DeleteAgentResponseSchema;
2729
2895
  exports.DeleteOAuthServerResponseSchema = DeleteOAuthServerResponseSchema;
@@ -2780,6 +2946,8 @@ exports.ListOAuthServersQuerySchema = ListOAuthServersQuerySchema;
2780
2946
  exports.ListOAuthServersResponseSchema = ListOAuthServersResponseSchema;
2781
2947
  exports.ListPackagesQuerySchema = ListPackagesQuerySchema;
2782
2948
  exports.ListPackagesResponseSchema = ListPackagesResponseSchema;
2949
+ exports.ListRecentTasksRequestSchema = ListRecentTasksRequestSchema;
2950
+ exports.ListRecentTasksResponseSchema = ListRecentTasksResponseSchema;
2783
2951
  exports.ListRepositoriesResponseSchema = ListRepositoriesResponseSchema;
2784
2952
  exports.ListSubTasksRequestSchema = ListSubTasksRequestSchema;
2785
2953
  exports.ListSubTasksResponseSchema = ListSubTasksResponseSchema;
@@ -2823,11 +2991,15 @@ exports.PublishDraftAgentResponseSchema = PublishDraftAgentResponseSchema;
2823
2991
  exports.QueryEventsRequestSchema = QueryEventsRequestSchema;
2824
2992
  exports.RELEVANT_DEPENDENCIES = RELEVANT_DEPENDENCIES;
2825
2993
  exports.RTC_CHUNK_HEADER_SIZE = RTC_CHUNK_HEADER_SIZE;
2994
+ exports.RecentTaskSummarySchema = RecentTaskSummarySchema;
2826
2995
  exports.RechargeResponseSchema = RechargeResponseSchema;
2996
+ exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
2997
+ exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
2827
2998
  exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;
2828
2999
  exports.RepositorySchema = RepositorySchema;
2829
3000
  exports.ResetSecretRequestSchema = ResetSecretRequestSchema;
2830
3001
  exports.ResetSecretResponseSchema = ResetSecretResponseSchema;
3002
+ exports.ResetTaskSessionSchema = ResetTaskSessionSchema;
2831
3003
  exports.ResumeTaskRequestSchema = ResumeTaskRequestSchema;
2832
3004
  exports.ResumeTaskResponseSchema = ResumeTaskResponseSchema;
2833
3005
  exports.RpcCallEventSchema = RpcCallEventSchema;
@@ -2879,6 +3051,7 @@ exports.ToggleOAuthServerResponseSchema = ToggleOAuthServerResponseSchema;
2879
3051
  exports.TransactionSchema = TransactionSchema;
2880
3052
  exports.UnarchiveTaskRequestSchema = UnarchiveTaskRequestSchema;
2881
3053
  exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
3054
+ exports.UpdateAgentInfoEventSchema = UpdateAgentInfoEventSchema;
2882
3055
  exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
2883
3056
  exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
2884
3057
  exports.UpdateChatContextRequestSchema = UpdateChatContextRequestSchema;
@@ -2941,6 +3114,8 @@ exports.getAgentContext = getAgentContext;
2941
3114
  exports.getRandomBytes = getRandomBytes;
2942
3115
  exports.isAskUserMessage = isAskUserMessage;
2943
3116
  exports.isAskUserResponseMessage = isAskUserResponseMessage;
3117
+ exports.isCompanionHeartbeatMessage = isCompanionHeartbeatMessage;
3118
+ exports.isCompanionReminderMessage = isCompanionReminderMessage;
2944
3119
  exports.isSDKMessage = isSDKMessage;
2945
3120
  exports.isSDKUserMessage = isSDKUserMessage;
2946
3121
  exports.loadAgentConfig = loadAgentConfig;