@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
@@ -42,12 +42,18 @@ export const CoderSessionBucketSchema = z
42
42
  .describe('Derived bucket used for session listing and UI grouping');
43
43
  export type CoderSessionBucket = z.infer<typeof CoderSessionBucketSchema>;
44
44
 
45
+ export const CoderWorkspaceSystemPromptModeSchema = z
46
+ .enum(['append', 'overwrite'])
47
+ .describe('How a workspace system prompt is applied to the Lead agent prompt');
48
+ export type CoderWorkspaceSystemPromptMode = z.infer<typeof CoderWorkspaceSystemPromptModeSchema>;
49
+
45
50
  export const CoderSkillRefSchema = z
46
51
  .object({
47
52
  skillId: z.string().describe('Unique skill identifier'),
48
53
  repo: z.string().describe('Repository slug for the skill source'),
49
54
  name: z.string().optional().describe('Human-readable skill name'),
50
55
  url: z.string().optional().describe('Canonical URL for the skill repository or page'),
56
+ content: z.string().optional().describe('Inline SKILL.md content for custom skills'),
51
57
  })
52
58
  .describe('Skill reference attached to a coder session');
53
59
  export type CoderSkillRef = z.infer<typeof CoderSkillRefSchema>;
@@ -83,6 +89,7 @@ export const CoderSavedSkillSchema = z
83
89
  description: z.string().optional().describe('Skill description'),
84
90
  url: z.string().optional().describe('Skill URL'),
85
91
  installs: z.number().optional().describe('Number of installs'),
92
+ content: z.string().optional().describe('Inline SKILL.md content for custom skills'),
86
93
  createdAt: z.string().describe('Creation timestamp (ISO-8601)'),
87
94
  updatedAt: z.string().describe('Last update timestamp (ISO-8601)'),
88
95
  })
@@ -123,6 +130,16 @@ export const CoderWorkspaceDetailSchema = z
123
130
  .optional()
124
131
  .default('')
125
132
  .describe('Shell script run while preparing workspace snapshots'),
133
+ systemPrompt: z
134
+ .string()
135
+ .optional()
136
+ .default('')
137
+ .describe(
138
+ 'Additional Lead agent system prompt applied to sessions created from this workspace'
139
+ ),
140
+ systemPromptMode: CoderWorkspaceSystemPromptModeSchema.optional()
141
+ .default('append')
142
+ .describe('Whether the workspace system prompt appends to or overwrites the Lead prompt'),
126
143
  snapshot: z
