dsh-hypatia-auto-memory 2.1.1 → 2.2.0
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/README.md +4 -1
- package/README.zh-CN.md +2 -0
- package/icon.svg +17 -0
- package/lib/client.js +523 -519
- package/lib/client.js.map +1 -1
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +6 -2
- package/src/client/SettingsCard.module.css +106 -88
- package/src/client/SettingsCard.tsx +450 -442
- package/src/client/index.tsx +8 -4
- package/src/client/locales.ts +4 -2
package/README.md
CHANGED
|
@@ -396,7 +396,10 @@ plugin's Config schema onto the sidebar's **Plugins** page, and the card renders
|
|
|
396
396
|
on this bundle's own page there; a deployment whose profile renders no Plugins
|
|
397
397
|
page gets the same card as a tab under **Settings → Built-in plugins**. The card
|
|
398
398
|
takes whichever seat exists and moves between them without ever appearing twice
|
|
399
|
-
(`src/client/plugin-card-seat.ts`).
|
|
399
|
+
(`src/client/plugin-card-seat.ts`). On the bundle's own page it starts folded to
|
|
400
|
+
its header, because that page already names the plugin; as a Settings tab it
|
|
401
|
+
starts open. Folding keeps staged edits, but nothing is written before Save and
|
|
402
|
+
leaving the page drops them. Every field below applies on
|
|
400
403
|
save, without a profile reload. Stored as the plugin entry's `config:` in the
|
|
401
404
|
profile patch; a pre-0.1.7 `settings.yaml` section is imported once on first
|
|
402
405
|
launch. All fields optional, defaults shown. A blank consolidation route is
|
package/README.zh-CN.md
CHANGED
|
@@ -300,6 +300,8 @@ agent/created ──▶ rules/taboos inject()
|
|
|
300
300
|
侧边栏的**「插件」页**,卡片渲染在该 bundle 自己的页面上;如果某个部署的 profile
|
|
301
301
|
不渲染这个页面,同一张卡片会退到**「设置 → 内置插件」**里作为一个标签页。卡片落在
|
|
302
302
|
存在的那个位置上,并在两者之间迁移时绝不会同时出现(`src/client/plugin-card-seat.ts`)。
|
|
303
|
+
在 bundle 自己的页面上,卡片默认收起成一行标题——那一页已经写了插件名;退到「设置」
|
|
304
|
+
标签页时默认展开。收起不会丢掉暂存的编辑,但在点保存之前不写入任何东西,离开页面即丢弃。
|
|
303
305
|
下面每个字段保存即生效,无需重载 profile。配置以插件条目 `config:`
|
|
304
306
|
的形式存进 profile patch;0.1.7 之前的 `settings.yaml` 段落会在首次启动时被一次性导入。
|
|
305
307
|
所有字段可选,展示的是默认值。空白的巩固路由在保存时就被拒绝;重复的路由在运行时被丢弃
|
package/icon.svg
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M18 6.4L30.6 12.4H5.4Z" fill="url(#a)" />
|
|
3
|
+
<path d="M6.2 12.4H29.8V13.9Q29.8 14.8 28.9 14.8H7.1Q6.2 14.8 6.2 13.9V12.4Z" fill="url(#a)" />
|
|
4
|
+
<path d="M7.1 15.9Q7.1 14.8 8.2 14.8H8.8Q9.9 14.8 9.9 15.9V27.2H7.1V15.9ZM6.7 14.8H10.3V15.7H6.7ZM13.43 15.9Q13.43 14.8 14.53 14.8H15.13Q16.23 14.8 16.23 15.9V27.2H13.43V15.9ZM13.03 14.8H16.63V15.7H13.03ZM19.77 15.9Q19.77 14.8 20.87 14.8H21.47Q22.57 14.8 22.57 15.9V27.2H19.77V15.9ZM19.37 14.8H22.97V15.7H19.37ZM26.1 15.9Q26.1 14.8 27.2 14.8H27.8Q28.9 14.8 28.9 15.9V27.2H26.1V15.9ZM25.7 14.8H29.3V15.7H25.7Z" fill="url(#b)" />
|
|
5
|
+
<rect x="5.4" y="27.2" width="25.2" height="2.4" rx="1.1" fill="url(#a)" />
|
|
6
|
+
<path d="M6.4 12.55H29.6" stroke="#FFFFFF" stroke-width="0.95" stroke-linecap="round" />
|
|
7
|
+
<defs>
|
|
8
|
+
<linearGradient id="a" x1="18" y1="6" x2="18" y2="30" gradientUnits="userSpaceOnUse">
|
|
9
|
+
<stop stop-color="#7AC2FF" />
|
|
10
|
+
<stop offset="1" stop-color="#4A65E8" />
|
|
11
|
+
</linearGradient>
|
|
12
|
+
<linearGradient id="b" x1="18" y1="6" x2="18" y2="30" gradientUnits="userSpaceOnUse">
|
|
13
|
+
<stop stop-color="#7CB7FF" />
|
|
14
|
+
<stop offset="1" stop-color="#45D9E7" />
|
|
15
|
+
</linearGradient>
|
|
16
|
+
</defs>
|
|
17
|
+
</svg>
|