dfcode 3.1.1-beta.2 → 3.1.1-beta.4
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/bin/dfcode +9 -0
- package/package.json +6 -6
package/bin/dfcode
CHANGED
|
@@ -5,6 +5,15 @@ const fs = require("fs")
|
|
|
5
5
|
const path = require("path")
|
|
6
6
|
const os = require("os")
|
|
7
7
|
|
|
8
|
+
// The child TUI owns the ctrl+c lifecycle (copy / clear draft / double-press
|
|
9
|
+
// exit). On Windows the console broadcasts CTRL_C_EVENT to every process in
|
|
10
|
+
// the group, and this launcher dying is what used to take the TUI down with it
|
|
11
|
+
// (its parent watchdog saw an orphan). Registering a handler flips the signal
|
|
12
|
+
// disposition at registration time, so it holds even while spawnSync blocks
|
|
13
|
+
// the event loop. Trade-off: spawnSync exposes no child pid, so there is no
|
|
14
|
+
// "press ctrl+c N times to force-kill" ladder — a wedged child needs SIGTERM.
|
|
15
|
+
process.on("SIGINT", () => {})
|
|
16
|
+
|
|
8
17
|
function run(target) {
|
|
9
18
|
const result = childProcess.spawnSync(target, process.argv.slice(2), {
|
|
10
19
|
stdio: "inherit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dfcode",
|
|
3
|
-
"version": "3.1.1-beta.
|
|
3
|
+
"version": "3.1.1-beta.4",
|
|
4
4
|
"description": "AI-powered coding assistant - TUI interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dfcode": "./bin/dfcode"
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"postinstall": "node ./postinstall.mjs"
|
|
10
10
|
},
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"dfcode-darwin-arm64": "3.1.1-beta.
|
|
13
|
-
"dfcode-darwin-x64": "3.1.1-beta.
|
|
14
|
-
"dfcode-linux-x64": "3.1.1-beta.
|
|
15
|
-
"dfcode-linux-arm64": "3.1.1-beta.
|
|
16
|
-
"dfcode-windows-x64": "3.1.1-beta.
|
|
12
|
+
"dfcode-darwin-arm64": "3.1.1-beta.4",
|
|
13
|
+
"dfcode-darwin-x64": "3.1.1-beta.4",
|
|
14
|
+
"dfcode-linux-x64": "3.1.1-beta.4",
|
|
15
|
+
"dfcode-linux-arm64": "3.1.1-beta.4",
|
|
16
|
+
"dfcode-windows-x64": "3.1.1-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"keywords": ["ai", "coding", "assistant", "cli", "tui", "llm", "claude", "openai", "gpt"]
|