@mindfoldhq/trellis 0.3.10 → 0.4.0-beta.10

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 (304) hide show
  1. package/README.md +19 -5
  2. package/dist/cli/index.js +5 -0
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/commands/init.d.ts +4 -0
  5. package/dist/commands/init.d.ts.map +1 -1
  6. package/dist/commands/init.js +240 -43
  7. package/dist/commands/init.js.map +1 -1
  8. package/dist/commands/update.d.ts.map +1 -1
  9. package/dist/commands/update.js +206 -47
  10. package/dist/commands/update.js.map +1 -1
  11. package/dist/configurators/codebuddy.d.ts +11 -0
  12. package/dist/configurators/codebuddy.d.ts.map +1 -0
  13. package/dist/configurators/codebuddy.js +58 -0
  14. package/dist/configurators/codebuddy.js.map +1 -0
  15. package/dist/configurators/codex.d.ts +7 -4
  16. package/dist/configurators/codex.d.ts.map +1 -1
  17. package/dist/configurators/codex.js +40 -10
  18. package/dist/configurators/codex.js.map +1 -1
  19. package/dist/configurators/copilot.d.ts +9 -0
  20. package/dist/configurators/copilot.d.ts.map +1 -0
  21. package/dist/configurators/copilot.js +34 -0
  22. package/dist/configurators/copilot.js.map +1 -0
  23. package/dist/configurators/index.d.ts +11 -1
  24. package/dist/configurators/index.d.ts.map +1 -1
  25. package/dist/configurators/index.js +72 -4
  26. package/dist/configurators/index.js.map +1 -1
  27. package/dist/configurators/opencode.d.ts +1 -1
  28. package/dist/configurators/opencode.js +1 -1
  29. package/dist/configurators/windsurf.d.ts +8 -0
  30. package/dist/configurators/windsurf.d.ts.map +1 -0
  31. package/dist/configurators/windsurf.js +18 -0
  32. package/dist/configurators/windsurf.js.map +1 -0
  33. package/dist/configurators/workflow.d.ts +6 -2
  34. package/dist/configurators/workflow.d.ts.map +1 -1
  35. package/dist/configurators/workflow.js +90 -58
  36. package/dist/configurators/workflow.js.map +1 -1
  37. package/dist/migrations/index.d.ts +1 -0
  38. package/dist/migrations/index.d.ts.map +1 -1
  39. package/dist/migrations/index.js +2 -0
  40. package/dist/migrations/index.js.map +1 -1
  41. package/dist/migrations/manifests/0.4.0-beta.1.json +228 -0
  42. package/dist/migrations/manifests/0.4.0-beta.10.json +9 -0
  43. package/dist/migrations/manifests/0.4.0-beta.2.json +9 -0
  44. package/dist/migrations/manifests/0.4.0-beta.3.json +9 -0
  45. package/dist/migrations/manifests/0.4.0-beta.4.json +9 -0
  46. package/dist/migrations/manifests/0.4.0-beta.5.json +9 -0
  47. package/dist/migrations/manifests/0.4.0-beta.6.json +9 -0
  48. package/dist/migrations/manifests/0.4.0-beta.7.json +9 -0
  49. package/dist/migrations/manifests/0.4.0-beta.8.json +34 -0
  50. package/dist/migrations/manifests/0.4.0-beta.9.json +9 -0
  51. package/dist/templates/claude/agents/dispatch.md +1 -2
  52. package/dist/templates/claude/agents/implement.md +2 -3
  53. package/dist/templates/claude/commands/trellis/before-dev.md +29 -0
  54. package/dist/templates/claude/commands/trellis/check.md +25 -0
  55. package/dist/templates/claude/commands/trellis/create-command.md +2 -2
  56. package/dist/templates/claude/commands/trellis/onboard.md +13 -13
  57. package/dist/templates/claude/commands/trellis/parallel.md +1 -2
  58. package/dist/templates/claude/commands/trellis/record-session.md +3 -2
  59. package/dist/templates/claude/commands/trellis/start.md +8 -4
  60. package/dist/templates/claude/hooks/inject-subagent-context.py +29 -14
  61. package/dist/templates/claude/hooks/ralph-loop.py +18 -10
  62. package/dist/templates/claude/hooks/session-start.py +201 -9
  63. package/dist/templates/claude/hooks/statusline.py +211 -0
  64. package/dist/templates/claude/settings.json +4 -0
  65. package/dist/templates/codebuddy/commands/trellis/before-dev.md +29 -0
  66. package/dist/templates/codebuddy/commands/trellis/brainstorm.md +487 -0
  67. package/dist/templates/codebuddy/commands/trellis/break-loop.md +107 -0
  68. package/dist/templates/codebuddy/commands/trellis/check-cross-layer.md +153 -0
  69. package/dist/templates/codebuddy/commands/trellis/check.md +25 -0
  70. package/dist/templates/codebuddy/commands/trellis/create-command.md +154 -0
  71. package/dist/templates/codebuddy/commands/trellis/finish-work.md +143 -0
  72. package/dist/templates/codebuddy/commands/trellis/integrate-skill.md +219 -0
  73. package/dist/templates/codebuddy/commands/trellis/onboard.md +358 -0
  74. package/dist/templates/codebuddy/commands/trellis/record-session.md +61 -0
  75. package/dist/templates/codebuddy/commands/trellis/start.md +373 -0
  76. package/dist/templates/codebuddy/commands/trellis/update-spec.md +354 -0
  77. package/dist/templates/codebuddy/index.d.ts +25 -0
  78. package/dist/templates/codebuddy/index.d.ts.map +1 -0
  79. package/dist/templates/codebuddy/index.js +45 -0
  80. package/dist/templates/codebuddy/index.js.map +1 -0
  81. package/dist/templates/codex/agents/check.toml +23 -0
  82. package/dist/templates/codex/agents/implement.toml +19 -0
  83. package/dist/templates/codex/agents/research.toml +26 -0
  84. package/dist/templates/codex/codex-skills/parallel/SKILL.md +194 -0
  85. package/dist/templates/codex/config.toml +5 -0
  86. package/dist/templates/codex/hooks/session-start.py +228 -0
  87. package/dist/templates/codex/hooks.json +16 -0
  88. package/dist/templates/codex/index.d.ts +27 -5
  89. package/dist/templates/codex/index.d.ts.map +1 -1
  90. package/dist/templates/codex/index.js +60 -8
  91. package/dist/templates/codex/index.js.map +1 -1
  92. package/dist/templates/codex/skills/before-dev/SKILL.md +34 -0
  93. package/dist/templates/codex/skills/brainstorm/SKILL.md +1 -1
  94. package/dist/templates/codex/skills/break-loop/SKILL.md +1 -1
  95. package/dist/templates/codex/skills/check/SKILL.md +30 -0
  96. package/dist/templates/codex/skills/check-cross-layer/SKILL.md +1 -1
  97. package/dist/templates/codex/skills/create-command/SKILL.md +3 -3
  98. package/dist/templates/codex/skills/finish-work/SKILL.md +1 -1
  99. package/dist/templates/codex/skills/improve-ut/SKILL.md +69 -0
  100. package/dist/templates/codex/skills/integrate-skill/SKILL.md +1 -1
  101. package/dist/templates/codex/skills/onboard/SKILL.md +12 -12
  102. package/dist/templates/codex/skills/record-session/SKILL.md +4 -3
  103. package/dist/templates/codex/skills/start/SKILL.md +9 -4
  104. package/dist/templates/codex/skills/update-spec/SKILL.md +1 -1
  105. package/dist/templates/copilot/hooks/session-start.py +218 -0
  106. package/dist/templates/copilot/hooks.json +11 -0
  107. package/dist/templates/copilot/index.d.ts +23 -0
  108. package/dist/templates/copilot/index.d.ts.map +1 -0
  109. package/dist/templates/copilot/index.js +54 -0
  110. package/dist/templates/copilot/index.js.map +1 -0
  111. package/dist/templates/copilot/prompts/before-dev.prompt.md +33 -0
  112. package/dist/templates/copilot/prompts/brainstorm.prompt.md +491 -0
  113. package/dist/templates/copilot/prompts/break-loop.prompt.md +129 -0
  114. package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +157 -0
  115. package/dist/templates/copilot/prompts/check.prompt.md +29 -0
  116. package/dist/templates/copilot/prompts/create-command.prompt.md +116 -0
  117. package/dist/templates/copilot/prompts/finish-work.prompt.md +157 -0
  118. package/dist/templates/copilot/prompts/integrate-skill.prompt.md +223 -0
  119. package/dist/templates/copilot/prompts/onboard.prompt.md +362 -0
  120. package/dist/templates/copilot/prompts/parallel.prompt.md +196 -0
  121. package/dist/templates/copilot/prompts/record-session.prompt.md +66 -0
  122. package/dist/templates/copilot/prompts/start.prompt.md +397 -0
  123. package/dist/templates/copilot/prompts/update-spec.prompt.md +358 -0
  124. package/dist/templates/cursor/commands/trellis-before-dev.md +29 -0
  125. package/dist/templates/cursor/commands/trellis-check.md +25 -0
  126. package/dist/templates/cursor/commands/trellis-create-command.md +2 -2
  127. package/dist/templates/cursor/commands/trellis-onboard.md +13 -13
  128. package/dist/templates/cursor/commands/trellis-record-session.md +3 -2
  129. package/dist/templates/cursor/commands/trellis-start.md +7 -16
  130. package/dist/templates/extract.d.ts +36 -0
  131. package/dist/templates/extract.d.ts.map +1 -1
  132. package/dist/templates/extract.js +64 -0
  133. package/dist/templates/extract.js.map +1 -1
  134. package/dist/templates/gemini/commands/trellis/before-dev.toml +33 -0
  135. package/dist/templates/gemini/commands/trellis/check.toml +29 -0
  136. package/dist/templates/gemini/commands/trellis/create-command.toml +2 -2
  137. package/dist/templates/gemini/commands/trellis/onboard.toml +2 -2
  138. package/dist/templates/gemini/commands/trellis/record-session.toml +3 -2
  139. package/dist/templates/gemini/commands/trellis/start.toml +9 -4
  140. package/dist/templates/iflow/agents/dispatch.md +1 -2
  141. package/dist/templates/iflow/agents/implement.md +2 -3
  142. package/dist/templates/iflow/commands/trellis/before-dev.md +29 -0
  143. package/dist/templates/iflow/commands/trellis/check.md +25 -0
  144. package/dist/templates/iflow/commands/trellis/create-command.md +2 -2
  145. package/dist/templates/iflow/commands/trellis/onboard.md +13 -13
  146. package/dist/templates/iflow/commands/trellis/parallel.md +1 -2
  147. package/dist/templates/iflow/commands/trellis/record-session.md +3 -2
  148. package/dist/templates/iflow/commands/trellis/start.md +8 -4
  149. package/dist/templates/iflow/hooks/inject-subagent-context.py +29 -14
  150. package/dist/templates/iflow/hooks/ralph-loop.py +8 -1
  151. package/dist/templates/iflow/hooks/session-start.py +187 -8
  152. package/dist/templates/kilo/workflows/before-dev.md +29 -0
  153. package/dist/templates/kilo/workflows/check.md +25 -0
  154. package/dist/templates/kilo/workflows/create-command.md +2 -2
  155. package/dist/templates/kilo/workflows/onboard.md +13 -13
  156. package/dist/templates/kilo/workflows/parallel.md +1 -2
  157. package/dist/templates/kilo/workflows/record-session.md +3 -2
  158. package/dist/templates/kilo/workflows/start.md +8 -3
  159. package/dist/templates/kiro/skills/before-dev/SKILL.md +34 -0
  160. package/dist/templates/kiro/skills/brainstorm/SKILL.md +1 -1
  161. package/dist/templates/kiro/skills/break-loop/SKILL.md +1 -1
  162. package/dist/templates/kiro/skills/check/SKILL.md +30 -0
  163. package/dist/templates/kiro/skills/check-cross-layer/SKILL.md +1 -1
  164. package/dist/templates/kiro/skills/create-command/SKILL.md +3 -3
  165. package/dist/templates/kiro/skills/finish-work/SKILL.md +1 -1
  166. package/dist/templates/kiro/skills/integrate-skill/SKILL.md +1 -1
  167. package/dist/templates/kiro/skills/onboard/SKILL.md +12 -12
  168. package/dist/templates/kiro/skills/record-session/SKILL.md +4 -3
  169. package/dist/templates/kiro/skills/start/SKILL.md +9 -4
  170. package/dist/templates/kiro/skills/update-spec/SKILL.md +1 -1
  171. package/dist/templates/markdown/agents.md +4 -0
  172. package/dist/templates/markdown/spec/backend/directory-structure.md +1 -1
  173. package/dist/templates/markdown/spec/backend/script-conventions.md +93 -0
  174. package/dist/templates/markdown/workspace-index.md +2 -0
  175. package/dist/templates/opencode/agents/dispatch.md +21 -21
  176. package/dist/templates/opencode/agents/implement.md +2 -2
  177. package/dist/templates/opencode/agents/research.md +1 -2
  178. package/dist/templates/opencode/commands/trellis/before-dev.md +29 -0
  179. package/dist/templates/opencode/commands/trellis/check.md +25 -0
  180. package/dist/templates/opencode/commands/trellis/create-command.md +2 -2
  181. package/dist/templates/opencode/commands/trellis/onboard.md +13 -13
  182. package/dist/templates/opencode/commands/trellis/parallel.md +1 -2
  183. package/dist/templates/opencode/commands/trellis/record-session.md +3 -2
  184. package/dist/templates/opencode/commands/trellis/start.md +8 -3
  185. package/dist/templates/opencode/lib/trellis-context.js +42 -2
  186. package/dist/templates/opencode/{plugin → plugins}/inject-subagent-context.js +45 -18
  187. package/dist/templates/opencode/{plugin → plugins}/session-start.js +156 -28
  188. package/dist/templates/qoder/skills/before-dev/SKILL.md +34 -0
  189. package/dist/templates/qoder/skills/brainstorm/SKILL.md +1 -1
  190. package/dist/templates/qoder/skills/break-loop/SKILL.md +1 -1
  191. package/dist/templates/qoder/skills/check/SKILL.md +30 -0
  192. package/dist/templates/qoder/skills/check-cross-layer/SKILL.md +1 -1
  193. package/dist/templates/qoder/skills/create-command/SKILL.md +3 -3
  194. package/dist/templates/qoder/skills/finish-work/SKILL.md +1 -1
  195. package/dist/templates/qoder/skills/integrate-skill/SKILL.md +1 -1
  196. package/dist/templates/qoder/skills/onboard/SKILL.md +14 -14
  197. package/dist/templates/qoder/skills/record-session/SKILL.md +4 -3
  198. package/dist/templates/qoder/skills/start/SKILL.md +9 -4
  199. package/dist/templates/qoder/skills/update-spec/SKILL.md +1 -1
  200. package/dist/templates/trellis/config.yaml +20 -0
  201. package/dist/templates/trellis/index.d.ts +11 -0
  202. package/dist/templates/trellis/index.d.ts.map +1 -1
  203. package/dist/templates/trellis/index.js +22 -0
  204. package/dist/templates/trellis/index.js.map +1 -1
  205. package/dist/templates/trellis/scripts/add_session.py +111 -13
  206. package/dist/templates/trellis/scripts/common/__init__.py +2 -0
  207. package/dist/templates/trellis/scripts/common/cli_adapter.py +164 -64
  208. package/dist/templates/trellis/scripts/common/config.py +192 -0
  209. package/dist/templates/trellis/scripts/common/developer.py +2 -2
  210. package/dist/templates/trellis/scripts/common/git.py +31 -0
  211. package/dist/templates/trellis/scripts/common/git_context.py +23 -586
  212. package/dist/templates/trellis/scripts/common/io.py +37 -0
  213. package/dist/templates/trellis/scripts/common/log.py +45 -0
  214. package/dist/templates/trellis/scripts/common/packages_context.py +238 -0
  215. package/dist/templates/trellis/scripts/common/paths.py +103 -6
  216. package/dist/templates/trellis/scripts/common/phase.py +50 -49
  217. package/dist/templates/trellis/scripts/common/registry.py +41 -72
  218. package/dist/templates/trellis/scripts/common/session_context.py +562 -0
  219. package/dist/templates/trellis/scripts/common/task_context.py +410 -0
  220. package/dist/templates/trellis/scripts/common/task_queue.py +27 -98
  221. package/dist/templates/trellis/scripts/common/task_store.py +536 -0
  222. package/dist/templates/trellis/scripts/common/task_utils.py +106 -10
  223. package/dist/templates/trellis/scripts/common/tasks.py +109 -0
  224. package/dist/templates/trellis/scripts/common/types.py +112 -0
  225. package/dist/templates/trellis/scripts/create_bootstrap.py +32 -27
  226. package/dist/templates/trellis/scripts/hooks/linear_sync.py +243 -0
  227. package/dist/templates/trellis/scripts/multi_agent/_bootstrap.py +17 -0
  228. package/dist/templates/trellis/scripts/multi_agent/cleanup.py +43 -48
  229. package/dist/templates/trellis/scripts/multi_agent/create_pr.py +336 -45
  230. package/dist/templates/trellis/scripts/multi_agent/plan.py +9 -32
  231. package/dist/templates/trellis/scripts/multi_agent/start.py +142 -68
  232. package/dist/templates/trellis/scripts/multi_agent/status.py +12 -753
  233. package/dist/templates/trellis/scripts/multi_agent/status_display.py +542 -0
  234. package/dist/templates/trellis/scripts/multi_agent/status_monitor.py +225 -0
  235. package/dist/templates/trellis/scripts/task.py +51 -976
  236. package/dist/templates/trellis/scripts-shell-archive/create-bootstrap.sh +1 -1
  237. package/dist/templates/trellis/workflow.md +38 -38
  238. package/dist/templates/windsurf/index.d.ts +21 -0
  239. package/dist/templates/windsurf/index.d.ts.map +1 -0
  240. package/dist/templates/windsurf/index.js +44 -0
  241. package/dist/templates/windsurf/index.js.map +1 -0
  242. package/dist/templates/windsurf/workflows/trellis-before-dev.md +31 -0
  243. package/dist/templates/windsurf/workflows/trellis-brainstorm.md +491 -0
  244. package/dist/templates/windsurf/workflows/trellis-break-loop.md +111 -0
  245. package/dist/templates/windsurf/workflows/trellis-check-cross-layer.md +157 -0
  246. package/dist/templates/windsurf/workflows/trellis-check.md +27 -0
  247. package/dist/templates/windsurf/workflows/trellis-create-command.md +154 -0
  248. package/dist/templates/windsurf/workflows/trellis-finish-work.md +147 -0
  249. package/dist/templates/windsurf/workflows/trellis-integrate-skill.md +220 -0
  250. package/dist/templates/windsurf/workflows/trellis-onboard.md +362 -0
  251. package/dist/templates/windsurf/workflows/trellis-record-session.md +66 -0
  252. package/dist/templates/windsurf/workflows/trellis-start.md +373 -0
  253. package/dist/templates/windsurf/workflows/trellis-update-spec.md +358 -0
  254. package/dist/types/ai-tools.d.ts +15 -3
  255. package/dist/types/ai-tools.d.ts.map +1 -1
  256. package/dist/types/ai-tools.js +42 -2
  257. package/dist/types/ai-tools.js.map +1 -1
  258. package/dist/types/migration.d.ts +3 -1
  259. package/dist/types/migration.d.ts.map +1 -1
  260. package/dist/utils/project-detector.d.ts +28 -0
  261. package/dist/utils/project-detector.d.ts.map +1 -1
  262. package/dist/utils/project-detector.js +371 -0
  263. package/dist/utils/project-detector.js.map +1 -1
  264. package/dist/utils/template-fetcher.d.ts +19 -6
  265. package/dist/utils/template-fetcher.d.ts.map +1 -1
  266. package/dist/utils/template-fetcher.js +99 -17
  267. package/dist/utils/template-fetcher.js.map +1 -1
  268. package/package.json +1 -1
  269. package/dist/templates/claude/commands/trellis/before-backend-dev.md +0 -13
  270. package/dist/templates/claude/commands/trellis/before-frontend-dev.md +0 -13
  271. package/dist/templates/claude/commands/trellis/check-backend.md +0 -13
  272. package/dist/templates/claude/commands/trellis/check-frontend.md +0 -13
  273. package/dist/templates/codex/skills/before-backend-dev/SKILL.md +0 -18
  274. package/dist/templates/codex/skills/before-frontend-dev/SKILL.md +0 -18
  275. package/dist/templates/codex/skills/check-backend/SKILL.md +0 -18
  276. package/dist/templates/codex/skills/check-frontend/SKILL.md +0 -18
  277. package/dist/templates/cursor/commands/trellis-before-backend-dev.md +0 -13
  278. package/dist/templates/cursor/commands/trellis-before-frontend-dev.md +0 -13
  279. package/dist/templates/cursor/commands/trellis-check-backend.md +0 -13
  280. package/dist/templates/cursor/commands/trellis-check-frontend.md +0 -13
  281. package/dist/templates/gemini/commands/trellis/before-backend-dev.toml +0 -17
  282. package/dist/templates/gemini/commands/trellis/before-frontend-dev.toml +0 -17
  283. package/dist/templates/gemini/commands/trellis/check-backend.toml +0 -17
  284. package/dist/templates/gemini/commands/trellis/check-frontend.toml +0 -17
  285. package/dist/templates/iflow/commands/trellis/before-backend-dev.md +0 -13
  286. package/dist/templates/iflow/commands/trellis/before-frontend-dev.md +0 -13
  287. package/dist/templates/iflow/commands/trellis/check-backend.md +0 -13
  288. package/dist/templates/iflow/commands/trellis/check-frontend.md +0 -13
  289. package/dist/templates/kilo/workflows/before-backend-dev.md +0 -13
  290. package/dist/templates/kilo/workflows/before-frontend-dev.md +0 -13
  291. package/dist/templates/kilo/workflows/check-backend.md +0 -13
  292. package/dist/templates/kilo/workflows/check-frontend.md +0 -13
  293. package/dist/templates/kiro/skills/before-backend-dev/SKILL.md +0 -18
  294. package/dist/templates/kiro/skills/before-frontend-dev/SKILL.md +0 -18
  295. package/dist/templates/kiro/skills/check-backend/SKILL.md +0 -18
  296. package/dist/templates/kiro/skills/check-frontend/SKILL.md +0 -18
  297. package/dist/templates/opencode/commands/trellis/before-backend-dev.md +0 -13
  298. package/dist/templates/opencode/commands/trellis/before-frontend-dev.md +0 -13
  299. package/dist/templates/opencode/commands/trellis/check-backend.md +0 -13
  300. package/dist/templates/opencode/commands/trellis/check-frontend.md +0 -13
  301. package/dist/templates/qoder/skills/before-backend-dev/SKILL.md +0 -18
  302. package/dist/templates/qoder/skills/before-frontend-dev/SKILL.md +0 -18
  303. package/dist/templates/qoder/skills/check-backend/SKILL.md +0 -18
  304. package/dist/templates/qoder/skills/check-frontend/SKILL.md +0 -18
