@dinoxx/dinox-cli 2.20.0 → 2.20.1
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/README.md +7 -10
- package/dist/chunks/{chunk-QNIYFLJT.js → chunk-53CT7DJ3.js} +2 -2
- package/dist/chunks/{chunk-DR6BGSZM.js → chunk-G6JSWE66.js} +2 -2
- package/dist/chunks/{chunk-A6WF7CZL.js → chunk-PGR7R2HI.js} +3 -3
- package/dist/chunks/{chunk-ZHKS4R4P.js → chunk-QFSMFANX.js} +10 -6
- package/dist/chunks/{chunk-TAENC45D.js → chunk-VI7C4BBS.js} +3 -3
- package/dist/chunks/{chunk-WC3GSQBC.js → chunk-X7JXCHLI.js} +3 -3
- package/dist/chunks/{chunk-N6ALWINB.js → chunk-YDIE7QBM.js} +12 -12
- package/dist/chunks/{ensure-MLNCD2SD.js → ensure-CHJ5YTBX.js} +4 -4
- package/dist/chunks/{execute-57M65KKK.js → execute-RXJ4AO2Z.js} +3 -3
- package/dist/chunks/{mcp-PZBHAYXQ.js → mcp-NMKVOSVN.js} +2 -2
- package/dist/chunks/{mcpServer-T4DNYR7R.js → mcpServer-NYJAKMVH.js} +8 -8
- package/dist/chunks/{run-GCMWLTIV.js → run-ETPFUFB6.js} +4 -4
- package/dist/chunks/{runCli-SBQE2VQJ.js → runCli-GJRY73UA.js} +7 -7
- package/dist/dinox.js +7 -7
- package/dist/dsh-plugin/package.json +1 -1
- package/dist/dsh-plugin/runtime.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ Dinox CLI 适合这几类场景:
|
|
|
52
52
|
|
|
53
53
|
安装前请先确认:
|
|
54
54
|
|
|
55
|
-
- 推荐使用 Node.js 24 LTS
|
|
55
|
+
- 推荐使用 Node.js 24 或 26(LTS);支持 Node.js 22、23、24、25、26(不支持 Node.js 21 及以下或 27+)
|
|
56
56
|
- 已安装 npm
|
|
57
57
|
- 你的系统可以正常执行全局 npm 命令
|
|
58
58
|
|
|
@@ -65,7 +65,7 @@ npm -v
|
|
|
65
65
|
|
|
66
66
|
### 2.2 安装 Dinox CLI
|
|
67
67
|
|
|
68
|
-
先确认 `node -v` 是 v22
|
|
68
|
+
先确认 `node -v` 是 v22 到 v26,再全局安装。npm 11.16 及以后默认不编译 `better-sqlite3` 和 `sharp`,安装命令要放行这两个包:
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
71
|
npm install -g @dinoxx/dinox-cli@latest --allow-scripts=better-sqlite3,sharp
|
|
@@ -89,15 +89,12 @@ dino info
|
|
|
89
89
|
|
|
90
90
|
### 2.3 macOS 安装 Node.js(如果你还没装)
|
|
91
91
|
|
|
92
|
-
Homebrew 的 `node` 公式现在是 Node.js 26,CLI 不能用它。安装 Node.js 24:
|
|
93
|
-
|
|
94
92
|
```bash
|
|
95
|
-
brew install node
|
|
96
|
-
export PATH="$(brew --prefix node@24)/bin:$PATH"
|
|
93
|
+
brew install node
|
|
97
94
|
node -v
|
|
98
95
|
```
|
|
99
96
|
|
|
100
|
-
`node -v` 应显示
|
|
97
|
+
`node -v` 应显示 v22 到 v26。再执行上面的安装命令。
|
|
101
98
|
|
|
102
99
|
### 2.4 Windows 安装 Node.js(如果你还没装)
|
|
103
100
|
|
|
@@ -1022,9 +1019,9 @@ schema 包含命令路径、风险级别、参数、选项、输出字段和示
|
|
|
1022
1019
|
|
|
1023
1020
|
### Q1:安装或升级后出现 `allowScripts` / `Ignored build scripts`,或者一用就报 `better-sqlite3`
|
|
1024
1021
|
|
|
1025
|
-
原因:本地数据库依赖 `better-sqlite3`,图片处理依赖 `sharp`。npm 11.16+ 和 pnpm 10.15+ 默认不运行这两个包的安装脚本,本机程序就没有装上。Node.js
|
|
1022
|
+
原因:本地数据库依赖 `better-sqlite3`,图片处理依赖 `sharp`。npm 11.16+ 和 pnpm 10.15+ 默认不运行这两个包的安装脚本,本机程序就没有装上。Node.js 21 及以下也不在支持范围内。
|
|
1026
1023
|
|
|
1027
|
-
|
|
1024
|
+
解决:确认 Node.js 是 22 到 26,再重新安装。
|
|
1028
1025
|
|
|
1029
1026
|
```bash
|
|
1030
1027
|
node -v
|
|
@@ -1032,7 +1029,7 @@ npm install -g @dinoxx/dinox-cli@latest --allow-scripts=better-sqlite3,sharp
|
|
|
1032
1029
|
dino info
|
|
1033
1030
|
```
|
|
1034
1031
|
|
|
1035
|
-
`node -v` 必须是 v22 到
|
|
1032
|
+
`node -v` 必须是 v22 到 v26。黄字警告本身不是升级失败;版本号没有变成最新版时,用上面这条命令,不要继续用旧的 `dino update`。
|
|
1036
1033
|
|
|
1037
1034
|
### Q2:报错 `Missing resolved userId for the current authorization`
|
|
1038
1035
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
requestIdFromArgv,
|
|
5
5
|
runWithRequestId,
|
|
6
6
|
tryForwardToDaemon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G6JSWE66.js";
|
|
8
8
|
import {
|
|
9
9
|
localCommandExecution,
|
|
10
10
|
requestContext
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// src/requests/execute.ts
|
|
14
14
|
async function runCapturedInProcess(argv, onFatalError) {
|
|
15
|
-
const { runCli } = await import("./runCli-
|
|
15
|
+
const { runCli } = await import("./runCli-GJRY73UA.js");
|
|
16
16
|
const context = {
|
|
17
17
|
stdout: [],
|
|
18
18
|
stderr: [],
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getDaemonInfo,
|
|
9
9
|
getDaemonService,
|
|
10
10
|
sendDaemonRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QFSMFANX.js";
|
|
12
12
|
import {
|
|
13
13
|
getPackageVersion
|
|
14
14
|
} from "./chunk-WMJXAF3X.js";
|
|
@@ -736,7 +736,7 @@ var forwardDependencies = {
|
|
|
736
736
|
return Boolean(info && matchesRuntimeTokenBinding(info, version, config));
|
|
737
737
|
},
|
|
738
738
|
ensureDaemonRunning: async () => {
|
|
739
|
-
await (await import("./ensure-
|
|
739
|
+
await (await import("./ensure-CHJ5YTBX.js")).ensureDaemonRunning();
|
|
740
740
|
},
|
|
741
741
|
sendDaemonRequest,
|
|
742
742
|
envTokenOverridesLogin,
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
waitForDownloadIdle,
|
|
15
15
|
waitForLastSyncedAfter,
|
|
16
16
|
waitForUploadQueueEmpty
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X7JXCHLI.js";
|
|
18
18
|
import {
|
|
19
19
|
fingerprintDaemonRuntimeConfig,
|
|
20
20
|
loadConfig,
|
|
21
21
|
parseSyncTimeoutMs,
|
|
22
22
|
resolveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-G6JSWE66.js";
|
|
24
24
|
import {
|
|
25
25
|
acquireDaemonExclusiveIntentLock,
|
|
26
26
|
acquireDaemonStartLock,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
remainingDeadlineMs,
|
|
33
33
|
runWithinDeadline,
|
|
34
34
|
shutdownDaemonForExclusiveAccess
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QFSMFANX.js";
|
|
36
36
|
import {
|
|
37
37
|
getPackageVersion
|
|
38
38
|
} from "./chunk-WMJXAF3X.js";
|
|
@@ -128,6 +128,12 @@ var LaunchdService = class {
|
|
|
128
128
|
async isLoaded() {
|
|
129
129
|
return (await this.run("launchctl", ["print", this.target])).code === 0;
|
|
130
130
|
}
|
|
131
|
+
/** null: not loaded; otherwise whether a daemon process is up. */
|
|
132
|
+
async loadedState() {
|
|
133
|
+
const result = await this.run("launchctl", ["print", this.target]);
|
|
134
|
+
if (result.code !== 0) return null;
|
|
135
|
+
return { running: /^\s*state = running$/m.test(result.stdout) };
|
|
136
|
+
}
|
|
131
137
|
async bootstrap() {
|
|
132
138
|
let result = null;
|
|
133
139
|
for (let attempt = 0; attempt < LAUNCHD_BOOTSTRAP_ATTEMPTS; attempt += 1) {
|
|
@@ -143,12 +149,10 @@ var LaunchdService = class {
|
|
|
143
149
|
await this.bootstrap();
|
|
144
150
|
}
|
|
145
151
|
async start() {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
const result = await this.run("launchctl", ["kickstart", this.target]);
|
|
151
|
-
if (result.code !== 0) throw failed(this.kind, "kickstart", result);
|
|
152
|
+
const state = await this.loadedState();
|
|
153
|
+
if (state?.running) return;
|
|
154
|
+
if (state) await this.stop();
|
|
155
|
+
await this.bootstrap();
|
|
152
156
|
}
|
|
153
157
|
async stop() {
|
|
154
158
|
const result = await this.run("launchctl", ["bootout", this.target]);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
hydrateResolvedAuthIdentity,
|
|
6
6
|
restartDaemonLocked,
|
|
7
7
|
stopDaemonLocked
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-X7JXCHLI.js";
|
|
9
9
|
import {
|
|
10
10
|
daemonServiceSpec,
|
|
11
11
|
fingerprintDaemonRuntimeConfig,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
resolveConfig,
|
|
18
18
|
usableDaemonService,
|
|
19
19
|
withAsyncRelease
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-G6JSWE66.js";
|
|
21
21
|
import {
|
|
22
22
|
acquireDaemonStartLock,
|
|
23
23
|
getDaemonInfo,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
isProcessRunning,
|
|
28
28
|
readPid,
|
|
29
29
|
waitForFreshDaemon
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QFSMFANX.js";
|
|
31
31
|
import {
|
|
32
32
|
getPackageVersion
|
|
33
33
|
} from "./chunk-WMJXAF3X.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
toAuthorizationHeaderValue,
|
|
25
25
|
withAsyncRelease,
|
|
26
26
|
writeDaemonLogLine
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-G6JSWE66.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_TODO_FILTER,
|
|
30
30
|
parseTodoAppend,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
savePid,
|
|
55
55
|
shutdownLegacyDaemon,
|
|
56
56
|
waitForFreshDaemon
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QFSMFANX.js";
|
|
58
58
|
import {
|
|
59
59
|
agentLaunch
|
|
60
60
|
} from "./chunk-7ODU7LXP.js";
|
|
@@ -24220,7 +24220,7 @@ var DaemonServer = class {
|
|
|
24220
24220
|
}
|
|
24221
24221
|
};
|
|
24222
24222
|
const execute = async () => {
|
|
24223
|
-
const { runCli } = await import("./runCli-
|
|
24223
|
+
const { runCli } = await import("./runCli-GJRY73UA.js");
|
|
24224
24224
|
const exitCode = await requestContext.run(context, () => runCli(input.argv));
|
|
24225
24225
|
return { stdout: context.stdout.join(""), stderr: context.stderr.join(""), exitCode };
|
|
24226
24226
|
};
|
|
@@ -2,7 +2,7 @@ import { createRequire as __dinoxCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __dinoxCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ensureDaemonRunning
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VI7C4BBS.js";
|
|
6
6
|
import {
|
|
7
7
|
WRITE_DURABILITY_OPTION,
|
|
8
8
|
buildBatchWriteReceiptFields,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
withCommandRuntime,
|
|
34
34
|
withExclusivePowerSync,
|
|
35
35
|
withNoteDatabase
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PGR7R2HI.js";
|
|
37
37
|
import {
|
|
38
38
|
reportProgress
|
|
39
39
|
} from "./chunk-BZQYECIH.js";
|
|
@@ -235,10 +235,10 @@ import {
|
|
|
235
235
|
withNestedWriteTransaction,
|
|
236
236
|
withPowerSyncWriteTransaction,
|
|
237
237
|
withReadTransaction
|
|
238
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-X7JXCHLI.js";
|
|
239
239
|
import {
|
|
240
240
|
executeCommandLine
|
|
241
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-53CT7DJ3.js";
|
|
242
242
|
import {
|
|
243
243
|
AI_SERVICE_URL,
|
|
244
244
|
FORMAT_OPTIONS,
|
|
@@ -264,7 +264,7 @@ import {
|
|
|
264
264
|
updateConfig,
|
|
265
265
|
validateRequestId,
|
|
266
266
|
withAsyncRelease
|
|
267
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-G6JSWE66.js";
|
|
268
268
|
import {
|
|
269
269
|
acquireDaemonExclusiveIntentLock,
|
|
270
270
|
acquireDaemonStartLock,
|
|
@@ -277,7 +277,7 @@ import {
|
|
|
277
277
|
readPid,
|
|
278
278
|
sendDaemonRequest,
|
|
279
279
|
shutdownDaemonForExclusiveAccess
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-QFSMFANX.js";
|
|
281
281
|
import {
|
|
282
282
|
agentLaunch
|
|
283
283
|
} from "./chunk-7ODU7LXP.js";
|
|
@@ -3322,7 +3322,7 @@ var gatewayCommandGroup = {
|
|
|
3322
3322
|
examples: ["dino gateway mcp"]
|
|
3323
3323
|
},
|
|
3324
3324
|
action: async () => {
|
|
3325
|
-
const { serveDinoxMcpOverStdio } = await import("./mcpServer-
|
|
3325
|
+
const { serveDinoxMcpOverStdio } = await import("./mcpServer-NYJAKMVH.js");
|
|
3326
3326
|
await serveDinoxMcpOverStdio();
|
|
3327
3327
|
}
|
|
3328
3328
|
},
|
|
@@ -3404,7 +3404,7 @@ var editorCommandGroup = {
|
|
|
3404
3404
|
examples: ["dino editor mcp", "dino editor mcp --session codex"]
|
|
3405
3405
|
},
|
|
3406
3406
|
action: async (context) => {
|
|
3407
|
-
const { serveEditorMcpOverStdio } = await import("./mcp-
|
|
3407
|
+
const { serveEditorMcpOverStdio } = await import("./mcp-NMKVOSVN.js");
|
|
3408
3408
|
await serveEditorMcpOverStdio({ session: String(context.options.session ?? "mcp") });
|
|
3409
3409
|
}
|
|
3410
3410
|
},
|
|
@@ -11363,7 +11363,7 @@ var clipCommandGroup = {
|
|
|
11363
11363
|
examples: ["dino clip inspect https://example.com/article --format json"]
|
|
11364
11364
|
},
|
|
11365
11365
|
action: async (context) => {
|
|
11366
|
-
const { runClipInspect } = await import("./run-
|
|
11366
|
+
const { runClipInspect } = await import("./run-ETPFUFB6.js");
|
|
11367
11367
|
await runClipInspect(context);
|
|
11368
11368
|
}
|
|
11369
11369
|
},
|
|
@@ -11421,7 +11421,7 @@ var clipCommandGroup = {
|
|
|
11421
11421
|
]
|
|
11422
11422
|
},
|
|
11423
11423
|
action: async (context) => {
|
|
11424
|
-
const { runClipAdd } = await import("./run-
|
|
11424
|
+
const { runClipAdd } = await import("./run-ETPFUFB6.js");
|
|
11425
11425
|
await runClipAdd(context);
|
|
11426
11426
|
}
|
|
11427
11427
|
},
|
|
@@ -11442,7 +11442,7 @@ var clipCommandGroup = {
|
|
|
11442
11442
|
examples: ["dino clip process 01a1e3bb-3827-790d-b850-52b187c12b53 --format json"]
|
|
11443
11443
|
},
|
|
11444
11444
|
action: async (context) => {
|
|
11445
|
-
const { runClipProcess } = await import("./run-
|
|
11445
|
+
const { runClipProcess } = await import("./run-ETPFUFB6.js");
|
|
11446
11446
|
await runClipProcess(context);
|
|
11447
11447
|
}
|
|
11448
11448
|
},
|
|
@@ -13996,7 +13996,7 @@ function parseMcpGroups(raw) {
|
|
|
13996
13996
|
}
|
|
13997
13997
|
async function runMcp(context) {
|
|
13998
13998
|
const groups = parseMcpGroups(context.options.groups);
|
|
13999
|
-
const { serveStandaloneMcpOverStdio } = await import("./mcpServer-
|
|
13999
|
+
const { serveStandaloneMcpOverStdio } = await import("./mcpServer-NYJAKMVH.js");
|
|
14000
14000
|
await serveStandaloneMcpOverStdio({ readOnly: context.options.readOnly === true, groups });
|
|
14001
14001
|
}
|
|
14002
14002
|
var mcpCommandDescriptor = {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __dinoxCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __dinoxCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ensureDaemonRunning
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-VI7C4BBS.js";
|
|
6
|
+
import "./chunk-X7JXCHLI.js";
|
|
7
|
+
import "./chunk-G6JSWE66.js";
|
|
8
8
|
import "./chunk-BKCNERPB.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-QFSMFANX.js";
|
|
10
10
|
import "./chunk-7ODU7LXP.js";
|
|
11
11
|
import "./chunk-WMJXAF3X.js";
|
|
12
12
|
import "./chunk-6D3QLMRM.js";
|
|
@@ -3,9 +3,9 @@ const require = __dinoxCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executeCommandLine,
|
|
5
5
|
runCapturedInProcess
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-53CT7DJ3.js";
|
|
7
|
+
import "./chunk-G6JSWE66.js";
|
|
8
|
+
import "./chunk-QFSMFANX.js";
|
|
9
9
|
import "./chunk-WMJXAF3X.js";
|
|
10
10
|
import "./chunk-6D3QLMRM.js";
|
|
11
11
|
import "./chunk-XZLFMJOG.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-BKCNERPB.js";
|
|
6
6
|
import {
|
|
7
7
|
sendDaemonRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QFSMFANX.js";
|
|
9
9
|
import {
|
|
10
10
|
editorPackageRoot
|
|
11
11
|
} from "./chunk-7A5QISPG.js";
|
|
@@ -267,7 +267,7 @@ function createEditorMcpServer(options = {}) {
|
|
|
267
267
|
return server;
|
|
268
268
|
}
|
|
269
269
|
async function serveEditorMcpOverStdio(options = {}) {
|
|
270
|
-
const { ensureDaemonRunning } = await import("./ensure-
|
|
270
|
+
const { ensureDaemonRunning } = await import("./ensure-CHJ5YTBX.js");
|
|
271
271
|
let ensured = null;
|
|
272
272
|
const ensure = () => ensured ??= ensureDaemonRunning().finally(() => {
|
|
273
273
|
ensured = null;
|
|
@@ -3,9 +3,9 @@ const require = __dinoxCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
MCP_COMMAND_GROUPS,
|
|
5
5
|
listCommandSchemas
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YDIE7QBM.js";
|
|
7
|
+
import "./chunk-VI7C4BBS.js";
|
|
8
|
+
import "./chunk-PGR7R2HI.js";
|
|
9
9
|
import "./chunk-BZQYECIH.js";
|
|
10
10
|
import {
|
|
11
11
|
DINOX_MCP_SERVER_NAME,
|
|
@@ -14,15 +14,15 @@ import {
|
|
|
14
14
|
GATEWAY_SESSION_CWD_ENV,
|
|
15
15
|
GATEWAY_SESSION_TOKEN_ENV,
|
|
16
16
|
READ_CONVERSATION_MAX_LIMIT
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-X7JXCHLI.js";
|
|
18
|
+
import "./chunk-53CT7DJ3.js";
|
|
19
19
|
import {
|
|
20
20
|
tryForwardToDaemon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-G6JSWE66.js";
|
|
22
22
|
import "./chunk-BKCNERPB.js";
|
|
23
23
|
import {
|
|
24
24
|
sendDaemonRequest
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QFSMFANX.js";
|
|
26
26
|
import "./chunk-7ODU7LXP.js";
|
|
27
27
|
import {
|
|
28
28
|
getPackageVersion
|
|
@@ -62,7 +62,7 @@ function createCliCommandRunner(overrides = {}) {
|
|
|
62
62
|
noticeProvider: null,
|
|
63
63
|
cwd: process.cwd()
|
|
64
64
|
};
|
|
65
|
-
const { printCliError } = await import("./runCli-
|
|
65
|
+
const { printCliError } = await import("./runCli-GJRY73UA.js");
|
|
66
66
|
const code = requestContext.run(context, () => printCliError(error, argv));
|
|
67
67
|
throw Object.assign(new Error(`Command failed with exit code ${code}`), {
|
|
68
68
|
code,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
syncBeforeNoteCommand,
|
|
26
26
|
waitForMutationUpload,
|
|
27
27
|
withNoteDatabase
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PGR7R2HI.js";
|
|
29
29
|
import {
|
|
30
30
|
reportProgress
|
|
31
31
|
} from "./chunk-BZQYECIH.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveZettelBoxIdsForCreate,
|
|
37
37
|
uploadToOfficialStorage,
|
|
38
38
|
validateTagsForCreate
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-X7JXCHLI.js";
|
|
40
40
|
import {
|
|
41
41
|
isWorkbuddyUrl,
|
|
42
42
|
normalizeWorkbuddyUrl
|
|
@@ -139,9 +139,9 @@ import {
|
|
|
139
139
|
AI_SERVICE_URL,
|
|
140
140
|
generateId,
|
|
141
141
|
toAuthorizationHeaderValue
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-G6JSWE66.js";
|
|
143
143
|
import "./chunk-BKCNERPB.js";
|
|
144
|
-
import "./chunk-
|
|
144
|
+
import "./chunk-QFSMFANX.js";
|
|
145
145
|
import "./chunk-7ODU7LXP.js";
|
|
146
146
|
import "./chunk-WMJXAF3X.js";
|
|
147
147
|
import {
|
|
@@ -27,23 +27,23 @@ import {
|
|
|
27
27
|
registerTodoCommands,
|
|
28
28
|
registerUpdateCommand,
|
|
29
29
|
schemaCommandMetadata
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-YDIE7QBM.js";
|
|
31
|
+
import "./chunk-VI7C4BBS.js";
|
|
32
|
+
import "./chunk-PGR7R2HI.js";
|
|
33
33
|
import {
|
|
34
34
|
setProgressReporting
|
|
35
35
|
} from "./chunk-BZQYECIH.js";
|
|
36
36
|
import {
|
|
37
37
|
registerDaemonCommands,
|
|
38
38
|
registerStandaloneCommand
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-X7JXCHLI.js";
|
|
40
|
+
import "./chunk-53CT7DJ3.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_VALUE_OPTIONS,
|
|
43
43
|
validateRequestId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-G6JSWE66.js";
|
|
45
45
|
import "./chunk-BKCNERPB.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-QFSMFANX.js";
|
|
47
47
|
import "./chunk-7ODU7LXP.js";
|
|
48
48
|
import {
|
|
49
49
|
getPackageVersion
|
package/dist/dinox.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
requestIdFromArgv,
|
|
7
7
|
runWithRequestId,
|
|
8
8
|
tryForwardToDaemon
|
|
9
|
-
} from "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-G6JSWE66.js";
|
|
10
|
+
import "./chunks/chunk-QFSMFANX.js";
|
|
11
11
|
import {
|
|
12
12
|
getPackageVersion
|
|
13
13
|
} from "./chunks/chunk-WMJXAF3X.js";
|
|
@@ -49,14 +49,14 @@ function applyDefaultFormat(argv2, env = process.env, stdoutIsTTY = Boolean(proc
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// src/utils/nodeRuntime.ts
|
|
52
|
-
var SUPPORTED_NODE_MAJORS = /* @__PURE__ */ new Set([22, 23, 24, 25]);
|
|
52
|
+
var SUPPORTED_NODE_MAJORS = /* @__PURE__ */ new Set([22, 23, 24, 25, 26]);
|
|
53
53
|
function nodeMajor(version) {
|
|
54
54
|
return Number(version.trim().replace(/^v/, "").split(".")[0] ?? 0) || 0;
|
|
55
55
|
}
|
|
56
56
|
function unsupportedNodeMessage(version) {
|
|
57
57
|
const major = nodeMajor(version);
|
|
58
58
|
if (SUPPORTED_NODE_MAJORS.has(major)) return null;
|
|
59
|
-
return `Dinox CLI supports Node.js 22, 23, 24, and
|
|
59
|
+
return `Dinox CLI supports Node.js 22, 23, 24, 25, and 26. This process is Node.js ${version}.`;
|
|
60
60
|
}
|
|
61
61
|
var NODE_INSTALL_SUGGESTION = "Install Node.js 24, confirm `node -v` prints v24, then run: npm install -g @dinoxx/dinox-cli@latest --allow-scripts=better-sqlite3,sharp";
|
|
62
62
|
|
|
@@ -121,10 +121,10 @@ try {
|
|
|
121
121
|
process.stderr.write(forwarded.stderr);
|
|
122
122
|
process.exitCode = forwarded.exitCode;
|
|
123
123
|
} else {
|
|
124
|
-
const { runCli } = await import("./chunks/runCli-
|
|
124
|
+
const { runCli } = await import("./chunks/runCli-GJRY73UA.js");
|
|
125
125
|
const key = requestIdFromArgv(argv);
|
|
126
126
|
if (key && commandExecutionTarget(argv) === "daemon") {
|
|
127
|
-
const { runCapturedInProcess } = await import("./chunks/execute-
|
|
127
|
+
const { runCapturedInProcess } = await import("./chunks/execute-RXJ4AO2Z.js");
|
|
128
128
|
const result = await runWithRequestId(key, argv, () => runCapturedInProcess(argv, (error) => {
|
|
129
129
|
fatalError = error;
|
|
130
130
|
}));
|
|
@@ -138,7 +138,7 @@ try {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
} catch (error) {
|
|
141
|
-
const { printCliError } = await import("./chunks/runCli-
|
|
141
|
+
const { printCliError } = await import("./chunks/runCli-GJRY73UA.js");
|
|
142
142
|
process.exitCode = printCliError(error, argv);
|
|
143
143
|
}
|
|
144
144
|
if (isDinoxError(fatalError) && fatalError.requiresProcessExit) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dinoxx/dinox-cli",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.1",
|
|
4
4
|
"description": "Dinox CLI",
|
|
5
5
|
"main": "dist/dinox.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=22.0.0 <
|
|
21
|
+
"node": ">=22.0.0 <27.0.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@agentclientprotocol/sdk": "^1.8.0",
|