@jahanxu/trellis 0.4.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 (422) hide show
  1. package/LICENSE +235 -0
  2. package/README.md +212 -0
  3. package/bin/trellis.js +3 -0
  4. package/dist/cli/index.d.ts +3 -0
  5. package/dist/cli/index.d.ts.map +1 -0
  6. package/dist/cli/index.js +97 -0
  7. package/dist/cli/index.js.map +1 -0
  8. package/dist/commands/init.d.ts +21 -0
  9. package/dist/commands/init.d.ts.map +1 -0
  10. package/dist/commands/init.js +527 -0
  11. package/dist/commands/init.js.map +1 -0
  12. package/dist/commands/update.d.ts +27 -0
  13. package/dist/commands/update.d.ts.map +1 -0
  14. package/dist/commands/update.js +1289 -0
  15. package/dist/commands/update.js.map +1 -0
  16. package/dist/configurators/antigravity.d.ts +8 -0
  17. package/dist/configurators/antigravity.d.ts.map +1 -0
  18. package/dist/configurators/antigravity.js +18 -0
  19. package/dist/configurators/antigravity.js.map +1 -0
  20. package/dist/configurators/claude.d.ts +32 -0
  21. package/dist/configurators/claude.d.ts.map +1 -0
  22. package/dist/configurators/claude.js +98 -0
  23. package/dist/configurators/claude.js.map +1 -0
  24. package/dist/configurators/codex.d.ts +8 -0
  25. package/dist/configurators/codex.d.ts.map +1 -0
  26. package/dist/configurators/codex.js +20 -0
  27. package/dist/configurators/codex.js.map +1 -0
  28. package/dist/configurators/cursor.d.ts +5 -0
  29. package/dist/configurators/cursor.d.ts.map +1 -0
  30. package/dist/configurators/cursor.js +52 -0
  31. package/dist/configurators/cursor.js.map +1 -0
  32. package/dist/configurators/gemini.d.ts +8 -0
  33. package/dist/configurators/gemini.d.ts.map +1 -0
  34. package/dist/configurators/gemini.js +52 -0
  35. package/dist/configurators/gemini.js.map +1 -0
  36. package/dist/configurators/iflow.d.ts +33 -0
  37. package/dist/configurators/iflow.d.ts.map +1 -0
  38. package/dist/configurators/iflow.js +99 -0
  39. package/dist/configurators/iflow.js.map +1 -0
  40. package/dist/configurators/index.d.ts +55 -0
  41. package/dist/configurators/index.d.ts.map +1 -0
  42. package/dist/configurators/index.js +220 -0
  43. package/dist/configurators/index.js.map +1 -0
  44. package/dist/configurators/kilo.d.ts +8 -0
  45. package/dist/configurators/kilo.d.ts.map +1 -0
  46. package/dist/configurators/kilo.js +51 -0
  47. package/dist/configurators/kilo.js.map +1 -0
  48. package/dist/configurators/kiro.d.ts +8 -0
  49. package/dist/configurators/kiro.d.ts.map +1 -0
  50. package/dist/configurators/kiro.js +20 -0
  51. package/dist/configurators/kiro.js.map +1 -0
  52. package/dist/configurators/opencode.d.ts +32 -0
  53. package/dist/configurators/opencode.d.ts.map +1 -0
  54. package/dist/configurators/opencode.js +92 -0
  55. package/dist/configurators/opencode.js.map +1 -0
  56. package/dist/configurators/shared.d.ts +12 -0
  57. package/dist/configurators/shared.d.ts.map +1 -0
  58. package/dist/configurators/shared.js +21 -0
  59. package/dist/configurators/shared.js.map +1 -0
  60. package/dist/configurators/workflow.d.ts +28 -0
  61. package/dist/configurators/workflow.d.ts.map +1 -0
  62. package/dist/configurators/workflow.js +134 -0
  63. package/dist/configurators/workflow.js.map +1 -0
  64. package/dist/constants/paths.d.ts +68 -0
  65. package/dist/constants/paths.d.ts.map +1 -0
  66. package/dist/constants/paths.js +77 -0
  67. package/dist/constants/paths.js.map +1 -0
  68. package/dist/constants/version.d.ts +9 -0
  69. package/dist/constants/version.d.ts.map +1 -0
  70. package/dist/constants/version.js +15 -0
  71. package/dist/constants/version.js.map +1 -0
  72. package/dist/index.d.ts +9 -0
  73. package/dist/index.d.ts.map +1 -0
  74. package/dist/index.js +9 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/migrations/index.d.ts +54 -0
  77. package/dist/migrations/index.d.ts.map +1 -0
  78. package/dist/migrations/index.js +160 -0
  79. package/dist/migrations/index.js.map +1 -0
  80. package/dist/migrations/manifests/0.1.9.json +30 -0
  81. package/dist/migrations/manifests/0.2.0.json +49 -0
  82. package/dist/migrations/manifests/0.2.12.json +9 -0
  83. package/dist/migrations/manifests/0.2.13.json +9 -0
  84. package/dist/migrations/manifests/0.2.14.json +175 -0
  85. package/dist/migrations/manifests/0.2.15.json +33 -0
  86. package/dist/migrations/manifests/0.3.0-beta.0.json +278 -0
  87. package/dist/migrations/manifests/0.3.0-beta.1.json +9 -0
  88. package/dist/migrations/manifests/0.3.0-beta.10.json +9 -0
  89. package/dist/migrations/manifests/0.3.0-beta.11.json +9 -0
  90. package/dist/migrations/manifests/0.3.0-beta.12.json +9 -0
  91. package/dist/migrations/manifests/0.3.0-beta.13.json +9 -0
  92. package/dist/migrations/manifests/0.3.0-beta.14.json +9 -0
  93. package/dist/migrations/manifests/0.3.0-beta.15.json +9 -0
  94. package/dist/migrations/manifests/0.3.0-beta.16.json +9 -0
  95. package/dist/migrations/manifests/0.3.0-beta.2.json +9 -0
  96. package/dist/migrations/manifests/0.3.0-beta.3.json +9 -0
  97. package/dist/migrations/manifests/0.3.0-beta.4.json +9 -0
  98. package/dist/migrations/manifests/0.3.0-beta.5.json +9 -0
  99. package/dist/migrations/manifests/0.3.0-beta.6.json +9 -0
  100. package/dist/migrations/manifests/0.3.0-beta.7.json +11 -0
  101. package/dist/migrations/manifests/0.3.0-beta.8.json +9 -0
  102. package/dist/migrations/manifests/0.3.0-beta.9.json +9 -0
  103. package/dist/migrations/manifests/0.3.0-rc.0.json +9 -0
  104. package/dist/migrations/manifests/0.3.0-rc.1.json +9 -0
  105. package/dist/migrations/manifests/0.3.0-rc.2.json +9 -0
  106. package/dist/migrations/manifests/0.3.0-rc.3.json +9 -0
  107. package/dist/migrations/manifests/0.3.0-rc.4.json +9 -0
  108. package/dist/migrations/manifests/0.3.0-rc.5.json +9 -0
  109. package/dist/migrations/manifests/0.3.0-rc.6.json +9 -0
  110. package/dist/migrations/manifests/0.3.0.json +11 -0
  111. package/dist/templates/antigravity/index.d.ts +12 -0
  112. package/dist/templates/antigravity/index.d.ts.map +1 -0
  113. package/dist/templates/antigravity/index.js +29 -0
  114. package/dist/templates/antigravity/index.js.map +1 -0
  115. package/dist/templates/claude/agents/check.md +122 -0
  116. package/dist/templates/claude/agents/debug.md +106 -0
  117. package/dist/templates/claude/agents/dispatch.md +214 -0
  118. package/dist/templates/claude/agents/implement.md +96 -0
  119. package/dist/templates/claude/agents/plan.md +396 -0
  120. package/dist/templates/claude/agents/research.md +120 -0
  121. package/dist/templates/claude/commands/trellis/before-backend-dev.md +13 -0
  122. package/dist/templates/claude/commands/trellis/before-frontend-dev.md +13 -0
  123. package/dist/templates/claude/commands/trellis/before-role-work.md +364 -0
  124. package/dist/templates/claude/commands/trellis/brainstorm.md +474 -0
  125. package/dist/templates/claude/commands/trellis/break-loop.md +125 -0
  126. package/dist/templates/claude/commands/trellis/check-backend.md +13 -0
  127. package/dist/templates/claude/commands/trellis/check-cross-layer.md +153 -0
  128. package/dist/templates/claude/commands/trellis/check-frontend.md +13 -0
  129. package/dist/templates/claude/commands/trellis/create-command.md +154 -0
  130. package/dist/templates/claude/commands/trellis/finish-work.md +153 -0
  131. package/dist/templates/claude/commands/trellis/handoff.md +445 -0
  132. package/dist/templates/claude/commands/trellis/integrate-skill.md +219 -0
  133. package/dist/templates/claude/commands/trellis/onboard.md +358 -0
  134. package/dist/templates/claude/commands/trellis/parallel.md +193 -0
  135. package/dist/templates/claude/commands/trellis/pick-task.md +515 -0
  136. package/dist/templates/claude/commands/trellis/record-session.md +62 -0
  137. package/dist/templates/claude/commands/trellis/start.md +373 -0
  138. package/dist/templates/claude/commands/trellis/update-spec.md +354 -0
  139. package/dist/templates/claude/hooks/inject-subagent-context.py +873 -0
  140. package/dist/templates/claude/hooks/ralph-loop.py +388 -0
  141. package/dist/templates/claude/hooks/session-start.py +200 -0
  142. package/dist/templates/claude/index.d.ts +54 -0
  143. package/dist/templates/claude/index.d.ts.map +1 -0
  144. package/dist/templates/claude/index.js +85 -0
  145. package/dist/templates/claude/index.js.map +1 -0
  146. package/dist/templates/claude/settings.json +41 -0
  147. package/dist/templates/codex/index.d.ts +18 -0
  148. package/dist/templates/codex/index.d.ts.map +1 -0
  149. package/dist/templates/codex/index.js +40 -0
  150. package/dist/templates/codex/index.js.map +1 -0
  151. package/dist/templates/codex/skills/before-backend-dev/SKILL.md +18 -0
  152. package/dist/templates/codex/skills/before-frontend-dev/SKILL.md +18 -0
  153. package/dist/templates/codex/skills/brainstorm/SKILL.md +479 -0
  154. package/dist/templates/codex/skills/break-loop/SKILL.md +130 -0
  155. package/dist/templates/codex/skills/check-backend/SKILL.md +18 -0
  156. package/dist/templates/codex/skills/check-cross-layer/SKILL.md +158 -0
  157. package/dist/templates/codex/skills/check-frontend/SKILL.md +18 -0
  158. package/dist/templates/codex/skills/create-command/SKILL.md +101 -0
  159. package/dist/templates/codex/skills/finish-work/SKILL.md +148 -0
  160. package/dist/templates/codex/skills/integrate-skill/SKILL.md +221 -0
  161. package/dist/templates/codex/skills/onboard/SKILL.md +363 -0
  162. package/dist/templates/codex/skills/record-session/SKILL.md +67 -0
  163. package/dist/templates/codex/skills/start/SKILL.md +330 -0
  164. package/dist/templates/codex/skills/update-spec/SKILL.md +335 -0
  165. package/dist/templates/cursor/commands/trellis-before-backend-dev.md +13 -0
  166. package/dist/templates/cursor/commands/trellis-before-frontend-dev.md +13 -0
  167. package/dist/templates/cursor/commands/trellis-brainstorm.md +474 -0
  168. package/dist/templates/cursor/commands/trellis-break-loop.md +107 -0
  169. package/dist/templates/cursor/commands/trellis-check-backend.md +13 -0
  170. package/dist/templates/cursor/commands/trellis-check-cross-layer.md +153 -0
  171. package/dist/templates/cursor/commands/trellis-check-frontend.md +13 -0
  172. package/dist/templates/cursor/commands/trellis-create-command.md +154 -0
  173. package/dist/templates/cursor/commands/trellis-finish-work.md +143 -0
  174. package/dist/templates/cursor/commands/trellis-integrate-skill.md +219 -0
  175. package/dist/templates/cursor/commands/trellis-onboard.md +358 -0
  176. package/dist/templates/cursor/commands/trellis-record-session.md +62 -0
  177. package/dist/templates/cursor/commands/trellis-start.md +366 -0
  178. package/dist/templates/cursor/commands/trellis-update-spec.md +354 -0
  179. package/dist/templates/cursor/index.d.ts +24 -0
  180. package/dist/templates/cursor/index.d.ts.map +1 -0
  181. package/dist/templates/cursor/index.js +44 -0
  182. package/dist/templates/cursor/index.js.map +1 -0
  183. package/dist/templates/extract.d.ts +166 -0
  184. package/dist/templates/extract.d.ts.map +1 -0
  185. package/dist/templates/extract.js +296 -0
  186. package/dist/templates/extract.js.map +1 -0
  187. package/dist/templates/gemini/commands/trellis/before-backend-dev.toml +17 -0
  188. package/dist/templates/gemini/commands/trellis/before-frontend-dev.toml +17 -0
  189. package/dist/templates/gemini/commands/trellis/brainstorm.toml +420 -0
  190. package/dist/templates/gemini/commands/trellis/break-loop.toml +129 -0
  191. package/dist/templates/gemini/commands/trellis/check-backend.toml +17 -0
  192. package/dist/templates/gemini/commands/trellis/check-cross-layer.toml +147 -0
  193. package/dist/templates/gemini/commands/trellis/check-frontend.toml +17 -0
  194. package/dist/templates/gemini/commands/trellis/create-command.toml +119 -0
  195. package/dist/templates/gemini/commands/trellis/finish-work.toml +133 -0
  196. package/dist/templates/gemini/commands/trellis/integrate-skill.toml +104 -0
  197. package/dist/templates/gemini/commands/trellis/onboard.toml +111 -0
  198. package/dist/templates/gemini/commands/trellis/record-session.toml +66 -0
  199. package/dist/templates/gemini/commands/trellis/start.toml +292 -0
  200. package/dist/templates/gemini/commands/trellis/update-spec.toml +132 -0
  201. package/dist/templates/gemini/index.d.ts +21 -0
  202. package/dist/templates/gemini/index.d.ts.map +1 -0
  203. package/dist/templates/gemini/index.js +44 -0
  204. package/dist/templates/gemini/index.js.map +1 -0
  205. package/dist/templates/iflow/agents/check.md +122 -0
  206. package/dist/templates/iflow/agents/debug.md +106 -0
  207. package/dist/templates/iflow/agents/dispatch.md +214 -0
  208. package/dist/templates/iflow/agents/implement.md +96 -0
  209. package/dist/templates/iflow/agents/plan.md +396 -0
  210. package/dist/templates/iflow/agents/research.md +120 -0
  211. package/dist/templates/iflow/commands/trellis/before-backend-dev.md +13 -0
  212. package/dist/templates/iflow/commands/trellis/before-frontend-dev.md +13 -0
  213. package/dist/templates/iflow/commands/trellis/brainstorm.md +474 -0
  214. package/dist/templates/iflow/commands/trellis/break-loop.md +125 -0
  215. package/dist/templates/iflow/commands/trellis/check-backend.md +13 -0
  216. package/dist/templates/iflow/commands/trellis/check-cross-layer.md +153 -0
  217. package/dist/templates/iflow/commands/trellis/check-frontend.md +13 -0
  218. package/dist/templates/iflow/commands/trellis/create-command.md +152 -0
  219. package/dist/templates/iflow/commands/trellis/finish-work.md +153 -0
  220. package/dist/templates/iflow/commands/trellis/integrate-skill.md +219 -0
  221. package/dist/templates/iflow/commands/trellis/onboard.md +358 -0
  222. package/dist/templates/iflow/commands/trellis/parallel.md +193 -0
  223. package/dist/templates/iflow/commands/trellis/record-session.md +62 -0
  224. package/dist/templates/iflow/commands/trellis/start.md +373 -0
  225. package/dist/templates/iflow/commands/trellis/update-spec.md +354 -0
  226. package/dist/templates/iflow/hooks/inject-subagent-context.py +788 -0
  227. package/dist/templates/iflow/hooks/ralph-loop.py +388 -0
  228. package/dist/templates/iflow/hooks/session-start.py +143 -0
  229. package/dist/templates/iflow/index.d.ts +54 -0
  230. package/dist/templates/iflow/index.d.ts.map +1 -0
  231. package/dist/templates/iflow/index.js +85 -0
  232. package/dist/templates/iflow/index.js.map +1 -0
  233. package/dist/templates/iflow/settings.json +40 -0
  234. package/dist/templates/kilo/commands/trellis/before-backend-dev.md +13 -0
  235. package/dist/templates/kilo/commands/trellis/before-frontend-dev.md +13 -0
  236. package/dist/templates/kilo/commands/trellis/brainstorm.md +474 -0
  237. package/dist/templates/kilo/commands/trellis/break-loop.md +125 -0
  238. package/dist/templates/kilo/commands/trellis/check-backend.md +13 -0
  239. package/dist/templates/kilo/commands/trellis/check-cross-layer.md +153 -0
  240. package/dist/templates/kilo/commands/trellis/check-frontend.md +13 -0
  241. package/dist/templates/kilo/commands/trellis/create-command.md +152 -0
  242. package/dist/templates/kilo/commands/trellis/finish-work.md +129 -0
  243. package/dist/templates/kilo/commands/trellis/integrate-skill.md +219 -0
  244. package/dist/templates/kilo/commands/trellis/onboard.md +358 -0
  245. package/dist/templates/kilo/commands/trellis/parallel.md +194 -0
  246. package/dist/templates/kilo/commands/trellis/record-session.md +62 -0
  247. package/dist/templates/kilo/commands/trellis/start.md +321 -0
  248. package/dist/templates/kilo/commands/trellis/update-spec.md +285 -0
  249. package/dist/templates/kilo/index.d.ts +16 -0
  250. package/dist/templates/kilo/index.d.ts.map +1 -0
  251. package/dist/templates/kilo/index.js +39 -0
  252. package/dist/templates/kilo/index.js.map +1 -0
  253. package/dist/templates/kiro/index.d.ts +18 -0
  254. package/dist/templates/kiro/index.d.ts.map +1 -0
  255. package/dist/templates/kiro/index.js +40 -0
  256. package/dist/templates/kiro/index.js.map +1 -0
  257. package/dist/templates/kiro/skills/before-backend-dev/SKILL.md +18 -0
  258. package/dist/templates/kiro/skills/before-frontend-dev/SKILL.md +18 -0
  259. package/dist/templates/kiro/skills/brainstorm/SKILL.md +479 -0
  260. package/dist/templates/kiro/skills/break-loop/SKILL.md +130 -0
  261. package/dist/templates/kiro/skills/check-backend/SKILL.md +18 -0
  262. package/dist/templates/kiro/skills/check-cross-layer/SKILL.md +158 -0
  263. package/dist/templates/kiro/skills/check-frontend/SKILL.md +18 -0
  264. package/dist/templates/kiro/skills/create-command/SKILL.md +101 -0
  265. package/dist/templates/kiro/skills/finish-work/SKILL.md +148 -0
  266. package/dist/templates/kiro/skills/integrate-skill/SKILL.md +221 -0
  267. package/dist/templates/kiro/skills/onboard/SKILL.md +363 -0
  268. package/dist/templates/kiro/skills/record-session/SKILL.md +67 -0
  269. package/dist/templates/kiro/skills/start/SKILL.md +330 -0
  270. package/dist/templates/kiro/skills/update-spec/SKILL.md +335 -0
  271. package/dist/templates/markdown/agents.md +18 -0
  272. package/dist/templates/markdown/gitignore.txt +12 -0
  273. package/dist/templates/markdown/index.d.ts +27 -0
  274. package/dist/templates/markdown/index.d.ts.map +1 -0
  275. package/dist/templates/markdown/index.js +52 -0
  276. package/dist/templates/markdown/index.js.map +1 -0
  277. package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +51 -0
  278. package/dist/templates/markdown/spec/backend/directory-structure.md.txt +54 -0
  279. package/dist/templates/markdown/spec/backend/error-handling.md.txt +51 -0
  280. package/dist/templates/markdown/spec/backend/index.md +40 -0
  281. package/dist/templates/markdown/spec/backend/index.md.txt +38 -0
  282. package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +51 -0
  283. package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +51 -0
  284. package/dist/templates/markdown/spec/backend/script-conventions.md +467 -0
  285. package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +59 -0
  286. package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +54 -0
  287. package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +51 -0
  288. package/dist/templates/markdown/spec/frontend/index.md.txt +39 -0
  289. package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +51 -0
  290. package/dist/templates/markdown/spec/frontend/state-management.md.txt +51 -0
  291. package/dist/templates/markdown/spec/frontend/type-safety.md.txt +51 -0
  292. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md +118 -0
  293. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +92 -0
  294. package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +94 -0
  295. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md +394 -0
  296. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +319 -0
  297. package/dist/templates/markdown/spec/guides/index.md.txt +79 -0
  298. package/dist/templates/markdown/workspace-index.md +123 -0
  299. package/dist/templates/markdown/worktree.yaml.txt +58 -0
  300. package/dist/templates/opencode/agents/check.md +146 -0
  301. package/dist/templates/opencode/agents/debug.md +129 -0
  302. package/dist/templates/opencode/agents/dispatch.md +223 -0
  303. package/dist/templates/opencode/agents/implement.md +120 -0
  304. package/dist/templates/opencode/agents/research.md +147 -0
  305. package/dist/templates/opencode/agents/trellis-plan.md +427 -0
  306. package/dist/templates/opencode/commands/trellis/before-backend-dev.md +13 -0
  307. package/dist/templates/opencode/commands/trellis/before-frontend-dev.md +13 -0
  308. package/dist/templates/opencode/commands/trellis/brainstorm.md +474 -0
  309. package/dist/templates/opencode/commands/trellis/break-loop.md +125 -0
  310. package/dist/templates/opencode/commands/trellis/check-backend.md +13 -0
  311. package/dist/templates/opencode/commands/trellis/check-cross-layer.md +153 -0
  312. package/dist/templates/opencode/commands/trellis/check-frontend.md +13 -0
  313. package/dist/templates/opencode/commands/trellis/create-command.md +154 -0
  314. package/dist/templates/opencode/commands/trellis/finish-work.md +144 -0
  315. package/dist/templates/opencode/commands/trellis/integrate-skill.md +219 -0
  316. package/dist/templates/opencode/commands/trellis/migrate-specs.md +0 -0
  317. package/dist/templates/opencode/commands/trellis/onboard.md +358 -0
  318. package/dist/templates/opencode/commands/trellis/parallel.md +194 -0
  319. package/dist/templates/opencode/commands/trellis/record-session.md +62 -0
  320. package/dist/templates/opencode/commands/trellis/start.md +338 -0
  321. package/dist/templates/opencode/commands/trellis/update-spec.md +354 -0
  322. package/dist/templates/opencode/lib/trellis-context.js +436 -0
  323. package/dist/templates/opencode/package.json +5 -0
  324. package/dist/templates/opencode/plugin/inject-subagent-context.js +538 -0
  325. package/dist/templates/opencode/plugin/session-start.js +192 -0
  326. package/dist/templates/trellis/VERSION +1 -0
  327. package/dist/templates/trellis/deliverables/README.md +51 -0
  328. package/dist/templates/trellis/gitignore.txt +29 -0
  329. package/dist/templates/trellis/index.d.ts +49 -0
  330. package/dist/templates/trellis/index.d.ts.map +1 -0
  331. package/dist/templates/trellis/index.js +92 -0
  332. package/dist/templates/trellis/index.js.map +1 -0
  333. package/dist/templates/trellis/paths.README.md +277 -0
  334. package/dist/templates/trellis/paths.yaml +41 -0
  335. package/dist/templates/trellis/pool/implementations.json +5 -0
  336. package/dist/templates/trellis/pool/prototypes.json +5 -0
  337. package/dist/templates/trellis/pool/requirements.json +5 -0
  338. package/dist/templates/trellis/scripts/__init__.py +5 -0
  339. package/dist/templates/trellis/scripts/add_session.py +391 -0
  340. package/dist/templates/trellis/scripts/common/__init__.py +80 -0
  341. package/dist/templates/trellis/scripts/common/cli_adapter.py +522 -0
  342. package/dist/templates/trellis/scripts/common/developer.py +189 -0
  343. package/dist/templates/trellis/scripts/common/git_context.py +383 -0
  344. package/dist/templates/trellis/scripts/common/paths.py +346 -0
  345. package/dist/templates/trellis/scripts/common/phase.py +253 -0
  346. package/dist/templates/trellis/scripts/common/project_paths.py +189 -0
  347. package/dist/templates/trellis/scripts/common/registry.py +365 -0
  348. package/dist/templates/trellis/scripts/common/task_queue.py +255 -0
  349. package/dist/templates/trellis/scripts/common/task_utils.py +177 -0
  350. package/dist/templates/trellis/scripts/common/worktree.py +218 -0
  351. package/dist/templates/trellis/scripts/create_bootstrap.py +290 -0
  352. package/dist/templates/trellis/scripts/get_context.py +16 -0
  353. package/dist/templates/trellis/scripts/get_developer.py +26 -0
  354. package/dist/templates/trellis/scripts/handoff_generator.py +380 -0
  355. package/dist/templates/trellis/scripts/init_developer.py +51 -0
  356. package/dist/templates/trellis/scripts/multi_agent/__init__.py +5 -0
  357. package/dist/templates/trellis/scripts/multi_agent/cleanup.py +403 -0
  358. package/dist/templates/trellis/scripts/multi_agent/create_pr.py +329 -0
  359. package/dist/templates/trellis/scripts/multi_agent/plan.py +233 -0
  360. package/dist/templates/trellis/scripts/multi_agent/start.py +461 -0
  361. package/dist/templates/trellis/scripts/multi_agent/status.py +817 -0
  362. package/dist/templates/trellis/scripts/pool.py +373 -0
  363. package/dist/templates/trellis/scripts/task.py +1162 -0
  364. package/dist/templates/trellis/scripts-shell-archive/add-session.sh +384 -0
  365. package/dist/templates/trellis/scripts-shell-archive/common/developer.sh +129 -0
  366. package/dist/templates/trellis/scripts-shell-archive/common/git-context.sh +263 -0
  367. package/dist/templates/trellis/scripts-shell-archive/common/paths.sh +208 -0
  368. package/dist/templates/trellis/scripts-shell-archive/common/phase.sh +150 -0
  369. package/dist/templates/trellis/scripts-shell-archive/common/registry.sh +247 -0
  370. package/dist/templates/trellis/scripts-shell-archive/common/task-queue.sh +142 -0
  371. package/dist/templates/trellis/scripts-shell-archive/common/task-utils.sh +151 -0
  372. package/dist/templates/trellis/scripts-shell-archive/common/worktree.sh +128 -0
  373. package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +299 -0
  374. package/dist/templates/trellis/scripts-shell-archive/get-context.sh +7 -0
  375. package/dist/templates/trellis/scripts-shell-archive/get-developer.sh +15 -0
  376. package/dist/templates/trellis/scripts-shell-archive/init-developer.sh +34 -0
  377. package/dist/templates/trellis/scripts-shell-archive/multi-agent/cleanup.sh +396 -0
  378. package/dist/templates/trellis/scripts-shell-archive/multi-agent/create-pr.sh +241 -0
  379. package/dist/templates/trellis/scripts-shell-archive/multi-agent/plan.sh +207 -0
  380. package/dist/templates/trellis/scripts-shell-archive/multi-agent/start.sh +317 -0
  381. package/dist/templates/trellis/scripts-shell-archive/multi-agent/status.sh +828 -0
  382. package/dist/templates/trellis/scripts-shell-archive/task.sh +1204 -0
  383. package/dist/templates/trellis/spec/roles/designer/index.md +243 -0
  384. package/dist/templates/trellis/spec/roles/designer/mock-data-standards.md +481 -0
  385. package/dist/templates/trellis/spec/roles/designer/prototype-guidelines.md +429 -0
  386. package/dist/templates/trellis/spec/roles/frontend-impl/api-integration.md +565 -0
  387. package/dist/templates/trellis/spec/roles/frontend-impl/index.md +321 -0
  388. package/dist/templates/trellis/spec/roles/frontend-impl/state-management.md +599 -0
  389. package/dist/templates/trellis/spec/roles/pm/index.md +112 -0
  390. package/dist/templates/trellis/spec/roles/pm/prd-template.md +124 -0
  391. package/dist/templates/trellis/tasks/.gitkeep +0 -0
  392. package/dist/templates/trellis/workflow.md +416 -0
  393. package/dist/templates/trellis/worktree.yaml +47 -0
  394. package/dist/types/ai-tools.d.ts +56 -0
  395. package/dist/types/ai-tools.d.ts.map +1 -0
  396. package/dist/types/ai-tools.js +103 -0
  397. package/dist/types/ai-tools.js.map +1 -0
  398. package/dist/types/migration.d.ts +86 -0
  399. package/dist/types/migration.d.ts.map +1 -0
  400. package/dist/types/migration.js +8 -0
  401. package/dist/types/migration.js.map +1 -0
  402. package/dist/utils/compare-versions.d.ts +12 -0
  403. package/dist/utils/compare-versions.d.ts.map +1 -0
  404. package/dist/utils/compare-versions.js +76 -0
  405. package/dist/utils/compare-versions.js.map +1 -0
  406. package/dist/utils/file-writer.d.ts +23 -0
  407. package/dist/utils/file-writer.d.ts.map +1 -0
  408. package/dist/utils/file-writer.js +140 -0
  409. package/dist/utils/file-writer.js.map +1 -0
  410. package/dist/utils/project-detector.d.ts +16 -0
  411. package/dist/utils/project-detector.d.ts.map +1 -0
  412. package/dist/utils/project-detector.js +186 -0
  413. package/dist/utils/project-detector.js.map +1 -0
  414. package/dist/utils/template-fetcher.d.ts +51 -0
  415. package/dist/utils/template-fetcher.d.ts.map +1 -0
  416. package/dist/utils/template-fetcher.js +174 -0
  417. package/dist/utils/template-fetcher.js.map +1 -0
  418. package/dist/utils/template-hash.d.ts +78 -0
  419. package/dist/utils/template-hash.d.ts.map +1 -0
  420. package/dist/utils/template-hash.js +233 -0
  421. package/dist/utils/template-hash.js.map +1 -0
  422. package/package.json +87 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.2",
