pi-scenes 0.4.1 → 0.5.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 CHANGED
@@ -21,7 +21,7 @@ active resources = common layer ∪ current scene
21
21
  - **Scene layers** — per-scenario bundles (coding / office / writing…), loaded only while active
22
22
  - Switching rewrites `packages`/`skills` in `settings.json`, then `ctx.reload()` hot-reloads — **no pi restart, session untouched**
23
23
  - Every switch stamps a persistent **status-bar badge** (`◆ coding`, or a per-scene `icon` like `💻 coding`) so the bar always answers *"which scene am I in"* — restored at session start, cleared by `/scene off`
24
- - **Zero-memory discoverability (v0.4.1)** — the command hint lists your scene names, and Tab completion shows every scene (icon + description + current marker) plus subcommands: type `/scene c` + Tab → `/scene coding`; `/scenes` works as a plural alias
24
+ - **Zero-memory discoverability (v0.4.1)** — the command hint lists your scene names, and Tab completion shows every scene (icon + description + current marker) plus subcommands: type `/scene c` + Tab → `/scene coding`
25
25
  - The data model reserves an `extends` chain (with cycle detection) for future **parent → child scene** hierarchies
26
26
 
27
27
  ## Install
@@ -52,7 +52,6 @@ Then `/reload` and `/scene` is live.
52
52
  /scene stats # usage dashboard: sessions, tool calls, reflections
53
53
  /scene evolve # generate & apply evolution proposals (confirm-first)
54
54
  /scene evolve auto # toggle auto-apply at session end (opt-in)
55
- /scenes ... # plural alias — same command, same completions
56
55
  ```
57
56
 
58
57
  First run of `/scene` offers to generate the template. It ships with **seven preset scenes + common** (all packages verified on npm, 2026-09):
@@ -225,7 +224,7 @@ pi 的 `packages` / `skills` 是全局平铺的:所有已安装扩展、所有
225
224
  - **场景层**:每个场景自己的一组 extension + skill,激活才加载
226
225
  - 切换 = 改写 `settings.json` 的 `packages`/`skills` → `ctx.reload()` 热重载,**无需重启 pi**
227
226
  - 每次切换成功后状态栏常驻**场景徽标**(`◆ coding`,或每场景自定义 `icon` 如 `💻 coding`),状态栏随时回答「我现在在哪个场景」——会话启动自动恢复,`/scene off` 清除
228
- - **零记忆可发现性(v0.4.1)**——命令提示行直接拼入场景名清单;Tab 补全列出全部场景(icon + 描述 + 当前标记)与子命令:`/scene c` + Tab → `/scene coding`;`/scenes` 复数别名同义可用
227
+ - **零记忆可发现性(v0.4.1)**——命令提示行直接拼入场景名清单;Tab 补全列出全部场景(icon + 描述 + 当前标记)与子命令:`/scene c` + Tab → `/scene coding`
229
228
  - 数据模型预留 `extends` 继承链(带环检测),为将来「主场景 → 子场景」层级铺路
230
229
 
231
230
  ## 安装
@@ -256,7 +255,6 @@ pi install git:github.com/Feng-H/pi-scenes
256
255
  /scene stats # 用量仪表盘:会话数 / 工具调用 / 反思评分
257
256
  /scene evolve # 生成并应用进化提案(逐条确认)
258
257
  /scene evolve auto # 开关:会话结束自动应用(opt-in)
259
- /scenes ... # 复数别名:与 /scene 完全同义,补全行为一致
260
258
  ```
261
259
 
262
260
  首次运行 `/scene` 会询问是否生成模板,生成后编辑场景定义。模板内置 **七个预设场景 + 通用层**(包均在 npm 核验存在,2026-09):
@@ -21,7 +21,6 @@
21
21
  * 命令:
22
22
  * /scene 弹出选择器(当前场景高亮 ●)
23
23
  * /scene <name> 切换到指定场景(参数 Tab 补全:/scene c<Tab> → /scene coding)
24
- * /scenes 同 /scene(复数别名,误输也能用;补全行为一致)
25
24
  * /scene off|none 仅保留通用层(关闭场景)
26
25
  * /scene status 显示当前激活与生效资源
27
26
  * /scene init 生成模板 scenes.json 与场景 skill 目录骨架
@@ -1147,9 +1146,7 @@ export default function (pi: ExtensionAPI) {
1147
1146
  },
1148
1147
  };
1149
1148
 
1150
- // 主命令 + 复数别名:/scenes 与 /scene 完全同义(用户肌肉记忆常多打一个 s)
1151
1149
  pi.registerCommand("scene", sceneCommand);
1152
- pi.registerCommand("scenes", sceneCommand);
1153
1150
 
1154
1151
  // ── v0.2:用量采集与自进化 ──────────────────────────────
1155
1152
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-scenes",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "pi 扩展:场景切换器 + 资源自进化。通用层+分场景层打包 extension/skill,/scene 热切换;按实际用量(工具调用归因 + 会话结束 LLM 反思)生成吸收/淘汰提案,让场景定义随使用习惯进化。",
5
5
  "keywords": [
6
6
  "pi-package"