clearai-dsh 0.2.5 → 0.2.6

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
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project are recorded here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [0.2.6] — 2026-09-28
6
+
7
+ **插件列表里终于写了介绍。** 宿主从 `locale/<语言>.json` 的 `meta.title` / `meta.description` 与清单顶层的 `icon` 读一个插件的显示文字和图标;**三样都缺时回退到包名 + npm 的 description + 默认图**——而那正是我们一直显示的东西:标题 `clearai-dsh`(包名)、介绍 "ClearAI: The Epistemic Loop, native to DSH."(README 的 tagline)、一个通用图标。装上它的人在一个「插件市场」式的列表里看到的,是一句没有说清装上得到什么的英文。
8
+
9
+ 这一版把这三样补上,并给顺带发现的两处过时改了账:`docs/dsh-integration` 里「预设怎么进名册」还写着 `0.2.4` 之前的 root 目录机制(名册换代时它没跟上);README 的安装段也没提现在这条官方路径。
10
+
11
+ ### Added
12
+
13
+ - **`locale/en.json` + `locale/zh.json`**:标题 `ClearAI`,一句话介绍分中英两份(界面是中文时不读英文)。宿主按文件名认语言,`en.json` 是基准。
14
+ - **`brand/icon.svg`**:插件列表的图标。与 `logo.svg` 同一套几何,只把主笔颜色**写死**——主标那支是 `currentColor`,而列表里它是以 data URL 读进来的、没有可继承的 CSS 上下文,`currentColor` 会落到黑色,暗色卡片上只剩那颗点;品牌位图虽有两版,`icon` 却只能给一个文件。取中性环色 + emerald 点,明暗两套主题都读得出。
15
+ - **`engines.dsh: ">=0.1.7-alpha.1"`**:宿主下界写进清单,市场据此显示要求(此前只有描述里那句话)。
16
+ - **`screenshots.json`**:给市场卡片声明 5 张截图(四张英文面板 + 一张本体图工作区)。不声明时市场从 README 自动抽取,而我们的 README 里只有 logo 与星标图。
17
+
18
+ ### Changed
19
+
20
+ - **构建把 `locale/` 打进发行物**(装配表与 `package.json` 的 `files` / `exports` 同步):`exports` 不放行 `./locale/*.json`,宿主解析不到;不进 `files`,发出去的包里就没有。图标走已有的 `brand/` 整目录拷贝。
21
+ - **自检门加了「可被发现」这一关**:`verify-package` 判文件在不在、标题是不是包名、`exports` / `files` / `engines.dsh` 齐不齐;`verify-clean-install` 则**调宿主自己的 `readPluginMeta`** 对装好的那个包算一遍——「插件列表里会显示什么」从此是算出来的,不是我们复述的规则。这一关是先有的诊断:同一段宿主代码在我们补之前返回的正是 `{title: "clearai-dsh", description: "ClearAI: The Epistemic Loop, native to DSH."}`。
22
+ - **文档跟上现状**:`docs/dsh-integration` 的「预设怎么进名册」按**声明行**重写(`preset-clearai` 那一条,构建期由 `preset/agent.cordis.yml` 派生,宿主 ≥ `0.1.7-alpha.1`),并给「源 → 包」表补上 `locale/` 与 `brand/` 两行;README(中英)的安装段补上不开终端的那条路(设置 → 插件列表填包名)与市场收录后的那条。
23
+
5
24
  ## [0.2.5] — 2026-09-28
6
25
 
7
26
  **跟上了宿主的会话格式 v4(消息来源改成生产者自有)。** 宿主 `0.1.7-rc.2` 起,`source.kind` 就是**生产者自己的身份**:共享包装 `{ kind: 'plugin', plugin }` 已退役,原生接纳在落账那一步**当场拒绝**它,报 `format v4 message requires a producer-owned source kind`。内核一直用旧包装下发运行态卡与外脑事实(合并目录 / 运行档 / 候选技能 / 世界线回灌),于是**每一轮都在落账那一步整轮失败**——卡片与事实一条都进不去。而单测当时全绿:它们直接调 fold,不经过宿主的接纳。
package/README.md CHANGED
@@ -77,6 +77,8 @@ dsh plugin --profile web add clearai-dsh
77
77
 
78
78
  This installs the prebuilt package from the npm registry. Nothing is compiled on your machine, so there is no `allowBuilds` grant to approve — the plugin is ready the moment the command returns.
79
79
 
