@dyyz1993/pi-coding-agent 0.74.34 → 0.74.36
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 +4 -0
- package/dist/extensions/bash-ext/index.ts +6 -0
- package/dist/extensions/session-supervisor/config.ts +1 -1
- package/dist/extensions/session-supervisor/index.ts +2 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -362,6 +362,12 @@ export default function (pi: ExtensionAPI) {
|
|
|
362
362
|
|
|
363
363
|
const { child, cleanup: spawnCleanup, isTimedOut } = spawnResult;
|
|
364
364
|
|
|
365
|
+
// Immediately send EOF on stdin so CLI tools that read stdin (e.g. xbrowser readStdin())
|
|
366
|
+
// don't hang forever waiting for input. Interactive stdin is handled via write_stdin channel.
|
|
367
|
+
if (child.stdin && !child.stdin.destroyed) {
|
|
368
|
+
child.stdin.end();
|
|
369
|
+
}
|
|
370
|
+
|
|
365
371
|
const proc: BashProcess = {
|
|
366
372
|
bashId,
|
|
367
373
|
toolCallId,
|
|
@@ -8,7 +8,7 @@ function log(msg: string) {
|
|
|
8
8
|
appendFileSync("/tmp/supervisor-debug.log", `[${ts}] [config] ${msg}\n`);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
const DEFAULT_CONFIG: SupervisorConfig = {
|
|
11
|
+
export const DEFAULT_CONFIG: SupervisorConfig = {
|
|
12
12
|
enable: false,
|
|
13
13
|
checkOnAgentEnd: true,
|
|
14
14
|
smallModel: "fast",
|
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
GuardConfig,
|
|
13
13
|
GuardCheckResult,
|
|
14
14
|
} from "./types.js";
|
|
15
|
-
import { loadConfig } from "./config.js";
|
|
15
|
+
import { loadConfig, DEFAULT_CONFIG } from "./config.js";
|
|
16
16
|
import { checkWithSmallModel } from "./checker.js";
|
|
17
17
|
import { Scheduler } from "./scheduler.js";
|
|
18
18
|
import {
|
|
@@ -41,7 +41,7 @@ const DEFAULT_GUARDS: GuardConfig[] = [
|
|
|
41
41
|
];
|
|
42
42
|
|
|
43
43
|
export default function sessionSupervisorExtension(pi: ExtensionAPI) {
|
|
44
|
-
let config: SupervisorConfig;
|
|
44
|
+
let config: SupervisorConfig = DEFAULT_CONFIG;
|
|
45
45
|
let enabled = false;
|
|
46
46
|
let currentState: SupervisorStatus["state"] = "idle";
|
|
47
47
|
let lastCheckResult: CheckResult | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-custom-provider",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.22",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-custom-provider",
|
|
9
|
-
"version": "0.74.
|
|
9
|
+
"version": "0.74.22",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sdk": "^0.52.0"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-sandbox",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-sandbox",
|
|
9
|
-
"version": "1.4.
|
|
9
|
+
"version": "1.4.22",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@anthropic-ai/sandbox-runtime": "^0.0.26"
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-with-deps",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.22",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-with-deps",
|
|
9
|
-
"version": "0.74.
|
|
9
|
+
"version": "0.74.22",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyyz1993/pi-coding-agent",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.36",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"piConfig": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"prepublishOnly": "npm run clean && npm run build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@dyyz1993/pi-agent-core": "^0.74.
|
|
43
|
-
"@dyyz1993/pi-ai": "^0.74.
|
|
44
|
-
"@dyyz1993/pi-tui": "^0.74.
|
|
42
|
+
"@dyyz1993/pi-agent-core": "^0.74.35",
|
|
43
|
+
"@dyyz1993/pi-ai": "^0.74.35",
|
|
44
|
+
"@dyyz1993/pi-tui": "^0.74.35",
|
|
45
45
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
46
46
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
47
47
|
"chalk": "^5.5.0",
|