dsh-markdown-studio 0.0.0-stage → 0.1.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.
@@ -0,0 +1,58 @@
1
+ # Third-Party Notices
2
+
3
+ `dsh-markdown-studio` distributes self-contained Host and Client bundles (`dist/client.js`, `dist/client.studio.js`, `dist/index.js`, `dist/math.js`, and `dist/mermaid.js`) so end users can install the plugin with zero runtime npm dependency trees. React and `@deepseek-ai/dsh-client-ui-primitives` are provided by the DeepSeek Harness host at runtime and are **not** bundled.
4
+
5
+ > **Full license texts:** the bundles strip embedded legal comments, so the complete copyright notice and license text of **every** bundled package (81 packages at the time of writing) ships in [THIRD_PARTY_LICENSES.txt](./THIRD_PARTY_LICENSES.txt). That file is generated from esbuild's bundle metafile by `npm run licenses`, and CI fails (`npm run licenses:check`) if it drifts from the installed dependency tree or if any bundled package uses a license outside the allowlist (`MIT`, `ISC`, `BSD-2-Clause`, `BSD-3-Clause`, `Apache-2.0`, `MPL-2.0 OR Apache-2.0`).
6
+
7
+ ## Bundled runtime packages (summary)
8
+
9
+ | Package(s) | License | Role in `dsh-markdown-studio` |
10
+ | :--- | :--- | :--- |
11
+ | `@codemirror/*`, `@lezer/*`, `@marijn/find-cluster-break`, `style-mod`, `w3c-keyname`, `crelt` | MIT | Markdown and custom CSS editor engine (`dist/client.studio.js`) |
12
+ | `mp-darkmode` | MIT | Official WeChat Dark Mode color transformation algorithm (`dist/client.studio.js`) |
13
+ | `mathjax-full`, `mhchemparser` | Apache-2.0 | Lazy-loaded (`dist/math.js`) TeX-to-SVG formula renderer, including its SVG glyph path data |
14
+ | `mermaid`, `@mermaid-js/parser`, `dagre-d3-es`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `cose-base`, `layout-base`, `khroma`, `dayjs`, `es-toolkit`, `lodash-es`, `fastdom`, `marked`, `roughjs`, `stylis`, `ts-dedent`, `uuid`, `@braintree/sanitize-url`, `@iconify/utils`, `@upsetjs/venn.js` | MIT | Lazy-loaded (`dist/mermaid.js`) strict-sandbox diagram parsing, layout, and SVG rendering |
15
+ | `katex` | MIT | Math typesetting support inside Mermaid diagrams (`dist/mermaid.js`) |
16
+ | `d3`, `d3-*`, `internmap` | ISC (`d3-ease`, `d3-sankey`: BSD-3-Clause) | Graph geometry, scales, and Sankey layout utilities used by Mermaid (`dist/mermaid.js`) |
17
+ | `dompurify` | MPL-2.0 OR Apache-2.0 (used under Apache-2.0) | HTML and SVG sanitization inside Mermaid (`dist/mermaid.js`) |
18
+
19
+ `dist/client.js` (cold-boot shell) and `dist/index.js` (Host service) contain no third-party npm code.
20
+
21
+ ## Embedded source content
22
+
23
+ | Content | License | Where |
24
+ | :--- | :--- | :--- |
25
+ | [`op7418/Humanizer-zh`](https://github.com/op7418/Humanizer-zh) `SKILL.md` ruleset (verbatim), which itself builds on [`blader/humanizer`](https://github.com/blader/humanizer) | MIT | Built-in "去 AI 味" writing skill (`src/domain/humanizer-zh-skill.ts` → `dist/client.studio.js`) |
26
+
27
+ ```text
28
+ MIT License
29
+
30
+ Copyright (c) 2026 歸藏 (https://github.com/op7418/Humanizer-zh)
31
+ Copyright (c) 2025 Siqi Chen (https://github.com/blader/humanizer)
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in all
41
+ copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
+ SOFTWARE.
50
+ ```
51
+
52
+ ## Repository-only content (not shipped in the npm package)
53
+
54
+ | Content | License | Where |
55
+ | :--- | :--- | :--- |
56
+ | Adapted from Vercel's [`react-best-practices`](https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices) agent skill (`vercel-labs/agent-skills`) | MIT (© Vercel, Inc.) | `.agents/skills/vercel-react-best-practices/` (contributor AI-agent guidance) |
57
+
58
+ Development-only tooling (TypeScript, esbuild, Biome, Playwright, c8, Stryker, jsdom, and others listed under `devDependencies`) is not redistributed.
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36" fill="none" role="img" aria-label="Markdown Studio">
2
+ <rect x="11.5" y="7.5" width="16" height="19" rx="3.5" fill="url(#mdstudio-page)" fill-opacity="0.78"/>
3
+ <rect x="8.5" y="10" width="16.5" height="19" rx="3.5" fill="url(#mdstudio-card)"/>
4
+ <path d="M12.6 23.4V15.8l4.15 3.9 4.15-3.9v7.6" stroke="#FFFFFF" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <defs>
6
+ <linearGradient id="mdstudio-page" x1="19.5" y1="7.5" x2="19.5" y2="26.5" gradientUnits="userSpaceOnUse">
7
+ <stop stop-color="#45E7A4"/>
8
+ <stop offset="1" stop-color="#05909D"/>
9
+ </linearGradient>
10
+ <linearGradient id="mdstudio-card" x1="16.75" y1="10" x2="16.75" y2="29" gradientUnits="userSpaceOnUse">
11
+ <stop stop-color="#69B9FF"/>
12
+ <stop offset="1" stop-color="#324DE2"/>
13
+ </linearGradient>
14
+ </defs>
15
+ </svg>
@@ -0,0 +1,6 @@
1
+ # dsh-markdown-studio bundle for DeepSeek Harness.
2
+ # Install: dsh plugin --profile desktop add dsh-markdown-studio
3
+ - insert:
4
+ - id: dsh-markdown-studio
5
+ name: dsh-markdown-studio
6
+ config: {}
package/dist/client.js ADDED
@@ -0,0 +1,8 @@
1
+ window.__ModuleLoader__.load({ id: "dsh-markdown-studio", factory: (require) => {
2
+ var module = { exports: {} }; var exports = module.exports;
3
+ (function (module, exports, require) {
4
+ "use strict";var y=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var D=(e,n)=>{for(var t in n)y(e,t,{get:n[t],enumerable:!0})},I=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of z(n))!_.call(e,i)&&i!==t&&y(e,i,{get:()=>n[i],enumerable:!(r=M(n,i))||r.enumerable});return e};var K=e=>I(y({},"__esModule",{value:!0}),e);var B={};D(B,{create:()=>W});module.exports=K(B);function v(e,n,t){let[,r]=e.useState(0),[i,s]=e.useState(null);return e.useEffect(function(){if(n())return;let a=!1;return t().then(function(){a||r(function(u){return u+1})},function(u){a||s(u instanceof Error?u.message:String(u))}),function(){a=!0}},[i]),{error:i,retry:function(){s(null)}}}function w(e){let n=e.React.createElement,t=e.size||16;return n("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:e.active?1.3:1,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},n("rect",{x:2,y:2,width:12,height:12,rx:2.6}),n("path",{d:"M5 10.8V5.6l3 2.9 3-2.9v5.2"}))}var g="dsh-markdown-studio",S=`__dshPluginCss__:${g}`;function k(){let e=globalThis,n=e[S];if(n)return n;let t={mounted:!1,sheets:new Map};return e[S]=t,t}function E(){let e=k();e.mounted=!0,!(typeof document>"u"||!document.head)&&e.sheets.forEach((n,t)=>{let r=`style[data-plugin-css=${JSON.stringify(t)}]`;if(document.querySelector(r))return;let i=document.createElement("style");i.dataset.plugin=g,i.dataset.pluginCss=t,i.textContent=n,document.head.appendChild(i)})}function x(){let e=k();if(e.mounted=!1,typeof document>"u")return;document.querySelectorAll(`style[data-plugin=${JSON.stringify(g)}]`).forEach(t=>{typeof t.remove=="function"&&t.remove()})}var C="dsh-markdown-studio",b="dsh-markdown-studio.shell",j={"panel.label":"Markdown Studio"};function A(e){let n=[],t=new Set(["en","zh","zh-CN"]);try{e.getSnapshot().locales.forEach(r=>{t.add(r.id)})}catch{}return t.forEach(r=>{try{let i=e.register(b,r,j);typeof i=="function"&&n.push(i)}catch{}}),()=>{n.forEach(r=>{try{r()}catch{}})}}function P(e,n,t){let r=null,i={get:s=>n.get(s),effect:s=>{let a=s();typeof a=="function"&&t.push(a)},slots:{inject:(s,a)=>(s==="main"&&a(),()=>{}),register:(s,a)=>(s.name==="main"&&(r=a),()=>{})}};return e.apply(i),r}function W(e,n,t){let r=e.createElement,i=t||(()=>Promise.reject(new Error("studio chunk loader missing"))),s=null,a=[],u=null,f=null,p=null;function h(o){if(f=o,s){let c=P(o,s,a);c&&(u=c)}if(!u)throw new Error("Markdown Studio chunk did not register a main view");return u}function R(){return u?Promise.resolve(u):f&&s?Promise.resolve(h(f)):(p||(p=i().then(o=>(p=null,h(o)),o=>{throw p=null,o})),p)}function L(o){return w({React:e,size:o&&o.size?o.size:16,active:!!(o&&o.active)})}function T(o){let{error:c,retry:l}=v(e,()=>!!u,()=>R());return u?r(u,o):c?r("div",{role:"alert",style:{padding:"32px",color:"var(--dsw-alias-label-primary, #1f2329)",fontSize:"14px"}},r("p",{style:{margin:"0 0 12px",fontWeight:600}},"Markdown Studio failed to load"),r("button",{type:"button",onClick:l,style:{padding:"6px 14px",borderRadius:"8px",cursor:"pointer"}},"Retry")):r("div",{role:"status","aria-live":"polite",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",color:"var(--dsw-alias-label-secondary, #646a73)",fontSize:"13px"}},"Loading Markdown Studio\u2026")}function N(o){s=o;let c=o.get("locale"),l=null;o.effect(()=>{E();let m=[];if(a=m,c){m.push(A(c));try{l=c.bind(b)}catch{l=null}}if(f){let d=P(f,o,m);d&&(u=d)}return()=>{for(a=[],s=null,u=null;m.length>0;){let d=m.pop();if(d)try{d()}catch{}}x()}}),o.slots.inject("sidebar.panellist",()=>o.slots.register({name:"sidebar.panellist",id:C,order:40,label:()=>l?l("panel.label"):"Markdown Studio"},L)),o.slots.inject("main",()=>o.slots.register({name:"main",key:C},T))}return{inject:["slots"],apply:N}}
5
+ })(module, exports, require);
6
+ var primitives = null;
7
+ try { primitives = require('@deepseek-ai/dsh-client-ui-primitives'); } catch (_e) {}
8
+ return module.exports.create(require('react'), primitives, function () { return require.async('./client.studio.js'); }); } });