@giljae/opencode-pstack 0.0.0-stage → 0.0.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.
Files changed (551) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +10 -0
  3. package/README.md +176 -2
  4. package/package.json +42 -4
  5. package/src/agents.ts +110 -0
  6. package/src/commands.ts +37 -0
  7. package/src/content.ts +119 -0
  8. package/src/host.ts +59 -0
  9. package/src/index.ts +21 -0
  10. package/src/install.ts +22 -0
  11. package/src/models.ts +112 -0
  12. package/src/pstack-setup.ts +111 -0
  13. package/src/setup.ts +42 -0
  14. package/src/skills.ts +24 -0
  15. package/vendor/pstack/LICENSE.upstream +21 -0
  16. package/vendor/pstack/README.upstream.md +290 -0
  17. package/vendor/pstack/UPSTREAM.json +545 -0
  18. package/vendor/pstack/agents/comment-sicko.md +32 -0
  19. package/vendor/pstack/agents/poteto-agent.md +10 -0
  20. package/vendor/pstack/docs/guide/01-setup.md +66 -0
  21. package/vendor/pstack/docs/guide/02-poteto-mode.md +139 -0
  22. package/vendor/pstack/docs/guide/03-understand.md +79 -0
  23. package/vendor/pstack/docs/guide/04-design.md +127 -0
  24. package/vendor/pstack/docs/guide/05-build-and-clean.md +83 -0
  25. package/vendor/pstack/docs/guide/06-verify-and-ship.md +162 -0
  26. package/vendor/pstack/docs/guide/07-overnight.md +122 -0
  27. package/vendor/pstack/docs/guide/08-principles.md +72 -0
  28. package/vendor/pstack/docs/guide/09-make-it-yours.md +100 -0
  29. package/vendor/pstack/docs/guide/10-recipes-and-pitfalls.md +182 -0
  30. package/vendor/pstack/docs/guide/README.md +38 -0
  31. package/vendor/pstack/docs/guide/images/design.jpg +0 -0
  32. package/vendor/pstack/docs/guide/images/overnight.jpg +0 -0
  33. package/vendor/pstack/docs/guide/images/recipes.jpg +0 -0
  34. package/vendor/pstack/docs/guide/images/router.jpg +0 -0
  35. package/vendor/pstack/docs/guide/images/understanding.jpg +0 -0
  36. package/vendor/pstack/docs/guide/images/verification.jpg +0 -0
  37. package/vendor/pstack/docs/harness/claude-code.md +68 -0
  38. package/vendor/pstack/skills/architect/SKILL.md +11 -0
  39. package/vendor/pstack/skills/arena/SKILL.md +48 -0
  40. package/vendor/pstack/skills/automate-me/SKILL.md +104 -0
  41. package/vendor/pstack/skills/benchmark-checklist/SKILL.md +39 -0
  42. package/vendor/pstack/skills/blast-radius/SKILL.md +50 -0
  43. package/vendor/pstack/skills/bro/SKILL.md +7 -0
  44. package/vendor/pstack/skills/correct/SKILL.md +32 -0
  45. package/vendor/pstack/skills/create-formal-verification-skill/SKILL.md +43 -0
  46. package/vendor/pstack/skills/create-verification-skill/SKILL.md +44 -0
  47. package/vendor/pstack/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  48. package/vendor/pstack/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  49. package/vendor/pstack/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  50. package/vendor/pstack/skills/figure-it-out/SKILL.md +52 -0
  51. package/vendor/pstack/skills/how/SKILL.md +21 -0
  52. package/vendor/pstack/skills/in-your-own-words/SKILL.md +7 -0
  53. package/vendor/pstack/skills/interrogate/SKILL.md +31 -0
  54. package/vendor/pstack/skills/ketchup/SKILL.md +43 -0
  55. package/vendor/pstack/skills/ketchup-video/SKILL.md +29 -0
  56. package/vendor/pstack/skills/maintain-formal-verification-skill/SKILL.md +58 -0
  57. package/vendor/pstack/skills/maintain-verification-skill/SKILL.md +39 -0
  58. package/vendor/pstack/skills/make-bot-ui/SKILL.md +115 -0
  59. package/vendor/pstack/skills/no-comments/SKILL.md +24 -0
  60. package/vendor/pstack/skills/poteto-help/SKILL.md +162 -0
  61. package/vendor/pstack/skills/poteto-help/references/prompting.md +51 -0
  62. package/vendor/pstack/skills/poteto-help/references/recipes.md +51 -0
  63. package/vendor/pstack/skills/poteto-mode/SKILL.md +110 -0
  64. package/vendor/pstack/skills/poteto-mode/playbooks/authoring-a-skill.md +12 -0
  65. package/vendor/pstack/skills/poteto-mode/playbooks/autonomous-run.md +13 -0
  66. package/vendor/pstack/skills/poteto-mode/playbooks/autopilot-full.md +25 -0
  67. package/vendor/pstack/skills/poteto-mode/playbooks/autopilot-stack.md +8 -0
  68. package/vendor/pstack/skills/poteto-mode/playbooks/babysit.md +10 -0
  69. package/vendor/pstack/skills/poteto-mode/playbooks/bug-fix.md +15 -0
  70. package/vendor/pstack/skills/poteto-mode/playbooks/eval.md +25 -0
  71. package/vendor/pstack/skills/poteto-mode/playbooks/feature.md +21 -0
  72. package/vendor/pstack/skills/poteto-mode/playbooks/hillclimb.md +21 -0
  73. package/vendor/pstack/skills/poteto-mode/playbooks/investigation.md +14 -0
  74. package/vendor/pstack/skills/poteto-mode/playbooks/multi-phase-plan.md +11 -0
  75. package/vendor/pstack/skills/poteto-mode/playbooks/opening-a-pr.md +9 -0
  76. package/vendor/pstack/skills/poteto-mode/playbooks/pause-safely.md +10 -0
  77. package/vendor/pstack/skills/poteto-mode/playbooks/perf-issue.md +25 -0
  78. package/vendor/pstack/skills/poteto-mode/playbooks/prototype.md +14 -0
  79. package/vendor/pstack/skills/poteto-mode/playbooks/refactoring.md +16 -0
  80. package/vendor/pstack/skills/poteto-mode/playbooks/runtime-forensics.md +11 -0
  81. package/vendor/pstack/skills/poteto-mode/playbooks/session-pickup.md +11 -0
  82. package/vendor/pstack/skills/poteto-mode/playbooks/shipping.md +12 -0
  83. package/vendor/pstack/skills/poteto-mode/playbooks/trace-forensics.md +14 -0
  84. package/vendor/pstack/skills/poteto-mode/playbooks/visual-parity.md +11 -0
  85. package/vendor/pstack/skills/poteto-mode/playbooks/worktree-cleanup.md +12 -0
  86. package/vendor/pstack/skills/poteto-mode/references/bugbot-triage.md +142 -0
  87. package/vendor/pstack/skills/poteto-mode/scripts/bootstrap.ts +62 -0
  88. package/vendor/pstack/skills/poteto-mode/scripts/bun.lock +67 -0
  89. package/vendor/pstack/skills/poteto-mode/scripts/package.json +16 -0
  90. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
  91. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/cli.ts +223 -0
  92. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
  93. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
  94. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/github.ts +726 -0
  95. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
  96. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/policy.ts +842 -0
  97. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/render.ts +169 -0
  98. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  99. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
  100. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/types.ts +414 -0
  101. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  102. package/vendor/pstack/skills/poteto-mode/scripts/worktree-audit.sh +134 -0
  103. package/vendor/pstack/skills/poteto-mode/worker.md +11 -0
  104. package/vendor/pstack/skills/principle-attack-the-premise/SKILL.md +15 -0
  105. package/vendor/pstack/skills/principle-boundary-discipline/SKILL.md +11 -0
  106. package/vendor/pstack/skills/principle-build-the-lever/SKILL.md +14 -0
  107. package/vendor/pstack/skills/principle-encode-lessons-in-structure/SKILL.md +11 -0
  108. package/vendor/pstack/skills/principle-exhaust-the-design-space/SKILL.md +9 -0
  109. package/vendor/pstack/skills/principle-experience-first/SKILL.md +19 -0
  110. package/vendor/pstack/skills/principle-explain-the-number/SKILL.md +14 -0
  111. package/vendor/pstack/skills/principle-fix-root-causes/SKILL.md +14 -0
  112. package/vendor/pstack/skills/principle-foundational-thinking/SKILL.md +13 -0
  113. package/vendor/pstack/skills/principle-guard-the-context-window/SKILL.md +12 -0
  114. package/vendor/pstack/skills/principle-laziness-protocol/SKILL.md +10 -0
  115. package/vendor/pstack/skills/principle-make-operations-idempotent/SKILL.md +15 -0
  116. package/vendor/pstack/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
  117. package/vendor/pstack/skills/principle-minimize-reader-load/SKILL.md +15 -0
  118. package/vendor/pstack/skills/principle-model-the-domain/SKILL.md +15 -0
  119. package/vendor/pstack/skills/principle-never-block-on-the-human/SKILL.md +15 -0
  120. package/vendor/pstack/skills/principle-outcome-oriented-execution/SKILL.md +21 -0
  121. package/vendor/pstack/skills/principle-prove-it-works/SKILL.md +11 -0
  122. package/vendor/pstack/skills/principle-redesign-from-first-principles/SKILL.md +16 -0
  123. package/vendor/pstack/skills/principle-separate-before-serializing-shared-state/SKILL.md +11 -0
  124. package/vendor/pstack/skills/principle-sequence-verifiable-units/SKILL.md +13 -0
  125. package/vendor/pstack/skills/principle-subtract-before-you-add/SKILL.md +18 -0
  126. package/vendor/pstack/skills/principle-test-behavior-not-implementation/SKILL.md +16 -0
  127. package/vendor/pstack/skills/principle-type-system-discipline/SKILL.md +15 -0
  128. package/vendor/pstack/skills/recall/SKILL.md +35 -0
  129. package/vendor/pstack/skills/reflect/SKILL.md +17 -0
  130. package/vendor/pstack/skills/setup-pstack/SKILL.md +78 -0
  131. package/vendor/pstack/skills/sharpen/SKILL.md +16 -0
  132. package/vendor/pstack/skills/show-me-your-work/SKILL.md +82 -0
  133. package/vendor/pstack/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
  134. package/vendor/pstack/skills/show-me-your-work/scripts/log.sh +42 -0
  135. package/vendor/pstack/skills/statechart/SKILL.md +82 -0
  136. package/vendor/pstack/skills/statechart/references/render.md +93 -0
  137. package/vendor/pstack/skills/statechart/scripts/backends/cfg.ts +33 -0
  138. package/vendor/pstack/skills/statechart/scripts/backends/mermaid.ts +249 -0
  139. package/vendor/pstack/skills/statechart/scripts/backends/plain-text.ts +72 -0
  140. package/vendor/pstack/skills/statechart/scripts/backends/report.ts +177 -0
  141. package/vendor/pstack/skills/statechart/scripts/frontends/config.ts +276 -0
  142. package/vendor/pstack/skills/statechart/scripts/frontends/dot.ts +74 -0
  143. package/vendor/pstack/skills/statechart/scripts/frontends/marks.ts +93 -0
  144. package/vendor/pstack/skills/statechart/scripts/frontends/messages.ts +52 -0
  145. package/vendor/pstack/skills/statechart/scripts/frontends/spec.ts +114 -0
  146. package/vendor/pstack/skills/statechart/scripts/frontends/trace.ts +24 -0
  147. package/vendor/pstack/skills/statechart/scripts/frontends/value.ts +166 -0
  148. package/vendor/pstack/skills/statechart/scripts/frontends/verdict.ts +40 -0
  149. package/vendor/pstack/skills/statechart/scripts/frontends/view.ts +119 -0
  150. package/vendor/pstack/skills/statechart/scripts/ir.ts +547 -0
  151. package/vendor/pstack/skills/statechart/scripts/package.json +11 -0
  152. package/vendor/pstack/skills/statechart/scripts/passes/annotate.ts +128 -0
  153. package/vendor/pstack/skills/statechart/scripts/passes/label.ts +269 -0
  154. package/vendor/pstack/skills/statechart/scripts/passes/lift.ts +85 -0
  155. package/vendor/pstack/skills/statechart/scripts/passes/loop-check.ts +68 -0
  156. package/vendor/pstack/skills/statechart/scripts/passes/paths.ts +60 -0
  157. package/vendor/pstack/skills/statechart/scripts/passes/reach.ts +135 -0
  158. package/vendor/pstack/skills/statechart/scripts/passes/region-check.ts +97 -0
  159. package/vendor/pstack/skills/statechart/scripts/passes/regions.ts +295 -0
  160. package/vendor/pstack/skills/statechart/scripts/pipeline.ts +76 -0
  161. package/vendor/pstack/skills/statechart/scripts/run.ts +506 -0
  162. package/vendor/pstack/skills/statechart/scripts/statechart +29 -0
  163. package/vendor/pstack/skills/statechart/scripts/statechart.ts +164 -0
  164. package/vendor/pstack/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  165. package/vendor/pstack/skills/statechart/scripts/test/chart.test.ts +1253 -0
  166. package/vendor/pstack/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  167. package/vendor/pstack/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  168. package/vendor/pstack/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  169. package/vendor/pstack/skills/statechart/scripts/test/cli.test.ts +1315 -0
  170. package/vendor/pstack/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  171. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  172. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  173. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  174. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  175. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  176. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  177. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  178. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  179. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  180. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  181. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  182. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  183. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  184. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  185. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  186. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  187. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  188. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  189. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  190. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  191. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  192. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  193. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  194. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  195. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  196. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  197. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  198. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  199. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  200. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  201. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  202. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  203. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  204. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  205. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  206. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  207. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  208. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  209. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  210. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  211. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  212. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  213. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  214. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  215. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  216. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  217. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  218. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  219. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  220. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  221. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  222. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  223. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  224. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  225. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  226. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  227. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  228. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  229. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  230. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  231. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  232. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  233. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  234. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  235. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  236. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  237. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  238. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  239. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  240. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  241. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  242. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  243. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  244. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  245. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  246. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  247. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  248. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  249. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  250. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  251. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  252. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  253. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  254. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  255. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  256. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  257. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  258. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  259. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  260. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  261. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  262. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  263. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  264. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  265. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  266. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  267. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  268. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  269. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  270. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  271. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  272. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  273. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  274. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  275. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  276. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  277. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  278. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  279. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  280. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  281. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  282. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  283. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  284. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  285. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  286. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  287. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  288. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  289. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  290. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  291. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  292. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  293. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  294. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  295. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  296. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  297. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  298. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  299. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  300. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  301. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  302. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  303. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  304. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  305. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  306. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  307. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  308. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  309. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  310. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  311. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  312. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  313. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  314. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  315. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  316. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  317. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  318. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  319. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  320. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  321. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  322. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  323. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  324. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  325. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  326. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  327. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  328. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  329. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  330. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  331. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  332. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  333. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  334. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  335. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  336. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  337. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  338. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  339. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  340. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  341. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  342. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  343. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  344. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  345. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  346. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  347. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  348. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  349. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  350. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  351. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  352. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  353. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  354. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  355. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  356. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  357. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  358. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  359. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  360. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  361. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  362. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  363. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  364. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  365. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  366. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  367. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  368. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  369. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  370. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  371. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  372. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  373. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  374. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  375. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  376. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  377. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  378. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  379. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  380. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  381. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  382. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  383. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  384. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  385. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  386. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  387. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  388. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  389. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  390. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  391. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
  392. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  393. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  394. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  395. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  396. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  397. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  398. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  399. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  400. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  401. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  402. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  403. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  404. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  405. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  406. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  407. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  408. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  409. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  410. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  411. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  412. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  413. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  414. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  415. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  416. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  417. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  418. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  419. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  420. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  421. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  422. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  423. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  424. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  425. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  426. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  427. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  428. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  429. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  430. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  431. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  432. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  433. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  434. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  435. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  436. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  437. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  438. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  439. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  440. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  441. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  442. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  443. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  444. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  445. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  446. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  447. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  448. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  449. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  450. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  451. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  452. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  453. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  454. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  455. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  456. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  457. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  458. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  459. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  460. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  461. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  462. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  463. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  464. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  465. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  466. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  467. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  468. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  469. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  470. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  471. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  472. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  473. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  474. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  475. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  476. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  477. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  478. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  479. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  480. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  481. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  482. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  483. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  484. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  485. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  486. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  487. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  488. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  489. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  490. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  491. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  492. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  493. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  494. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  495. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  496. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  497. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  498. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  499. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  500. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  501. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  502. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  503. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  504. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  505. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  506. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  507. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  508. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  509. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  510. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  511. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  512. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  513. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  514. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  515. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  516. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  517. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  518. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  519. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  520. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  521. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  522. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  523. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  524. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  525. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  526. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  527. package/vendor/pstack/skills/statechart/scripts/test/corpus.test.ts +441 -0
  528. package/vendor/pstack/skills/statechart/scripts/test/differential.test.ts +565 -0
  529. package/vendor/pstack/skills/statechart/scripts/test/drawn.ts +20 -0
  530. package/vendor/pstack/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  531. package/vendor/pstack/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  532. package/vendor/pstack/skills/statechart/scripts/test/grid/sany.out +2 -0
  533. package/vendor/pstack/skills/statechart/scripts/test/java.ts +63 -0
  534. package/vendor/pstack/skills/statechart/scripts/test/labels.ts +648 -0
  535. package/vendor/pstack/skills/statechart/scripts/test/messages.test.ts +212 -0
  536. package/vendor/pstack/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  537. package/vendor/pstack/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  538. package/vendor/pstack/skills/statechart/scripts/test/render.test.ts +145 -0
  539. package/vendor/pstack/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  540. package/vendor/pstack/skills/statechart/scripts/test/tlc.ts +158 -0
  541. package/vendor/pstack/skills/statechart/scripts/tsconfig.json +11 -0
  542. package/vendor/pstack/skills/statechart/scripts/worker.ts +35 -0
  543. package/vendor/pstack/skills/swarm/SKILL.md +41 -0
  544. package/vendor/pstack/skills/tdd/SKILL.md +42 -0
  545. package/vendor/pstack/skills/teach/SKILL.md +21 -0
  546. package/vendor/pstack/skills/technical-writing/SKILL.md +70 -0
  547. package/vendor/pstack/skills/typescript-best-practices/SKILL.md +31 -0
  548. package/vendor/pstack/skills/typescript-best-practices/references/patterns.md +328 -0
  549. package/vendor/pstack/skills/unslop/SKILL.md +40 -0
  550. package/vendor/pstack/skills/why/SKILL.md +9 -0
  551. package/vendor/pstack/upstream-plugin.json +21 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ @opencode-pstack
