@tomflow/proflow-task-store-sqlite 0.1.8 → 0.1.10

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-store-sqlite
2
2
 
3
+ ## 0.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Distinguish dependency blocking from verified failure, expose Module-owned status diagnostics, remove automatic docs paging, consolidate start checks, add contextual help, and clarify uninstall output.
8
+
9
+ ## 0.1.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Upgrade the ProFlow terminal experience, stream Registry and package-manager progress, publish structured Chinese Module documentation, and provide numbered package-owned Setup assistants.
14
+
3
15
  ## 0.1.8
4
16
 
5
17
  ### Patch Changes
package/DOCS.md CHANGED
@@ -1,11 +1,39 @@
1
- # task-store-sqlite
1
+ # task-store-sqlite — Task SQLite 存储
2
2
 
3
- Task Store SQLite(任务 SQLite 存储)为任务领域提供本机持久化,保存任务、节点、角色绑定、文档和幂等记录。
3
+ ## 模块定位与作用
4
4
 
5
- ## 工作方式
5
+ 使用 Node 原生 SQLite 实现 Task 领域定义的 Repository 与事务端口,负责可靠保存任务、节点、文档和绑定事实。
6
6
 
7
- - 使用 SQLite 事务保证多项更新同时成功或同时失败。
8
- - 使用 WAL(预写日志)提高可靠性和并发读取能力。
9
- - 启动时检查数据库结构和完整性。
7
+ ## 主要能力
10
8
 
11
- 数据库由模块维护,不建议直接编辑 `.proflow/state` 中的文件。
9
+ - 提供 Schema 初始化、事务、Prepared Statement 和 WAL 配置。
10
+ - 保存 Task 聚合、Node、TaskDocument 与 Role Binding。
11
+ - 执行并发版本检查和原子写入,支持进程重启后的恢复。
12
+
13
+ ## 提供的 API 与 Public Contract
14
+
15
+ - 不提供新的逻辑 Contract;实现 `task-orchestration` 中定义的持久化端口。
16
+ - 只通过公开 Repository 接口访问,不公开内部 SQL 表作为跨域 API。
17
+
18
+ ## 依赖的 Module、Contract 和外部资源
19
+
20
+ - 依赖 `task-orchestration`,兼容版本 `>=1.0.0 <2.0.0`。
21
+ - 依赖 Node `node:sqlite` 与 Workspace 中受控的数据库路径。
22
+
23
+ ## 运行形态与生命周期
24
+
25
+ 类型为 Library,数据库连接由组合根管理,无独立服务进程。
26
+
27
+ ## 使用方式
28
+
29
+ 由 Platform Host 在启动时构造 Store 并注入 Task 应用服务;迁移通过专用 Migration Runner 执行。
30
+
31
+ ## 职责边界与限制
32
+
33
+ 不定义 Task 业务规则、不允许其他领域直接查询表,也不把 SQLite 文件路径作为用户配置。
34
+
35
+ ## 术语
36
+
37
+ - Repository(仓储):领域模型访问持久化的公开端口。
38
+ - WAL(预写式日志):SQLite 的并发与恢复日志模式。
39
+ - Transaction(事务):保证一组写入全部成功或全部撤销的边界。
@@ -7,7 +7,7 @@ export declare const behaviorAdapter: {
7
7
  ok: true;
8
8
  status: "SUCCEEDED";
9
9
  moduleRef: "task-store-sqlite";
10
- moduleVersion: "0.1.8";
10
+ moduleVersion: "0.1.10";
11
11
  data: {
12
12
  databasePath: string;
13
13
  };
@@ -20,7 +20,7 @@ export declare const behaviorAdapter: {
20
20
  readonly ok: true;
21
21
  readonly status: "SUCCEEDED";
22
22
  readonly moduleRef: "task-store-sqlite";
23
- readonly moduleVersion: "0.1.8";
23
+ readonly moduleVersion: "0.1.10";
24
24
  };
25
25
  observedEffects: never[];
26
26
  }>;
@@ -30,10 +30,17 @@ export declare const behaviorAdapter: {
30
30
  ok: true;
31
31
  status: "SUCCEEDED";
32
32
  moduleRef: "task-store-sqlite";
33
- moduleVersion: "0.1.8";
33
+ moduleVersion: "0.1.10";
34
34
  data: {
35
35
  setupStatus: "FAILED" | "READY";
36
36
  runtimeStatus: "NOT_APPLICABLE";
37
+ issues?: {
38
+ scope: "SETUP";
39
+ code: string;
40
+ message: string;
41
+ relatedModuleRefs: string[];
42
+ nextCommand: string;
43
+ }[];
37
44
  };
38
45
  };
39
46
  observedEffects: never[];
