Add built-in agent routes and gate

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-09 20:46:23 +00:00
1 parent 1d6da01128
commit e2c8b2d502
10 files changed
+640 -1

No files matched your search

+2
View File
@@ -1163,6 +1163,7 @@ export {
agentSkillSyncSchema,
type AgentSkillSync,
createAgentSchema,
builtInAgentProvisionSchema,
createAgentHireSchema,
updateAgentSchema,
agentInstructionsBundleModeSchema,
@@ -1182,6 +1183,7 @@ export {
agentPermissionsSchema,
updateAgentPermissionsSchema,
type CreateAgent,
type BuiltInAgentProvision,
type CreateAgentHire,
type UpdateAgent,
type UpdateAgentInstructionsBundle,
+7
View File
@@ -88,6 +88,13 @@ export const createAgentSchema = z.object({
export type CreateAgent = z.infer<typeof createAgentSchema>;
export const builtInAgentProvisionSchema = z.object({
adapterType: agentAdapterTypeSchema.optional(),
adapterConfig: adapterConfigSchema.optional(),
}).strict();
export type BuiltInAgentProvision = z.infer<typeof builtInAgentProvisionSchema>;
export const createAgentHireSchema = createAgentSchema.extend({
sourceIssueId: z.string().uuid().optional().nullable(),
sourceIssueIds: z.array(z.string().uuid()).optional(),
+2
View File
@@ -247,6 +247,7 @@ export {
export {
createAgentSchema,
builtInAgentProvisionSchema,
createAgentHireSchema,
updateAgentSchema,
agentRuntimeConfigSchema,
@@ -267,6 +268,7 @@ export {
agentPermissionsSchema,
updateAgentPermissionsSchema,
type CreateAgent,
type BuiltInAgentProvision,
type CreateAgentHire,
type UpdateAgent,
type UpdateAgentInstructionsBundle,