pi-cc-extensions 0.8.47 → 0.8.48

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.
Files changed (3) hide show
  1. package/README.en.md +20 -26
  2. package/README.md +14 -21
  3. package/package.json +1 -2
package/README.en.md CHANGED
@@ -42,40 +42,34 @@ Run `/reload` after installation, then try:
42
42
  ## Features
43
43
 
44
44
 
45
- | Feature | Description | Entry point |
46
- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------- |
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
- | Context inspection | Usage breakdown and previews for the system prompt, tools, skills, and messages | `/context` |
50
- | Session references | Search and inject effective context from previous Sessions or existing SubAgents | `@session:` |
51
- | Theme | Bundled GitHub Dark Default, CC Dark, and CC Light themes | `/theme` |
45
+ | Feature | Description | Entry point |
46
+ | ------------------------------ | ------------------------------------------------------------------------------------- | ------------- |
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
+ | Context inspection | Usage breakdown and previews for the system prompt, tools, skills, and messages | `/context` |
50
+ | Session references | Search and inject effective context from previous Sessions or existing SubAgents | `@session:` |
51
+ | Theme | Bundled CC Dark and CC Light themes | `/theme` |
52
52
 
53
- ### Output modes
53
+ ## Configuration
54
54
 
55
-
56
- | Mode | Behavior |
57
- | ----------- | ----------------------------------------------------------------------- |
58
- | `on` | Claude Code-style tool output with rich diffs for`edit` and `write` |
59
- | `off` | Native Pi renderers |
60
-
61
- ```text
62
- /ccstyle on
63
- /ccstyle off
64
- /ccstyle status
65
- ```
66
-
67
- Configuration is stored in `~/.pi/agent/claude-code-style.json`:
55
+ `/ccstyle` behavior is configured through `~/.pi/agent/claude-code-style.json`:
68
56
 
69
57
  ```json
70
58
  {
71
- "mode": "on",
72
- "excludeRenderers": []
59
+ "mode": "on", // on: Claude Code-style output; off: Pi native rendering
60
+ "excludeRenderers": [], // exact tool names that keep their native renderer; Agent always keeps its dedicated renderer
61
+ "diffViewMode": "auto", // diff layout: auto / split / unified
62
+ "diffIndicatorMode": "bars", // diff change indicators: bars / classic / none
63
+ "diffSplitMinWidth": 120, // min terminal width before auto layout uses side-by-side columns
64
+ "diffCollapsedLines": 24, // diff body lines shown when collapsed; beyond that shows the expand hint (Ctrl+O / click)
65
+ "diffWordWrap": true, // whether long diff lines wrap (otherwise truncated)
66
+ "expandedPreviewMaxLines": 40, // max body lines for expanded output/diff
67
+ "useSummaryTitlesAsThinkingTitle": true, // use the latest provider summary as the active thinking title
68
+ "previewLines": 3, // thinking preview lines; 0 hides the preview body
69
+ "animationIntervalMs": 90 // thinking title animation interval in ms
73
70
  }
74
71
  ```
75
72
 
76
- - `excludeRenderers` uses exact tool names. `Agent` always keeps its dedicated renderer.
77
- - Run `/reload` after editing the file manually.
78
-
79
73
  ### `@` references
80
74
 
81
75
  - Enter `@session:` to reference a previous Session.
package/README.md CHANGED
@@ -45,35 +45,28 @@ pi install git:github.com/minuque/pi-cc-extensions
45
45
  | Fullscreen 鼠标交互 | 工具卡/group 点击展开与收起、`[show more]` 预览、回到底部按钮 | `/ccstyle` |
46
46
  | 上下文检查 | 查看上下文占用,并预览 System prompt、Tools、Skills 和消息内容 | `/context` |
47
47
  | Session 引用 | 搜索并注入历史 Session 或现有 SubAgent 的有效上下文 | `@session:` |
48
- | 主题 | 随包提供内置 GitHub Dark Default、CC Dark、CC Light 主题 | `/theme` |
48
+ | 主题 | 随包提供内置 CC Dark、CC Light 主题 | `/theme` |
49
49
 
50
- ### 输出模式
50
+ ## 配置
51
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`:
52
+ `/ccstyle` 的行为由 `~/.pi/agent/claude-code-style.json` 配置:
66
53
 
67
54
  ```json
68
55
  {
69
- "mode": "on",
70
- "excludeRenderers": []
56
+ "mode": "on", // on:Claude Code 风格输出;off:Pi 原生渲染
57
+ "excludeRenderers": [], // 走原生渲染的工具名列表(精确匹配),Agent 始终保留专用渲染器
58
+ "diffViewMode": "auto", // diff 布局:auto / split / unified
59
+ "diffIndicatorMode": "bars", // diff 变更指示:bars / classic / none
60
+ "diffSplitMinWidth": 120, // 自动布局下使用左右分栏的最小终端宽度
61
+ "diffCollapsedLines": 24, // 折叠时展示的 diff 行数,超出显示展开提示(Ctrl+O / 点击)
62
+ "diffWordWrap": true, // 长 diff 行是否换行(否则截断)
63
+ "expandedPreviewMaxLines": 40, // 展开后输出/diff 正文的最大行数
64
+ "useSummaryTitlesAsThinkingTitle": true, // 用最新 provider 摘要作为思考标题
65
+ "previewLines": 3, // thinking 预览行数,0 隐藏预览正文
66
+ "animationIntervalMs": 90 // thinking 标题动画间隔(毫秒)
71
67
  }
72
68
  ```
73
69
 
74
- - `excludeRenderers` 使用精确工具名;`Agent` 始终保留其专用渲染器。
75
- - 手动修改配置后执行 `/reload`。
76
-
77
70
  ## 本地开发
78
71
 
79
72
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cc-extensions",
3
- "version": "0.8.47",
3
+ "version": "0.8.48",
4
4
  "license": "MIT",
5
5
  "description": "A Pi productivity suite with Claude Code-style UI, context inspection, and agent/session references",
6
6
  "type": "module",
@@ -30,7 +30,6 @@
30
30
  "./extensions/index.ts"
31
31
  ],
32
32
  "themes": [
33
- "./themes/github-dark-default.json",
34
33
  "./themes/cc-dark.json",
35
34
  "./themes/cc-light.json"
36
35
  ],