@mindfoldhq/trellis 0.1.0

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 (122) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +149 -0
  3. package/bin/trellis.js +3 -0
  4. package/dist/cli/index.d.ts +2 -0
  5. package/dist/cli/index.d.ts.map +1 -0
  6. package/dist/cli/index.js +42 -0
  7. package/dist/cli/index.js.map +1 -0
  8. package/dist/commands/init.d.ts +11 -0
  9. package/dist/commands/init.d.ts.map +1 -0
  10. package/dist/commands/init.js +236 -0
  11. package/dist/commands/init.js.map +1 -0
  12. package/dist/configurators/claude.d.ts +35 -0
  13. package/dist/configurators/claude.d.ts.map +1 -0
  14. package/dist/configurators/claude.js +83 -0
  15. package/dist/configurators/claude.js.map +1 -0
  16. package/dist/configurators/cursor.d.ts +8 -0
  17. package/dist/configurators/cursor.d.ts.map +1 -0
  18. package/dist/configurators/cursor.js +22 -0
  19. package/dist/configurators/cursor.js.map +1 -0
  20. package/dist/configurators/templates.d.ts +40 -0
  21. package/dist/configurators/templates.d.ts.map +1 -0
  22. package/dist/configurators/templates.js +67 -0
  23. package/dist/configurators/templates.js.map +1 -0
  24. package/dist/configurators/workflow.d.ts +16 -0
  25. package/dist/configurators/workflow.d.ts.map +1 -0
  26. package/dist/configurators/workflow.js +169 -0
  27. package/dist/configurators/workflow.js.map +1 -0
  28. package/dist/constants/paths.d.ts +69 -0
  29. package/dist/constants/paths.d.ts.map +1 -0
  30. package/dist/constants/paths.js +80 -0
  31. package/dist/constants/paths.js.map +1 -0
  32. package/dist/index.d.ts +9 -0
  33. package/dist/index.d.ts.map +1 -0
  34. package/dist/index.js +9 -0
  35. package/dist/index.js.map +1 -0
  36. package/dist/templates/agents/check.txt +120 -0
  37. package/dist/templates/agents/debug.txt +121 -0
  38. package/dist/templates/agents/dispatch.txt +201 -0
  39. package/dist/templates/agents/implement.txt +114 -0
  40. package/dist/templates/agents/index.d.ts +35 -0
  41. package/dist/templates/agents/index.d.ts.map +1 -0
  42. package/dist/templates/agents/index.js +71 -0
  43. package/dist/templates/agents/index.js.map +1 -0
  44. package/dist/templates/agents/research.txt +258 -0
  45. package/dist/templates/commands/claude/start.md.txt +127 -0
  46. package/dist/templates/commands/common/before-backend-dev.txt +13 -0
  47. package/dist/templates/commands/common/before-frontend-dev.txt +13 -0
  48. package/dist/templates/commands/common/break-loop.txt +107 -0
  49. package/dist/templates/commands/common/check-backend.txt +13 -0
  50. package/dist/templates/commands/common/check-cross-layer.txt +153 -0
  51. package/dist/templates/commands/common/check-frontend.txt +13 -0
  52. package/dist/templates/commands/common/create-command.txt +154 -0
  53. package/dist/templates/commands/common/finish-work.txt +129 -0
  54. package/dist/templates/commands/common/integrate-skill.txt +219 -0
  55. package/dist/templates/commands/common/onboard-developer.txt +355 -0
  56. package/dist/templates/commands/common/record-agent-flow.txt +62 -0
  57. package/dist/templates/commands/cursor/start.md.txt +94 -0
  58. package/dist/templates/commands/index.d.ts +46 -0
  59. package/dist/templates/commands/index.d.ts.map +1 -0
  60. package/dist/templates/commands/index.js +151 -0
  61. package/dist/templates/commands/index.js.map +1 -0
  62. package/dist/templates/extract.d.ts +22 -0
  63. package/dist/templates/extract.d.ts.map +1 -0
  64. package/dist/templates/extract.js +34 -0
  65. package/dist/templates/extract.js.map +1 -0
  66. package/dist/templates/hooks/index.d.ts +33 -0
  67. package/dist/templates/hooks/index.d.ts.map +1 -0
  68. package/dist/templates/hooks/index.js +53 -0
  69. package/dist/templates/hooks/index.js.map +1 -0
  70. package/dist/templates/hooks/inject-subagent-context.py +620 -0
  71. package/dist/templates/hooks/settings.json +16 -0
  72. package/dist/templates/markdown/agent-traces-index.md.txt +124 -0
  73. package/dist/templates/markdown/agents.md.txt +18 -0
  74. package/dist/templates/markdown/gitignore.txt +3 -0
  75. package/dist/templates/markdown/index.d.ts +26 -0
  76. package/dist/templates/markdown/index.d.ts.map +1 -0
  77. package/dist/templates/markdown/index.js +33 -0
  78. package/dist/templates/markdown/index.js.map +1 -0
  79. package/dist/templates/markdown/init-agent.md.txt +315 -0
  80. package/dist/templates/markdown/structure/backend/database-guidelines.md.txt +51 -0
  81. package/dist/templates/markdown/structure/backend/directory-structure.md.txt +54 -0
  82. package/dist/templates/markdown/structure/backend/error-handling.md.txt +51 -0
  83. package/dist/templates/markdown/structure/backend/index.md.txt +38 -0
  84. package/dist/templates/markdown/structure/backend/logging-guidelines.md.txt +51 -0
  85. package/dist/templates/markdown/structure/backend/quality-guidelines.md.txt +51 -0
  86. package/dist/templates/markdown/structure/frontend/component-guidelines.md.txt +59 -0
  87. package/dist/templates/markdown/structure/frontend/directory-structure.md.txt +54 -0
  88. package/dist/templates/markdown/structure/frontend/hook-guidelines.md.txt +51 -0
  89. package/dist/templates/markdown/structure/frontend/index.md.txt +39 -0
  90. package/dist/templates/markdown/structure/frontend/quality-guidelines.md.txt +51 -0
  91. package/dist/templates/markdown/structure/frontend/state-management.md.txt +51 -0
  92. package/dist/templates/markdown/structure/frontend/type-safety.md.txt +51 -0
  93. package/dist/templates/markdown/structure/guides/code-reuse-thinking-guide.md.txt +92 -0
  94. package/dist/templates/markdown/structure/guides/cross-layer-thinking-guide.md.txt +94 -0
  95. package/dist/templates/markdown/structure/guides/index.md.txt +79 -0
  96. package/dist/templates/markdown/workflow.md.txt +335 -0
  97. package/dist/templates/scripts/add-session.sh.txt +384 -0
  98. package/dist/templates/scripts/common/developer.sh.txt +130 -0
  99. package/dist/templates/scripts/common/git-context.sh.txt +237 -0
  100. package/dist/templates/scripts/common/paths.sh.txt +201 -0
  101. package/dist/templates/scripts/create-bootstrap.sh.txt +298 -0
  102. package/dist/templates/scripts/feature.sh.txt +700 -0
  103. package/dist/templates/scripts/get-context.sh.txt +7 -0
  104. package/dist/templates/scripts/get-developer.sh.txt +15 -0
  105. package/dist/templates/scripts/index.d.ts +25 -0
  106. package/dist/templates/scripts/index.d.ts.map +1 -0
  107. package/dist/templates/scripts/index.js +28 -0
  108. package/dist/templates/scripts/index.js.map +1 -0
  109. package/dist/templates/scripts/init-developer.sh.txt +34 -0
  110. package/dist/types/ai-tools.d.ts +35 -0
  111. package/dist/types/ai-tools.d.ts.map +1 -0
  112. package/dist/types/ai-tools.js +31 -0
  113. package/dist/types/ai-tools.js.map +1 -0
  114. package/dist/utils/file-writer.d.ts +23 -0
  115. package/dist/utils/file-writer.d.ts.map +1 -0
  116. package/dist/utils/file-writer.js +140 -0
  117. package/dist/utils/file-writer.js.map +1 -0
  118. package/dist/utils/project-detector.d.ts +16 -0
  119. package/dist/utils/project-detector.d.ts.map +1 -0
  120. package/dist/utils/project-detector.js +186 -0
  121. package/dist/utils/project-detector.js.map +1 -0
  122. package/package.json +71 -0
