@eigenpal/sdk 0.6.8 → 0.6.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eigenpal/sdk
2
2
 
3
+ ## 0.6.9
4
+
5
+ ### Minor Changes
6
+
7
+ - 5e7c051: Add `observability` (phase timeline + structured failure) to workflow execution and agent run status API responses.
8
+
3
9
  ## 0.6.4
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/sdk",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Official TypeScript SDK for the EigenPal API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -199,6 +199,7 @@ export type {
199
199
  CopyAgentExecutionOutputToExpectedBody,
200
200
  CreateAgentBody,
201
201
  CreateAgentResponse,
202
+ ExecutionObservability,
202
203
  ExecutionStatus,
203
204
  ExecutionSummary,
204
205
  GetAgentResponse,
@@ -266,9 +266,59 @@ export type AgentExecutionSummary = {
266
266
  expectedFiles?: Array<{
267
267
  name: string;
268
268
  }>;
269
+ observability?: ExecutionObservability;
269
270
  [key: string]: unknown;
270
271
  };
271
272
 
273
+ export type ExecutionObservability = {
274
+ phases: Array<{
275
+ executionId: string;
276
+ phase:
277
+ | 'queued'
278
+ | 'starting'
279
+ | 'preparing_inputs'
280
+ | 'preparing_environment'
281
+ | 'installing_dependencies'
282
+ | 'running'
283
+ | 'collecting_outputs'
284
+ | 'finalizing';
285
+ phaseOrder: number;
286
+ status: 'pending' | 'running' | 'completed' | 'failed' | 'skipped' | 'cancelled';
287
+ startedAt?: string | null;
288
+ completedAt?: string | null;
289
+ message?: string | null;
290
+ failureCode?: string | null;
291
+ durationMs?: number | null;
292
+ }>;
293
+ currentPhase?:
294
+ | 'queued'
295
+ | 'starting'
296
+ | 'preparing_inputs'
297
+ | 'preparing_environment'
298
+ | 'installing_dependencies'
299
+ | 'running'
300
+ | 'collecting_outputs'
301
+ | 'finalizing';
302
+ failure?: {
303
+ phase:
304
+ | 'queued'
305
+ | 'starting'
306
+ | 'preparing_inputs'
307
+ | 'preparing_environment'
308
+ | 'installing_dependencies'
309
+ | 'running'
310
+ | 'collecting_outputs'
311
+ | 'finalizing';
312
+ code: string;
313
+ category: 'input' | 'source' | 'environment' | 'runtime' | 'output' | 'finalization' | 'system';
314
+ provider?: string;
315
+ retryable: boolean;
316
+ userMessage: string;
317
+ occurredAt: string;
318
+ };
319
+ derived: boolean;
320
+ };
321
+
272
322
  export type ListAgentVersionsResponse = {
273
323
  agentId: string;
274
324
  slug: string;
@@ -280,6 +330,12 @@ export type ListAgentVersionsResponse = {
280
330
  commit: string;
281
331
  notes: string | null;
282
332
  createdAt: string | null;
333
+ createdByUser: {
334
+ id: string;
335
+ email: string;
336
+ name: string | null;
337
+ image: string | null;
338
+ } | null;
283
339
  latest: boolean;
284
340
  }>;
285
341
  };
@@ -460,6 +516,7 @@ export type ExecutionSummary = {
460
516
  id: string;
461
517
  name: string;
462
518
  } | null;
519
+ observability?: ExecutionObservability;
463
520
  };
464
521
 
465
522
  export type WorkflowDetail = {
@@ -561,6 +618,7 @@ export type WorkflowExecutionStatusResponse = {
561
618
  * Error message (status=failed)
562
619
  */
563
620
  error?: string | null;
621
+ observability?: ExecutionObservability;
564
622
  };
565
623
 
566
624
  export type ListWorkflowsResponse = {
package/src/telemetry.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  export const SDK_LANGUAGE = 'typescript';
20
20
  // Rewritten at publish time by scripts/render-sdk-versions.sh.
21
21
  // Keep this string literal exactly stable — sed matches on it.
22
- export const SDK_VERSION = '0.6.8';
22
+ export const SDK_VERSION = '0.6.9';
23
23
 
24
24
  function detectRuntime(): string {
25
25
  const g = globalThis as unknown as {