open-pstack 0.9.156 → 0.9.157

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-pstack",
3
- "version": "0.9.156",
3
+ "version": "0.9.157",
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.156",
3
+ "version": "0.9.157",
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.156",
4
+ "version": "0.9.157",
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.156",
3
+ "version": "0.9.157",
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.156",
4
+ "version": "0.9.157",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pstack",
3
- "version": "0.9.156",
3
+ "version": "0.9.157",
4
4
  "description": "pstack workflows and skills for Grok Build",
5
5
  "skills": [
6
6
  "./skills",
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "pstack",
4
4
  "displayName": "pstack (Muse port)",
5
- "version": "0.9.156",
5
+ "version": "0.9.157",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pstack",
3
- "version": "0.9.156",
3
+ "version": "0.9.157",
4
4
  "private": true,
5
5
  "omp": {
6
6
  "extensions": ["./omp/index.mjs"]
@@ -114,6 +114,24 @@ Affected skill entry points point here. Most skills need only the tables above.
114
114
 
115
115
  `skills/poteto-mode/scripts/` ships the `watch-pr` PR watcher and `worktree-audit.mjs`. The `watch-pr/ship-pr` command owns pending-merge inspection and cancellation; `resume.mjs` owns the shared checkpoint locator described in [Resume storage](resume-storage.md). These scripts use bun and Node.js and run the same on Codex; invoke them through `shell`. They need `bun` and `gh`, or `origin` when the forge is Origin. Run `worktree-audit.mjs` with `node`, as its shebang does. The audit follows each link in a worktree's ancestor directories with `stat` and matches it by the directory it lands on, under bun and node alike. A worktree whose own path bun cannot resolve loses its last chat and lands in `review`. A dangling or looping link is ignored. Any other link that `stat` cannot follow puts every worktree under the link's directory in `review`, with a warning that names the link. `worktree-audit.mjs` scans Codex sessions under `$CODEX_HOME/sessions` and `$CODEX_HOME/archived_sessions` (default `~/.codex`), along with any Claude Code or Pi transcript directory that exists. It imports the transcript walker from `skills/reflect/scripts/find-transcript.mjs`, so keep the `reflect` skill installed beside `poteto-mode`.
116
116
 
117
+ ## Sandbox writes under the Git common directory
118
+
119
+ The `workspace-write` sandbox makes `.git` read-only inside each writable root. A linked worktree's Git common directory is outside its writable roots. [Resume storage](resume-storage.md) keeps checkpoints under the common directory, so `resume.mjs begin`, the note and artifact writes into the checkpoint directory, and `resume.mjs publish` fail there with `EPERM`. `resume.mjs read` only reads, so it works in the sandbox. Treat any other pstack write under the Git common directory the same way.
120
+
121
+ - With approval policy `on-request`, run each of those writes as a `shell` command with `sandbox_permissions: "require_escalated"` and a `justification` that asks the user to allow saving the pstack checkpoint.
122
+ - With approval policy `never`, Codex rejects escalated commands. To save checkpoints in unattended runs, the user defines a permissions profile in `~/.codex/config.toml` that grants the store, one line per repository. The path is the `pstack` folder inside the directory that `git rev-parse --path-format=absolute --git-common-dir` prints.
123
+
124
+ ```toml
125
+ [permissions.pstack]
126
+ extends = ":workspace"
127
+
128
+ [permissions.pstack.filesystem]
129
+ "/absolute/path/to/repo/.git/pstack" = "write"
130
+ ```
131
+
132
+ Select the profile for each run with `codex exec -c 'default_permissions="pstack"'`, and leave out `-s`/`--sandbox`, which overrides the profile and drops the grant. A profile ignores the `[sandbox_workspace_write]` table, such as its `writable_roots` and `network_access`, so put any setting the run needs into the profile. A relative `.git/pstack` entry under `":project_roots"` works only in a primary checkout. In a linked worktree `.git` is a file, and Codex cannot start the sandbox for any command.
133
+ - If neither route is available, tell the user the checkpoint was not saved. A failed `begin` or `publish` is not a ready checkpoint.
134
+
117
135
  ## Instructions file
118
136
 
119
137
  Where a pstack skill says "your instructions file", on Codex that is `AGENTS.md` (project root, plus `~/.codex/AGENTS.md` global). On Claude Code it is `CLAUDE.md`.