@agentuity/core 2.0.11 → 3.0.0-alpha.1
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/services/coder/agents.d.ts +6 -4
- package/dist/services/coder/agents.d.ts.map +1 -1
- package/dist/services/coder/api-reference.js +2 -2
- package/dist/services/coder/api-reference.js.map +1 -1
- package/dist/services/coder/sessions.d.ts +2 -2
- package/dist/services/coder/types.d.ts +53 -42
- package/dist/services/coder/types.d.ts.map +1 -1
- package/dist/services/coder/types.js +55 -40
- package/dist/services/coder/types.js.map +1 -1
- package/dist/services/project/deploy.d.ts +55 -4
- package/dist/services/project/deploy.d.ts.map +1 -1
- package/dist/services/project/deploy.js +39 -4
- package/dist/services/project/deploy.js.map +1 -1
- package/package.json +183 -3
- package/src/services/coder/api-reference.ts +2 -2
- package/src/services/coder/types.ts +61 -44
- package/src/services/project/deploy.ts +67 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -46,6 +46,106 @@
|
|
|
46
46
|
"types": "./dist/services/api.d.ts",
|
|
47
47
|
"default": "./dist/services/api.js"
|
|
48
48
|
},
|
|
49
|
+
"./apikey": {
|
|
50
|
+
"types": "./dist/services/apikey/index.d.ts",
|
|
51
|
+
"default": "./dist/services/apikey/index.js"
|
|
52
|
+
},
|
|
53
|
+
"./auth": {
|
|
54
|
+
"types": "./dist/services/auth/index.d.ts",
|
|
55
|
+
"default": "./dist/services/auth/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./coder": {
|
|
58
|
+
"types": "./dist/services/coder/index.d.ts",
|
|
59
|
+
"default": "./dist/services/coder/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./db": {
|
|
62
|
+
"types": "./dist/services/db/index.d.ts",
|
|
63
|
+
"default": "./dist/services/db/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./email": {
|
|
66
|
+
"types": "./dist/services/email/index.d.ts",
|
|
67
|
+
"default": "./dist/services/email/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./eval": {
|
|
70
|
+
"types": "./dist/services/eval/index.d.ts",
|
|
71
|
+
"default": "./dist/services/eval/index.js"
|
|
72
|
+
},
|
|
73
|
+
"./keyvalue": {
|
|
74
|
+
"types": "./dist/services/keyvalue/index.d.ts",
|
|
75
|
+
"default": "./dist/services/keyvalue/index.js"
|
|
76
|
+
},
|
|
77
|
+
"./machine": {
|
|
78
|
+
"types": "./dist/services/machine/index.d.ts",
|
|
79
|
+
"default": "./dist/services/machine/index.js"
|
|
80
|
+
},
|
|
81
|
+
"./monitoring": {
|
|
82
|
+
"types": "./dist/services/monitoring/index.d.ts",
|
|
83
|
+
"default": "./dist/services/monitoring/index.js"
|
|
84
|
+
},
|
|
85
|
+
"./oauth": {
|
|
86
|
+
"types": "./dist/services/oauth/index.d.ts",
|
|
87
|
+
"default": "./dist/services/oauth/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./org": {
|
|
90
|
+
"types": "./dist/services/org/index.d.ts",
|
|
91
|
+
"default": "./dist/services/org/index.js"
|
|
92
|
+
},
|
|
93
|
+
"./project": {
|
|
94
|
+
"types": "./dist/services/project/index.d.ts",
|
|
95
|
+
"default": "./dist/services/project/index.js"
|
|
96
|
+
},
|
|
97
|
+
"./queue": {
|
|
98
|
+
"types": "./dist/services/queue/index.d.ts",
|
|
99
|
+
"default": "./dist/services/queue/index.js"
|
|
100
|
+
},
|
|
101
|
+
"./region": {
|
|
102
|
+
"types": "./dist/services/region/index.d.ts",
|
|
103
|
+
"default": "./dist/services/region/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./sandbox": {
|
|
106
|
+
"types": "./dist/services/sandbox/index.d.ts",
|
|
107
|
+
"default": "./dist/services/sandbox/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./schedule": {
|
|
110
|
+
"types": "./dist/services/schedule/index.d.ts",
|
|
111
|
+
"default": "./dist/services/schedule/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./session": {
|
|
114
|
+
"types": "./dist/services/session/index.d.ts",
|
|
115
|
+
"default": "./dist/services/session/index.js"
|
|
116
|
+
},
|
|
117
|
+
"./storage": {
|
|
118
|
+
"types": "./dist/services/storage/index.d.ts",
|
|
119
|
+
"default": "./dist/services/storage/index.js"
|
|
120
|
+
},
|
|
121
|
+
"./stream": {
|
|
122
|
+
"types": "./dist/services/stream/index.d.ts",
|
|
123
|
+
"default": "./dist/services/stream/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./task": {
|
|
126
|
+
"types": "./dist/services/task/index.d.ts",
|
|
127
|
+
"default": "./dist/services/task/index.js"
|
|
128
|
+
},
|
|
129
|
+
"./thread": {
|
|
130
|
+
"types": "./dist/services/thread/index.d.ts",
|
|
131
|
+
"default": "./dist/services/thread/index.js"
|
|
132
|
+
},
|
|
133
|
+
"./user": {
|
|
134
|
+
"types": "./dist/services/user/index.d.ts",
|
|
135
|
+
"default": "./dist/services/user/index.js"
|
|
136
|
+
},
|
|
137
|
+
"./vector": {
|
|
138
|
+
"types": "./dist/services/vector/index.d.ts",
|
|
139
|
+
"default": "./dist/services/vector/index.js"
|
|
140
|
+
},
|
|
141
|
+
"./webhook": {
|
|
142
|
+
"types": "./dist/services/webhook/index.d.ts",
|
|
143
|
+
"default": "./dist/services/webhook/index.js"
|
|
144
|
+
},
|
|
145
|
+
"./workflow": {
|
|
146
|
+
"types": "./dist/services/workflow/index.d.ts",
|
|
147
|
+
"default": "./dist/services/workflow/index.js"
|
|
148
|
+
},
|
|
49
149
|
"./*": {
|
|
50
150
|
"types": "./dist/services/*/index.d.ts",
|
|
51
151
|
"default": "./dist/services/*/index.js"
|
|
@@ -74,6 +174,81 @@
|
|
|
74
174
|
"api": [
|
|
75
175
|
"./dist/services/api.d.ts"
|
|
76
176
|
],
|
|
177
|
+
"apikey": [
|
|
178
|
+
"./dist/services/apikey/index.d.ts"
|
|
179
|
+
],
|
|
180
|
+
"auth": [
|
|
181
|
+
"./dist/services/auth/index.d.ts"
|
|
182
|
+
],
|
|
183
|
+
"coder": [
|
|
184
|
+
"./dist/services/coder/index.d.ts"
|
|
185
|
+
],
|
|
186
|
+
"db": [
|
|
187
|
+
"./dist/services/db/index.d.ts"
|
|
188
|
+
],
|
|
189
|
+
"email": [
|
|
190
|
+
"./dist/services/email/index.d.ts"
|
|
191
|
+
],
|
|
192
|
+
"eval": [
|
|
193
|
+
"./dist/services/eval/index.d.ts"
|
|
194
|
+
],
|
|
195
|
+
"keyvalue": [
|
|
196
|
+
"./dist/services/keyvalue/index.d.ts"
|
|
197
|
+
],
|
|
198
|
+
"machine": [
|
|
199
|
+
"./dist/services/machine/index.d.ts"
|
|
200
|
+
],
|
|
201
|
+
"monitoring": [
|
|
202
|
+
"./dist/services/monitoring/index.d.ts"
|
|
203
|
+
],
|
|
204
|
+
"oauth": [
|
|
205
|
+
"./dist/services/oauth/index.d.ts"
|
|
206
|
+
],
|
|
207
|
+
"org": [
|
|
208
|
+
"./dist/services/org/index.d.ts"
|
|
209
|
+
],
|
|
210
|
+
"project": [
|
|
211
|
+
"./dist/services/project/index.d.ts"
|
|
212
|
+
],
|
|
213
|
+
"queue": [
|
|
214
|
+
"./dist/services/queue/index.d.ts"
|
|
215
|
+
],
|
|
216
|
+
"region": [
|
|
217
|
+
"./dist/services/region/index.d.ts"
|
|
218
|
+
],
|
|
219
|
+
"sandbox": [
|
|
220
|
+
"./dist/services/sandbox/index.d.ts"
|
|
221
|
+
],
|
|
222
|
+
"schedule": [
|
|
223
|
+
"./dist/services/schedule/index.d.ts"
|
|
224
|
+
],
|
|
225
|
+
"session": [
|
|
226
|
+
"./dist/services/session/index.d.ts"
|
|
227
|
+
],
|
|
228
|
+
"storage": [
|
|
229
|
+
"./dist/services/storage/index.d.ts"
|
|
230
|
+
],
|
|
231
|
+
"stream": [
|
|
232
|
+
"./dist/services/stream/index.d.ts"
|
|
233
|
+
],
|
|
234
|
+
"task": [
|
|
235
|
+
"./dist/services/task/index.d.ts"
|
|
236
|
+
],
|
|
237
|
+
"thread": [
|
|
238
|
+
"./dist/services/thread/index.d.ts"
|
|
239
|
+
],
|
|
240
|
+
"user": [
|
|
241
|
+
"./dist/services/user/index.d.ts"
|
|
242
|
+
],
|
|
243
|
+
"vector": [
|
|
244
|
+
"./dist/services/vector/index.d.ts"
|
|
245
|
+
],
|
|
246
|
+
"webhook": [
|
|
247
|
+
"./dist/services/webhook/index.d.ts"
|
|
248
|
+
],
|
|
249
|
+
"workflow": [
|
|
250
|
+
"./dist/services/workflow/index.d.ts"
|
|
251
|
+
],
|
|
77
252
|
"*": [
|
|
78
253
|
"./dist/services/*/index.d.ts"
|
|
79
254
|
]
|
|
@@ -89,7 +264,7 @@
|
|
|
89
264
|
"zod": "^4.3.5"
|
|
90
265
|
},
|
|
91
266
|
"devDependencies": {
|
|
92
|
-
"@agentuity/test-utils": "
|
|
267
|
+
"@agentuity/test-utils": "3.0.0-alpha.1",
|
|
93
268
|
"@types/bun": "latest",
|
|
94
269
|
"bun-types": "latest",
|
|
95
270
|
"esbuild": "^0.25.0",
|
|
@@ -98,5 +273,10 @@
|
|
|
98
273
|
"publishConfig": {
|
|
99
274
|
"access": "public"
|
|
100
275
|
},
|
|
101
|
-
"sideEffects": false
|
|
276
|
+
"sideEffects": false,
|
|
277
|
+
"repository": {
|
|
278
|
+
"type": "git",
|
|
279
|
+
"url": "https://github.com/agentuity/sdk.git",
|
|
280
|
+
"directory": "packages/core"
|
|
281
|
+
}
|
|
102
282
|
}
|
|
@@ -451,8 +451,8 @@ const service: Service = {
|
|
|
451
451
|
slug: 'code-review',
|
|
452
452
|
displayName: 'Code Review',
|
|
453
453
|
instructions: 'Focus on correctness, regressions, and missing tests.',
|
|
454
|
-
|
|
455
|
-
|
|
454
|
+
tools: ['read', 'grep', 'ls'],
|
|
455
|
+
serviceTools: ['session_todo_list', 'session_todo_update'],
|
|
456
456
|
},
|
|
457
457
|
},
|
|
458
458
|
{
|
|
@@ -115,11 +115,11 @@ export const CoderWorkspaceDetailSchema = z
|
|
|
115
115
|
repoCount: z.number().describe('Number of repositories'),
|
|
116
116
|
savedSkillIds: z.array(z.string()).describe('Saved skill IDs in workspace'),
|
|
117
117
|
skillBucketIds: z.array(z.string()).describe('Skill bucket IDs in workspace'),
|
|
118
|
-
|
|
118
|
+
enabledAgents: z
|
|
119
119
|
.array(z.string())
|
|
120
120
|
.optional()
|
|
121
121
|
.default([])
|
|
122
|
-
.describe('
|
|
122
|
+
.describe('Effective agent roster stored on the workspace'),
|
|
123
123
|
selectionCount: z.number().describe('Total number of selections'),
|
|
124
124
|
createdAt: z.string().describe('Creation timestamp (ISO-8601)'),
|
|
125
125
|
updatedAt: z.string().describe('Last update timestamp (ISO-8601)'),
|
|
@@ -133,7 +133,7 @@ export const CoderCustomAgentThinkingLevelSchema = z
|
|
|
133
133
|
.describe('Thinking level override for a custom agent');
|
|
134
134
|
export type CoderCustomAgentThinkingLevel = z.infer<typeof CoderCustomAgentThinkingLevelSchema>;
|
|
135
135
|
|
|
136
|
-
export const
|
|
136
|
+
export const CODER_CUSTOM_AGENT_TOOLS = [
|
|
137
137
|
'read',
|
|
138
138
|
'ls',
|
|
139
139
|
'find',
|
|
@@ -143,17 +143,17 @@ export const CODER_CUSTOM_AGENT_PI_TOOLS = [
|
|
|
143
143
|
'edit',
|
|
144
144
|
] as const;
|
|
145
145
|
|
|
146
|
-
export const
|
|
147
|
-
.enum(
|
|
146
|
+
export const CoderCustomAgentToolSchema = z
|
|
147
|
+
.enum(CODER_CUSTOM_AGENT_TOOLS)
|
|
148
148
|
.describe('Workspace tool available to a standalone custom agent');
|
|
149
|
-
export type
|
|
149
|
+
export type CoderCustomAgentTool = z.infer<typeof CoderCustomAgentToolSchema>;
|
|
150
150
|
|
|
151
|
-
export const
|
|
152
|
-
.union([
|
|
153
|
-
.describe('
|
|
154
|
-
export type
|
|
151
|
+
export const CoderCustomAgentToolResponseSchema = z
|
|
152
|
+
.union([CoderCustomAgentToolSchema, z.string()])
|
|
153
|
+
.describe('Workspace tool granted to a standalone custom agent');
|
|
154
|
+
export type CoderCustomAgentToolResponse = z.infer<typeof CoderCustomAgentToolResponseSchema>;
|
|
155
155
|
|
|
156
|
-
export const
|
|
156
|
+
export const CODER_CUSTOM_AGENT_SERVICE_TOOLS = [
|
|
157
157
|
'session_dashboard',
|
|
158
158
|
'memory_service_search',
|
|
159
159
|
'memory_service_store',
|
|
@@ -198,15 +198,17 @@ export const CODER_CUSTOM_AGENT_HUB_TOOLS = [
|
|
|
198
198
|
'coord_spawn_workers',
|
|
199
199
|
] as const;
|
|
200
200
|
|
|
201
|
-
export const
|
|
202
|
-
.enum(
|
|
203
|
-
.describe('
|
|
204
|
-
export type
|
|
201
|
+
export const CoderCustomAgentServiceToolSchema = z
|
|
202
|
+
.enum(CODER_CUSTOM_AGENT_SERVICE_TOOLS)
|
|
203
|
+
.describe('Service tool available to a standalone custom agent');
|
|
204
|
+
export type CoderCustomAgentServiceTool = z.infer<typeof CoderCustomAgentServiceToolSchema>;
|
|
205
205
|
|
|
206
|
-
export const
|
|
207
|
-
.union([
|
|
208
|
-
.describe('
|
|
209
|
-
export type
|
|
206
|
+
export const CoderCustomAgentServiceToolResponseSchema = z
|
|
207
|
+
.union([CoderCustomAgentServiceToolSchema, z.string()])
|
|
208
|
+
.describe('Service tool granted to a standalone custom agent');
|
|
209
|
+
export type CoderCustomAgentServiceToolResponse = z.infer<
|
|
210
|
+
typeof CoderCustomAgentServiceToolResponseSchema
|
|
211
|
+
>;
|
|
210
212
|
|
|
211
213
|
export const CoderCustomAgentSnapshotSchema = z
|
|
212
214
|
.object({
|
|
@@ -221,15 +223,19 @@ export const CoderCustomAgentSnapshotSchema = z
|
|
|
221
223
|
headlessCompatible: z
|
|
222
224
|
.boolean()
|
|
223
225
|
.describe('Whether the custom agent is safe for non-interactive callers'),
|
|
224
|
-
|
|
225
|
-
.array(
|
|
226
|
-
.describe('
|
|
227
|
-
|
|
228
|
-
.array(
|
|
229
|
-
.describe('
|
|
226
|
+
tools: z
|
|
227
|
+
.array(CoderCustomAgentToolResponseSchema)
|
|
228
|
+
.describe('Workspace tools granted to the custom agent'),
|
|
229
|
+
serviceTools: z
|
|
230
|
+
.array(CoderCustomAgentServiceToolResponseSchema)
|
|
231
|
+
.describe('Service tools granted to the custom agent'),
|
|
230
232
|
savedSkills: z
|
|
231
233
|
.array(CoderSkillRefSchema)
|
|
232
234
|
.describe('Frozen saved-skill refs attached to the custom agent snapshot'),
|
|
235
|
+
companionAgents: z
|
|
236
|
+
.array(z.string())
|
|
237
|
+
.default([])
|
|
238
|
+
.describe('Companion agents auto-included alongside this custom agent'),
|
|
233
239
|
})
|
|
234
240
|
.passthrough()
|
|
235
241
|
.describe('Custom agent snapshot returned by coder hub');
|
|
@@ -324,7 +330,10 @@ export const CoderCreateWorkspaceRequestSchema = z
|
|
|
324
330
|
repos: z.array(CoderSessionRepositoryRefSchema).optional().describe('Repositories'),
|
|
325
331
|
savedSkillIds: z.array(z.string()).optional().describe('Saved skill IDs'),
|
|
326
332
|
skillBucketIds: z.array(z.string()).optional().describe('Skill bucket IDs'),
|
|
327
|
-
|
|
333
|
+
enabledAgents: z
|
|
334
|
+
.array(z.string())
|
|
335
|
+
.optional()
|
|
336
|
+
.describe('Effective agent roster to store on the workspace'),
|
|
328
337
|
})
|
|
329
338
|
.describe('Request body for creating a workspace');
|
|
330
339
|
export type CoderCreateWorkspaceRequest = z.infer<typeof CoderCreateWorkspaceRequestSchema>;
|
|
@@ -343,18 +352,22 @@ export const CoderCreateCustomAgentRequestSchema = z
|
|
|
343
352
|
.boolean()
|
|
344
353
|
.optional()
|
|
345
354
|
.describe('Whether the custom agent is safe for non-interactive callers'),
|
|
346
|
-
|
|
347
|
-
.array(
|
|
355
|
+
tools: z
|
|
356
|
+
.array(CoderCustomAgentToolSchema)
|
|
348
357
|
.optional()
|
|
349
|
-
.describe('
|
|
350
|
-
|
|
351
|
-
.array(
|
|
358
|
+
.describe('Workspace tools to grant to the custom agent'),
|
|
359
|
+
serviceTools: z
|
|
360
|
+
.array(CoderCustomAgentServiceToolSchema)
|
|
352
361
|
.optional()
|
|
353
|
-
.describe('
|
|
362
|
+
.describe('Service tools to grant to the custom agent'),
|
|
354
363
|
savedSkillIds: z
|
|
355
364
|
.array(z.string())
|
|
356
365
|
.optional()
|
|
357
366
|
.describe('Saved skill row ids to snapshot onto the custom agent'),
|
|
367
|
+
companionAgents: z
|
|
368
|
+
.array(z.string())
|
|
369
|
+
.optional()
|
|
370
|
+
.describe('Agent names to auto-include alongside this custom agent'),
|
|
358
371
|
})
|
|
359
372
|
.describe('Request body for creating a custom agent draft');
|
|
360
373
|
export type CoderCreateCustomAgentRequest = z.infer<typeof CoderCreateCustomAgentRequestSchema>;
|
|
@@ -373,18 +386,22 @@ export const CoderUpdateCustomAgentRequestSchema = z
|
|
|
373
386
|
.boolean()
|
|
374
387
|
.optional()
|
|
375
388
|
.describe('Whether the custom agent is safe for non-interactive callers'),
|
|
376
|
-
|
|
377
|
-
.array(
|
|
389
|
+
tools: z
|
|
390
|
+
.array(CoderCustomAgentToolSchema)
|
|
378
391
|
.optional()
|
|
379
|
-
.describe('
|
|
380
|
-
|
|
381
|
-
.array(
|
|
392
|
+
.describe('Workspace tools to grant to the custom agent'),
|
|
393
|
+
serviceTools: z
|
|
394
|
+
.array(CoderCustomAgentServiceToolSchema)
|
|
382
395
|
.optional()
|
|
383
|
-
.describe('
|
|
396
|
+
.describe('Service tools to grant to the custom agent'),
|
|
384
397
|
savedSkillIds: z
|
|
385
398
|
.array(z.string())
|
|
386
399
|
.optional()
|
|
387
400
|
.describe('Saved skill row ids to snapshot onto the custom agent'),
|
|
401
|
+
companionAgents: z
|
|
402
|
+
.array(z.string())
|
|
403
|
+
.optional()
|
|
404
|
+
.describe('Agent names to auto-include alongside this custom agent'),
|
|
388
405
|
})
|
|
389
406
|
.describe('Request body for updating a custom agent draft');
|
|
390
407
|
export type CoderUpdateCustomAgentRequest = z.infer<typeof CoderUpdateCustomAgentRequestSchema>;
|
|
@@ -447,10 +464,10 @@ export const CoderCreateSessionRequestSchema = z
|
|
|
447
464
|
workflowMode: CoderWorkflowModeSchema.optional().describe('Workflow execution mode'),
|
|
448
465
|
loop: CoderSessionLoopConfigSchema.optional().describe('Loop mode settings for the session'),
|
|
449
466
|
tags: z.array(z.string()).optional().describe('Tags applied to the session for filtering'),
|
|
450
|
-
|
|
467
|
+
enabledAgents: z
|
|
451
468
|
.array(z.string())
|
|
452
469
|
.optional()
|
|
453
|
-
.describe('
|
|
470
|
+
.describe('Enabled agent roster to include in the session'),
|
|
454
471
|
savedSkillIds: z
|
|
455
472
|
.array(z.string())
|
|
456
473
|
.optional()
|
|
@@ -495,10 +512,10 @@ export const CoderUpdateSessionRequestSchema = z
|
|
|
495
512
|
workflowMode: CoderWorkflowModeSchema.optional().describe('Updated workflow mode'),
|
|
496
513
|
loop: CoderSessionLoopConfigSchema.optional().describe('Updated loop mode configuration'),
|
|
497
514
|
tags: z.array(z.string()).optional().describe('Updated set of tags for the session'),
|
|
498
|
-
|
|
515
|
+
enabledAgents: z
|
|
499
516
|
.array(z.string())
|
|
500
517
|
.optional()
|
|
501
|
-
.describe('Updated
|
|
518
|
+
.describe('Updated enabled agent roster for the session'),
|
|
502
519
|
skills: z
|
|
503
520
|
.array(CoderSkillRefSchema)
|
|
504
521
|
.optional()
|
|
@@ -580,11 +597,11 @@ export const CoderSessionListItemSchema = z
|
|
|
580
597
|
participantCount: z.number().describe('Total number of participants in the session'),
|
|
581
598
|
tags: z.array(z.string()).describe('Tag values attached to the session'),
|
|
582
599
|
skills: z.array(CoderSkillRefSchema).describe('Skills attached to the session'),
|
|
583
|
-
|
|
600
|
+
enabledAgents: z
|
|
584
601
|
.array(z.string())
|
|
585
602
|
.optional()
|
|
586
603
|
.default([])
|
|
587
|
-
.describe('
|
|
604
|
+
.describe('Enabled agent roster attached to the session'),
|
|
588
605
|
defaultAgent: z.string().optional().describe('Default agent assigned to session operations'),
|
|
589
606
|
bucket: CoderSessionBucketSchema.describe('Derived bucket for session listing'),
|
|
590
607
|
runtimeAvailable: z.boolean().describe('Whether runtime is currently reachable'),
|
|
@@ -73,33 +73,71 @@ export const BuildAgentSchema = z.object({
|
|
|
73
73
|
...BaseAgentFields,
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Launch process definition — describes how to start the application.
|
|
78
|
+
* Produced by the buildpack pipeline for any framework.
|
|
79
|
+
*/
|
|
80
|
+
export const LaunchProcessSchema = z.object({
|
|
81
|
+
type: z.string().describe('process type (e.g., web, worker)'),
|
|
82
|
+
command: z.string().describe('command to execute'),
|
|
83
|
+
default: z.boolean().describe('whether this is the default process'),
|
|
84
|
+
workingDirectory: z.string().optional().describe('working directory relative to app root'),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const LaunchMetadataSchema = z.object({
|
|
88
|
+
processes: z.array(LaunchProcessSchema).describe('application processes'),
|
|
89
|
+
framework: z.object({
|
|
90
|
+
name: z.string().describe('detected framework name'),
|
|
91
|
+
version: z.string().optional().describe('framework version'),
|
|
92
|
+
}),
|
|
93
|
+
runtime: z.object({
|
|
94
|
+
name: z.string().describe('runtime binary (node, bun, deno)'),
|
|
95
|
+
port: z.number().optional().describe('port the app listens on'),
|
|
96
|
+
}),
|
|
97
|
+
build: z.object({
|
|
98
|
+
date: z.string().describe('build timestamp'),
|
|
99
|
+
duration: z.number().describe('build duration in ms'),
|
|
100
|
+
}),
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
export type LaunchMetadata = z.infer<typeof LaunchMetadataSchema>;
|
|
104
|
+
|
|
76
105
|
export const BuildMetadataSchema = z.object({
|
|
77
|
-
routes: z
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
routes: z
|
|
107
|
+
.array(
|
|
108
|
+
z.object({
|
|
109
|
+
id: z.string().describe('the unique calculated id for the route'),
|
|
110
|
+
filename: z.string().describe('the relative path for the file'),
|
|
111
|
+
path: z.string().describe('the route path'),
|
|
112
|
+
method: z.enum(['get', 'post', 'put', 'delete', 'patch']).describe('the HTTP method'),
|
|
113
|
+
version: z.string().describe('the SHA256 content of the file'),
|
|
114
|
+
type: z.enum(['api', 'sms', 'email', 'cron', 'websocket', 'sse', 'stream']),
|
|
115
|
+
agentIds: z
|
|
116
|
+
.array(z.string())
|
|
117
|
+
.optional()
|
|
118
|
+
.describe('the agent ids associated with this route'),
|
|
119
|
+
config: z
|
|
120
|
+
.record(z.string(), z.unknown())
|
|
121
|
+
.optional()
|
|
122
|
+
.describe('type specific configuration'),
|
|
123
|
+
schema: z
|
|
124
|
+
.object({
|
|
125
|
+
input: z.string().optional().describe('JSON schema for input (stringified JSON)'),
|
|
126
|
+
output: z
|
|
127
|
+
.string()
|
|
128
|
+
.optional()
|
|
129
|
+
.describe('JSON schema for output (stringified JSON)'),
|
|
130
|
+
})
|
|
131
|
+
.optional()
|
|
132
|
+
.describe('input and output JSON schemas for the route'),
|
|
133
|
+
})
|
|
134
|
+
)
|
|
135
|
+
.default([])
|
|
136
|
+
.describe('routes — only present for Agentuity native apps'),
|
|
137
|
+
agents: z
|
|
138
|
+
.array(BuildAgentSchema)
|
|
139
|
+
.default([])
|
|
140
|
+
.describe('agents — only present for Agentuity native apps'),
|
|
103
141
|
assets: z.array(
|
|
104
142
|
z.object({
|
|
105
143
|
filename: z.string().describe('the relative path for the file'),
|
|
@@ -176,6 +214,9 @@ export const BuildMetadataSchema = z.object({
|
|
|
176
214
|
}),
|
|
177
215
|
})
|
|
178
216
|
),
|
|
217
|
+
launch: LaunchMetadataSchema.optional().describe(
|
|
218
|
+
'launch metadata — how to start the application (processes, framework, runtime)'
|
|
219
|
+
),
|
|
179
220
|
});
|
|
180
221
|
|
|
181
222
|
export type BuildMetadata = z.infer<typeof BuildMetadataSchema>;
|