dsh-inkmap 0.3.11 → 0.3.14
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 +3 -2
- package/icon.svg +39 -61
- package/package.json +1 -1
- package/web/assets/{abnfDiagram-S7VZAUFO-BG5MYX3Z.js → abnfDiagram-S7VZAUFO-ieC--hqa.js} +1 -1
- package/web/assets/{architectureDiagram-YGSQEFNW-xhOdCZHT.js → architectureDiagram-YGSQEFNW-DvIvFnWx.js} +1 -1
- package/web/assets/{blockDiagram-APKKGZFW-om09jcTu.js → blockDiagram-APKKGZFW-CjfxHdLW.js} +1 -1
- package/web/assets/{c4Diagram-KJ2TOQU5-bf-oCj-6.js → c4Diagram-KJ2TOQU5-CoOAFRQj.js} +1 -1
- package/web/assets/{chunk-2Q5K7J3B-Cd6Zuyl0.js → chunk-2Q5K7J3B-BV9sBJ5L.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-D_9yIgMi.js → chunk-5VM5RSS4-BLk_XgqM.js} +1 -1
- package/web/assets/{chunk-HFQBQIA3-BSpJ_KUx.js → chunk-HFQBQIA3-Cy8piMnq.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-Bd1mTs5z.js → chunk-JWPE2WC7-CHPfftaS.js} +1 -1
- package/web/assets/{chunk-KQLB2F66-BjvuoG6k.js → chunk-KQLB2F66-CoM-WvHu.js} +1 -1
- package/web/assets/{chunk-KS47KZWR-DQnmQr8q.js → chunk-KS47KZWR-Cq1k8YKI.js} +1 -1
- package/web/assets/{chunk-OY52VR5R-CavAtvvE.js → chunk-OY52VR5R-DbNJ_Rwy.js} +1 -1
- package/web/assets/{chunk-TU62E6Q5-DGB27D5M.js → chunk-TU62E6Q5-BFn-FCxy.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-DiUpl_oE.js → chunk-XXDRQBXY-riDwAc0M.js} +1 -1
- package/web/assets/{classDiagram-v2-L25IHNXF-ByAHR9p1.js → classDiagram-v2-L25IHNXF-Fiwuqznk.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-T2AuyNNM.js → cose-bilkent-JH36ORCC-DeAqv5WX.js} +1 -1
- package/web/assets/{cynefin-EF2NZ3EQ-CWvVLSHN.js → cynefin-EF2NZ3EQ-BkNg42KS.js} +1 -1
- package/web/assets/{cynefinDiagram-L36ESFBY-EyBF2aYr.js → cynefinDiagram-L36ESFBY-DjNjp0dF.js} +1 -1
- package/web/assets/{dagre-SPEB5RXH-DzCJs6d8.js → dagre-SPEB5RXH-D2-QZ0gW.js} +1 -1
- package/web/assets/{diagram-3B7GL73J-BpqB4EyM.js → diagram-3B7GL73J-DEUqHGKw.js} +1 -1
- package/web/assets/{diagram-DNEMPZML-ByMvtGvg.js → diagram-DNEMPZML-nLnTdcps.js} +1 -1
- package/web/assets/{diagram-L3MUGCDN-BZlcEYsl.js → diagram-L3MUGCDN-hy6OMGDd.js} +1 -1
- package/web/assets/{diagram-LA4NIPWU-3kIxJzbY.js → diagram-LA4NIPWU-eSqsppXn.js} +1 -1
- package/web/assets/{diagram-MHCOC4E2-BrWZm3sI.js → diagram-MHCOC4E2-m_Pn-MgN.js} +1 -1
- package/web/assets/{diagram-XPFHEONP-BjI1Mh1e.js → diagram-XPFHEONP-CrB459es.js} +1 -1
- package/web/assets/{ebnfDiagram-UZSYDL2S-BQb2XwWh.js → ebnfDiagram-UZSYDL2S-CH5RrQtf.js} +1 -1
- package/web/assets/{elk-XV6XMXQE-okjyR_tN.js → elk-XV6XMXQE-DsuzM-VX.js} +1 -1
- package/web/assets/{erDiagram-EYBAPDEH-D_A5Ddgs.js → erDiagram-EYBAPDEH-Bj6m7f0V.js} +1 -1
- package/web/assets/{flowDiagram-MALGAFMO-tTRMeUpP.js → flowDiagram-MALGAFMO-VzOAtDrd.js} +1 -1
- package/web/assets/{ganttDiagram-23REXITY-Dko0e4pt.js → ganttDiagram-23REXITY-C8KSG_Dl.js} +1 -1
- package/web/assets/{gitGraphDiagram-STJD7YCW-CLpH2Llw.js → gitGraphDiagram-STJD7YCW-Ci47AaUH.js} +1 -1
- package/web/assets/{index-BjS7o_Gs.js → index-CHHdeSs8.js} +33 -33
- package/web/assets/{infoDiagram-KBXO4MBG-Cf_YXaCy.js → infoDiagram-KBXO4MBG-CbJEQsH-.js} +1 -1
- package/web/assets/{ishikawaDiagram-M35NCXHK-BNUjJR-I.js → ishikawaDiagram-M35NCXHK-DCfvCsyM.js} +1 -1
- package/web/assets/{journeyDiagram-OPLOXDXO-DW9CX1jJ.js → journeyDiagram-OPLOXDXO-BeTYs875.js} +1 -1
- package/web/assets/{kanban-definition-BZKZHSQY-D5kMETGg.js → kanban-definition-BZKZHSQY-BZJL4uH3.js} +1 -1
- package/web/assets/{mermaid.core-DrKMwEZo.js → mermaid.core-BKxp_W0R.js} +3 -3
- package/web/assets/{mindmap-definition-I2QAS2VK-CGTN7dUC.js → mindmap-definition-I2QAS2VK-CywUbgit.js} +1 -1
- package/web/assets/{pegDiagram-FD4XPPHP-B8pSeDvB.js → pegDiagram-FD4XPPHP-DgXeiIWV.js} +1 -1
- package/web/assets/{pieDiagram-J4AKIIQI-unMZGSAm.js → pieDiagram-J4AKIIQI-OcfvSKoF.js} +1 -1
- package/web/assets/{quadrantDiagram-XTYBLID2-CNr8tGSd.js → quadrantDiagram-XTYBLID2-B-OJD0oL.js} +1 -1
- package/web/assets/{railroadDiagram-MRQ6NCDL-DNTLRvF6.js → railroadDiagram-MRQ6NCDL-ChuL1i9V.js} +1 -1
- package/web/assets/{requirementDiagram-Y7LWUY3S-8OWE5U2v.js → requirementDiagram-Y7LWUY3S-D4nlEXOY.js} +1 -1
- package/web/assets/{sankeyDiagram-WGJFYUXA-BuRgD8JC.js → sankeyDiagram-WGJFYUXA-Q6gzguHa.js} +1 -1
- package/web/assets/{sequenceDiagram-5NDRBG5M-Dk98EWvB.js → sequenceDiagram-5NDRBG5M-JcvJHJID.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-CgCDFhLh.js → sizeCapture-INFHLROL-ChilhHnI.js} +1 -1
- package/web/assets/{stateDiagram-v2-FJ4FJNEA-oPZjdCYL.js → stateDiagram-v2-FJ4FJNEA-C5bEsVFn.js} +1 -1
- package/web/assets/{swimlanes-UMQ2AFYF-n24AiDnm.js → swimlanes-UMQ2AFYF-DcK76FyB.js} +1 -1
- package/web/assets/swimlanesDiagram-OMPLPG4O-B7VoSxvW.js +8 -0
- package/web/assets/{timeline-definition-SEUHKTQE-CbD3aP4-.js → timeline-definition-SEUHKTQE-CKuf1fcm.js} +1 -1
- package/web/assets/{usecaseDiagram-AFA6YXN4-bJHinCId.js → usecaseDiagram-AFA6YXN4-BUM7YuI-.js} +1 -1
- package/web/assets/{vennDiagram-NNMJR3RB-BO0UGuRE.js → vennDiagram-NNMJR3RB-DNHmRezN.js} +1 -1
- package/web/assets/{wardleyDiagram-S7YFUSEH-C92NnP4P.js → wardleyDiagram-S7YFUSEH-ZU8qn3R4.js} +1 -1
- package/web/assets/{xychartDiagram-GGNKY7IX-Dmsz0oIz.js → xychartDiagram-GGNKY7IX-Cbjal4bm.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/swimlanesDiagram-OMPLPG4O-B1c0Wqw8.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.14";
|
|
63
63
|
|
|
64
64
|
// packages/cli/dist/license.js
|
|
65
65
|
var ZH_LOCALE_RE = /^zh(?:[-_.]|$)/i;
|
|
@@ -917,7 +917,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
|
|
|
917
917
|
return;
|
|
918
918
|
if (hostHint)
|
|
919
919
|
detectedHost = hostHint;
|
|
920
|
-
if (!sentAppOpen) {
|
|
920
|
+
if (!sentAppOpen && !PASSIVE_TELEMETRY_EVENTS.has(event)) {
|
|
921
921
|
sentAppOpen = true;
|
|
922
922
|
pendingEvents.set("app_open", (pendingEvents.get("app_open") ?? 0) + 1);
|
|
923
923
|
}
|
|
@@ -950,6 +950,7 @@ function licenseService(storage, getOrigin, { loginOnly = false, host: defaultHo
|
|
|
950
950
|
}
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
|
+
var PASSIVE_TELEMETRY_EVENTS = /* @__PURE__ */ new Set(["plugin_activate", "plugin_install", "onboarding_view"]);
|
|
953
954
|
function inferNodeHost() {
|
|
954
955
|
if (process.env.INKMAP_HOST)
|
|
955
956
|
return process.env.INKMAP_HOST;
|
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.14",
|
|
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-DbNJ_Rwy.js";import{p as f}from"./chunk-JWPE2WC7-CHPfftaS.js";import{_ as n,l as o}from"./mermaid.core-BKxp_W0R.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-BkNg42KS.js";import"./index-CHHdeSs8.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};
|