@dinoxx/dinox-cli 2.20.1 → 3.0.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/README.md +17 -16
- package/dist/chunks/{applePodcast-V4FSJOC5.js → applePodcast-YDYM4JYQ.js} +3 -3
- package/dist/chunks/{bbc-NTMRPYRF.js → bbc-N3BM2EGG.js} +3 -3
- package/dist/chunks/{bilibili-UA3MBSPH.js → bilibili-V4XVW33T.js} +63 -9
- package/dist/chunks/{bohaishibei-B7UVXH4Y.js → bohaishibei-IQO5CZTN.js} +3 -3
- package/dist/chunks/{chunk-BKCNERPB.js → chunk-2DREJFKB.js} +98 -17
- package/dist/chunks/{chunk-X7JXCHLI.js → chunk-ARBWJ3ZA.js} +4176 -2821
- package/dist/chunks/{chunk-XMMTGPZ6.js → chunk-AZ43P73A.js} +56 -2
- package/dist/chunks/{chunk-PGR7R2HI.js → chunk-HG3RZFDX.js} +3 -3
- package/dist/chunks/{chunk-VI7C4BBS.js → chunk-KJBN7TD7.js} +3 -3
- package/dist/chunks/{chunk-FIQYJ6KZ.js → chunk-LLAXR5EG.js} +1 -1
- package/dist/chunks/{chunk-TILRKKRN.js → chunk-MKEL2KNU.js} +893 -468
- package/dist/chunks/{chunk-FGQRYB7F.js → chunk-MZMOE3RX.js} +13 -1
- package/dist/chunks/{chunk-53CT7DJ3.js → chunk-N2VYTZWU.js} +2 -2
- package/dist/chunks/{chunk-XEPDFQYD.js → chunk-N5YDNM3P.js} +26 -26
- package/dist/chunks/{chunk-YDIE7QBM.js → chunk-NVKSI4BD.js} +671 -159
- package/dist/chunks/{chunk-QFUD3I7W.js → chunk-QPVGA46P.js} +0 -1
- package/dist/chunks/{chunk-6AZT4ARG.js → chunk-R2CGNGOT.js} +3 -3
- package/dist/chunks/{chunk-GTDX2LIJ.js → chunk-RSSEVU2F.js} +58 -10
- package/dist/chunks/{chunk-G6JSWE66.js → chunk-WABL3OUP.js} +2 -2
- package/dist/chunks/{cookies-6QQHSM26.js → cookies-ORQ3RLAH.js} +1 -3
- package/dist/chunks/{doubanGroup-HR4K2KMY.js → doubanGroup-MADXDGDI.js} +4 -4
- package/dist/chunks/{doubao-MXUHPLUB.js → doubao-DKZERP6Y.js} +2 -2
- package/dist/chunks/{douyin-UU2FSQPS.js → douyin-PIWFZHK7.js} +91 -5
- package/dist/chunks/{ensure-CHJ5YTBX.js → ensure-MPOQ244L.js} +5 -5
- package/dist/chunks/{execute-RXJ4AO2Z.js → execute-KMNZ5EFR.js} +3 -3
- package/dist/chunks/{facebook-SZFOVE7R.js → facebook-TI2CF5UY.js} +2 -2
- package/dist/chunks/{feishu-ISWRJ7HI.js → feishu-XSSEBWQD.js} +2 -2
- package/dist/chunks/{ima-D7CX5WR4.js → ima-SKE2C64C.js} +2 -2
- package/dist/chunks/{instagram-HNDPO37H.js → instagram-4W4HCWJN.js} +2 -2
- package/dist/chunks/{install-IIMVFNAT.js → install-35YBLHXE.js} +0 -2
- package/dist/chunks/{jike-H7L4LJTN.js → jike-GS64MEEO.js} +4 -4
- package/dist/chunks/{mcp-NMKVOSVN.js → mcp-H667ML2O.js} +9 -9
- package/dist/chunks/{mcpServer-NYJAKMVH.js → mcpServer-G2WEAD2O.js} +13 -11
- package/dist/chunks/{metaso-ZVZW5UBB.js → metaso-RRYEUXIL.js} +2 -2
- package/dist/chunks/{run-ETPFUFB6.js → run-7D6ATULD.js} +7 -7
- package/dist/chunks/{runCli-GJRY73UA.js → runCli-QEWWUIZN.js} +8 -8
- package/dist/chunks/{setup-EEU6GSWX.js → setup-DSTOF3BZ.js} +2 -2
- package/dist/chunks/{threads-ADW6IANQ.js → threads-JKMT3E73.js} +3 -3
- package/dist/chunks/{twitter-NAGCB3NI.js → twitter-WNBOJELM.js} +2 -2
- package/dist/chunks/{web-QFKZCM4F.js → web-LJESVHHV.js} +4 -4
- package/dist/chunks/{wechat-OXNNLT4J.js → wechat-N7O77CB4.js} +40 -1
- package/dist/chunks/{weibo-PMVGDNQU.js → weibo-XPEV5CLQ.js} +4 -4
- package/dist/chunks/{workbuddy-NNAXIIIZ.js → workbuddy-ZXNDX7O7.js} +5 -5
- package/dist/chunks/{xiaoheihe-WFQJRBAD.js → xiaoheihe-WXFAORLQ.js} +3 -3
- package/dist/chunks/{xiaohongshu-5CXBELGW.js → xiaohongshu-3N3ZVSXJ.js} +2 -2
- package/dist/chunks/{xiaoyuzhou-6L6IB46Y.js → xiaoyuzhou-OGIWFABL.js} +3 -3
- package/dist/chunks/{youtube-52NGBTQC.js → youtube-YRSK7CWC.js} +3 -3
- package/dist/chunks/{zcool-HDSWK4KD.js → zcool-K5KJ2KDG.js} +2 -2
- package/dist/chunks/{zhihu-EX2VRJYY.js → zhihu-X6XSPD6B.js} +2 -2
- package/dist/dinox.js +5 -5
- package/dist/dsh-plugin/lib/client.js +309 -567
- package/dist/dsh-plugin/lib/index.js +1 -1
- package/dist/dsh-plugin/package.json +1 -1
- package/dist/dsh-plugin/runtime.json +2 -2
- package/dist/editor-ui/mcp-app.html +356 -592
- package/package.json +22 -12
- /package/dist/chunks/{chunk-QFSMFANX.js → chunk-SM2QOO45.js} +0 -0
|
@@ -427,7 +427,7 @@ function decodeResidualDoubleHtmlEntities(text) {
|
|
|
427
427
|
return current;
|
|
428
428
|
}
|
|
429
429
|
function normalizeClipMarkdownBody(markdown) {
|
|
430
|
-
const lines = fixCjkLabelLayout(splitHeadingImages(dropStrandedParagraphClosers(closeOrphanStandaloneBold(closeBoldBrokenByBlockImages(splitOrCloseParagraphSpanningItalic(splitParagraphSpanningBold(unwrapSpanningLinkListBold(joinListPunctuationContinuations(joinStrandedEmphasis(unwrapDiscourseLightboxMarkdown(markdown).split("\n")))))))))));
|
|
430
|
+
const lines = fixCjkLabelLayout(splitHeadingImages(dropStrandedParagraphClosers(liftBoldOffAtxHeadings(closeOrphanStandaloneBold(closeBoldBrokenByBlockImages(splitOrCloseParagraphSpanningItalic(splitParagraphSpanningBold(unwrapSpanningLinkListBold(joinListPunctuationContinuations(joinStrandedEmphasis(unwrapDiscourseLightboxMarkdown(markdown).split("\n"))))))))))));
|
|
431
431
|
const out = [];
|
|
432
432
|
let fence = null;
|
|
433
433
|
let dropBlank = false;
|
|
@@ -856,6 +856,41 @@ function closeBoldBrokenByBlockImages(lines) {
|
|
|
856
856
|
}
|
|
857
857
|
return out;
|
|
858
858
|
}
|
|
859
|
+
var BOLD_ATX_HEADING_OPEN_RE = /^([ \t]*)\*\*(#{1,6}[ \t]+\S.*?)(?:\*\*)?\s*$/;
|
|
860
|
+
var BOLD_ATX_HEADING_CLOSE_MAX = 80;
|
|
861
|
+
function liftBoldOffAtxHeadings(lines) {
|
|
862
|
+
const out = [...lines];
|
|
863
|
+
let fence = null;
|
|
864
|
+
for (let index = 0; index < out.length; index += 1) {
|
|
865
|
+
const line = out[index];
|
|
866
|
+
const marker = line.match(/^\s{0,3}(`{3,}|~{3,})/)?.[1];
|
|
867
|
+
if (fence) {
|
|
868
|
+
if (marker && marker[0] === fence[0] && marker.length >= fence.length) fence = null;
|
|
869
|
+
continue;
|
|
870
|
+
}
|
|
871
|
+
if (marker) {
|
|
872
|
+
fence = marker;
|
|
873
|
+
continue;
|
|
874
|
+
}
|
|
875
|
+
const open = BOLD_ATX_HEADING_OPEN_RE.exec(line);
|
|
876
|
+
if (!open) continue;
|
|
877
|
+
const stars = line.match(/\*\*/g) ?? [];
|
|
878
|
+
if (stars.length > 2) continue;
|
|
879
|
+
out[index] = `${open[1]}${open[2].replace(/\s+$/, "")}`;
|
|
880
|
+
if (stars.length !== 1) continue;
|
|
881
|
+
for (let look = index + 1; look < out.length && look - index <= BOLD_ATX_HEADING_CLOSE_MAX; look += 1) {
|
|
882
|
+
const later = out[look];
|
|
883
|
+
const laterMarker = later.match(/^\s{0,3}(`{3,}|~{3,})/)?.[1];
|
|
884
|
+
if (laterMarker) break;
|
|
885
|
+
if ((later.match(/\*\*/g) ?? []).length % 2 !== 1) continue;
|
|
886
|
+
const close = /^(.*[^*\s])\*\*\s*$/.exec(later) ?? /^([ \t]*)\*\*[ \t]*$/.exec(later);
|
|
887
|
+
if (!close) break;
|
|
888
|
+
out[look] = close[1].replace(/\s+$/, "");
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
return out;
|
|
893
|
+
}
|
|
859
894
|
var ORPHAN_STANDALONE_BOLD_RE = /^([ \t]*)\*\*(?![\s*])([^*]+?)\s*$/;
|
|
860
895
|
var ORPHAN_STANDALONE_BOLD_MAX = 40;
|
|
861
896
|
function closeOrphanStandaloneBold(lines) {
|
|
@@ -1001,6 +1036,12 @@ var BOLD_IMAGES_THEN_TEXT_RE = new RegExp(
|
|
|
1001
1036
|
// comment ("** <!-- … -->**"), not text after the image.
|
|
1002
1037
|
String.raw`^(\s*)${EMPTY_BOLD}\*\*${HSPACE}*((?:${IMAGE_UNIT_RE}${HSPACE}*)+?)${HSPACE}*((?!<!--)[^*\s\])][^*]*?)\*\*${HSPACE}*${EMPTY_BOLD}$`
|
|
1003
1038
|
);
|
|
1039
|
+
var BOLD_IMAGES_CLOSED_THEN_REST_RE = new RegExp(
|
|
1040
|
+
String.raw`^(\s*)${EMPTY_BOLD}\*\*${HSPACE}*((?:${IMAGE_UNIT_RE}${HSPACE}*)+?)${HSPACE}*\*\*${HSPACE}*(\S[\s\S]*)$`
|
|
1041
|
+
);
|
|
1042
|
+
var BOLD_IMAGES_THEN_REST_RE = new RegExp(
|
|
1043
|
+
String.raw`^(\s*)${EMPTY_BOLD}\*\*${HSPACE}*((?:${IMAGE_UNIT_RE}${HSPACE}*)+?)${HSPACE}*((?!<!--)[^*\s\])][\s\S]*)$`
|
|
1044
|
+
);
|
|
1004
1045
|
function canCloseBoldBeforeEdgeImages(line) {
|
|
1005
1046
|
return line.includes("![") && line.includes("**") && !line.includes("`") && !line.includes("\\*");
|
|
1006
1047
|
}
|
|
@@ -1017,6 +1058,20 @@ function closeBoldBeforeEdgeImages(line) {
|
|
|
1017
1058
|
if (imagesFirst && isBlockImages(imagesFirst[2] ?? "")) {
|
|
1018
1059
|
return `${imagesFirst[1]}${(imagesFirst[2] ?? "").trim()} **${(imagesFirst[3] ?? "").trimEnd()}**`;
|
|
1019
1060
|
}
|
|
1061
|
+
const restHasText = (value) => value.replace(new RegExp(IMAGE_UNIT_RE, "g"), "").replace(/[\s*_]/g, "").length > 0;
|
|
1062
|
+
const closedThenRest = BOLD_IMAGES_CLOSED_THEN_REST_RE.exec(line);
|
|
1063
|
+
if (closedThenRest && isBlockImages(closedThenRest[2] ?? "") && restHasText(closedThenRest[3] ?? "")) {
|
|
1064
|
+
const rest = (closedThenRest[3] ?? "").trim();
|
|
1065
|
+
if (rest) return `${closedThenRest[1]}${(closedThenRest[2] ?? "").trim()} ${rest}`;
|
|
1066
|
+
}
|
|
1067
|
+
const imagesThenRest = BOLD_IMAGES_THEN_REST_RE.exec(line);
|
|
1068
|
+
if (imagesThenRest && isBlockImages(imagesThenRest[2] ?? "") && restHasText(imagesThenRest[3] ?? "")) {
|
|
1069
|
+
const rest = (imagesThenRest[3] ?? "").trim();
|
|
1070
|
+
if (rest) {
|
|
1071
|
+
const text = /^\*\*|^__/.test(rest) ? rest : `**${rest}`;
|
|
1072
|
+
return `${imagesThenRest[1]}${(imagesThenRest[2] ?? "").trim()} ${text}`;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1020
1075
|
return line;
|
|
1021
1076
|
}
|
|
1022
1077
|
function mapOutsideCode(line, fn) {
|
|
@@ -1191,7 +1246,6 @@ function fixRunsOfSize(line, size) {
|
|
|
1191
1246
|
let match;
|
|
1192
1247
|
while (match = re.exec(masked)) {
|
|
1193
1248
|
if (match[0].length !== size) {
|
|
1194
|
-
if (match[0].length >= 3) return line;
|
|
1195
1249
|
continue;
|
|
1196
1250
|
}
|
|
1197
1251
|
if (match.index > 0 && masked[match.index - 1] === "\\") continue;
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
waitForDownloadIdle,
|
|
15
15
|
waitForLastSyncedAfter,
|
|
16
16
|
waitForUploadQueueEmpty
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ARBWJ3ZA.js";
|
|
18
18
|
import {
|
|
19
19
|
fingerprintDaemonRuntimeConfig,
|
|
20
20
|
loadConfig,
|
|
21
21
|
parseSyncTimeoutMs,
|
|
22
22
|
resolveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WABL3OUP.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-SM2QOO45.js";
|
|
36
36
|
import {
|
|
37
37
|
getPackageVersion
|
|
38
38
|
} from "./chunk-WMJXAF3X.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
hydrateResolvedAuthIdentity,
|
|
6
6
|
restartDaemonLocked,
|
|
7
7
|
stopDaemonLocked
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ARBWJ3ZA.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-WABL3OUP.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-SM2QOO45.js";
|
|
31
31
|
import {
|
|
32
32
|
getPackageVersion
|
|
33
33
|
} from "./chunk-WMJXAF3X.js";
|