pi-openai-codex-compat 0.0.10-alpha.4 → 0.0.10-alpha.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
CHANGED
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
- Remove trailing command-output line endings from TUI previews so the intended
|
|
31
31
|
bottom padding matches the top padding instead of rendering an extra blank
|
|
32
32
|
output row.
|
|
33
|
+
- Normalize CRLF and standalone carriage returns in command TUI previews so
|
|
34
|
+
command output cannot corrupt the rendered tool surface.
|
|
33
35
|
- Cache footer session names, context and cumulative usage, and rendered lines by
|
|
34
36
|
session and display state, and cache immutable web, image, and debug-aware
|
|
35
37
|
`apply_patch` child renderers so animation-only frames avoid repeated history
|
|
@@ -67,8 +67,7 @@ export function conciseInstructionError(error: string): string {
|
|
|
67
67
|
.replace(/^Failed to move .*? to .*?:\s*/u, "Move failed: ")
|
|
68
68
|
.replace(/^Failed to find context [^\n]*/u, "Context was not found.")
|
|
69
69
|
.replace(/^Failed to find expected lines in [^\n]*/u, "Old content was not found.")
|
|
70
|
-
.replace(/; destination was removed before replacement failed$/u, "")
|
|
71
|
-
.replace(/^apply_patch was cancelled\.$/u, "apply_patch was cancelled.");
|
|
70
|
+
.replace(/; destination was removed before replacement failed$/u, "");
|
|
72
71
|
return message.split("\n")[0] ?? "";
|
|
73
72
|
}
|
|
74
73
|
|
|
@@ -37,7 +37,7 @@ function textOutput(result: CommandRenderResult): string {
|
|
|
37
37
|
const COLLAPSED_OUTPUT_LINE_LIMIT = 5;
|
|
38
38
|
|
|
39
39
|
function visibleCommandOutput(output: string): string {
|
|
40
|
-
return output.
|
|
40
|
+
return output.replaceAll("\r\n", "\n").replaceAll("\r", "\n").replace(/\n+$/u, "");
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
function commandOutputPreviewFromVisibleOutput(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { randomBytes } from "node:crypto";
|
|
1
|
+
import { randomBytes, randomInt } from "node:crypto";
|
|
2
2
|
import type { AgentToolUpdateCallback, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
import {
|
|
4
4
|
commandEnvironment,
|
|
@@ -796,7 +796,7 @@ export class UnifiedExecManager {
|
|
|
796
796
|
|
|
797
797
|
private allocateProcessId(): number {
|
|
798
798
|
for (;;) {
|
|
799
|
-
const id = 1_000
|
|
799
|
+
const id = randomInt(1_000, 100_000);
|
|
800
800
|
if (!this.processes.has(id)) return id;
|
|
801
801
|
}
|
|
802
802
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-openai-codex-compat",
|
|
3
|
-
"version": "0.0.10-alpha.
|
|
3
|
+
"version": "0.0.10-alpha.5",
|
|
4
4
|
"description": "OpenAI Codex compatibility for Pi with native compaction, fast mode, and Codex-optimized capabilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"tree-sitter-bash": "0.25.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@2h2d/oxlint-config": "0.1.
|
|
48
|
+
"@2h2d/oxlint-config": "0.1.1",
|
|
49
49
|
"@2h2d/ts-config": "0.0.1",
|
|
50
50
|
"@earendil-works/pi-ai": "0.84.3",
|
|
51
51
|
"@earendil-works/pi-coding-agent": "0.84.3",
|
|
52
52
|
"@earendil-works/pi-tui": "0.84.3",
|
|
53
53
|
"@types/node": "22.20.1",
|
|
54
|
-
"oxfmt": "0.
|
|
55
|
-
"oxlint": "1.
|
|
54
|
+
"oxfmt": "0.64.0",
|
|
55
|
+
"oxlint": "1.79.0",
|
|
56
56
|
"oxlint-tsgolint": "7.0.2001",
|
|
57
|
-
"typebox": "1.3.
|
|
57
|
+
"typebox": "1.3.16",
|
|
58
58
|
"typescript": "7.0.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|