pi-cc-extensions 0.8.40 → 0.8.41
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/LICENSE +21 -0
- package/README.en.md +0 -1
- package/README.md +0 -1
- package/extensions/claude-code-style.ts +1 -1
- package/extensions/compact-style.ts +10 -1
- package/extensions/compact-thinking.ts +1 -12
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 minuque
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.en.md
CHANGED
|
@@ -125,7 +125,6 @@ Run `/reload` after changing extensions.
|
|
|
125
125
|
| `npm:pi-mcp-adapter` | On-demand MCP tool discovery with lower context usage |
|
|
126
126
|
| `npm:pi-theme-picker` | Theme search and live preview |
|
|
127
127
|
| `npm:@ayulab/pi-rewind` | Checkpoint-based code or conversation rollback |
|
|
128
|
-
| `npm:pi-compact-thinking` | Compact rendering for hidden thinking blocks |
|
|
129
128
|
|
|
130
129
|
## Credits
|
|
131
130
|
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ const DIFF_COLLAPSED_LINES_VALUES = ["12", "24", "36", "48", "80", "120"];
|
|
|
75
75
|
/** Presets for expanded body height — keep low options first so cycling stays TUI-friendly. */
|
|
76
76
|
const EXPANDED_PREVIEW_MAX_LINES_VALUES = ["40", "60", "80", "120", "200", "500", "2000"];
|
|
77
77
|
const THINKING_PREVIEW_LINES_VALUES = ["0", "1", "3", "5", "10"];
|
|
78
|
-
const THINKING_ANIMATION_INTERVAL_VALUES = ["
|
|
78
|
+
const THINKING_ANIMATION_INTERVAL_VALUES = ["40", "60", "90", "120", "180"];
|
|
79
79
|
/** Tools commonly toggled in excludeRenderers via the settings panel. */
|
|
80
80
|
const EXCLUDE_RENDERER_CANDIDATES = [
|
|
81
81
|
"bash",
|
|
@@ -917,7 +917,16 @@ function patchAssistantMessageComponent(
|
|
|
917
917
|
return patch.nativeUpdateContent.call(this, message);
|
|
918
918
|
}
|
|
919
919
|
if (!patch.active || !installation.active || state.activeInstallation !== installation) {
|
|
920
|
-
|
|
920
|
+
// A downstream renderer may have captured this wrapper, then been
|
|
921
|
+
// restored after compact teardown. Mark the pass-through re-entry so
|
|
922
|
+
// that downstream -> stale compact -> downstream cycles bottom out at
|
|
923
|
+
// Pi's native renderer instead of overflowing the stack.
|
|
924
|
+
this[ASSISTANT_REENTRY_KEY] = patch;
|
|
925
|
+
try {
|
|
926
|
+
return patch.originalUpdateContent.call(this, message);
|
|
927
|
+
} finally {
|
|
928
|
+
delete this[ASSISTANT_REENTRY_KEY];
|
|
929
|
+
}
|
|
921
930
|
}
|
|
922
931
|
|
|
923
932
|
state.assistantComponents.add(this);
|
|
@@ -2,10 +2,8 @@ import * as piAi from "@earendil-works/pi-ai";
|
|
|
2
2
|
import * as piCodingAgent from "@earendil-works/pi-coding-agent";
|
|
3
3
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import * as piTui from "@earendil-works/pi-tui";
|
|
5
|
-
import {
|
|
5
|
+
import { readFileSync } from "node:fs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
|
-
import { homedir } from "node:os";
|
|
8
|
-
import { join } from "node:path";
|
|
9
7
|
import { createJiti } from "jiti";
|
|
10
8
|
|
|
11
9
|
export type CompactThinkingConfig = {
|
|
@@ -141,15 +139,6 @@ export function installCompactThinking(
|
|
|
141
139
|
[COMPACT_THINKING_OWNER]?: CompactThinkingOwner;
|
|
142
140
|
};
|
|
143
141
|
|
|
144
|
-
const agentDir = process.env.PI_CODING_AGENT_DIR ?? join(homedir(), ".pi", "agent");
|
|
145
|
-
// Upstream requires this file while loading; mirror ccstyle into it and never read it back.
|
|
146
|
-
mkdirSync(agentDir, { recursive: true });
|
|
147
|
-
writeFileSync(
|
|
148
|
-
join(agentDir, "compact-thinking.json"),
|
|
149
|
-
`${JSON.stringify(initialConfig, null, 2)}\n`,
|
|
150
|
-
"utf8",
|
|
151
|
-
);
|
|
152
|
-
|
|
153
142
|
let upstreamConfig: CompactThinkingConfig | undefined;
|
|
154
143
|
let session: { event: any; ctx: any } | undefined;
|
|
155
144
|
let active = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-cc-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.41",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"description": "A Pi productivity suite with Claude Code-style UI, fixed editor, context inspection, and agent/session references",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"keywords": [
|