@agentuity/core 2.0.14 → 2.0.15

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 (58) hide show
  1. package/dist/services/aigateway/api-reference.d.ts +4 -0
  2. package/dist/services/aigateway/api-reference.d.ts.map +1 -0
  3. package/dist/services/aigateway/api-reference.js +146 -0
  4. package/dist/services/aigateway/api-reference.js.map +1 -0
  5. package/dist/services/aigateway/index.d.ts +2 -0
  6. package/dist/services/aigateway/index.d.ts.map +1 -0
  7. package/dist/services/aigateway/index.js +2 -0
  8. package/dist/services/aigateway/index.js.map +1 -0
  9. package/dist/services/aigateway/service.d.ts +221 -0
  10. package/dist/services/aigateway/service.d.ts.map +1 -0
  11. package/dist/services/aigateway/service.js +280 -0
  12. package/dist/services/aigateway/service.js.map +1 -0
  13. package/dist/services/api-reference.d.ts +1 -0
  14. package/dist/services/api-reference.d.ts.map +1 -1
  15. package/dist/services/api-reference.js.map +1 -1
  16. package/dist/services/coder/client.d.ts +5 -1
  17. package/dist/services/coder/client.d.ts.map +1 -1
  18. package/dist/services/coder/client.js +8 -1
  19. package/dist/services/coder/client.js.map +1 -1
  20. package/dist/services/coder/protocol.d.ts +1 -1
  21. package/dist/services/coder/sessions.d.ts +2 -0
  22. package/dist/services/coder/sessions.d.ts.map +1 -1
  23. package/dist/services/coder/skills.d.ts +4 -1
  24. package/dist/services/coder/skills.d.ts.map +1 -1
  25. package/dist/services/coder/skills.js +14 -1
  26. package/dist/services/coder/skills.js.map +1 -1
  27. package/dist/services/coder/types.d.ts +64 -8
  28. package/dist/services/coder/types.d.ts.map +1 -1
  29. package/dist/services/coder/types.js +36 -1
  30. package/dist/services/coder/types.js.map +1 -1
  31. package/dist/services/config.d.ts +1 -0
  32. package/dist/services/config.d.ts.map +1 -1
  33. package/dist/services/config.js +2 -0
  34. package/dist/services/config.js.map +1 -1
  35. package/dist/services/index.d.ts +1 -0
  36. package/dist/services/index.d.ts.map +1 -1
  37. package/dist/services/index.js +1 -0
  38. package/dist/services/index.js.map +1 -1
  39. package/dist/services/keyvalue/service.d.ts +2 -2
  40. package/dist/services/project/deploy.d.ts +2 -2
  41. package/dist/services/sandbox/list.d.ts +1 -1
  42. package/dist/services/sandbox/run.d.ts +4 -4
  43. package/dist/services/sandbox/types.d.ts +8 -8
  44. package/dist/services/session/events.d.ts +2 -2
  45. package/dist/services/stats.d.ts +1 -1
  46. package/dist/services/stream/service.d.ts +2 -2
  47. package/dist/services/vector/service.d.ts +2 -2
  48. package/package.json +2 -2
  49. package/src/env.d.ts +6 -0
  50. package/src/services/aigateway/api-reference.ts +167 -0
  51. package/src/services/aigateway/index.ts +24 -0
  52. package/src/services/aigateway/service.ts +355 -0
  53. package/src/services/api-reference.ts +1 -0
  54. package/src/services/coder/client.ts +10 -0
  55. package/src/services/coder/skills.ts +19 -0
  56. package/src/services/coder/types.ts +51 -1
  57. package/src/services/config.ts +2 -0
  58. package/src/services/index.ts +1 -0
@@ -27,11 +27,17 @@ export declare const CoderSessionBucketSchema: z.ZodEnum<{
27
27
  history: "history";
28
28
  }>;
29
29
  export type CoderSessionBucket = z.infer<typeof CoderSessionBucketSchema>;
30
+ export declare const CoderWorkspaceSystemPromptModeSchema: z.ZodEnum<{
31
+ append: "append";
32
+ overwrite: "overwrite";
33
+ }>;
34
+ export type CoderWorkspaceSystemPromptMode = z.infer<typeof CoderWorkspaceSystemPromptModeSchema>;
30
35
  export declare const CoderSkillRefSchema: z.ZodObject<{
31
36
  skillId: z.ZodString;
32
37
  repo: z.ZodString;
33
38
  name: z.ZodOptional<z.ZodString>;
34
39
  url: z.ZodOptional<z.ZodString>;
40
+ content: z.ZodOptional<z.ZodString>;
35
41
  }, z.core.$strip>;
