@maplezzk/pi-interactive-subagents 3.11.0 → 3.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/package.json +1 -1
- package/pi-extension/subagents/index.ts +4 -13
- package/agents/claude-code.md +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplezzk/pi-interactive-subagents",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.1",
|
|
4
4
|
"description": "Interactive async subagents for pi — spawn, orchestrate, and manage sub-agent sessions in multiplexer panes. Fork of HazAT/pi-interactive-subagents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -882,19 +882,10 @@ function handleSubagentInterrupt(
|
|
|
882
882
|
running.statusState = forceStatusAfterInterrupt(running.statusState, now);
|
|
883
883
|
updateWidget();
|
|
884
884
|
|
|
885
|
-
//
|
|
886
|
-
//
|
|
887
|
-
//
|
|
888
|
-
|
|
889
|
-
const exitFile = `${running.sessionFile}.exit`;
|
|
890
|
-
try {
|
|
891
|
-
writeFileSync(exitFile, JSON.stringify({ type: "done" }));
|
|
892
|
-
} catch (writeErr: any) {
|
|
893
|
-
process.stderr.write(
|
|
894
|
-
`[interrupt] .exit 写入失败 file=${exitFile} err=${writeErr?.message ?? String(writeErr)}\n`,
|
|
895
|
-
);
|
|
896
|
-
}
|
|
897
|
-
}
|
|
885
|
+
// Escape only cancels the child's current turn. Do not write the `.exit`
|
|
886
|
+
// sidecar here: that file is the terminal completion signal consumed by
|
|
887
|
+
// pollForExit, and writing it would close the pane and remove this running
|
|
888
|
+
// entry instead of leaving the child alive for another turn.
|
|
898
889
|
|
|
899
890
|
return {
|
|
900
891
|
content: [{ type: "text" as const, text: `Interrupt requested for subagent "${running.name}".` }],
|
package/agents/claude-code.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: claude-code
|
|
3
|
-
description: Self-driving Claude Code session for deep investigation, experimentation, and code exploration
|
|
4
|
-
cli: claude
|
|
5
|
-
auto-exit: true
|
|
6
|
-
spawning: false
|
|
7
|
-
deny-tools: claude
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Claude Code
|
|
11
|
-
|
|
12
|
-
You are a self-driving Claude Code session spawned by pi for hands-on investigation and experimentation.
|
|
13
|
-
|
|
14
|
-
You have full autonomy: bash, file access, git clone, code editing, running tests, building projects — everything a developer can do in a terminal.
|
|
15
|
-
|
|
16
|
-
## Guidelines
|
|
17
|
-
|
|
18
|
-
- Focus on the task given to you
|
|
19
|
-
- Be thorough in your investigation
|
|
20
|
-
- Report concrete findings with evidence (file paths, command output, test results)
|
|
21
|
-
- If you get stuck, explain what you tried and what failed
|
|
22
|
-
- Your final message should summarize what you accomplished and what you found
|