package/LICENSE ADDED
@@ -0,0 +1,110 @@
1
+ # Functional Source License, Version 1.1, MIT Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-MIT
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 Mindfold LLC
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the MIT License that is effective on the second anniversary of the date we make
91
+ the Software available. On or after that date, you may use the Software under
92
+ the MIT License, in which case the following will apply:
93
+
94
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
95
+ this software and associated documentation files (the "Software"), to deal in
96
+ the Software without restriction, including without limitation the rights to
97
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
98
+ of the Software, and to permit persons to whom the Software is furnished to do
99
+ so, subject to the following conditions:
100
+
101
+ The above copyright notice and this permission notice shall be included in all
102
+ copies or substantial portions of the Software.
103
+
104
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
106
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
107
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
110
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,149 @@
1
+ # Trellis
2
+
3
+ English | [äø­ę–‡](./README-zh.md)
4
+
5
+ AI capabilities grow like ivy — full of vitality but climbing in all directions. Trellis provides the structure to guide them along a disciplined path.
6
+
7
+ Based on Anthropic's [Effective Harnesses for Long-Running Agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents), with engineering practices and improvements for real-world usage.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install -g @mindfoldhq/trellis # or pnpm/yarn
13
+ ```
14
+
15
+ ## Quick Start
16
+
17
+ ```bash
18
+ # Initialize in your project
19
+ trellis init
20
+ # or use short alias
21
+ tl init
22
+
23
+ # Initialize with developer name
24
+ trellis init -u your-name
25
+
26
+ # Initialize for specific tools only
27
+ trellis init --cursor # Cursor only
28
+ trellis init --claude # Claude Code only
29
+ trellis init --cursor --claude # Both (default)
30
+ ```
31
+
32
+ ## What It Does
33
+
34
+ Trellis creates a structured workflow system in your project:
35
+
36
+ ```
37
+ your-project/
38
+ ā”œā”€ā”€ .trellis/
39
+ │ ā”œā”€ā”€ .developer # Developer identity (gitignored)
40
+ │ ā”œā”€ā”€ workflow.md # Workflow guide
41
+ │ ā”œā”€ā”€ agent-traces/ # Session tracking
42
+ │ │ └── {developer}/ # Per-developer progress
43
+ │ │ ā”œā”€ā”€ index.md # Progress index
44
+ │ │ ā”œā”€ā”€ features/ # Feature tracking
45
+ │ │ │ ā”œā”€ā”€ {day}-{name}/ # Feature directory
46
+ │ │ │ │ └── feature.json
47
+ │ │ │ └── archive/ # Completed features
48
+ │ │ └── progress-N.md # Session records
49
+ │ ā”œā”€ā”€ structure/ # Development guidelines
50
+ │ │ ā”œā”€ā”€ frontend/ # Frontend standards
51
+ │ │ ā”œā”€ā”€ backend/ # Backend standards
52
+ │ │ └── guides/ # Thinking guides
53
+ │ └── scripts/ # Utility scripts
54
+ │ ā”œā”€ā”€ common/ # Shared utilities
55
+ │ │ ā”œā”€ā”€ paths.sh # Path utilities
56
+ │ │ ā”œā”€ā”€ developer.sh # Developer management
57
+ │ │ └── git-context.sh # Git context
58
+ │ ā”œā”€ā”€ feature.sh # Feature management
59
+ │ ā”œā”€ā”€ add-session.sh # Record sessions
60
+ │ ā”œā”€ā”€ get-context.sh # Get session context
61
+ │ ā”œā”€ā”€ get-developer.sh # Get developer name
62
+ │ └── init-developer.sh # Initialize developer
63
+ ā”œā”€ā”€ .cursor/commands/ # Cursor slash commands
64
+ ā”œā”€ā”€ .claude/commands/ # Claude Code slash commands
65
+ ā”œā”€ā”€ init-agent.md # AI onboarding guide
66
+ └── AGENTS.md # Agent instructions
67
+ ```
68
+
69
+ ## Key Features
70
+
71
+ ### 1. Multi-Developer Support
72
+
73
+ Each developer (human or AI) gets their own progress tracking:
74
+
75
+ ```bash
76
+ ./.trellis/scripts/init-developer.sh <name>
77
+ ```
78
+
79
+ ### 2. Slash Commands
80
+
81
+ Pre-built commands for AI assistants:
82
+
83
+ | Command | Purpose |
84
+ |---------|---------|
85
+ | `/init-agent` | Initialize AI session with context |
86
+ | `/before-frontend-dev` | Read frontend guidelines before coding |
87
+ | `/before-backend-dev` | Read backend guidelines before coding |
88
+ | `/check-frontend` | Validate frontend code against guidelines |
89
+ | `/check-backend` | Validate backend code against guidelines |
90
+ | `/check-cross-layer` | Verify cross-layer consistency |
91
+ | `/finish-work` | Pre-commit checklist |
92
+ | `/record-agent-flow` | Record session progress |
93
+ | `/break-loop` | Deep bug analysis |
94
+ | `/onboard-developer` | Full workflow onboarding |
95
+
96
+ ### 3. Thinking Guides
97
+
98
+ Structured guides to prevent common mistakes:
99
+
100
+ - Cross-layer thinking guide
101
+ - Code reuse thinking guide
102
+ - Pre-implementation checklist
103
+
104
+ ### 4. Feature Tracking
105
+
106
+ Track features with directory-based structure:
107
+
108
+ ```bash
109
+ ./.trellis/scripts/feature.sh create my-feature # Create feature
110
+ ./.trellis/scripts/feature.sh list # List active features
111
+ ./.trellis/scripts/feature.sh archive my-feature # Archive completed
112
+ ```
113
+
114
+ ## CLI Commands
115
+
116
+ ```bash
117
+ trellis init # Initialize workflow
118
+ trellis init -u <name> # Initialize with developer name
119
+ trellis init -y # Skip prompts, use defaults
120
+ trellis init -f # Force overwrite existing files
121
+ trellis init -s # Skip existing files
122
+ ```
123
+
124
+ ## How It Works
125
+
126
+ 1. **AI reads `init-agent.md`** at session start
127
+ 2. **Follows guidelines** in `.trellis/structure/`
128
+ 3. **Updates progress** in `.trellis/agent-traces/`
129
+ 4. **Uses slash commands** for common tasks
130
+
131
+ This creates a structured, documented workflow where:
132
+ - AI agents maintain context across sessions
133
+ - Work is tracked and auditable
134
+ - Code quality standards are enforced
135
+ - Multiple agents can collaborate
136
+
137
+ ## Acknowledgments
138
+
139
+ Trellis is built upon ideas and inspirations from:
140
+
141
+ - [Anthropic](https://www.anthropic.com/) - For the foundational research on [Effective Harnesses for Long-Running Agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents)
142
+ - [OpenSkills](https://github.com/numman-ali/openskills) - For pioneering the skills system that extends Claude's capabilities
143
+ - [Exa](https://exa.ai/) - For the powerful web search and code context capabilities that significantly enhance AI agent performance
144
+
145
+ ## License
146
+
147
+ FSL-1.1-MIT (Functional Source License, MIT future license)
148
+
149
+ Copyright Ā© Mindfold LLC
package/bin/trellis.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import("../dist/cli/index.js");
@@ -0,0 +1,2 @@
1
+ export declare const VERSION: string;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,OAAO,EAAE,MAA4B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+ import chalk from "chalk";
5
+ import { Command } from "commander";
6
+ import { init } from "../commands/init.js";
7
+ // Read version from package.json
8
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
+ const packageJsonPath = path.resolve(__dirname, "../../package.json");
10
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
11
+ export const VERSION = packageJson.version;
12
+ const program = new Command();
13
+ program
14
+ .name("trellis")
15
+ .description("AI-assisted development workflow framework for Cursor, Claude Code and more")
16
+ .version(VERSION, "-v, --version", "output the version number");
17
+ program
18
+ .command("init")
19
+ .description("Initialize trellis in the current project")
20
+ .option("--cursor", "Include Cursor commands")
21
+ .option("--claude", "Include Claude Code commands")
22
+ .option("-y, --yes", "Skip prompts and use defaults")
23
+ .option("-u, --user <name>", "Initialize developer identity with specified name")
24
+ .option("-f, --force", "Overwrite existing files without asking")
25
+ .option("-s, --skip-existing", "Skip existing files without asking")
26
+ .action(async (options) => {
27
+ try {
28
+ await init(options);
29
+ }
30
+ catch (error) {
31
+ console.error(chalk.red("Error:"), error instanceof Error ? error.message : error);
32
+ process.exit(1);
33
+ }
34
+ });
35
+ program
36
+ .command("update")
37
+ .description("Update trellis configuration and commands")
38
+ .action(() => {
39
+ console.log(chalk.yellow("Coming soon: update command"));
40
+ });
41
+ program.parse();
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAM3C,iCAAiC;AACjC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AACtE,MAAM,WAAW,GAAgB,IAAI,CAAC,KAAK,CACzC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAC1C,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAW,WAAW,CAAC,OAAO,CAAC;AAEnD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,SAAS,CAAC;KACf,WAAW,CACV,6EAA6E,CAC9E;KACA,OAAO,CAAC,OAAO,EAAE,eAAe,EAAE,2BAA2B,CAAC,CAAC;AAElE,OAAO;KACJ,OAAO,CAAC,MAAM,CAAC;KACf,WAAW,CAAC,2CAA2C,CAAC;KACxD,MAAM,CAAC,UAAU,EAAE,yBAAyB,CAAC;KAC7C,MAAM,CAAC,UAAU,EAAE,8BAA8B,CAAC;KAClD,MAAM,CAAC,WAAW,EAAE,+BAA+B,CAAC;KACpD,MAAM,CACL,mBAAmB,EACnB,mDAAmD,CACpD;KACA,MAAM,CAAC,aAAa,EAAE,yCAAyC,CAAC;KAChE,MAAM,CAAC,qBAAqB,EAAE,oCAAoC,CAAC;KACnE,MAAM,CAAC,KAAK,EAAE,OAAgC,EAAE,EAAE;IACjD,IAAI,CAAC;QACH,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CACX,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EACnB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAC/C,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,2CAA2C,CAAC;KACxD,MAAM,CAAC,GAAG,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ interface InitOptions {
2
+ cursor?: boolean;
3
+ claude?: boolean;
4
+ yes?: boolean;
5
+ user?: string;
6
+ force?: boolean;
7
+ skipExisting?: boolean;
8
+ }
9
+ export declare function init(options: InitOptions): Promise<void>;
10
+ export {};
11
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AA8BA,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAMD,wBAAsB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgQ9D"}
@@ -0,0 +1,236 @@
1
+ import { execSync } from "node:child_process";
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+ import readline from "node:readline";
5
+ import chalk from "chalk";
6
+ import figlet from "figlet";
7
+ import inquirer from "inquirer";
8
+ import { configureClaude, configureClaudeAgents, configureClaudeHooks, } from "../configurators/claude.js";
9
+ import { configureCursor } from "../configurators/cursor.js";
10
+ import { createWorkflowStructure } from "../configurators/workflow.js";
11
+ import { PATHS } from "../constants/paths.js";
12
+ import { agentsMdContent, initAgentContent, } from "../templates/markdown/index.js";
13
+ import { setWriteMode, writeFile, } from "../utils/file-writer.js";
14
+ import { detectProjectType, getProjectTypeDescription, } from "../utils/project-detector.js";
15
+ export async function init(options) {
16
+ const cwd = process.cwd();
17
+ // Generate ASCII art banner dynamically using FIGlet "Rebel" font
18
+ const banner = figlet.textSync("Trellis", { font: "Rebel" });
19
+ console.log(chalk.cyan(`\n${banner.trimEnd()}`));
20
+ console.log(chalk.gray("\n AI-assisted development workflow framework\n"));
21
+ // Set write mode based on options
22
+ let writeMode = "ask";
23
+ if (options.force) {
24
+ writeMode = "force";
25
+ console.log(chalk.gray("Mode: Force overwrite existing files\n"));
26
+ }
27
+ else if (options.skipExisting) {
28
+ writeMode = "skip";
29
+ console.log(chalk.gray("Mode: Skip existing files\n"));
30
+ }
31
+ setWriteMode(writeMode);
32
+ // Detect developer name from git config or options
33
+ let developerName = options.user;
34
+ if (!developerName) {
35
+ // Only detect from git if current directory is a git repo
36
+ const isGitRepo = fs.existsSync(path.join(cwd, ".git"));
37
+ if (isGitRepo) {
38
+ try {
39
+ developerName = execSync("git config user.name", {
40
+ cwd,
41
+ encoding: "utf-8",
42
+ }).trim();
43
+ }
44
+ catch {
45
+ // Git not available or no user.name configured
46
+ }
47
+ }
48
+ }
49
+ if (developerName) {
50
+ console.log(chalk.blue("šŸ‘¤ Developer:"), chalk.gray(developerName));
51
+ }
52
+ else if (!options.yes) {
53
+ // Ask for developer name if not detected and not in yes mode
54
+ console.log(chalk.gray("\nTrellis supports team collaboration - each developer has their own\n" +
55
+ `progress directory (${PATHS.PROGRESS}/{name}/) to track AI sessions.\n` +
56
+ "Tip: Usually this is your git username (git config user.name).\n"));
57
+ developerName = await askInput("Your name: ");
58
+ while (!developerName) {
59
+ console.log(chalk.yellow("Name is required"));
60
+ developerName = await askInput("Your name: ");
61
+ }
62
+ console.log(chalk.blue("šŸ‘¤ Developer:"), chalk.gray(developerName));
63
+ }
64
+ // Detect project type
65
+ const detectedType = detectProjectType(cwd);
66
+ console.log(chalk.blue("šŸ” Project type:"), chalk.gray(getProjectTypeDescription(detectedType)));
67
+ let tools;
68
+ let projectType = detectedType;
69
+ if (options.yes) {
70
+ // Default: both Cursor and Claude
71
+ tools = ["cursor", "claude"];
72
+ // Treat unknown as fullstack
73
+ if (detectedType === "unknown") {
74
+ projectType = "fullstack";
75
+ }
76
+ }
77
+ else if (options.cursor || options.claude) {
78
+ // Use flags
79
+ tools = [];
80
+ if (options.cursor) {
81
+ tools.push("cursor");
82
+ }
83
+ if (options.claude) {
84
+ tools.push("claude");
85
+ }
86
+ // Treat unknown as fullstack
87
+ if (detectedType === "unknown") {
88
+ projectType = "fullstack";
89
+ }
90
+ }
91
+ else {
92
+ // Interactive mode
93
+ const questions = [
94
+ {
95
+ type: "checkbox",
96
+ name: "tools",
97
+ message: "Select AI tools to configure:",
98
+ choices: [
99
+ { name: "Cursor", value: "cursor", checked: true },
100
+ { name: "Claude Code", value: "claude", checked: true },
101
+ ],
102
+ },
103
+ ];
104
+ const answers = await inquirer.prompt(questions);
105
+ tools = answers.tools;
106
+ // Treat unknown as fullstack
107
+ if (detectedType === "unknown") {
108
+ projectType = "fullstack";
109
+ }
110
+ }
111
+ // Auto-enable agents when Claude is selected
112
+ const enableAgents = tools.includes("claude");
113
+ if (tools.length === 0) {
114
+ console.log(chalk.yellow("No tools selected. At least one tool is required."));
115
+ return;
116
+ }
117
+ console.log(chalk.gray(`\nConfiguring: ${tools.join(", ")}`));
118
+ console.log(chalk.gray(`Project type: ${getProjectTypeDescription(projectType)}\n`));
119
+ // Create workflow structure with project type
120
+ console.log(chalk.blue("šŸ“ Creating workflow structure..."));
121
+ await createWorkflowStructure(cwd, { projectType });
122
+ // Configure selected tools
123
+ if (tools.includes("cursor")) {
124
+ console.log(chalk.blue("šŸ“ Configuring Cursor commands..."));
125
+ await configureCursor(cwd);
126
+ }
127
+ if (tools.includes("claude")) {
128
+ console.log(chalk.blue("šŸ“ Configuring Claude Code commands..."));
129
+ await configureClaude(cwd);
130
+ // Configure Multi-Agent Pipeline if enabled
131
+ if (enableAgents) {
132
+ console.log(chalk.blue("šŸ¤– Configuring Multi-Agent Pipeline..."));
133
+ console.log(chalk.gray(" - Creating agent configurations..."));
134
+ await configureClaudeAgents(cwd);
135
+ console.log(chalk.gray(" - Creating hook configurations..."));
136
+ await configureClaudeHooks(cwd);
137
+ }
138
+ }
139
+ // Create root files (skip if exists)
140
+ await createRootFiles(cwd);
141
+ // Initialize developer identity (developerName already detected at the start)
142
+ let developerInitialized = false;
143
+ let bootstrapCreated = false;
144
+ if (developerName) {
145
+ try {
146
+ const scriptPath = path.join(cwd, PATHS.SCRIPTS, "init-developer.sh");
147
+ execSync(`bash "${scriptPath}" "${developerName}"`, {
148
+ cwd,
149
+ stdio: "inherit",
150
+ });
151
+ developerInitialized = true;
152
+ // Create bootstrap feature to guide user through filling guidelines
153
+ const bootstrapScriptPath = path.join(cwd, PATHS.SCRIPTS, "create-bootstrap.sh");
154
+ execSync(`bash "${bootstrapScriptPath}" "${projectType}"`, {
155
+ cwd,
156
+ stdio: "pipe", // Silent - we handle output in init
157
+ });
158
+ bootstrapCreated = true;
159
+ }
160
+ catch (error) {
161
+ console.log(chalk.yellow(`āš ļø Failed to initialize developer: ${error instanceof Error ? error.message : error}`));
162
+ }
163
+ }
164
+ console.log(chalk.green("\nāœ… Trellis initialized successfully!\n"));
165
+ // Print next steps
166
+ console.log(chalk.cyan("Next steps:"));
167
+ let stepNum = 1;
168
+ if (!developerInitialized) {
169
+ console.log(chalk.gray(`${stepNum}. Run `) +
170
+ chalk.white(`./${PATHS.SCRIPTS}/init-developer.sh <your-name>`) +
171
+ chalk.gray(" to set up your developer identity"));
172
+ stepNum++;
173
+ console.log(chalk.gray(`${stepNum}. Fill in `) +
174
+ chalk.white(`${PATHS.STRUCTURE}/`) +
175
+ chalk.gray(" with your project-specific guidelines"));
176
+ stepNum++;
177
+ }
178
+ else if (bootstrapCreated) {
179
+ console.log(chalk.gray(`${stepNum}. Use `) +
180
+ chalk.white("/start") +
181
+ chalk.gray(" command in your AI tool to begin a session"));
182
+ stepNum++;
183
+ console.log(chalk.gray(`${stepNum}. Ask AI to help you `) +
184
+ chalk.white("fill in project guidelines") +
185
+ chalk.gray(` in ${PATHS.STRUCTURE}/\n`));
186
+ }
187
+ else {
188
+ console.log(chalk.gray(`${stepNum}. Use `) +
189
+ chalk.white("/start") +
190
+ chalk.gray(" command in your AI tool to begin a session\n"));
191
+ }
192
+ // Print structure info
193
+ console.log(chalk.cyan("Generated structure files:"));
194
+ console.log(chalk.gray(` ${PATHS.STRUCTURE}/guides/ - Thinking guides (filled)`));
195
+ if (projectType === "frontend" ||
196
+ projectType === "fullstack" ||
197
+ projectType === "unknown") {
198
+ console.log(chalk.gray(` ${PATHS.STRUCTURE}/frontend/ - Frontend guidelines (to fill)`));
199
+ }
200
+ if (projectType === "backend" ||
201
+ projectType === "fullstack" ||
202
+ projectType === "unknown") {
203
+ console.log(chalk.gray(` ${PATHS.STRUCTURE}/backend/ - Backend guidelines (to fill)`));
204
+ }
205
+ console.log("");
206
+ }
207
+ /**
208
+ * Simple readline-based input (no flickering like inquirer)
209
+ */
210
+ function askInput(prompt) {
211
+ const rl = readline.createInterface({
212
+ input: process.stdin,
213
+ output: process.stdout,
214
+ });
215
+ return new Promise((resolve) => {
216
+ rl.question(prompt, (answer) => {
217
+ rl.close();
218
+ resolve(answer.trim());
219
+ });
220
+ });
221
+ }
222
+ async function createRootFiles(cwd) {
223
+ const initAgentPath = path.join(cwd, "init-agent.md");
224
+ const agentsPath = path.join(cwd, "AGENTS.md");
225
+ // Write init-agent.md from template
226
+ const initAgentWritten = await writeFile(initAgentPath, initAgentContent);
227
+ if (initAgentWritten) {
228
+ console.log(chalk.blue("šŸ“„ Created init-agent.md"));
229
+ }
230
+ // Write AGENTS.md from template
231
+ const agentsWritten = await writeFile(agentsPath, agentsMdContent);
232
+ if (agentsWritten) {
233
+ console.log(chalk.blue("šŸ“„ Created AGENTS.md"));
234
+ }
235
+ }
236
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,SAAS,GAEV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,yBAAyB,GAE1B,MAAM,8B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AAoC;IACpC,MAAM,gBAAgB,GAAG,MAAM,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;IAC1E,IAAI,gBAAgB,EAAE,CAAC;QACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,gCAAgC;IAChC,MAAM,aAAa,GAAG,MAAM,SAAS,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IACnE,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAClD,CAAC;AACH,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Configure Claude Code with slash commands
3
+ *
4
+ * Claude Code gets the full set of commands including Claude-specific
5
+ * features like skill integration.
6
+ */
7
+ export declare function configureClaude(cwd: string): Promise<void>;
8
+ /**
9
+ * Configure Claude Code agents for Multi-Agent Pipeline
10
+ *
11
+ * Agents are specialized subagents that work together:
12
+ * - implement: Code implementation expert
13
+ * - check: Code and cross-layer check expert
14
+ * - debug: Issue fixing expert
15
+ * - research: Search expert
16
+ * - dispatch: Pipeline dispatcher
17
+ */
18
+ export declare function configureClaudeAgents(cwd: string): Promise<void>;
19
+ /**
20
+ * Configure Claude Code hooks for context injection
21
+ *
22
+ * Hooks automatically inject context into subagent prompts
23
+ * based on the current feature configuration.
24
+ */
25
+ export declare function configureClaudeHooks(cwd: string): Promise<void>;
26
+ /**
27
+ * Configure Claude Code with full Multi-Agent Pipeline support
28
+ *
29
+ * This includes:
30
+ * - Slash commands
31
+ * - Agent configurations
32
+ * - Hook configurations
33
+ */
34
+ export declare function configureClaudeFull(cwd: string): Promise<void>;
35
+ //# sourceMappingURL=claude.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/configurators/claude.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAehE;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CActE;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBrE;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIpE"}