ai-data-workflow-contract 0.1.0 → 0.1.2

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 (2) hide show
  1. package/package.json +5 -6
  2. package/src/index.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-data-workflow-contract",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "AI Data Workflow RunGraph contracts backed by EagerDataFlow authoring plans",
6
6
  "type": "module",
@@ -9,14 +9,13 @@
9
9
  ".": "./src/index.ts"
10
10
  },
11
11
  "dependencies": {
12
- "ai-workflow-contract": "0.1.0",
13
- "eager-data-flow-contract": "0.1.0"
12
+ "ai-workflow-contract": "0.1.5",
13
+ "eager-data-flow-contract": "0.1.2"
14
14
  },
15
15
  "files": [
16
16
  "src"
17
17
  ],
18
18
  "publishConfig": {
19
- "access": "public",
20
- "registry": "https://registry.npmjs.com"
19
+ "access": "public"
21
20
  }
22
- }
21
+ }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type {
2
+ AIDataWorkflowRunProfileState,
2
3
  AIDataWorkflowDefinitionBinding,
3
4
  AIWorkflowDefinitionRef,
4
5
  AIWorkflowEffectiveReusePolicy,
@@ -8,6 +9,7 @@ import type {
8
9
  AIWorkflowRunRef,
9
10
  AIWorkflowRunStatus,
10
11
  AIWorkflowSemanticFingerprint,
12
+ FlowRunCheckpoint,
11
13
  } from 'ai-workflow-contract';
12
14
  import type {
13
15
  EagerDataFlowAuthoringPlan,
@@ -105,6 +107,7 @@ export type AIDataWorkflowGraphPatchOperation =
105
107
 
106
108
  export interface AIDataWorkflowGraphPatch {
107
109
  readonly patchId: string;
110
+ readonly generation?: number;
108
111
  readonly reason?: string;
109
112
  readonly operations: readonly AIDataWorkflowGraphPatchOperation[];
110
113
  readonly atMs?: number;
@@ -121,6 +124,7 @@ export interface AIDataWorkflowPatchRecord {
121
124
  export interface AIDataWorkflowRunGraph {
122
125
  readonly runId: string;
123
126
  readonly binding: AIDataWorkflowDefinitionBinding;
127
+ readonly platformDefaultPolicy?: AIWorkflowReusePolicy;
124
128
  readonly currentGeneration: number;
125
129
  readonly nodes: Readonly<Record<string, AIDataWorkflowRunNode>>;
126
130
  readonly declarationOrder: readonly string[];
@@ -161,3 +165,7 @@ export interface AIDataWorkflowPlanProjection {
161
165
  readonly binding: AIDataWorkflowDefinitionBinding;
162
166
  readonly plan: EagerDataFlowAuthoringPlan;
163
167
  }
168
+
169
+ export type AIDataWorkflowRunCheckpoint = FlowRunCheckpoint<
170
+ AIDataWorkflowRunProfileState<AIDataWorkflowRunGraph>
171
+ >;