@dinoxx/dinox-cli 3.0.0 → 3.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/dist/chunks/{chunk-BZQYECIH.js → chunk-52XLDO77.js} +1 -1
- package/dist/chunks/{chunk-N5YDNM3P.js → chunk-5SORBZTD.js} +1 -1
- package/dist/chunks/{chunk-N2VYTZWU.js → chunk-DKY574LO.js} +3 -3
- package/dist/chunks/{chunk-ARBWJ3ZA.js → chunk-G6Y3MOUL.js} +1075 -109
- package/dist/chunks/{chunk-2DREJFKB.js → chunk-JNRA4TTH.js} +1 -1
- package/dist/chunks/{chunk-3VZNZWDG.js → chunk-LAWV5XGL.js} +5 -0
- package/dist/chunks/{chunk-MLOITAK6.js → chunk-LXC3IW4L.js} +2 -2
- package/dist/chunks/{chunk-NVKSI4BD.js → chunk-MMO7CINX.js} +50 -590
- package/dist/chunks/{chunk-HG3RZFDX.js → chunk-OZXS77HJ.js} +7 -7
- package/dist/chunks/{chunk-KJBN7TD7.js → chunk-PCB2JD6H.js} +6 -6
- package/dist/chunks/{chunk-6D3QLMRM.js → chunk-TOGYWN3D.js} +1 -1
- package/dist/chunks/{chunk-WABL3OUP.js → chunk-WCY3EKJQ.js} +4 -4
- package/dist/chunks/{chunk-SM2QOO45.js → chunk-YFGDTC2F.js} +9 -2
- package/dist/chunks/{chunk-QPVGA46P.js → chunk-YX4SIEVS.js} +3 -3
- package/dist/chunks/{cookies-ORQ3RLAH.js → cookies-UUQZXH4R.js} +4 -4
- package/dist/chunks/{ensure-MPOQ244L.js → ensure-2OPNFDRW.js} +7 -7
- package/dist/chunks/{execute-KMNZ5EFR.js → execute-C5W5ZJDC.js} +5 -5
- package/dist/chunks/{install-35YBLHXE.js → install-VBMWNPO6.js} +1 -1
- package/dist/chunks/{mcp-H667ML2O.js → mcp-WK7KIU44.js} +8 -6
- package/dist/chunks/{mcpServer-G2WEAD2O.js → mcpServer-M4HJFSNU.js} +13 -13
- package/dist/chunks/{run-7D6ATULD.js → run-WNHMZLSJ.js} +11 -11
- package/dist/chunks/{runCli-QEWWUIZN.js → runCli-GKTCIDBF.js} +12 -12
- package/dist/chunks/{setup-DSTOF3BZ.js → setup-UYCLFOZH.js} +6 -6
- package/dist/dinox.js +7 -7
- package/dist/dsh-plugin/lib/client.js +977 -267
- package/dist/dsh-plugin/lib/index.js +10 -6
- package/dist/dsh-plugin/package.json +1 -1
- package/dist/dsh-plugin/runtime.json +1 -1
- package/dist/editor-ui/mcp-app.html +420 -318
- package/package.json +5 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createRequire as __dinoxCreateRequire } from 'node:module';
|
|
2
2
|
const require = __dinoxCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
DEFAULT_DAEMON_PORT,
|
|
5
4
|
closePowerSyncAndReleaseOwner,
|
|
6
5
|
connectPowerSync,
|
|
7
6
|
createTimeoutSignal,
|
|
@@ -14,14 +13,15 @@ import {
|
|
|
14
13
|
waitForDownloadIdle,
|
|
15
14
|
waitForLastSyncedAfter,
|
|
16
15
|
waitForUploadQueueEmpty
|
|
17
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G6Y3MOUL.js";
|
|
18
17
|
import {
|
|
19
18
|
fingerprintDaemonRuntimeConfig,
|
|
20
19
|
loadConfig,
|
|
21
20
|
parseSyncTimeoutMs,
|
|
22
21
|
resolveConfig
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WCY3EKJQ.js";
|
|
24
23
|
import {
|
|
24
|
+
DEFAULT_DAEMON_PORT,
|
|
25
25
|
acquireDaemonExclusiveIntentLock,
|
|
26
26
|
acquireDaemonStartLock,
|
|
27
27
|
getDaemonInfo,
|
|
@@ -32,23 +32,23 @@ import {
|
|
|
32
32
|
remainingDeadlineMs,
|
|
33
33
|
runWithinDeadline,
|
|
34
34
|
shutdownDaemonForExclusiveAccess
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YFGDTC2F.js";
|
|
36
36
|
import {
|
|
37
37
|
getPackageVersion
|
|
38
38
|
} from "./chunk-WMJXAF3X.js";
|
|
39
39
|
import {
|
|
40
40
|
readStringOrFile
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-LXC3IW4L.js";
|
|
42
42
|
import {
|
|
43
43
|
printHumanReadableWarning,
|
|
44
44
|
requestContext
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-TOGYWN3D.js";
|
|
46
46
|
import {
|
|
47
47
|
getPowerSyncDbPath
|
|
48
48
|
} from "./chunk-XZLFMJOG.js";
|
|
49
49
|
import {
|
|
50
50
|
DinoxError
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LAWV5XGL.js";
|
|
52
52
|
|
|
53
53
|
// src/daemon/lifecycle.ts
|
|
54
54
|
import { existsSync } from "node:fs";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { createRequire as __dinoxCreateRequire } from 'node:module';
|
|
2
2
|
const require = __dinoxCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
DEFAULT_DAEMON_PORT,
|
|
5
4
|
hydrateResolvedAuthIdentity,
|
|
6
5
|
restartDaemonLocked,
|
|
7
6
|
stopDaemonLocked
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G6Y3MOUL.js";
|
|
9
8
|
import {
|
|
10
9
|
daemonServiceSpec,
|
|
11
10
|
fingerprintDaemonRuntimeConfig,
|
|
@@ -17,8 +16,9 @@ import {
|
|
|
17
16
|
resolveConfig,
|
|
18
17
|
usableDaemonService,
|
|
19
18
|
withAsyncRelease
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-WCY3EKJQ.js";
|
|
21
20
|
import {
|
|
21
|
+
DEFAULT_DAEMON_PORT,
|
|
22
22
|
acquireDaemonStartLock,
|
|
23
23
|
getDaemonInfo,
|
|
24
24
|
getDaemonService,
|
|
@@ -27,16 +27,16 @@ import {
|
|
|
27
27
|
isProcessRunning,
|
|
28
28
|
readPid,
|
|
29
29
|
waitForFreshDaemon
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YFGDTC2F.js";
|
|
31
31
|
import {
|
|
32
32
|
getPackageVersion
|
|
33
33
|
} from "./chunk-WMJXAF3X.js";
|
|
34
34
|
import {
|
|
35
35
|
printHumanReadableWarning
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TOGYWN3D.js";
|
|
37
37
|
import {
|
|
38
38
|
DinoxError
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-LAWV5XGL.js";
|
|
40
40
|
|
|
41
41
|
// src/daemon/ensure.ts
|
|
42
42
|
import { existsSync } from "node:fs";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __dinoxCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __dinoxCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
DinoxError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LAWV5XGL.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/requestContext.ts
|
|
8
8
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
getDaemonInfo,
|
|
9
9
|
getDaemonService,
|
|
10
10
|
sendDaemonRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YFGDTC2F.js";
|
|
12
12
|
import {
|
|
13
13
|
getPackageVersion
|
|
14
14
|
} from "./chunk-WMJXAF3X.js";
|
|
15
15
|
import {
|
|
16
16
|
printHumanReadableWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TOGYWN3D.js";
|
|
18
18
|
import {
|
|
19
19
|
getConfigDir,
|
|
20
20
|
getConfigFilePath,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-XZLFMJOG.js";
|
|
23
23
|
import {
|
|
24
24
|
DinoxError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LAWV5XGL.js";
|
|
26
26
|
|
|
27
27
|
// src/utils/id.ts
|
|
28
28
|
import { uuidv7 } from "uuidv7";
|
|
@@ -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-2OPNFDRW.js")).ensureDaemonRunning();
|
|
740
740
|
},
|
|
741
741
|
sendDaemonRequest,
|
|
742
742
|
envTokenOverridesLogin,
|
|
@@ -10,7 +10,11 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
DinoxError,
|
|
12
12
|
wireErrorCode
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LAWV5XGL.js";
|
|
14
|
+
|
|
15
|
+
// src/daemon/types.ts
|
|
16
|
+
var DEFAULT_DAEMON_PORT = 45678;
|
|
17
|
+
var DAEMON_METHOD_HEADER = "x-dinox-method";
|
|
14
18
|
|
|
15
19
|
// src/daemon/supervisor.ts
|
|
16
20
|
import crypto from "node:crypto";
|
|
@@ -874,7 +878,8 @@ async function sendDaemonRequest(method, params, requestOptions = {}) {
|
|
|
874
878
|
headers: {
|
|
875
879
|
Host: "dinox-daemon",
|
|
876
880
|
"Content-Type": "application/json",
|
|
877
|
-
"Content-Length": Buffer.byteLength(data)
|
|
881
|
+
"Content-Length": Buffer.byteLength(data),
|
|
882
|
+
.../^[\w.]{1,100}$/.test(method) ? { [DAEMON_METHOD_HEADER]: method } : {}
|
|
878
883
|
},
|
|
879
884
|
timeout: timeoutMs
|
|
880
885
|
};
|
|
@@ -1193,6 +1198,8 @@ async function shutdownDaemonForExclusiveAccess(timeoutMs = 5e3, expectedInstanc
|
|
|
1193
1198
|
|
|
1194
1199
|
export {
|
|
1195
1200
|
acquireExclusiveSqliteLease,
|
|
1201
|
+
DEFAULT_DAEMON_PORT,
|
|
1202
|
+
DAEMON_METHOD_HEADER,
|
|
1196
1203
|
DAEMON_SERVICE_ENV,
|
|
1197
1204
|
getDaemonService,
|
|
1198
1205
|
getDaemonDir,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __dinoxCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __dinoxCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readStringOrFile
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LXC3IW4L.js";
|
|
6
6
|
import {
|
|
7
7
|
parseNetscapeCookies
|
|
8
8
|
} from "./chunk-ULKGDBAJ.js";
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
printHumanReadableLine,
|
|
12
12
|
printSuccess,
|
|
13
13
|
resolveUserPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TOGYWN3D.js";
|
|
15
15
|
import {
|
|
16
16
|
getDataDir
|
|
17
17
|
} from "./chunk-XZLFMJOG.js";
|
|
18
18
|
import {
|
|
19
19
|
DinoxError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LAWV5XGL.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/clip/cookies.ts
|
|
23
23
|
import fs from "node:fs/promises";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
runClipCookiesSet,
|
|
12
12
|
serializeNetscapeCookies,
|
|
13
13
|
summarizeCookies
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-YX4SIEVS.js";
|
|
15
|
+
import "./chunk-LXC3IW4L.js";
|
|
16
16
|
import "./chunk-ULKGDBAJ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-TOGYWN3D.js";
|
|
18
18
|
import "./chunk-XZLFMJOG.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-LAWV5XGL.js";
|
|
20
20
|
import "./chunk-XQZUX7OT.js";
|
|
21
21
|
export {
|
|
22
22
|
clipCookiesFile,
|
|
@@ -2,16 +2,16 @@ 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-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-PCB2JD6H.js";
|
|
6
|
+
import "./chunk-G6Y3MOUL.js";
|
|
7
|
+
import "./chunk-WCY3EKJQ.js";
|
|
8
|
+
import "./chunk-JNRA4TTH.js";
|
|
9
|
+
import "./chunk-YFGDTC2F.js";
|
|
10
10
|
import "./chunk-7ODU7LXP.js";
|
|
11
11
|
import "./chunk-WMJXAF3X.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-TOGYWN3D.js";
|
|
13
13
|
import "./chunk-XZLFMJOG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LAWV5XGL.js";
|
|
15
15
|
import "./chunk-XQZUX7OT.js";
|
|
16
16
|
export {
|
|
17
17
|
ensureDaemonRunning
|
|
@@ -3,13 +3,13 @@ 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-DKY574LO.js";
|
|
7
|
+
import "./chunk-WCY3EKJQ.js";
|
|
8
|
+
import "./chunk-YFGDTC2F.js";
|
|
9
9
|
import "./chunk-WMJXAF3X.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-TOGYWN3D.js";
|
|
11
11
|
import "./chunk-XZLFMJOG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-LAWV5XGL.js";
|
|
13
13
|
import "./chunk-XQZUX7OT.js";
|
|
14
14
|
export {
|
|
15
15
|
executeCommandLine,
|
|
@@ -3,10 +3,10 @@ const require = __dinoxCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
TASK_STATUS_VALUES,
|
|
5
5
|
formatTodoList
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JNRA4TTH.js";
|
|
7
7
|
import {
|
|
8
8
|
sendDaemonRequest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YFGDTC2F.js";
|
|
10
10
|
import {
|
|
11
11
|
editorPackageRoot
|
|
12
12
|
} from "./chunk-7A5QISPG.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getPackageVersion
|
|
15
15
|
} from "./chunk-WMJXAF3X.js";
|
|
16
16
|
import "./chunk-XZLFMJOG.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LAWV5XGL.js";
|
|
18
18
|
import "./chunk-XQZUX7OT.js";
|
|
19
19
|
|
|
20
20
|
// src/editor/mcp.ts
|
|
@@ -27,9 +27,10 @@ import { z } from "zod";
|
|
|
27
27
|
var EDITOR_RESOURCE_URI = "ui://dinox/editor";
|
|
28
28
|
var EDITOR_SESSION_META_KEY = "dinox.ai/editorSession";
|
|
29
29
|
var IMAGE_DOMAINS = ["https://bitiful.chatgo.pro", "https://*.chatgo.pro", "https://*.dinox.info"];
|
|
30
|
-
var UI_METHODS = ["sync", "save", "resolve", "search", "open", "log", "catalog", "updateMeta", "watchOpens", "todos", "todoUpdate", "todoAppend", "todoRestore", "todoSuggestion"];
|
|
30
|
+
var UI_METHODS = ["sync", "save", "resolve", "search", "excerpt", "open", "log", "catalog", "updateMeta", "watchOpens", "todos", "todoUpdate", "todoAppend", "todoRestore", "todoSuggestion", "upload", "linkPreview", "views", "viewEmbed"];
|
|
31
31
|
var SYNC_TIMEOUT_GRACE_MS = 1e4;
|
|
32
32
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
33
|
+
var UPLOAD_TIMEOUT_MS = 15 * 6e4;
|
|
33
34
|
var INSTRUCTIONS = "Co-edit the user's Dinox notes. dinox_editor_open shows a note in a panel beside the chat; the user edits it while you read it (dinox_editor_read) and propose changes (dinox_editor_suggest), which they accept or dismiss inline. Address blocks by their [id]. Read only what you need: focus=true for the blocks at the user's cursor, since=<version> for what changed after an earlier read. Prefer small {block, find, replace} edits over rewriting whole blocks, and send related edits in one call. For feedback or reviews, leave comments instead of edits. dinox_todo_open shows the user's inline tasks (checklist items across all notes) in the same panel; change tasks with dinox_todo_update by their [task id], and propose subtasks with dinox_todo_suggest.";
|
|
34
35
|
var indent = (md) => md.replace(/\n/g, "\n ");
|
|
35
36
|
function formatRead(read) {
|
|
@@ -260,7 +261,8 @@ function createEditorMcpServer(options = {}) {
|
|
|
260
261
|
const longPoll = method === "sync" || method === "watchOpens";
|
|
261
262
|
if (method === "todoUpdate") params = { ...params, actor: "user" };
|
|
262
263
|
const waitMs = longPoll ? Math.min(25e3, Math.max(0, Number(params.waitMs) || 0)) : 0;
|
|
263
|
-
const
|
|
264
|
+
const timeoutMs = method === "upload" ? UPLOAD_TIMEOUT_MS : waitMs + (longPoll ? SYNC_TIMEOUT_GRACE_MS : DEFAULT_TIMEOUT_MS);
|
|
265
|
+
const value = await call(`editor.${method}`, { ...params, session }, { timeoutMs });
|
|
264
266
|
return json({ value });
|
|
265
267
|
} catch (error) {
|
|
266
268
|
return failure(error);
|
|
@@ -269,7 +271,7 @@ function createEditorMcpServer(options = {}) {
|
|
|
269
271
|
return server;
|
|
270
272
|
}
|
|
271
273
|
async function serveEditorMcpOverStdio(options = {}) {
|
|
272
|
-
const { ensureDaemonRunning } = await import("./ensure-
|
|
274
|
+
const { ensureDaemonRunning } = await import("./ensure-2OPNFDRW.js");
|
|
273
275
|
let ensured = null;
|
|
274
276
|
const ensure = () => ensured ??= ensureDaemonRunning().finally(() => {
|
|
275
277
|
ensured = null;
|
|
@@ -3,10 +3,10 @@ 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-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-MMO7CINX.js";
|
|
7
|
+
import "./chunk-PCB2JD6H.js";
|
|
8
|
+
import "./chunk-OZXS77HJ.js";
|
|
9
|
+
import "./chunk-52XLDO77.js";
|
|
10
10
|
import {
|
|
11
11
|
DINOX_MCP_SERVER_NAME,
|
|
12
12
|
DINOX_STANDALONE_MCP_SERVER_NAME,
|
|
@@ -14,27 +14,27 @@ 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-G6Y3MOUL.js";
|
|
18
|
+
import "./chunk-DKY574LO.js";
|
|
19
19
|
import {
|
|
20
20
|
tryForwardToDaemon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WCY3EKJQ.js";
|
|
22
22
|
import {
|
|
23
23
|
TASK_STATUS_VALUES
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JNRA4TTH.js";
|
|
25
25
|
import {
|
|
26
26
|
sendDaemonRequest
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YFGDTC2F.js";
|
|
28
28
|
import "./chunk-7ODU7LXP.js";
|
|
29
29
|
import {
|
|
30
30
|
getPackageVersion
|
|
31
31
|
} from "./chunk-WMJXAF3X.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-LXC3IW4L.js";
|
|
33
33
|
import {
|
|
34
34
|
requestContext
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TOGYWN3D.js";
|
|
36
36
|
import "./chunk-XZLFMJOG.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-LAWV5XGL.js";
|
|
38
38
|
import "./chunk-XQZUX7OT.js";
|
|
39
39
|
|
|
40
40
|
// src/gateway/mcpServer.ts
|
|
@@ -64,7 +64,7 @@ function createCliCommandRunner(overrides = {}) {
|
|
|
64
64
|
noticeProvider: null,
|
|
65
65
|
cwd: process.cwd()
|
|
66
66
|
};
|
|
67
|
-
const { printCliError } = await import("./runCli-
|
|
67
|
+
const { printCliError } = await import("./runCli-GKTCIDBF.js");
|
|
68
68
|
const code = requestContext.run(context, () => printCliError(error, argv));
|
|
69
69
|
throw Object.assign(new Error(`Command failed with exit code ${code}`), {
|
|
70
70
|
code,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
toolInstallHint,
|
|
16
16
|
ytDlpAdvisory,
|
|
17
17
|
ytDlpStatus
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5SORBZTD.js";
|
|
19
19
|
import {
|
|
20
20
|
commandStale,
|
|
21
21
|
parseStringListInput,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
syncBeforeNoteCommand,
|
|
26
26
|
waitForMutationUpload,
|
|
27
27
|
withNoteDatabase
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OZXS77HJ.js";
|
|
29
29
|
import {
|
|
30
30
|
reportProgress
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-52XLDO77.js";
|
|
32
32
|
import {
|
|
33
33
|
convertMarkdownToNoteContent,
|
|
34
34
|
createNote,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveZettelBoxIdsForCreate,
|
|
37
37
|
uploadToOfficialStorage,
|
|
38
38
|
validateTagsForCreate
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-G6Y3MOUL.js";
|
|
40
40
|
import {
|
|
41
41
|
isWorkbuddyUrl,
|
|
42
42
|
normalizeWorkbuddyUrl
|
|
@@ -139,15 +139,15 @@ import {
|
|
|
139
139
|
AI_SERVICE_URL,
|
|
140
140
|
generateId,
|
|
141
141
|
toAuthorizationHeaderValue
|
|
142
|
-
} from "./chunk-
|
|
143
|
-
import "./chunk-
|
|
144
|
-
import "./chunk-
|
|
142
|
+
} from "./chunk-WCY3EKJQ.js";
|
|
143
|
+
import "./chunk-JNRA4TTH.js";
|
|
144
|
+
import "./chunk-YFGDTC2F.js";
|
|
145
145
|
import "./chunk-7ODU7LXP.js";
|
|
146
146
|
import "./chunk-WMJXAF3X.js";
|
|
147
147
|
import {
|
|
148
148
|
clipCookiesFile
|
|
149
|
-
} from "./chunk-
|
|
150
|
-
import "./chunk-
|
|
149
|
+
} from "./chunk-YX4SIEVS.js";
|
|
150
|
+
import "./chunk-LXC3IW4L.js";
|
|
151
151
|
import {
|
|
152
152
|
parseNetscapeCookies,
|
|
153
153
|
selectCookiesForUrl
|
|
@@ -157,13 +157,13 @@ import {
|
|
|
157
157
|
printHumanReadableLine,
|
|
158
158
|
printSuccess,
|
|
159
159
|
resolveUserPath
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-TOGYWN3D.js";
|
|
161
161
|
import {
|
|
162
162
|
getDataDir
|
|
163
163
|
} from "./chunk-XZLFMJOG.js";
|
|
164
164
|
import {
|
|
165
165
|
DinoxError
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-LAWV5XGL.js";
|
|
167
167
|
import {
|
|
168
168
|
isApplePodcastUrl,
|
|
169
169
|
normalizeApplePodcastUrl
|
|
@@ -27,28 +27,28 @@ import {
|
|
|
27
27
|
registerTodoCommands,
|
|
28
28
|
registerUpdateCommand,
|
|
29
29
|
schemaCommandMetadata
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-MMO7CINX.js";
|
|
31
|
+
import "./chunk-PCB2JD6H.js";
|
|
32
|
+
import "./chunk-OZXS77HJ.js";
|
|
33
33
|
import {
|
|
34
34
|
setProgressReporting
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-52XLDO77.js";
|
|
36
36
|
import {
|
|
37
37
|
registerDaemonCommands,
|
|
38
38
|
registerStandaloneCommand
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-G6Y3MOUL.js";
|
|
40
|
+
import "./chunk-DKY574LO.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_VALUE_OPTIONS,
|
|
43
43
|
validateRequestId
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-WCY3EKJQ.js";
|
|
45
|
+
import "./chunk-JNRA4TTH.js";
|
|
46
|
+
import "./chunk-YFGDTC2F.js";
|
|
47
47
|
import "./chunk-7ODU7LXP.js";
|
|
48
48
|
import {
|
|
49
49
|
getPackageVersion
|
|
50
50
|
} from "./chunk-WMJXAF3X.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-LXC3IW4L.js";
|
|
52
52
|
import {
|
|
53
53
|
clearRequestedStructuredOutputFormat,
|
|
54
54
|
getRequestedStructuredOutputFormat,
|
|
@@ -63,14 +63,14 @@ import {
|
|
|
63
63
|
setRequestedStructuredOutputFormat,
|
|
64
64
|
writeToStderr,
|
|
65
65
|
writeToStdout
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-TOGYWN3D.js";
|
|
67
67
|
import "./chunk-XZLFMJOG.js";
|
|
68
68
|
import {
|
|
69
69
|
DinoxError,
|
|
70
70
|
buildStructuredErrorPayload,
|
|
71
71
|
isDinoxError,
|
|
72
72
|
listErrorCodes
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-LAWV5XGL.js";
|
|
74
74
|
import "./chunk-XQZUX7OT.js";
|
|
75
75
|
|
|
76
76
|
// src/cli.ts
|
|
@@ -12,29 +12,29 @@ import {
|
|
|
12
12
|
platformsNeeding,
|
|
13
13
|
toolInstallHint,
|
|
14
14
|
ytDlpStatus
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5SORBZTD.js";
|
|
16
16
|
import {
|
|
17
17
|
reportProgress
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-52XLDO77.js";
|
|
19
19
|
import {
|
|
20
20
|
clipCookiesFile,
|
|
21
21
|
readCookieJar,
|
|
22
22
|
summarizeCookies
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-YX4SIEVS.js";
|
|
24
|
+
import "./chunk-LXC3IW4L.js";
|
|
25
25
|
import "./chunk-ULKGDBAJ.js";
|
|
26
26
|
import {
|
|
27
27
|
getRequestedStructuredOutputFormat,
|
|
28
28
|
printHumanReadableLine,
|
|
29
29
|
printSuccess,
|
|
30
30
|
writeToStderr
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TOGYWN3D.js";
|
|
32
32
|
import {
|
|
33
33
|
getDataDir
|
|
34
34
|
} from "./chunk-XZLFMJOG.js";
|
|
35
35
|
import {
|
|
36
36
|
DinoxError
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LAWV5XGL.js";
|
|
38
38
|
import "./chunk-W7R5JTSA.js";
|
|
39
39
|
import "./chunk-F7BDWXBG.js";
|
|
40
40
|
import "./chunk-KOAKG2QU.js";
|
package/dist/dinox.js
CHANGED
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
requestIdFromArgv,
|
|
7
7
|
runWithRequestId,
|
|
8
8
|
tryForwardToDaemon
|
|
9
|
-
} from "./chunks/chunk-
|
|
10
|
-
import "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-WCY3EKJQ.js";
|
|
10
|
+
import "./chunks/chunk-YFGDTC2F.js";
|
|
11
11
|
import {
|
|
12
12
|
getPackageVersion
|
|
13
13
|
} from "./chunks/chunk-WMJXAF3X.js";
|
|
14
14
|
import {
|
|
15
15
|
localCommandExecution
|
|
16
|
-
} from "./chunks/chunk-
|
|
16
|
+
} from "./chunks/chunk-TOGYWN3D.js";
|
|
17
17
|
import "./chunks/chunk-XZLFMJOG.js";
|
|
18
18
|
import {
|
|
19
19
|
DinoxError,
|
|
20
20
|
isDinoxError
|
|
21
|
-
} from "./chunks/chunk-
|
|
21
|
+
} from "./chunks/chunk-LAWV5XGL.js";
|
|
22
22
|
import "./chunks/chunk-XQZUX7OT.js";
|
|
23
23
|
|
|
24
24
|
// src/utils/defaultFormat.ts
|
|
@@ -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-GKTCIDBF.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-C5W5ZJDC.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-GKTCIDBF.js");
|
|
142
142
|
process.exitCode = printCliError(error, argv);
|
|
143
143
|
}
|
|
144
144
|
if (isDinoxError(fatalError) && fatalError.requiresProcessExit) {
|