@tomflow/proflow-task-migration-runner 0.1.8 → 0.1.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
  # @tomflow/proflow-task-migration-runner
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Upgrade the ProFlow terminal experience, stream Registry and package-manager progress, publish structured Chinese Module documentation, and provide numbered package-owned Setup assistants.
8
+
3
9
  ## 0.1.8
4
10
 
5
11
  ### Patch Changes
package/DOCS.md CHANGED
@@ -1,11 +1,38 @@
1
- # task-migration-runner
1
+ # task-migration-runner — Task 数据迁移工具
2
2
 
3
- Task Migration Runner(任务迁移工具)负责按顺序升级 Task Store(任务存储)的 SQLite 数据结构,并验证升级结果。
3
+ ## 模块定位与作用
4
+
5
+ 以受控 CLI 执行 Task SQLite Schema 迁移,确保数据库版本升级可追踪、可重复且不会混入 Runtime 启动逻辑。
4
6
 
5
7
  ## 主要能力
6
8
 
7
- - 发现尚未执行的 Migration(迁移)。
8
- - 在事务中执行升级,失败时回滚。
9
- - 记录版本并支持重复运行。
9
+ - 读取当前 Schema 版本并按顺序执行待应用迁移。
10
+ - 在事务中应用迁移,失败时停止并保留诊断信息。
11
+ - 报告已应用版本与最终状态。
12
+
13
+ ## 提供的 API 与 Public Contract
14
+
15
+ - 不提供跨 Module 逻辑 Contract。
16
+ - 提供 `proflow-task-migrate` CLI;返回强类型结果,不提供 `--json`。
17
+
18
+ ## 依赖的 Module、Contract 和外部资源
19
+
20
+ - 无上游 Module Contract 依赖。
21
+ - 依赖 Node.js、Task SQLite 文件和迁移资源。
22
+
23
+ ## 运行形态与生命周期
24
+
25
+ 类型为 CLI,按需运行后退出,没有常驻进程。
26
+
27
+ ## 使用方式
28
+
29
+ 部署或版本升级流程调用 `proflow-task-migrate`;执行前必须使用明确 Workspace 和数据库边界。
30
+
31
+ ## 职责边界与限制
32
+
33
+ 不承载 Task 业务服务、不自动猜测数据库位置,也不在失败后跳过迁移继续启动。
34
+
35
+ ## 术语
10
36
 
11
- 平台安装时会自动调用它;普通用户通常不需要手工执行。
37
+ - Migration(迁移):把持久化结构从一个已知版本升级到下一版本的操作。
38
+ - Schema Version(结构版本):当前数据库结构对应的有序版本号。
@@ -4,7 +4,7 @@ export declare const behaviorAdapter: {
4
4
  result: {
5
5
  contract: "deployment.result.v1";
6
6
  moduleRef: "task-migration-runner";
7
- moduleVersion: "0.1.8";
7
+ moduleVersion: "0.1.9";
8
8
  ok: false;
9
9
  status: "FAILED";
10
10
  error: {
@@ -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.8";
23
+ moduleVersion: "0.1.9";
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.8";
37
+ readonly moduleVersion: "0.1.9";
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.8";
47
+ moduleVersion: "0.1.9";
48
48
  data: {
49
49
  setupStatus: "FAILED" | "READY";
50
50
  runtimeStatus: "NOT_APPLICABLE";
@@ -58,11 +58,11 @@ export declare const behaviorAdapter: {
58
58
  readonly ok: true;
59
59
  readonly status: "SUCCEEDED";
60
60
  readonly moduleRef: "task-migration-runner";
61
- readonly moduleVersion: "0.1.8";
61
+ readonly moduleVersion: "0.1.9";
62
62
  } | {
63
63
  contract: "deployment.result.v1";
64
64
  moduleRef: "task-migration-runner";
65
- moduleVersion: "0.1.8";
65
+ moduleVersion: "0.1.9";
66
66
  ok: false;
67
67
  status: "FAILED";
68
68
  error: {
@@ -79,7 +79,7 @@ export declare const behaviorAdapter: {
79
79
  ok: true;
80
80
  status: "SUCCEEDED";
81
81
  moduleRef: "task-migration-runner";
82
- moduleVersion: "0.1.8";
82
+ moduleVersion: "0.1.9";
83
83
  data: {
84
84
  docs: string;
85
85
  };
@@ -92,7 +92,7 @@ export declare const behaviorAdapter: {
92
92
  readonly ok: true;
93
93
  readonly status: "SUCCEEDED";
94
94
  readonly moduleRef: "task-migration-runner";
95
- readonly moduleVersion: "0.1.8";
95
+ readonly moduleVersion: "0.1.9";
96
96
  };
97
97
  observedEffects: never[];
98
98
  }>;
@@ -102,7 +102,7 @@ export declare const behaviorAdapter: {
102
102
  readonly ok: true;
103
103
  readonly status: "SUCCEEDED";
104
104
  readonly moduleRef: "task-migration-runner";
105
- readonly moduleVersion: "0.1.8";
105
+ readonly moduleVersion: "0.1.9";
106
106
  };
107
107
  observedEffects: never[];
108
108
  }>;
@@ -112,7 +112,7 @@ export declare const behaviorAdapter: {
112
112
  ok: true;
113
113
  status: "SUCCEEDED";
114
114
  moduleRef: "task-migration-runner";
115
- moduleVersion: "0.1.8";
115
+ moduleVersion: "0.1.9";
116
116
  data: {
117
117
  applied: number[];
118
118
  pending: number[];
@@ -120,7 +120,7 @@ export declare const behaviorAdapter: {
120
120
  } | {
121
121
  contract: "deployment.result.v1";
122
122
  moduleRef: "task-migration-runner";
123
- moduleVersion: "0.1.8";
123
+ moduleVersion: "0.1.9";
124
124
  ok: false;
125
125
  status: "FAILED";
126
126
  error: {
@@ -137,7 +137,7 @@ export declare const behaviorAdapter: {
137
137
  ok: true;
138
138
  status: "SUCCEEDED";
139
139
  moduleRef: "task-migration-runner";
140
- moduleVersion: "0.1.8";
140
+ moduleVersion: "0.1.9";
141
141
  data: {
142
142
  migrated: boolean;
143
143
  appliedVersions: number[];
@@ -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.8";
6
+ readonly moduleVersion: "0.1.9";
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.8",
6
+ moduleVersion: "0.1.9",
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.8",
3
+ "version": "0.1.9",
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.10",
27
- "@tomflow/proflow-task-store-sqlite": "^0.1.8"
26
+ "@tomflow/proflow-module-contract": "^0.1.11",
27
+ "@tomflow/proflow-task-store-sqlite": "^0.1.9"
28
28
  },
29
29
  "description": "Deterministically discovers, applies and verifies Task Store SQLite schema migrations.",
30
30
  "keywords": [
@@ -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.8",
6
+ "moduleVersion": "0.1.9",
7
7
  "kind": "cli",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",