@dinoxx/dinox-cli 3.1.0 → 3.3.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/{bbc-N3BM2EGG.js → bbc-SOUVA3A6.js} +1 -1
- package/dist/chunks/{bohaishibei-IQO5CZTN.js → bohaishibei-TVAYDZ3S.js} +1 -1
- package/dist/chunks/{chunk-WCY3EKJQ.js → chunk-2S4U3MRS.js} +1 -1
- package/dist/chunks/{chunk-G6Y3MOUL.js → chunk-3QWGIINW.js} +2 -2
- package/dist/chunks/{chunk-PCB2JD6H.js → chunk-5KBJHX5A.js} +2 -2
- package/dist/chunks/{chunk-MMO7CINX.js → chunk-BFSYRVWX.js} +12 -12
- package/dist/chunks/{chunk-D5SBKLDX.js → chunk-I3BEV2PY.js} +15 -0
- package/dist/chunks/{chunk-MKEL2KNU.js → chunk-MWVB6SDC.js} +3 -0
- package/dist/chunks/{chunk-R2CGNGOT.js → chunk-P23BS2ST.js} +1 -1
- package/dist/chunks/{chunk-OZXS77HJ.js → chunk-PDJ3VQDJ.js} +2 -2
- package/dist/chunks/{chunk-DKY574LO.js → chunk-SWSIHKCM.js} +2 -2
- package/dist/chunks/{chunk-5SORBZTD.js → chunk-TDUVFINJ.js} +10 -10
- package/dist/chunks/{chunk-FKLZZGEX.js → chunk-XQSJWC37.js} +10 -1
- package/dist/chunks/{doubanGroup-MADXDGDI.js → doubanGroup-Z22HXP4S.js} +3 -3
- package/dist/chunks/{ensure-2OPNFDRW.js → ensure-QBWY7EPP.js} +3 -3
- package/dist/chunks/{execute-C5W5ZJDC.js → execute-ZMADEDW2.js} +2 -2
- package/dist/chunks/{jike-GS64MEEO.js → jike-H5FM2OLZ.js} +2 -2
- package/dist/chunks/{mcp-WK7KIU44.js → mcp-YTZZHRYJ.js} +1 -1
- package/dist/chunks/{mcpServer-M4HJFSNU.js → mcpServer-WQYHJHUK.js} +7 -7
- package/dist/chunks/{run-WNHMZLSJ.js → run-DQDOKDZC.js} +11 -9
- package/dist/chunks/{runCli-GKTCIDBF.js → runCli-TIPCBGV7.js} +6 -6
- package/dist/chunks/{setup-UYCLFOZH.js → setup-EPCEVJVM.js} +1 -1
- package/dist/chunks/{threads-JKMT3E73.js → threads-P3QZA3KN.js} +1 -1
- package/dist/chunks/{web-LJESVHHV.js → web-SQX7IMO7.js} +2 -2
- package/dist/chunks/{wechat-N7O77CB4.js → wechat-WKYZGRG5.js} +1 -1
- package/dist/chunks/{weibo-XPEV5CLQ.js → weibo-A7RZJLAH.js} +1 -1
- package/dist/chunks/{xiaoheihe-WXFAORLQ.js → xiaoheihe-LCWXGLYD.js} +1 -1
- package/dist/dinox.js +4 -4
- package/dist/dsh-plugin/lib/client.js +261 -2747
- package/dist/dsh-plugin/package.json +1 -1
- package/dist/dsh-plugin/runtime.json +2 -2
- package/dist/editor-ui/mcp-app.html +322 -318
- package/package.json +8 -1
|
@@ -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-QBWY7EPP.js")).ensureDaemonRunning();
|
|
740
740
|
},
|
|
741
741
|
sendDaemonRequest,
|
|
742
742
|
envTokenOverridesLogin,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
toAuthorizationHeaderValue,
|
|
25
25
|
withAsyncRelease,
|
|
26
26
|
writeDaemonLogLine
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2S4U3MRS.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_TODO_FILTER,
|
|
30
30
|
TASK_STATUS_MARKDOWN_MARKER,
|
|
@@ -26532,7 +26532,7 @@ var DaemonServer = class {
|
|
|
26532
26532
|
}
|
|
26533
26533
|
};
|
|
26534
26534
|
const execute = async () => {
|
|
26535
|
-
const { runCli } = await import("./runCli-
|
|
26535
|
+
const { runCli } = await import("./runCli-TIPCBGV7.js");
|
|
26536
26536
|
const exitCode = await requestContext.run(context, () => runCli(input.argv));
|
|
26537
26537
|
return { stdout: context.stdout.join(""), stderr: context.stderr.join(""), exitCode };
|
|
26538
26538
|
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
hydrateResolvedAuthIdentity,
|
|
5
5
|
restartDaemonLocked,
|
|
6
6
|
stopDaemonLocked
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3QWGIINW.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-2S4U3MRS.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_DAEMON_PORT,
|
|
22
22
|
acquireDaemonStartLock,
|
|
@@ -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-5KBJHX5A.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-PDJ3VQDJ.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-3QWGIINW.js";
|
|
244
244
|
import {
|
|
245
245
|
executeCommandLine
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-SWSIHKCM.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-2S4U3MRS.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-WQYHJHUK.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-YTZZHRYJ.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-DQDOKDZC.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-DQDOKDZC.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-DQDOKDZC.js");
|
|
11423
11423
|
await runClipProcess(context);
|
|
11424
11424
|
}
|
|
11425
11425
|
},
|
|
@@ -11443,7 +11443,7 @@ var clipCommandGroup = {
|
|
|
11443
11443
|
examples: ["dino clip setup", "dino clip setup --progress --format json", "dino clip setup --check --format json"]
|
|
11444
11444
|
},
|
|
11445
11445
|
action: async (context) => {
|
|
11446
|
-
const { runClipSetup } = await import("./setup-
|
|
11446
|
+
const { runClipSetup } = await import("./setup-EPCEVJVM.js");
|
|
11447
11447
|
await runClipSetup(context);
|
|
11448
11448
|
}
|
|
11449
11449
|
},
|
|
@@ -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-WQYHJHUK.js");
|
|
13972
13972
|
await serveStandaloneMcpOverStdio({ readOnly: context.options.readOnly === true, groups });
|
|
13973
13973
|
}
|
|
13974
13974
|
var mcpCommandDescriptor = {
|
|
@@ -23,9 +23,23 @@ function doubanPath(rawUrl) {
|
|
|
23
23
|
if (/^\/doubanapp\/dispatch\/?$/i.test(path)) {
|
|
24
24
|
const uri = url.searchParams.get("uri") ?? "";
|
|
25
25
|
path = (uri.split(/[?#]/)[0] ?? "").replace(/^(?!\/)/, "/");
|
|
26
|
+
} else {
|
|
27
|
+
const nested = /^\/doubanapp\/dispatch\/(.+)$/i.exec(path);
|
|
28
|
+
if (nested && nested[1]) path = ("/" + nested[1]).replace(/\/{2,}/g, "/");
|
|
26
29
|
}
|
|
27
30
|
return path;
|
|
28
31
|
}
|
|
32
|
+
function normalizeDoubanDispatchUrl(rawUrl) {
|
|
33
|
+
const original = String(rawUrl ?? "").trim();
|
|
34
|
+
const url = toUrl(original);
|
|
35
|
+
if (!url || !HOST_RE.test(url.hostname)) return original;
|
|
36
|
+
const originalPath = url.pathname.replace(/\/{2,}/g, "/");
|
|
37
|
+
if (!/^\/doubanapp\/dispatch/i.test(originalPath)) return original;
|
|
38
|
+
const path = doubanPath(original);
|
|
39
|
+
if (!path || path === "/" || /^\/doubanapp\/dispatch/i.test(path)) return original;
|
|
40
|
+
const canonicalPath = path.endsWith("/") ? path : path + "/";
|
|
41
|
+
return "https://www.douban.com" + canonicalPath;
|
|
42
|
+
}
|
|
29
43
|
function canonicalDoubanGroupTopicUrl(topicId, kind = "group") {
|
|
30
44
|
return kind === "personal" ? `https://www.douban.com/topic/${topicId}/` : `https://www.douban.com/group/topic/${topicId}/`;
|
|
31
45
|
}
|
|
@@ -61,6 +75,7 @@ function normalizeDoubanTopicUrl(rawUrl) {
|
|
|
61
75
|
}
|
|
62
76
|
|
|
63
77
|
export {
|
|
78
|
+
normalizeDoubanDispatchUrl,
|
|
64
79
|
parseDoubanGroupTopicLink,
|
|
65
80
|
parseDoubanPersonalTopicLink,
|
|
66
81
|
parseDoubanGalleryTopicLink,
|
|
@@ -18329,6 +18329,9 @@ function detectUnsupportedWebTarget(rawUrl) {
|
|
|
18329
18329
|
if (/^search\.weixin\.qq\.com$/i.test(url.hostname) && /^\/cgi-bin\/newsearchweb\/(?:zhugeshortjump|userclientjump)\/?$/i.test(path)) {
|
|
18330
18330
|
return { kind: "site", reason: "WeChat in-app search jump links are not supported" };
|
|
18331
18331
|
}
|
|
18332
|
+
if (/^mp\.weixin\.qq\.com$/i.test(url.hostname) && /^\/cgi-bin\/showqrcode\/?$/i.test(path)) {
|
|
18333
|
+
return { kind: "site", reason: "WeChat QR code links are not articles" };
|
|
18334
|
+
}
|
|
18332
18335
|
const extension = path.match(FILE_EXTENSION_RE)?.[0];
|
|
18333
18336
|
if (extension) {
|
|
18334
18337
|
const type = extension.slice(1).toLowerCase();
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
waitForDownloadIdle,
|
|
14
14
|
waitForLastSyncedAfter,
|
|
15
15
|
waitForUploadQueueEmpty
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3QWGIINW.js";
|
|
17
17
|
import {
|
|
18
18
|
fingerprintDaemonRuntimeConfig,
|
|
19
19
|
loadConfig,
|
|
20
20
|
parseSyncTimeoutMs,
|
|
21
21
|
resolveConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2S4U3MRS.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_DAEMON_PORT,
|
|
25
25
|
acquireDaemonExclusiveIntentLock,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
requestIdFromArgv,
|
|
5
5
|
runWithRequestId,
|
|
6
6
|
tryForwardToDaemon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2S4U3MRS.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-TIPCBGV7.js");
|
|
16
16
|
const context = {
|
|
17
17
|
stdout: [],
|
|
18
18
|
stderr: [],
|
|
@@ -67,27 +67,27 @@ import { spawnSync } from "node:child_process";
|
|
|
67
67
|
var spec = (load, needs = {}) => ({ browser: false, cookies: false, ffmpeg: false, ytDlp: false, ...needs, load });
|
|
68
68
|
var CLIP_PLATFORM_SPECS = {
|
|
69
69
|
apple_podcast: spec(async () => (await import("./applePodcast-YDYM4JYQ.js")).extractApplePodcastClip, { cookies: true, ytDlp: true }),
|
|
70
|
-
bbc: spec(async () => (await import("./bbc-
|
|
70
|
+
bbc: spec(async () => (await import("./bbc-SOUVA3A6.js")).extractBbcClip),
|
|
71
71
|
bilibili: spec(async () => (await import("./bilibili-V4XVW33T.js")).extractBilibiliClip, { cookies: true, ffmpeg: true, ytDlp: true }),
|
|
72
|
-
bohaishibei: spec(async () => (await import("./bohaishibei-
|
|
72
|
+
bohaishibei: spec(async () => (await import("./bohaishibei-TVAYDZ3S.js")).extractBohaishibeiClip),
|
|
73
73
|
dedao_note: spec(async () => (await import("./dedaoNote-KJ32ZQLS.js")).extractDedaoNoteClip),
|
|
74
|
-
douban_group: spec(async () => (await import("./doubanGroup-
|
|
75
|
-
douban_topic: spec(async () => (await import("./doubanGroup-
|
|
74
|
+
douban_group: spec(async () => (await import("./doubanGroup-Z22HXP4S.js")).extractDoubanGroupClip, { browser: true, cookies: true }),
|
|
75
|
+
douban_topic: spec(async () => (await import("./doubanGroup-Z22HXP4S.js")).extractDoubanTopicClip, { browser: true, cookies: true }),
|
|
76
76
|
doubao: spec(async () => (await import("./doubao-DKZERP6Y.js")).extractDoubaoClip),
|
|
77
77
|
douyin: spec(async () => (await import("./douyin-PIWFZHK7.js")).extractDouyinClip, { cookies: true }),
|
|
78
78
|
facebook: spec(async () => (await import("./facebook-TI2CF5UY.js")).extractFacebookClip, { browser: true, cookies: true }),
|
|
79
79
|
feishu: spec(async () => (await import("./feishu-XSSEBWQD.js")).extractFeishuClip, { browser: true }),
|
|
80
80
|
ima: spec(async () => (await import("./ima-SKE2C64C.js")).extractImaClip),
|
|
81
81
|
instagram: spec(async () => (await import("./instagram-4W4HCWJN.js")).extractInstagramClip, { browser: true, cookies: true }),
|
|
82
|
-
jike: spec(async () => (await import("./jike-
|
|
82
|
+
jike: spec(async () => (await import("./jike-H5FM2OLZ.js")).extractJikeClip, { browser: true }),
|
|
83
83
|
metaso: spec(async () => (await import("./metaso-RRYEUXIL.js")).extractMetasoClip),
|
|
84
|
-
threads: spec(async () => (await import("./threads-
|
|
84
|
+
threads: spec(async () => (await import("./threads-P3QZA3KN.js")).extractThreadsClip, { browser: true }),
|
|
85
85
|
twitter: spec(async () => (await import("./twitter-WNBOJELM.js")).extractTwitterClip),
|
|
86
|
-
web: spec(async () => (await import("./web-
|
|
87
|
-
wechat_official_account: spec(async () => (await import("./wechat-
|
|
88
|
-
weibo: spec(async () => (await import("./weibo-
|
|
86
|
+
web: spec(async () => (await import("./web-SQX7IMO7.js")).extractWebClip, { browser: true, cookies: true }),
|
|
87
|
+
wechat_official_account: spec(async () => (await import("./wechat-WKYZGRG5.js")).extractWechatClip, { browser: true }),
|
|
88
|
+
weibo: spec(async () => (await import("./weibo-A7RZJLAH.js")).extractWeiboClip, { browser: true, ffmpeg: "video", ytDlp: "video" }),
|
|
89
89
|
workbuddy: spec(async () => (await import("./workbuddy-ZXNDX7O7.js")).extractWorkbuddyClip),
|
|
90
|
-
xiaoheihe: spec(async () => (await import("./xiaoheihe-
|
|
90
|
+
xiaoheihe: spec(async () => (await import("./xiaoheihe-LCWXGLYD.js")).extractXiaoheiheClip, { browser: true }),
|
|
91
91
|
xiaohongshu: spec(async () => (await import("./xiaohongshu-3N3ZVSXJ.js")).extractXiaohongshuClip, { browser: true }),
|
|
92
92
|
xiaoyuzhou: spec(async () => (await import("./xiaoyuzhou-OGIWFABL.js")).extractXiaoyuzhouClip),
|
|
93
93
|
youtube: spec(async () => (await import("./youtube-YRSK7CWC.js")).extractYoutubeClip, { cookies: true, ffmpeg: true, ytDlp: true }),
|
|
@@ -56,10 +56,19 @@ function assertWechatArticleUrl(raw) {
|
|
|
56
56
|
}
|
|
57
57
|
return normalized;
|
|
58
58
|
}
|
|
59
|
+
function isWechatQrCodeUrl(value) {
|
|
60
|
+
try {
|
|
61
|
+
const parsed = new URL(value);
|
|
62
|
+
return parsed.protocol === "https:" && parsed.hostname.toLowerCase() === WECHAT_ARTICLE_HOST && /^\/cgi-bin\/showqrcode\/?$/i.test(parsed.pathname);
|
|
63
|
+
} catch {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
59
67
|
function isWechatArticleUrl(value) {
|
|
60
68
|
try {
|
|
61
69
|
const parsed = new URL(value);
|
|
62
|
-
|
|
70
|
+
if (parsed.protocol !== "https:" || parsed.hostname.toLowerCase() !== WECHAT_ARTICLE_HOST) return false;
|
|
71
|
+
return !isWechatQrCodeUrl(value);
|
|
63
72
|
} catch {
|
|
64
73
|
return false;
|
|
65
74
|
}
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
parseDoubanGalleryTopicLink,
|
|
5
5
|
parseDoubanGroupTopicLink,
|
|
6
6
|
parseDoubanPersonalTopicLink
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3BEV2PY.js";
|
|
8
8
|
import {
|
|
9
9
|
extractWebClip
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P23BS2ST.js";
|
|
11
11
|
import {
|
|
12
12
|
loadBrowserCookies
|
|
13
13
|
} from "./chunk-ULKGDBAJ.js";
|
|
14
14
|
import {
|
|
15
15
|
DOUBAN_HOST_RE,
|
|
16
16
|
downloadWebImages
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MWVB6SDC.js";
|
|
18
18
|
import "./chunk-2LW76QIL.js";
|
|
19
19
|
import "./chunk-PTFGE4KS.js";
|
|
20
20
|
import "./chunk-PJDD4R46.js";
|
|
@@ -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-5KBJHX5A.js";
|
|
6
|
+
import "./chunk-3QWGIINW.js";
|
|
7
|
+
import "./chunk-2S4U3MRS.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-SWSIHKCM.js";
|
|
7
|
+
import "./chunk-2S4U3MRS.js";
|
|
8
8
|
import "./chunk-YFGDTC2F.js";
|
|
9
9
|
import "./chunk-WMJXAF3X.js";
|
|
10
10
|
import "./chunk-TOGYWN3D.js";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-67RXND3H.js";
|
|
8
8
|
import {
|
|
9
9
|
extractWebClip
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P23BS2ST.js";
|
|
11
11
|
import "./chunk-ULKGDBAJ.js";
|
|
12
12
|
import {
|
|
13
13
|
downloadWebImages
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MWVB6SDC.js";
|
|
15
15
|
import "./chunk-2LW76QIL.js";
|
|
16
16
|
import "./chunk-PTFGE4KS.js";
|
|
17
17
|
import "./chunk-PJDD4R46.js";
|
|
@@ -271,7 +271,7 @@ function createEditorMcpServer(options = {}) {
|
|
|
271
271
|
return server;
|
|
272
272
|
}
|
|
273
273
|
async function serveEditorMcpOverStdio(options = {}) {
|
|
274
|
-
const { ensureDaemonRunning } = await import("./ensure-
|
|
274
|
+
const { ensureDaemonRunning } = await import("./ensure-QBWY7EPP.js");
|
|
275
275
|
let ensured = null;
|
|
276
276
|
const ensure = () => ensured ??= ensureDaemonRunning().finally(() => {
|
|
277
277
|
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-BFSYRVWX.js";
|
|
7
|
+
import "./chunk-5KBJHX5A.js";
|
|
8
|
+
import "./chunk-PDJ3VQDJ.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-3QWGIINW.js";
|
|
18
|
+
import "./chunk-SWSIHKCM.js";
|
|
19
19
|
import {
|
|
20
20
|
tryForwardToDaemon
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2S4U3MRS.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-TIPCBGV7.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-TDUVFINJ.js";
|
|
19
19
|
import {
|
|
20
20
|
commandStale,
|
|
21
21
|
parseStringListInput,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
syncBeforeNoteCommand,
|
|
26
26
|
waitForMutationUpload,
|
|
27
27
|
withNoteDatabase
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PDJ3VQDJ.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-3QWGIINW.js";
|
|
40
40
|
import {
|
|
41
41
|
isWorkbuddyUrl,
|
|
42
42
|
normalizeWorkbuddyUrl
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
import {
|
|
98
98
|
isWechatArticleUrl,
|
|
99
99
|
normalizeWechatArticleUrl
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-XQSJWC37.js";
|
|
101
101
|
import {
|
|
102
102
|
detectWeiboContentType,
|
|
103
103
|
isWeiboUrl,
|
|
@@ -114,9 +114,10 @@ import {
|
|
|
114
114
|
import {
|
|
115
115
|
isDoubanGroupTopicUrl,
|
|
116
116
|
isDoubanTopicUrl,
|
|
117
|
+
normalizeDoubanDispatchUrl,
|
|
117
118
|
normalizeDoubanGroupTopicUrl,
|
|
118
119
|
normalizeDoubanTopicUrl
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-I3BEV2PY.js";
|
|
120
121
|
import {
|
|
121
122
|
isDoubaoUrl,
|
|
122
123
|
normalizeDoubaoUrl
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
AI_SERVICE_URL,
|
|
140
141
|
generateId,
|
|
141
142
|
toAuthorizationHeaderValue
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-2S4U3MRS.js";
|
|
143
144
|
import "./chunk-JNRA4TTH.js";
|
|
144
145
|
import "./chunk-YFGDTC2F.js";
|
|
145
146
|
import "./chunk-7ODU7LXP.js";
|
|
@@ -341,7 +342,8 @@ function detectArticleClipTarget(inputUrl) {
|
|
|
341
342
|
url: imaUrl
|
|
342
343
|
};
|
|
343
344
|
}
|
|
344
|
-
const
|
|
345
|
+
const doubanUrl = normalizeDoubanDispatchUrl(rawUrl);
|
|
346
|
+
const doubanGroupUrl = normalizeDoubanGroupTopicUrl(doubanUrl);
|
|
345
347
|
if (isDoubanGroupTopicUrl(doubanGroupUrl)) {
|
|
346
348
|
return {
|
|
347
349
|
contentType: "post",
|
|
@@ -349,7 +351,7 @@ function detectArticleClipTarget(inputUrl) {
|
|
|
349
351
|
url: doubanGroupUrl
|
|
350
352
|
};
|
|
351
353
|
}
|
|
352
|
-
const doubanTopicUrl = normalizeDoubanTopicUrl(
|
|
354
|
+
const doubanTopicUrl = normalizeDoubanTopicUrl(doubanUrl);
|
|
353
355
|
if (isDoubanTopicUrl(doubanTopicUrl)) {
|
|
354
356
|
return {
|
|
355
357
|
contentType: "post",
|
|
@@ -421,7 +423,7 @@ function detectArticleClipTarget(inputUrl) {
|
|
|
421
423
|
url: feishuUrl
|
|
422
424
|
};
|
|
423
425
|
}
|
|
424
|
-
const webUrl = normalizeWebUrl(rawUrl);
|
|
426
|
+
const webUrl = normalizeWebUrl(normalizeDoubanDispatchUrl(rawUrl));
|
|
425
427
|
if (isWebClipUrl(webUrl)) {
|
|
426
428
|
return {
|
|
427
429
|
contentType: "article",
|
|
@@ -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-BFSYRVWX.js";
|
|
31
|
+
import "./chunk-5KBJHX5A.js";
|
|
32
|
+
import "./chunk-PDJ3VQDJ.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-3QWGIINW.js";
|
|
40
|
+
import "./chunk-SWSIHKCM.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_VALUE_OPTIONS,
|
|
43
43
|
validateRequestId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2S4U3MRS.js";
|
|
45
45
|
import "./chunk-JNRA4TTH.js";
|
|
46
46
|
import "./chunk-YFGDTC2F.js";
|
|
47
47
|
import "./chunk-7ODU7LXP.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
captureWebWithProxyFallback,
|
|
5
5
|
extractWebClip,
|
|
6
6
|
loadWebPage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-P23BS2ST.js";
|
|
8
8
|
import "./chunk-ULKGDBAJ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-MWVB6SDC.js";
|
|
10
10
|
import "./chunk-2LW76QIL.js";
|
|
11
11
|
import "./chunk-PTFGE4KS.js";
|
|
12
12
|
import "./chunk-PJDD4R46.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-2S4U3MRS.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-TIPCBGV7.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-ZMADEDW2.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-TIPCBGV7.js");
|
|
142
142
|
process.exitCode = printCliError(error, argv);
|
|
143
143
|
}
|
|
144
144
|
if (isDinoxError(fatalError) && fatalError.requiresProcessExit) {
|