36
42
  export type CoderSkillRef = z.infer<typeof CoderSkillRefSchema>;
37
43
  export declare const CoderSessionRepositoryRefSchema: z.ZodObject<{
@@ -60,6 +66,7 @@ export declare const CoderSavedSkillSchema: z.ZodObject<{
60
66
  description: z.ZodOptional<z.ZodString>;
61
67
  url: z.ZodOptional<z.ZodString>;
62
68
  installs: z.ZodOptional<z.ZodNumber>;
69
+ content: z.ZodOptional<z.ZodString>;
63
70
  createdAt: z.ZodString;
64
71
  updatedAt: z.ZodString;
65
72
  }, z.core.$loose>;
@@ -80,6 +87,7 @@ export declare const CoderSkillBucketSchema: z.ZodObject<{
80
87
  description: z.ZodOptional<z.ZodString>;
81
88
  url: z.ZodOptional<z.ZodString>;
82
89
  installs: z.ZodOptional<z.ZodNumber>;
90
+ content: z.ZodOptional<z.ZodString>;
83
91
  createdAt: z.ZodString;
84
92
  updatedAt: z.ZodString;
85
93
  }, z.core.$loose>>;
@@ -110,6 +118,11 @@ export declare const CoderWorkspaceDetailSchema: z.ZodObject<{
110
118
  repoCount: z.ZodNumber;
111
119
  dependencies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
112
120
  setupScript: z.ZodDefault<z.ZodOptional<z.ZodString>>;
121
+ systemPrompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
122
+ systemPromptMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
123
+ append: "append";
124
+ overwrite: "overwrite";
125
+ }>>>;
113
126
  snapshot: z.ZodOptional<z.ZodObject<{
114
127
  status: z.ZodString;
115
128
  snapshotId: z.ZodOptional<z.ZodString>;
@@ -325,6 +338,7 @@ export declare const CoderCustomAgentSnapshotSchema: z.ZodObject<{
325
338
  repo: z.ZodString;
326
339
  name: z.ZodOptional<z.ZodString>;
327
340
  url: z.ZodOptional<z.ZodString>;
341
+ content: z.ZodOptional<z.ZodString>;
328
342
  }, z.core.$strip>>;
329
343
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
330
344
  }, z.core.$loose>;
@@ -402,6 +416,7 @@ export declare const CoderCustomAgentVersionSchema: z.ZodObject<{
402
416
  repo: z.ZodString;
403
417
  name: z.ZodOptional<z.ZodString>;
404
418
  url: z.ZodOptional<z.ZodString>;
419
+ content: z.ZodOptional<z.ZodString>;
405
420
  }, z.core.$strip>>;
406
421
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
407
422
  id: z.ZodString;
@@ -484,6 +499,7 @@ export declare const CoderCustomAgentSchema: z.ZodObject<{
484
499
  repo: z.ZodString;
485
500
  name: z.ZodOptional<z.ZodString>;
486
501
  url: z.ZodOptional<z.ZodString>;
502
+ content: z.ZodOptional<z.ZodString>;
487
503
  }, z.core.$strip>>;
488
504
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
489
505
  id: z.ZodString;
@@ -576,6 +592,7 @@ export declare const CoderCustomAgentSchema: z.ZodObject<{
576
592
  repo: z.ZodString;
577
593
  name: z.ZodOptional<z.ZodString>;
578
594
  url: z.ZodOptional<z.ZodString>;
595
+ content: z.ZodOptional<z.ZodString>;
579
596
  }, z.core.$strip>>;
580
597
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
581
598
  id: z.ZodString;
@@ -657,6 +674,7 @@ export declare const CoderCustomAgentSchema: z.ZodObject<{
657
674
  repo: z.ZodString;
658
675
  name: z.ZodOptional<z.ZodString>;
659
676
  url: z.ZodOptional<z.ZodString>;
677
+ content: z.ZodOptional<z.ZodString>;
660
678
  }, z.core.$strip>>;
661
679
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
662
680
  }, z.core.$loose>>;
