@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.
@@ -13,13 +13,13 @@ import {
13
13
  waitForDownloadIdle,
14
14
  waitForLastSyncedAfter,
15
15
  waitForUploadQueueEmpty
16
- } from "./chunk-ZPE53YBS.js";
16
+ } from "./chunk-QAH7TABU.js";
17
17
  import {
18
18
  fingerprintDaemonRuntimeConfig,
19
19
  loadConfig,
20
20
  parseSyncTimeoutMs,
21
21
  resolveConfig
22
- } from "./chunk-D7QTW6N6.js";
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-PW3HZZSJ.js")).ensureDaemonRunning();
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-ZPE53YBS.js";
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-D7QTW6N6.js";
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-D7QTW6N6.js";
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-NSGPBNXJ.js");
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-K3VX75DA.js";
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-YERBRBQV.js";
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-ZPE53YBS.js";
243
+ } from "./chunk-QAH7TABU.js";
244
244
  import {
245
245
  executeCommandLine
246
- } from "./chunk-QOKO7V6A.js";
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-D7QTW6N6.js";
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-WURTU2CQ.js");
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-OF7C72WL.js");
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-FUEARSZ2.js");
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-FUEARSZ2.js");
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-FUEARSZ2.js");
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-WURTU2CQ.js");
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-D7QTW6N6.js";
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-NSGPBNXJ.js");
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-K3VX75DA.js";
6
- import "./chunk-ZPE53YBS.js";
7
- import "./chunk-D7QTW6N6.js";
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-QOKO7V6A.js";
7
- import "./chunk-D7QTW6N6.js";
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
- const html = options.html ?? (() => readEditorAppHtml());
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-PW3HZZSJ.js");
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-EPY4F7CC.js";
7
- import "./chunk-K3VX75DA.js";
8
- import "./chunk-YERBRBQV.js";
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-ZPE53YBS.js";
18
- import "./chunk-QOKO7V6A.js";
17
+ } from "./chunk-QAH7TABU.js";
18
+ import "./chunk-XS7NHAXR.js";
19
19
  import {
20
20
  tryForwardToDaemon
21
- } from "./chunk-D7QTW6N6.js";
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-NSGPBNXJ.js");
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-YERBRBQV.js";
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-ZPE53YBS.js";
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-D7QTW6N6.js";
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-EPY4F7CC.js";
31
- import "./chunk-K3VX75DA.js";
32
- import "./chunk-YERBRBQV.js";
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-ZPE53YBS.js";
40
- import "./chunk-QOKO7V6A.js";
39
+ } from "./chunk-QAH7TABU.js";
40
+ import "./chunk-XS7NHAXR.js";
41
41
  import {
42
42
  GLOBAL_VALUE_OPTIONS,
43
43
  validateRequestId
44
- } from "./chunk-D7QTW6N6.js";
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-D7QTW6N6.js";
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-NSGPBNXJ.js");
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-DSHVATUX.js");
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-NSGPBNXJ.js");
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) {