3
+ "description": "Windows compatibility fixes",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Bug Fixes:**\n- fix(templates): use python3 consistently for Windows compatibility\n- fix(update): move breaking change warnings to bottom of output\n\n**Docs:**\n- Add cross-platform thinking guide",
7
+ "migrations": [],
8
+ "notes": "No migration required."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.3",
3
+ "description": "Breaking change warning and docs update",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Bug Fixes:**\n- fix(update): show breaking change warning before confirm prompt\n\n**Docs:**\n- Update backend specs for shell-to-python migration",
7
+ "migrations": [],
8
+ "notes": "No migration required."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.4",
3
+ "description": "Version bump only",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "Version bump release.",
7
+ "migrations": [],
8
+ "notes": "No migration required."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.5",
3
+ "description": "Semver prerelease version handling fix",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Bug Fixes:**\n- fix(update): handle prerelease versions in semver comparison",
7
+ "migrations": [],
8
+ "notes": "No migration required."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.6",
3
+ "description": "Init conflict handling & trellis-meta skill",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Features:**\n- feat(skill): add trellis-meta skill documenting Trellis system\n\n**Bug Fixes:**\n- fix(init): use writeFile for all file copies to allow user choice on conflicts",
7
+ "migrations": [],
8
+ "notes": "No migration required."
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": "0.3.0-beta.7",
3
+ "description": "Windows compatibility fixes and hook JSON format corrections",
4
+ "breaking": false,
5
+ "recommendMigrate": true,
6
+ "changelog": "Fixes for Windows compatibility (Issue #19) and Claude Code hook JSON format (Issue #18). Hook commands now use `python3` directly. Windows users may need to manually update `.claude/settings.json` if `python3` is not available on their system.",
7
+ "migrationGuide": "# Migration Guide: v0.3.0-beta.7 Windows Compatibility\n\n## Overview\n\nThis release fixes Windows compatibility issues and corrects the Claude Code hook JSON output format.\n\n## What Changed\n\n### Hook JSON Format (Issue #18)\n\nSessionStart hooks now output the correct JSON format expected by Claude Code:\n\n```json\n{\n \"hookSpecificOutput\": {\n \"hookEventName\": \"SessionStart\",\n \"additionalContext\": \"...\"\n }\n}\n```\n\n### UTF-8 Encoding (Issue #19)\n\n- Git commands now force UTF-8 output encoding\n- Python subprocess calls use `encoding=\"utf-8\"` and `errors=\"replace\"`\n- Cross-platform `tail_follow()` implementation in status.py\n\n### Hook Command Change\n\nHook commands in `.claude/settings.json` now use `python3` directly:\n\n```json\n\"command\": \"python3 .claude/hooks/session-start.py\"\n```\n\n## Windows Users: Manual Step Required\n\nIf your Windows system uses `python` instead of `python3`, you need to manually update `.claude/settings.json`:\n\n1. Open `.claude/settings.json`\n2. Find all `\"command\": \"python3 ...\"` entries\n3. Change `python3` to `python` if needed\n\nExample:\n```json\n// Before (if python3 not available)\n\"command\": \"python3 .claude/hooks/session-start.py\"\n\n// After\n\"command\": \"python .claude/hooks/session-start.py\"\n```\n\n## Affected Files\n\n- `.claude/settings.json` - Hook commands updated\n- `.claude/hooks/session-start.py` - JSON format fixed\n- `.trellis/scripts/common/git_context.py` - UTF-8 encoding\n- `.trellis/scripts/multi_agent/status.py` - Cross-platform tail\n- Other scripts - UTF-8 encoding fixes",
8
+ "aiInstructions": "1. Update `.claude/settings.json` hook commands to use `python3`\n2. If user reports Python not found on Windows, guide them to change `python3` to `python` in settings.json\n3. Verify hook scripts output correct JSON format\n4. Check that git commands work with non-ASCII characters",
9
+ "migrations": [],
10
+ "notes": "This is a compatibility fix release. No file migrations required. Windows users using `python` instead of `python3` should manually update their `.claude/settings.json` file."
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.8",
3
+ "description": "Task commands now support task name lookup",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "All task commands (start, init-context, set-branch, etc.) now support task name in addition to full path. Example: `python3 task.py start my-task` instead of `python3 task.py start .trellis/tasks/01-31-my-task`.",
7
+ "migrations": [],
8
+ "notes": "Usability improvement. No migration required."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-beta.9",
3
+ "description": "OpenCode platform support",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "Added OpenCode platform support:\n\n**New Features:**\n- `trellis init --opencode` - Initialize project for OpenCode\n- `--platform opencode` flag for plan.py, start.py\n- Complete `.opencode/` templates (agents, commands, plugins)\n- Session ID extraction and resume for OpenCode (`ses_xxx` format)\n- CLI adapter abstraction (`cli_adapter.py`)\n\n**Changes:**\n- Agent definitions use `permission:` format instead of deprecated `tools:`\n- Agents no longer hardcode `model:` field, inherit from user's global config\n- `status.py` outputs platform-specific resume commands\n\n**OpenCode Usage:**\n```bash\n# Initialize\ntrellis init --opencode\n\n# Multi-agent with OpenCode\npython3 .trellis/scripts/multi_agent/plan.py --platform opencode ...\npython3 .trellis/scripts/multi_agent/start.py --platform opencode ...\n```\n\n**Note:** Full subagent context injection requires oh-my-opencode (omo). Without omo, agents use Self-Loading fallback.",
7
+ "migrations": [],
8
+ "notes": "New platform support. No migration required for existing Claude Code users."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.0",
3
+ "description": "Registry refactor, bug fixes, test coverage, release tooling",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**New Features:**\n- feat(init): support remote spec templates from docs repo\n- feat(scripts): create-manifest.js supports beta/rc/release workflows\n- feat(scripts): add release:rc script to package.json\n\n**Bug Fixes:**\n- fix: template placeholder roundtrip — collectTemplates settings now resolve {{PYTHON_CMD}} correctly\n- fix: remove stale cross-platform-thinking-guide.md reference from update command\n- fix: tool flags (--claude etc.) now take precedence over -y default\n- fix: Windows python3 command compatibility ({{PYTHON_CMD}} placeholder)\n\n**Refactor:**\n- refactor: centralized platform registry pattern (replaces scattered init/update logic)\n- refactor: extract resolvePlaceholders to shared.ts, remove templates.ts dispatcher\n- refactor: simplify tool selection with data-driven approach\n- refactor: extract VERSION constant to src/constants/version.ts\n\n**Testing:**\n- 312 tests across 17 files (unit, integration, regression)\n- @vitest/coverage-v8 with pnpm test:coverage\n\n**Documentation:**\n- docs: add .trellis/spec/unit-test/ conventions (4 files)\n- docs: update platform-integration.md with registry pattern, known gaps, CliFlag type\n- docs: integrate test guidance into workflow commands (start, check-backend, finish-work)",
7
+ "migrations": [],
8
+ "notes": "No migration required. First release candidate — feature complete, stabilization phase."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.1",
3
+ "description": "Fix CLI version comparison for prerelease versions",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Bug Fixes:**\n- fix: CLI startup incorrectly reports rc version as older than beta (e.g., 0.3.0-rc.0 < 0.3.0-beta.16)\n- fix: deduplicate compareVersions — extract to shared utils/compare-versions.ts (was duplicated 3x with inconsistent implementations)\n\n**Root Cause:**\n- cli/index.ts used a simplified compareVersions that ignored prerelease identifiers, parsing \"0.3.0-rc.0\" as [0, 3, 0, 0] and \"0.3.0-beta.16\" as [0, 3, 0, 16], concluding rc < beta\n- commands/update.ts and migrations/index.ts had the correct full implementation but it was not shared",
7
+ "migrations": [],
8
+ "notes": "No migration required. Hotfix for version comparison bug introduced in rc.0."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.2",
3
+ "description": "Codex platform integration and test/doc alignment",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**New Features:**\n- feat(platform): add Codex as a first-class platform in AI tool registry (types, CLI flag, init options, configurator dispatch)\n- feat(templates): add Codex skill templates under `src/templates/codex/skills/*/SKILL.md`\n- feat(configurator): add `configureCodex()` and template collection mapping to `.agents/skills/<name>/SKILL.md`\n- feat(runtime): extend Python `cli_adapter.py` / `registry.py` to support Codex detection and command path mapping\n\n**Testing:**\n- test(codex): add focused coverage for Codex template loading, init behavior, managed path detection, platform configurator output, and regression checks\n- test: full suite passing (`pnpm lint`, `pnpm typecheck`, `pnpm test`, `pnpm test:coverage`)\n\n**Documentation & Workflow:**\n- docs(workflow): add `improve-ut` skill/command to standardize UT planning and reporting\n- docs(spec): update backend platform integration guidance for Codex scope and common pitfalls",
7
+ "migrations": [],
8
+ "notes": "No migration required. Existing projects can adopt Codex via re-init/update workflows; no file rename/delete migration is needed."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.3",
3
+ "description": "Code-spec enforcement, codex skill fixes, and add_session robustness",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Bug Fixes:**\n- fix(templates): tolerate formatted markdown in add_session.py table separator matching — `startswith(\"|---\")` replaced with `re.match(r\"^\\|\\s*-\", line)` to handle formatters adding spaces\n- fix(codex): replace `/trellis:xxx` with `$xxx` syntax in codex skill templates (finish-work, update-spec, start)\n- fix(codex): remove Claude Code-specific `Task()`, `subagent_type`, `model: \"opus\"` references from codex start skill\n\n**Enhancements:**\n- feat(codex): add codex platform support to local cli_adapter.py (config dir, detect, command path)\n- docs(code-spec): enforce executable spec requirements — add Step 1.5 Code-Spec Depth Requirement to start, Section 2.5 Hard Block to finish-work, 7-section structure to update-spec\n- docs(templates): sync code-spec requirements to all 5 platform command templates\n\n**Testing:**\n- test(regression): add [rc.2] regression test for add_session.py table separator fix",
7
+ "migrations": [],
8
+ "notes": "No migration required. Fixes and enhancements are template-level only."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.4",
3
+ "description": "Active spec sync in finish agent and codex skill template fixes",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Enhancements:**\n- feat(templates): finish agent now actively syncs spec docs during pipeline runs — injects `update-spec.md` into finish context across all pipeline platforms (claude/iflow/opencode), rewrites finish workflow from passive verification to active spec sync that detects new patterns/contracts and updates spec files before confirming PR readiness\n\n**Documentation:**\n- docs(templates): update dispatch.md across claude/iflow/opencode to document the new finish-phase spec injection (update-spec.md + finish-work.md + prd.md)\n- docs(templates): update finish-work.md block rule — pipeline platforms note automatic spec sync by finish agent, non-pipeline platforms (cursor/codex) retain manual-first wording\n- docs(codex): restore code-spec enforcement sections (Section 2.5 Hard Block) in codex skill templates that were missing from initial codex integration",
7
+ "migrations": [],
8
+ "notes": "No migration required. Template-level changes only — run `trellis update` to sync."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.5",
3
+ "description": "Brainstorm templates for all platforms",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Enhancements:**\n- feat(templates): add brainstorm command to all 5 platform templates (claude/iflow/opencode/cursor/codex) with platform-specific command syntax — previously only existed in deployed dirs, never generated by `trellis init/update`\n\n**Documentation:**\n- docs(templates): add brainstorm references to start commands across iflow/opencode/cursor/codex — adds Complex Task classification, brainstorm-first workflow section, and command table entry (matching existing Claude start.md)",
7
+ "migrations": [],
8
+ "notes": "No migration required. Template-level changes only — run `trellis update` to sync."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.0-rc.6",
3
+ "description": "4 new platforms: Kilo, Kiro, Gemini CLI, Antigravity",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**New Platforms:**\n- feat(kilo): add Kilo CLI as commands-only platform (.kilocode/commands/trellis/)\n- feat(kiro): add Kiro Code as skills-based platform (.kiro/skills/)\n- feat(gemini): add Gemini CLI as first TOML-format command platform (.gemini/commands/trellis/*.toml)\n- feat(antigravity): add Antigravity as workflow-based platform (.agent/workflows/)\n\n**Bug Fixes:**\n- fix(scripts): remove non-existent spec/shared/ references from init-context defaults\n- fix(templates): correct iflow start/finish-work template content\n- fix(docs): correct license badge from FSL to AGPL-3.0\n- fix(init): fix start process flow (#48)\n\n**Tests:**\n- Added 50+ new tests covering all 4 new platforms (templates, configurators, init integration, regression)",
7
+ "migrations": [],
8
+ "notes": "No migration required. New platform templates only — existing projects unaffected. Run `trellis init --kilo`, `--kiro`, `--gemini`, or `--antigravity` to add new platform support."
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "version": "0.3.0",
3
+ "description": "Stable release: Shell→Python migration, 9 AI platforms, centralized registry",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**BREAKING: Shell to Python Migration**\n- All `.trellis/scripts/*.sh` replaced by Python equivalents (requires Python 3.10+)\n- Directory rename: `multi-agent/` → `multi_agent/` (underscore)\n- Command namespace migration: Claude uses `.claude/commands/trellis/` subdirectory, Cursor uses `trellis-` prefix\n\n**New Platforms (9 total):**\n- Codex (`.agents/skills/`) — OpenAI's CLI agent\n- Kilo (`.kilocode/commands/trellis/`) — commands-only platform\n- Kiro (`.kiro/skills/`) — skills-based platform\n- Gemini CLI (`.gemini/commands/trellis/*.toml`) — TOML-format commands\n- Antigravity (`.agent/workflows/`) — workflow-based platform\n- Plus existing: Claude Code, Cursor, iFlow, OpenCode\n\n**Architecture:**\n- Centralized platform registry replacing scattered init/update logic\n- Extracted `resolvePlaceholders()` to shared module\n- Deduplicated `compareVersions()` to `utils/compare-versions.ts`\n- Remote spec templates from docs repo\n\n**Key Fixes:**\n- Windows encoding: `_configure_stream` with reconfigure/detach fallback for stdout/stderr\n- Windows subprocess: `CREATE_NEW_PROCESS_GROUP` on win32, `start_new_session` on Unix\n- Template placeholder roundtrip (`{{PYTHON_CMD}}` resolution)\n- CLI version comparison for prerelease versions\n- add_session.py table separator tolerance for formatted markdown\n\n**Quality:**\n- 312+ tests across 17+ files (unit, integration, regression)\n- @vitest/coverage-v8 support\n- Executable spec enforcement (7-section structure)",
7
+ "migrations": [],
8
+ "migrationGuide": "# Migration Guide: v0.2.x → v0.3.0\n\n## Overview\n\nAll shell scripts (.sh) have been replaced by Python scripts (.py). This affects any custom workflows, slash commands, or documentation that references the old scripts.\n\n## Requirements\n\n- Python 3.10 or higher\n\n## What Changed\n\n### Script Extensions\n\n| Old Path | New Path |\n|----------|----------|\n| `.trellis/scripts/*.sh` | `.trellis/scripts/*.py` |\n| `.trellis/scripts/common/*.sh` | `.trellis/scripts/common/*.py` |\n| `.trellis/scripts/multi-agent/*.sh` | `.trellis/scripts/multi_agent/*.py` |\n\n### Directory Rename\n\n| Old | New |\n|-----|-----|\n| `multi-agent/` (hyphen) | `multi_agent/` (underscore) |\n\n### Invocation Change\n\n| Old | New |\n|-----|-----|\n| `./script.sh` | `python3 ./script.py` |\n| `./.trellis/scripts/task.sh` | `python3 ./.trellis/scripts/task.py` |\n\n## After Migration\n\nRun `trellis update --migrate` to remove the old shell scripts from your project.",
9
+ "aiInstructions": "When assisting users upgrading from 0.2.x to 0.3.0:\n1. Search for files containing `.trellis/scripts/*.sh` references and update to `.py`\n2. Replace `multi-agent/` directory references with `multi_agent/` (underscore)\n3. Always use `python3` explicitly, not just `python` (Windows compatibility)\n4. Check ALL locations: docstrings, help text, error messages, markdown docs\n5. Run `trellis update --migrate` to remove legacy shell scripts\n\nNote: Users upgrading from any 0.3.0 prerelease (beta/rc) need no file changes — only the version stamp is updated.",
10
+ "notes": "Aggregated release covering beta.0 through rc.6. All file migrations were applied in beta.0. Users upgrading from any 0.3.0 prerelease will see no file changes — only the .version stamp is updated. New projects get all 9 platform options via `trellis init`."
11
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Antigravity workflow templates
3
+ *
4
+ * Antigravity uses workspace workflows under .agent/workflows/.
5
+ * We reuse Codex skill content as workflow content.
6
+ */
7
+ export interface WorkflowTemplate {
8
+ name: string;
9
+ content: string;
10
+ }
11
+ export declare function getAllWorkflows(): WorkflowTemplate[];
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/antigravity/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA6BD,wBAAgB,eAAe,IAAI,gBAAgB,EAAE,CAOpD"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Antigravity workflow templates
3
+ *
4
+ * Antigravity uses workspace workflows under .agent/workflows/.
5
+ * We reuse Codex skill content as workflow content.
6
+ */
7
+ import { getAllSkills as getAllCodexSkills, } from "../codex/index.js";
8
+ function adaptSkillContentToWorkflow(content, workflowNames) {
9
+ const base = content
10
+ .replaceAll("Codex skills", "Antigravity workflows")
11
+ .replaceAll("Codex skill", "Antigravity workflow")
12
+ .replaceAll("Create New Skill", "Create New Workflow")
13
+ .replaceAll(".agents/skills/<skill-name>/SKILL.md", ".agent/workflows/<workflow-name>.md")
14
+ .replace(/\.agents\/skills\/([^/\s`]+)\/SKILL\.md/g, ".agent/workflows/$1.md")
15
+ .replaceAll(".agents/skills/", ".agent/workflows/")
16
+ .replaceAll("$<skill-name>", "/<workflow-name>")
17
+ .replaceAll("Or open /skills and select it", "Or type / and select it");
18
+ // Antigravity workflows are triggered with slash commands (/start), not "$skill".
19
+ return workflowNames.reduce((adapted, name) => adapted.replaceAll(`$${name}`, `/${name}`), base);
20
+ }
21
+ export function getAllWorkflows() {
22
+ const skills = getAllCodexSkills();
23
+ const workflowNames = skills.map((skill) => skill.name);
24
+ return skills.map((skill) => ({
25
+ name: skill.name,
26
+ content: adaptSkillContentToWorkflow(skill.content, workflowNames),
27
+ }));
28
+ }
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/antigravity/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,YAAY,IAAI,iBAAiB,GAElC,MAAM,mBAAmB,CAAC;AAO3B,SAAS,2BAA2B,CAClC,OAAe,EACf,aAAuB;IAEvB,MAAM,IAAI,GAAG,OAAO;SACjB,UAAU,CAAC,cAAc,EAAE,uBAAuB,CAAC;SACnD,UAAU,CAAC,aAAa,EAAE,sBAAsB,CAAC;SACjD,UAAU,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;SACrD,UAAU,CACT,sCAAsC,EACtC,qCAAqC,CACtC;SACA,OAAO,CACN,0CAA0C,EAC1C,wBAAwB,CACzB;SACA,UAAU,CAAC,iBAAiB,EAAE,mBAAmB,CAAC;SAClD,UAAU,CAAC,eAAe,EAAE,kBAAkB,CAAC;SAC/C,UAAU,CAAC,+BAA+B,EAAE,yBAAyB,CAAC,CAAC;IAE1E,kFAAkF;IAClF,OAAO,aAAa,CAAC,MAAM,CACzB,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,EAC7D,IAAI,CACL,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,MAAM,MAAM,GAAyB,iBAAiB,EAAE,CAAC;IACzD,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxD,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,2BAA2B,CAAC,KAAK,CAAC,OAAO,EAAE,aAAa,CAAC;KACnE,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -0,0 +1,122 @@
1
+ ---
2
+ name: check
3
+ description: |
4
+ Code quality check expert. Reviews code changes against specs and self-fixes issues.
5
+ tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
6
+ model: opus
7
+ ---
8
+ # Check Agent
9
+
10
+ You are the Check Agent in the Trellis workflow.
11
+
12
+ ## Context
13
+
14
+ Before checking, read:
15
+ - `.trellis/spec/` - Development guidelines
16
+ - Pre-commit checklist for quality standards
17
+
18
+ ## Core Responsibilities
19
+
20
+ 1. **Get code changes** - Use git diff to get uncommitted code
21
+ 2. **Check against specs** - Verify code follows guidelines
22
+ 3. **Self-fix** - Fix issues yourself, not just report them
23
+ 4. **Run verification** - typecheck and lint
24
+
25
+ ## Important
26
+
27
+ **Fix issues yourself**, don't just report them.
28
+
29
+ You have write and edit tools, you can modify code directly.
30
+
31
+ ---
32
+
33
+ ## Workflow
34
+
35
+ ### Step 1: Get Changes
36
+
37
+ ```bash
38
+ git diff --name-only # List changed files
39
+ git diff # View specific changes
40
+ ```
41
+
42
+ ### Step 2: Check Against Specs
43
+
44
+ Read relevant specs in `.trellis/spec/` to check code:
45
+
46
+ - Does it follow directory structure conventions
47
+ - Does it follow naming conventions
48
+ - Does it follow code patterns
49
+ - Are there missing types
50
+ - Are there potential bugs
51
+
52
+ ### Step 3: Self-Fix
53
+
54
+ After finding issues:
55
+
56
+ 1. Fix the issue directly (use edit tool)
57
+ 2. Record what was fixed
58
+ 3. Continue checking other issues
59
+
60
+ ### Step 4: Run Verification
61
+
62
+ Run project's lint and typecheck commands to verify changes.
63
+
64
+ If failed, fix issues and re-run.
65
+
66
+ ---
67
+
68
+ ## Completion Markers (Ralph Loop)
69
+
70
+ **CRITICAL**: You are in a loop controlled by the Ralph Loop system.
71
+ The loop will NOT stop until you output ALL required completion markers.
72
+
73
+ Completion markers are generated from `check.jsonl` in the task directory.
74
+ Each entry's `reason` field becomes a marker: `{REASON}_FINISH`
75
+
76
+ For example, if check.jsonl contains:
77
+ ```json
78
+ {"file": "...", "reason": "TypeCheck"}
79
+ {"file": "...", "reason": "Lint"}
80
+ {"file": "...", "reason": "CodeReview"}
81
+ ```
82
+
83
+ You MUST output these markers when each check passes:
84
+ - `TYPECHECK_FINISH` - After typecheck passes
85
+ - `LINT_FINISH` - After lint passes
86
+ - `CODEREVIEW_FINISH` - After code review passes
87
+
88
+ If check.jsonl doesn't exist or has no reasons, output: `ALL_CHECKS_FINISH`
89
+
90
+ **The loop will block you from stopping until all markers are present in your output.**
91
+
92
+ ---
93
+
94
+ ## Report Format
95
+
96
+ ```markdown
97
+ ## Self-Check Complete
98
+
99
+ ### Files Checked
100
+
101
+ - src/components/Feature.tsx
102
+ - src/hooks/useFeature.ts
103
+
104
+ ### Issues Found and Fixed
105
+
106
+ 1. `<file>:<line>` - <what was fixed>
107
+ 2. `<file>:<line>` - <what was fixed>
108
+
109
+ ### Issues Not Fixed
110
+
111
+ (If there are issues that cannot be self-fixed, list them here with reasons)
112
+
113
+ ### Verification Results
114
+
115
+ - TypeCheck: Passed TYPECHECK_FINISH
116
+ - Lint: Passed LINT_FINISH
117
+
118
+ ### Summary
119
+
120
+ Checked X files, found Y issues, all fixed.
121
+ ALL_CHECKS_FINISH
122
+ ```
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: debug
3
+ description: |
4
+ Issue fixing expert. Understands issues, fixes against specs, and verifies fixes. Precise fixes only.
5
+ tools: Read, Write, Edit, Bash, Glob, Grep, mcp__exa__web_search_exa, mcp__exa__get_code_context_exa
6
+ model: opus
7
+ ---
8
+ # Debug Agent
9
+
10
+ You are the Debug Agent in the Trellis workflow.
11
+
12
+ ## Context
13
+
14
+ Before debugging, read:
15
+ - `.trellis/spec/` - Development guidelines
16
+ - Error messages or issue descriptions provided
17
+
18
+ ## Core Responsibilities
19
+
20
+ 1. **Understand issues** - Analyze error messages or reported issues
21
+ 2. **Fix against specs** - Fix issues following dev specs
22
+ 3. **Verify fixes** - Run typecheck to ensure no new issues
23
+ 4. **Report results** - Report fix status
24
+
25
+ ---
26
+
27
+ ## Workflow
28
+
29
+ ### Step 1: Understand Issues
30
+
31
+ Parse the issue, categorize by priority:
32
+
33
+ - `[P1]` - Must fix (blocking)
34
+ - `[P2]` - Should fix (important)
35
+ - `[P3]` - Optional fix (nice to have)
36
+
37
+ ### Step 2: Research if Needed
38
+
39
+ If you need additional info:
40
+
41
+ ```bash
42
+ # Check knowledge base
43
+ ls .trellis/big-question/
44
+ ```
45
+
46
+ ### Step 3: Fix One by One
47
+
48
+ For each issue:
49
+
50
+ 1. Locate the exact position
51
+ 2. Fix following specs
52
+ 3. Run typecheck to verify
53
+
54
+ ### Step 4: Verify
55
+
56
+ Run project's lint and typecheck commands to verify fixes.
57
+
58
+ If fix introduces new issues:
59
+
60
+ 1. Revert the fix
61
+ 2. Use a more complete solution
62
+ 3. Re-verify
63
+
64
+ ---
65
+
66
+ ## Report Format
67
+
68
+ ```markdown
69
+ ## Fix Report
70
+
71
+ ### Issues Fixed
72
+
73
+ 1. `[P1]` `<file>:<line>` - <what was fixed>
74
+ 2. `[P2]` `<file>:<line>` - <what was fixed>
75
+
76
+ ### Issues Not Fixed
77
+
78
+ - `<file>:<line>` - <reason why not fixed>
79
+
80
+ ### Verification
81
+
82
+ - TypeCheck: Pass
83
+ - Lint: Pass
84
+
85
+ ### Summary
86
+
87
+ Fixed X/Y issues. Z issues require discussion.
88
+ ```
89
+
90
+ ---
91
+
92
+ ## Guidelines
93
+
94
+ ### DO
95
+
96
+ - Precise fixes for reported issues
97
+ - Follow specs
98
+ - Verify each fix
99
+
100
+ ### DON'T
101
+
102
+ - Don't refactor surrounding code
103
+ - Don't add new features
104
+ - Don't modify unrelated files
105
+ - Don't use non-null assertion (`x!` operator)
106
+ - Don't execute git commit