pi-cc-extensions 0.8.45 → 0.8.47

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 CHANGED
@@ -10,7 +10,7 @@
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
- Claude Code-style output, a fixed editor, context inspection, and Agent / Session references.
13
+ Claude Code-style output, context inspection, and Agent / Session references.
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -22,7 +22,7 @@
22
22
  ## Preview
23
23
 
24
24
  <table>
25
- <img width="2788" height="1846" alt="demo_new" src="https://github.com/user-attachments/assets/d4f9bb51-a49a-4a34-aa60-006514d37b09" />
25
+ <img width="100%" alt="demo_new" src="https://github.com/user-attachments/assets/d4f9bb51-a49a-4a34-aa60-006514d37b09" />
26
26
  </table>
27
27
 
28
28
  ## Quick start
@@ -34,7 +34,7 @@ pi install npm:pi-cc-extensions
34
34
  Run `/reload` after installation, then try:
35
35
 
36
36
  ```text
37
- /ccstyle # Configure output and fixed-editor interaction
37
+ /ccstyle # Configure output and rich diffs
38
38
  /context # Inspect context usage
39
39
  @ # Complete Agents, Sessions, and files
40
40
  ```
@@ -44,11 +44,11 @@ Run `/reload` after installation, then try:
44
44
 
45
45
  | Feature | Description | Entry point |
46
46
  | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------- |
47
- | Claude Code-style output | Tool summaries, expand/collapse, rich edit/write diffs, and`on` / `off` / `compact` modes | `/ccstyle` |
48
- | Fixed-editor interaction | Powered by`@tifan/pi-fixed-editor`, with runtime toggling, five-row wheel scrolling, tool clicks, and back-to-bottom control | `/ccstyle` |
47
+ | Claude Code-style output | Tool summaries, expand/collapse, rich edit/write diffs, and`on` / `off` modes | `/ccstyle` |
48
+ | Fullscreen mouse interaction | Tool card/group click-to-toggle, `[show more]` previews, and a back-to-bottom button | `/ccstyle` |
49
49
  | Context inspection | Usage breakdown and previews for the system prompt, tools, skills, and messages | `/context` |
50
50
  | Session references | Search and inject effective context from previous Sessions or existing SubAgents | `@session:` |
51
- | Theme | Bundled GitHub Dark Default and CC Dark themes | `/theme` |
51
+ | Theme | Bundled GitHub Dark Default, CC Dark, and CC Light themes | `/theme` |
52
52
 
53
53
  ### Output modes
54
54
 
@@ -57,12 +57,10 @@ Run `/reload` after installation, then try:
57
57
  | ----------- | ----------------------------------------------------------------------- |
58
58
  | `on` | Claude Code-style tool output with rich diffs for`edit` and `write` |
59
59
  | `off` | Native Pi renderers |
60
- | `compact` | One-line previews, merged repeated calls, duration, and run summaries |
61
60
 
62
61
  ```text
63
62
  /ccstyle on
64
63
  /ccstyle off
65
- /ccstyle compact
66
64
  /ccstyle status
67
65
  ```
68
66
 
@@ -71,14 +69,11 @@ Configuration is stored in `~/.pi/agent/claude-code-style.json`:
71
69
  ```json
72
70
  {
73
71
  "mode": "on",
74
- "excludeRenderers": [],
75
- "fixedEditorFeatures": true
72
+ "excludeRenderers": []
76
73
  }
77
74
  ```
78
75
 
79
76
  - `excludeRenderers` uses exact tool names. `Agent` always keeps its dedicated renderer.
80
- - `fixedEditorFeatures: true` enables `@tifan/pi-fixed-editor` plus mouse scrolling, clicks, viewport mapping, and the back-to-bottom indicator.
81
- - Set it to `false`, or toggle **Fixed editor** in `/ccstyle`, to restore Pi's native scrolling editor immediately. `Ctrl+End` remains available.
82
77
  - Run `/reload` after editing the file manually.
83
78
 
84
79
  ### `@` references
@@ -110,18 +105,10 @@ Run `/reload` after changing extensions.
110
105
 
111
106
  ## Compatibility
112
107
 
