@agentuity/server 0.1.11 → 0.1.13

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 (43) hide show
  1. package/dist/api/org/resources.d.ts +3 -0
  2. package/dist/api/org/resources.d.ts.map +1 -1
  3. package/dist/api/org/resources.js +1 -0
  4. package/dist/api/org/resources.js.map +1 -1
  5. package/dist/api/project/deploy.d.ts.map +1 -1
  6. package/dist/api/project/deploy.js +3 -1
  7. package/dist/api/project/deploy.js.map +1 -1
  8. package/dist/api/region/create.d.ts +18 -0
  9. package/dist/api/region/create.d.ts.map +1 -1
  10. package/dist/api/region/create.js +123 -0
  11. package/dist/api/region/create.js.map +1 -1
  12. package/dist/api/sandbox/create.d.ts.map +1 -1
  13. package/dist/api/sandbox/create.js +11 -0
  14. package/dist/api/sandbox/create.js.map +1 -1
  15. package/dist/api/sandbox/files.d.ts.map +1 -1
  16. package/dist/api/sandbox/files.js +9 -1
  17. package/dist/api/sandbox/files.js.map +1 -1
  18. package/dist/api/sandbox/get.d.ts.map +1 -1
  19. package/dist/api/sandbox/get.js +9 -0
  20. package/dist/api/sandbox/get.js.map +1 -1
  21. package/dist/api/sandbox/list.d.ts.map +1 -1
  22. package/dist/api/sandbox/list.js +12 -0
  23. package/dist/api/sandbox/list.js.map +1 -1
  24. package/dist/api/sandbox/snapshot.d.ts.map +1 -1
  25. package/dist/api/sandbox/snapshot.js +11 -13
  26. package/dist/api/sandbox/snapshot.js.map +1 -1
  27. package/dist/api/sandbox/util.d.ts +4 -0
  28. package/dist/api/sandbox/util.d.ts.map +1 -1
  29. package/dist/api/sandbox/util.js.map +1 -1
  30. package/dist/api/session/get.d.ts +1 -1
  31. package/dist/api/session/get.js +1 -1
  32. package/dist/api/session/get.js.map +1 -1
  33. package/package.json +4 -4
  34. package/src/api/org/resources.ts +1 -0
  35. package/src/api/project/deploy.ts +3 -1
  36. package/src/api/region/create.ts +130 -1
  37. package/src/api/sandbox/create.ts +11 -0
  38. package/src/api/sandbox/files.ts +9 -1
  39. package/src/api/sandbox/get.ts +9 -0
  40. package/src/api/sandbox/list.ts +12 -0
  41. package/src/api/sandbox/snapshot.ts +11 -13
  42. package/src/api/sandbox/util.ts +2 -0
  43. package/src/api/session/get.ts +1 -1
@@ -277,7 +277,10 @@ const _SnapshotBuildInitParamsSchema = z
277
277
  name: z.string().optional().describe('Display name for the snapshot'),
278
278
  tag: z.string().optional().describe('Tag for the snapshot'),
279
279
  description: z.string().optional().describe('Description of the snapshot'),
280
- contentHash: z.string().optional().describe('SHA-256 hash of snapshot content for change detection'),
280
+ contentHash: z
281
+ .string()
282
+ .optional()
283
+ .describe('SHA-256 hash of snapshot content for change detection'),
281
284
  force: z.boolean().optional().describe('Force rebuild even if content is unchanged'),
282
285
  orgId: z.string().optional().describe('Organization ID'),
283
286
  })
@@ -286,7 +289,10 @@ const _SnapshotBuildInitParamsSchema = z
286
289
  const SnapshotBuildInitResponseSchema = z
287
290
  .object({
288
291
  snapshotId: z.string().optional().describe('Unique identifier for the snapshot being built'),
289
- uploadUrl: z.string().optional().describe('Pre-signed URL for uploading the snapshot archive'),
292
+ uploadUrl: z
293
+ .string()
294
+ .optional()
295
+ .describe('Pre-signed URL for uploading the snapshot archive'),
290
296
  s3Key: z.string().optional().describe('S3 key where the snapshot will be stored'),
291
297
  unchanged: z.boolean().optional().describe('True if snapshot content is unchanged'),
292
298
  existingId: z.string().optional().describe('ID of existing unchanged snapshot'),
@@ -302,17 +308,9 @@ const _SnapshotBuildFinalizeParamsSchema = z
302
308
  snapshotId: z.string().describe('Snapshot ID from init response'),
303
309
  sizeBytes: z.number().describe('Total size of the snapshot in bytes'),
304
310
  fileCount: z.number().describe('Number of files in the snapshot'),
305
- files: z
306
- .array(SnapshotFileInfoSchema)
307
- .describe('List of files with path and size'),
308
- dependencies: z
309
- .array(z.string())
310
- .optional()
311
- .describe('List of apt packages to install'),
312
- env: z
313
- .record(z.string(), z.string())
314
- .optional()
315
- .describe('Environment variables to set'),
311
+ files: z.array(SnapshotFileInfoSchema).describe('List of files with path and size'),
312
+ dependencies: z.array(z.string()).optional().describe('List of apt packages to install'),
313
+ env: z.record(z.string(), z.string()).optional().describe('Environment variables to set'),
316
314
  metadata: z
317
315
  .record(z.string(), z.string())
318
316
  .optional()
@@ -15,6 +15,8 @@ export const SandboxResponseError = StructuredError('SandboxResponseError')<{
15
15
  sandboxId?: string;
16
16
  /** The execution ID associated with the error, if applicable */
17
17
  executionId?: string;
18
+ /** The session ID (trace ID) from the x-session-id response header for OTel correlation */
19
+ sessionId?: string | null;
18
20
  }>();
19
21
 
20
22
  /** Current sandbox API version */
@@ -14,7 +14,7 @@ const EvalRunSchema = z.object({
14
14
  pending: z.boolean().describe('pending status'),
15
15
  success: z.boolean().describe('success status'),
16
16
  error: z.string().nullable().describe('error message'),
17
- result: z.string().nullable().describe('result JSON'),
17
+ result: z.record(z.string(), z.unknown()).nullable().describe('result object'),
18
18
  });
19
19
 
20
20
  export interface SpanNode {