@@ -736,6 +754,7 @@ export declare const CoderCustomAgentListResponseSchema: z.ZodObject<{
736
754
  repo: z.ZodString;
737
755
  name: z.ZodOptional<z.ZodString>;
738
756
  url: z.ZodOptional<z.ZodString>;
757
+ content: z.ZodOptional<z.ZodString>;
739
758
  }, z.core.$strip>>;
740
759
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
741
760
  id: z.ZodString;
@@ -828,6 +847,7 @@ export declare const CoderCustomAgentListResponseSchema: z.ZodObject<{
828
847
  repo: z.ZodString;
829
848
  name: z.ZodOptional<z.ZodString>;
830
849
  url: z.ZodOptional<z.ZodString>;
850
+ content: z.ZodOptional<z.ZodString>;
831
851
  }, z.core.$strip>>;
832
852
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
833
853
  id: z.ZodString;
@@ -909,6 +929,7 @@ export declare const CoderCustomAgentListResponseSchema: z.ZodObject<{
909
929
  repo: z.ZodString;
910
930
  name: z.ZodOptional<z.ZodString>;
911
931
  url: z.ZodOptional<z.ZodString>;
932
+ content: z.ZodOptional<z.ZodString>;
912
933
  }, z.core.$strip>>;
913
934
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
914
935
  }, z.core.$loose>>;
@@ -989,6 +1010,7 @@ export declare const CoderCustomAgentVersionListResponseSchema: z.ZodObject<{
989
1010
  repo: z.ZodString;
990
1011
  name: z.ZodOptional<z.ZodString>;
991
1012
  url: z.ZodOptional<z.ZodString>;
1013
+ content: z.ZodOptional<z.ZodString>;
992
1014
  }, z.core.$strip>>;
993
1015
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
994
1016
  id: z.ZodString;
@@ -1009,6 +1031,7 @@ export declare const CoderSavedSkillListResponseSchema: z.ZodObject<{
1009
1031
  description: z.ZodOptional<z.ZodString>;
1010
1032
  url: z.ZodOptional<z.ZodString>;
1011
1033
  installs: z.ZodOptional<z.ZodNumber>;
1034
+ content: z.ZodOptional<z.ZodString>;
1012
1035
  createdAt: z.ZodString;
1013
1036
  updatedAt: z.ZodString;
1014
1037
  }, z.core.$loose>>;
@@ -1031,6 +1054,7 @@ export declare const CoderSkillBucketListResponseSchema: z.ZodObject<{
1031
1054
  description: z.ZodOptional<z.ZodString>;
1032
1055
  url: z.ZodOptional<z.ZodString>;
1033
1056
  installs: z.ZodOptional<z.ZodNumber>;
1057
+ content: z.ZodOptional<z.ZodString>;
1034
1058
  createdAt: z.ZodString;
1035
1059
  updatedAt: z.ZodString;
1036
1060
  }, z.core.$loose>>;
