prompt-skill-armory 0.10.1 → 0.10.4
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 +21 -9
- 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 +23 -11
- 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.4
|
|
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.4) [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.4
|
|
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.4) [一键更新]
|
|
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,19 @@ 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 !== "" ? "display:inline-block;background-image:" + grad + ";-webkit-background-clip:text;background-clip:text;color:transparent" : `color:${color}`
|
|
494
|
+
].join(";");
|
|
495
|
+
tag.textContent = `[data-composer-placeholder]{${props}}
|
|
496
|
+
[data-composer-card] input::placeholder,[data-composer-card] textarea::placeholder{${props}}
|
|
497
|
+
[data-composer-card] [class*="_hint"]{${props}}
|
|
498
|
+
[data-composer-stats]{${props}}
|
|
499
|
+
[data-composer-stats] [class*="_label"]{${props}}
|
|
500
|
+
[data-composer-stats] [class*="_pill"]{${props}}`;
|
|
486
501
|
const statsStyle = (root) => {
|
|
487
502
|
if (grad !== "") {
|
|
488
503
|
root.style.backgroundImage = grad;
|
|
@@ -499,15 +514,11 @@ window.__ModuleLoader__.load({
|
|
|
499
514
|
root.style.fontWeight = "600";
|
|
500
515
|
root.style.opacity = "0.95";
|
|
501
516
|
};
|
|
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
517
|
const applyStats = () => {
|
|
507
518
|
try {
|
|
508
519
|
const seps = Array.from(document.querySelectorAll("span[aria-hidden]"));
|
|
509
520
|
for (const sep of seps) {
|
|
510
|
-
if (sep.textContent !== "|") continue;
|
|
521
|
+
if (sep.textContent !== "·" && sep.textContent !== "|") continue;
|
|
511
522
|
const root = sep.parentElement;
|
|
512
523
|
if (root !== null) statsStyle(root);
|
|
513
524
|
}
|
|
@@ -969,7 +980,7 @@ window.__ModuleLoader__.load({
|
|
|
969
980
|
});
|
|
970
981
|
}
|
|
971
982
|
/** Bump with every release; keep in sync with package.json version + CHANGELOG. */
|
|
972
|
-
const ARMORY_VERSION = "0.10.
|
|
983
|
+
const ARMORY_VERSION = "0.10.4";
|
|
973
984
|
/** Compact duration: 45.2s / 2m42s / 1h05m. */
|
|
974
985
|
function fmtDuration(ms) {
|
|
975
986
|
const s = ms / 1e3;
|
|
@@ -3286,7 +3297,7 @@ window.__ModuleLoader__.load({
|
|
|
3286
3297
|
try {
|
|
3287
3298
|
const sessionId = this.sessionId?.();
|
|
3288
3299
|
const calls = [Promise.resolve(this.describeSettings())];
|
|
3289
|
-
if (sessionId !== void 0) calls.push(this.remote.skills.list({
|
|
3300
|
+
if (sessionId !== void 0) calls.push(this.remote.skills.list({ sessionId }));
|
|
3290
3301
|
const [switchbladeSection, skillRes] = await Promise.all(calls);
|
|
3291
3302
|
const skills = skillRes !== void 0 && skillRes.ok && skillRes.value !== void 0 ? skillRes.value.skills.map((skill) => ({
|
|
3292
3303
|
name: skill.name,
|
|
@@ -3564,6 +3575,7 @@ window.__ModuleLoader__.load({
|
|
|
3564
3575
|
"locale",
|
|
3565
3576
|
"settingsScope",
|
|
3566
3577
|
"remote",
|
|
3578
|
+
"remote.skills",
|
|
3567
3579
|
"sessions"
|
|
3568
3580
|
];
|
|
3569
3581
|
/**
|