2
+ Copyright 2026 the opencode-plugins authors
3
+
4
+ This product includes software developed by Lauren Tan
5
+ (https://github.com/cursor/plugins/tree/main/pstack), licensed under the MIT
6
+ License. The vendored content under vendor/pstack is reproduced unchanged from
7
+ that project.
8
+
9
+ @opencode-pstack is an unofficial port and is not affiliated with or endorsed
10
+ by Cursor or by the author.
package/README.md CHANGED
@@ -1,3 +1,177 @@
1
- # Temporary Holding Version
1
+ # @giljae/opencode-pstack
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Make your coding agent work like a careful engineer, not a fast typist.**
4
+
5
+ An **unofficial port** of [pstack](https://github.com/cursor/plugins/tree/main/pstack),
6
+ Lauren Tan's agent workflow stack, for [OpenCode](https://opencode.ai).
7
+
8
+ Published on npm:
9
+ [`@giljae/opencode-pstack`](https://www.npmjs.com/package/@giljae/opencode-pstack).
10
+ This package is not affiliated with Cursor or the author and is not endorsed by
11
+ either. The content under `vendor/pstack` is reproduced unchanged from upstream
12
+ (MIT); see `NOTICE`.
13
+
14
+ ---
15
+
16
+ ## What it does for you
17
+
18
+ You ask for a change. The agent writes code and stops. You then discover it
19
+ skipped a test, missed an edge case, or buried the logic in cleverness.
20
+
21
+ pstack changes the shape of that loop. It runs a **workflow**: it plans before it
22
+ writes, delegates the work to separate subagents, verifies the result, and keeps
23
+ the code and the prose clean. The goal is **less code, higher quality**, not
24
+ more output.
25
+
26
+ You start a task with one command:
27
+
28
+ ```
29
+ /pstack-poteto-mode add a retry to the upload client and prove it works
30
+ ```
31
+
32
+ ## What is pstack?
33
+
34
+ pstack is a stack of 58 workflows (skills) that an orchestrator runs for you. It
35
+ picks a playbook for your request — feature, bug fix, refactor, perf,
36
+ investigation — and does the right steps: design, build, verify, ship.
37
+
38
+ The other half is **model routing**: a strong model to write code, a fast one
39
+ for mechanical edits, and a panel of different models to review. You choose
40
+ which of *your* models plays each role.
41
+
42
+ ## What you get
43
+
44
+ | | |
45
+ |---|---|
46
+ | **58 skills** | pstack's workflows, each available as a `/pstack-<skill>` command. |
47
+ | **2 agents** | `poteto-agent` (the delegate that does the work) and `comment-sicko` (the comment hater). |
48
+ | **Model routing** | A `pstack` orchestrator agent that dispatches the model you chose for each role. |
49
+
50
+ ## Requirements
51
+
52
+ - OpenCode V2 (built and checked against OpenCode 2.0.11).
53
+ - **Node 22** or newer.
54
+ - At least one model provider configured in OpenCode — the plugin uses the
55
+ models **configured in your own OpenCode**, whatever providers you use.
56
+ Nothing is assumed or hardcoded.
57
+
58
+ ## Get started
59
+
60
+ **1. Install the plugin.**
61
+
62
+ ```sh
63
+ opencode plugin add @giljae/opencode-pstack
64
+ ```
65
+
66
+ **2. Choose your models.** In a new session, run:
67
+
68
+ ```
69
+ /pstack-setup
70
+ ```
71
+
72
+ It lists the models configured in your OpenCode and creates
73
+ `.opencode/pstack-models.md` with one line per role. Open that file and put a
74
+ model on each line, for example:
75
+
76
+ ```
77
+ code, prose, judgment: glm-5.3
78
+ bug-fix: deepseek-v4-flash
79
+ perf-issue: deepseek-v4-flash
80
+ hillclimb: deepseek-v4-flash
81
+ feature, refactoring: glm-5.3
82
+ swarm workers: deepseek-v4-flash
83
+ arena runners: glm-5.3, qwen3.7-plus
84
+ arena cross-judge pool: qwen3.7-plus
85
+ interrogate reviewers: glm-5.3, qwen3.7-plus
86
+ ```
87
+
88
+ A role with a comma-separated list is a **panel**: pstack runs one subagent per
89
+ model and compares them. Different vendors on a panel disagree usefully.
90
+
91
+ **3. Apply it.** Run `/pstack-setup` again. It writes a `pstack` orchestrator,
92
+ one `pstack-model-*` subagent per model you named, and the two pstack agents.
93
+
94
+ ## How to run a task
95
+
96
+ 1. Select the `pstack` agent.
97
+ 2. Run:
98
+
99
+ ```
100
+ /pstack-poteto-mode <describe what you want>
101
+ ```
102
+
103
+ `/pstack-poteto-mode` is usually all you need; it pulls in the other skills
104
+ itself. To run one directly:
105
+
106
+ ```
107
+ /pstack-tdd write a failing test first
108
+ /pstack-architect do a design pass
109
+ /pstack-unslop clean up the prose
110
+ ```
111
+
112
+ Every skill follows the same pattern: `/pstack-<skill name>`.
113
+
114
+ ## How to change your models later
115
+
116
+ Open `.opencode/pstack-models.md`, edit the line you want, and run
117
+ `/pstack-setup` again. Your existing choices are kept; only what you changed is
118
+ updated.
119
+
120
+ ## Which model for which role?
121
+
122
+ - **`code, prose, judgment`** — your strongest model. Writes code, plans, and
123
+ makes judgment calls.
124
+ - **`swarm workers`** — a fast, cheap model. Mechanical edits and verification.
125
+ - **`bug-fix`, `perf-issue`, `hillclimb`, `feature, refactoring`** — the model
126
+ for that kind of work, usually your strong model.
127
+ - **panel roles** (`arena runners`, `interrogate reviewers`, `arena cross-judge
128
+ pool`) — a list, ideally of different vendors.
129
+
130
+ You cannot get this wrong permanently — change it any time.
131
+
132
+ ## How the model routing works
133
+
134
+ OpenCode picks a model per **agent**, not per subagent call. So this port
135
+ generates one agent per `(model, variant)` — for example `pstack-model-glm-5-3`
136
+ or `pstack-model-deepseek-v4-flash` — and the `pstack` orchestrator dispatches
137
+ the agent that matches the role. Effort levels map to the model's OpenCode
138
+ `#variant` where the provider exposes one.
139
+
140
+ ## Troubleshooting
141
+
142
+ - **No models are listed by `/pstack-setup`.** Configure a provider in OpenCode
143
+ first (`opencode auth login`) and confirm with `opencode models`.
144
+ - **A role still says it has no model.** Fill in that line in
145
+ `.opencode/pstack-models.md` and run `/pstack-setup` again. An unset role is
146
+ reported, never silently defaulted.
147
+ - **`pstack-setup` generated no agents.** Every role must have a model before it
148
+ can build the agents; check for a message naming the missing roles.
149
+ - **A step mentions Cursor-only features.** `automations`, `bugbot`, and
150
+ `.cursor` settings do not exist here; the orchestrator notes the skip and
151
+ continues.
152
+ - **The `statechart` skill fails.** It needs Java and the TLA+ tools; install
153
+ them, or skip that skill.
154
+
155
+ ## Limits worth knowing
156
+
157
+ - A role uses its agent's fixed model — there is no switching models mid-step.
158
+ - Skill loading and live routing were not exercised on a real model in this
159
+ build; see the verification note below.
160
+
161
+ ## How updates work
162
+
163
+ The bundled content tracks the `version` field of `pstack/plugin.json` on the
164
+ `cursor/plugins` `main` branch. The current bundle is **0.15.43**. A scheduled
165
+ workflow re-syncs and republishes when upstream bumps that version.
166
+
167
+ ## Verification status
168
+
169
+ What was checked on a real OpenCode is recorded in the source repository at
170
+ `docs/verification/opencode-pstack-spike.md`. In short: the generated agents are
171
+ discovered and their model/variant is parsed correctly; skill loading and live
172
+ routing are not yet verified. Treat anything not recorded there as unverified.
173
+
174
+ ## License
175
+
176
+ Apache-2.0 for this adapter; the vendored content is MIT. See
177
+ [`LICENSE`](LICENSE), [`NOTICE`](NOTICE), and `vendor/pstack/LICENSE.upstream`.
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "@giljae/opencode-pstack",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "license": "Apache-2.0",
6
+ "description": "Unofficial OpenCode V2 plugin distribution of pstack (cursor/plugins): rigorous agent workflows with user-chosen model routing.",
7
+ "homepage": "https://github.com/giljae/opencode-plugins/tree/main/packages/opencode-pstack",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/giljae/opencode-plugins.git",
11
+ "directory": "packages/opencode-pstack"
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "exports": {
17
+ ".": "./src/index.ts"
18
+ },
19
+ "files": [
20
+ "src",
21
+ "vendor",
22
+ "LICENSE",
23
+ "NOTICE",
24
+ "README.md"
25
+ ],
26
+ "scripts": {
27
+ "test": "vitest run",
28
+ "typecheck": "tsc --noEmit -p tsconfig.json"
29
+ },
30
+ "engines": {
31
+ "node": ">=22"
32
+ },
33
+ "dependencies": {
34
+ "@opencode/plugin": "2.0.11"
35
+ },
36
+ "pstack": {
37
+ "upstream": {
38
+ "repo": "https://github.com/cursor/plugins",
39
+ "ref": "main",
40
+ "commit": "93b916d4a1e806507e22f4716b352fa91f2b227e",
41
+ "version": "0.15.43"
42
+ }
43
+ }
44
+ }
package/src/agents.ts ADDED
@@ -0,0 +1,110 @@
1
+ import { listAgents } from "./content.ts";
2
+ import {
3
+ distinctModels,
4
+ formatModelRef,
5
+ modelAgentId,
6
+ type RoleModel,
7
+ type RoleModelMap,
8
+ } from "./models.ts";
9
+
10
+ export interface AgentFile {
11
+ name: string;
12
+ content: string;
13
+ }
14
+
15
+ function yamlString(value: string): string {
16
+ return `"${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
17
+ }
18
+
19
+ function frontmatter(fields: {
20
+ description: string;
21
+ mode: "primary" | "subagent";
22
+ model?: RoleModel;
23
+ }): string {
24
+ const lines = [
25
+ "---",
26
+ `description: ${yamlString(fields.description)}`,
27
+ `mode: ${fields.mode}`,
28
+ ];
29
+ if (fields.model) {
30
+ lines.push(`model: ${formatModelRef(fields.model)}`);
31
+ }
32
+ lines.push("---");
33
+ return lines.join("\n");
34
+ }
35
+
36
+ /**
37
+ * The orchestrator's system prompt. It names the model map and the dispatch
38
+ * mechanism; it never names a model, because the agent configs own the models.
39
+ */
40
+ export function orchestratorPrompt(bundleDir: string, mapPath: string): string {
41
+ return `You are the pstack orchestrator for OpenCode.
42
+
43
+ pstack bundle root: ${bundleDir}
44
+ Model map: ${mapPath}
45
+
46
+ When a pstack skill names a model or a role, dispatch the matching OpenCode
47
+ subagent with the \`subagent\` tool, using the agent id recorded in the model map.
48
+ Never pass a model name to a tool: OpenCode selects the model from the agent's
49
+ own configuration.
50
+
51
+ - A role that maps to a list is a panel. Dispatch one subagent per entry.
52
+ - Subagents run in the background. Wait for each to report before you synthesize.
53
+ - Verification runs on the \`swarm workers\` model's agent.
54
+ - Resolve a skill's \`references/\`, \`playbooks/\`, and \`scripts/\` against that
55
+ skill's own directory.
56
+ - Cursor-only steps (automations, bugbot, .cursor settings) are unavailable.
57
+ Note the skip in one line and continue.
58
+ - Keep pstack's approval and verification gates. Read a delegate's own skill
59
+ before dispatching it when the skill says so.`;
60
+ }
61
+
62
+ export interface BuildAgentFilesOptions {
63
+ mapPath: string;
64
+ /** Role whose model the poteto-agent delegate uses. */
65
+ delegateRole?: string;
66
+ }
67
+
68
+ function firstModel(value: RoleModel | RoleModel[] | undefined): RoleModel | undefined {
69
+ if (!value) return undefined;
70
+ return Array.isArray(value) ? value[0] : value;
71
+ }
72
+
73
+ /**
74
+ * Render the agent files for a chosen role→model map: one subagent per distinct
75
+ * model, the `pstack` orchestrator, and the two upstream agents.
76
+ */
77
+ export function buildAgentFiles(
78
+ bundleDir: string,
79
+ map: RoleModelMap,
80
+ options: BuildAgentFilesOptions,
81
+ ): AgentFile[] {
82
+ const files: AgentFile[] = [];
83
+
84
+ for (const model of distinctModels(map)) {
85
+ files.push({
86
+ name: `${modelAgentId(model)}.md`,
87
+ content: `${frontmatter({
88
+ description: `pstack delegate on ${formatModelRef(model)}`,
89
+ mode: "subagent",
90
+ model,
91
+ })}\nA pstack model-routed delegate. Read the skill your parent names, do the work in the background, and report back to your parent.\n`,
92
+ });
93
+ }
94
+
95
+ files.push({
96
+ name: "pstack.md",
97
+ content: `${frontmatter({ description: "pstack orchestrator", mode: "primary" })}\n${orchestratorPrompt(bundleDir, options.mapPath)}\n`,
98
+ });
99
+
100
+ const delegate = options.delegateRole ? firstModel(map[options.delegateRole]) : undefined;
101
+ for (const agent of listAgents(bundleDir)) {
102
+ const model = agent.id === "poteto-agent" ? delegate : undefined;
103
+ files.push({
104
+ name: `${agent.id}.md`,
105
+ content: `${frontmatter({ description: agent.description, mode: "subagent", model })}\n${agent.body}\n`,
106
+ });
107
+ }
108
+
109
+ return files.sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
110
+ }
@@ -0,0 +1,37 @@
1
+ import { listSkills } from "./content.ts";
2
+ import type { CommandHost } from "./host.ts";
3
+
4
+ /** The slash command name for a skill, prefixed to avoid collisions. */
5
+ export function commandName(skillId: string): string {
6
+ return `pstack-${skillId}`;
7
+ }
8
+
9
+ /**
10
+ * Register a `pstack-<skill>` command for every vendored skill. Each command
11
+ * forwards the user's raw text to the orchestrator, which loads the skill.
12
+ */
13
+ export async function registerCommands(
14
+ host: CommandHost,
15
+ bundleDir: string,
16
+ agentId: string,
17
+ ): Promise<number> {
18
+ const skills = listSkills(bundleDir);
19
+ await host.command.transform((editor) => {
20
+ for (const skill of skills) {
21
+ editor.add({
22
+ name: commandName(skill.id),
23
+ description: `Run pstack's ${skill.id} skill`,
24
+ execute: async ({ sessionID, prompt, delivery }) => {
25
+ await host.session.prompt({
26
+ ...prompt,
27
+ sessionID,
28
+ agentID: agentId,
29
+ delivery,
30
+ text: `Load and follow the pstack skill \`${skill.id}\`.\n\nUser request: ${prompt.text}`,
31
+ });
32
+ },
33
+ });
34
+ }
35
+ });
36
+ return skills.length;
37
+ }