@tomflow/proflow-task-store-sqlite 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-store-sqlite
2
2
 
3
+ ## 0.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Close the Real-3 runtime reconciliation, health, browser effect-result boundary, observer pagination, and standalone execution-runtime configuration gaps for final human acceptance.
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
@@ -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.10";
10
+ moduleVersion: "0.1.12";
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.10";
23
+ readonly moduleVersion: "0.1.12";
24
24
  };
25
25
  observedEffects: never[];
26
26
  }>;
@@ -30,7 +30,7 @@ export declare const behaviorAdapter: {
30
30
  ok: true;
31
31
  status: "SUCCEEDED";
32
32
  moduleRef: "task-store-sqlite";
33
- moduleVersion: "0.1.10";
33
+ moduleVersion: "0.1.12";
34
34
  data: {
35
35
  setupStatus: "FAILED" | "READY";
36
36
  runtimeStatus: "NOT_APPLICABLE";
@@ -51,11 +51,11 @@ export declare const behaviorAdapter: {
51
51
  readonly ok: true;
52
52
  readonly status: "SUCCEEDED";
53
53
  readonly moduleRef: "task-store-sqlite";
54
- readonly moduleVersion: "0.1.10";
54
+ readonly moduleVersion: "0.1.12";
55
55
  } | {
56
56
  contract: "deployment.result.v1";
57
57
  moduleRef: "task-store-sqlite";
58
- moduleVersion: "0.1.10";
58
+ moduleVersion: "0.1.12";
59
59
  ok: false;
60
60
  status: "FAILED";
61
61
  error: {
@@ -72,7 +72,7 @@ export declare const behaviorAdapter: {
72
72
  ok: true;
73
73
  status: "SUCCEEDED";
74
74
  moduleRef: "task-store-sqlite";
75
- moduleVersion: "0.1.10";
75
+ moduleVersion: "0.1.12";
76
76
  data: {
77
77
  docs: string;
78
78
  };
@@ -85,7 +85,7 @@ export declare const behaviorAdapter: {
85
85
  readonly ok: true;
86
86
  readonly status: "SUCCEEDED";
87
87
  readonly moduleRef: "task-store-sqlite";
88
- readonly moduleVersion: "0.1.10";
88
+ readonly moduleVersion: "0.1.12";
89
89
  };
90
90
  observedEffects: never[];
91
91
  }>;
@@ -95,7 +95,7 @@ export declare const behaviorAdapter: {
95
95
  readonly ok: true;
96
96
  readonly status: "SUCCEEDED";
97
97
  readonly moduleRef: "task-store-sqlite";
98
- readonly moduleVersion: "0.1.10";
98
+ readonly moduleVersion: "0.1.12";
99
99
  };
100
100
  observedEffects: never[];
101
101
  }>;
@@ -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.10";
6
+ readonly moduleVersion: "0.1.12";
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.10",
6
+ moduleVersion: "0.1.12",
7
7
  kind: "library",
8
8
  templateVersion: "1.0.0",
9
9
  platformCompatibility: ">=1.0.0 <2.0.0",
@@ -1,4 +1,4 @@
1
- import type { TaskRepositories, TaskStore } from "@tomflow/proflow-task-orchestration";
1
+ import type { Task, TaskRepositories, TaskStore } from "@tomflow/proflow-task-orchestration";
2
2
  export { type TaskMigration, type TaskMigrationContext, taskMigrations, } from "./migrations.ts";
3
3
  export declare class SqliteTaskStore implements TaskStore {
4
4
  #private;
@@ -8,6 +8,14 @@ export declare class SqliteTaskStore implements TaskStore {
8
8
  });
9
9
  transaction<T>(work: (repositories: TaskRepositories) => T): T;
10
10
  read<T>(work: (repositories: TaskRepositories) => T): T;
11
+ listReconciliationTaskIds(input: {
12
+ statuses: readonly Task["status"][];
13
+ afterTaskId?: string;
14
+ limit: number;
15
+ }): {
16
+ taskIds: string[];
17
+ nextAfterTaskId?: string;
18
+ };
11
19
  close(): void;
12
20
  diagnostics(): {
13
21
  journalMode: string;
package/dist/src/index.js CHANGED
@@ -277,6 +277,25 @@ export class SqliteTaskStore {
277
277
  read(work) {
278
278
  return work(this.#repositories());
279
279
  }
280
+ listReconciliationTaskIds(input) {
281
+ const statuses = [...new Set(input.statuses.filter((value) => value.length > 0))];
282
+ if (statuses.length === 0)
283
+ return { taskIds: [] };
284
+ if (!Number.isFinite(input.limit))
285
+ throw new RangeError("reconciliation page limit must be finite");
286
+ const limit = Math.max(1, Math.min(1_000, Math.trunc(input.limit)));
287
+ const placeholders = statuses.map(() => "?").join(",");
288
+ const rows = this.#database
289
+ .prepare(`SELECT task_id FROM tasks WHERE status IN (${placeholders})${input.afterTaskId ? " AND task_id > ?" : ""} ORDER BY task_id LIMIT ?`)
290
+ .all(...statuses, ...(input.afterTaskId ? [input.afterTaskId] : []), limit);
291
+ const taskIds = rows.map((row) => String(row.task_id));
292
+ return {
293
+ taskIds,
294
+ ...(taskIds.length === limit
295
+ ? { nextAfterTaskId: taskIds[taskIds.length - 1] }
296
+ : {}),
297
+ };
298
+ }
280
299
  close() {
281
300
  this.#database.close();
282
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomflow/proflow-task-store-sqlite",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
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.12",
24
- "@tomflow/proflow-task-orchestration": "^0.1.8"
23
+ "@tomflow/proflow-module-contract": "^0.1.13",
24
+ "@tomflow/proflow-task-orchestration": "^0.1.11"
25
25
  },
26
26
  "devDependencies": {
27
- "@tomflow/proflow-task-migration-runner": "^0.1.10"
27
+ "@tomflow/proflow-task-migration-runner": "^0.1.11"
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.10",
6
+ "moduleVersion": "0.1.12",
7
7
  "kind": "library",
8
8
  "templateVersion": "1.0.0",
9
9
  "platformCompatibility": ">=1.0.0 <2.0.0",