dsh-inkmap 0.3.13 → 0.3.15
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/host.js +4 -4
- package/icon.svg +39 -61
- package/package.json +1 -1
- package/web/assets/{abnfDiagram-S7VZAUFO-ieC--hqa.js → abnfDiagram-S7VZAUFO-0Vl6U7Cj.js} +1 -1
- package/web/assets/{architectureDiagram-YGSQEFNW-DvIvFnWx.js → architectureDiagram-YGSQEFNW-Cjcij0VJ.js} +1 -1
- package/web/assets/{blockDiagram-APKKGZFW-CjfxHdLW.js → blockDiagram-APKKGZFW-D7BREmIu.js} +1 -1
- package/web/assets/{c4Diagram-KJ2TOQU5-CoOAFRQj.js → c4Diagram-KJ2TOQU5-DGc-A8iz.js} +1 -1
- package/web/assets/{chunk-2Q5K7J3B-BV9sBJ5L.js → chunk-2Q5K7J3B-DuF-zLkn.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-BLk_XgqM.js → chunk-5VM5RSS4-BIAevGvS.js} +1 -1
- package/web/assets/{chunk-HFQBQIA3-Cy8piMnq.js → chunk-HFQBQIA3-DxFcdi0o.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-CHPfftaS.js → chunk-JWPE2WC7-C_-XCwLF.js} +1 -1
- package/web/assets/{chunk-KQLB2F66-CoM-WvHu.js → chunk-KQLB2F66-CtEBLxpV.js} +1 -1
- package/web/assets/{chunk-KS47KZWR-Cq1k8YKI.js → chunk-KS47KZWR-C89rkdJ_.js} +1 -1
- package/web/assets/{chunk-OY52VR5R-DbNJ_Rwy.js → chunk-OY52VR5R-t4HaTpoq.js} +1 -1
- package/web/assets/{chunk-TU62E6Q5-BFn-FCxy.js → chunk-TU62E6Q5-Cj9SMFED.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-riDwAc0M.js → chunk-XXDRQBXY-BdC5ZWjo.js} +1 -1
- package/web/assets/{classDiagram-v2-L25IHNXF-Fiwuqznk.js → classDiagram-v2-L25IHNXF-DHhtH7KS.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-DeAqv5WX.js → cose-bilkent-JH36ORCC-CM6yzTNu.js} +1 -1
- package/web/assets/{cynefin-EF2NZ3EQ-BkNg42KS.js → cynefin-EF2NZ3EQ-BgLkKbSQ.js} +1 -1
- package/web/assets/{cynefinDiagram-L36ESFBY-DjNjp0dF.js → cynefinDiagram-L36ESFBY-pgrlCIux.js} +1 -1
- package/web/assets/{dagre-SPEB5RXH-D2-QZ0gW.js → dagre-SPEB5RXH-BLGdr5sY.js} +1 -1
- package/web/assets/{diagram-3B7GL73J-DEUqHGKw.js → diagram-3B7GL73J-jgwni35z.js} +1 -1
- package/web/assets/{diagram-DNEMPZML-nLnTdcps.js → diagram-DNEMPZML-DWY57vNv.js} +1 -1
- package/web/assets/{diagram-L3MUGCDN-hy6OMGDd.js → diagram-L3MUGCDN-BGGN1bwe.js} +1 -1
- package/web/assets/{diagram-LA4NIPWU-eSqsppXn.js → diagram-LA4NIPWU-C2pFoiLy.js} +1 -1
- package/web/assets/{diagram-MHCOC4E2-m_Pn-MgN.js → diagram-MHCOC4E2-Db0kkijj.js} +1 -1
- package/web/assets/{diagram-XPFHEONP-CrB459es.js → diagram-XPFHEONP-CZS0eCTf.js} +1 -1
- package/web/assets/{ebnfDiagram-UZSYDL2S-CH5RrQtf.js → ebnfDiagram-UZSYDL2S-C6M4TYGx.js} +1 -1
- package/web/assets/{elk-XV6XMXQE-DsuzM-VX.js → elk-XV6XMXQE-CqADK5tz.js} +1 -1
- package/web/assets/{erDiagram-EYBAPDEH-Bj6m7f0V.js → erDiagram-EYBAPDEH-CiEleGqy.js} +1 -1
- package/web/assets/{flowDiagram-MALGAFMO-VzOAtDrd.js → flowDiagram-MALGAFMO-ecr0cjpp.js} +1 -1
- package/web/assets/{ganttDiagram-23REXITY-C8KSG_Dl.js → ganttDiagram-23REXITY-D9086zue.js} +1 -1
- package/web/assets/{gitGraphDiagram-STJD7YCW-Ci47AaUH.js → gitGraphDiagram-STJD7YCW-CqlErsEH.js} +1 -1
- package/web/assets/{index-CHHdeSs8.js → index-CJprLbZJ.js} +80 -80
- package/web/assets/{infoDiagram-KBXO4MBG-CbJEQsH-.js → infoDiagram-KBXO4MBG-Wwh_Acs_.js} +1 -1
- package/web/assets/{ishikawaDiagram-M35NCXHK-DCfvCsyM.js → ishikawaDiagram-M35NCXHK-Cddfg2TU.js} +1 -1
- package/web/assets/{journeyDiagram-OPLOXDXO-BeTYs875.js → journeyDiagram-OPLOXDXO-CdTSeX6y.js} +1 -1
- package/web/assets/{kanban-definition-BZKZHSQY-BZJL4uH3.js → kanban-definition-BZKZHSQY-CdMYVV40.js} +1 -1
- package/web/assets/{mermaid.core-BKxp_W0R.js → mermaid.core-BgTM9MTz.js} +3 -3
- package/web/assets/{mindmap-definition-I2QAS2VK-CywUbgit.js → mindmap-definition-I2QAS2VK-FWJxkxsN.js} +1 -1
- package/web/assets/{pegDiagram-FD4XPPHP-DgXeiIWV.js → pegDiagram-FD4XPPHP-Ds6y4jrp.js} +1 -1
- package/web/assets/{pieDiagram-J4AKIIQI-OcfvSKoF.js → pieDiagram-J4AKIIQI-BExyDsFc.js} +1 -1
- package/web/assets/{quadrantDiagram-XTYBLID2-B-OJD0oL.js → quadrantDiagram-XTYBLID2-BnXkOd5C.js} +1 -1
- package/web/assets/{railroadDiagram-MRQ6NCDL-ChuL1i9V.js → railroadDiagram-MRQ6NCDL-dTTz106v.js} +1 -1
- package/web/assets/{requirementDiagram-Y7LWUY3S-D4nlEXOY.js → requirementDiagram-Y7LWUY3S-EXf9haG9.js} +1 -1
- package/web/assets/{sankeyDiagram-WGJFYUXA-Q6gzguHa.js → sankeyDiagram-WGJFYUXA-CQv7ihr-.js} +1 -1
- package/web/assets/{sequenceDiagram-5NDRBG5M-JcvJHJID.js → sequenceDiagram-5NDRBG5M--N4CZiVh.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-ChilhHnI.js → sizeCapture-INFHLROL-p2CAt6Mf.js} +1 -1
- package/web/assets/{stateDiagram-v2-FJ4FJNEA-C5bEsVFn.js → stateDiagram-v2-FJ4FJNEA-B1VOTL0s.js} +1 -1
- package/web/assets/{swimlanes-UMQ2AFYF-DcK76FyB.js → swimlanes-UMQ2AFYF-2IGwlExb.js} +1 -1
- package/web/assets/swimlanesDiagram-OMPLPG4O-BZKScrKr.js +8 -0
- package/web/assets/{timeline-definition-SEUHKTQE-CKuf1fcm.js → timeline-definition-SEUHKTQE-B6bSLyLu.js} +1 -1
- package/web/assets/{usecaseDiagram-AFA6YXN4-BUM7YuI-.js → usecaseDiagram-AFA6YXN4-JyyrBy5X.js} +1 -1
- package/web/assets/{vennDiagram-NNMJR3RB-DNHmRezN.js → vennDiagram-NNMJR3RB-ldEYxyn-.js} +1 -1
- package/web/assets/{wardleyDiagram-S7YFUSEH-ZU8qn3R4.js → wardleyDiagram-S7YFUSEH-C4HMWwWE.js} +1 -1
- package/web/assets/{xychartDiagram-GGNKY7IX-Cbjal4bm.js → xychartDiagram-GGNKY7IX-BYfuV3sK.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/swimlanesDiagram-OMPLPG4O-B7VoSxvW.js +0 -8
package/host.js
CHANGED
|
@@ -59,7 +59,7 @@ import { homedir, tmpdir } from "node:os";
|
|
|
59
59
|
import { dirname, join, sep } from "node:path";
|
|
60
60
|
|
|
61
61
|
// packages/cli/dist/version.js
|
|
62
|
-
var INKMAP_VERSION = "0.3.
|
|
62
|
+
var INKMAP_VERSION = "0.3.15";
|
|
63
63
|
|
|
64
64
|
// packages/cli/dist/license.js
|
|
65
65
|
var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
|
|
@@ -1217,7 +1217,7 @@ async function fileSource(file, log = () => {
|
|
|
1217
1217
|
writeView: (state) => writeDiskViewState(path, state)
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
|
-
function within(root, rel) {
|
|
1220
|
+
function within(root, rel, allowAbsoluteInRoot = false) {
|
|
1221
1221
|
let decoded;
|
|
1222
1222
|
try {
|
|
1223
1223
|
decoded = decodeURIComponent(rel);
|
|
@@ -1226,7 +1226,7 @@ function within(root, rel) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
const resolvedRoot = resolve2(root);
|
|
1228
1228
|
const base = resolvedRoot.endsWith(sep3) ? resolvedRoot : resolvedRoot + sep3;
|
|
1229
|
-
const full = normalize(join3(resolvedRoot, decoded));
|
|
1229
|
+
const full = allowAbsoluteInRoot && /^(?:[\\/]|[A-Za-z]:[\\/])/.test(decoded) ? normalize(decoded) : normalize(join3(resolvedRoot, decoded));
|
|
1230
1230
|
return full.startsWith(base) ? full : null;
|
|
1231
1231
|
}
|
|
1232
1232
|
async function openBrowserWindow(url) {
|
|
@@ -1624,7 +1624,7 @@ data: ${JSON.stringify(data)}
|
|
|
1624
1624
|
if (url.pathname === "/favicon.ico")
|
|
1625
1625
|
return void res.writeHead(204).end();
|
|
1626
1626
|
if (url.pathname.startsWith("/doc-assets/")) {
|
|
1627
|
-
let asset = within(activeSource.dir, url.pathname.slice("/doc-assets/".length));
|
|
1627
|
+
let asset = within(activeSource.dir, url.pathname.slice("/doc-assets/".length), true);
|
|
1628
1628
|
if (asset) {
|
|
1629
1629
|
const root = await realpath2(activeSource.dir).catch(() => null);
|
|
1630
1630
|
asset = await realpath2(asset).catch(() => null);
|
package/icon.svg
CHANGED
|
@@ -1,66 +1,44 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="256" height="256">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="
|
|
4
|
-
<stop offset="0%" stop-color="#
|
|
5
|
-
<stop offset="
|
|
6
|
-
<stop offset="100%" stop-color="#
|
|
7
|
-
</linearGradient>
|
|
8
|
-
<radialGradient id="
|
|
9
|
-
<stop offset="0%" stop-color="#
|
|
10
|
-
<stop offset="
|
|
11
|
-
<stop offset="100%" stop-color="#0f172a" stop-opacity="0"/>
|
|
12
|
-
</radialGradient>
|
|
13
|
-
<radialGradient id="auroraBot" cx="208" cy="212" r="140" gradientUnits="userSpaceOnUse">
|
|
14
|
-
<stop offset="0%" stop-color="#a855f7" stop-opacity="0.35"/>
|
|
15
|
-
<stop offset="100%" stop-color="#1e1b4b" stop-opacity="0"/>
|
|
3
|
+
<linearGradient id="bg1" x1="40" y1="24" x2="472" y2="488" gradientUnits="userSpaceOnUse">
|
|
4
|
+
<stop offset="0%" stop-color="#2563EB"/>
|
|
5
|
+
<stop offset="55%" stop-color="#1D4ED8"/>
|
|
6
|
+
<stop offset="100%" stop-color="#1E1B4B"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
<radialGradient id="glow1" cx="150" cy="120" r="320" gradientUnits="userSpaceOnUse">
|
|
9
|
+
<stop offset="0%" stop-color="#60A5FA" stop-opacity="0.38"/>
|
|
10
|
+
<stop offset="100%" stop-color="#1E1B4B" stop-opacity="0"/>
|
|
16
11
|
</radialGradient>
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
<stop offset="50%" stop-color="#ffffff" stop-opacity="0.12"/>
|
|
20
|
-
<stop offset="100%" stop-color="#c084fc" stop-opacity="0.28"/>
|
|
21
|
-
</linearGradient>
|
|
22
|
-
<linearGradient id="branchTop" x1="92" y1="128" x2="162" y2="70" gradientUnits="userSpaceOnUse">
|
|
23
|
-
<stop offset="0%" stop-color="#e0f2fe"/>
|
|
24
|
-
<stop offset="100%" stop-color="#38bdf8"/>
|
|
25
|
-
</linearGradient>
|
|
26
|
-
<linearGradient id="branchMid" x1="92" y1="128" x2="156" y2="128" gradientUnits="userSpaceOnUse">
|
|
27
|
-
<stop offset="0%" stop-color="#ffffff" stop-opacity="0.92"/>
|
|
28
|
-
<stop offset="100%" stop-color="#ffffff"/>
|
|
29
|
-
</linearGradient>
|
|
30
|
-
<linearGradient id="branchBot" x1="92" y1="128" x2="162" y2="186" gradientUnits="userSpaceOnUse">
|
|
31
|
-
<stop offset="0%" stop-color="#e0e7ff"/>
|
|
32
|
-
<stop offset="100%" stop-color="#c084fc"/>
|
|
33
|
-
</linearGradient>
|
|
34
|
-
<linearGradient id="nodeTop" x1="150" y1="54" x2="216" y2="86" gradientUnits="userSpaceOnUse">
|
|
35
|
-
<stop offset="0%" stop-color="#7dd3fc"/>
|
|
36
|
-
<stop offset="100%" stop-color="#38bdf8"/>
|
|
37
|
-
</linearGradient>
|
|
38
|
-
<linearGradient id="nodeBot" x1="150" y1="170" x2="210" y2="202" gradientUnits="userSpaceOnUse">
|
|
39
|
-
<stop offset="0%" stop-color="#c4b5fd"/>
|
|
40
|
-
<stop offset="100%" stop-color="#a855f7"/>
|
|
41
|
-
</linearGradient>
|
|
42
|
-
<linearGradient id="hubCore" x1="54" y1="112" x2="86" y2="144" gradientUnits="userSpaceOnUse">
|
|
43
|
-
<stop offset="0%" stop-color="#3b82f6"/>
|
|
44
|
-
<stop offset="100%" stop-color="#4f46e5"/>
|
|
45
|
-
</linearGradient>
|
|
46
|
-
<filter id="softShadow" x="-12%" y="-12%" width="124%" height="128%">
|
|
47
|
-
<feDropShadow dx="0" dy="6" stdDeviation="7" flood-color="#090d1f" flood-opacity="0.36"/>
|
|
12
|
+
<filter id="sh1" x="-15%" y="-15%" width="130%" height="135%">
|
|
13
|
+
<feDropShadow dx="0" dy="10" stdDeviation="12" flood-color="#090D24" flood-opacity="0.34"/>
|
|
48
14
|
</filter>
|
|
49
15
|
</defs>
|
|
50
|
-
<rect x="
|
|
51
|
-
<rect x="
|
|
52
|
-
<rect x="
|
|
53
|
-
|
|
54
|
-
<g filter="url(#
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<rect x="
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
16
|
+
<rect x="16" y="16" width="480" height="480" rx="108" fill="url(#bg1)"/>
|
|
17
|
+
<rect x="16" y="16" width="480" height="480" rx="108" fill="url(#glow1)"/>
|
|
18
|
+
<rect x="18" y="18" width="476" height="476" rx="106" fill="none" stroke="#FFFFFF" stroke-opacity="0.22" stroke-width="4"/>
|
|
19
|
+
|
|
20
|
+
<g filter="url(#sh1)">
|
|
21
|
+
<!-- Curved Mind Map Branches -->
|
|
22
|
+
<path d="M 244 256 C 304 256, 298 134, 356 134" fill="none" stroke="#38BDF8" stroke-width="20" stroke-linecap="round"/>
|
|
23
|
+
<path d="M 244 256 L 352 256" fill="none" stroke="#34D399" stroke-width="20" stroke-linecap="round"/>
|
|
24
|
+
<path d="M 244 256 C 304 256, 298 378, 356 378" fill="none" stroke="#FBBF24" stroke-width="20" stroke-linecap="round"/>
|
|
25
|
+
|
|
26
|
+
<!-- Left Official Markdown [M↓] Badge -->
|
|
27
|
+
<rect x="64" y="182" width="194" height="148" rx="30" fill="#FFFFFF"/>
|
|
28
|
+
<path d="M 89.22 295.96 V 216.04 H 105.16404 L 128.699 252.8032 L 152.23396 216.04 H 168.178 V 295.96 H 151.3948 V 248.00799999999998 L 128.699 278.3776 L 106.00319999999999 248.00799999999998 V 295.96 Z" fill="#1E3A8A"/><path d="M 196.77633600000001 216.04 H 214.230864 V 256 H 232.78 L 205.5036 298.3576 L 178.2272 256 H 196.77633600000001 Z" fill="#1E3A8A"/>
|
|
29
|
+
|
|
30
|
+
<!-- Connector junction dot on right of M↓ badge -->
|
|
31
|
+
<circle cx="258" cy="256" r="16" fill="#FFFFFF"/>
|
|
32
|
+
<circle cx="258" cy="256" r="8" fill="#2563EB"/>
|
|
33
|
+
|
|
34
|
+
<!-- Right Mind Map Child Nodes (Pill + Circle center) -->
|
|
35
|
+
<rect x="344" y="102" width="104" height="64" rx="32" fill="#38BDF8"/>
|
|
36
|
+
<rect x="366" y="126" width="60" height="16" rx="8" fill="#FFFFFF" fill-opacity="0.92"/>
|
|
37
|
+
|
|
38
|
+
<rect x="344" y="224" width="104" height="64" rx="32" fill="#34D399"/>
|
|
39
|
+
<rect x="366" y="248" width="60" height="16" rx="8" fill="#FFFFFF" fill-opacity="0.92"/>
|
|
40
|
+
|
|
41
|
+
<rect x="344" y="346" width="104" height="64" rx="32" fill="#FBBF24"/>
|
|
42
|
+
<rect x="366" y="370" width="60" height="16" rx="8" fill="#FFFFFF" fill-opacity="0.95"/>
|
|
65
43
|
</g>
|
|
66
|
-
</svg>
|
|
44
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-inkmap",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"description": "Inkmap 思维导图 — 在 DeepSeek Harness 中将本地 Markdown 实时渲染为可双向编辑的思维导图 (Markmap) 与 Mermaid 流程图 / Interactive two-way Markdown mind map & Mermaid flowchart editor for DeepSeek Harness.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as a}from"./chunk-OY52VR5R-
|
|
1
|
+
import{g as p,r as u,d as a}from"./chunk-OY52VR5R-t4HaTpoq.js";import{p as f}from"./chunk-JWPE2WC7-C_-XCwLF.js";import{_ as n,l as o}from"./mermaid.core-BgTM9MTz.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-BgLkKbSQ.js";import"./index-CJprLbZJ.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},B={parser:R,db:a,renderer:u,styles:p};export{B as diagram};
|