pi-advisor-flow 0.17.1-dev.3 → 0.17.1-dev.5
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 +2 -1
- package/dist/index.js +9 -3
- package/docs/privacy.md +1 -0
- package/package.json +5 -5
- package/src/git.ts +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,7 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
23
23
|
- Activation fixes: a failed Advisor authentication now also rolls back argument-provided model refs; a failed activation save restores Pi's host Executor model alongside the extension's refs; and an unchanged outcome-logging value no longer triggers a second `advisor.json` write whose failure could roll back runtime state after the main settings were already committed.
|
|
24
24
|
- Conversation image census now decodes and validates each image part once per walk instead of twice.
|
|
25
25
|
- Git context collection now runs through asynchronous subprocesses under the same shared five-second deadline, so it no longer blocks the event loop during consultations.
|
|
26
|
+
- Git context collection now passes `--no-ext-diff --no-textconv` to every diff command, so external diff drivers and textconv filters configured in a repository no longer execute during consultations.
|
|
26
27
|
|
|
27
28
|
### Fixed (benchmark harness)
|
|
28
29
|
|
|
@@ -31,7 +32,7 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
31
32
|
### Changed
|
|
32
33
|
|
|
33
34
|
- Upgraded the required Bun runtime to 1.4.5 across local development and CI.
|
|
34
|
-
- Updated development dependencies: Pi packages (`pi-ai`, `pi-coding-agent`, and `pi-tui`) to 1.
|
|
35
|
+
- Updated development dependencies: Pi packages (`pi-ai`, `pi-coding-agent`, and `pi-tui`) to 1.7.0 and `@juicesharp/rpiv-i18n` to 2.16.0; Oxlint and plugins remain at 1.95.0, `@types/node` at 26.6.11, Knip at 6.48.0, and lint-staged at 17.6.2. Bun types remain at 1.4.5, TypeBox at 1.4.7, and Ultracite at 8.3.1. Existing peer dependency ranges remain unchanged.
|
|
35
36
|
|
|
36
37
|
## 0.17.0 - 2026-11-20
|
|
37
38
|
|
package/dist/index.js
CHANGED
|
@@ -430,6 +430,12 @@ var deadlineRunner = () => {
|
|
|
430
430
|
return execGit(args, cwd, remaining);
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
|
+
var diffArgs = (...rest) => [
|
|
434
|
+
"diff",
|
|
435
|
+
"--no-ext-diff",
|
|
436
|
+
"--no-textconv",
|
|
437
|
+
...rest
|
|
438
|
+
];
|
|
433
439
|
var diffBase = async (run, cwd) => {
|
|
434
440
|
try {
|
|
435
441
|
await run(["rev-parse", "--verify", "--quiet", "HEAD"], cwd);
|
|
@@ -454,8 +460,8 @@ var collectGitContext = async (cwd, level, maxChars, redact = (value) => value,
|
|
|
454
460
|
}
|
|
455
461
|
try {
|
|
456
462
|
const base = await diffBase(run, cwd);
|
|
457
|
-
const nameStatusOutput = await run(
|
|
458
|
-
const shortstatOutput = await run(
|
|
463
|
+
const nameStatusOutput = await run(diffArgs("--name-status", base), cwd);
|
|
464
|
+
const shortstatOutput = await run(diffArgs("--shortstat", base), cwd);
|
|
459
465
|
const untrackedOutput = await run(["ls-files", "--others", "--exclude-standard"], cwd);
|
|
460
466
|
const nameStatus = nameStatusOutput.trim();
|
|
461
467
|
const shortstat = shortstatOutput.trim();
|
|
@@ -472,7 +478,7 @@ ${nameStatus}` : "",
|
|
|
472
478
|
${untracked}` : ""
|
|
473
479
|
];
|
|
474
480
|
if (level === "full") {
|
|
475
|
-
const patch = await run(
|
|
481
|
+
const patch = await run(diffArgs(base), cwd);
|
|
476
482
|
sections.push(patch.trim() ? `Patch:
|
|
477
483
|
${patch}` : "Patch: (no tracked-file content changes)");
|
|
478
484
|
} else {
|
package/docs/privacy.md
CHANGED
|
@@ -24,6 +24,7 @@ The `advisor_config` tool reads recognized effective settings and persisted glob
|
|
|
24
24
|
- `advisorGitContextMaxChars` defaults to `20000`. Repository context may claim its own cap or half of `contextMaxChars`, whichever is smaller, so it cannot crowd out the conversation.
|
|
25
25
|
- The Executor may pass `gitContext` to `ask_advisor` as `none`, `summary`, or `full`. `advisorGitContext` is the ceiling. A larger request is narrowed to the configured level, and the Advisor is told that a fuller view was withheld.
|
|
26
26
|
- `summary` deliberately excludes diff hunk headers. Git derives those from surrounding file content, so a hunk header can reproduce a line the change never touched, including a credential.
|
|
27
|
+
- Collection runs every `git diff` with `--no-ext-diff --no-textconv`, so external diff drivers and textconv filters configured in a repository never execute and their output never reaches the Advisor.
|
|
27
28
|
- Redaction runs before the region is capped. Repository content is labelled as untrusted data, and paths and patch text are escaped so a crafted path cannot close the region early and have the remainder read as instructions.
|
|
28
29
|
- File names can be sensitive. `summary` withholds file contents, not file names; use `off` when names must not leave the machine.
|
|
29
30
|
- Collection shares a single overall time budget across its Git commands and degrades to a stated failure rather than implying a clean tree.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-advisor-flow",
|
|
3
|
-
"version": "0.17.1-dev.
|
|
3
|
+
"version": "0.17.1-dev.5",
|
|
4
4
|
"description": "Advanced Executor/Advisor flow for Pi, fully configurable and extendable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"advisor",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"format:check": "bun fmt --no-script --print-width 80 --trailing-comma es5 --sort-imports --bracket-same-line --ignore-pattern 'bench/tasks/**/traps.toml' --ignore-pattern 'dist/**' --check"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@earendil-works/pi-ai": "1.
|
|
66
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
67
|
-
"@earendil-works/pi-tui": "1.
|
|
68
|
-
"@juicesharp/rpiv-i18n": "2.
|
|
65
|
+
"@earendil-works/pi-ai": "1.7.0",
|
|
66
|
+
"@earendil-works/pi-coding-agent": "1.7.0",
|
|
67
|
+
"@earendil-works/pi-tui": "1.7.0",
|
|
68
|
+
"@juicesharp/rpiv-i18n": "2.16.0",
|
|
69
69
|
"@oxlint/plugins": "1.95.0",
|
|
70
70
|
"@types/node": "^26.6.11",
|
|
71
71
|
"@typesafe-ai/sdk": "^0.7.0",
|
package/src/git.ts
CHANGED
|
@@ -138,6 +138,14 @@ const deadlineRunner = (): GitRunner => {
|
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
140
|
|
|
141
|
+
// Both flags stop git from executing configured external diff drivers and textconv filters.
|
|
142
|
+
const diffArgs = (...rest: string[]): string[] => [
|
|
143
|
+
"diff",
|
|
144
|
+
"--no-ext-diff",
|
|
145
|
+
"--no-textconv",
|
|
146
|
+
...rest,
|
|
147
|
+
];
|
|
148
|
+
|
|
141
149
|
/** Resolves the base revision, falling back to the empty tree before any commit. */
|
|
142
150
|
const diffBase = async (run: GitRunner, cwd: string): Promise<string> => {
|
|
143
151
|
try {
|
|
@@ -174,8 +182,8 @@ export const collectGitContext = async (
|
|
|
174
182
|
|
|
175
183
|
try {
|
|
176
184
|
const base = await diffBase(run, cwd);
|
|
177
|
-
const nameStatusOutput = await run(
|
|
178
|
-
const shortstatOutput = await run(
|
|
185
|
+
const nameStatusOutput = await run(diffArgs("--name-status", base), cwd);
|
|
186
|
+
const shortstatOutput = await run(diffArgs("--shortstat", base), cwd);
|
|
179
187
|
|
|
180
188
|
const untrackedOutput = await run(
|
|
181
189
|
["ls-files", "--others", "--exclude-standard"],
|
|
@@ -200,7 +208,7 @@ export const collectGitContext = async (
|
|
|
200
208
|
];
|
|
201
209
|
|
|
202
210
|
if (level === "full") {
|
|
203
|
-
const patch = await run(
|
|
211
|
+
const patch = await run(diffArgs(base), cwd);
|
|
204
212
|
sections.push(
|
|
205
213
|
patch.trim()
|
|
206
214
|
? `Patch:\n${patch}`
|