127
144
  .object({
128
145
  status: z.string().describe('Workspace snapshot build status'),
@@ -353,6 +370,7 @@ function hasWorkspaceSelections(input: {
353
370
  repos?: unknown[];
354
371
  dependencies?: unknown[];
355
372
  setupScript?: string;
373
+ systemPrompt?: string;
356
374
  savedSkillIds?: unknown[];
357
375
  skillBucketIds?: unknown[];
358
376
  enabledAgents?: unknown[];
@@ -361,6 +379,7 @@ function hasWorkspaceSelections(input: {
361
379
  (input.repos?.length ?? 0) > 0 ||
362
380
  (input.dependencies?.length ?? 0) > 0 ||
363
381
  Boolean(input.setupScript?.trim()) ||
382
+ Boolean(input.systemPrompt?.trim()) ||
364
383
  (input.savedSkillIds?.length ?? 0) > 0 ||
365
384
  (input.skillBucketIds?.length ?? 0) > 0 ||
366
385
  (input.enabledAgents?.length ?? 0) > 0
@@ -381,6 +400,15 @@ export const CoderCreateWorkspaceRequestSchema = z
381
400
  .string()
382
401
  .optional()
383
402
  .describe('Shell script run while preparing workspace snapshots'),
403
+ systemPrompt: z
404
+ .string()
405
+ .optional()
406
+ .describe(
407
+ 'Additional Lead agent system prompt applied to sessions created from this workspace'
408
+ ),
409
+ systemPromptMode: CoderWorkspaceSystemPromptModeSchema.optional().describe(
410
+ 'Whether the workspace system prompt appends to or overwrites the Lead prompt'
411
+ ),
384
412
  savedSkillIds: z.array(z.string()).optional().describe('Saved skill IDs'),
385
413
  skillBucketIds: z.array(z.string()).optional().describe('Skill bucket IDs'),
386
414
  enabledAgents: z
@@ -390,7 +418,7 @@ export const CoderCreateWorkspaceRequestSchema = z
390
418
  })
391
419
  .refine(hasWorkspaceSelections, {
392
420
  message:
393
- 'A workspace needs at least one repo, dependency, setup script, saved skill, skill bucket, or agent',
421
+ 'A workspace needs at least one repo, dependency, setup script, system prompt, saved skill, skill bucket, or agent',
394
422
  })
395
423
  .describe('Request body for creating a workspace');
396
424
  export type CoderCreateWorkspaceRequest = z.infer<typeof CoderCreateWorkspaceRequestSchema>;
@@ -409,6 +437,15 @@ export const CoderUpdateWorkspaceRequestSchema = z
409
437
  .string()
410
438
  .optional()
411
439
  .describe('Shell script run while preparing workspace snapshots'),
440
+ systemPrompt: z
441
+ .string()
442
+ .optional()
443
+ .describe(
444
+ 'Additional Lead agent system prompt applied to sessions created from this workspace'
445
+ ),
446
+ systemPromptMode: CoderWorkspaceSystemPromptModeSchema.optional().describe(
447
+ 'Whether the workspace system prompt appends to or overwrites the Lead prompt'
448
+ ),
412
449
  savedSkillIds: z.array(z.string()).optional().describe('Saved skill IDs'),
413
450
  skillBucketIds: z.array(z.string()).optional().describe('Skill bucket IDs'),
414
451
  enabledAgents: z
@@ -529,6 +566,19 @@ export const CoderSaveSkillRequestSchema = z
529
566
  .describe('Request body for saving a skill to the library');
530
567
  export type CoderSaveSkillRequest = z.infer<typeof CoderSaveSkillRequestSchema>;
531
568
 
569
+ export const CoderCreateCustomSkillRequestSchema = z
570
+ .object({
571
+ skillId: z.string().describe('Skill identifier'),
572
+ name: z.string().describe('Skill name'),
573
+ description: z.string().optional().describe('Skill description'),
574
+ content: z
575
+ .string()
576
+ .refine((value) => value.trim().length > 0, 'SKILL.md content is required')
577
+ .describe('SKILL.md content'),
578
+ })
579
+ .describe('Request body for creating a custom skill');
580
+ export type CoderCreateCustomSkillRequest = z.infer<typeof CoderCreateCustomSkillRequestSchema>;
581
+
532
582
  export const CoderCreateSkillBucketRequestSchema = z
533
583
  .object({
534
584
  name: z.string().describe('Skill bucket name'),
@@ -6,6 +6,7 @@ export const ServiceUrlsSchema = z
6
6
  keyvalue: z.string().describe('URL for the key-value storage service.'),
7
7
  stream: z.string().describe('URL for the stream service.'),
8
8
  vector: z.string().describe('URL for the vector storage service.'),
9
+ aigateway: z.string().describe('URL for the AI Gateway service.'),
9
10
  catalyst: z.string().describe('URL for the Catalyst API gateway.'),
10
11
  otel: z.string().describe('URL for the OpenTelemetry collector.'),
11
12
  sandbox: z.string().describe('URL for the sandbox service.'),
@@ -42,6 +43,7 @@ export function getServiceUrls(region?: string): ServiceUrls {
42
43
  keyvalue: getEnv('AGENTUITY_KEYVALUE_URL') || transportUrl,
43
44
  stream: getEnv('AGENTUITY_STREAM_URL') || buildRegionalURL(resolvedRegion, 'streams'),
44
45
  vector: getEnv('AGENTUITY_VECTOR_URL') || transportUrl,
46
+ aigateway: getEnv('AGENTUITY_AIGATEWAY_URL') || buildRegionalURL(resolvedRegion, 'aigateway'),
45
47
  catalyst: getEnv('AGENTUITY_CATALYST_URL') || transportUrl,
46
48
  otel: getEnv('AGENTUITY_OTLP_URL') || buildRegionalURL(resolvedRegion, 'otel'),
47
49
  sandbox: getEnv('AGENTUITY_SANDBOX_URL') || transportUrl,
@@ -1,4 +1,5 @@
1
1
  export * from './adapter.ts';
2
+ export * from './aigateway/index.ts';
2
3
  export * from './auth/index.ts';
3
4
  export * from './email/index.ts';
4
5
  export * from './exception.ts';