@agentrix/shared 1.0.2 → 1.0.3

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
@@ -245,6 +245,8 @@ const TaskItemSchema = zod.z.object({
245
245
  // Task title (can be set by worker)
246
246
  agentSessionId: zod.z.string().nullable(),
247
247
  dataEncryptionKey: zod.z.string().nullable(),
248
+ cwd: zod.z.string().nullable(),
249
+ // Current working directory from CLI worker
248
250
  pullRequestNumber: zod.z.number().nullable(),
249
251
  pullRequestUrl: zod.z.string().nullable(),
250
252
  pullRequestState: zod.z.enum(["open", "closed", "merged"]).nullable(),
@@ -480,6 +482,8 @@ const LocalMachineSchema = zod.z.object({
480
482
  approval: zod.z.string(),
481
483
  dataEncryptionKey: zod.z.string(),
482
484
  // per-user sealed-box key (base64)
485
+ controlPort: zod.z.number().nullable(),
486
+ // CLI control server port for browser detection
483
487
  createdAt: zod.z.string(),
484
488
  // ISO 8601 string
485
489
  updatedAt: zod.z.string()
@@ -588,7 +592,9 @@ const RepositorySchema = zod.z.object({
588
592
  description: zod.z.string().nullable(),
589
593
  url: zod.z.string().url(),
590
594
  createdAt: DateSchema,
591
- updatedAt: DateSchema
595
+ updatedAt: DateSchema,
596
+ gitServerId: zod.z.string()
597
+ // Git server ID (github, gitlab, etc.)
592
598
  });
593
599
  const ListRepositoriesResponseSchema = zod.z.object({
594
600
  repositories: zod.z.array(RepositorySchema)
@@ -845,7 +851,8 @@ const ApiServerAliveEventSchema = EventBaseSchema.extend({
845
851
  });
846
852
  const MachineAliveEventSchema = EventBaseSchema.extend({
847
853
  machineId: zod.z.string(),
848
- timestamp: zod.z.string()
854
+ timestamp: zod.z.string(),
855
+ controlPort: zod.z.number().optional()
849
856
  });
850
857
  const ShutdownMachineSchema = EventBaseSchema.extend({
851
858
  machineId: zod.z.string(),
@@ -1050,7 +1057,8 @@ const WorkspaceFileResponseSchema = EventBaseSchema.extend({
1050
1057
  });
1051
1058
  const UpdateTaskAgentSessionIdEventSchema = EventBaseSchema.extend({
1052
1059
  taskId: zod.z.string(),
1053
- agentSessionId: zod.z.string()
1060
+ agentSessionId: zod.z.string(),
1061
+ cwd: zod.z.string().optional()
1054
1062
  });
1055
1063
  const MergeRequestEventSchema = EventBaseSchema.extend({
1056
1064
  taskId: zod.z.string(),
package/dist/index.d.cts CHANGED
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
277
277
  avatarUrl: string;
278
278
  }>, "many">>;
279
279
  }, "strip", z.ZodTypeAny, {
280
+ encryptedSecret: string;
280
281
  id: string;
281
282
  username: string;
282
283
  email: string | null;
283
284
  avatar: string | null;
284
- encryptedSecret: string;
285
285
  secretSalt: string;
286
286
  createdAt: string;
287
287
  oauthAccounts?: {
@@ -291,11 +291,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
291
291
  avatarUrl: string;
292
292
  }[] | undefined;
293
293
  }, {
294
+ encryptedSecret: string;
294
295
  id: string;
295
296
  username: string;
296
297
  email: string | null;
297
298
  avatar: string | null;
298
- encryptedSecret: string;
299
299
  secretSalt: string;
300
300
  createdAt: string;
301
301
  oauthAccounts?: {
@@ -307,11 +307,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
307
307
  }>;
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  user: {
310
+ encryptedSecret: string;
310
311
  id: string;
311
312
  username: string;
312
313
  email: string | null;
313
314
  avatar: string | null;
314
- encryptedSecret: string;
315
315
  secretSalt: string;
316
316
  createdAt: string;
317
317
  oauthAccounts?: {
@@ -323,11 +323,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
323
323
  };
324
324
  }, {
325
325
  user: {
326
+ encryptedSecret: string;
326
327
  id: string;
327
328
  username: string;
328
329
  email: string | null;
329
330
  avatar: string | null;
330
- encryptedSecret: string;
331
331
  secretSalt: string;
332
332
  createdAt: string;
333
333
  oauthAccounts?: {
@@ -599,13 +599,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
599
599
  token: z.ZodString;
600
600
  content: z.ZodString;
601
601
  }, "strip", z.ZodTypeAny, {
602
- id: string;
603
602
  token: string;
603
+ id: string;
604
604
  state: "authorized";
605
605
  content: string;
606
606
  }, {
607
- id: string;
608
607
  token: string;
608
+ id: string;
609
609
  state: "authorized";
610
610
  content: string;
611
611
  }>;
@@ -908,6 +908,7 @@ declare const TaskItemSchema: z.ZodObject<{
908
908
  title: z.ZodNullable<z.ZodString>;
909
909
  agentSessionId: z.ZodNullable<z.ZodString>;
910
910
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
911
+ cwd: z.ZodNullable<z.ZodString>;
911
912
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
912
913
  pullRequestUrl: z.ZodNullable<z.ZodString>;
913
914
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -955,6 +956,7 @@ declare const TaskItemSchema: z.ZodObject<{
955
956
  cloudId: string | null;
956
957
  userId: string;
957
958
  chatId: string;
959
+ cwd: string | null;
958
960
  repositoryId: string | null;
959
961
  baseBranch: string | null;
960
962
  dataEncryptionKey: string | null;
@@ -983,6 +985,7 @@ declare const TaskItemSchema: z.ZodObject<{
983
985
  cloudId: string | null;
984
986
  userId: string;
985
987
  chatId: string;
988
+ cwd: string | null;
986
989
  repositoryId: string | null;
987
990
  baseBranch: string | null;
988
991
  dataEncryptionKey: string | null;
@@ -1022,6 +1025,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1022
1025
  title: z.ZodNullable<z.ZodString>;
1023
1026
  agentSessionId: z.ZodNullable<z.ZodString>;
1024
1027
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
1028
+ cwd: z.ZodNullable<z.ZodString>;
1025
1029
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1026
1030
  pullRequestUrl: z.ZodNullable<z.ZodString>;
1027
1031
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -1069,6 +1073,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1069
1073
  cloudId: string | null;
1070
1074
  userId: string;
1071
1075
  chatId: string;
1076
+ cwd: string | null;
1072
1077
  repositoryId: string | null;
1073
1078
  baseBranch: string | null;
1074
1079
  dataEncryptionKey: string | null;
@@ -1097,6 +1102,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1097
1102
  cloudId: string | null;
1098
1103
  userId: string;
1099
1104
  chatId: string;
1105
+ cwd: string | null;
1100
1106
  repositoryId: string | null;
1101
1107
  baseBranch: string | null;
1102
1108
  dataEncryptionKey: string | null;
@@ -1127,6 +1133,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1127
1133
  cloudId: string | null;
1128
1134
  userId: string;
1129
1135
  chatId: string;
1136
+ cwd: string | null;
1130
1137
  repositoryId: string | null;
1131
1138
  baseBranch: string | null;
1132
1139
  dataEncryptionKey: string | null;
@@ -1157,6 +1164,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1157
1164
  cloudId: string | null;
1158
1165
  userId: string;
1159
1166
  chatId: string;
1167
+ cwd: string | null;
1160
1168
  repositoryId: string | null;
1161
1169
  baseBranch: string | null;
1162
1170
  dataEncryptionKey: string | null;
@@ -2122,6 +2130,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2122
2130
  title: z.ZodNullable<z.ZodString>;
2123
2131
  agentSessionId: z.ZodNullable<z.ZodString>;
2124
2132
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
2133
+ cwd: z.ZodNullable<z.ZodString>;
2125
2134
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
2126
2135
  pullRequestUrl: z.ZodNullable<z.ZodString>;
2127
2136
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -2169,6 +2178,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2169
2178
  cloudId: string | null;
2170
2179
  userId: string;
2171
2180
  chatId: string;
2181
+ cwd: string | null;
2172
2182
  repositoryId: string | null;
2173
2183
  baseBranch: string | null;
2174
2184
  dataEncryptionKey: string | null;
@@ -2197,6 +2207,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2197
2207
  cloudId: string | null;
2198
2208
  userId: string;
2199
2209
  chatId: string;
2210
+ cwd: string | null;
2200
2211
  repositoryId: string | null;
2201
2212
  baseBranch: string | null;
2202
2213
  dataEncryptionKey: string | null;
@@ -2227,6 +2238,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2227
2238
  cloudId: string | null;
2228
2239
  userId: string;
2229
2240
  chatId: string;
2241
+ cwd: string | null;
2230
2242
  repositoryId: string | null;
2231
2243
  baseBranch: string | null;
2232
2244
  dataEncryptionKey: string | null;
@@ -2257,6 +2269,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2257
2269
  cloudId: string | null;
2258
2270
  userId: string;
2259
2271
  chatId: string;
2272
+ cwd: string | null;
2260
2273
  repositoryId: string | null;
2261
2274
  baseBranch: string | null;
2262
2275
  dataEncryptionKey: string | null;
@@ -2311,9 +2324,9 @@ declare const AgentSchema: z.ZodObject<{
2311
2324
  enable: z.ZodBoolean;
2312
2325
  }, "strip", z.ZodTypeAny, {
2313
2326
  type: "claude" | "codex";
2327
+ signature: string | null;
2314
2328
  id: string;
2315
2329
  avatar: string | null;
2316
- signature: string | null;
2317
2330
  userId: string;
2318
2331
  name: string;
2319
2332
  description: string | null;
@@ -2326,9 +2339,9 @@ declare const AgentSchema: z.ZodObject<{
2326
2339
  enable: boolean;
2327
2340
  }, {
2328
2341
  type: "claude" | "codex";
2342
+ signature: string | null;
2329
2343
  id: string;
2330
2344
  avatar: string | null;
2331
- signature: string | null;
2332
2345
  userId: string;
2333
2346
  name: string;
2334
2347
  description: string | null;
@@ -2362,9 +2375,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2362
2375
  enable: z.ZodBoolean;
2363
2376
  }, "strip", z.ZodTypeAny, {
2364
2377
  type: "claude" | "codex";
2378
+ signature: string | null;
2365
2379
  id: string;
2366
2380
  avatar: string | null;
2367
- signature: string | null;
2368
2381
  userId: string;
2369
2382
  name: string;
2370
2383
  description: string | null;
@@ -2377,9 +2390,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2377
2390
  enable: boolean;
2378
2391
  }, {
2379
2392
  type: "claude" | "codex";
2393
+ signature: string | null;
2380
2394
  id: string;
2381
2395
  avatar: string | null;
2382
- signature: string | null;
2383
2396
  userId: string;
2384
2397
  name: string;
2385
2398
  description: string | null;
@@ -2394,9 +2407,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2394
2407
  }, "strip", z.ZodTypeAny, {
2395
2408
  agents: {
2396
2409
  type: "claude" | "codex";
2410
+ signature: string | null;
2397
2411
  id: string;
2398
2412
  avatar: string | null;
2399
- signature: string | null;
2400
2413
  userId: string;
2401
2414
  name: string;
2402
2415
  description: string | null;
@@ -2411,9 +2424,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2411
2424
  }, {
2412
2425
  agents: {
2413
2426
  type: "claude" | "codex";
2427
+ signature: string | null;
2414
2428
  id: string;
2415
2429
  avatar: string | null;
2416
- signature: string | null;
2417
2430
  userId: string;
2418
2431
  name: string;
2419
2432
  description: string | null;
@@ -2447,9 +2460,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2447
2460
  enable: z.ZodBoolean;
2448
2461
  }, "strip", z.ZodTypeAny, {
2449
2462
  type: "claude" | "codex";
2463
+ signature: string | null;
2450
2464
  id: string;
2451
2465
  avatar: string | null;
2452
- signature: string | null;
2453
2466
  userId: string;
2454
2467
  name: string;
2455
2468
  description: string | null;
@@ -2462,9 +2475,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2462
2475
  enable: boolean;
2463
2476
  }, {
2464
2477
  type: "claude" | "codex";
2478
+ signature: string | null;
2465
2479
  id: string;
2466
2480
  avatar: string | null;
2467
- signature: string | null;
2468
2481
  userId: string;
2469
2482
  name: string;
2470
2483
  description: string | null;
@@ -2496,15 +2509,15 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
2496
2509
  guildMsg: string;
2497
2510
  placeholderMsg: string;
2498
2511
  supportLocal: boolean;
2499
- avatar?: string | undefined;
2500
2512
  signature?: string | undefined;
2513
+ avatar?: string | undefined;
2501
2514
  description?: string | undefined;
2502
2515
  gitRepoId?: string | undefined;
2503
2516
  }, {
2504
2517
  type: "claude" | "codex";
2505
2518
  name: string;
2506
- avatar?: string | undefined;
2507
2519
  signature?: string | undefined;
2520
+ avatar?: string | undefined;
2508
2521
  description?: string | undefined;
2509
2522
  guildMsg?: string | undefined;
2510
2523
  placeholderMsg?: string | undefined;
@@ -2532,9 +2545,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2532
2545
  enable: z.ZodBoolean;
2533
2546
  }, "strip", z.ZodTypeAny, {
2534
2547
  type: "claude" | "codex";
2548
+ signature: string | null;
2535
2549
  id: string;
2536
2550
  avatar: string | null;
2537
- signature: string | null;
2538
2551
  userId: string;
2539
2552
  name: string;
2540
2553
  description: string | null;
@@ -2547,9 +2560,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2547
2560
  enable: boolean;
2548
2561
  }, {
2549
2562
  type: "claude" | "codex";
2563
+ signature: string | null;
2550
2564
  id: string;
2551
2565
  avatar: string | null;
2552
- signature: string | null;
2553
2566
  userId: string;
2554
2567
  name: string;
2555
2568
  description: string | null;
@@ -2577,8 +2590,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2577
2590
  supportLocal: z.ZodOptional<z.ZodBoolean>;
2578
2591
  }, "strip", z.ZodTypeAny, {
2579
2592
  type?: "claude" | "codex" | undefined;
2580
- avatar?: string | null | undefined;
2581
2593
  signature?: string | null | undefined;
2594
+ avatar?: string | null | undefined;
2582
2595
  name?: string | undefined;
2583
2596
  description?: string | null | undefined;
2584
2597
  guildMsg?: string | undefined;
@@ -2587,8 +2600,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2587
2600
  supportLocal?: boolean | undefined;
2588
2601
  }, {
2589
2602
  type?: "claude" | "codex" | undefined;
2590
- avatar?: string | null | undefined;
2591
2603
  signature?: string | null | undefined;
2604
+ avatar?: string | null | undefined;
2592
2605
  name?: string | undefined;
2593
2606
  description?: string | null | undefined;
2594
2607
  guildMsg?: string | undefined;
@@ -2617,9 +2630,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2617
2630
  enable: z.ZodBoolean;
2618
2631
  }, "strip", z.ZodTypeAny, {
2619
2632
  type: "claude" | "codex";
2633
+ signature: string | null;
2620
2634
  id: string;
2621
2635
  avatar: string | null;
2622
- signature: string | null;
2623
2636
  userId: string;
2624
2637
  name: string;
2625
2638
  description: string | null;
@@ -2632,9 +2645,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2632
2645
  enable: boolean;
2633
2646
  }, {
2634
2647
  type: "claude" | "codex";
2648
+ signature: string | null;
2635
2649
  id: string;
2636
2650
  avatar: string | null;
2637
- signature: string | null;
2638
2651
  userId: string;
2639
2652
  name: string;
2640
2653
  description: string | null;
@@ -2677,6 +2690,7 @@ declare const LocalMachineSchema: z.ZodObject<{
2677
2690
  metadata: z.ZodNullable<z.ZodString>;
2678
2691
  approval: z.ZodString;
2679
2692
  dataEncryptionKey: z.ZodString;
2693
+ controlPort: z.ZodNullable<z.ZodNumber>;
2680
2694
  createdAt: z.ZodString;
2681
2695
  updatedAt: z.ZodString;
2682
2696
  }, "strip", z.ZodTypeAny, {
@@ -2688,6 +2702,7 @@ declare const LocalMachineSchema: z.ZodObject<{
2688
2702
  owner: string;
2689
2703
  metadata: string | null;
2690
2704
  approval: string;
2705
+ controlPort: number | null;
2691
2706
  }, {
2692
2707
  status: string;
2693
2708
  id: string;
@@ -2697,6 +2712,7 @@ declare const LocalMachineSchema: z.ZodObject<{
2697
2712
  owner: string;
2698
2713
  metadata: string | null;
2699
2714
  approval: string;
2715
+ controlPort: number | null;
2700
2716
  }>;
2701
2717
  type LocalMachine = z.infer<typeof LocalMachineSchema>;
2702
2718
  /**
@@ -2873,6 +2889,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2873
2889
  metadata: z.ZodNullable<z.ZodString>;
2874
2890
  approval: z.ZodString;
2875
2891
  dataEncryptionKey: z.ZodString;
2892
+ controlPort: z.ZodNullable<z.ZodNumber>;
2876
2893
  createdAt: z.ZodString;
2877
2894
  updatedAt: z.ZodString;
2878
2895
  }, "strip", z.ZodTypeAny, {
@@ -2884,6 +2901,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2884
2901
  owner: string;
2885
2902
  metadata: string | null;
2886
2903
  approval: string;
2904
+ controlPort: number | null;
2887
2905
  }, {
2888
2906
  status: string;
2889
2907
  id: string;
@@ -2893,6 +2911,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2893
2911
  owner: string;
2894
2912
  metadata: string | null;
2895
2913
  approval: string;
2914
+ controlPort: number | null;
2896
2915
  }>, "many">;
2897
2916
  }, "strip", z.ZodTypeAny, {
2898
2917
  clouds: {
@@ -2921,6 +2940,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2921
2940
  owner: string;
2922
2941
  metadata: string | null;
2923
2942
  approval: string;
2943
+ controlPort: number | null;
2924
2944
  }[];
2925
2945
  }, {
2926
2946
  clouds: {
@@ -2949,6 +2969,7 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2949
2969
  owner: string;
2950
2970
  metadata: string | null;
2951
2971
  approval: string;
2972
+ controlPort: number | null;
2952
2973
  }[];
2953
2974
  }>;
2954
2975
  type ListMachinesResponse = z.infer<typeof ListMachinesResponseSchema>;
@@ -3270,6 +3291,7 @@ declare const RepositorySchema: z.ZodObject<{
3270
3291
  url: z.ZodString;
3271
3292
  createdAt: z.ZodString;
3272
3293
  updatedAt: z.ZodString;
3294
+ gitServerId: z.ZodString;
3273
3295
  }, "strip", z.ZodTypeAny, {
3274
3296
  id: string;
3275
3297
  createdAt: string;
@@ -3277,10 +3299,11 @@ declare const RepositorySchema: z.ZodObject<{
3277
3299
  name: string;
3278
3300
  description: string | null;
3279
3301
  owner: string;
3280
- url: string;
3281
3302
  fullName: string;
3282
3303
  defaultBranch: string;
3283
3304
  isPrivate: boolean;
3305
+ url: string;
3306
+ gitServerId: string;
3284
3307
  }, {
3285
3308
  id: string;
3286
3309
  createdAt: string;
@@ -3288,10 +3311,11 @@ declare const RepositorySchema: z.ZodObject<{
3288
3311
  name: string;
3289
3312
  description: string | null;
3290
3313
  owner: string;
3291
- url: string;
3292
3314
  fullName: string;
3293
3315
  defaultBranch: string;
3294
3316
  isPrivate: boolean;
3317
+ url: string;
3318
+ gitServerId: string;
3295
3319
  }>;
3296
3320
  type Repository = z.infer<typeof RepositorySchema>;
3297
3321
  /**
@@ -3309,6 +3333,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3309
3333
  url: z.ZodString;
3310
3334
  createdAt: z.ZodString;
3311
3335
  updatedAt: z.ZodString;
3336
+ gitServerId: z.ZodString;
3312
3337
  }, "strip", z.ZodTypeAny, {
3313
3338
  id: string;
3314
3339
  createdAt: string;
@@ -3316,10 +3341,11 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3316
3341
  name: string;
3317
3342
  description: string | null;
3318
3343
  owner: string;
3319
- url: string;
3320
3344
  fullName: string;
3321
3345
  defaultBranch: string;
3322
3346
  isPrivate: boolean;
3347
+ url: string;
3348
+ gitServerId: string;
3323
3349
  }, {
3324
3350
  id: string;
3325
3351
  createdAt: string;
@@ -3327,10 +3353,11 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3327
3353
  name: string;
3328
3354
  description: string | null;
3329
3355
  owner: string;
3330
- url: string;
3331
3356
  fullName: string;
3332
3357
  defaultBranch: string;
3333
3358
  isPrivate: boolean;
3359
+ url: string;
3360
+ gitServerId: string;
3334
3361
  }>, "many">;
3335
3362
  }, "strip", z.ZodTypeAny, {
3336
3363
  repositories: {
@@ -3340,10 +3367,11 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3340
3367
  name: string;
3341
3368
  description: string | null;
3342
3369
  owner: string;
3343
- url: string;
3344
3370
  fullName: string;
3345
3371
  defaultBranch: string;
3346
3372
  isPrivate: boolean;
3373
+ url: string;
3374
+ gitServerId: string;
3347
3375
  }[];
3348
3376
  }, {
3349
3377
  repositories: {
@@ -3353,10 +3381,11 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3353
3381
  name: string;
3354
3382
  description: string | null;
3355
3383
  owner: string;
3356
- url: string;
3357
3384
  fullName: string;
3358
3385
  defaultBranch: string;
3359
3386
  isPrivate: boolean;
3387
+ url: string;
3388
+ gitServerId: string;
3360
3389
  }[];
3361
3390
  }>;
3362
3391
  type ListRepositoriesResponse = z.infer<typeof ListRepositoriesResponseSchema>;
@@ -3375,6 +3404,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3375
3404
  url: z.ZodString;
3376
3405
  createdAt: z.ZodString;
3377
3406
  updatedAt: z.ZodString;
3407
+ gitServerId: z.ZodString;
3378
3408
  }, "strip", z.ZodTypeAny, {
3379
3409
  id: string;
3380
3410
  createdAt: string;
@@ -3382,10 +3412,11 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3382
3412
  name: string;
3383
3413
  description: string | null;
3384
3414
  owner: string;
3385
- url: string;
3386
3415
  fullName: string;
3387
3416
  defaultBranch: string;
3388
3417
  isPrivate: boolean;
3418
+ url: string;
3419
+ gitServerId: string;
3389
3420
  }, {
3390
3421
  id: string;
3391
3422
  createdAt: string;
@@ -3393,10 +3424,11 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3393
3424
  name: string;
3394
3425
  description: string | null;
3395
3426
  owner: string;
3396
- url: string;
3397
3427
  fullName: string;
3398
3428
  defaultBranch: string;
3399
3429
  isPrivate: boolean;
3430
+ url: string;
3431
+ gitServerId: string;
3400
3432
  }>;
3401
3433
  }, "strip", z.ZodTypeAny, {
3402
3434
  repository: {
@@ -3406,10 +3438,11 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3406
3438
  name: string;
3407
3439
  description: string | null;
3408
3440
  owner: string;
3409
- url: string;
3410
3441
  fullName: string;
3411
3442
  defaultBranch: string;
3412
3443
  isPrivate: boolean;
3444
+ url: string;
3445
+ gitServerId: string;
3413
3446
  };
3414
3447
  }, {
3415
3448
  repository: {
@@ -3419,10 +3452,11 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3419
3452
  name: string;
3420
3453
  description: string | null;
3421
3454
  owner: string;
3422
- url: string;
3423
3455
  fullName: string;
3424
3456
  defaultBranch: string;
3425
3457
  isPrivate: boolean;
3458
+ url: string;
3459
+ gitServerId: string;
3426
3460
  };
3427
3461
  }>;
3428
3462
  type GetRepositoryResponse = z.infer<typeof GetRepositoryResponseSchema>;
@@ -3734,8 +3768,8 @@ declare const OAuthServerSchema: z.ZodObject<{
3734
3768
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3735
3769
  }, "strip", z.ZodTypeAny, {
3736
3770
  id: string;
3737
- provider: string;
3738
3771
  createdAt: string;
3772
+ provider: string;
3739
3773
  updatedAt: string;
3740
3774
  displayName: string;
3741
3775
  authorizeUrl: string;
@@ -3750,8 +3784,8 @@ declare const OAuthServerSchema: z.ZodObject<{
3750
3784
  avatar?: string | undefined;
3751
3785
  }, {
3752
3786
  id: string;
3753
- provider: string;
3754
3787
  createdAt: string | Date;
3788
+ provider: string;
3755
3789
  updatedAt: string | Date;
3756
3790
  displayName: string;
3757
3791
  authorizeUrl: string;
@@ -3780,16 +3814,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
3780
3814
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3781
3815
  }, "strip", z.ZodTypeAny, {
3782
3816
  id: string;
3783
- provider: string;
3784
3817
  createdAt: string;
3818
+ provider: string;
3785
3819
  updatedAt: string;
3786
3820
  displayName: string;
3787
3821
  enabled: boolean;
3788
3822
  avatar?: string | undefined;
3789
3823
  }, {
3790
3824
  id: string;
3791
- provider: string;
3792
3825
  createdAt: string | Date;
3826
+ provider: string;
3793
3827
  updatedAt: string | Date;
3794
3828
  displayName: string;
3795
3829
  enabled: boolean;
@@ -3855,8 +3889,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3855
3889
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3856
3890
  }, "strip", z.ZodTypeAny, {
3857
3891
  id: string;
3858
- provider: string;
3859
3892
  createdAt: string;
3893
+ provider: string;
3860
3894
  updatedAt: string;
3861
3895
  displayName: string;
3862
3896
  authorizeUrl: string;
@@ -3871,8 +3905,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3871
3905
  avatar?: string | undefined;
3872
3906
  }, {
3873
3907
  id: string;
3874
- provider: string;
3875
3908
  createdAt: string | Date;
3909
+ provider: string;
3876
3910
  updatedAt: string | Date;
3877
3911
  displayName: string;
3878
3912
  authorizeUrl: string;
@@ -3916,8 +3950,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3916
3950
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3917
3951
  }, "strip", z.ZodTypeAny, {
3918
3952
  id: string;
3919
- provider: string;
3920
3953
  createdAt: string;
3954
+ provider: string;
3921
3955
  updatedAt: string;
3922
3956
  displayName: string;
3923
3957
  authorizeUrl: string;
@@ -3932,8 +3966,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3932
3966
  avatar?: string | undefined;
3933
3967
  }, {
3934
3968
  id: string;
3935
- provider: string;
3936
3969
  createdAt: string | Date;
3970
+ provider: string;
3937
3971
  updatedAt: string | Date;
3938
3972
  displayName: string;
3939
3973
  authorizeUrl: string;
@@ -3969,8 +4003,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
3969
4003
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3970
4004
  }, "strip", z.ZodTypeAny, {
3971
4005
  id: string;
3972
- provider: string;
3973
4006
  createdAt: string;
4007
+ provider: string;
3974
4008
  updatedAt: string;
3975
4009
  displayName: string;
3976
4010
  authorizeUrl: string;
@@ -3985,8 +4019,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
3985
4019
  avatar?: string | undefined;
3986
4020
  }, {
3987
4021
  id: string;
3988
- provider: string;
3989
4022
  createdAt: string | Date;
4023
+ provider: string;
3990
4024
  updatedAt: string | Date;
3991
4025
  displayName: string;
3992
4026
  authorizeUrl: string;
@@ -4060,8 +4094,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4060
4094
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4061
4095
  }, "strip", z.ZodTypeAny, {
4062
4096
  id: string;
4063
- provider: string;
4064
4097
  createdAt: string;
4098
+ provider: string;
4065
4099
  updatedAt: string;
4066
4100
  displayName: string;
4067
4101
  authorizeUrl: string;
@@ -4076,8 +4110,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4076
4110
  avatar?: string | undefined;
4077
4111
  }, {
4078
4112
  id: string;
4079
- provider: string;
4080
4113
  createdAt: string | Date;
4114
+ provider: string;
4081
4115
  updatedAt: string | Date;
4082
4116
  displayName: string;
4083
4117
  authorizeUrl: string;
@@ -4132,8 +4166,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4132
4166
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4133
4167
  }, "strip", z.ZodTypeAny, {
4134
4168
  id: string;
4135
- provider: string;
4136
4169
  createdAt: string;
4170
+ provider: string;
4137
4171
  updatedAt: string;
4138
4172
  displayName: string;
4139
4173
  authorizeUrl: string;
@@ -4148,8 +4182,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4148
4182
  avatar?: string | undefined;
4149
4183
  }, {
4150
4184
  id: string;
4151
- provider: string;
4152
4185
  createdAt: string | Date;
4186
+ provider: string;
4153
4187
  updatedAt: string | Date;
4154
4188
  displayName: string;
4155
4189
  authorizeUrl: string;
@@ -4177,16 +4211,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
4177
4211
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4178
4212
  }, "strip", z.ZodTypeAny, {
4179
4213
  id: string;
4180
- provider: string;
4181
4214
  createdAt: string;
4215
+ provider: string;
4182
4216
  updatedAt: string;
4183
4217
  displayName: string;
4184
4218
  enabled: boolean;
4185
4219
  avatar?: string | undefined;
4186
4220
  }, {
4187
4221
  id: string;
4188
- provider: string;
4189
4222
  createdAt: string | Date;
4223
+ provider: string;
4190
4224
  updatedAt: string | Date;
4191
4225
  displayName: string;
4192
4226
  enabled: boolean;
@@ -4987,14 +5021,17 @@ declare const MachineAliveEventSchema: z.ZodObject<{
4987
5021
  } & {
4988
5022
  machineId: z.ZodString;
4989
5023
  timestamp: z.ZodString;
5024
+ controlPort: z.ZodOptional<z.ZodNumber>;
4990
5025
  }, "strip", z.ZodTypeAny, {
4991
5026
  machineId: string;
4992
5027
  eventId: string;
4993
5028
  timestamp: string;
5029
+ controlPort?: number | undefined;
4994
5030
  }, {
4995
5031
  machineId: string;
4996
5032
  eventId: string;
4997
5033
  timestamp: string;
5034
+ controlPort?: number | undefined;
4998
5035
  }>;
4999
5036
  type MachineAliveEventData = z.infer<typeof MachineAliveEventSchema>;
5000
5037
  declare const ShutdownMachineSchema: z.ZodObject<{
@@ -5710,14 +5747,17 @@ declare const UpdateTaskAgentSessionIdEventSchema: z.ZodObject<{
5710
5747
  } & {
5711
5748
  taskId: z.ZodString;
5712
5749
  agentSessionId: z.ZodString;
5750
+ cwd: z.ZodOptional<z.ZodString>;
5713
5751
  }, "strip", z.ZodTypeAny, {
5714
5752
  taskId: string;
5715
5753
  agentSessionId: string;
5716
5754
  eventId: string;
5755
+ cwd?: string | undefined;
5717
5756
  }, {
5718
5757
  taskId: string;
5719
5758
  agentSessionId: string;
5720
5759
  eventId: string;
5760
+ cwd?: string | undefined;
5721
5761
  }>;
5722
5762
  type UpdateTaskAgentSessionIdEventData = z.infer<typeof UpdateTaskAgentSessionIdEventSchema>;
5723
5763
  declare const MergeRequestEventSchema: z.ZodObject<{
@@ -5843,6 +5883,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5843
5883
  url: z.ZodString;
5844
5884
  createdAt: z.ZodString;
5845
5885
  updatedAt: z.ZodString;
5886
+ gitServerId: z.ZodString;
5846
5887
  }, "strip", z.ZodTypeAny, {
5847
5888
  id: string;
5848
5889
  createdAt: string;
@@ -5850,10 +5891,11 @@ declare const SystemMessageSchema: z.ZodObject<{
5850
5891
  name: string;
5851
5892
  description: string | null;
5852
5893
  owner: string;
5853
- url: string;
5854
5894
  fullName: string;
5855
5895
  defaultBranch: string;
5856
5896
  isPrivate: boolean;
5897
+ url: string;
5898
+ gitServerId: string;
5857
5899
  }, {
5858
5900
  id: string;
5859
5901
  createdAt: string;
@@ -5861,10 +5903,11 @@ declare const SystemMessageSchema: z.ZodObject<{
5861
5903
  name: string;
5862
5904
  description: string | null;
5863
5905
  owner: string;
5864
- url: string;
5865
5906
  fullName: string;
5866
5907
  defaultBranch: string;
5867
5908
  isPrivate: boolean;
5909
+ url: string;
5910
+ gitServerId: string;
5868
5911
  }>, z.ZodObject<{
5869
5912
  taskId: z.ZodString;
5870
5913
  pullRequestNumber: z.ZodNumber;
@@ -5911,10 +5954,11 @@ declare const SystemMessageSchema: z.ZodObject<{
5911
5954
  name: string;
5912
5955
  description: string | null;
5913
5956
  owner: string;
5914
- url: string;
5915
5957
  fullName: string;
5916
5958
  defaultBranch: string;
5917
5959
  isPrivate: boolean;
5960
+ url: string;
5961
+ gitServerId: string;
5918
5962
  } | {
5919
5963
  id: string;
5920
5964
  } | {
@@ -5952,10 +5996,11 @@ declare const SystemMessageSchema: z.ZodObject<{
5952
5996
  name: string;
5953
5997
  description: string | null;
5954
5998
  owner: string;
5955
- url: string;
5956
5999
  fullName: string;
5957
6000
  defaultBranch: string;
5958
6001
  isPrivate: boolean;
6002
+ url: string;
6003
+ gitServerId: string;
5959
6004
  } | {
5960
6005
  id: string;
5961
6006
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrix/shared",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Shared types and schemas for Agentrix projects",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.cts",