@@ -2,7 +2,7 @@
2
2
  * Remote template fetcher for Trellis CLI
3
3
  *
4
4
  * Fetches spec templates from the official marketplace:
5
- * https://github.com/mindfold-ai/Trellis/tree/main/marketplace
5
+ * https://github.com/mindfold-ai/marketplace
6
6
  */
7
7
  import fs from "node:fs";
8
8
  import os from "node:os";
@@ -11,8 +11,8 @@ import { downloadTemplate } from "giget";
11
11
  // =============================================================================
12
12
  // Constants
13
13
  // =============================================================================
14
- export const TEMPLATE_INDEX_URL = "https://raw.githubusercontent.com/mindfold-ai/Trellis/main/marketplace/index.json";
15
- const TEMPLATE_REPO = "gh:mindfold-ai/Trellis";
14
+ export const TEMPLATE_INDEX_URL = "https://raw.githubusercontent.com/mindfold-ai/marketplace/main/index.json";
15
+ const TEMPLATE_REPO = "gh:mindfold-ai/marketplace";
16
16
  /** Map template type to installation path */
17
17
  const INSTALL_PATHS = {
18
18
  spec: ".trellis/spec",
@@ -66,18 +66,77 @@ export function normalizeRegistrySource(source) {
66
66
  }
67
67
  return source;
68
68
  }
