@deksden-com/dd-flow-cli 0.9.0-beta.22 → 0.9.0-beta.24
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 +17 -0
- package/README.md +9 -0
- package/dist/build-info.json +3 -3
- package/dist/cli/help.js +1 -0
- package/dist/cli/run-cli.js +3 -0
- package/dist/cli.js +0 -0
- package/dist/harness-runtime/bin/dd-agy.mjs +34 -0
- package/dist/harness-runtime/bin/dd-codex.mjs +22 -0
- package/dist/harness-runtime/bin/dd-droid.mjs +30 -0
- package/dist/harness-runtime/bin/dd-grok.mjs +28 -0
- package/dist/harness-runtime/bin/dd-opencode.mjs +18 -0
- package/dist/harness-runtime/bin/dd-zcode.mjs +62 -0
- package/dist/harness-runtime/lib/daemon-operations.mjs +78 -0
- package/dist/harness-runtime/lib/dd-agy-daemon.mjs +259 -0
- package/dist/harness-runtime/lib/dd-agy.mjs +59 -0
- package/dist/harness-runtime/lib/dd-codex-daemon.mjs +93 -0
- package/dist/harness-runtime/lib/dd-codex.mjs +387 -0
- package/dist/harness-runtime/lib/dd-droid-daemon.mjs +123 -0
- package/dist/harness-runtime/lib/dd-droid.mjs +435 -0
- package/dist/harness-runtime/lib/dd-grok-daemon.mjs +282 -0
- package/dist/harness-runtime/lib/dd-grok.mjs +168 -0
- package/dist/harness-runtime/lib/dd-opencode-daemon.mjs +157 -0
- package/dist/harness-runtime/lib/dd-opencode.mjs +80 -0
- package/dist/harness-runtime/lib/dd-zcode-daemon.mjs +419 -0
- package/dist/harness-runtime/lib/dd-zcode.mjs +598 -0
- package/dist/harness-runtime/lib/dispatch-fence.mjs +14 -0
- package/dist/harness-runtime/lib/driver-recovery.mjs +129 -0
- package/dist/harness-runtime/lib/droid-observation.mjs +66 -0
- package/dist/harness-runtime/lib/managed-daemon.mjs +119 -0
- package/dist/harness-runtime/lib/model-observations.mjs +77 -0
- package/dist/harness-runtime/lib/observation-clock.mjs +33 -0
- package/dist/harness-runtime/lib/operation-context.mjs +5 -0
- package/dist/harness-runtime/lib/operation-errors.mjs +19 -0
- package/dist/harness-runtime/lib/process-json.mjs +61 -0
- package/dist/harness-runtime/lib/process-snapshot.mjs +10 -0
- package/dist/harness-runtime/lib/runner-events.mjs +200 -0
- package/dist/harness-runtime/lib/runner-lock.mjs +42 -0
- package/dist/harness-runtime/lib/session-settlement.mjs +28 -0
- package/dist/services/code-checks.js +25 -11
- package/dist/services/execution-policy.js +61 -0
- package/dist/services/external-work-launch.js +76 -0
- package/dist/services/harness-adapter.js +31 -14
- package/dist/services/runs.js +2 -1
- package/dist/services/stage-context.js +2 -2
- package/dist/services/vnext-execution-profile.js +38 -3
- package/dist/storage/database.js +21 -0
- package/package.json +20 -13
package/dist/storage/database.js
CHANGED
|
@@ -116,6 +116,27 @@ export function ensureVnextWorkStorage(db) {
|
|
|
116
116
|
CREATE INDEX IF NOT EXISTS idx_check_receipts_run ON check_receipts(project_id, run_id, started_at);
|
|
117
117
|
`);
|
|
118
118
|
}
|
|
119
|
+
/** Durable intent for a provider-root external Work. It is deliberately
|
|
120
|
+
* separate from `work_sessions`: only a trusted hook may bind that Session. */
|
|
121
|
+
export function ensureWorkLaunchStorage(db) {
|
|
122
|
+
db.exec(`
|
|
123
|
+
CREATE TABLE IF NOT EXISTS work_launches (
|
|
124
|
+
operation_id TEXT PRIMARY KEY,
|
|
125
|
+
work_id TEXT NOT NULL UNIQUE,
|
|
126
|
+
profile_json TEXT NOT NULL,
|
|
127
|
+
profile_hash TEXT NOT NULL,
|
|
128
|
+
status TEXT NOT NULL,
|
|
129
|
+
state_dir TEXT NOT NULL,
|
|
130
|
+
journal_path TEXT NOT NULL,
|
|
131
|
+
provider_session_id TEXT,
|
|
132
|
+
adapter_receipt_json TEXT,
|
|
133
|
+
created_at TEXT NOT NULL,
|
|
134
|
+
updated_at TEXT NOT NULL,
|
|
135
|
+
FOREIGN KEY(work_id) REFERENCES works(work_id)
|
|
136
|
+
);
|
|
137
|
+
CREATE INDEX IF NOT EXISTS idx_work_launches_status ON work_launches(status, updated_at DESC);
|
|
138
|
+
`);
|
|
139
|
+
}
|
|
119
140
|
export function getDatabase(ddFlowHome, mode = "initialize") {
|
|
120
141
|
const dbPath = path.join(ddFlowHome, "db.sqlite");
|
|
121
142
|
const exists = fs.existsSync(dbPath);
|
package/package.json
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deksden-com/dd-flow-cli",
|
|
3
|
-
"version": "0.9.0-beta.
|
|
3
|
+
"version": "0.9.0-beta.24",
|
|
4
4
|
"description": "Mechanical runtime CLI for dd-flow workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"dd-flow": "dist/cli.js"
|
|
7
|
+
"dd-flow": "dist/cli.js",
|
|
8
|
+
"dd-codex": "dist/harness-runtime/bin/dd-codex.mjs",
|
|
9
|
+
"dd-zcode": "dist/harness-runtime/bin/dd-zcode.mjs",
|
|
10
|
+
"dd-grok": "dist/harness-runtime/bin/dd-grok.mjs",
|
|
11
|
+
"dd-opencode": "dist/harness-runtime/bin/dd-opencode.mjs",
|
|
12
|
+
"dd-agy": "dist/harness-runtime/bin/dd-agy.mjs",
|
|
13
|
+
"dd-droid": "dist/harness-runtime/bin/dd-droid.mjs"
|
|
8
14
|
},
|
|
9
15
|
"files": [
|
|
10
16
|
"dist",
|
|
@@ -16,6 +22,16 @@
|
|
|
16
22
|
"node": ">=26.0.0",
|
|
17
23
|
"pnpm": ">=10.0.0"
|
|
18
24
|
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.build.json && node scripts/generate-build-info.mjs && node scripts/copy-assets.mjs",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "eslint . --max-warnings=0",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"changeset": "changeset",
|
|
31
|
+
"version-packages": "changeset version",
|
|
32
|
+
"release": "pnpm run build && changeset publish",
|
|
33
|
+
"prepublishOnly": "node scripts/verify-release-build.mjs"
|
|
34
|
+
},
|
|
19
35
|
"devDependencies": {
|
|
20
36
|
"@changesets/cli": "^2.31.0",
|
|
21
37
|
"@eslint/js": "^9.39.1",
|
|
@@ -34,14 +50,5 @@
|
|
|
34
50
|
"publishConfig": {
|
|
35
51
|
"access": "public"
|
|
36
52
|
},
|
|
37
|
-
"license": "MIT"
|
|
38
|
-
|
|
39
|
-
"build": "tsc -p tsconfig.build.json && node scripts/generate-build-info.mjs && node scripts/copy-assets.mjs",
|
|
40
|
-
"typecheck": "tsc --noEmit",
|
|
41
|
-
"lint": "eslint . --max-warnings=0",
|
|
42
|
-
"test": "vitest run",
|
|
43
|
-
"changeset": "changeset",
|
|
44
|
-
"version-packages": "changeset version",
|
|
45
|
-
"release": "pnpm run build && changeset publish"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
53
|
+
"license": "MIT"
|
|
54
|
+
}
|