113
- - Node.js `>=22.19.0`
114
- - Pi `^0.84.0` (loaded through `pi.extensions` and `pi.themes` in the root `package.json`)
115
- - For Pi 0.80.x and earlier, use an older release of this package (peerDependencies are now `^0.84.0`)
116
- - If a Pi, TUI, or `@tifan/pi-fixed-editor` update causes display issues, try `/reload` first
117
-
118
- ### Fullscreen mode & sunset features
119
-
120
- - Official `--tui-mode fullscreen` (and runtime switching via `/settings`) is reused as-is: when `tui.mode === "fullscreen"`, the extension stands down and installs no rendering layer (tool styling, compact mode, tool grouping, and the fixed editor are all skipped), leaving fullscreen entirely to the official TUI. Data features (context, session references, autocomplete, etc.) are unaffected.
121
- - Capabilities that overlap with the official fullscreen TUI are sunset (frozen, kept working only): fixed-editor layout, independently scrollable transcript, etc. — no second implementation.
122
- - Known boundary: when switching from regular to fullscreen at runtime, per-TUI rendering patches are automatically abandoned with the old TUI instance, but component-level style patches remain active (they do not affect the official layout); for full isolation, start the session in fullscreen mode.
123
- - Pi 0.84+ wraps the TUI reference in a lazy Proxy (`createInteractiveTuiReference`): capturing `doRender`/`render`/`handleInput` through it resolves to the wrapper itself and recurses infinitely. The extension detects the lazy Proxy and skips line-level rendering patches; `@tifan/pi-fixed-editor`'s compositor is likewise disabled on 0.84+ (Fixed editor interactions are temporarily unavailable; rendering is handled by the official pipeline).
124
- - The `compact-thinking.json` config file is sunset (no longer read or maintained); compact-thinking settings are managed exclusively by `claude-code-style.json`.
108
+ - Node.js `>=22.19.0`, Pi `^0.84.0` (loaded through `pi.extensions` and `pi.themes` in the root `package.json`)
109
+ - Fixed-editor features have been smoothly migrated to the official pipeline: in TUI fullscreen mode, all `/ccstyle` mouse interactions work as usual.
110
+ - Need the removed fixed-editor layout or `compact` one-line summary mode? Use version `0.8.46` or earlier
111
+ - Removed: the fixed-editor layout and the `compact` one-line summary mode (a new compact mode is planned for a future release). Old configs with `"mode": "compact"` automatically fall back to `on`, and the `/ccstyle` panel only offers `on` / `off`.
125
112
 
126
113
  ## Recommended companions
127
114
 
@@ -139,8 +126,6 @@ Run `/reload` after changing extensions.
139
126
 
140
127
  ## Credits
141
128
 
