Skip to content

restore statechart temp dirs and tests - #18

Merged
caelaxie merged 1 commit into
mainfrom
cursor/statechart-tmpdir-1eb5
Oct 26, 2026
Merged

caelaxie merged 1 commit into
mainfrom
cursor/statechart-tmpdir-1eb5

Conversation

@caelaxie

Copy link
Copy Markdown
Contributor

restore statechart.mjs, tlc-tools.mjs, and statechart.test.mjs from the 0.15.32 pin. temp dirs are mkdtempSync again. the rename preload compiles on any platform and skips with "cannot compile a rename preload".

Closes #7

Open in Web Open in Cursor 

Copy the three scripts from the 0.15.32 pin. Temp dirs use mkdtempSync again, and the rename preload skips with the upstream message.

Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>

@caelaxie caelaxie left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass. statechart.mjs, tlc-tools.mjs, and test/statechart.test.mjs at 630b1da are byte-identical to pstack/skills/statechart/scripts/ at cursor/plugins 99b609a. that's the exact smallest fix from #7. layout fine, install ci green on the head, Closes #7 present. merging.

@caelaxie
caelaxie merged commit 9a2d2ad into main Oct 26, 2026
1 check passed
@cursor

cursor Bot commented Oct 26, 2026

Copy link
Copy Markdown

harness proof

codex npm version: 0.164.0
codex --version: codex-cli 0.164.0

fresh CODEX_HOME, detached worktree of this branch:

codex plugin marketplace add /tmp/pstack-wts/statechart-tmpdir-1eb5 --json
codex plugin add pstack@codex-pstack --json
statechart-tmpdir-1eb5: version=0.15.33 skills=61 missing=- mismatches=0
installed=/tmp/pstack-install-xh9precx/plugins/cache/codex-pstack/pstack/0.15.33

skill exercise:

node --check .agents/skills/statechart/scripts/statechart.mjs
node --check .agents/skills/statechart/scripts/tlc-tools.mjs
node --check .agents/skills/statechart/scripts/test/statechart.test.mjs
node --input-type=module -e 'import "./tlc-tools.mjs"'
timeout 40 node --test --test-name-pattern "does not" .agents/skills/statechart/scripts/test/statechart.test.mjs

syntax checks passed. tlc-tools.mjs imports. the bounded test run:

# tests 10
# pass 5
# fail 0
# skipped 5

the skips are cannot find TLC (no tlc jar on this machine). restored lines are fs.mkdtempSync(path.join(os.tmpdir(), "tlc-")) and skip string cannot compile a rename preload.

codex login status is Not logged in, so codex exec was not started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit: statechart temp-dir and preload tests were edited

2 participants