pi-scenes 0.15.0 → 0.15.1

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
@@ -26,7 +26,7 @@ active resources = common layer ∪ current scene
26
26
  - Switching rewrites `packages`/`skills` in `settings.json`, then `ctx.reload()` hot-reloads — **no pi restart, session untouched**; prompt templates take a different path: injected via pi's `resources_discover` event with **zero settings writes**
27
27
  - **Scene-scoped MCP servers (v0.13)** — each scene can declare its own `mcpServers`. Switching injects the scene's MCP tools into settings, and cleanly unmounts them when switching away. User-configured MCP servers are protected via borrow semantics
28
28
  - **Claude Plugin interoperability (v0.13)** — `/scene import <dir>` imports any Claude Code / Cowork plugin (from `anthropics/knowledge-work-plugins` or local) as a native scene, transpiling `plugin.json`, `skills/`, `commands/` (to prompts), and `.mcp.json` automatically
29
- - Every switch stamps a persistent **status-bar badge** (`◆ code-matt-pocock`, or a per-scene `icon` like `💻 code-matt-pocock`) so the bar always answers *"which scene am I in"* — restored at session start, cleared by `/scene off`
29
+ - Every switch stamps a persistent **status-bar badge** (`◆ code-matt-pocock`, or a per-scene `icon` like `🍖 code-matt-pocock`) so the bar always answers *"which scene am I in"* — restored at session start, cleared by `/scene off`
30
30
  - **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 code-matt-pocock`
31
31
  - The data model reserves an `extends` chain (with cycle detection) for future **parent → child scene** hierarchies
32
32
 
@@ -100,7 +100,7 @@ Edit it to fit your setup (each scene also gets a skill dir scaffold at `~/.pi/a
100
100
  "scenes": { // ── scene layers: stacked when active
101
101
  "code-matt-pocock": {
102
102
  "description": "coding (Matt Pocock workflow)",
103
- "icon": "💻",
103
+ "icon": "🍖",
104
104
  "packages": ["npm:pi-carryover"],
105
105
  "skills": ["~/.pi/agent/scenes/code-matt-pocock/skills"]
106
106
  },
@@ -155,7 +155,7 @@ Skill exposure (the main point of scenes) is fully project-scoped via deltas. np
155
155
 
156
156
  A successful switch sets a persistent footer badge (`◆ code-matt-pocock`), restored automatically at every session start and cleared by `/scene off`. The status bar should answer *"which scene am I in"* — not display tool internals.
157
157
 
158
- The prefix is customizable per scene via the `icon` field — emoji works great (`💻 code-matt-pocock`, `👑 code-poteto`). The scaffolded presets ship with `💻 👑 📄 🎯 🔍 📝 📊`, and the picker plus `/scene status` display the same icon; unset scenes fall back to `◆`.
158
+ The prefix is customizable per scene via the `icon` field — emoji works great (`🍖 code-matt-pocock` for the grill workflow, `🥔 code-poteto` for the potato). The scaffolded presets ship with `🍖 🥔 📄 🎯 🔍 📝 📊`, and the picker plus `/scene status` display the same icon; unset scenes fall back to `◆`.
159
159
 
160
160
  Scenes often bundle tool-heavy extensions whose own footer output crowds the bar. If you use either coding preset (`code-matt-pocock` / `code-poteto`), pi-lens's diagnostics widget and `LSP Inactive` status can be silenced **without losing any AI-side value** (turn-end error injection, `lens_diagnostics`, symbol navigation) via `~/.pi-lens/config.json`:
161
161
 
@@ -210,7 +210,7 @@ In short: **installed forever, loaded per scene**. One caveat: extensions you in
210
210
 
211
211
  You don't always remember to switch scenes before diving in. pi-scenes can notice and hint — **non-blocking toast, once per session, never auto-switches**:
212
212
 
213
- - **History line** (session start): if this project last used a scene (recorded on every project-scoped switch, 30-day window), a toast suggests restoring it: `💻 上次此项目用的是「code-matt-pocock」场景 → /scene code-matt-pocock`
213
+ - **History line** (session start): if this project last used a scene (recorded on every project-scoped switch, 30-day window), a toast suggests restoring it: `🍖 上次此项目用的是「code-matt-pocock」场景 → /scene code-matt-pocock`
214
214
  - **Intent line** (first message): pure keyword heuristics (no LLM, zero cost). Each preset scene carries built-in strong (weight 2) / weak (weight 1) keyword lists; a scene can also declare `keywords` (weight 2). A hint fires only when the best scene scores ≥ 2 AND strictly beats the runner-up (ties stay silent); inputs starting with `/` are never matched
215
215
 
216
216
  Guardrails: one hint per session max (both lines share the budget); silent while any scene is active; after 3 consecutive ignored hints the project cools down until you actually switch (which resets the counter). `/scene suggest on|off` is the master switch (default on). Everything is a `ctx.ui.notify` toast — your typing flow is never interrupted.
@@ -279,8 +279,24 @@ cp ~/.pi/agent/settings.json.scenes-bak ~/.pi/agent/settings.json # restore if
279
279
 
280
280
  Before uninstalling, `/scene off` and prune entries you don't want to keep from `packages`/`skills`. `scenes.json` / `scenes-state.json` / the `scenes/` tree are inert leftovers — safe to keep or delete.
281
281
 
282
+ ## Acknowledgements
283
+
284
+ pi-scenes only curates and whitelists; the workflows below belong to their authors — thank you:
285
+
286
+ - **[Matt Pocock](https://github.com/mattpocock)** — [mattpocock/skills](https://github.com/mattpocock/skills) (MIT): the engineering workflow (grill→spec→tickets→implement→review→pr) + grilling at the heart of the `code-matt-pocock` scene. Also the source of the vendored `/pre-commit` template inspiration.
287
+ - **[Lauren Tan (poteto)](https://github.com/poteto)** — [pstack](https://github.com/cursor/plugins/tree/main/pstack) (MIT, distributed via the [backnotprop/pstack](https://github.com/backnotprop/pstack) standalone mirror): `poteto-mode` (22 playbooks) + 22 principles at the heart of the `code-poteto` scene.
288
+ - **[Anthropic](https://github.com/anthropics/skills)** — anthropics/skills (MIT): office document suite (docx/pptx/xlsx/pdf), internal-comms and doc-coauthoring for the `office` / `writing` scenes.
289
+ - **Vendored starter-skill authors** — [blader/humanizer](https://github.com/blader/humanizer), Hermes arXiv/OpenAlex ports and the other `assets/scene-skills/` starters (MIT; per-file attribution in each SKILL.md footer).
290
+
291
+ All upstream skills keep their own licenses and repositories; scene whitelists follow their upstreams automatically.
292
+
282
293
  ## Changelog
283
294
 
295
+ ### v0.15.1 (2026-11-28)
296
+
297
+ - **Scene icons** — `code-matt-pocock` 🍖 (grill → barbecue pun) and `code-poteto` 🥔 (potato pun); upstream crown icon replaced with something more approachable
298
+ - **Acknowledgements section** added (Matt Pocock, Lauren Tan/poteto, Anthropic, vendored starter-skill authors)
299
+
284
300
  ### v0.15.0 (2026-11-28)
285
301
 
286
302
  - **Coding ships as two scenes** — `coding` renamed to `code-matt-pocock` (Matt Pocock's grill→spec→tickets→implement→review→pr workflow, unchanged bundle), and a new **`code-poteto`** preset: pstack by Lauren Tan (poteto, React core team; MIT, via the `backnotprop/pstack` standalone mirror that officially supports pi). Whitelist groups skills by dependency: `poteto-mode` (22 playbooks: bug-fix/feature/refactoring/perf/shipping/overnight…) + all 22 `principle-*` (its hard dependencies) + the rigor core (tdd/how/why/architect/arena/swarm/interrogate/blast-radius/unslop/no-comments/correct/reflect/statechart/typescript-best-practices/figure-it-out/show-me-your-work/technical-writing). Excluded on purpose: setup-pstack (Cursor model picker), ketchup-video/make-bot-ui/bro (non-coding), automate-me & verification-skill authoring (meta; re-add per taste)
@@ -373,7 +389,7 @@ pi 的 `packages` / `skills` 是全局平铺的:所有已安装扩展、所有
373
389
  - **场景级 MCP 动态调度(v0.13)**——每个场景可声明专属 `mcpServers`。切换时动态挂载对应工具,切走时精确卸载;用户预配的 MCP 走借用保护不篡改
374
390
  - **Claude Plugin 原生协议互通(v0.13)**——`/scene import <dir>` 一键将 Claude Code / Cowork 插件(如 Anthropic 官方知识工作流插件或社区生态)转换为原生场景,自动转译 `plugin.json`、`skills/`、`commands/`(转为 prompt 模板)及 `.mcp.json`
375
391
  - 切换 = 改写 `settings.json` 的 `packages`/`skills` → `ctx.reload()` 热重载,**无需重启 pi**;prompt 模板走另一条路:经 pi 的 `resources_discover` 事件动态注入,**零 settings 写入**
376
- - 每次切换成功后状态栏常驻**场景徽标**(`◆ code-matt-pocock`,或每场景自定义 `icon` 如 `💻 code-matt-pocock`),状态栏随时回答「我现在在哪个场景」——会话启动自动恢复,`/scene off` 清除
392
+ - 每次切换成功后状态栏常驻**场景徽标**(`◆ code-matt-pocock`,或每场景自定义 `icon` 如 `🍖 code-matt-pocock`),状态栏随时回答「我现在在哪个场景」——会话启动自动恢复,`/scene off` 清除
377
393
  - **零记忆可发现性(v0.4.1)**——命令提示行直接拼入场景名清单;Tab 补全列出全部场景(icon + 描述 + 当前标记)与子命令:`/scene c` + Tab → `/scene code-matt-pocock`
378
394
  - 数据模型预留 `extends` 继承链(带环检测),为将来「主场景 → 子场景」层级铺路
379
395
 
@@ -441,7 +457,7 @@ v0.8 起每个预设场景还携带流程模板(code-matt-pocock→`/pre-commi
441
457
  "scenes": { // ── 场景层:激活才叠加
442
458
  "code-matt-pocock": {
443
459
  "description": "写代码",
444
- "icon": "💻",
460
+ "icon": "🍖",
445
461
  "packages": ["npm:pi-carryover"],
446
462
  "skills": ["~/.pi/agent/scenes/code-matt-pocock/skills"]
447
463
  },
@@ -482,7 +498,7 @@ v0.8 起每个预设场景还携带流程模板(code-matt-pocock→`/pre-commi
482
498
 
483
499
  切换成功后状态栏常驻徽标(项目场景 `◆ code-matt-pocock`,全局场景 `◇ code-matt-pocock ⌘`),每次会话启动自动恢复,`/scene off` 清除。状态栏应该回答「我现在在哪个场景、哪一层」——而不是展示工具的内部状态。
484
500
 
485
- 徽标前缀可按场景用 `icon` 字段定制——emoji 完全可用(`💻 code-matt-pocock`、`👑 code-poteto`)。脚手架预设自带 `💻 👑 📄 🎯 🔍 📝 📊`,选择器与 `/scene status` 同步显示同一 icon;未配置的场景回退 `◆`。
501
+ 徽标前缀可按场景用 `icon` 字段定制——emoji 完全可用(`🍖 code-matt-pocock` 对应 grill 烤架工程流、`🥔 code-poteto` 对应土豆)。脚手架预设自带 `🍖 🥔 📄 🎯 🔍 📝 📊`,选择器与 `/scene status` 同步显示同一 icon;未配置的场景回退 `◆`。
486
502
 
487
503
  场景常打包工具型扩展,它们自己的 footer 输出会把状态栏拼得很吵。若使用任一编码预设(`code-matt-pocock` / `code-poteto`),pi-lens 的诊断 widget 与 `LSP Inactive` 状态可在**不损失任何 AI 侧价值**(turn-end 错误注入、`lens_diagnostics`、符号导航)的前提下静音,写入 `~/.pi-lens/config.json`:
488
504
 
@@ -552,7 +568,7 @@ pi-scenes 绝不改第三方包的全局配置——徽标是它放到状态栏
552
568
 
553
569
  不是每次都会记得先切场景再干活。pi-scenes 可以察觉并提示 —— **非阻塞 toast、每会话至多一次、永不自动切换**:
554
570
 
555
- - **历史线**(会话启动):本项目上次用过某场景(每次项目级切换都会记录,30 天有效),启动时提示恢复:`💻 上次此项目用的是「code-matt-pocock」场景 → /scene code-matt-pocock`
571
+ - **历史线**(会话启动):本项目上次用过某场景(每次项目级切换都会记录,30 天有效),启动时提示恢复:`🍖 上次此项目用的是「code-matt-pocock」场景 → /scene code-matt-pocock`
556
572
  - **意图线**(首条消息):纯关键词启发式(无 LLM、零成本)。每个预置场景有内置词表(强词权重 2 / 弱词权重 1),场景还可用 `keywords` 字段自定义(权重 2)。best 得分 ≥ 2 且严格高于次名才出手(平手静默);以 `/` 开头的命令输入永不参与匹配
557
573
 
558
574
  防打扰:每会话最多提示一次(两线共享预算);任何场景已激活时静默;连续忽略 3 次项目级冷却,直到你真正切换场景才重置。`/scene suggest on|off` 总开关(缺省开)。全程只是 `ctx.ui.notify` 一行提示,不打断输入流。
@@ -620,8 +636,24 @@ cp ~/.pi/agent/settings.json.scenes-bak ~/.pi/agent/settings.json # 如需恢
620
636
 
621
637
  managed 注入的条目在卸载前建议先 `/scene off` + 手工清理 `packages`/`skills` 里不想保留的条目;`scenes.json` / `scenes-state.json` / `scenes/` 目录留着不影响 pi 运行。
622
638
 
639
+ ## 致谢
640
+
641
+ pi-scenes 只做策展与白名单裁剪;以下工作流属于各自的作者——感谢:
642
+
643
+ - **[Matt Pocock](https://github.com/mattpocock)** —— [mattpocock/skills](https://github.com/mattpocock/skills)(MIT):`code-matt-pocock` 场景核心的工程流(grill→spec→tickets→implement→review→pr)与 grilling 拷问流。
644
+ - **[Lauren Tan (poteto)](https://github.com/poteto)** —— [pstack](https://github.com/cursor/plugins/tree/main/pstack)(MIT,经 [backnotprop/pstack](https://github.com/backnotprop/pstack) standalone 镜像分发):`code-poteto` 场景核心的 poteto-mode(22 个 playbook)+ 22 条 principle 原则。
645
+ - **[Anthropic](https://github.com/anthropics/skills)** —— anthropics/skills(MIT):`office` / `writing` 场景引用的办公四件套(docx/pptx/xlsx/pdf)、internal-comms 与 doc-coauthoring。
646
+ - **预置技能原作者** —— [blader/humanizer](https://github.com/blader/humanizer)、Hermes arXiv/OpenAlex 移植等 `assets/scene-skills/` 内的预置技能(MIT;逐文件归属声明见各 SKILL.md 尾部)。
647
+
648
+ 所有上游技能保留各自的许可与仓库;场景白名单自动跟随上游更新。
649
+
623
650
  ## 版本历史
624
651
 
652
+ ### v0.15.1(2026-11-28)
653
+
654
+ - **场景 emoji 更换**——`code-matt-pocock` 🍖(grill 烤架→烤肉梗)、`code-poteto` 🥔(土豆梗;上游官方 crown 未采用,取亲民谐音)
655
+ - 新增**致谢章节**(Matt Pocock、Lauren Tan/poteto、Anthropic、预置技能原作者)
656
+
625
657
  ### v0.15.0(2026-11-28)
626
658
 
627
659
  - **编码拆为双场景**——`coding` 更名 `code-matt-pocock`(Matt Pocock 工程流 grill→spec→tickets→implement→review→pr,组合不变),新增 **`code-poteto`** 预设:Lauren Tan(poteto,React 核心团队)的 pstack(MIT,经官方支持 pi 的 standalone 镜像 `backnotprop/pstack`)。白名单按技能依赖成组:`poteto-mode`(22 个 playbook:bug 修复/特性/重构/性能/发布/过夜跑…)+ 全部 22 条 `principle-*`(其硬依赖)+ 严谨核心(tdd/how/why/architect/arena/swarm/interrogate/blast-radius/unslop/no-comments/correct/reflect/statechart/typescript-best-practices/figure-it-out/show-me-your-work/technical-writing)。有意排除:setup-pstack(Cursor 模型选择器)、ketchup-video/make-bot-ui/bro(非编码)、automate-me 与验证技能创作类(meta;按需自加)
@@ -86,7 +86,7 @@ export type PackageEntry = string | { source: string; [k: string]: unknown };
86
86
 
87
87
  export interface SceneDef {
88
88
  description?: string;
89
- /** 状态栏徽标与选择器里的场景前缀(建议 emoji,如 💻);缺省 ◆ */
89
+ /** 状态栏徽标与选择器里的场景前缀(建议 emoji,如 🍖);缺省 ◆ */
90
90
  icon?: string;
91
91
  /** 前向兼容:继承父场景(主场景→子场景层级),资源按链 union 合并 */
92
92
  extends?: string;
@@ -1265,7 +1265,7 @@ export function makeCore(baseDir: string, projectDir?: string) {
1265
1265
  scenes: {
1266
1266
  "code-matt-pocock": {
1267
1267
  description: "写代码:实时代码反馈(pi-lens)、子代理委派 + Matt Pocock 工程流(grill→spec→tickets→implement→review→pr)",
1268
- icon: "💻",
1268
+ icon: "🍖", // grill(烤架/拷问)→ 烤肉,呼应 Matt 招牌 grill 工程流
1269
1269
  packages: [
1270
1270
  "npm:pi-lens", // LSP/linter/格式化实时代码反馈
1271
1271
  "npm:pi-subagents", // 单代理委派 + 脚本化多代理工作流(与 implement-spec 并行派工协同)
@@ -1279,7 +1279,7 @@ export function makeCore(baseDir: string, projectDir?: string) {
1279
1279
  },
1280
1280
  "code-poteto": {
1281
1281
  description: "写代码:pstack 严谨工程流(poteto-mode 22 playbook 路由 + 22 条 principle 原则,Lauren Tan 出品)",
1282
- icon: "👑",
1282
+ icon: "🥔", // poteto = 土豆的梗(上游官方 icon 是 crown,取谐音更亲民)
1283
1283
  packages: [
1284
1284
  "npm:pi-lens", // LSP/linter/格式化实时代码反馈
1285
1285
  "npm:pi-subagents", // 子代理委派(swarm/arena/interrogate 的并行多代理落地)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-scenes",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "Scene switcher for pi: bundle extensions, skills, and prompt templates into a common layer + per-scene layers. /scene hot-switches with live reload (project-scoped, zero settings residue); scene-scoped workflow templates arrive via resources_discover with no config writes; scene definitions self-evolve from real usage (tool-call attribution + session-end LLM reflection).",
5
5
  "keywords": [
6
6
  "pi-package"