@@ -44,11 +51,11 @@ export declare const behaviorAdapter: {
44
51
  readonly ok: true;
45
52
  readonly status: "SUCCEEDED";
46
53
  readonly moduleRef: "task-store-sqlite";
47
- readonly moduleVersion: "0.1.8";
54
+ readonly moduleVersion: "0.1.10";
48
55
  } | {
49
56
  contract: "deployment.result.v1";
50
57
  moduleRef: "task-store-sqlite";
51
- moduleVersion: "0.1.8";
58
+ moduleVersion: "0.1.10";
52
59
  ok: false;
53
60
  status: "FAILED";
54
61
  error: {
@@ -65,7 +72,7 @@ export declare const behaviorAdapter: {
65
72
  ok: true;
66
73
  status: "SUCCEEDED";
67
74
  moduleRef: "task-store-sqlite";
68
- moduleVersion: "0.1.8";
75
+ moduleVersion: "0.1.10";
69
76
  data: {
70
77
  docs: string;
71
78
  };
@@ -78,7 +85,7 @@ export declare const behaviorAdapter: {
78
85
  readonly ok: true;
79
86
  readonly status: "SUCCEEDED";
80
87
  readonly moduleRef: "task-store-sqlite";
81
- readonly moduleVersion: "0.1.8";
88
+ readonly moduleVersion: "0.1.10";
82
89
  };
83
90
  observedEffects: never[];
84
91
  }>;
@@ -88,7 +95,7 @@ export declare const behaviorAdapter: {
88
95
  readonly ok: true;
89
96
  readonly status: "SUCCEEDED";
90
97
  readonly moduleRef: "task-store-sqlite";
91
- readonly moduleVersion: "0.1.8";
98
+ readonly moduleVersion: "0.1.10";
92
99
  };
93
100
  observedEffects: never[];
94
101
  }>;
@@ -60,18 +60,32 @@ export const behaviorAdapter = {
60
60
  result: base,
61
61
  observedEffects: [],
62
62
  }),
63
- status: async (context) => ({
64
- result: {
65
- ...base,
66
- data: {
67
- setupStatus: inspect(taskDatabasePath(context))
68
- ? "READY"
69
- : "FAILED",
70
- runtimeStatus: "NOT_APPLICABLE",
63
+ status: async (context) => {
64
+ const ready = inspect(taskDatabasePath(context));
65
+ return {
66
+ result: {
67
+ ...base,
68
+ data: {
69
+ setupStatus: ready ? "READY" : "FAILED",
70
+ runtimeStatus: "NOT_APPLICABLE",
71
+ ...(ready
72
+ ? {}
73
+ : {
74
+ issues: [
75
+ {
76
+ scope: "SETUP",
77
+ code: "TASK_SCHEMA_MISSING",
78
+ message: "Task SQLite schema 尚未正确初始化",
79
+ relatedModuleRefs: ["task-migration-runner"],
80
+ nextCommand: "platform setup --module task-migration-runner",
81
+ },
82
+ ],
83
+ }),
84
+ },
71
85
  },
72
- },
73
- observedEffects: [],
74
- }),
86
+ observedEffects: [],
87
+ };
88
+ },
75
89
  setup: async (context) => ({
76
90
  result: inspect(taskDatabasePath(context))
77
91
  ? base
@@ -3,7 +3,7 @@ export declare const descriptor: {
3
3
  readonly contractVersion: "1.0.0";
4
4
  readonly moduleRef: "task-store-sqlite";
5
5
  readonly packageName: "@tomflow/proflow-task-store-sqlite";
6
- readonly moduleVersion: "0.1.8";
6
+ readonly moduleVersion: "0.1.10";
7
7
  readonly kind: "library";
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-store-sqlite",
5
5
  packageName: "@tomflow/proflow-task-store-sqlite",
6
- moduleVersion: "0.1.8",
6
+ moduleVersion: "0.1.10",
7
7
  kind: "library",
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-store-sqlite",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,11 +20,11 @@
20
20
  "SETUP.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@tomflow/proflow-module-contract": "^0.1.10",
24
- "@tomflow/proflow-task-orchestration": "^0.1.7"
23
+ "@tomflow/proflow-module-contract": "^0.1.12",
24
+ "@tomflow/proflow-task-orchestration": "^0.1.8"
25
25
  },
26
26
  "devDependencies": {
27
- "@tomflow/proflow-task-migration-runner": "^0.1.8"
27
+ "@tomflow/proflow-task-migration-runner": "^0.1.10"
28
28
  },
29
29
  "description": "Provides the node:sqlite store and repository adapters for Task-owned structured facts.",
30
30
  "keywords": [
@@ -3,7 +3,7 @@
3
3
  "contractVersion": "1.0.0",
4
4
  "moduleRef": "task-store-sqlite",
5
5
  "packageName": "@tomflow/proflow-task-store-sqlite",
6
- "moduleVersion": "0.1.8",
6
+ "moduleVersion": "0.1.10",
7
7
  "kind": "library",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",