69
+ /** Known public domains that have dedicated giget provider prefixes */
70
+ const KNOWN_PUBLIC_DOMAINS = ["github.com", "gitlab.com", "bitbucket.org"];
71
+ /** Maps SSH/HTTPS domains of public providers to their giget prefix */
72
+ const PUBLIC_DOMAIN_TO_PREFIX = {
73
+ "github.com": "gh",
74
+ "gitlab.com": "gitlab",
75
+ "bitbucket.org": "bitbucket",
76
+ };
69
77
  /**
70
78
  * Parse a giget-style registry source into its components.
71
79
  *
72
- * Supports: gh:user/repo/subdir#ref, gitlab:user/repo/subdir, bitbucket:user/repo/subdir
73
- * Also accepts HTTPS URLs which are auto-converted (e.g. https://github.com/user/repo).
80
+ * Supported input formats:
81
+ * | Format | Example | Provider | Host? |
82
+ * |-------------------------------------|----------------------------------------------|-----------|-----------|
83
+ * | giget prefix | gh:org/repo, gitlab:org/repo#ref | native | no |
84
+ * | Public HTTPS | https://github.com/org/repo | native | no |
85
+ * | Public SSH | git@github.com:org/repo | native | no |
86
+ * | Self-hosted HTTPS | https://git.corp.com/org/repo | gitlab | yes |
87
+ * | Self-hosted SSH | git@git.corp.com:org/repo | gitlab | yes |
88
+ * | ssh:// protocol (with/without port) | ssh://git@host:2222/org/repo | gitlab | yes |
89
+ * | HTTPS with port | https://host:8443/org/repo | gitlab | yes |
90
+ * | GitLab browse URL | https://host/org/repo/-/tree/branch/path | gitlab | yes |
91
+ *
74
92
  * Ref defaults to "main" if not specified.
93
+ * Unknown domains default to GitLab URL patterns (covers self-hosted GitLab CE/EE).
75
94
  *
76
95
  * @throws Error if provider is unsupported
77
96
  */