142
- - Compact transcript behavior is based on [`avhagedorn/pi-compact-transcript`](https://github.com/avhagedorn/pi-compact-transcript) v0.6.2 (MIT).
143
- - Fixed-editor behavior is provided by [`@tifan/pi-fixed-editor`](https://github.com/tifandotme/pi-extensions/tree/master/packages/pi-fixed-editor) (MIT).
144
129
  - Rich diffs are adapted from [`MasuRii/pi-tool-display`](https://github.com/MasuRii/pi-tool-display) (MIT). See [`extensions/tool-diff/ATTRIBUTION.md`](./extensions/tool-diff/ATTRIBUTION.md).
145
130
  - Startup header based on [`EnderLiquid/pi-startup-header`](https://github.com/EnderLiquid/pi-startup-header) (MIT).
146
131
  - Command aliases based on [`xRyul/pi-aliases`](https://github.com/xRyul/pi-aliases) (MIT).
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  </p>
11
11
 
12
12
  <p align="center">
13
- 类 Claude Code TUI输出风格、固定编辑器、上下文检查,以及 Agent / Session 引用。
13
+ 类 Claude Code TUI 输出风格、上下文检查,以及 Agent / Session 引用。
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -22,7 +22,7 @@
22
22
  ## 界面预览
23
23
 
24
24
  <table>
25
- <img width="2788" height="1846" alt="demo_new" src="https://github.com/user-attachments/assets/d4f9bb51-a49a-4a34-aa60-006514d37b09" />
25
+ <img width="100%" alt="demo_new" src="https://github.com/user-attachments/assets/d4f9bb51-a49a-4a34-aa60-006514d37b09" />
26
26
  </table>
27
27
 
28
28
  ## 快速开始
@@ -39,13 +39,40 @@ pi install git:github.com/minuque/pi-cc-extensions
39
39
  ## 功能
40
40
 
41
41
 
42
- | 功能 | 说明 | 入口 |
43
- | ---------------------- | --------------------------------------------------------------------------------- | ------------- |
44
- | Claude Code 风格输出 | 工具摘要、折叠展开、rich edit/write diff,以及`on` / `off` / `compact` 三种模式 | `/ccstyle` |
45
- | Fixed editor 交互 | 基于`@tifan/pi-fixed-editor`,支持动态开关、每刻度 5 行滚动、工具点击与回到底部 | `/ccstyle` |
46
- | 上下文检查 | 查看上下文占用,并预览 System prompt、Tools、Skills 和消息内容 | `/context` |
47
- | Session 引用 | 搜索并注入历史 Session 或现有 SubAgent 的有效上下文 | `@session:` |
48
- | 主题 | 随包提供内置 GitHub Dark Default、CC Dark 主题 | `/theme` |
42
+ | 功能 | 说明 | 入口 |
43
+ | ---------------------- | --------------------------------------------------------------------- | ------------- |
44
+ | Claude Code 风格输出 | 工具摘要、折叠展开、rich edit/write diff,以及`on` / `off` 两种模式 | `/ccstyle` |
45
+ | Fullscreen 鼠标交互 | 工具卡/group 点击展开与收起、`[show more]` 预览、回到底部按钮 | `/ccstyle` |
46
+ | 上下文检查 | 查看上下文占用,并预览 System prompt、Tools、Skills 和消息内容 | `/context` |
47
+ | Session 引用 | 搜索并注入历史 Session 或现有 SubAgent 的有效上下文 | `@session:` |
48
+ | 主题 | 随包提供内置 GitHub Dark Default、CC Dark、CC Light 主题 | `/theme` |
49
+
50
+ ### 输出模式
51
+
52
+
53
+ | 模式 | 行为 |
54
+ | ------- | --------------------------------------------------------- |
55
+ | `on` | Claude Code 风格工具输出,`edit` / `write` 带 rich diff |
56
+ | `off` | Pi 原生渲染 |
57
+
58
+ ```text
59
+ /ccstyle on
60
+ /ccstyle off
61
+ /ccstyle status
62
+ /ccstyle panel # 交互式设置面板(模式、Diff、thinking 选项)
63
+ ```
64
+
65
+ 配置保存在 `~/.pi/agent/claude-code-style.json`:
66
+
67
+ ```json
68
+ {
69
+ "mode": "on",
70
+ "excludeRenderers": []
71
+ }
72
+ ```
73
+
74
+ - `excludeRenderers` 使用精确工具名;`Agent` 始终保留其专用渲染器。
75
+ - 手动修改配置后执行 `/reload`。
49
76
 
50
77
  ## 本地开发
51
78
 
@@ -59,18 +86,10 @@ pi -e .
59
86
 
60
87
  ## 兼容性
61
88
 
62
- - Node.js `>=22.19.0`
63
- - Pi `^0.84.0`(通过根目录 `package.json` 的 `pi.extensions` 和 `pi.themes` 加载)
64
- - 0.80.x 及更早版本请使用本包的旧版本(peerDependencies 已收紧为 `^0.84.0`)
65
- - `@tifan/pi-fixed-editor`、Pi 或 TUI 内部实现升级后若显示异常,先执行 `/reload`
66
-
67
- ### Fullscreen 模式与日落功能
68
-
69
- - 官方 `--tui-mode fullscreen`(及 `/settings` 运行时切换)复用官方布局:插件在 `tui.mode === "fullscreen"` 时自动让位,不安装任何渲染层(工具样式、紧凑模式、工具分组、固定编辑器均跳过),fullscreen 完全由官方 TUI 提供。数据类功能(context、session 引用、自动补全等)不受影响。
70
- - 与官方 fullscreen 重叠的能力已日落(冻结开发、仅维持可用):固定编辑器布局、独立滚动 transcript 等不再二次实现。
71
- - 已知边界:运行时从 regular 切换到 fullscreen 时,插件行级渲染 patch 随旧 TUI 实例自动失效,但组件级样式 patch 仍生效(不影响官方布局);如需完全隔离,建议以 fullscreen 模式启动会话。
72
- - Pi 0.84+ 的 TUI 引用是惰性 Proxy(`createInteractiveTuiReference`),通过它捕获 `doRender`/`render`/`handleInput` 会解析到包装自身形成无限递归。插件检测到惰性 Proxy 后跳过行级渲染 patch;`@tifan/pi-fixed-editor` 的 compositor 因同样原因在 0.84+ 下停用(Fixed editor 交互功能暂时不可用,渲染由官方管线接管)。
73
- - `compact-thinking.json` 配置文件已日落(不再读取、不再兼容),compact-thinking 的配置统一由 `claude-code-style.json` 管控。
89
+ - Node.js `>=22.19.0`,Pi `^0.84.0`(通过根目录 `package.json` 的 `pi.extensions` 和 `pi.themes` 加载)
90
+ - fixed-editor相关功能已平滑迁移至官方管线:TUI mode=fullscreen 模式下 `/ccstyle` 全部鼠标交互功能类照常可用。
91
+ - 需要已移除的 fixed-editor 布局或 `compact` 单行摘要模式?请使用 `0.8.46` 及更早版本
92
+ - 已移除:固定编辑器布局与 `compact` 单行摘要模式(后续会有新版本 compact mode 发布)。旧配置 `mode: "compact"` 自动回退 `on`,`/ccstyle` 面板仅有 `on` / `off`。
74
93
 
75
94
  ## 推荐搭配
76
95
 
@@ -88,8 +107,6 @@ pi -e .
88
107
 
89
108
  ## 致谢
90
109
 
91
- - Compact transcript 基于 [`avhagedorn/pi-compact-transcript`](https://github.com/avhagedorn/pi-compact-transcript) v0.6.2(MIT)。
92
- - Fixed editor 由 [`@tifan/pi-fixed-editor`](https://github.com/tifandotme/pi-extensions/tree/master/packages/pi-fixed-editor) 提供(MIT)。
93
110
  - Rich diff 改编自 [`MasuRii/pi-tool-display`](https://github.com/MasuRii/pi-tool-display)(MIT);详见 [`extensions/tool-diff/ATTRIBUTION.md`](./extensions/tool-diff/ATTRIBUTION.md)。
94
111
  - 启动头基于 [`EnderLiquid/pi-startup-header`](https://github.com/EnderLiquid/pi-startup-header)(MIT)。
95
112
  - 命令别名基于 [`xRyul/pi-aliases`](https://github.com/xRyul/pi-aliases)(MIT)。
Binary file