80
+ **No terminal needed:** open **Settings → Plugins** and enter the package name `clearai-dsh`; that is the host's own install path. Once the package is listed in the [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) catalog it also appears in **[dsh-market](https://github.com/dsh-market/dsh-market)**'s search, where it installs in one click — that market installs only what the catalog lists.
81
+
80
82
  **Also available — one-command installer:**
81
83
 
82
84
  ```bash
package/README.zh-CN.md CHANGED
@@ -77,6 +77,8 @@ dsh plugin --profile web add clearai-dsh
77
77
 
78
78
  从 npm registry 装预构建产物。本机不跑任何编译,因此不需要批准 `allowBuilds` 授权——命令返回时插件就已经可用。
79
79
 
80
+ **不想开终端**:打开**设置 → 插件列表**,填包名 `clearai-dsh` 即可,走的是宿主自己那条安装路径。等它进了 [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) 目录,也能在 **[dsh-market](https://github.com/dsh-market/dsh-market)** 里搜到并一键安装——那个市场只装目录里有的东西。
81
+
80
82
  **也提供——一条命令的安装器:**
81
83
 
82
84
  ```bash
package/brand/icon.svg ADDED
@@ -0,0 +1,17 @@
1
+ <!--
2
+ ClearAI 插件图标 —— 与 logo.svg 同一套几何,只把主笔的颜色**写死**。
3
+
4
+ 为什么单开一份而不是直接指 logo.svg:主笔是 currentColor,而在插件列表里它是以
5
+ `<img>`/data URL 读进来的,**没有可以继承的 CSS 上下文**——currentColor 落到默认的
6
+ 黑色,暗色卡片上就只剩那颗点。品牌位图又有明暗两版(logo-512 / logo-512-dark),
7
+ 而 `icon` 只能给一个文件。所以这里取一个明暗都读得出的中性色:环 #98A2B3 打底,
8
+ 点仍是产品里「采纳 / 落定」的 emerald。
9
+
10
+ 几何与 logo.svg 逐字相同(环心线 R=326、笔画 118、开口 90° 以 -35° 为中心;点 r=104),
11
+ 改主标时这一份也要跟着改。
12
+ -->
13
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024" fill="none">
14
+ <circle cx="512" cy="512" r="326" stroke="#98A2B3" stroke-width="118" pathLength="360"
15
+ stroke-dasharray="270 90" stroke-linecap="round" transform="rotate(10 512 512)"/>
16
+ <circle cx="792" cy="308" r="104" fill="#10B981"/>
17
+ </svg>
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "ClearAI",
4
+ "description": "An ontology-first agent preset: evidence-checked research that grows into a browsable domain ontology."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "ClearAI",
4
+ "description": "以本体为纲的智能体预设:经证据核验的研究长成可浏览的领域本体。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "clearai-dsh",
3
- "version": "0.2.5",
4
- "description": "ClearAI: The Epistemic Loop, native to DSH.",
3
+ "version": "0.2.6",
4
+ "description": "ClearAI: an ontology-first DSH agent preset — evidence-checked research that grows into a domain ontology.",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "Apache-2.0",
8
+ "icon": "./brand/icon.svg",
8
9
  "repository": {
9
10
  "type": "git",
10
11
  "url": "git+https://github.com/Clearailhc/clearai-dsh.git"
@@ -15,6 +16,7 @@
15
16
  "./client": "./lib/client.js",
16
17
  "./cordis.patch.yml": "./cordis.patch.yml",
17
18
  "./package.json": "./package.json",
19
+ "./locale/*.json": "./locale/*.json",
18
20
  "./invariant": "./lib/invariant.js",
19
21
  "./presets/*": "./presets/*"
20
22
  },
@@ -25,6 +27,7 @@
25
27
  "lib",
26
28
  "presets",
27
29
  "bin",
30
+ "locale",
28
31
  "cordis.patch.yml",
29
32
  "CHANGELOG.md",
30
33
  "README.md",
@@ -33,7 +36,8 @@
33
36
  "brand"
34
37
  ],
35
38
  "engines": {
36
- "node": ">=22"
39
+ "node": ">=22",
40
+ "dsh": ">=0.1.7-alpha.1"
37
41
  },
38
42
  "dependencies": {
39
43
  "zod": "^4.6.1"
@@ -62,6 +66,8 @@
62
66
  "plugin",
63
67
  "clearai",
64
68
  "agent-preset",
69
+ "ontology",
70
+ "epistemic-loop",
65
71
  "evidence",
66
72
  "worldline"
67
73
  ],