pi-cc-extensions 0.8.67 → 0.8.69
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 +6 -4
- package/README.md +6 -4
- package/extensions/config/config.ts +30 -38
- package/extensions/config/panel.ts +62 -13
- package/extensions/feature/agent-summary/core.ts +5 -26
- package/extensions/feature/agent-summary/index.ts +2 -2
- package/extensions/feature/compact-thinking.ts +0 -3
- package/extensions/feature/context.ts +1 -0
- package/extensions/feature/reference/index.ts +7 -53
- package/extensions/feature/reference/session.ts +2 -14
- package/extensions/feature/shell/flush-docked-bash.ts +36 -0
- package/extensions/feature/shell/startup-header.ts +1 -6
- package/extensions/index.ts +2 -0
- package/extensions/renderer/compact-mode.ts +8 -23
- package/extensions/renderer/default-mode.ts +26 -64
- package/extensions/renderer/index.ts +0 -13
- package/extensions/renderer/mouse/hover.ts +0 -5
- package/extensions/renderer/mouse/interaction.ts +57 -27
- package/extensions/renderer/mouse/packets.ts +1 -0
- package/extensions/renderer/mouse/scroll.ts +7 -14
- package/extensions/renderer/tool/diff/diff-limits.ts +2 -10
- package/extensions/renderer/tool/diff/diff-parse.ts +2 -9
- package/extensions/renderer/tool/names.ts +1 -1
- package/extensions/renderer/tool/result.ts +45 -31
- package/extensions/utils/patch-keys.ts +5 -10
- package/extensions/utils/sgr-mouse.ts +6 -0
- package/package.json +3 -3
|
@@ -18,13 +18,10 @@ export const COMPACT_THINKING_PATCH_KEY = Symbol.for("pi.ccstyle.compact-thinkin
|
|
|
18
18
|
export const PROTOTYPE_ORIGINAL_KEY = Symbol.for("pi.ccstyle.prototype-original");
|
|
19
19
|
export const COMPACT_THINKING_OWNER = Symbol.for("pi.ccstyle.compact-thinking-owner");
|
|
20
20
|
|
|
21
|
-
// ── assistant
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const ASSISTANT_SET_EXPANDED_KEY = Symbol.for(ASSISTANT_SET_EXPANDED_DESCRIPTION);
|
|
26
|
-
export const ASSISTANT_TOGGLE_ROUND_KEY = Symbol.for(ASSISTANT_TOGGLE_ROUND_DESCRIPTION);
|
|
27
|
-
export const ASSISTANT_REENTRY_KEY = Symbol.for(ASSISTANT_REENTRY_DESCRIPTION);
|
|
21
|
+
// ── assistant 展开状态(实例标记) ──
|
|
22
|
+
export const ASSISTANT_SET_EXPANDED_KEY = Symbol.for("pi.ccstyle.compact-assistant-set-expanded");
|
|
23
|
+
export const ASSISTANT_TOGGLE_ROUND_KEY = Symbol.for("pi.ccstyle.compact-assistant-toggle-round");
|
|
24
|
+
export const ASSISTANT_REENTRY_KEY = Symbol.for("pi.ccstyle.compact-assistant-reentry");
|
|
28
25
|
|
|
29
26
|
// ── 工具渲染补丁 ──
|
|
30
27
|
export const GLOBAL_TOOL_RENDER_PATCH = Symbol.for("pi.ccstyle.global-tool-render-patch");
|
|
@@ -36,9 +33,6 @@ export const TOOL_EXPANDED_BACKGROUND_PATCH = Symbol.for(
|
|
|
36
33
|
// ── 消息组件补丁 ──
|
|
37
34
|
export const MESSAGE_DISPLAY_PATCH = Symbol.for("pi.ccstyle.message-display-patch");
|
|
38
35
|
|
|
39
|
-
// ── 压缩渲染补丁(/reload 残留 deactivate 用) ──
|
|
40
|
-
export const GLOBAL_COMPACTION_RENDER_PATCH = Symbol.for("pi.ccstyle.compaction-render-patch");
|
|
41
|
-
|
|
42
36
|
// ── 工具分组 ──
|
|
43
37
|
export const TOOL_GROUPING_PATCH_KEY = Symbol.for("pi.ccstyle.tool-grouping-patch");
|
|
44
38
|
export const TOOL_GROUPING_PARENT_KEY = Symbol.for("pi.ccstyle.tool-grouping-parent");
|
|
@@ -48,6 +42,7 @@ export const TOOL_GROUPING_GENERATION_KEY = Symbol.for("pi.ccstyle.tool-grouping
|
|
|
48
42
|
export const TOOL_MOUSE_OWNER_KEY = Symbol.for("pi.ccstyle.tool-mouse-owner");
|
|
49
43
|
export const TOOL_MOUSE_TUI_SLOT = Symbol.for("pi.ccstyle.tool-mouse-tui");
|
|
50
44
|
export const SCROLL_BUTTON_STATE_SLOT = Symbol.for("pi.ccstyle.scroll-button-state");
|
|
45
|
+
export const FLUSH_DOCKED_BASH_PATCH = Symbol.for("pi.ccstyle.flush-docked-bash-patch");
|
|
51
46
|
export const TOOL_HOVER_STATE_KEY = Symbol.for("pi.ccstyle.tool-hover-state");
|
|
52
47
|
|
|
53
48
|
// ── rich diff 组件标记 ──
|
|
@@ -53,6 +53,12 @@ export function isSgrLeftPress(packet: SgrMousePacket): boolean {
|
|
|
53
53
|
return packet.final === "M" && baseButton === 0 && (packet.code & 32) === 0;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/** 是否为左键松开。 */
|
|
57
|
+
export function isSgrLeftRelease(packet: SgrMousePacket): boolean {
|
|
58
|
+
const baseButton = mouseBaseButton(packet.code);
|
|
59
|
+
return packet.final === "m" && baseButton === 0 && (packet.code & 32) === 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
/** 剥离修饰键位(4/8/16/32:shift/meta/ctrl/motion),得到基础按键码。 */
|
|
57
63
|
export function mouseBaseButton(code: number): number {
|
|
58
64
|
return code & ~(4 | 8 | 16 | 32);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-cc-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.69",
|
|
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",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"test": "node --test tests/**/*.test.ts",
|
|
42
|
-
"typecheck": "
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
43
|
"format": "biome format --write .",
|
|
44
44
|
"format:check": "biome format .",
|
|
45
|
-
"docs:tool-render": "node scripts/generate-tool-render-examples.
|
|
45
|
+
"docs:tool-render": "node --experimental-strip-types scripts/generate-tool-render-examples.ts",
|
|
46
46
|
"lint": "biome check .",
|
|
47
47
|
"preversion": "npm run format && npm run lint && npm run typecheck && npm test && npm run docs:tool-render",
|
|
48
48
|
"release": "npm version patch && npm publish",
|