Repository navigation
sync: Lauren's pstack 0.15.46 at 0b46ec3, /statechart runs on native Windows (2.5.2) - #86
Merged
Merged
Conversation
…Windows Moves all three components to cursor/plugins 0b46ec3 (pstack #1292). On native Windows, /statechart spawned /bin/sh, and TLC's \r\n line ends hid broken rules from the verdict. Lauren's line readers now split on \r?\n. The group kill moves to kill.ts (taskkill on Windows), the janitor becomes janitor.ts on the command's own runtime instead of a /bin/sh loop and spares a reused Windows pid, java and mise start with windowsHide, and TLC prints UTF-8. SKILL.md gives the node command for native Windows. cursor-team-kit and thermos have no upstream change in this range. The sync updated 6 files and added 2, all under skills/statechart, with no merge and no conflict. No substitution or fork touches them, and each is byte-identical to upstream.
Lauren's pstack 0.15.46 at 0b46ec3: /statechart runs on native Windows. README and the notices name 0b46ec3 and v2.5.2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This keeps t3-pstack on Lauren Tan's pstack. It moves the port to 0.15.46, where
/statechartruns on native Windows. Stacked on #85 (2.5.1, pstack 0.15.45), so the base issync/dd24b67.What Lauren changed
cursor/plugins
0b46ec3(#1292) bumps pstack to 0.15.46 and touches only thestatechartskill. On native Windows,/statechartspawned/bin/shto stop TLC's process group and to clean up after the check, and TLC prints\r\nline ends that the line readers split on\nalone, so the leftover\rhid a broken rule from the verdict.\r?\n: the DOT parser, the reader of TLC's output files, and the reader of its piped output (splitLinesinfrontends/dot.ts).run.tsintokill.ts. It runstaskkill /t /fon Windows and sendsSIGKILLto the process group elsewhere.janitor.ts, run on the command's own runtime, instead of a/bin/shloop. The command tells it when the worker exits. On Windows, where the group does not outlive the worker, the janitor and the command kill it only while it still runs, so they spare a pid Windows has reused.javaandmisestart withwindowsHide, the worker getsTEMPandTMPalong withTMPDIR, and TLC runs with-Dstdout.encoding=UTF-8and-Dstderr.encoding=UTF-8. The commit message leaves out the encoding flags.scripts/statechartis a POSIX shell script, and that on native Windows the command isnode --disable-warning=ExperimentalWarning <skill dir>/scripts/statechart.tson Node 22.18 to 22.x, or 23.6 or later.\r\nverdict names the broken invariant as the\none does.cursor-team-kit and thermos have no change between
dd24b67and0b46ec3, so their pins move with pstack's. The copies underharness/pstack/claude-code/sit outside every synced component.The T3 form
None needed.
bun tools/sync.mjs pstack 0b46ec3updated 6 files and added 2, all underskills/statechart, with no merge and no conflict. No substitution matches the new text (still 139 rules), and none of the 16 forked files changed. Each written file is byte-identical to upstream at0b46ec3, compared withcmpagainst the GitHub contents API. The scripts'package.jsonkeepsfast-checkat 4.5.3, so the rootbun.lockpin stays.2.1.0's CHANGES entry says the skill does not run on native Windows, from reading the source. That no longer holds, though no Windows host ran this release either. README and the three NOTICE files name
0b46ec3andv2.5.2.Checks
On macOS 27.0, at the head of this PR:
bun tools/generate.mjs --check:ok: 14 generated files current, exit 0.bun tools/sync.mjs <component> 0b46ec3 --dry-run: exit 0 for pstack (500 unchanged, 37 excluded, 16 forked, 21 port-only), cursor-team-kit (6 unchanged, 15 excluded) and thermos (5 unchanged, 5 excluded).GIT_CONFIG_GLOBAL=/dev/null bun test tests/ --timeout 30000: 545 pass, 56 skip, 0 fail across 601 tests.skill-scriptsjob runs them (node --test plugins/pstack/skills/*/scripts/test/*.test.ts, Node 22.23.4, no TLC): 303 pass, 70 skip, 1 fail. The failure is the launcher symlink test, which fails the same way on the pre-sync tree, because macOS'sos.tmpdir()sits under the/varsymlink, and passes with a physicalTMPDIR, as 2.1.0 recorded. WithTMPDIR=/private/tmp/...: 304 pass, 70 skip, 0 fail. The 70 skips need TLC. WithTLA2TOOLSandJAVAset to the mise-installed TLC 1.7.4 and Temurin 25, the versions the scripts pin: 407 of 407 pass.@!@!@ENDMSGmarkers intlc.out, and the verdict loses the broken invariantNotOne. On 0.15.46's they pass.T3_PSTACK_E2E=1installer end-to-end test, Claude Code 2.1.328 and Codex 0.170.0: 18 pass, 0 fail.node tools/validate-skills.mjs plugins/pstack/skills:ok: local markdown links stay inside plugins/pstack/skills.markdownlint-cli2@0.18.1on CHANGES.md and README.md: 0 errors.Version
2.5.2 is a patch release: Lauren's fix, with no new skill, capability, or harness. No user has to act. Neither hooks file changes. On Codex,
npx -y github:chhoumann/t3-pstack updateas after every release.Note
Low Risk
Patch release scoped to the statechart skill's local process/line-ending handling; no auth, hooks, or orchestration changes.
Overview
v2.5.2 syncs t3-pstack to Lauren Tan's pstack 0.15.46 (
cursor/plugins0b46ec3). Upstream pins, notices, and version strings move to 2.5.2; the only functional change is thestatechartskill./statechartnow runs on native Windows instead of relying on/bin/shfor cleanup and kill. Line parsers usesplitLines(\r?\n) so TLC output with CRLF still surfaces broken invariants. Process teardown iskill.ts(taskkillon Windows, process-group SIGKILL elsewhere) and a Nodejanitor.tsreplaces the old shell janitor, with Windows-aware logic so reused PIDs are not killed after the worker exits. TLC/Java/mise spawns usewindowsHide, UTF-8 stdout/stderr JVM flags, andTEMP/TMPon the worker. SKILL.md documents the Windows Node invocation.New tests replay the corpus with Windows line endings. No T3 substitution or fork changes—the synced
statechartfiles match upstream byte-for-byte.Reviewed by Cursor Bugbot for commit c5f1a7d. Bugbot is set up for automated code reviews on this repo. Configure here.