@herbertgao/pi-extensions 2026.11.0 → 2026.11.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/CHANGELOG.md +759 -0
- package/README.md +5 -5
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/extensions/clef.mjs +1 -1
- package/node_modules/@herbertgao/pi-agency/CHANGELOG.md +19 -0
- package/node_modules/@herbertgao/pi-agency/package.json +4 -2
- package/node_modules/@herbertgao/pi-agency/src/index.ts +1 -1
- package/node_modules/@herbertgao/pi-bark/CHANGELOG.md +52 -0
- package/node_modules/@herbertgao/pi-bark/package.json +2 -1
- package/node_modules/@herbertgao/pi-cc-extensions/CHANGELOG.md +207 -0
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +7 -5
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +10 -7
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/config.ts +20 -0
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +61 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/core.ts +11 -16
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/agent-summary/index.ts +60 -11
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/compact-thinking.ts +29 -11
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer-layout.ts +54 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +23 -5
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/session-tokens.ts +52 -0
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +5 -4
- package/node_modules/@herbertgao/pi-impeccable/CHANGELOG.md +13 -0
- package/node_modules/@herbertgao/pi-impeccable/package.json +2 -1
- package/node_modules/@herbertgao/sol-pi/CHANGELOG.md +84 -0
- package/node_modules/@herbertgao/sol-pi/README.md +3 -3
- package/node_modules/@herbertgao/sol-pi/THIRD_PARTY_NOTICES.md +4 -4
- package/node_modules/@herbertgao/sol-pi/agents-install.md +3 -3
- package/node_modules/@herbertgao/sol-pi/docs/compatibility.md +1 -1
- package/node_modules/@herbertgao/sol-pi/package.json +2 -1
- package/node_modules/pi-provider-qoder/dist/index.js +5 -1
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/package.json +8 -7
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 默认第一行:model thinking · ██████░░░░ 45%/200k · 42% · $0.01 · pi-usage · 其余 line1 芯片
|
|
5
5
|
* 默认第二行:cwd in session · branch (+16 −1) · 其余 line2 芯片
|
|
6
6
|
* 第三行:仅当 line3 有可见芯片时出现
|
|
7
|
-
* model / context / cache / rate / cost / cwd / git 与插件芯片同一套排布,可换行、调序、隐藏
|
|
7
|
+
* model / context / cache / rate / cost / tokens / cwd / git 与插件芯片同一套排布,可换行、调序、隐藏
|
|
8
8
|
*
|
|
9
9
|
* - line1 短芯片,· 分隔;缓存用 zentui ,费用 success
|
|
10
10
|
* - line2 用 zentui 句式 in / on +
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
FOOTER_GIT_KEY,
|
|
32
32
|
FOOTER_MODEL_KEY,
|
|
33
33
|
FOOTER_RATE_KEY,
|
|
34
|
+
FOOTER_TOKENS_KEY,
|
|
34
35
|
PI_USAGE_KEY,
|
|
35
36
|
isBuiltinFooterKey,
|
|
36
37
|
isSkippedFooterStatusKey,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
type FooterChipLayout,
|
|
40
41
|
} from "./footer-layout.ts";
|
|
41
42
|
import { createGitStatsRefresher, readGitStats, type GitStats } from "./git-stats.ts";
|
|
43
|
+
import { formatSessionTokenTotal, sessionEntryTokens } from "./session-tokens.ts";
|
|
42
44
|
import { MCP_STATUS_KEY, buildMcpChip } from "./mcp-chip.ts";
|
|
43
45
|
import { inputTextIndent } from "./prompt-editor.ts";
|
|
44
46
|
import { currentTtftMs, displayTokenRate, formatTokenRate } from "./token-rate.ts";
|
|
@@ -391,7 +393,12 @@ const createCustomFooterFactory =
|
|
|
391
393
|
let statsMemoKey = "";
|
|
392
394
|
let statsMemoAt = 0;
|
|
393
395
|
let statsMemo:
|
|
394
|
-
| {
|
|
396
|
+
| {
|
|
397
|
+
contextUsage: ReturnType<typeof ctx.getContextUsage>;
|
|
398
|
+
cost: number;
|
|
399
|
+
tokens: number;
|
|
400
|
+
cachePct: number;
|
|
401
|
+
}
|
|
395
402
|
| undefined;
|
|
396
403
|
const sessionStats = () => {
|
|
397
404
|
const model = ctx.model;
|
|
@@ -404,19 +411,28 @@ const createCustomFooterFactory =
|
|
|
404
411
|
return statsMemo;
|
|
405
412
|
}
|
|
406
413
|
let cost = 0;
|
|
414
|
+
let tokens = 0;
|
|
407
415
|
for (const entry of ctx.sessionManager.getEntries()) {
|
|
408
416
|
if (entry.type === "message") {
|
|
409
417
|
const m = entry.message;
|
|
410
418
|
if (m.role === "assistant") cost += m.usage?.cost?.total || 0;
|
|
411
419
|
else if (m.role === "toolResult" && m.usage) cost += m.usage.cost?.total || 0;
|
|
412
420
|
} else if (
|
|
413
|
-
(entry.type === "branch_summary" ||
|
|
421
|
+
(entry.type === "branch_summary" ||
|
|
422
|
+
entry.type === "compaction" ||
|
|
423
|
+
entry.type === "usage") &&
|
|
414
424
|
entry.usage
|
|
415
425
|
) {
|
|
416
426
|
cost += entry.usage.cost?.total || 0;
|
|
417
427
|
}
|
|
428
|
+
tokens += sessionEntryTokens(entry);
|
|
418
429
|
}
|
|
419
|
-
statsMemo = {
|
|
430
|
+
statsMemo = {
|
|
431
|
+
contextUsage: ctx.getContextUsage(),
|
|
432
|
+
cost,
|
|
433
|
+
tokens,
|
|
434
|
+
cachePct: getCachePct(),
|
|
435
|
+
};
|
|
420
436
|
statsMemoKey = key;
|
|
421
437
|
statsMemoAt = performance.now();
|
|
422
438
|
return statsMemo;
|
|
@@ -424,7 +440,7 @@ const createCustomFooterFactory =
|
|
|
424
440
|
|
|
425
441
|
const render = (width: number): string[] => {
|
|
426
442
|
const model = ctx.model;
|
|
427
|
-
const { contextUsage, cost, cachePct } = sessionStats();
|
|
443
|
+
const { contextUsage, cost, tokens, cachePct } = sessionStats();
|
|
428
444
|
const contextWindow = contextUsage?.contextWindow ?? model?.contextWindow ?? 0;
|
|
429
445
|
const percent = contextUsage?.percent;
|
|
430
446
|
|
|
@@ -471,6 +487,7 @@ const createCustomFooterFactory =
|
|
|
471
487
|
const costChip = costLabel
|
|
472
488
|
? theme.fg("dim", costLabel) + (usingSubscription ? theme.fg("warning", " sub") : "")
|
|
473
489
|
: "";
|
|
490
|
+
const tokensLabel = config.footerSessionTokens ? formatSessionTokenTotal(tokens) : "";
|
|
474
491
|
|
|
475
492
|
const gitColor = theme.getThinkingBorderColor("medium");
|
|
476
493
|
let place = theme.fg("accent", cwdLabel);
|
|
@@ -508,6 +525,7 @@ const createCustomFooterFactory =
|
|
|
508
525
|
[FOOTER_CACHE_KEY, cacheLabel ? theme.fg("dim", cacheLabel) : ""],
|
|
509
526
|
[FOOTER_RATE_KEY, rateLabel ? theme.fg("dim", rateLabel) : ""],
|
|
510
527
|
[FOOTER_COST_KEY, costChip],
|
|
528
|
+
[FOOTER_TOKENS_KEY, tokensLabel ? theme.fg("dim", tokensLabel) : ""],
|
|
511
529
|
[FOOTER_CWD_KEY, place],
|
|
512
530
|
[FOOTER_GIT_KEY, gitChip],
|
|
513
531
|
]);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* footer 的会话累计 token:统计 `sessionManager.getEntries()` 里每条条目的 usage。
|
|
3
|
+
*
|
|
4
|
+
* 口径是 `usage.totalTokens` 累加(输入 + 输出 + 缓存读 + 缓存写),
|
|
5
|
+
* 覆盖 assistant / toolResult 消息,以及 compaction、branch_summary 与 `usage` 条目
|
|
6
|
+
* 自己那次 LLM 调用的开销。整个会话全量累加,不沿当前分支裁剪:
|
|
7
|
+
* 回退/重发放弃的节点也算进「这次对话烧掉了多少 token」。
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { formatTokenCount } from "../../utils/format.ts";
|
|
11
|
+
|
|
12
|
+
type UnknownRecord = Record<string, unknown>;
|
|
13
|
+
|
|
14
|
+
function asRecord(value: unknown): UnknownRecord | undefined {
|
|
15
|
+
return value && typeof value === "object" ? (value as UnknownRecord) : undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** `usage.totalTokens` 优先;缺失时用四项相加,非数字一律忽略。 */
|
|
19
|
+
export function usageTokenTotal(usage: unknown): number {
|
|
20
|
+
const record = asRecord(usage);
|
|
21
|
+
if (!record) return 0;
|
|
22
|
+
const total = record.totalTokens;
|
|
23
|
+
if (typeof total === "number" && Number.isFinite(total) && total > 0) return total;
|
|
24
|
+
let sum = 0;
|
|
25
|
+
for (const key of ["input", "output", "cacheRead", "cacheWrite"] as const) {
|
|
26
|
+
const part = record[key];
|
|
27
|
+
if (typeof part === "number" && Number.isFinite(part) && part > 0) sum += part;
|
|
28
|
+
}
|
|
29
|
+
return sum;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** 一条会话条目贡献的 token;user/system/自定义条目不消费 LLM token,返回 0。 */
|
|
33
|
+
export function sessionEntryTokens(entry: unknown): number {
|
|
34
|
+
const record = asRecord(entry);
|
|
35
|
+
if (!record) return 0;
|
|
36
|
+
if (record.type === "message") {
|
|
37
|
+
const message = asRecord(record.message);
|
|
38
|
+
if (!message) return 0;
|
|
39
|
+
if (message.role !== "assistant" && message.role !== "toolResult") return 0;
|
|
40
|
+
return usageTokenTotal(message.usage);
|
|
41
|
+
}
|
|
42
|
+
if (record.type === "compaction" || record.type === "branch_summary" || record.type === "usage") {
|
|
43
|
+
return usageTokenTotal(record.usage);
|
|
44
|
+
}
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** 芯片文案:`∑ 402k`;没有数据返回空串(不占位置)。 */
|
|
49
|
+
export function formatSessionTokenTotal(total: number): string {
|
|
50
|
+
if (!Number.isFinite(total) || total <= 0) return "";
|
|
51
|
+
return `∑ ${formatTokenCount(Math.round(total))}`;
|
|
52
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-cc-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13-local.1",
|
|
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",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"themes",
|
|
27
27
|
"README.md",
|
|
28
28
|
"README.en.md",
|
|
29
|
+
"CHANGELOG.md",
|
|
29
30
|
"LICENSE"
|
|
30
31
|
],
|
|
31
32
|
"pi": {
|
|
@@ -71,10 +72,10 @@
|
|
|
71
72
|
},
|
|
72
73
|
"x-upstream": {
|
|
73
74
|
"package": "pi-cc-extensions",
|
|
74
|
-
"version": "1.0.
|
|
75
|
-
"reviewedVersion": "1.0.
|
|
75
|
+
"version": "1.0.13",
|
|
76
|
+
"reviewedVersion": "1.0.13",
|
|
76
77
|
"repository": "https://github.com/minuque/pi-cc-extensions",
|
|
77
|
-
"commit": "
|
|
78
|
+
"commit": "2ee840f0049be01e352a86f96a6c6e8be9f74670",
|
|
78
79
|
"trackVersion": true
|
|
79
80
|
}
|
|
80
81
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @herbertgao/pi-impeccable
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#346](https://github.com/HerbertGao/pi-extensions/pull/346) [`641894f`](https://github.com/HerbertGao/pi-extensions/commit/641894ff5dc34a38ab41905f27a3077cc865ab91) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Document Pi 1.5.0 as the tested host and publish each package changelog so Pi can show Extension Updates after an update. Agency tools and clef keep the same TypeBox schemas, built from typebox because Pi 1.5 no longer re-exports Type. Peer ranges stay open. The BTW fullscreen handoff resolves `@narumitw/pi-tui-kit@0.68.1` inside the existing `^0.68.0` range.
|
|
8
|
+
|
|
9
|
+
## 0.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#331](https://github.com/HerbertGao/pi-extensions/pull/331) [`12c8680`](https://github.com/HerbertGao/pi-extensions/commit/12c86808bf7084d4fab6f90d6bac17a2531585ce) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Vendor the official Impeccable 4.8.0 Pi skill as `@herbertgao/pi-impeccable` and include it in the aggregate package.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-impeccable",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The Impeccable design skill for Pi, vendored from the official release.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"skills",
|
|
29
29
|
"README.md",
|
|
30
|
+
"CHANGELOG.md",
|
|
30
31
|
"LICENSE",
|
|
31
32
|
"NOTICE.md"
|
|
32
33
|
],
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# @herbertgao/sol-pi
|
|
2
|
+
|
|
3
|
+
## 0.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#346](https://github.com/HerbertGao/pi-extensions/pull/346) [`641894f`](https://github.com/HerbertGao/pi-extensions/commit/641894ff5dc34a38ab41905f27a3077cc865ab91) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Document Pi 1.5.0 as the tested host and publish each package changelog so Pi can show Extension Updates after an update. Agency tools and clef keep the same TypeBox schemas, built from typebox because Pi 1.5 no longer re-exports Type. Peer ranges stay open. The BTW fullscreen handoff resolves `@narumitw/pi-tui-kit@0.68.1` inside the existing `^0.68.0` range.
|
|
8
|
+
|
|
9
|
+
## 0.4.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#301](https://github.com/HerbertGao/pi-extensions/pull/301) [`b79b640`](https://github.com/HerbertGao/pi-extensions/commit/b79b640048f3e871db5791cf2e6cb8cbb1a183c7) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Sync upstream Pi 1.x and codemode compatibility fixes: preserve fused edit details on command failures, inherit trusted Pi shell settings, leave nested structured results intact, and preserve system-message positions during observation packing. Correct compaction projection, request accounting, and failure continuation. Keep `update_plan` declared to the model in codemode-only mode and disallow calling it from codemode scripts so completion boundaries remain visible to Online Context Compact.
|
|
14
|
+
|
|
15
|
+
- [#301](https://github.com/HerbertGao/pi-extensions/pull/301) [`b79b640`](https://github.com/HerbertGao/pi-extensions/commit/b79b640048f3e871db5791cf2e6cb8cbb1a183c7) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Allow SoL-Pi initialization to retry on the next session after configuration loading fails. Malformed shell settings still report an error, but repairing them no longer leaves all enabled features permanently unregistered.
|
|
16
|
+
|
|
17
|
+
## 0.4.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#287](https://github.com/HerbertGao/pi-extensions/pull/287) [`3a0deb9`](https://github.com/HerbertGao/pi-extensions/commit/3a0deb96297aa6da94fe40724a3945ef16c34497) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Stop bundling resume-from and lower the Node engines floor to `>=22.19.0`, matching Pi. Node 24 was copied from resume-from's engines field; these packages do not use a Node 24-only API. Pi's bundled Node 22 can install the current release instead of silently selecting an older one.
|
|
22
|
+
|
|
23
|
+
## 0.4.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- [#258](https://github.com/HerbertGao/pi-extensions/pull/258) [`4f505b1`](https://github.com/HerbertGao/pi-extensions/commit/4f505b1456c5ea766121ee915f14ad29e48973e7) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Replay the locally customized extensions on the latest upstream code while keeping the scoped packages, host-provided Pi SDK, and local rich-diff and Action Fusion compatibility.
|
|
28
|
+
|
|
29
|
+
- Bring in pi-cc-extensions 0.9.10, including codemode call trees, expanded input highlighting, the persistent expanded-card background setting, and MCP status chips.
|
|
30
|
+
- Bring in the latest SoL-Pi mainline, including projection-based compaction economics, cache-debt accounting, compaction-rejection recovery, and temporary evidence archives for non-persistent sessions.
|
|
31
|
+
- Keep all four SoL-Pi features opt-in. Temporary evidence archives remain on disk for consumers and require cleanup by the host or caller.
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [#258](https://github.com/HerbertGao/pi-extensions/pull/258) [`4f505b1`](https://github.com/HerbertGao/pi-extensions/commit/4f505b1456c5ea766121ee915f14ad29e48973e7) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Keep ccstyle write rich diffs when Action Fusion owns the write tool. Capture the bounded previous-file metadata inside Pi's mutation queue while retaining fused follow-up commands, file URL paths, and cancellation checks. Expanded edit/write diffs also retain sanitized follow-up command output. Third-party writers without the collaboration hook and custom write operations retain the existing ownership warning and fallback.
|
|
36
|
+
|
|
37
|
+
- [#258](https://github.com/HerbertGao/pi-extensions/pull/258) [`4f505b1`](https://github.com/HerbertGao/pi-extensions/commit/4f505b1456c5ea766121ee915f14ad29e48973e7) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Fix Action Fusion tool context compatibility with Pi 1.x and preserve failed follow-up reporting when Bash returns an error result instead of throwing. Successful file mutations remain intact when the follow-up command fails.
|
|
38
|
+
|
|
39
|
+
## 0.3.4
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- [#248](https://github.com/HerbertGao/pi-extensions/pull/248) [`c14c004`](https://github.com/HerbertGao/pi-extensions/commit/c14c0042a8e02862cd6718dd60e4ffb22314165c) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Use Pi 0.99+'s native MCP implementation instead of registering the removed `pi-mcp-adapter`, declare Pi-hosted packages as wildcard peers, update `@tifan/pi-handoff` to 2.2.2 for its Herdr startup retry fix, and pin `pi-typesafe` to 0.8.0.
|
|
44
|
+
|
|
45
|
+
## 0.3.3
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#244](https://github.com/HerbertGao/pi-extensions/pull/244) [`50c30b8`](https://github.com/HerbertGao/pi-extensions/commit/50c30b8bf73246d1d87e77d83232781ea62c4ba2) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Stop reporting "Online context compact continuation did not start" after every online compaction on Pi 0.87, which defers `agent_settled` follow-up turns and awaits them itself.
|
|
50
|
+
|
|
51
|
+
## 0.3.2
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- [#232](https://github.com/HerbertGao/pi-extensions/pull/232) [`9c3c40f`](https://github.com/HerbertGao/pi-extensions/commit/9c3c40f113c62437f76d300042fc59fbf15954c0) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Require the unified Pi 0.87.1 dependency line across published packages.
|
|
56
|
+
|
|
57
|
+
## 0.3.1
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- [#219](https://github.com/HerbertGao/pi-extensions/pull/219) [`6525a59`](https://github.com/HerbertGao/pi-extensions/commit/6525a5995b8bb815517e326f1eef78d25c0a3c5e) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Bundle `pi-multi-account@1.22.0` for automatic multi-account failover and rotation across supported Pi providers. Update the aggregate host to Pi 0.85.1 and widen the maintained child package compatibility ranges.
|
|
62
|
+
|
|
63
|
+
## 0.3.0
|
|
64
|
+
|
|
65
|
+
### Minor Changes
|
|
66
|
+
|
|
67
|
+
- [#200](https://github.com/HerbertGao/pi-extensions/pull/200) [`8b8673c`](https://github.com/HerbertGao/pi-extensions/commit/8b8673c5fc802427ab04419de7e13750f0db6ce2) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Remove the bundled `@czottmann/pi-automode` dependency.
|
|
68
|
+
|
|
69
|
+
Auto mode's enable/disable override lived only in the main session's entry stream, so a subagent session restored no override and fell back to the persisted disk default. Subagents therefore stayed subject to automode interception even after the main session disabled it, and its `permissions.ask` rules hard-blocked inside subagents because `ctx.hasUI` is false there. Removing the companion drops that guardrail entirely instead of propagating a session-scoped toggle across sessions.
|
|
70
|
+
|
|
71
|
+
- Drop `@czottmann/pi-automode` from aggregate dependencies, bundled dependencies, Pi extension entries, and Pi skill entries; remove its pin from `upstreams.json`.
|
|
72
|
+
- Remove the auto-mode real-Pi smoke and the aggregate assertions that verified its bundled manifest, license, extension entry, skills, status key, and `automode_inspect` registration.
|
|
73
|
+
- Restore SoL-Pi Action Fusion to its upstream form by removing the local `automode_inspect` guard, which existed only to defer nested `then_run` authorization to automode. The extension-owned `write` guard is unrelated to automode and is retained.
|
|
74
|
+
- Remove the bundled `examples/pi-footer.json` layout example and its aggregate verification, along with the Auto mode footer status row.
|
|
75
|
+
|
|
76
|
+
## 0.2.0
|
|
77
|
+
|
|
78
|
+
### Minor Changes
|
|
79
|
+
|
|
80
|
+
- [#164](https://github.com/HerbertGao/pi-extensions/pull/164) [`52558be`](https://github.com/HerbertGao/pi-extensions/commit/52558be6f06659cb9354b8d80a1e9321c35acbcb) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Import the MIT-licensed NVlabs/SoL-Pi efficiency mechanisms as a maintained package with upstream provenance, with guards for extension-owned writes, pi-automode, and active subagents.
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- [#177](https://github.com/HerbertGao/pi-extensions/pull/177) [`ceeece0`](https://github.com/HerbertGao/pi-extensions/commit/ceeece0b2db2ff962eec513a0b7f766471743057) Thanks [@HerbertGao](https://github.com/HerbertGao)! - Sync the SoL-Pi Action Fusion file-URL resolution fix and its regression coverage from NVlabs/SoL-Pi.
|
|
@@ -69,14 +69,14 @@ Read our paper: [SoL-Pi: Recursively Scaling Auto-Research Loops for Efficient A
|
|
|
69
69
|
|
|
70
70
|
- Node.js 22.19.0 or newer
|
|
71
71
|
- npm
|
|
72
|
-
- `@earendil-works/pi-coding-agent` 1.
|
|
72
|
+
- `@earendil-works/pi-coding-agent` 1.5.0 (the monorepo's tested host; runtime peers remain `*`)
|
|
73
73
|
|
|
74
74
|
### Install
|
|
75
75
|
|
|
76
76
|
Install the tested Pi release:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
npm install --global @earendil-works/pi-coding-agent@1.
|
|
79
|
+
npm install --global @earendil-works/pi-coding-agent@1.5.0
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
Install this independently maintained package, or use `@herbertgao/pi-extensions` for the collection:
|
|
@@ -155,7 +155,7 @@ bun audit
|
|
|
155
155
|
node packages/sol-pi/scripts/check-pi-compat.mjs
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
For package-only checks, run `bun run --cwd packages/sol-pi typecheck` and `bun run --cwd packages/sol-pi test`, then inspect the package with `npm pack --dry-run` from `packages/sol-pi`. Root development dependencies provide Pi 1.
|
|
158
|
+
For package-only checks, run `bun run --cwd packages/sol-pi typecheck` and `bun run --cwd packages/sol-pi test`, then inspect the package with `npm pack --dry-run` from `packages/sol-pi`. Root development dependencies provide Pi 1.5.0; runtime Pi packages remain peer dependencies so Pi owns their installation and upgrades.
|
|
159
159
|
|
|
160
160
|
## Project Status
|
|
161
161
|
|
|
@@ -8,10 +8,10 @@ The following packages are supplied by the user's Pi installation and retain the
|
|
|
8
8
|
|
|
9
9
|
| Package | Development-tested version | License | Source |
|
|
10
10
|
| --- | ---: | --- | --- |
|
|
11
|
-
| `@earendil-works/pi-agent-core` | 1.
|
|
12
|
-
| `@earendil-works/pi-ai` | 1.
|
|
13
|
-
| `@earendil-works/pi-coding-agent` | 1.
|
|
14
|
-
| `@earendil-works/pi-tui` | 1.
|
|
11
|
+
| `@earendil-works/pi-agent-core` | 1.5.0 | MIT | <https://github.com/earendil-works/pi> |
|
|
12
|
+
| `@earendil-works/pi-ai` | 1.5.0 | MIT | <https://github.com/earendil-works/pi> |
|
|
13
|
+
| `@earendil-works/pi-coding-agent` | 1.5.0 | MIT | <https://github.com/earendil-works/pi> |
|
|
14
|
+
| `@earendil-works/pi-tui` | 1.5.0 | MIT | <https://github.com/earendil-works/pi> |
|
|
15
15
|
| `typebox` | 1.3.7 | MIT | <https://github.com/sinclairzx81/typebox> |
|
|
16
16
|
|
|
17
17
|
## Development-only dependencies
|
|
@@ -7,7 +7,7 @@ Installation and configuration are complete only when Pi remains unmodified, the
|
|
|
7
7
|
## Rules
|
|
8
8
|
|
|
9
9
|
- Do not modify, patch, fork, or vendor upstream Pi. SoL-Pi must load as a standalone extension through Pi's public package interface.
|
|
10
|
-
- Use Node.js 22.19.0 or newer and the tested Pi release `@earendil-works/pi-coding-agent@1.
|
|
10
|
+
- Use Node.js 22.19.0 or newer and the tested Pi release `@earendil-works/pi-coding-agent@1.5.0`. Treat a different Pi version as a compatibility change and rerun the full suite before using it.
|
|
11
11
|
- Do not clean, reset, switch, or overwrite unrelated repository changes.
|
|
12
12
|
- Do not print, log, commit, upload, or include any secret in a command line. Check only whether a credential is present.
|
|
13
13
|
- Keep SoL-Pi settings in `sol-pi.json`. The Evidence-Preserving Reducer provider/model route is a SoL-Pi setting; provider URLs, credentials, the main agent model, and shell behavior remain Pi settings.
|
|
@@ -57,11 +57,11 @@ Stop if any command fails. Do not hide a failure with `|| true` or replace the f
|
|
|
57
57
|
Install the tested Pi release without changing its source:
|
|
58
58
|
|
|
59
59
|
```bash
|
|
60
|
-
npm install --global --ignore-scripts @earendil-works/pi-coding-agent@1.
|
|
60
|
+
npm install --global --ignore-scripts @earendil-works/pi-coding-agent@1.5.0
|
|
61
61
|
pi --version
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
Require `pi --version` to report `1.
|
|
64
|
+
Require `pi --version` to report `1.5.0`. Runtime peer ranges remain `*`; other hosts need their own validation.
|
|
65
65
|
|
|
66
66
|
For a project-local registration, run this from `target_project` and substitute the resolved absolute `sol_pi_root`:
|
|
67
67
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pi Compatibility
|
|
2
2
|
|
|
3
|
-
This monorepo tests `@herbertgao/sol-pi` against the root development host Pi 1.
|
|
3
|
+
This monorepo tests `@herbertgao/sol-pi` against the root development host Pi 1.5.0. Pi runtime peers remain `*`, so Pi owns installation and upgrades; that range is not a guarantee for every host. Upstream reports a 19-file/140-test suite and offline startup passing on 0.85.1 and 0.84.2, with earlier public-API checks on the 0.81.1 fork. Those are historical upstream results, not results for the locally adapted package. Its tests use Pi 1.x `ExtensionToolContext` for tool execution.
|
|
4
4
|
|
|
5
5
|
SoL-Pi imports only public package exports:
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/sol-pi",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Token-efficient context and tool extensions for Pi, maintained from NVlabs/SoL-Pi.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"scripts/check-sol-pi-config.mjs",
|
|
33
33
|
"agents-install.md",
|
|
34
34
|
"README.md",
|
|
35
|
+
"CHANGELOG.md",
|
|
35
36
|
"LICENSE",
|
|
36
37
|
"CONTRIBUTING.md",
|
|
37
38
|
"SECURITY.md",
|
|
@@ -10106,7 +10106,11 @@ function parseModelBusyRejection(body) {
|
|
|
10106
10106
|
const queue = parseJsonObject(busy.message);
|
|
10107
10107
|
if (!queue) return void 0;
|
|
10108
10108
|
if (queue.serviceAvailable !== true) return void 0;
|
|
10109
|
-
const seconds = (value) =>
|
|
10109
|
+
const seconds = (value) => {
|
|
10110
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) return 0;
|
|
10111
|
+
const milliseconds = Math.round(value * 1e3);
|
|
10112
|
+
return Number.isSafeInteger(milliseconds) && milliseconds > 0 ? milliseconds : 0;
|
|
10113
|
+
};
|
|
10110
10114
|
if (queue.isQueued === false) {
|
|
10111
10115
|
return { kind: "ready", retryAfterMs: seconds(queue.retryAfterSeconds) };
|
|
10112
10116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-extensions",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.1",
|
|
4
4
|
"description": "Aggregate installer for HerbertGao-maintained Pi extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"extensions",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"README.md",
|
|
24
|
+
"CHANGELOG.md",
|
|
24
25
|
"LICENSE",
|
|
25
26
|
"THIRD_PARTY_NOTICES.md",
|
|
26
27
|
"extensions"
|
|
@@ -38,12 +39,12 @@
|
|
|
38
39
|
"@ast-grep/cli": "0.51.0",
|
|
39
40
|
"@ast-grep/napi": "^0.51.0",
|
|
40
41
|
"@dietrichgebert/ponytail": "5.3.3",
|
|
41
|
-
"@herbertgao/pi-agency": "0.1.
|
|
42
|
-
"@herbertgao/pi-bark": "0.2.
|
|
43
|
-
"@herbertgao/pi-cc-extensions": "1.0.
|
|
44
|
-
"@herbertgao/pi-impeccable": "0.1.
|
|
42
|
+
"@herbertgao/pi-agency": "0.1.3",
|
|
43
|
+
"@herbertgao/pi-bark": "0.2.2",
|
|
44
|
+
"@herbertgao/pi-cc-extensions": "1.0.13-local.1",
|
|
45
|
+
"@herbertgao/pi-impeccable": "0.1.1",
|
|
45
46
|
"@herbertgao/pi-subagents": "0.22.1-local.1",
|
|
46
|
-
"@herbertgao/sol-pi": "0.4.
|
|
47
|
+
"@herbertgao/sol-pi": "0.4.3",
|
|
47
48
|
"@juicesharp/rpiv-ask-user-question": "2.15.0",
|
|
48
49
|
"@juicesharp/rpiv-config": "^2.15.0",
|
|
49
50
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
@@ -75,7 +76,7 @@
|
|
|
75
76
|
"pi-commandcode-provider": "0.7.11",
|
|
76
77
|
"pi-lens": "4.4.8",
|
|
77
78
|
"pi-next-cue": "1.0.8",
|
|
78
|
-
"pi-provider-qoder": "0.6.
|
|
79
|
+
"pi-provider-qoder": "0.6.9",
|
|
79
80
|
"pi-typesafe": "0.13.1",
|
|
80
81
|
"pi-web-access": "0.46.0",
|
|
81
82
|
"pidusage": "^4.0.1",
|