prompt-skill-armory 0.10.1 → 0.10.2
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.en.md +3 -3
- package/README.md +3 -3
- package/package.json +1 -1
- package/packages/client-ui-switchblade/lib/client.js +16 -8
- package/packages/client-ui-switchblade/lib/client.js.map +1 -1
- package/packages/client-ui-switchblade/package.json +1 -1
- package/packages/client-ui-switchblade/src/client/SwitchbladeSection.tsx +1 -1
- package/packages/client-ui-switchblade/src/client/background.ts +15 -10
- package/packages/client-ui-switchblade/src/client/index.ts +1 -1
- package/packages/client-ui-switchblade/src/client/store.ts +3 -3
- package/packages/switchblade/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|--|--|--|--|
|
|
13
13
|
| <img src="docs/preview/preview-6.png" width="220"/> | <img src="docs/preview/preview-7.png" width="220"/> | | |
|
|
14
14
|
|
|
15
|
-

|
|
16
16
|

|
|
17
17
|

|
|
18
18
|

|
|
19
19
|
|
|
20
20
|
```
|
|
21
|
-
✦ Armory v0.10.
|
|
21
|
+
✦ Armory v0.10.2
|
|
22
22
|
┌─────────┬─────────┬─────┬────────────┬──────┬──────┐
|
|
23
23
|
│ Prompts │ Skills │ MCP │ Wallpaper │ Chat │ Stats│
|
|
24
24
|
│ global │ merged │ hub │ wallpaper │ sync │ usage│
|
|
@@ -125,7 +125,7 @@ Achieved via profile composition (the installer mounts the panel into each profi
|
|
|
125
125
|
|
|
126
126
|
Every time the panel opens it queries npm for the latest `prompt-skill-armory` version; when a newer version exists a banner appears:
|
|
127
127
|
|
|
128
|
-
> New version vX.Y.Z (current v0.10.
|
|
128
|
+
> New version vX.Y.Z (current v0.10.2) [Update now]
|
|
129
129
|
|
|
130
130
|
Clicking "Update now" makes the Host re-run the official installer in place → "Update complete, please restart the client".
|
|
131
131
|
|
package/README.md
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|--|--|--|--|
|
|
13
13
|
| <img src="docs/preview/preview-6.png" width="220"/> | <img src="docs/preview/preview-7.png" width="220"/> | | |
|
|
14
14
|
|
|
15
|
-

|
|
16
16
|

|
|
17
17
|

|
|
18
18
|

|
|
19
19
|
|
|
20
20
|
```
|
|
21
|
-
✦ Armory v0.10.
|
|
21
|
+
✦ Armory v0.10.2
|
|
22
22
|
┌─────────┬─────────┬─────┬────────────┬──────┬──────┐
|
|
23
23
|
│ 提示词 │ 技能 │ MCP │ Wallpaper │ 对话 │ 统计 │
|
|
24
24
|
│ 全局注入 │ 合并管理 │ 连接 │ 壁纸·特效 │ 导入 │ 用量 │
|
|
@@ -128,7 +128,7 @@ pnpm dsh web
|
|
|
128
128
|
|
|
129
129
|
插件面板每次打开会自动查询 npm 上 `prompt-skill-armory` 的最新版本;发现新版本时顶部显示横幅:
|
|
130
130
|
|
|
131
|
-
> 有新版本 vX.Y.Z(当前 v0.10.
|
|
131
|
+
> 有新版本 vX.Y.Z(当前 v0.10.2) [一键更新]
|
|
132
132
|
|
|
133
133
|
点击「一键更新」→ Host 端运行官方安装器原地重装 → 提示「更新完成,请重启客户端生效」。
|
|
134
134
|
|
package/package.json
CHANGED
|
@@ -461,7 +461,10 @@ window.__ModuleLoader__.load({
|
|
|
461
461
|
applyHintStyle();
|
|
462
462
|
}
|
|
463
463
|
let hintObserver;
|
|
464
|
-
/** Inject (or clear) the per-surface style for the composer
|
|
464
|
+
/** Inject (or clear) the per-surface style for the composer hint + input card.
|
|
465
|
+
* DSH 2.0.9 removed the old `[data-decoration="hint"]` row; the composer card
|
|
466
|
+
* (`[data-composer-card]`) is the stable surface that carries the input
|
|
467
|
+
* placeholder and inline claim hints, so the style lands there. */
|
|
465
468
|
function applyHintStyle() {
|
|
466
469
|
try {
|
|
467
470
|
const hint = (bgState.value ?? DEFAULT_BACKGROUND).hint ?? DEFAULT_BACKGROUND.hint;
|
|
@@ -482,7 +485,15 @@ window.__ModuleLoader__.load({
|
|
|
482
485
|
const size = hint.size || 11;
|
|
483
486
|
const gradPreset = GRADIENTS.find((g) => g.id === (hint.gradient ?? ""));
|
|
484
487
|
const grad = gradPreset !== void 0 ? gradPreset.css : "";
|
|
485
|
-
|
|
488
|
+
const props = [
|
|
489
|
+
"font-size:" + size + "px",
|
|
490
|
+
"letter-spacing:0.3px",
|
|
491
|
+
"font-weight:600",
|
|
492
|
+
"opacity:0.95",
|
|
493
|
+
grad !== "" ? `background-image:${grad};-webkit-background-clip:text;background-clip:text;color:transparent` : `color:${color}`
|
|
494
|
+
].join(";");
|
|
495
|
+
tag.textContent = `[data-composer-card] input::placeholder,[data-composer-card] textarea::placeholder{${props}}
|
|
496
|
+
[data-composer-card] [class*="_hint"]{${props}}`;
|
|
486
497
|
const statsStyle = (root) => {
|
|
487
498
|
if (grad !== "") {
|
|
488
499
|
root.style.backgroundImage = grad;
|
|
@@ -499,10 +510,6 @@ window.__ModuleLoader__.load({
|
|
|
499
510
|
root.style.fontWeight = "600";
|
|
500
511
|
root.style.opacity = "0.95";
|
|
501
512
|
};
|
|
502
|
-
if (grad !== "") hintCss += `background-image:${grad};-webkit-background-clip:text;background-clip:text;color:transparent`;
|
|
503
|
-
else hintCss += `color:${color}`;
|
|
504
|
-
hintCss += "}";
|
|
505
|
-
tag.textContent = hintCss;
|
|
506
513
|
const applyStats = () => {
|
|
507
514
|
try {
|
|
508
515
|
const seps = Array.from(document.querySelectorAll("span[aria-hidden]"));
|
|
@@ -969,7 +976,7 @@ window.__ModuleLoader__.load({
|
|
|
969
976
|
});
|
|
970
977
|
}
|
|
971
978
|
/** Bump with every release; keep in sync with package.json version + CHANGELOG. */
|
|
972
|
-
const ARMORY_VERSION = "0.10.
|
|
979
|
+
const ARMORY_VERSION = "0.10.2";
|
|
973
980
|
/** Compact duration: 45.2s / 2m42s / 1h05m. */
|
|
974
981
|
function fmtDuration(ms) {
|
|
975
982
|
const s = ms / 1e3;
|
|
@@ -3286,7 +3293,7 @@ window.__ModuleLoader__.load({
|
|
|
3286
3293
|
try {
|
|
3287
3294
|
const sessionId = this.sessionId?.();
|
|
3288
3295
|
const calls = [Promise.resolve(this.describeSettings())];
|
|
3289
|
-
if (sessionId !== void 0) calls.push(this.remote.skills.list({
|
|
3296
|
+
if (sessionId !== void 0) calls.push(this.remote.skills.list({ sessionId }));
|
|
3290
3297
|
const [switchbladeSection, skillRes] = await Promise.all(calls);
|
|
3291
3298
|
const skills = skillRes !== void 0 && skillRes.ok && skillRes.value !== void 0 ? skillRes.value.skills.map((skill) => ({
|
|
3292
3299
|
name: skill.name,
|
|
@@ -3564,6 +3571,7 @@ window.__ModuleLoader__.load({
|
|
|
3564
3571
|
"locale",
|
|
3565
3572
|
"settingsScope",
|
|
3566
3573
|
"remote",
|
|
3574
|
+
"remote.skills",
|
|
3567
3575
|
"sessions"
|
|
3568
3576
|
];
|
|
3569
3577
|
/**
|