@dinoxx/dinox-cli 3.5.0 → 3.5.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/dist/chunks/{chunk-YERBRBQV.js → chunk-2WWLGTAU.js} +2 -2
- package/dist/chunks/{chunk-D7QTW6N6.js → chunk-6IZ3X5JD.js} +1 -1
- package/dist/chunks/{chunk-K3VX75DA.js → chunk-DAAFMTWB.js} +2 -2
- package/dist/chunks/{chunk-ZPE53YBS.js → chunk-QAH7TABU.js} +2 -2
- package/dist/chunks/{chunk-EPY4F7CC.js → chunk-QT4ENEZI.js} +11 -11
- package/dist/chunks/{chunk-QOKO7V6A.js → chunk-XS7NHAXR.js} +2 -2
- package/dist/chunks/{ensure-PW3HZZSJ.js → ensure-N3OQUDZR.js} +3 -3
- package/dist/chunks/{execute-DSHVATUX.js → execute-KKPBFABB.js} +2 -2
- package/dist/chunks/{mcp-OF7C72WL.js → mcp-YGMXLQEU.js} +3 -2
- package/dist/chunks/{mcpServer-WURTU2CQ.js → mcpServer-3V6BVYYT.js} +7 -7
- package/dist/chunks/{run-FUEARSZ2.js → run-FCVNSKGO.js} +3 -3
- package/dist/chunks/{runCli-NSGPBNXJ.js → runCli-KZ3EAIQT.js} +6 -6
- package/dist/dinox.js +4 -4
- package/dist/dsh-plugin/lib/client.js +135 -135
- package/dist/dsh-plugin/lib/index.js +67 -16
- package/dist/dsh-plugin/package.json +1 -1
- package/dist/dsh-plugin/runtime.json +2 -2
- package/dist/editor-ui/mcp-app.html +149 -149
- package/package.json +1 -1
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
waitForDownloadIdle,
|
|
14
14
|
waitForLastSyncedAfter,
|
|
15
15
|
waitForUploadQueueEmpty
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QAH7TABU.js";
|
|
17
17
|
import {
|
|
18
18
|
fingerprintDaemonRuntimeConfig,
|
|
19
19
|
loadConfig,
|
|
20
20
|
parseSyncTimeoutMs,
|
|
21
21
|
resolveConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_DAEMON_PORT,
|
|
25
25
|
acquireDaemonExclusiveIntentLock,
|
|
@@ -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-N3OQUDZR.js")).ensureDaemonRunning();
|
|
740
740
|
},
|
|
741
741
|
sendDaemonRequest,
|
|
742
742
|
envTokenOverridesLogin,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
hydrateResolvedAuthIdentity,
|
|
5
5
|
restartDaemonLocked,
|
|
6
6
|
stopDaemonLocked
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QAH7TABU.js";
|
|
8
8
|
import {
|
|
9
9
|
daemonServiceSpec,
|
|
10
10
|
fingerprintDaemonRuntimeConfig,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveConfig,
|
|
17
17
|
usableDaemonService,
|
|
18
18
|
withAsyncRelease
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_DAEMON_PORT,
|
|
22
22
|
acquireDaemonStartLock,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
toAuthorizationHeaderValue,
|
|
25
25
|
withAsyncRelease,
|
|
26
26
|
writeDaemonLogLine
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_TODO_FILTER,
|
|
30
30
|
TASK_STATUS_MARKDOWN_MARKER,
|
|
@@ -27212,7 +27212,7 @@ var DaemonServer = class {
|
|
|
27212
27212
|
}
|
|
27213
27213
|
};
|
|
27214
27214
|
const execute = async () => {
|
|
27215
|
-
const { runCli } = await import("./runCli-
|
|
27215
|
+
const { runCli } = await import("./runCli-KZ3EAIQT.js");
|
|
27216
27216
|
const exitCode = await requestContext.run(context, () => runCli(input.argv));
|
|
27217
27217
|
return { stdout: context.stdout.join(""), stderr: context.stderr.join(""), exitCode };
|
|
27218
27218
|
};
|
|
@@ -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-DAAFMTWB.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-2WWLGTAU.js";
|
|
37
37
|
import {
|
|
38
38
|
reportProgress
|
|
39
39
|
} from "./chunk-52XLDO77.js";
|
|
@@ -240,10 +240,10 @@ import {
|
|
|
240
240
|
waitForUploadQueueEmpty,
|
|
241
241
|
withNestedWriteTransaction,
|
|
242
242
|
withPowerSyncWriteTransaction
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-QAH7TABU.js";
|
|
244
244
|
import {
|
|
245
245
|
executeCommandLine
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-XS7NHAXR.js";
|
|
247
247
|
import {
|
|
248
248
|
AI_SERVICE_URL,
|
|
249
249
|
FORMAT_OPTIONS,
|
|
@@ -269,7 +269,7 @@ import {
|
|
|
269
269
|
updateConfig,
|
|
270
270
|
validateRequestId,
|
|
271
271
|
withAsyncRelease
|
|
272
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
273
273
|
import {
|
|
274
274
|
TASK_STATUS_VALUES,
|
|
275
275
|
isTaskStatus
|
|
@@ -3332,7 +3332,7 @@ var gatewayCommandGroup = {
|
|
|
3332
3332
|
examples: ["dino gateway mcp"]
|
|
3333
3333
|
},
|
|
3334
3334
|
action: async () => {
|
|
3335
|
-
const { serveDinoxMcpOverStdio } = await import("./mcpServer-
|
|
3335
|
+
const { serveDinoxMcpOverStdio } = await import("./mcpServer-3V6BVYYT.js");
|
|
3336
3336
|
await serveDinoxMcpOverStdio();
|
|
3337
3337
|
}
|
|
3338
3338
|
},
|
|
@@ -3414,7 +3414,7 @@ var editorCommandGroup = {
|
|
|
3414
3414
|
examples: ["dino editor mcp", "dino editor mcp --session codex"]
|
|
3415
3415
|
},
|
|
3416
3416
|
action: async (context) => {
|
|
3417
|
-
const { serveEditorMcpOverStdio } = await import("./mcp-
|
|
3417
|
+
const { serveEditorMcpOverStdio } = await import("./mcp-YGMXLQEU.js");
|
|
3418
3418
|
await serveEditorMcpOverStdio({ session: String(context.options.session ?? "mcp") });
|
|
3419
3419
|
}
|
|
3420
3420
|
},
|
|
@@ -11340,7 +11340,7 @@ var clipCommandGroup = {
|
|
|
11340
11340
|
examples: ["dino clip inspect https://example.com/article --format json"]
|
|
11341
11341
|
},
|
|
11342
11342
|
action: async (context) => {
|
|
11343
|
-
const { runClipInspect } = await import("./run-
|
|
11343
|
+
const { runClipInspect } = await import("./run-FCVNSKGO.js");
|
|
11344
11344
|
await runClipInspect(context);
|
|
11345
11345
|
}
|
|
11346
11346
|
},
|
|
@@ -11398,7 +11398,7 @@ var clipCommandGroup = {
|
|
|
11398
11398
|
]
|
|
11399
11399
|
},
|
|
11400
11400
|
action: async (context) => {
|
|
11401
|
-
const { runClipAdd } = await import("./run-
|
|
11401
|
+
const { runClipAdd } = await import("./run-FCVNSKGO.js");
|
|
11402
11402
|
await runClipAdd(context);
|
|
11403
11403
|
}
|
|
11404
11404
|
},
|
|
@@ -11419,7 +11419,7 @@ var clipCommandGroup = {
|
|
|
11419
11419
|
examples: ["dino clip process 01a1e3bb-3827-790d-b850-52b187c12b53 --format json"]
|
|
11420
11420
|
},
|
|
11421
11421
|
action: async (context) => {
|
|
11422
|
-
const { runClipProcess } = await import("./run-
|
|
11422
|
+
const { runClipProcess } = await import("./run-FCVNSKGO.js");
|
|
11423
11423
|
await runClipProcess(context);
|
|
11424
11424
|
}
|
|
11425
11425
|
},
|
|
@@ -13968,7 +13968,7 @@ function parseMcpGroups(raw) {
|
|
|
13968
13968
|
}
|
|
13969
13969
|
async function runMcp(context) {
|
|
13970
13970
|
const groups = parseMcpGroups(context.options.groups);
|
|
13971
|
-
const { serveStandaloneMcpOverStdio } = await import("./mcpServer-
|
|
13971
|
+
const { serveStandaloneMcpOverStdio } = await import("./mcpServer-3V6BVYYT.js");
|
|
13972
13972
|
await serveStandaloneMcpOverStdio({ readOnly: context.options.readOnly === true, groups });
|
|
13973
13973
|
}
|
|
13974
13974
|
var mcpCommandDescriptor = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
requestIdFromArgv,
|
|
5
5
|
runWithRequestId,
|
|
6
6
|
tryForwardToDaemon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6IZ3X5JD.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-KZ3EAIQT.js");
|
|
16
16
|
const context = {
|
|
17
17
|
stdout: [],
|
|
18
18
|
stderr: [],
|
|
@@ -2,9 +2,9 @@ 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-DAAFMTWB.js";
|
|
6
|
+
import "./chunk-QAH7TABU.js";
|
|
7
|
+
import "./chunk-6IZ3X5JD.js";
|
|
8
8
|
import "./chunk-JNRA4TTH.js";
|
|
9
9
|
import "./chunk-YFGDTC2F.js";
|
|
10
10
|
import "./chunk-7ODU7LXP.js";
|
|
@@ -3,8 +3,8 @@ const require = __dinoxCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executeCommandLine,
|
|
5
5
|
runCapturedInProcess
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-XS7NHAXR.js";
|
|
7
|
+
import "./chunk-6IZ3X5JD.js";
|
|
8
8
|
import "./chunk-YFGDTC2F.js";
|
|
9
9
|
import "./chunk-WMJXAF3X.js";
|
|
10
10
|
import "./chunk-TOGYWN3D.js";
|
|
@@ -76,7 +76,8 @@ function failure(error) {
|
|
|
76
76
|
function createEditorMcpServer(options = {}) {
|
|
77
77
|
const call = options.call ?? ((method, params, callOptions) => sendDaemonRequest(method, params, { timeoutMs: callOptions?.timeoutMs ?? DEFAULT_TIMEOUT_MS }));
|
|
78
78
|
const defaultSession = options.session ?? "mcp";
|
|
79
|
-
|
|
79
|
+
let appHtml = null;
|
|
80
|
+
const html = options.html ?? (() => appHtml ??= readEditorAppHtml());
|
|
80
81
|
const server = new McpServer({ name: "dinox-editor", version: getPackageVersion() }, { instructions: INSTRUCTIONS });
|
|
81
82
|
const sessionOf = (extra) => {
|
|
82
83
|
const value = extra?._meta?.[EDITOR_SESSION_META_KEY];
|
|
@@ -271,7 +272,7 @@ function createEditorMcpServer(options = {}) {
|
|
|
271
272
|
return server;
|
|
272
273
|
}
|
|
273
274
|
async function serveEditorMcpOverStdio(options = {}) {
|
|
274
|
-
const { ensureDaemonRunning } = await import("./ensure-
|
|
275
|
+
const { ensureDaemonRunning } = await import("./ensure-N3OQUDZR.js");
|
|
275
276
|
let ensured = null;
|
|
276
277
|
const ensure = () => ensured ??= ensureDaemonRunning().finally(() => {
|
|
277
278
|
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-QT4ENEZI.js";
|
|
7
|
+
import "./chunk-DAAFMTWB.js";
|
|
8
|
+
import "./chunk-2WWLGTAU.js";
|
|
9
9
|
import "./chunk-52XLDO77.js";
|
|
10
10
|
import {
|
|
11
11
|
DINOX_MCP_SERVER_NAME,
|
|
@@ -14,11 +14,11 @@ 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-QAH7TABU.js";
|
|
18
|
+
import "./chunk-XS7NHAXR.js";
|
|
19
19
|
import {
|
|
20
20
|
tryForwardToDaemon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
22
22
|
import {
|
|
23
23
|
TASK_STATUS_VALUES
|
|
24
24
|
} from "./chunk-JNRA4TTH.js";
|
|
@@ -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-KZ3EAIQT.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,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
syncBeforeNoteCommand,
|
|
26
26
|
waitForMutationUpload,
|
|
27
27
|
withNoteDatabase
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2WWLGTAU.js";
|
|
29
29
|
import {
|
|
30
30
|
reportProgress
|
|
31
31
|
} from "./chunk-52XLDO77.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
resolveZettelBoxIdsForCreate,
|
|
37
37
|
uploadToOfficialStorage,
|
|
38
38
|
validateTagsForCreate
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QAH7TABU.js";
|
|
40
40
|
import {
|
|
41
41
|
isWorkbuddyUrl,
|
|
42
42
|
normalizeWorkbuddyUrl
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
AI_SERVICE_URL,
|
|
141
141
|
generateId,
|
|
142
142
|
toAuthorizationHeaderValue
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
144
144
|
import "./chunk-JNRA4TTH.js";
|
|
145
145
|
import "./chunk-YFGDTC2F.js";
|
|
146
146
|
import "./chunk-7ODU7LXP.js";
|
|
@@ -27,21 +27,21 @@ import {
|
|
|
27
27
|
registerTodoCommands,
|
|
28
28
|
registerUpdateCommand,
|
|
29
29
|
schemaCommandMetadata
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-QT4ENEZI.js";
|
|
31
|
+
import "./chunk-DAAFMTWB.js";
|
|
32
|
+
import "./chunk-2WWLGTAU.js";
|
|
33
33
|
import {
|
|
34
34
|
setProgressReporting
|
|
35
35
|
} from "./chunk-52XLDO77.js";
|
|
36
36
|
import {
|
|
37
37
|
registerDaemonCommands,
|
|
38
38
|
registerStandaloneCommand
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-QAH7TABU.js";
|
|
40
|
+
import "./chunk-XS7NHAXR.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_VALUE_OPTIONS,
|
|
43
43
|
validateRequestId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6IZ3X5JD.js";
|
|
45
45
|
import "./chunk-JNRA4TTH.js";
|
|
46
46
|
import "./chunk-YFGDTC2F.js";
|
|
47
47
|
import "./chunk-7ODU7LXP.js";
|
package/dist/dinox.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
requestIdFromArgv,
|
|
7
7
|
runWithRequestId,
|
|
8
8
|
tryForwardToDaemon
|
|
9
|
-
} from "./chunks/chunk-
|
|
9
|
+
} from "./chunks/chunk-6IZ3X5JD.js";
|
|
10
10
|
import "./chunks/chunk-YFGDTC2F.js";
|
|
11
11
|
import {
|
|
12
12
|
getPackageVersion
|
|
@@ -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-KZ3EAIQT.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-KKPBFABB.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-KZ3EAIQT.js");
|
|
142
142
|
process.exitCode = printCliError(error, argv);
|
|
143
143
|
}
|
|
144
144
|
if (isDinoxError(fatalError) && fatalError.requiresProcessExit) {
|