@khorsheed/dsh-inline-html-render 0.1.14 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 变更记录
2
2
 
3
+ ## 0.1.15(2026-09-30)
4
+
5
+ 无功能变更。加宽 `@deepseek-ai/dsh-*` peer 区间以覆盖宿主 0.2.0(0.2.0 的兼容闸会禁用 peer 区间不覆盖宿主版本的已装插件)。
6
+
3
7
  ## 0.1.14(2026-09-27)
4
8
 
5
9
  - **修复 rc.1 宿主上卡片不再渲染**:rc.1 的 `CodeToolbar` 对 shiki 不认得的 fence 语言一律显示宿主本地化的通用标签(「代码块」),`dsh-card` 信息串完全不进 DOM(无 `.infostring`、无前导文本、无 `language-*` 类)。检测新增内容签名兜底:完整 HTML 文档(doctype/`<html` 开头 + `</html>` 收尾)或含逐字严格 CSP meta 的块即判定为卡片;`.infostring` 与前导文本两臂原样保留(旧宿主与 0.1.5 线不变)。裸 HTML 片段在信息串不可见的宿主上不再识别为卡片(已知损失,上游 `data-lang` 提案见 docs/upstream-proposals)。
package/README.en.md CHANGED
@@ -6,7 +6,7 @@ English | [中文](README.md)
6
6
 
7
7
  Without it, an agent that wants you to *see* a result can only paste code for you to imagine, or write an HTML file you have to open in a preview. This plugin swaps the fenced block whose info string is `dsh-card` for a sandboxed iframe — mid-message — that runs the authored HTML: inline between paragraphs and genuinely interactive, not ASCII art or a prose description.
8
8
 
9
- <img src="https://raw.githubusercontent.com/Khorsheed/dsh-web-basic/main/docs/screenshots/inline-html-card-1.png" width="640" alt="a dsh-card block in the agent's reply rendered as a tabbed data-observation card, flowing with the surrounding text">
9
+ <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/inline-html-card-1.png" width="640" alt="a dsh-card block in the agent's reply rendered as a tabbed data-observation card, flowing with the surrounding text">
10
10
 
11
11
  ```dsh-card
12
12
  <div style="font:14px system-ui;padding:16px;background:#1e1e1e;border-radius:10px;color:#eee">
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # last confirmed-consistent state. Both languages carry equal authority; after
3
3
  # editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/inline-html-render/README.en.md
5
- packages/inline-html-render/README.en.md: 185f3ea500e662bbc6729419242b6db043b8df4f
6
- packages/inline-html-render/README.md: e6bd5a6852fe6fea2326559b4d2161365d551fa2
5
+ packages/inline-html-render/README.en.md: 17e993d9748623d0e654efaf7943d35c7e344c3c
6
+ packages/inline-html-render/README.md: 7dc3c908363ccbd6b9eeea16b2abeb2379ef89d2
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  没有它的时候,agent 想让你**看到**一个效果,只能贴段代码让你脑补,或者写个 HTML 文件等你去预览里打开。这个插件把 info string 为 `dsh-card` 的 fenced block 在消息流中间替换成一个沙箱 iframe,直接运行其中的 HTML——内联在段落之间、真正可交互,而不是 ASCII 图或一句描述。
8
8
 
9
- <img src="https://raw.githubusercontent.com/Khorsheed/dsh-web-basic/main/docs/screenshots/inline-html-card-1.png" width="640" alt="agent 回复中间的 dsh-card 代码块被渲染成一张带 tab 的数据观测卡片,与上下文文字自然衔接">
9
+ <img src="https://raw.githubusercontent.com/Khorsheed/dsh-basic/main/docs/screenshots/inline-html-card-1.png" width="640" alt="agent 回复中间的 dsh-card 代码块被渲染成一张带 tab 的数据观测卡片,与上下文文字自然衔接">
10
10
 
11
11
  ```dsh-card
12
12
  <div style="font:14px system-ui;padding:16px;background:#1e1e1e;border-radius:10px;color:#eee">
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "card",
11
11
  "sandbox"
12
12
  ],
13
- "version": "0.1.14",
13
+ "version": "0.1.15",
14
14
  "type": "module",
15
15
  "main": "lib/index.js",
16
16
  "types": "lib/types/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "license": "MIT",
48
48
  "peerDependencies": {
49
49
  "@deepseek-ai/cordis": "^4.0.1",
50
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6"
50
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6 || ^0.2.0-rc.1"
51
51
  },
52
52
  "files": [
53
53
  "lib",