@tomflow/proflow-task-migration-runner 0.1.10 → 0.1.12
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,17 @@
|
|
|
1
1
|
# @tomflow/proflow-task-migration-runner
|
|
2
2
|
|
|
3
|
+
## 0.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(task-migration): preserve deployment result contract
|
|
8
|
+
|
|
9
|
+
## 0.1.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Ship the Phase 3 browser, tunnel, model automation, platform readiness, and documentation closure as one verifiable platform snapshot.
|
|
14
|
+
|
|
3
15
|
## 0.1.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -4,11 +4,11 @@ export declare const behaviorAdapter: {
|
|
|
4
4
|
result: {
|
|
5
5
|
contract: "deployment.result.v1";
|
|
6
6
|
moduleRef: "task-migration-runner";
|
|
7
|
-
moduleVersion: "0.1.
|
|
7
|
+
moduleVersion: "0.1.12";
|
|
8
8
|
ok: false;
|
|
9
9
|
status: "FAILED";
|
|
10
10
|
error: {
|
|
11
|
-
code: "
|
|
11
|
+
code: "INSTALL_FAILED";
|
|
12
12
|
message: string;
|
|
13
13
|
retryable: boolean;
|
|
14
14
|
};
|
|
@@ -20,7 +20,7 @@ export declare const behaviorAdapter: {
|
|
|
20
20
|
ok: true;
|
|
21
21
|
status: "SUCCEEDED";
|
|
22
22
|
moduleRef: "task-migration-runner";
|
|
23
|
-
moduleVersion: "0.1.
|
|
23
|
+
moduleVersion: "0.1.12";
|
|
24
24
|
data: {
|
|
25
25
|
applied: number[];
|
|
26
26
|
pending: number[];
|
|
@@ -34,7 +34,7 @@ export declare const behaviorAdapter: {
|
|
|
34
34
|
readonly ok: true;
|
|
35
35
|
readonly status: "SUCCEEDED";
|
|
36
36
|
readonly moduleRef: "task-migration-runner";
|
|
37
|
-
readonly moduleVersion: "0.1.
|
|
37
|
+
readonly moduleVersion: "0.1.12";
|
|
38
38
|
};
|
|
39
39
|
observedEffects: never[];
|
|
40
40
|
}>;
|
|
@@ -44,7 +44,7 @@ export declare const behaviorAdapter: {
|
|
|
44
44
|
ok: true;
|
|
45
45
|
status: "SUCCEEDED";
|
|
46
46
|
moduleRef: "task-migration-runner";
|
|
47
|
-
moduleVersion: "0.1.
|
|
47
|
+
moduleVersion: "0.1.12";
|
|
48
48
|
data: {
|
|
49
49
|
setupStatus: "FAILED" | "READY";
|
|
50
50
|
runtimeStatus: "NOT_APPLICABLE";
|
|
@@ -65,11 +65,11 @@ export declare const behaviorAdapter: {
|
|
|
65
65
|
readonly ok: true;
|
|
66
66
|
readonly status: "SUCCEEDED";
|
|
67
67
|
readonly moduleRef: "task-migration-runner";
|
|
68
|
-
readonly moduleVersion: "0.1.
|
|
68
|
+
readonly moduleVersion: "0.1.12";
|
|
69
69
|
} | {
|
|
70
70
|
contract: "deployment.result.v1";
|
|
71
71
|
moduleRef: "task-migration-runner";
|
|
72
|
-
moduleVersion: "0.1.
|
|
72
|
+
moduleVersion: "0.1.12";
|
|
73
73
|
ok: false;
|
|
74
74
|
status: "FAILED";
|
|
75
75
|
error: {
|
|
@@ -78,7 +78,7 @@ export declare const behaviorAdapter: {
|
|
|
78
78
|
retryable: boolean;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
-
observedEffects:
|
|
81
|
+
observedEffects: string[];
|
|
82
82
|
}>;
|
|
83
83
|
readonly docs: (_context: ModuleCommandContext) => Promise<{
|
|
84
84
|
result: {
|
|
@@ -86,7 +86,7 @@ export declare const behaviorAdapter: {
|
|
|
86
86
|
ok: true;
|
|
87
87
|
status: "SUCCEEDED";
|
|
88
88
|
moduleRef: "task-migration-runner";
|
|
89
|
-
moduleVersion: "0.1.
|
|
89
|
+
moduleVersion: "0.1.12";
|
|
90
90
|
data: {
|
|
91
91
|
docs: string;
|
|
92
92
|
};
|
|
@@ -99,7 +99,7 @@ export declare const behaviorAdapter: {
|
|
|
99
99
|
readonly ok: true;
|
|
100
100
|
readonly status: "SUCCEEDED";
|
|
101
101
|
readonly moduleRef: "task-migration-runner";
|
|
102
|
-
readonly moduleVersion: "0.1.
|
|
102
|
+
readonly moduleVersion: "0.1.12";
|
|
103
103
|
};
|
|
104
104
|
observedEffects: never[];
|
|
105
105
|
}>;
|
|
@@ -109,7 +109,7 @@ export declare const behaviorAdapter: {
|
|
|
109
109
|
readonly ok: true;
|
|
110
110
|
readonly status: "SUCCEEDED";
|
|
111
111
|
readonly moduleRef: "task-migration-runner";
|
|
112
|
-
readonly moduleVersion: "0.1.
|
|
112
|
+
readonly moduleVersion: "0.1.12";
|
|
113
113
|
};
|
|
114
114
|
observedEffects: never[];
|
|
115
115
|
}>;
|
|
@@ -119,7 +119,7 @@ export declare const behaviorAdapter: {
|
|
|
119
119
|
ok: true;
|
|
120
120
|
status: "SUCCEEDED";
|
|
121
121
|
moduleRef: "task-migration-runner";
|
|
122
|
-
moduleVersion: "0.1.
|
|
122
|
+
moduleVersion: "0.1.12";
|
|
123
123
|
data: {
|
|
124
124
|
applied: number[];
|
|
125
125
|
pending: number[];
|
|
@@ -127,11 +127,11 @@ export declare const behaviorAdapter: {
|
|
|
127
127
|
} | {
|
|
128
128
|
contract: "deployment.result.v1";
|
|
129
129
|
moduleRef: "task-migration-runner";
|
|
130
|
-
moduleVersion: "0.1.
|
|
130
|
+
moduleVersion: "0.1.12";
|
|
131
131
|
ok: false;
|
|
132
132
|
status: "FAILED";
|
|
133
133
|
error: {
|
|
134
|
-
code: "
|
|
134
|
+
code: "COMMAND_FAILED";
|
|
135
135
|
message: string;
|
|
136
136
|
retryable: boolean;
|
|
137
137
|
};
|
|
@@ -144,7 +144,7 @@ export declare const behaviorAdapter: {
|
|
|
144
144
|
ok: true;
|
|
145
145
|
status: "SUCCEEDED";
|
|
146
146
|
moduleRef: "task-migration-runner";
|
|
147
|
-
moduleVersion: "0.1.
|
|
147
|
+
moduleVersion: "0.1.12";
|
|
148
148
|
data: {
|
|
149
149
|
migrated: boolean;
|
|
150
150
|
appliedVersions: number[];
|
|
@@ -39,7 +39,7 @@ export const behaviorAdapter = {
|
|
|
39
39
|
ok: false,
|
|
40
40
|
status: "FAILED",
|
|
41
41
|
error: {
|
|
42
|
-
code: "
|
|
42
|
+
code: "INSTALL_FAILED",
|
|
43
43
|
message: migration.error?.message ?? "Task migration failed",
|
|
44
44
|
retryable: false,
|
|
45
45
|
},
|
|
@@ -85,9 +85,24 @@ export const behaviorAdapter = {
|
|
|
85
85
|
};
|
|
86
86
|
},
|
|
87
87
|
setup: async (context) => {
|
|
88
|
-
const
|
|
88
|
+
const migration = applyMigrations(input(context));
|
|
89
|
+
if (!migration.ok)
|
|
90
|
+
return {
|
|
91
|
+
result: {
|
|
92
|
+
...base,
|
|
93
|
+
ok: false,
|
|
94
|
+
status: "FAILED",
|
|
95
|
+
error: {
|
|
96
|
+
code: "SETUP_FAILED",
|
|
97
|
+
message: migration.error?.message ?? "Task migration state is not ready",
|
|
98
|
+
retryable: false,
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
observedEffects: [],
|
|
102
|
+
};
|
|
103
|
+
const verification = verifyMigrations(input(context));
|
|
89
104
|
return {
|
|
90
|
-
result:
|
|
105
|
+
result: verification.ok
|
|
91
106
|
? base
|
|
92
107
|
: {
|
|
93
108
|
...base,
|
|
@@ -95,11 +110,14 @@ export const behaviorAdapter = {
|
|
|
95
110
|
status: "FAILED",
|
|
96
111
|
error: {
|
|
97
112
|
code: "SETUP_FAILED",
|
|
98
|
-
message:
|
|
99
|
-
|
|
113
|
+
message: verification.error?.message ??
|
|
114
|
+
"Task migration state is not ready",
|
|
115
|
+
retryable: false,
|
|
100
116
|
},
|
|
101
117
|
},
|
|
102
|
-
observedEffects:
|
|
118
|
+
observedEffects: migration.applied.length > 0
|
|
119
|
+
? ["Applies Task Store migration SQL to SQLite"]
|
|
120
|
+
: [],
|
|
103
121
|
};
|
|
104
122
|
},
|
|
105
123
|
docs: async (_context) => ({
|
|
@@ -132,7 +150,7 @@ export const behaviorAdapter = {
|
|
|
132
150
|
ok: false,
|
|
133
151
|
status: "FAILED",
|
|
134
152
|
error: {
|
|
135
|
-
code: "
|
|
153
|
+
code: "COMMAND_FAILED",
|
|
136
154
|
message: migration.error?.message ?? "Task migration failed",
|
|
137
155
|
retryable: false,
|
|
138
156
|
},
|
|
@@ -3,7 +3,7 @@ export declare const descriptor: {
|
|
|
3
3
|
readonly contractVersion: "1.0.0";
|
|
4
4
|
readonly moduleRef: "task-migration-runner";
|
|
5
5
|
readonly packageName: "@tomflow/proflow-task-migration-runner";
|
|
6
|
-
readonly moduleVersion: "0.1.
|
|
6
|
+
readonly moduleVersion: "0.1.12";
|
|
7
7
|
readonly kind: "cli";
|
|
8
8
|
readonly templateVersion: "1.0.0";
|
|
9
9
|
readonly platformCompatibility: ">=1.0.0 <2.0.0";
|
|
@@ -3,7 +3,7 @@ export const descriptor = {
|
|
|
3
3
|
contractVersion: "1.0.0",
|
|
4
4
|
moduleRef: "task-migration-runner",
|
|
5
5
|
packageName: "@tomflow/proflow-task-migration-runner",
|
|
6
|
-
moduleVersion: "0.1.
|
|
6
|
+
moduleVersion: "0.1.12",
|
|
7
7
|
kind: "cli",
|
|
8
8
|
templateVersion: "1.0.0",
|
|
9
9
|
platformCompatibility: ">=1.0.0 <2.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomflow/proflow-task-migration-runner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"SETUP.md"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@tomflow/proflow-module-contract": "^0.1.
|
|
27
|
-
"@tomflow/proflow-task-store-sqlite": "^0.1.
|
|
26
|
+
"@tomflow/proflow-module-contract": "^0.1.13",
|
|
27
|
+
"@tomflow/proflow-task-store-sqlite": "^0.1.14"
|
|
28
28
|
},
|
|
29
29
|
"description": "Deterministically discovers, applies and verifies Task Store SQLite schema migrations.",
|
|
30
30
|
"keywords": [
|
package/proflow.module.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"contractVersion": "1.0.0",
|
|
4
4
|
"moduleRef": "task-migration-runner",
|
|
5
5
|
"packageName": "@tomflow/proflow-task-migration-runner",
|
|
6
|
-
"moduleVersion": "0.1.
|
|
6
|
+
"moduleVersion": "0.1.12",
|
|
7
7
|
"kind": "cli",
|
|
8
8
|
"templateVersion": "1.0.0",
|
|
9
9
|
"platformCompatibility": ">=1.0.0 <2.0.0",
|