@@ -1063,6 +1087,11 @@ export declare const CoderWorkspaceListResponseSchema: z.ZodObject<{
1063
1087
  repoCount: z.ZodNumber;
1064
1088
  dependencies: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1065
1089
  setupScript: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1090
+ systemPrompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1091
+ systemPromptMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
1092
+ append: "append";
1093
+ overwrite: "overwrite";
1094
+ }>>>;
1066
1095
  snapshot: z.ZodOptional<z.ZodObject<{
1067
1096
  status: z.ZodString;
1068
1097
  snapshotId: z.ZodOptional<z.ZodString>;
@@ -1089,8 +1118,8 @@ export declare const CoderCreateWorkspaceRequestSchema: z.ZodObject<{
1089
1118
  name: z.ZodString;
1090
1119
  description: z.ZodOptional<z.ZodString>;
1091
1120
  scope: z.ZodOptional<z.ZodEnum<{
1092
- org: "org";
1093
1121
  user: "user";
1122
+ org: "org";
1094
1123
  }>>;
1095
1124
  repos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1096
1125
  repoId: z.ZodOptional<z.ZodString>;
@@ -1110,6 +1139,11 @@ export declare const CoderCreateWorkspaceRequestSchema: z.ZodObject<{
1110
1139
  }, z.core.$catchall<z.ZodUnknown>>>>;
1111
1140
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
1112
1141
  setupScript: z.ZodOptional<z.ZodString>;
1142
+ systemPrompt: z.ZodOptional<z.ZodString>;
1143
+ systemPromptMode: z.ZodOptional<z.ZodEnum<{
1144
+ append: "append";
1145
+ overwrite: "overwrite";
1146
+ }>>;
1113
1147
  savedSkillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1114
1148
  skillBucketIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1115
1149
  enabledAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1119,8 +1153,8 @@ export declare const CoderUpdateWorkspaceRequestSchema: z.ZodObject<{
1119
1153
  name: z.ZodOptional<z.ZodString>;
1120
1154
  description: z.ZodOptional<z.ZodString>;
1121
1155
  scope: z.ZodOptional<z.ZodEnum<{
1122
- org: "org";
1123
1156
  user: "user";
1157
+ org: "org";
1124
1158
  }>>;
1125
1159
  repos: z.ZodOptional<z.ZodArray<z.ZodObject<{
1126
1160
  repoId: z.ZodOptional<z.ZodString>;
@@ -1140,6 +1174,11 @@ export declare const CoderUpdateWorkspaceRequestSchema: z.ZodObject<{
1140
1174
  }, z.core.$catchall<z.ZodUnknown>>>>;
1141
1175
  dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
1142
1176
  setupScript: z.ZodOptional<z.ZodString>;
1177
+ systemPrompt: z.ZodOptional<z.ZodString>;
1178
+ systemPromptMode: z.ZodOptional<z.ZodEnum<{
1179
+ append: "append";
1180
+ overwrite: "overwrite";
1181
+ }>>;
1143
1182
  savedSkillIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1144
1183
  skillBucketIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1145
1184
  enabledAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1310,6 +1349,13 @@ export declare const CoderSaveSkillRequestSchema: z.ZodObject<{
1310
1349
  content: z.ZodOptional<z.ZodString>;
1311
1350
  }, z.core.$strip>;
1312
1351
  export type CoderSaveSkillRequest = z.infer<typeof CoderSaveSkillRequestSchema>;
1352
+ export declare const CoderCreateCustomSkillRequestSchema: z.ZodObject<{
1353
+ skillId: z.ZodString;
1354
+ name: z.ZodString;
1355
+ description: z.ZodOptional<z.ZodString>;
1356
+ content: z.ZodString;
1357
+ }, z.core.$strip>;
1358
+ export type CoderCreateCustomSkillRequest = z.infer<typeof CoderCreateCustomSkillRequestSchema>;
1313
1359
  export declare const CoderCreateSkillBucketRequestSchema: z.ZodObject<{
1314
1360
  name: z.ZodString;
1315
1361
  description: z.ZodOptional<z.ZodString>;
@@ -1352,6 +1398,7 @@ export declare const CoderCreateSessionRequestSchema: z.ZodObject<{
1352
1398
  repo: z.ZodString;
1353
1399
  name: z.ZodOptional<z.ZodString>;
1354
1400
  url: z.ZodOptional<z.ZodString>;
1401
+ content: z.ZodOptional<z.ZodString>;
1355
1402
  }, z.core.$strip>>>;
1356
1403
  repo: z.ZodOptional<z.ZodObject<{
1357
1404
  repoId: z.ZodOptional<z.ZodString>;
@@ -1434,6 +1481,7 @@ export declare const CoderUpdateSessionRequestSchema: z.ZodObject<{
1434
1481
  repo: z.ZodString;
1435
1482
  name: z.ZodOptional<z.ZodString>;
1436
1483
  url: z.ZodOptional<z.ZodString>;
1484
+ content: z.ZodOptional<z.ZodString>;
1437
1485
  }, z.core.$strip>>>;
1438
1486
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1439
1487
  }, z.core.$strip>;
@@ -1451,8 +1499,8 @@ export declare const CoderSessionWorkspaceSchema: z.ZodObject<{
1451
1499
  id: z.ZodString;
1452
1500
  name: z.ZodString;
1453
1501
  scope: z.ZodEnum<{
1454
- org: "org";
1455
1502
  user: "user";
1503
+ org: "org";
1456
1504
  }>;
1457
1505
  }, z.core.$strip>;
1458
1506
  export type CoderSessionWorkspace = z.infer<typeof CoderSessionWorkspaceSchema>;
@@ -1552,6 +1600,7 @@ export declare const CoderAgentBuilderProposalSchema: z.ZodObject<{
1552
1600
  repo: z.ZodString;
1553
1601
  name: z.ZodOptional<z.ZodString>;
1554
1602
  url: z.ZodOptional<z.ZodString>;
1603
+ content: z.ZodOptional<z.ZodString>;
1555
1604
  }, z.core.$strip>>>;
1556
1605
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1557
1606
  }, z.core.$loose>;
@@ -1726,6 +1775,7 @@ export declare const CoderAgentBuilderSessionStateSchema: z.ZodObject<{
1726
1775
  repo: z.ZodString;
1727
1776
  name: z.ZodOptional<z.ZodString>;
1728
1777
  url: z.ZodOptional<z.ZodString>;
1778
+ content: z.ZodOptional<z.ZodString>;
1729
1779
  }, z.core.$strip>>>;
1730
1780
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
1731
1781
  }, z.core.$loose>>;
@@ -1783,8 +1833,8 @@ export declare const CoderSessionListItemSchema: z.ZodObject<{
1783
1833
  id: z.ZodString;
1784
1834
  name: z.ZodString;
1785
1835
  scope: z.ZodEnum<{
1786
- org: "org";
1787
1836
  user: "user";
1837
+ org: "org";
1788
1838
  }>;
1789
1839
  }, z.core.$strip>>;
1790
1840
  sessionKind: z.ZodOptional<z.ZodString>;
@@ -1808,6 +1858,7 @@ export declare const CoderSessionListItemSchema: z.ZodObject<{
1808
1858
  repo: z.ZodString;
1809
1859
  name: z.ZodOptional<z.ZodString>;
1810
1860
  url: z.ZodOptional<z.ZodString>;
1861
+ content: z.ZodOptional<z.ZodString>;
1811
1862
  }, z.core.$strip>>;
1812
1863
  enabledAgents: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1813
1864
  builder: z.ZodOptional<z.ZodObject<{
@@ -1914,8 +1965,8 @@ export declare const CoderSessionSchema: z.ZodObject<{
1914
1965
  id: z.ZodString;
1915
1966
  name: z.ZodString;
1916
1967
  scope: z.ZodEnum<{
1917
- org: "org";
1918
1968
  user: "user";
1969
+ org: "org";
1919
1970
  }>;
1920
1971
  }, z.core.$strip>>;
1921
1972
  sessionKind: z.ZodOptional<z.ZodString>;
@@ -1934,6 +1985,7 @@ export declare const CoderSessionSchema: z.ZodObject<{
1934
1985
  repo: z.ZodString;
1935
1986
  name: z.ZodOptional<z.ZodString>;
1936
1987
  url: z.ZodOptional<z.ZodString>;
1988
+ content: z.ZodOptional<z.ZodString>;
1937
1989
  }, z.core.$strip>>;
1938
1990
  enabledAgents: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
1939
1991
  defaultAgent: z.ZodOptional<z.ZodString>;
@@ -2062,6 +2114,7 @@ export declare const CoderSessionSchema: z.ZodObject<{
2062
2114
  repo: z.ZodString;
2063
2115
  name: z.ZodOptional<z.ZodString>;
2064
2116
  url: z.ZodOptional<z.ZodString>;
2117
+ content: z.ZodOptional<z.ZodString>;
2065
2118
  }, z.core.$strip>>>;
2066
2119
  companionAgents: z.ZodDefault<z.ZodArray<z.ZodString>>;
2067
2120
  }, z.core.$loose>>;
@@ -2134,8 +2187,8 @@ export declare const CoderSessionListResponseSchema: z.ZodObject<{
2134
2187
  id: z.ZodString;
2135
2188
  name: z.ZodString;
2136
2189
  scope: z.ZodEnum<{
2137
- org: "org";
2138
2190
  user: "user";
2191
+ org: "org";
2139
2192
  }>;
2140
2193
  }, z.core.$strip>>;
2141
2194
  sessionKind: z.ZodOptional<z.ZodString>;
@@ -2159,6 +2212,7 @@ export declare const CoderSessionListResponseSchema: z.ZodObject<{
2159
2212
  repo: z.ZodString;
2160
2213
  name: z.ZodOptional<z.ZodString>;
2161
2214
  url: z.ZodOptional<z.ZodString>;
2215
+ content: z.ZodOptional<z.ZodString>;
2162
2216
  }, z.core.$strip>>;
2163
2217
  enabledAgents: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2164
2218
  builder: z.ZodOptional<z.ZodObject<{
@@ -2269,8 +2323,8 @@ export declare const CoderSessionListPayloadSchema: z.ZodUnion<readonly [z.ZodAr
2269
2323
  id: z.ZodString;
2270
2324
  name: z.ZodString;
2271
2325
  scope: z.ZodEnum<{
2272
- org: "org";
2273
2326
  user: "user";
2327
+ org: "org";
2274
2328
  }>;
2275
2329
  }, z.core.$strip>>;
2276
2330
  sessionKind: z.ZodOptional<z.ZodString>;
@@ -2294,6 +2348,7 @@ export declare const CoderSessionListPayloadSchema: z.ZodUnion<readonly [z.ZodAr
2294
2348
  repo: z.ZodString;
2295
2349
  name: z.ZodOptional<z.ZodString>;
2296
2350
  url: z.ZodOptional<z.ZodString>;
2351
+ content: z.ZodOptional<z.ZodString>;
2297
2352
  }, z.core.$strip>>;
2298
2353
  enabledAgents: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2299
2354
  builder: z.ZodOptional<z.ZodObject<{
@@ -2399,8 +2454,8 @@ export declare const CoderSessionListPayloadSchema: z.ZodUnion<readonly [z.ZodAr
2399
2454
  id: z.ZodString;
2400
2455
  name: z.ZodString;
2401
2456
  scope: z.ZodEnum<{
2402
- org: "org";
2403
2457
  user: "user";
2458
+ org: "org";
2404
2459
  }>;
2405
2460
  }, z.core.$strip>>;
2406
2461
  sessionKind: z.ZodOptional<z.ZodString>;
@@ -2424,6 +2479,7 @@ export declare const CoderSessionListPayloadSchema: z.ZodUnion<readonly [z.ZodAr
2424
2479
  repo: z.ZodString;
2425
2480
  name: z.ZodOptional<z.ZodString>;
2426
2481
  url: z.ZodOptional<z.ZodString>;
2482
+ content: z.ZodOptional<z.ZodString>;
2427
2483
  }, z.core.$strip>>;
2428
2484
  enabledAgents: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
2429
2485
  builder: z.ZodOptional<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/coder/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,4BAA4B;;;;EAES,CAAC;AACnD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAUlF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,sBAAsB,CAQzE;AAED,eAAO,MAAM,uBAAuB;;;EAEqB,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,sBAAsB;;;EAEiB,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,wBAAwB;;;;;EAEgC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,mBAAmB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AAe,CAAC,CAAC;AAExD,eAAO,MAAM,0BAA0B;;;;;iBAOe,CAAC;AACvD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;iBAOG,CAAC;AAC7C,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -29,12 +29,16 @@ export const CoderSessionModeSchema = z
29
29
  export const CoderSessionBucketSchema = z
30
30
  .enum(['running', 'paused', 'provisioning', 'history'])
31
31
  .describe('Derived bucket used for session listing and UI grouping');
32
+ export const CoderWorkspaceSystemPromptModeSchema = z
33
+ .enum(['append', 'overwrite'])
34
+ .describe('How a workspace system prompt is applied to the Lead agent prompt');
32
35
  export const CoderSkillRefSchema = z
33
36
  .object({
34
37
  skillId: z.string().describe('Unique skill identifier'),
35
38
  repo: z.string().describe('Repository slug for the skill source'),
36
39
  name: z.string().optional().describe('Human-readable skill name'),
37
40
  url: z.string().optional().describe('Canonical URL for the skill repository or page'),
41
+ content: z.string().optional().describe('Inline SKILL.md content for custom skills'),
38
42
  })
39
43
  .describe('Skill reference attached to a coder session');
40
44
  export const CoderSessionRepositoryRefSchema = z
@@ -66,6 +70,7 @@ export const CoderSavedSkillSchema = z
66
70
  description: z.string().optional().describe('Skill description'),
67
71
  url: z.string().optional().describe('Skill URL'),
68
72
  installs: z.number().optional().describe('Number of installs'),
73
+ content: z.string().optional().describe('Inline SKILL.md content for custom skills'),
69
74
  createdAt: z.string().describe('Creation timestamp (ISO-8601)'),
70
75
  updatedAt: z.string().describe('Last update timestamp (ISO-8601)'),
71
76
  })
@@ -102,6 +107,14 @@ export const CoderWorkspaceDetailSchema = z
102
107
  .optional()
103
108
  .default('')
104
109
  .describe('Shell script run while preparing workspace snapshots'),
110
+ systemPrompt: z
111
+ .string()
112
+ .optional()
113
+ .default('')
114
+ .describe('Additional Lead agent system prompt applied to sessions created from this workspace'),
115
+ systemPromptMode: CoderWorkspaceSystemPromptModeSchema.optional()
116
+ .default('append')
117
+ .describe('Whether the workspace system prompt appends to or overwrites the Lead prompt'),
105
118
  snapshot: z
106
119
  .object({
107
120
  status: z.string().describe('Workspace snapshot build status'),
@@ -294,6 +307,7 @@ function hasWorkspaceSelections(input) {
294
307
  return ((input.repos?.length ?? 0) > 0 ||
295
308
  (input.dependencies?.length ?? 0) > 0 ||
296
309
  Boolean(input.setupScript?.trim()) ||
310
+ Boolean(input.systemPrompt?.trim()) ||
297
311
  (input.savedSkillIds?.length ?? 0) > 0 ||
298
312
  (input.skillBucketIds?.length ?? 0) > 0 ||
299
313
  (input.enabledAgents?.length ?? 0) > 0);
@@ -312,6 +326,11 @@ export const CoderCreateWorkspaceRequestSchema = z
312
326
  .string()
313
327
  .optional()
314
328
  .describe('Shell script run while preparing workspace snapshots'),
329
+ systemPrompt: z
330
+ .string()
331
+ .optional()
332
+ .describe('Additional Lead agent system prompt applied to sessions created from this workspace'),
333
+ systemPromptMode: CoderWorkspaceSystemPromptModeSchema.optional().describe('Whether the workspace system prompt appends to or overwrites the Lead prompt'),
315
334
  savedSkillIds: z.array(z.string()).optional().describe('Saved skill IDs'),
316
335
  skillBucketIds: z.array(z.string()).optional().describe('Skill bucket IDs'),
317
336
  enabledAgents: z
@@ -320,7 +339,7 @@ export const CoderCreateWorkspaceRequestSchema = z
320
339
  .describe('Effective agent roster to store on the workspace'),
321
340
  })
322
341
  .refine(hasWorkspaceSelections, {
323
- message: 'A workspace needs at least one repo, dependency, setup script, saved skill, skill bucket, or agent',
342
+ message: 'A workspace needs at least one repo, dependency, setup script, system prompt, saved skill, skill bucket, or agent',
324
343
  })
325
344
  .describe('Request body for creating a workspace');
326
345
  export const CoderUpdateWorkspaceRequestSchema = z
@@ -337,6 +356,11 @@ export const CoderUpdateWorkspaceRequestSchema = z
337
356
  .string()
338
357
  .optional()
339
358
  .describe('Shell script run while preparing workspace snapshots'),
359
+ systemPrompt: z
360
+ .string()
361
+ .optional()
362
+ .describe('Additional Lead agent system prompt applied to sessions created from this workspace'),
363
+ systemPromptMode: CoderWorkspaceSystemPromptModeSchema.optional().describe('Whether the workspace system prompt appends to or overwrites the Lead prompt'),
340
364
  savedSkillIds: z.array(z.string()).optional().describe('Saved skill IDs'),
341
365
  skillBucketIds: z.array(z.string()).optional().describe('Skill bucket IDs'),
342
366
  enabledAgents: z
@@ -441,6 +465,17 @@ export const CoderSaveSkillRequestSchema = z
441
465
  content: z.string().optional().describe('Skill content'),
442
466
  })
443
467
  .describe('Request body for saving a skill to the library');
468
+ export const CoderCreateCustomSkillRequestSchema = z
469
+ .object({
470
+ skillId: z.string().describe('Skill identifier'),
471
+ name: z.string().describe('Skill name'),
472
+ description: z.string().optional().describe('Skill description'),
473
+ content: z
474
+ .string()
475
+ .refine((value) => value.trim().length > 0, 'SKILL.md content is required')
476
+ .describe('SKILL.md content'),
477
+ })
478
+ .describe('Request body for creating a custom skill');
444
479
  export const CoderCreateSkillBucketRequestSchema = z
445
480
  .object({
446
481
  name: z.string().describe('Skill bucket name'),