78
97
  export function parseRegistrySource(source) {
79
- // Auto-convert HTTPS URLs to giget format
80
- const normalized = normalizeRegistrySource(source);
98
+ // --- Self-hosted URL detection (SSH + unknown HTTPS) ---
99
+ let host;
100
+ let normalizedInput;
101
+ // SSH URL: git@host:org/repo[.git] or ssh://git@host[:port]/org/repo[.git]
102
+ const sshMatch = source.match(/^git@([^:]+):(.+?)(?:\.git)?\/?$/) ??
103
+ source.match(/^ssh:\/\/git@([^/:]+)(?::\d+)?\/(.+?)(?:\.git)?\/?$/);
104
+ if (sshMatch) {
105
+ const sshDomain = sshMatch[1];
106
+ const sshPath = sshMatch[2];
107
+ const publicPrefix = PUBLIC_DOMAIN_TO_PREFIX[sshDomain];
108
+ if (publicPrefix) {
109
+ // Public provider SSH (e.g., git@github.com:org/repo) — use native prefix, no host
110
+ normalizedInput = `${publicPrefix}:${sshPath}`;
111
+ }
112
+ else {
113
+ // Self-hosted SSH — default to gitlab provider with host
114
+ host = sshDomain;
115
+ normalizedInput = `gitlab:${sshPath}`;
116
+ }
117
+ }
118
+ // HTTPS URL to unknown domain (not github.com/gitlab.com/bitbucket.org)
119
+ if (!host) {
120
+ const httpsMatch = source.match(/^https?:\/\/([^/]+)\/(.+?)(?:\.git)?\/?$/);
121
+ if (httpsMatch) {
122
+ const domain = httpsMatch[1];
123
+ if (!KNOWN_PUBLIC_DOMAINS.includes(domain)) {
124
+ host = domain;
125
+ const pathPart = httpsMatch[2];
126
+ // Handle GitLab browse URLs: /org/repo/-/tree/branch/path
127
+ const treeMatch = pathPart.match(/^([^/]+\/[^/]+)(?:\/-)?\/tree\/([^/]+)(?:\/(.+?))?$/);
128
+ if (treeMatch) {
129
+ const [, repoPath, ref, subdir] = treeMatch;
130
+ normalizedInput = `gitlab:${repoPath}${subdir ? `/${subdir}` : ""}#${ref}`;
131
+ }
132
+ else {
133
+ normalizedInput = `gitlab:${pathPart}`;
134
+ }
135
+ }
136
+ }
137
+ }
138
+ // Auto-convert known HTTPS URLs to giget format (existing logic)
139
+ const normalized = normalizedInput ?? normalizeRegistrySource(source);
81
140
  // Extract provider prefix
82
141
  const colonIndex = normalized.indexOf(":");
83
142
  if (colonIndex === -1) {
@@ -98,7 +157,7 @@ export function parseRegistrySource(source) {
98
157
  throw new Error(`Invalid registry source "${normalized}". Expected format: ${provider}:user/repo/path`);
99
158
  }
100
159
  const pathPart = refMatch[1];
101
- const ref = refMatch[2] || "main";
160
+ const ref = refMatch[2] ?? "main";
102
161
  // Split into repo (first two segments) and subdir (rest)
103
162
  const segments = pathPart.split("/").filter(Boolean);
104
163
  if (segments.length < 2) {
@@ -107,17 +166,40 @@ export function parseRegistrySource(source) {
107
166
  const repo = `${segments[0]}/${segments[1]}`;
108
167
  const subdir = segments.slice(2).join("/");
109
168
  // Build raw base URL
110
- const rawBaseUrl = pattern
169
+ let rawBaseUrl = pattern
111
170
  .replace("{repo}", repo)
112
171
  .replace("{ref}", ref)
113
172
  .replace("{subdir}", subdir);
173
+ // Replace public domain with self-hosted host in rawBaseUrl
174
+ if (host && provider === "gitlab") {
175
+ rawBaseUrl = rawBaseUrl.replace("https://gitlab.com", `https://${host}`);
176
+ }
114
177
  // Build giget source (use normalized format)
115
178
  const gigetSource = normalized;
116
- return { provider, repo, subdir, ref, rawBaseUrl, gigetSource };
179
+ return { provider, repo, subdir, ref, rawBaseUrl, gigetSource, host };
117
180
  }
118
181
  // =============================================================================
119
182
  // Helpers
120
183
  // =============================================================================
184
+ /**
185
+ * Temporarily set `GIGET_GITLAB_URL` env var for self-hosted GitLab downloads.
186
+ * Restores the previous value (or deletes it) after the callback completes.
187
+ */
188
+ async function withGigetHost(host, fn) {
189
+ if (!host)
190
+ return fn();
191
+ const prev = process.env.GIGET_GITLAB_URL;
192
+ process.env.GIGET_GITLAB_URL = `https://${host}`;
193
+ try {
194
+ return await fn();
195
+ }
196
+ finally {
197
+ if (prev === undefined)
198
+ delete process.env.GIGET_GITLAB_URL;
199
+ else
200
+ process.env.GIGET_GITLAB_URL = prev;
201
+ }
202
+ }
121
203
  /**
122
204
  * Race a promise against a timeout.
123
205
  * giget does not support AbortSignal, so we use Promise.race instead.
@@ -316,7 +398,7 @@ async function copyMissing(src, dest) {
316
398
  * repo as the giget source instead of the default TEMPLATE_REPO.
317
399
  * @returns Object with success status and message
318
400
  */
319
- export async function downloadTemplateById(cwd, templateId, strategy, template, registry) {
401
+ export async function downloadTemplateById(cwd, templateId, strategy, template, registry, destDirOverride) {
320
402
  // Use pre-fetched template or find from index
321
403
  let resolved = template;
322
404
  if (!resolved) {
@@ -355,8 +437,8 @@ export async function downloadTemplateById(cwd, templateId, strategy, template,
355
437
  message: `Template type "${resolved.type}" is not supported yet (only "spec" is supported)`,
356
438
  };
357
439
  }
358
- // Get destination path
359
- const destDir = getInstallPath(cwd, resolved.type);
440
+ // Get destination path (use override for monorepo per-package downloads)
441
+ const destDir = destDirOverride ?? getInstallPath(cwd, resolved.type);
360
442
  // Check if directory exists for skip strategy
361
443
  if (strategy === "skip" && fs.existsSync(destDir)) {
362
444
  return {
@@ -371,7 +453,7 @@ export async function downloadTemplateById(cwd, templateId, strategy, template,
371
453
  // Custom registry: build full giget source with ref at the end
372
454
  // giget format: provider:user/repo/path#ref
373
455
  const fullSource = `${registry.provider}:${registry.repo}/${resolved.path}#${registry.ref}`;
374
- await downloadWithStrategy(fullSource, destDir, strategy, null);
456
+ await withGigetHost(registry.host, () => downloadWithStrategy(fullSource, destDir, strategy, null));
375
457
  }
376
458
  else {
377
459
  await downloadWithStrategy(resolved.path, destDir, strategy);
@@ -407,8 +489,8 @@ export async function downloadTemplateById(cwd, templateId, strategy, template,
407
489
  * Download a registry source directly to the spec directory (no index.json).
408
490
  * Used when the registry source points to a spec directory, not a marketplace.
409
491
  */
410
- export async function downloadRegistryDirect(cwd, registry, strategy) {
411
- const destDir = getInstallPath(cwd, "spec");
492
+ export async function downloadRegistryDirect(cwd, registry, strategy, destDirOverride) {
493
+ const destDir = destDirOverride ?? getInstallPath(cwd, "spec");
412
494
  if (strategy === "skip" && fs.existsSync(destDir)) {
413
495
  return {
414
496
  success: true,
@@ -417,7 +499,7 @@ export async function downloadRegistryDirect(cwd, registry, strategy) {
417
499
  };
418
500
  }
419
501
  try {
420
- await downloadWithStrategy(registry.gigetSource, destDir, strategy, null);
502
+ await withGigetHost(registry.host, () => downloadWithStrategy(registry.gigetSource, destDir, strategy, null));
421
503
  return {
422
504
  success: true,
423
505
  message: `Downloaded spec from ${registry.gigetSource} to ${destDir}`,
@@ -1 +1 @@
1
- {"version":3,"file":"template-fetcher.js","sourceRoot":"","sources":["../../src/utils/template-fetcher.ts"],"names":[],"mapp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IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,YAAY,GAChB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;QAE3D,IAAI,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YACvC,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EACL,kEAAkE;aACrE,CAAC;QACJ,CAAC;QACD,IACE,YAAY,CAAC,QAAQ,CAAC,oBAAoB,CAAC;YAC3C,YAAY,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EACxC,CAAC;YACD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,OAAO,EACL,iEAAiE;aACpE,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,oBAAoB,YAAY,EAAE;SAC5C,CAAC;IACJ,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindfoldhq/trellis",
3
- "version": "0.3.10",
3
+ "version": "0.4.0-beta.10",
4
4
  "description": "AI capabilities grow like ivy — Trellis provides the structure to guide them along a disciplined path",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,13 +0,0 @@
1
- Read the backend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Database work → `.trellis/spec/backend/database-guidelines.md`
7
- - Error handling → `.trellis/spec/backend/error-handling.md`
8
- - Logging → `.trellis/spec/backend/logging-guidelines.md`
9
- - Type questions → `.trellis/spec/backend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any backend code.
@@ -1,13 +0,0 @@
1
- Read the frontend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Component work → `.trellis/spec/frontend/component-guidelines.md`
7
- - Hook work → `.trellis/spec/frontend/hook-guidelines.md`
8
- - State management → `.trellis/spec/frontend/state-management.md`
9
- - Type questions → `.trellis/spec/frontend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any frontend code.
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the backend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Database changes → `.trellis/spec/backend/database-guidelines.md`
8
- - Error handling → `.trellis/spec/backend/error-handling.md`
9
- - Logging changes → `.trellis/spec/backend/logging-guidelines.md`
10
- - Type changes → `.trellis/spec/backend/type-safety.md`
11
- - Any changes → `.trellis/spec/backend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the frontend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Component changes → `.trellis/spec/frontend/component-guidelines.md`
8
- - Hook changes → `.trellis/spec/frontend/hook-guidelines.md`
9
- - State changes → `.trellis/spec/frontend/state-management.md`
10
- - Type changes → `.trellis/spec/frontend/type-safety.md`
11
- - Any changes → `.trellis/spec/frontend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,18 +0,0 @@
1
- ---
2
- name: before-backend-dev
3
- description: "Read the backend development guidelines before starting your development task."
4
- ---
5
-
6
- Read the backend development guidelines before starting your development task.
7
-
8
- Execute these steps:
9
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
10
- 2. Based on your task, read the relevant guideline files:
11
- - Database work → `.trellis/spec/backend/database-guidelines.md`
12
- - Error handling → `.trellis/spec/backend/error-handling.md`
13
- - Logging → `.trellis/spec/backend/logging-guidelines.md`
14
- - Type questions → `.trellis/spec/backend/type-safety.md`
15
- 3. Understand the coding standards and patterns you need to follow
16
- 4. Then proceed with your development plan
17
-
18
- This step is **mandatory** before writing any backend code.
@@ -1,18 +0,0 @@
1
- ---
2
- name: before-frontend-dev
3
- description: "Read the frontend development guidelines before starting your development task."
4
- ---
5
-
6
- Read the frontend development guidelines before starting your development task.
7
-
8
- Execute these steps:
9
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
10
- 2. Based on your task, read the relevant guideline files:
11
- - Component work → `.trellis/spec/frontend/component-guidelines.md`
12
- - Hook work → `.trellis/spec/frontend/hook-guidelines.md`
13
- - State management → `.trellis/spec/frontend/state-management.md`
14
- - Type questions → `.trellis/spec/frontend/type-safety.md`
15
- 3. Understand the coding standards and patterns you need to follow
16
- 4. Then proceed with your development plan
17
-
18
- This step is **mandatory** before writing any frontend code.
@@ -1,18 +0,0 @@
1
- ---
2
- name: check-backend
3
- description: "Check if the code you just wrote follows the backend development guidelines."
4
- ---
5
-
6
- Check if the code you just wrote follows the backend development guidelines.
7
-
8
- Execute these steps:
9
- 1. Run `git status` to see modified files
10
- 2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
11
- 3. Based on what you changed, read the relevant guideline files:
12
- - Database changes → `.trellis/spec/backend/database-guidelines.md`
13
- - Error handling → `.trellis/spec/backend/error-handling.md`
14
- - Logging changes → `.trellis/spec/backend/logging-guidelines.md`
15
- - Type changes → `.trellis/spec/backend/type-safety.md`
16
- - Any changes → `.trellis/spec/backend/quality-guidelines.md`
17
- 4. Review your code against the guidelines
18
- 5. Report any violations and fix them if found
@@ -1,18 +0,0 @@
1
- ---
2
- name: check-frontend
3
- description: "Check if the code you just wrote follows the frontend development guidelines."
4
- ---
5
-
6
- Check if the code you just wrote follows the frontend development guidelines.
7
-
8
- Execute these steps:
9
- 1. Run `git status` to see modified files
10
- 2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
11
- 3. Based on what you changed, read the relevant guideline files:
12
- - Component changes → `.trellis/spec/frontend/component-guidelines.md`
13
- - Hook changes → `.trellis/spec/frontend/hook-guidelines.md`
14
- - State changes → `.trellis/spec/frontend/state-management.md`
15
- - Type changes → `.trellis/spec/frontend/type-safety.md`
16
- - Any changes → `.trellis/spec/frontend/quality-guidelines.md`
17
- 4. Review your code against the guidelines
18
- 5. Report any violations and fix them if found
@@ -1,13 +0,0 @@
1
- Read the backend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Database work → `.trellis/spec/backend/database-guidelines.md`
7
- - Error handling → `.trellis/spec/backend/error-handling.md`
8
- - Logging → `.trellis/spec/backend/logging-guidelines.md`
9
- - Type questions → `.trellis/spec/backend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any backend code.
@@ -1,13 +0,0 @@
1
- Read the frontend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Component work → `.trellis/spec/frontend/component-guidelines.md`
7
- - Hook work → `.trellis/spec/frontend/hook-guidelines.md`
8
- - State management → `.trellis/spec/frontend/state-management.md`
9
- - Type questions → `.trellis/spec/frontend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any frontend code.
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the backend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Database changes → `.trellis/spec/backend/database-guidelines.md`
8
- - Error handling → `.trellis/spec/backend/error-handling.md`
9
- - Logging changes → `.trellis/spec/backend/logging-guidelines.md`
10
- - Type changes → `.trellis/spec/backend/type-safety.md`
11
- - Any changes → `.trellis/spec/backend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the frontend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Component changes → `.trellis/spec/frontend/component-guidelines.md`
8
- - Hook changes → `.trellis/spec/frontend/hook-guidelines.md`
9
- - State changes → `.trellis/spec/frontend/state-management.md`
10
- - Type changes → `.trellis/spec/frontend/type-safety.md`
11
- - Any changes → `.trellis/spec/frontend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,17 +0,0 @@
1
- description = "Read backend development guidelines before starting your task"
2
-
3
- prompt = """
4
- Read the backend development guidelines before starting your development task.
5
-
6
- Execute these steps:
7
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
8
- 2. Based on your task, read the relevant guideline files:
9
- - Database work -> `.trellis/spec/backend/database-guidelines.md`
10
- - Error handling -> `.trellis/spec/backend/error-handling.md`
11
- - Logging -> `.trellis/spec/backend/logging-guidelines.md`
12
- - Type questions -> `.trellis/spec/backend/type-safety.md`
13
- 3. Understand the coding standards and patterns you need to follow
14
- 4. Then proceed with your development plan
15
-
16
- This step is **mandatory** before writing any backend code.
17
- """
@@ -1,17 +0,0 @@
1
- description = "Read frontend development guidelines before starting your task"
2
-
3
- prompt = """
4
- Read the frontend development guidelines before starting your development task.
5
-
6
- Execute these steps:
7
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
8
- 2. Based on your task, read the relevant guideline files:
9
- - Component work -> `.trellis/spec/frontend/component-guidelines.md`
10
- - Hook work -> `.trellis/spec/frontend/hook-guidelines.md`
11
- - State management -> `.trellis/spec/frontend/state-management.md`
12
- - Type questions -> `.trellis/spec/frontend/type-safety.md`
13
- 3. Understand the coding standards and patterns you need to follow
14
- 4. Then proceed with your development plan
15
-
16
- This step is **mandatory** before writing any frontend code.
17
- """
@@ -1,17 +0,0 @@
1
- description = "Check if your code follows the backend development guidelines"
2
-
3
- prompt = """
4
- Check if the code you just wrote follows the backend development guidelines.
5
-
6
- Execute these steps:
7
- 1. Run `git status` to see modified files
8
- 2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
9
- 3. Based on what you changed, read the relevant guideline files:
10
- - Database changes -> `.trellis/spec/backend/database-guidelines.md`
11
- - Error handling -> `.trellis/spec/backend/error-handling.md`
12
- - Logging changes -> `.trellis/spec/backend/logging-guidelines.md`
13
- - Type changes -> `.trellis/spec/backend/type-safety.md`
14
- - Any changes -> `.trellis/spec/backend/quality-guidelines.md`
15
- 4. Review your code against the guidelines
16
- 5. Report any violations and fix them if found
17
- """
@@ -1,17 +0,0 @@
1
- description = "Check if your code follows the frontend development guidelines"
2
-
3
- prompt = """
4
- Check if the code you just wrote follows the frontend development guidelines.
5
-
6
- Execute these steps:
7
- 1. Run `git status` to see modified files
8
- 2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
9
- 3. Based on what you changed, read the relevant guideline files:
10
- - Component changes -> `.trellis/spec/frontend/component-guidelines.md`
11
- - Hook changes -> `.trellis/spec/frontend/hook-guidelines.md`
12
- - State changes -> `.trellis/spec/frontend/state-management.md`
13
- - Type changes -> `.trellis/spec/frontend/type-safety.md`
14
- - Any changes -> `.trellis/spec/frontend/quality-guidelines.md`
15
- 4. Review your code against the guidelines
16
- 5. Report any violations and fix them if found
17
- """
@@ -1,13 +0,0 @@
1
- Read the backend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Database work → `.trellis/spec/backend/database-guidelines.md`
7
- - Error handling → `.trellis/spec/backend/error-handling.md`
8
- - Logging → `.trellis/spec/backend/logging-guidelines.md`
9
- - Type questions → `.trellis/spec/backend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any backend code.
@@ -1,13 +0,0 @@
1
- Read the frontend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Component work → `.trellis/spec/frontend/component-guidelines.md`
7
- - Hook work → `.trellis/spec/frontend/hook-guidelines.md`
8
- - State management → `.trellis/spec/frontend/state-management.md`
9
- - Type questions → `.trellis/spec/frontend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any frontend code.
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the backend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Database changes → `.trellis/spec/backend/database-guidelines.md`
8
- - Error handling → `.trellis/spec/backend/error-handling.md`
9
- - Logging changes → `.trellis/spec/backend/logging-guidelines.md`
10
- - Type changes → `.trellis/spec/backend/type-safety.md`
11
- - Any changes → `.trellis/spec/backend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,13 +0,0 @@
1
- Check if the code you just wrote follows the frontend development guidelines.
2
-
3
- Execute these steps:
4
- 1. Run `git status` to see modified files
5
- 2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
6
- 3. Based on what you changed, read the relevant guideline files:
7
- - Component changes → `.trellis/spec/frontend/component-guidelines.md`
8
- - Hook changes → `.trellis/spec/frontend/hook-guidelines.md`
9
- - State changes → `.trellis/spec/frontend/state-management.md`
10
- - Type changes → `.trellis/spec/frontend/type-safety.md`
11
- - Any changes → `.trellis/spec/frontend/quality-guidelines.md`
12
- 4. Review your code against the guidelines
13
- 5. Report any violations and fix them if found
@@ -1,13 +0,0 @@
1
- Read the backend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/backend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Database work → `.trellis/spec/backend/database-guidelines.md`
7
- - Error handling → `.trellis/spec/backend/error-handling.md`
8
- - Logging → `.trellis/spec/backend/logging-guidelines.md`
9
- - Type questions → `.trellis/spec/backend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any backend code.
@@ -1,13 +0,0 @@
1
- Read the frontend development guidelines before starting your development task.
2
-
3
- Execute these steps:
4
- 1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
5
- 2. Based on your task, read the relevant guideline files:
6
- - Component work → `.trellis/spec/frontend/component-guidelines.md`
7
- - Hook work → `.trellis/spec/frontend/hook-guidelines.md`
8
- - State management → `.trellis/spec/frontend/state-management.md`
9
- - Type questions → `.trellis/spec/frontend/type-safety.md`
10
- 3. Understand the coding standards and patterns you need to follow
11
- 4. Then proceed with your development plan
12
-
13
- This step is **mandatory** before writing any frontend code.