open-pstack 0.9.158 → 0.9.159
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/plugin/.antigravity-plugin/plugin.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/.github/plugin/plugin.json +1 -1
- package/plugin/.grok-plugin/plugin.json +1 -1
- package/plugin/.muse-plugin/plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/plugin/pi/config.ts +18 -7
- package/plugin/pi/hc-child.ts +10 -5
- package/plugin/skills/poteto-mode/references/agy-tools.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-pstack",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.159",
|
|
4
4
|
"description": "Install pstack into the agent harnesses on this machine: Claude Code, Codex, Pi, Copilot, Muse, OMP, Kimi, Grok, MiniMax, OpenCode, Antigravity, and the shared skills directory.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pstack",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.159",
|
|
4
4
|
"description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Ported from cursor/plugins/pstack to Antigravity. Original pstack by Lauren Tan (poteto).",
|
|
5
5
|
"author": "Michael Denyer",
|
|
6
6
|
"logo": "assets/pstack-icon.png",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pstack",
|
|
3
3
|
"displayName": "pstack (Claude Code port)",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.159",
|
|
5
5
|
"description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Ported from cursor/plugins/pstack to Claude Code. Original pstack by Lauren Tan (poteto).",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Michael Denyer",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pstack",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.159",
|
|
4
4
|
"description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Codex port of the Claude Code plugin; skills are shared, tool names resolve via skills/poteto-mode/references/codex-tools.md. Original pstack by Lauren Tan (poteto).",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Michael Denyer",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pstack",
|
|
3
3
|
"displayName": "pstack (GitHub Copilot port)",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.159",
|
|
5
5
|
"description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. Ported from cursor/plugins/pstack to GitHub Copilot CLI and app. Original pstack by Lauren Tan (poteto).",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Michael Denyer",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "pstack",
|
|
4
4
|
"displayName": "pstack (Muse port)",
|
|
5
|
-
"version": "0.9.
|
|
5
|
+
"version": "0.9.159",
|
|
6
6
|
"description": "If you want to go fast, go deep first. pstack helps you write less, but higher quality code. Rigorous agent workflows you can parallelize with confidence. Muse port of the Claude Code plugin; skills are shared, tool names resolve via skills/poteto-mode/references/muse-tools.md. Original pstack by Lauren Tan (poteto).",
|
|
7
7
|
"compat": {
|
|
8
8
|
"source": "native",
|
package/plugin/package.json
CHANGED
package/plugin/pi/config.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
|
2
2
|
import { execFileSync } from "node:child_process";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
|
-
import {
|
|
5
|
+
import { dirname, join, win32 } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { type Static, Type } from "typebox";
|
|
8
8
|
import { Value } from "typebox/value";
|
|
@@ -32,15 +32,26 @@ export interface Settings {
|
|
|
32
32
|
exitGraceMs: number;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
const isBunVirtualPath = (path: string, execPath: string) => {
|
|
36
|
+
const normalized = path.replaceAll("\\", "/");
|
|
37
|
+
if (normalized.startsWith("/$bunfs/")) return true;
|
|
38
|
+
const runtime = win32.basename(execPath).toLowerCase();
|
|
39
|
+
return !/^(node|bun)(\.exe)?$/.test(runtime) && /^[A-Za-z]:\/~BUN\//i.test(normalized);
|
|
40
|
+
};
|
|
41
|
+
|
|
35
42
|
// Pi re-runs itself for children when it can: the same runtime and CLI script,
|
|
36
43
|
// so a child never picks up a different pi from PATH.
|
|
37
|
-
function piInvocation(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
44
|
+
export function piInvocation({ execPath = process.execPath, argv = process.argv, fileExists = existsSync }: {
|
|
45
|
+
execPath?: string;
|
|
46
|
+
argv?: string[];
|
|
47
|
+
fileExists?: (path: string) => boolean;
|
|
48
|
+
} = {}): Settings["pi"] {
|
|
49
|
+
const script = argv[1];
|
|
50
|
+
if (script && !isBunVirtualPath(script, execPath) && fileExists(script)) {
|
|
51
|
+
return { command: execPath, args: [script] };
|
|
41
52
|
}
|
|
42
|
-
const exe = basename(
|
|
43
|
-
return /^(node|bun)(\.exe)?$/.test(exe) ? { command: "pi", args: [] } : { command:
|
|
53
|
+
const exe = win32.basename(execPath).toLowerCase();
|
|
54
|
+
return /^(node|bun)(\.exe)?$/.test(exe) ? { command: "pi", args: [] } : { command: execPath, args: [] };
|
|
44
55
|
}
|
|
45
56
|
|
|
46
57
|
// readDepth is called on each use: pi parses extension flags after it loads
|
package/plugin/pi/hc-child.ts
CHANGED
|
@@ -49,6 +49,10 @@ export interface HcOptions {
|
|
|
49
49
|
onStart: (pid: number) => void;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export function terminalTermination(platform: NodeJS.Platform, pid: number | undefined): { kind: "hc" } | { kind: "process-group"; pid: number } {
|
|
53
|
+
return platform === "win32" || pid === undefined ? { kind: "hc" } : { kind: "process-group", pid };
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
export class HcChild {
|
|
53
57
|
readonly pid = undefined;
|
|
54
58
|
readonly activity = undefined;
|
|
@@ -85,8 +89,9 @@ export class HcChild {
|
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
signal(signal: NodeJS.Signals): void {
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
const termination = terminalTermination(process.platform, this.terminalPid);
|
|
93
|
+
if (termination.kind === "hc") spawn("hc", ["kill", this.name], { detached: true, stdio: "ignore" }).unref();
|
|
94
|
+
else signalGroup(termination.pid, signal);
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
private async drive(run: string[], opts: HcOptions, prompt: string): Promise<ChildExit> {
|
|
@@ -115,9 +120,9 @@ export class HcChild {
|
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
private stop(graceMs: number): void {
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
else void terminateGroup(pid, () => alive(pid), graceMs);
|
|
123
|
+
const termination = terminalTermination(process.platform, this.terminalPid);
|
|
124
|
+
if (termination.kind === "hc") void quiet(["kill", this.name]);
|
|
125
|
+
else void terminateGroup(termination.pid, () => alive(termination.pid), graceMs);
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
private async turn(prompt: string): Promise<WaitResult> {
|
|
@@ -18,7 +18,7 @@ The Antigravity CLI (`agy`) loads the native pstack plugin manifest, the skills,
|
|
|
18
18
|
| Wait for a subagent result | End the turn (call no more tools). Antigravity resumes the session automatically when a subagent sends a message or finishes. |
|
|
19
19
|
| Continue or steer a subagent (`SendMessage`) | `send_message` with `Recipient` set to the subagent's `conversationId` and `Message` |
|
|
20
20
|
| List or stop subagents | `manage_subagents` with `Action: "list"`, `"kill"`, or `"kill_all"` and `ConversationIds` |
|
|
21
|
-
| Track tasks (the todolist; `TaskCreate` / `TaskUpdate`, or `TodoWrite` on Claude Code) |
|
|
21
|
+
| Track tasks (the todolist; `TaskCreate` / `TaskUpdate`, or `TodoWrite` on Claude Code) | `update_steps` with the whole `steps` list, each with a `title` and a `status` (`pending`, `in_progress`, `done`, `skipped`, `failed`); a skipped step keeps its place with status `skipped`. It takes at most 12 steps with titles of 2 to 6 words, so give it that short plan, and keep the uncommitted `todo.md` checklist poteto-mode describes as well (`.audit/<task-slug>.todo.md` when sessions share a checkout), with the playbook steps verbatim and each `skip: <reason>` line. |
|
|
22
22
|
| Ask the human a fixed-choice question (`AskUserQuestion`) | `ask_question` with `questions` (`question`, `options`, `is_multi_select`) |
|
|
23
23
|
| Schedule a self-paced re-invocation (`ScheduleWakeup`, the `loop` skill) | `schedule` with `DurationSeconds` (one-shot timer) or `CronExpression` (recurring schedule) and `Prompt` |
|
|
24
24
|
| Call an MCP tool (`mcp__<server>__<tool>`) | Call the MCP tool directly as declared in the session's tool list |
|