prompt-skill-armory 0.9.8 → 0.10.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.en.md +3 -3
- package/README.md +3 -3
- package/cli.cjs +1 -1
- package/package.json +1 -1
- package/packages/client-ui-switchblade/lib/client.js +22 -3
- 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/index.ts +28 -2
- package/packages/client-ui-switchblade/src/client/store.ts +26 -1
- package/packages/switchblade/lib/index.js +7 -2
- package/packages/switchblade/lib/switchblade.js +2 -1
- package/packages/switchblade/package.json +1 -1
- package/packages/switchblade/src/index.ts +7 -1
- package/packages/switchblade/src/switchblade.ts +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.
|
|
21
|
+
✦ Armory v0.10.0
|
|
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.
|
|
128
|
+
> New version vX.Y.Z (current v0.10.0) [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.
|
|
21
|
+
✦ Armory v0.10.0
|
|
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.
|
|
131
|
+
> 有新版本 vX.Y.Z(当前 v0.10.0) [一键更新]
|
|
132
132
|
|
|
133
133
|
点击「一键更新」→ Host 端运行官方安装器原地重装 → 提示「更新完成,请重启客户端生效」。
|
|
134
134
|
|
package/cli.cjs
CHANGED
package/package.json
CHANGED
|
@@ -6,7 +6,6 @@ window.__ModuleLoader__.load({
|
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
let _deepseek_ai_dsh_client_runtime_client = require("@deepseek-ai/dsh-client-runtime/client");
|
|
10
9
|
//#region src/client/locales.ts
|
|
11
10
|
/**
|
|
12
11
|
* Switchblade management page dictionaries.
|
|
@@ -958,7 +957,7 @@ window.__ModuleLoader__.load({
|
|
|
958
957
|
});
|
|
959
958
|
}
|
|
960
959
|
/** Bump with every release; keep in sync with package.json version + CHANGELOG. */
|
|
961
|
-
const ARMORY_VERSION = "0.
|
|
960
|
+
const ARMORY_VERSION = "0.10.0";
|
|
962
961
|
/** Compact duration: 45.2s / 2m42s / 1h05m. */
|
|
963
962
|
function fmtDuration(ms) {
|
|
964
963
|
const s = ms / 1e3;
|
|
@@ -3207,6 +3206,26 @@ window.__ModuleLoader__.load({
|
|
|
3207
3206
|
}
|
|
3208
3207
|
//#endregion
|
|
3209
3208
|
//#region src/client/store.ts
|
|
3209
|
+
/** Local snapshot store engine (plain observable, sync flush). */
|
|
3210
|
+
function createSnapshotStore(init) {
|
|
3211
|
+
let current = init;
|
|
3212
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
3213
|
+
return {
|
|
3214
|
+
getSnapshot: () => current,
|
|
3215
|
+
subscribe(listener) {
|
|
3216
|
+
listeners.add(listener);
|
|
3217
|
+
return () => {
|
|
3218
|
+
listeners.delete(listener);
|
|
3219
|
+
};
|
|
3220
|
+
},
|
|
3221
|
+
set(next) {
|
|
3222
|
+
current = next;
|
|
3223
|
+
for (const l of [...listeners]) try {
|
|
3224
|
+
l();
|
|
3225
|
+
} catch {}
|
|
3226
|
+
}
|
|
3227
|
+
};
|
|
3228
|
+
}
|
|
3210
3229
|
/** Initial (idle) state. */
|
|
3211
3230
|
const IDLE = {
|
|
3212
3231
|
status: "idle",
|
|
@@ -3224,7 +3243,7 @@ window.__ModuleLoader__.load({
|
|
|
3224
3243
|
api;
|
|
3225
3244
|
sessionId;
|
|
3226
3245
|
/** Snapshot store backing the section's view state. */
|
|
3227
|
-
store =
|
|
3246
|
+
store = createSnapshotStore(IDLE);
|
|
3228
3247
|
constructor(api, sessionId) {
|
|
3229
3248
|
this.api = api;
|
|
3230
3249
|
this.sessionId = sessionId;
|