@tomflow/proflow-task-store-sqlite 0.1.0

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/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@tomflow/proflow-task-store-sqlite",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "exports": {
9
+ ".": "./dist/src/index.js",
10
+ "./migrations": "./dist/src/migrations.js",
11
+ "./deployment/adapter": "./dist/deployment/adapter.js",
12
+ "./deployment/descriptor": "./dist/deployment/descriptor.js"
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "proflow.module.json",
17
+ "conformance.json",
18
+ "README.md",
19
+ "self-install.mjs"
20
+ ],
21
+ "dependencies": {
22
+ "@tomflow/proflow-task-orchestration": "^0.1.0",
23
+ "@tomflow/proflow-module-contract": "^0.1.0"
24
+ },
25
+ "devDependencies": {
26
+ "@tomflow/proflow-task-migration-runner": "^0.1.0"
27
+ },
28
+ "description": "Provides the node:sqlite store and repository adapters for Task-owned structured facts.",
29
+ "keywords": [
30
+ "proflow",
31
+ "proflow-module",
32
+ "task-orchestration"
33
+ ],
34
+ "proflow": {
35
+ "module": true,
36
+ "installClass": "core",
37
+ "installRequires": [
38
+ "@tomflow/proflow-module-contract",
39
+ "@tomflow/proflow-task-orchestration"
40
+ ],
41
+ "descriptor": "./dist/deployment/descriptor.js",
42
+ "manifest": "./proflow.module.json"
43
+ },
44
+ "bin": {
45
+ "proflow-task-store-sqlite": "./self-install.mjs"
46
+ },
47
+ "scripts": {
48
+ "test": "node --test tests/**/*.test.ts",
49
+ "typecheck": "tsc --noEmit"
50
+ }
51
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "contract": "module",
3
+ "contractVersion": "1.0.0",
4
+ "moduleRef": "task-store-sqlite",
5
+ "packageName": "@tomflow/proflow-task-store-sqlite",
6
+ "moduleVersion": "0.1.0",
7
+ "kind": "library",
8
+ "templateVersion": "1.0.0",
9
+ "platformCompatibility": ">=1.0.0 <2.0.0",
10
+ "installClass": "core",
11
+ "identity": {
12
+ "domain": "task-orchestration",
13
+ "summary": "Provides the node:sqlite store and repository adapters for Task-owned structured facts."
14
+ },
15
+ "provides": [],
16
+ "requires": [
17
+ {
18
+ "contractRef": "task-orchestration",
19
+ "versionRange": ">=1.0.0 <2.0.0"
20
+ }
21
+ ],
22
+ "requirements": [
23
+ {
24
+ "kind": "runtime",
25
+ "runtime": "node",
26
+ "versionRange": ">=24.19.0"
27
+ }
28
+ ],
29
+ "configSlots": [
30
+ {
31
+ "key": "databasePath",
32
+ "type": "path",
33
+ "required": true,
34
+ "description": "Task SQLite database path"
35
+ }
36
+ ],
37
+ "lifecycle": {
38
+ "supported": ["describe", "preflight", "verify", "doctor"]
39
+ },
40
+ "verification": {
41
+ "checks": [
42
+ {
43
+ "id": "sqlite-integrity-pass",
44
+ "description": "SQLite schema and integrity checks pass",
45
+ "lifecycle": "verify"
46
+ }
47
+ ]
48
+ },
49
+ "effects": [
50
+ {
51
+ "kind": "filesystem",
52
+ "description": "Persists Task-owned structured facts in SQLite",
53
+ "retention": "preserve"
54
+ }
55
+ ],
56
+ "documentation": [
57
+ {
58
+ "id": "overview",
59
+ "path": "./README.md",
60
+ "description": "Package-owned module overview"
61
+ }
62
+ ]
63
+ }
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from "node:child_process";
3
+
4
+ const [command, ...rest] = process.argv.slice(2);
5
+ const usage = "Usage: npx @tomflow/proflow-task-store-sqlite install\n";
6
+ if (command === "--help" || command === "-h") {
7
+ process.stdout.write(usage);
8
+ process.exit(0);
9
+ }
10
+ if (command !== "install" || rest.length > 0) {
11
+ process.stderr.write(usage);
12
+ process.exit(2);
13
+ }
14
+ const executable = process.platform === "win32" ? "npx.cmd" : "npx";
15
+ const result = spawnSync(
16
+ executable,
17
+ [
18
+ "--yes",
19
+ "@tomflow/proflow-platform-cli",
20
+ "install",
21
+ "@tomflow/proflow-task-store-sqlite",
22
+ ],
23
+ { cwd: process.cwd(), env: process.env, stdio: "inherit" },
24
+ );
25
+ if (result.error) throw result.error;
26
+ process.exit(result.status ?? 1);