dimcode 0.3.19-beta.0 → 0.3.19
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/dim.mjs +1 -15
- package/package.json +6 -6
package/bin/dim.mjs
CHANGED
|
@@ -243,10 +243,6 @@ function findBinary(startDir, base, binary) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
function spawnBinary(target, forwardedArgs) {
|
|
246
|
-
const cwd = readCurrentDirectory()
|
|
247
|
-
if (!cwd)
|
|
248
|
-
process.exit(2)
|
|
249
|
-
|
|
250
246
|
const env = {
|
|
251
247
|
...process.env,
|
|
252
248
|
DIMCODE_NPM_PACKAGE: wrapperName,
|
|
@@ -258,7 +254,7 @@ function spawnBinary(target, forwardedArgs) {
|
|
|
258
254
|
|
|
259
255
|
const result = childProcess.spawnSync(target, forwardedArgs, {
|
|
260
256
|
stdio: 'inherit',
|
|
261
|
-
cwd,
|
|
257
|
+
cwd: process.cwd(),
|
|
262
258
|
env,
|
|
263
259
|
windowsHide: false,
|
|
264
260
|
})
|
|
@@ -285,13 +281,3 @@ function spawnBinary(target, forwardedArgs) {
|
|
|
285
281
|
}
|
|
286
282
|
process.exit(typeof result.status === 'number' ? result.status : 0)
|
|
287
283
|
}
|
|
288
|
-
|
|
289
|
-
function readCurrentDirectory() {
|
|
290
|
-
try {
|
|
291
|
-
return process.cwd()
|
|
292
|
-
}
|
|
293
|
-
catch {
|
|
294
|
-
console.error('[dim] The current directory no longer exists or cannot be accessed.')
|
|
295
|
-
console.error('[dim] Change to an existing directory with cd, then run dim again.')
|
|
296
|
-
}
|
|
297
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dimcode",
|
|
3
|
-
"version": "0.3.19
|
|
3
|
+
"version": "0.3.19",
|
|
4
4
|
"description": "AI coding agent CLI and terminal coding assistant with an interactive TUI (beta channel)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"README.zh.md"
|
|
13
13
|
],
|
|
14
14
|
"optionalDependencies": {
|
|
15
|
-
"dimcode-darwin-arm64": "0.3.19
|
|
16
|
-
"dimcode-darwin-x64": "0.3.19
|
|
17
|
-
"dimcode-linux-arm64": "0.3.19
|
|
18
|
-
"dimcode-linux-x64": "0.3.19
|
|
19
|
-
"dimcode-windows-x64": "0.3.19
|
|
15
|
+
"dimcode-darwin-arm64": "0.3.19",
|
|
16
|
+
"dimcode-darwin-x64": "0.3.19",
|
|
17
|
+
"dimcode-linux-arm64": "0.3.19",
|
|
18
|
+
"dimcode-linux-x64": "0.3.19",
|
|
19
|
+
"dimcode-windows-x64": "0.3.19"
|
|
20
20
|
}
|
|
21
21
|
}
|