dsh-pstack 0.3.0-beta.1 → 0.3.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/README.md +122 -76
- package/README.zh.md +116 -70
- package/assets/agent-presets.png +0 -0
- package/assets/plugin-configure.png +0 -0
- package/assets/plugin-recommended.png +0 -0
- package/assets/plugin-roles.png +0 -0
- package/assets/session-preset.png +0 -0
- package/cordis.patch.yml +332 -24
- package/dist/budget.d.mts +82 -0
- package/dist/budget.mjs +293 -0
- package/dist/catalogue-wgVaGeUx.d.mts +27 -0
- package/dist/catalogue.d.mts +2 -0
- package/dist/catalogue.mjs +116 -0
- package/dist/client.js +4072 -0
- package/dist/index.d.mts +2 -87
- package/dist/index.mjs +3 -394
- package/dist/models.d.mts +11 -40
- package/dist/models.mjs +47 -107
- package/dist/paths.d.mts +13 -0
- package/dist/paths.mjs +26 -0
- package/dist/poteto-mode.d.mts +37 -0
- package/dist/poteto-mode.mjs +61 -0
- package/dist/preset-copy.d.mts +12 -0
- package/dist/preset-copy.mjs +64 -0
- package/dist/preset.d.mts +31 -0
- package/dist/preset.mjs +51 -0
- package/dist/pstack/docs/harness/dsh.md +40 -40
- package/dist/pstack/plugin.json +21 -0
- package/dist/pstack/skills/poteto-mode/scripts/bootstrap.ts +62 -0
- package/dist/pstack/skills/poteto-mode/scripts/bun.lock +67 -0
- package/dist/pstack/skills/poteto-mode/scripts/check-plan.mjs +70 -83
- package/dist/pstack/skills/poteto-mode/scripts/{check-plan.test.mjs → check-plan.test.ts} +24 -42
- package/dist/pstack/skills/poteto-mode/scripts/package.json +16 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/cli.ts +223 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/github.ts +726 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/policy.ts +842 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/render.ts +169 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/types.ts +414 -0
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
- package/dist/pstack/skills/poteto-mode/scripts/worktree-audit.sh +134 -0
- package/dist/pstack/skills/show-me-your-work/scripts/log.sh +42 -0
- package/dist/pstack/skills/statechart/scripts/backends/cfg.ts +33 -0
- package/dist/pstack/skills/statechart/scripts/backends/mermaid.ts +201 -0
- package/dist/pstack/skills/statechart/scripts/backends/plain-text.ts +72 -0
- package/dist/pstack/skills/statechart/scripts/backends/report.ts +177 -0
- package/dist/pstack/skills/statechart/scripts/frontends/config.ts +276 -0
- package/dist/pstack/skills/statechart/scripts/frontends/dot.ts +74 -0
- package/dist/pstack/skills/statechart/scripts/frontends/marks.ts +93 -0
- package/dist/pstack/skills/statechart/scripts/frontends/messages.ts +52 -0
- package/dist/pstack/skills/statechart/scripts/frontends/spec.ts +114 -0
- package/dist/pstack/skills/statechart/scripts/frontends/trace.ts +24 -0
- package/dist/pstack/skills/statechart/scripts/frontends/value.ts +166 -0
- package/dist/pstack/skills/statechart/scripts/frontends/verdict.ts +40 -0
- package/dist/pstack/skills/statechart/scripts/frontends/view.ts +119 -0
- package/dist/pstack/skills/statechart/scripts/ir.ts +547 -0
- package/dist/pstack/skills/statechart/scripts/package.json +11 -0
- package/dist/pstack/skills/statechart/scripts/passes/annotate.ts +128 -0
- package/dist/pstack/skills/statechart/scripts/passes/label.ts +269 -0
- package/dist/pstack/skills/statechart/scripts/passes/lift.ts +85 -0
- package/dist/pstack/skills/statechart/scripts/passes/loop-check.ts +68 -0
- package/dist/pstack/skills/statechart/scripts/passes/paths.ts +60 -0
- package/dist/pstack/skills/statechart/scripts/passes/reach.ts +135 -0
- package/dist/pstack/skills/statechart/scripts/passes/region-check.ts +97 -0
- package/dist/pstack/skills/statechart/scripts/passes/regions.ts +295 -0
- package/dist/pstack/skills/statechart/scripts/pipeline.ts +76 -0
- package/dist/pstack/skills/statechart/scripts/run.ts +481 -0
- package/dist/pstack/skills/statechart/scripts/statechart +29 -0
- package/dist/pstack/skills/statechart/scripts/statechart.ts +164 -0
- package/dist/pstack/skills/statechart/scripts/test/ConfigOracle.java +63 -0
- package/dist/pstack/skills/statechart/scripts/test/chart.test.ts +1210 -0
- package/dist/pstack/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
- package/dist/pstack/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
- package/dist/pstack/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
- package/dist/pstack/skills/statechart/scripts/test/cli.test.ts +1314 -0
- package/dist/pstack/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/chart.mmd +27 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
- package/dist/pstack/skills/statechart/scripts/test/corpus.test.ts +403 -0
- package/dist/pstack/skills/statechart/scripts/test/differential.test.ts +565 -0
- package/dist/pstack/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
- package/dist/pstack/skills/statechart/scripts/test/grid/Grid.tla +9 -0
- package/dist/pstack/skills/statechart/scripts/test/grid/sany.out +2 -0
- package/dist/pstack/skills/statechart/scripts/test/java.ts +63 -0
- package/dist/pstack/skills/statechart/scripts/test/labels.ts +643 -0
- package/dist/pstack/skills/statechart/scripts/test/messages.test.ts +212 -0
- package/dist/pstack/skills/statechart/scripts/test/pipeline.test.ts +270 -0
- package/dist/pstack/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
- package/dist/pstack/skills/statechart/scripts/test/render.test.ts +81 -0
- package/dist/pstack/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
- package/dist/pstack/skills/statechart/scripts/test/tlc.ts +158 -0
- package/dist/pstack/skills/statechart/scripts/tsconfig.json +11 -0
- package/dist/pstack/skills/statechart/scripts/worker.ts +35 -0
- package/dist/readonly.d.mts +3 -0
- package/dist/readonly.mjs +9 -0
- package/dist/role-catalog.d.mts +11 -24
- package/dist/role-catalog.mjs +17 -32
- package/dist/role-config.d.mts +41 -0
- package/dist/role-config.mjs +112 -0
- package/dist/role-editor.d.mts +25 -0
- package/dist/role-editor.mjs +372 -0
- package/dist/role-file-CIVHnhBg.d.mts +53 -0
- package/dist/role-file.d.mts +2 -0
- package/dist/role-file.mjs +121 -0
- package/dist/{role-manifest-8OERX9-s.d.mts → role-manifest-D1npMjqZ.d.mts} +21 -10
- package/dist/role-manifest.d.mts +2 -0
- package/dist/{role-manifest-79cnFfDM.mjs → role-manifest.mjs} +20 -16
- package/dist/role-remote.d.mts +23 -0
- package/dist/role-remote.mjs +106 -0
- package/dist/{roles.d.mts → role-service.d.mts} +8 -4
- package/dist/role-service.mjs +43 -0
- package/dist/role-wire.d.mts +54 -0
- package/dist/role-wire.mjs +127 -0
- package/dist/route-7SqXDYrL.d.mts +36 -0
- package/dist/route.d.mts +2 -0
- package/dist/route.mjs +78 -0
- package/dist/skill.d.mts +9 -23
- package/dist/skill.mjs +28 -37
- package/dist/skills/authored/docs-drift/SKILL.md +4 -4
- package/dist/skills/authored/docs-drift/SKILL.zh.md +4 -4
- package/dist/skills/vendored/control-cli/SKILL.md +109 -0
- package/dist/skills/vendored/control-ui/SKILL.md +109 -0
- package/dist/skills/vendored/deslop/SKILL.md +22 -0
- package/dist/subagent.d.mts +60 -169
- package/dist/subagent.mjs +344 -587
- package/dist/wire-error-D_r-UW4w.d.mts +5 -0
- package/dist/wire-error.d.mts +2 -0
- package/dist/wire-error.mjs +9 -0
- package/locale/en.json +1 -1
- package/package.json +51 -35
- package/assets/pstack-config-entry.png +0 -0
- package/dist/client.mjs +0 -2482
- package/dist/client.mjs.map +0 -1
- package/dist/host-contract-CUPSpeNk.d.mts +0 -22
- package/dist/paths-yji9SNak.mjs +0 -47
- package/dist/pstack/skills/poteto-mode/scripts/expect.mjs +0 -254
- package/dist/pstack/skills/poteto-mode/scripts/support.mjs +0 -93
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/cli.mjs +0 -123
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/cli.test.mjs +0 -217
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.mjs +0 -119
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/github.mjs +0 -626
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/github.test.mjs +0 -521
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/policy.mjs +0 -657
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/policy.test.mjs +0 -523
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/render.mjs +0 -106
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/types.mjs +0 -9
- package/dist/pstack/skills/poteto-mode/scripts/watch-pr/watch-pr.mjs +0 -5
- package/dist/pstack/skills/poteto-mode/scripts/worktree-audit.mjs +0 -668
- package/dist/pstack/skills/poteto-mode/scripts/worktree-audit.test.mjs +0 -134
- package/dist/pstack/skills/show-me-your-work/scripts/log.mjs +0 -106
- package/dist/pstack/skills/show-me-your-work/scripts/log.test.mjs +0 -56
- package/dist/pstack/skills/statechart/scripts/backends/cfg.mjs +0 -31
- package/dist/pstack/skills/statechart/scripts/backends/mermaid.mjs +0 -186
- package/dist/pstack/skills/statechart/scripts/backends/plain-text.mjs +0 -62
- package/dist/pstack/skills/statechart/scripts/backends/report.mjs +0 -84
- package/dist/pstack/skills/statechart/scripts/frontends/config.mjs +0 -268
- package/dist/pstack/skills/statechart/scripts/frontends/dot.mjs +0 -67
- package/dist/pstack/skills/statechart/scripts/frontends/marks.mjs +0 -94
- package/dist/pstack/skills/statechart/scripts/frontends/messages.mjs +0 -48
- package/dist/pstack/skills/statechart/scripts/frontends/spec.mjs +0 -101
- package/dist/pstack/skills/statechart/scripts/frontends/trace.mjs +0 -39
- package/dist/pstack/skills/statechart/scripts/frontends/value.mjs +0 -180
- package/dist/pstack/skills/statechart/scripts/frontends/verdict.mjs +0 -40
- package/dist/pstack/skills/statechart/scripts/frontends/view.mjs +0 -99
- package/dist/pstack/skills/statechart/scripts/ir.mjs +0 -277
- package/dist/pstack/skills/statechart/scripts/passes/annotate.mjs +0 -92
- package/dist/pstack/skills/statechart/scripts/passes/label.mjs +0 -210
- package/dist/pstack/skills/statechart/scripts/passes/lift.mjs +0 -84
- package/dist/pstack/skills/statechart/scripts/passes/loop-check.mjs +0 -47
- package/dist/pstack/skills/statechart/scripts/passes/paths.mjs +0 -72
- package/dist/pstack/skills/statechart/scripts/passes/reach.mjs +0 -135
- package/dist/pstack/skills/statechart/scripts/passes/region-check.mjs +0 -82
- package/dist/pstack/skills/statechart/scripts/passes/regions.mjs +0 -268
- package/dist/pstack/skills/statechart/scripts/pipeline.mjs +0 -72
- package/dist/pstack/skills/statechart/scripts/run.mjs +0 -440
- package/dist/pstack/skills/statechart/scripts/statechart.mjs +0 -155
- package/dist/pstack/skills/statechart/scripts/statechart.test.mjs +0 -198
- package/dist/pstack/skills/statechart/scripts/worker.mjs +0 -31
- package/dist/remote.d.mts +0 -27
- package/dist/remote.mjs +0 -235
- package/dist/role-config-a4JpVdc-.mjs +0 -379
- package/dist/role-wire-CAJsVA6e.d.mts +0 -54
- package/dist/roles.mjs +0 -293
- package/dist/script.d.mts +0 -91
- package/dist/script.mjs +0 -485
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { CHECK_DEADLOCK } from "../ir.mjs";
|
|
2
|
-
// runtime/skills/statechart/scripts/frontends/config.ts
|
|
3
|
-
const isListField = (field) => field === "invariants" || field === "properties" || field === "constraints" || field === "actionConstraints";
|
|
4
|
-
const SECTIONS = /* @__PURE__ */ new Map();
|
|
5
|
-
for (const section of [
|
|
6
|
-
{
|
|
7
|
-
key: "CONSTANT",
|
|
8
|
-
plural: "CONSTANTS"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
key: CHECK_DEADLOCK,
|
|
12
|
-
field: "checkDeadlock"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
key: "INIT",
|
|
16
|
-
field: "init",
|
|
17
|
-
undefinedNoun: "initial predicate"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
key: "NEXT",
|
|
21
|
-
field: "next",
|
|
22
|
-
undefinedNoun: "next state action"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
key: "SPECIFICATION",
|
|
26
|
-
field: "spec",
|
|
27
|
-
undefinedNoun: "name"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
key: "VIEW",
|
|
31
|
-
field: "view",
|
|
32
|
-
undefinedNoun: "view function"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
key: "SYMMETRY",
|
|
36
|
-
field: "symmetry",
|
|
37
|
-
undefinedNoun: "symmetry function"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
key: "TYPE",
|
|
41
|
-
field: "type"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
key: "TYPE_CONSTRAINT",
|
|
45
|
-
field: "typeConstraint"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
key: "INVARIANT",
|
|
49
|
-
plural: "INVARIANTS",
|
|
50
|
-
field: "invariants",
|
|
51
|
-
undefinedNoun: "invariant"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
key: "PROPERTY",
|
|
55
|
-
plural: "PROPERTIES",
|
|
56
|
-
field: "properties",
|
|
57
|
-
undefinedNoun: "property"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: "CONSTRAINT",
|
|
61
|
-
plural: "CONSTRAINTS",
|
|
62
|
-
field: "constraints",
|
|
63
|
-
undefinedNoun: "constraint"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
key: "ACTION_CONSTRAINT",
|
|
67
|
-
plural: "ACTION_CONSTRAINTS",
|
|
68
|
-
field: "actionConstraints",
|
|
69
|
-
undefinedNoun: "action constraint"
|
|
70
|
-
}
|
|
71
|
-
]) {
|
|
72
|
-
SECTIONS.set(section.key, section);
|
|
73
|
-
if (section.plural) SECTIONS.set(section.plural, section);
|
|
74
|
-
}
|
|
75
|
-
const NAME = /^\w*[A-Za-z]\w*$/;
|
|
76
|
-
const WORD = /\w+/y;
|
|
77
|
-
const CONFIG_HOLDS = "A config can hold only names, numbers, strings, comments, and the symbols { } ( ) [ ] , = ! <-.";
|
|
78
|
-
const shown = (c) => {
|
|
79
|
-
const code = c.codePointAt(0) ?? 0;
|
|
80
|
-
const hex = `U+${code.toString(16).toUpperCase().padStart(4, "0")}`;
|
|
81
|
-
if (code < 32 || code === 127) return hex;
|
|
82
|
-
return code < 127 ? `"${c}"` : `"${c}" (${hex})`;
|
|
83
|
-
};
|
|
84
|
-
function tokenizeConfig(text, cannot) {
|
|
85
|
-
if (text.startsWith("")) throw cannot(1, "The file starts with a byte order mark. Save it as UTF-8 without one.");
|
|
86
|
-
const tokens = [];
|
|
87
|
-
let line = 1;
|
|
88
|
-
let last = 1;
|
|
89
|
-
let i = 0;
|
|
90
|
-
const skip = (to) => {
|
|
91
|
-
for (; i < to; i++) {
|
|
92
|
-
last = line;
|
|
93
|
-
if (text[i] === "\n" || text[i] === "\r" && text[i + 1] !== "\n") line++;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const push = (image) => {
|
|
97
|
-
tokens.push({
|
|
98
|
-
image,
|
|
99
|
-
line
|
|
100
|
-
});
|
|
101
|
-
skip(i + image.length);
|
|
102
|
-
};
|
|
103
|
-
while (i < text.length) {
|
|
104
|
-
const c = text[i];
|
|
105
|
-
const two = text.slice(i, i + 2);
|
|
106
|
-
const start = line;
|
|
107
|
-
if (c === " " || c === " " || c === "\n" || c === "\r") skip(i + 1);
|
|
108
|
-
else if (two === "\\*") {
|
|
109
|
-
const end = text.slice(i).search(/[\n\r]/);
|
|
110
|
-
skip(end < 0 ? text.length : i + end);
|
|
111
|
-
} else if (two === "(*") {
|
|
112
|
-
const marks = /\(\*|\*\)/g;
|
|
113
|
-
let depth = 0;
|
|
114
|
-
do {
|
|
115
|
-
marks.lastIndex = i;
|
|
116
|
-
const m = marks.exec(text);
|
|
117
|
-
if (!m) throw cannot(start, "A comment starts here and does not end.");
|
|
118
|
-
depth += m[0] === "(*" ? 1 : -1;
|
|
119
|
-
skip(m.index + 2);
|
|
120
|
-
} while (depth);
|
|
121
|
-
} else if (c === "\"") {
|
|
122
|
-
let j = i + 1;
|
|
123
|
-
while (text[j] !== "\"") {
|
|
124
|
-
const ch = text[j];
|
|
125
|
-
if (ch === void 0) throw cannot(start, "A string starts here and does not end.");
|
|
126
|
-
if (ch === "\n" || ch === "\r") throw cannot(start, "A string starts here and does not end on its line. Write \\n for a line break in a string.");
|
|
127
|
-
if (ch === "\0") throw cannot(start, "A string has the character U+0000.");
|
|
128
|
-
if (ch === "\\" && text[j + 1] !== void 0 && !"\"\\ntrf".includes(text[j + 1])) throw cannot(start, `A string has a backslash before ${shown(text[j + 1])}. A string can use only the escapes \\" \\\\ \\n \\t \\r \\f.`);
|
|
129
|
-
j += ch === "\\" ? 2 : 1;
|
|
130
|
-
}
|
|
131
|
-
push(text.slice(i, j + 1));
|
|
132
|
-
} else if (/\w/.test(c)) {
|
|
133
|
-
WORD.lastIndex = i;
|
|
134
|
-
const word = WORD.exec(text)?.[0] ?? c;
|
|
135
|
-
if (/^[WS]F_/.test(word)) throw cannot(start, `TLC reads ${word.slice(0, 3)} at the start of a word as a TLA+ keyword, so it cannot read ${word} as a name.`);
|
|
136
|
-
if (!/[A-Za-z]/.test(word) && word !== "_") {
|
|
137
|
-
if (/\D/.test(word)) throw cannot(start, `TLC splits ${word} into ${word.match(/\d+|_/g)?.join(" ")}, because a name needs a letter.`);
|
|
138
|
-
if (Number(word) > 2147483647) throw cannot(start, `TLC cannot read a number above 2147483647, such as ${word}.`);
|
|
139
|
-
}
|
|
140
|
-
push(word);
|
|
141
|
-
} else if (two === "<-") push(two);
|
|
142
|
-
else if ([
|
|
143
|
-
"[]",
|
|
144
|
-
"]_",
|
|
145
|
-
"==",
|
|
146
|
-
"=<",
|
|
147
|
-
"!!"
|
|
148
|
-
].includes(two)) throw cannot(start, `TLC reads ${two} as one TLA+ symbol, and a config cannot hold it.`);
|
|
149
|
-
else if ("{}()[],=!".includes(c)) push(c);
|
|
150
|
-
else {
|
|
151
|
-
const ch = String.fromCodePoint(text.codePointAt(i) ?? 0);
|
|
152
|
-
const where = ch > "" ? " outside a string" : "";
|
|
153
|
-
throw cannot(start, `It cannot read the character ${shown(ch)}${where}. ${CONFIG_HOLDS}`);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return {
|
|
157
|
-
tokens,
|
|
158
|
-
end: last
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
function readConfig({ file, text }) {
|
|
162
|
-
const refuse = (line, words) => /* @__PURE__ */ new Error(`TLC refuses the config ${file} at line ${line}. ${words}`);
|
|
163
|
-
const cannot = (line, words) => /* @__PURE__ */ new Error(`The command cannot read the config ${file} at line ${line}. ${words}`);
|
|
164
|
-
const { tokens, end } = tokenizeConfig(text, cannot);
|
|
165
|
-
const eof = {
|
|
166
|
-
image: "",
|
|
167
|
-
line: end
|
|
168
|
-
};
|
|
169
|
-
let at = 0;
|
|
170
|
-
const next = () => tokens[at++] ?? eof;
|
|
171
|
-
let deferred;
|
|
172
|
-
const defer = (error) => deferred ??= error;
|
|
173
|
-
const defined = (t, undefinedNoun) => {
|
|
174
|
-
if (!NAME.test(t.image)) defer(refuse(t.line, `The ${undefinedNoun} ${t.image} specified in the configuration file is not defined in the specification.`));
|
|
175
|
-
};
|
|
176
|
-
const name = (t, what) => {
|
|
177
|
-
if (SECTIONS.has(t.image)) defer(cannot(t.line, `TLC would read the keyword ${t.image} as ${what}.`));
|
|
178
|
-
else if (!NAME.test(t.image)) defer(cannot(t.line, `TLC would read ${t.image} as ${what}, and it is not a name.`));
|
|
179
|
-
};
|
|
180
|
-
const value = (t) => {
|
|
181
|
-
if (t === eof) throw refuse(t.line, "It was expecting a value, but did not find it.");
|
|
182
|
-
if (t.image === "{") {
|
|
183
|
-
t = next();
|
|
184
|
-
if (t.image === "}") return;
|
|
185
|
-
value(t);
|
|
186
|
-
while ((t = next()).image === ",") value(next());
|
|
187
|
-
if (t.image !== "}") throw refuse(t.line, "It was expecting }, but did not find it.");
|
|
188
|
-
} else if (SECTIONS.has(t.image)) defer(cannot(t.line, `TLC would read the keyword ${t.image} as a value.`));
|
|
189
|
-
else if (!NAME.test(t.image) && !/^(\d+|".*")$/.test(t.image)) defer(cannot(t.line, `TLC would read ${t.image} as a value. A value is a name, a number, a string, or a set in braces.`));
|
|
190
|
-
};
|
|
191
|
-
const constant = (t, loc) => {
|
|
192
|
-
name(t, "a constant name");
|
|
193
|
-
for (t = next(); t.image === "!"; t = next()) name(t = next(), "a constant name");
|
|
194
|
-
if (t.image === "<-") {
|
|
195
|
-
t = next();
|
|
196
|
-
if (t.image === "[") {
|
|
197
|
-
t = next();
|
|
198
|
-
if (t === eof) throw refuse(t.line, "Expected an identifier after <-[.");
|
|
199
|
-
name(t, "a module name");
|
|
200
|
-
t = next();
|
|
201
|
-
if (t.image !== "]") throw refuse(t.line, "It was expecting ], but did not find it.");
|
|
202
|
-
t = next();
|
|
203
|
-
if (t === eof) throw refuse(t.line, "Expected an identifier after <-[mod].");
|
|
204
|
-
} else if (t === eof) throw refuse(t.line, "Expected an identifier after <-.");
|
|
205
|
-
name(t, "the name after <-");
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
if (t.image === "(") {
|
|
209
|
-
value(next());
|
|
210
|
-
while ((t = next()).image === ",") value(next());
|
|
211
|
-
if (t.image !== ")") throw refuse(loc, "TLC gives no reason here. An operator's arguments are one or more values in ( ), with commas between them.");
|
|
212
|
-
t = next();
|
|
213
|
-
}
|
|
214
|
-
if (t.image !== "=") throw refuse(t.line, "It was expecting = or <-, but did not find it.");
|
|
215
|
-
t = next();
|
|
216
|
-
if (t.image === "[") {
|
|
217
|
-
t = next();
|
|
218
|
-
if (t === eof) throw refuse(t.line, "Expected an identifier after =[.");
|
|
219
|
-
name(t, "a module name");
|
|
220
|
-
t = next();
|
|
221
|
-
if (t.image !== "]") throw refuse(t.line, "It was expecting ], but did not find it.");
|
|
222
|
-
t = next();
|
|
223
|
-
}
|
|
224
|
-
value(t);
|
|
225
|
-
};
|
|
226
|
-
const config = {
|
|
227
|
-
sections: [],
|
|
228
|
-
invariants: [],
|
|
229
|
-
properties: [],
|
|
230
|
-
constraints: [],
|
|
231
|
-
actionConstraints: []
|
|
232
|
-
};
|
|
233
|
-
for (let t = next(); t !== eof;) {
|
|
234
|
-
const keyword = t;
|
|
235
|
-
const section = SECTIONS.get(keyword.image);
|
|
236
|
-
if (!section) throw refuse(t.line, "It was expecting a keyword, but did not find it.");
|
|
237
|
-
const { key, field, undefinedNoun } = section;
|
|
238
|
-
const begin = at;
|
|
239
|
-
if (field === void 0) for (t = next(); t !== eof && !SECTIONS.has(t.image); t = next()) constant(t, keyword.line);
|
|
240
|
-
else if (isListField(field)) for (t = next(); t !== eof && !SECTIONS.has(t.image); t = next()) {
|
|
241
|
-
config[field].push(t.image);
|
|
242
|
-
defined(t, undefinedNoun);
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
t = next();
|
|
246
|
-
if (t === eof) throw refuse(keyword.line, `The keyword ${keyword.image} was not followed by an identifier.`);
|
|
247
|
-
if (field === "checkDeadlock" && t.image !== "TRUE" && t.image !== "FALSE") throw refuse(t.line, "It was expecting TRUE or FALSE, but did not find it.");
|
|
248
|
-
if (config[field] !== void 0) throw refuse(keyword.line, `The keyword ${keyword.image} appeared twice.`);
|
|
249
|
-
if (field === "checkDeadlock") config[field] = t.image === "TRUE";
|
|
250
|
-
else {
|
|
251
|
-
config[field] = t.image;
|
|
252
|
-
if (SECTIONS.has(t.image)) defer(cannot(t.line, `TLC would read the keyword ${t.image} as the name after ${key}.`));
|
|
253
|
-
else if (undefinedNoun) defined(t, undefinedNoun);
|
|
254
|
-
}
|
|
255
|
-
t = next();
|
|
256
|
-
}
|
|
257
|
-
const images = [];
|
|
258
|
-
for (let k = begin; k < (t === eof ? tokens.length : at - 1); k++) images.push(tokens[k].image);
|
|
259
|
-
config.sections.push({
|
|
260
|
-
key,
|
|
261
|
-
line: keyword.line,
|
|
262
|
-
tokens: images
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
if (deferred) throw deferred;
|
|
266
|
-
return config;
|
|
267
|
-
}
|
|
268
|
-
export { NAME, readConfig };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { parseValue } from "./value.mjs";
|
|
2
|
-
// runtime/skills/statechart/scripts/frontends/dot.ts
|
|
3
|
-
const unescapeDot = (s) => {
|
|
4
|
-
let i = s.indexOf("\\");
|
|
5
|
-
if (i === -1) return s;
|
|
6
|
-
let out = "";
|
|
7
|
-
let from = 0;
|
|
8
|
-
for (; i !== -1 && i + 1 < s.length; i = s.indexOf("\\", i)) {
|
|
9
|
-
const c = s[i + 1];
|
|
10
|
-
if (c === "\n" || c === "\r" || c === "\u2028" || c === "\u2029") {
|
|
11
|
-
i++;
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
out += s.slice(from, i) + (c === "n" ? "\n" : c);
|
|
15
|
-
i += 2;
|
|
16
|
-
from = i;
|
|
17
|
-
}
|
|
18
|
-
return out + s.slice(from);
|
|
19
|
-
};
|
|
20
|
-
const parseState = (label, parsed = /* @__PURE__ */ new Map()) => {
|
|
21
|
-
const pairs = [];
|
|
22
|
-
for (const part of (label.startsWith("/\\ ") ? label.slice(3) : label).split("\n/\\ ")) {
|
|
23
|
-
let pair = parsed.get(part);
|
|
24
|
-
if (!pair) {
|
|
25
|
-
const [, name, value] = /^(\w+)\s*=\s*([\s\S]*)$/.exec(part) ?? [];
|
|
26
|
-
if (!name) throw new Error(`cannot read the TLC state line "${part}"`);
|
|
27
|
-
parsed.set(part, pair = [name, parseValue(value)]);
|
|
28
|
-
}
|
|
29
|
-
pairs.push(pair);
|
|
30
|
-
}
|
|
31
|
-
return Object.fromEntries(pairs);
|
|
32
|
-
};
|
|
33
|
-
const linesOf = (input) => typeof input === "string" ? input.split("\n") : input;
|
|
34
|
-
function parseDot(input) {
|
|
35
|
-
const states = /* @__PURE__ */ new Map();
|
|
36
|
-
const steps = /* @__PURE__ */ new Map();
|
|
37
|
-
const parsed = /* @__PURE__ */ new Map();
|
|
38
|
-
const owned = /* @__PURE__ */ new Map();
|
|
39
|
-
const own = (s) => {
|
|
40
|
-
let copy = owned.get(s);
|
|
41
|
-
if (copy === void 0) owned.set(copy = String(JSON.parse(JSON.stringify(s))), copy);
|
|
42
|
-
return copy;
|
|
43
|
-
};
|
|
44
|
-
for (const line of linesOf(input)) {
|
|
45
|
-
const edge = /^(-?\d+) -> (-?\d+) \[label="([^"]*)"/.exec(line);
|
|
46
|
-
if (edge) {
|
|
47
|
-
steps.set(edge.slice(1).join(" "), {
|
|
48
|
-
from: own(edge[1]),
|
|
49
|
-
to: own(edge[2]),
|
|
50
|
-
action: own(edge[3])
|
|
51
|
-
});
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
const node = /^(-?\d+) \[label="((?:[^"\\]|\\.)*)"(,style = filled)?/.exec(line);
|
|
55
|
-
if (node) states.set(own(node[1]), {
|
|
56
|
-
vars: parseState(unescapeDot(node[2]), parsed),
|
|
57
|
-
start: !!node[3],
|
|
58
|
-
breaks: []
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
for (const loose of steps.values()) if (!states.has(loose.from) || !states.has(loose.to)) throw new Error(`The TLC graph dump has a step ${loose.action} to or from a state that it does not list.`);
|
|
62
|
-
return {
|
|
63
|
-
states,
|
|
64
|
-
steps: [...steps.values()]
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export { linesOf, parseDot, parseState };
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { EC, memo } from "../ir.mjs";
|
|
2
|
-
import { BRACKET, isSpace, parseValue, tokenEnd, unreadable } from "./value.mjs";
|
|
3
|
-
import { actionOf, messageState } from "./messages.mjs";
|
|
4
|
-
// runtime/skills/statechart/scripts/frontends/marks.ts
|
|
5
|
-
const markTexts = (chunk, top, inner) => {
|
|
6
|
-
if (top.length !== 2) return void 0;
|
|
7
|
-
const [a, b] = top;
|
|
8
|
-
const open = chunk.indexOf("<<", a);
|
|
9
|
-
const close = chunk.lastIndexOf(">>", b);
|
|
10
|
-
const end = chunk.trimEnd().length - 2;
|
|
11
|
-
if (open < 0 || chunk.slice(a + 1, open).trim() || chunk.slice(close + 2, b).trim()) return void 0;
|
|
12
|
-
if (!chunk.startsWith(">>", end)) return void 0;
|
|
13
|
-
const cuts = [open + 1];
|
|
14
|
-
for (const k of inner) if (k > open && k < close) cuts.push(k);
|
|
15
|
-
cuts.push(close);
|
|
16
|
-
const texts = [];
|
|
17
|
-
for (let k = 1; k < cuts.length; k++) texts.push(chunk.slice(cuts[k - 1] + 1, cuts[k]));
|
|
18
|
-
return {
|
|
19
|
-
values: texts,
|
|
20
|
-
rules: chunk.slice(b + 1, end)
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
const ruleNames = (v) => {
|
|
24
|
-
if (typeof v !== "object" || v.kind !== "set") return void 0;
|
|
25
|
-
const names = [];
|
|
26
|
-
for (const m of v.members) {
|
|
27
|
-
if (typeof m !== "string") return void 0;
|
|
28
|
-
names.push(m);
|
|
29
|
-
}
|
|
30
|
-
return names;
|
|
31
|
-
};
|
|
32
|
-
function* readMarks(messages, tag) {
|
|
33
|
-
const read = memo(parseValue);
|
|
34
|
-
const start = `"${tag}",`;
|
|
35
|
-
let chunk = "";
|
|
36
|
-
let depth = 0;
|
|
37
|
-
let top = [];
|
|
38
|
-
let inner = [];
|
|
39
|
-
for (const line of messages) {
|
|
40
|
-
if (typeof line !== "string") continue;
|
|
41
|
-
if (!chunk) {
|
|
42
|
-
if (!line.startsWith("<<") || !line.slice(2).trimStart().startsWith(start)) continue;
|
|
43
|
-
depth = 0;
|
|
44
|
-
top = [];
|
|
45
|
-
inner = [];
|
|
46
|
-
}
|
|
47
|
-
const base = chunk.length;
|
|
48
|
-
chunk += line + "\n";
|
|
49
|
-
let i = 0;
|
|
50
|
-
let last = 0;
|
|
51
|
-
while (i < line.length) {
|
|
52
|
-
const c = line.charCodeAt(i);
|
|
53
|
-
if (isSpace(c)) {
|
|
54
|
-
i++;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
const j = tokenEnd(line, i);
|
|
58
|
-
if (j === -1) throw unreadable(line + "\n", last);
|
|
59
|
-
if (c === 44 && depth === 1) top.push(base + i);
|
|
60
|
-
else if (c === 44 && depth === 2) inner.push(base + i);
|
|
61
|
-
depth += BRACKET[c];
|
|
62
|
-
i = last = j;
|
|
63
|
-
}
|
|
64
|
-
if (depth > 0) continue;
|
|
65
|
-
const texts = markTexts(chunk, top, inner);
|
|
66
|
-
const values = [];
|
|
67
|
-
if (texts) for (const v of texts.values) values.push(read(v));
|
|
68
|
-
const broken = texts && ruleNames(read(texts.rules));
|
|
69
|
-
if (!broken) throw new Error(`TLC printed a mark that the command cannot read:\n${chunk.slice(0, 2e3)}`);
|
|
70
|
-
chunk = "";
|
|
71
|
-
yield {
|
|
72
|
-
values,
|
|
73
|
-
broken
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
if (chunk) throw new Error(`TLC's output ends inside a marked state, so the command cannot tell which rules it breaks:\n${chunk.slice(0, 2e3)}`);
|
|
77
|
-
}
|
|
78
|
-
function readCounterexample(messages) {
|
|
79
|
-
const trace = [];
|
|
80
|
-
for (const m of messages) {
|
|
81
|
-
if (typeof m === "string") continue;
|
|
82
|
-
const action = m.code === EC.TLC_STATE_PRINT2 ? actionOf(m) : void 0;
|
|
83
|
-
if (action !== void 0) trace.push({
|
|
84
|
-
action,
|
|
85
|
-
vars: messageState(m)
|
|
86
|
-
});
|
|
87
|
-
else if (m.code === EC.TLC_INVARIANT_VIOLATED_INITIAL || m.code === EC.TLC_PROPERTY_VIOLATED_INITIAL) trace.push({
|
|
88
|
-
action: "",
|
|
89
|
-
vars: messageState(m)
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return trace;
|
|
93
|
-
}
|
|
94
|
-
export { readCounterexample, readMarks };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { linesOf, parseState } from "./dot.mjs";
|
|
2
|
-
// runtime/skills/statechart/scripts/frontends/messages.ts
|
|
3
|
-
const START = /@!@!@STARTMSG (\d+):(\d+) @!@!@$/;
|
|
4
|
-
const END = /^@!@!@ENDMSG \d+ @!@!@$/;
|
|
5
|
-
const isCutMarker = (lastLine) => lastLine.startsWith("@!@!@");
|
|
6
|
-
function cutMessage(open) {
|
|
7
|
-
for (let i = open.length - 1; i > 0 && !open[i].body.length; i--) open[i - 1].body.pop();
|
|
8
|
-
return open[0]?.body.length ? open[0] : void 0;
|
|
9
|
-
}
|
|
10
|
-
function* readMessages(tlcOut) {
|
|
11
|
-
const lines = linesOf(tlcOut)[Symbol.iterator]();
|
|
12
|
-
const open = [];
|
|
13
|
-
try {
|
|
14
|
-
for (let next = lines.next(); !next.done;) {
|
|
15
|
-
const line = next.value;
|
|
16
|
-
next = lines.next();
|
|
17
|
-
if (next.done && (!line || isCutMarker(line))) break;
|
|
18
|
-
const start = START.exec(line);
|
|
19
|
-
if (start) {
|
|
20
|
-
const message = {
|
|
21
|
-
code: Number(start[1]),
|
|
22
|
-
level: Number(start[2]),
|
|
23
|
-
body: []
|
|
24
|
-
};
|
|
25
|
-
if (start.index) message.beforeMarker = line.slice(0, start.index);
|
|
26
|
-
open.at(-1)?.body.push(message);
|
|
27
|
-
open.push(message);
|
|
28
|
-
} else if (END.test(line)) {
|
|
29
|
-
const done = open.pop();
|
|
30
|
-
if (done && !open.length) yield done;
|
|
31
|
-
} else if (open.length) open[open.length - 1].body.push(line);
|
|
32
|
-
else yield line;
|
|
33
|
-
}
|
|
34
|
-
} finally {
|
|
35
|
-
lines.return?.();
|
|
36
|
-
}
|
|
37
|
-
const cut = cutMessage(open);
|
|
38
|
-
if (cut) yield cut;
|
|
39
|
-
}
|
|
40
|
-
const textOf = ({ body }) => body.filter((part) => typeof part === "string").join("\n");
|
|
41
|
-
const actionOf = (m) => /^\d+: (?:Back to state: )?<([^\s>]+)/.exec(textOf(m))?.[1];
|
|
42
|
-
const messageState = (m) => {
|
|
43
|
-
const lines = textOf(m).split("\n");
|
|
44
|
-
const body = [];
|
|
45
|
-
for (let i = 1; i < lines.length && lines[i].trim(); i++) body.push(lines[i]);
|
|
46
|
-
return parseState(body.join("\n"));
|
|
47
|
-
};
|
|
48
|
-
export { actionOf, messageState, readMessages, textOf };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { NAME } from "./config.mjs";
|
|
2
|
-
// runtime/skills/statechart/scripts/frontends/spec.ts
|
|
3
|
-
function readChecks({ configFile, config }) {
|
|
4
|
-
const refuse = (words) => /* @__PURE__ */ new Error(`TLC refuses the config ${configFile}. ${words}`);
|
|
5
|
-
if (config.spec && (config.init || config.next)) throw refuse("The configuration file cannot specify both INIT/NEXT and SPECIFICATION fields.");
|
|
6
|
-
if (!config.spec && !config.init) throw refuse("The configuration file did not specify the initial state predicate.");
|
|
7
|
-
const written = [];
|
|
8
|
-
for (const s of config.sections) if (![
|
|
9
|
-
"INVARIANT",
|
|
10
|
-
"PROPERTY",
|
|
11
|
-
"CHECK_DEADLOCK"
|
|
12
|
-
].includes(s.key)) written.push(s);
|
|
13
|
-
return {
|
|
14
|
-
invariants: config.invariants,
|
|
15
|
-
properties: config.properties,
|
|
16
|
-
deadlock: config.checkDeadlock !== false,
|
|
17
|
-
written
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
const ENTITIES = {
|
|
21
|
-
amp: "&",
|
|
22
|
-
apos: "'",
|
|
23
|
-
gt: ">",
|
|
24
|
-
lt: "<",
|
|
25
|
-
quot: "\""
|
|
26
|
-
};
|
|
27
|
-
const decode = (text) => text.replace(/&(#x?)?(\w+);/g, (_, number, name) => number ? String.fromCodePoint(Number.parseInt(name, number === "#x" ? 16 : 10)) : ENTITIES[name]);
|
|
28
|
-
function parseXml(xml) {
|
|
29
|
-
const document = {
|
|
30
|
-
tag: "",
|
|
31
|
-
text: "",
|
|
32
|
-
children: []
|
|
33
|
-
};
|
|
34
|
-
const open = [document];
|
|
35
|
-
for (const [, close, tag, empty, text] of xml.matchAll(/<(\/?)([^\s/>?!]+)[^>]*?(\/?)>|<[?!][^>]*>|([^<]+)/g)) {
|
|
36
|
-
const parent = open[open.length - 1];
|
|
37
|
-
if (text !== void 0) parent.text += decode(text);
|
|
38
|
-
else if (close) open.pop();
|
|
39
|
-
else if (tag) {
|
|
40
|
-
const node = {
|
|
41
|
-
tag,
|
|
42
|
-
text: "",
|
|
43
|
-
children: []
|
|
44
|
-
};
|
|
45
|
-
parent.children.push(node);
|
|
46
|
-
if (!empty) open.push(node);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return document;
|
|
50
|
-
}
|
|
51
|
-
const child = (node, tag) => node?.children.find((c) => c.tag === tag);
|
|
52
|
-
const textOf = (node, tag) => child(node, tag)?.text ?? "";
|
|
53
|
-
const VARIABLE_KIND = "3";
|
|
54
|
-
function readSany(xml) {
|
|
55
|
-
const modules = child(parseXml(xml), "modules");
|
|
56
|
-
const symbols = /* @__PURE__ */ new Map();
|
|
57
|
-
for (const entry of child(modules, "context")?.children ?? []) symbols.set(textOf(entry, "UID"), entry.children[1]);
|
|
58
|
-
const root = textOf(modules, "RootModule");
|
|
59
|
-
let module;
|
|
60
|
-
for (const node of symbols.values()) if (node.tag === "ModuleNode" && textOf(node, "uniquename") === root) module = node;
|
|
61
|
-
const definitions = /* @__PURE__ */ new Map();
|
|
62
|
-
const variables = [];
|
|
63
|
-
for (const ref of module?.children ?? []) {
|
|
64
|
-
if (ref.tag !== "OpDeclNodeRef" && ref.tag !== "UserDefinedOpKindRef") continue;
|
|
65
|
-
const uid = textOf(ref, "UID");
|
|
66
|
-
const node = symbols.get(uid);
|
|
67
|
-
if (!node) continue;
|
|
68
|
-
const name = textOf(node, "uniquename");
|
|
69
|
-
definitions.set(name, node);
|
|
70
|
-
if (node.tag === "OpDeclNode" && textOf(node, "kind") === VARIABLE_KIND) variables.push({
|
|
71
|
-
uid: Number(uid),
|
|
72
|
-
name
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
variables.sort((a, b) => a.uid - b.uid);
|
|
76
|
-
return {
|
|
77
|
-
variables: variables.map((v) => v.name),
|
|
78
|
-
definitions
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
function readSpec({ module, sany, checks }) {
|
|
82
|
-
return {
|
|
83
|
-
module,
|
|
84
|
-
variables: sany.variables,
|
|
85
|
-
...checks
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
const STATE_LEVEL = 1;
|
|
89
|
-
function initialOnlyProperties({ definitions }, { written, properties }) {
|
|
90
|
-
const replaced = /* @__PURE__ */ new Map();
|
|
91
|
-
for (const s of written) if (s.key === "CONSTANT") {
|
|
92
|
-
for (let i = 1; i + 1 < s.tokens.length; i++) if (s.tokens[i] === "<-" && NAME.test(s.tokens[i + 1])) replaced.set(s.tokens[i - 1], s.tokens[i + 1]);
|
|
93
|
-
}
|
|
94
|
-
const names = /* @__PURE__ */ new Set();
|
|
95
|
-
for (const name of properties) {
|
|
96
|
-
const definition = definitions.get(replaced.get(name) ?? name);
|
|
97
|
-
if (definition && Number(textOf(definition, "level")) <= STATE_LEVEL) names.add(name);
|
|
98
|
-
}
|
|
99
|
-
return names;
|
|
100
|
-
}
|
|
101
|
-
export { initialOnlyProperties, readChecks, readSany, readSpec };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { EC } from "../ir.mjs";
|
|
2
|
-
import { actionOf, messageState, textOf } from "./messages.mjs";
|
|
3
|
-
// runtime/skills/statechart/scripts/frontends/trace.ts
|
|
4
|
-
function readTrace(messages) {
|
|
5
|
-
const seq = [];
|
|
6
|
-
for (const m of messages) {
|
|
7
|
-
if (typeof m === "string") continue;
|
|
8
|
-
if (m.code === EC.TLC_STATE_PRINT3) return {
|
|
9
|
-
seq,
|
|
10
|
-
loop: seq.length - 1
|
|
11
|
-
};
|
|
12
|
-
const back = m.code === EC.TLC_BACK_TO_STATE && /^(\d+): Back to state: /.exec(textOf(m));
|
|
13
|
-
if (back) {
|
|
14
|
-
const loop = Number(back[1]) - 1;
|
|
15
|
-
seq.push({
|
|
16
|
-
action: actionOf(m) ?? "",
|
|
17
|
-
vars: seq[loop]?.vars
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
seq,
|
|
21
|
-
loop
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
const action = m.code === EC.TLC_STATE_PRINT2 ? actionOf(m) : void 0;
|
|
25
|
-
if (action !== void 0) seq.push({
|
|
26
|
-
action,
|
|
27
|
-
vars: messageState(m)
|
|
28
|
-
});
|
|
29
|
-
else if (m.code === EC.TLC_INVARIANT_VIOLATED_INITIAL || m.code === EC.TLC_PROPERTY_VIOLATED_INITIAL) seq.push({
|
|
30
|
-
action: "",
|
|
31
|
-
vars: messageState(m)
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
seq,
|
|
36
|
-
loop: void 0
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export { readTrace };
|