@axiom-lattice/protocols 2.1.50 → 2.1.53

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.
@@ -31,7 +31,7 @@ export interface WorkflowRun {
31
31
  }
32
32
 
33
33
  export type StepType = 'task_delegation' | 'tool_call' | 'human_in_loop' | 'topology_transition' | 'agent' | 'human_feedback' | 'map' | 'input' | 'terminal';
34
- export type StepStatus = 'running' | 'completed' | 'failed' | 'interrupted' | 'skipped';
34
+ export type StepStatus = 'running' | 'completed' | 'failed' | 'interrupted' | 'skipped' | 'cancelled';
35
35
 
36
36
  export interface RunStep {
37
37
  id: string;
@@ -91,6 +91,24 @@ export interface UpdateRunStepRequest {
91
91
  durationMs?: number;
92
92
  }
93
93
 
94
+ export interface QueryWorkflowRunsOptions {
95
+ /** Filter by run status (e.g. 'interrupted' for inbox). */
96
+ status?: WorkflowRunStatus;
97
+ /** Filter by assistant. */
98
+ assistantId?: string;
99
+ /** Max records to return. Omit to return all matching runs. */
100
+ limit?: number;
101
+ /** Records to skip. Applied before limit. */
102
+ offset?: number;
103
+ }
104
+
105
+ export interface QueryWorkflowRunsResult {
106
+ /** Matching runs, always ordered by updatedAt DESC. */
107
+ records: WorkflowRun[];
108
+ /** Total matching runs BEFORE limit/offset. */
109
+ total: number;
110
+ }
111
+
94
112
  export interface WorkflowTrackingStore {
95
113
  // WorkflowRun CRUD
96
114
  createWorkflowRun(request: CreateWorkflowRunRequest): Promise<WorkflowRun>;
@@ -100,6 +118,11 @@ export interface WorkflowTrackingStore {
100
118
  getWorkflowRunsByThreadId(tenantId: string, threadId: string): Promise<WorkflowRun[]>;
101
119
  getWorkflowRunsByAssistantId(tenantId: string, assistantId: string): Promise<WorkflowRun[]>;
102
120
  getWorkflowRunsByTenantId(tenantId: string): Promise<WorkflowRun[]>;
121
+ /**
122
+ * Query runs with optional status/assistant filters and limit/offset pagination.
123
+ * Always ordered by updatedAt DESC. `total` counts all matching runs (ignores limit/offset).
124
+ */
125
+ queryWorkflowRuns(tenantId: string, options?: QueryWorkflowRunsOptions): Promise<QueryWorkflowRunsResult>;
103
126
 
104
127
  // RunStep CRUD
105
128
  createRunStep(request: CreateRunStepRequest): Promise<RunStep>;
package/src/index.ts CHANGED
@@ -37,6 +37,7 @@ export * from "./VectorStoreProviderProtocol";
37
37
  export * from "./MenuProtocol";
38
38
  export * from "./EvalStoreProtocol";
39
39
  export * from "./TaskStoreProtocol";
40
+ export * from "./TaskWorkItemProtocol";
40
41
 
41
42
  export * from "./ChannelAdapterProtocol";
42
43
  export * from "./A2AProtocol";
@@ -59,6 +60,7 @@ export type {
59
60
  PluginConnectionFieldSchema,
60
61
  PluginConnectionTestResult,
61
62
  PluginDiscoveredResource,
63
+ PluginContext,
62
64
  PluginToolMeta,
63
65
  PluginMiddlewareFactory,
64
66
  } from "./PluginProtocol";