@jahanxu/trellis 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -98,11 +98,24 @@ At a high level, the workflow is simple:
98
98
  3. Let Trellis inject the right context for the current task.
99
99
  4. Use checks, journals, and worktrees to keep quality and continuity intact.
100
100
 
101
+ ## Spec Templates & Marketplace
102
+
103
+ Specs ship as empty templates by default — they are meant to be customized for your project's stack and conventions. You can fill them from scratch, or start from a community template:
104
+
105
+ ```bash
106
+ # Fetch templates from a custom registry
107
+ trellis init --registry https://github.com/your-org/your-spec-templates
108
+ ```
109
+
110
+ Browse available templates and learn how to publish your own on the [Spec Templates page](https://docs.trytrellis.app/templates/specs-index).
111
+
101
112
  ## What's New
102
113
 
103
- - **v0.3.1**: adds background watch mode for `trellis update`, improves behavior in repos with existing `.gitignore`, and refreshes the docs set.
104
- - **v0.3.0**: expands support from 2 platforms to 9, adds Windows compatibility, remote spec template fetching, and `/trellis:brainstorm`.
105
- - **Docs refresh**: the official docs now cover quick start, architecture, commands, customization, real-world scenarios, and ongoing changelog entries.
114
+ - **v0.3.6**: task lifecycle hooks, custom template registries (`--registry`), parent-child subtasks, fix PreToolUse hook for CC v2.1.63+.
115
+ - **v0.3.5**: hotfix for delete migration manifest field name (Kilo workflows).
116
+ - **v0.3.4**: Qoder platform support, Kilo workflows migration, record-session task awareness.
117
+ - **v0.3.1**: background watch mode for `trellis update`, improved `.gitignore` handling, docs refresh.
118
+ - **v0.3.0**: platform support expanded from 2 to 10, Windows compatibility, remote spec templates, `/trellis:brainstorm`.
106
119
 
107
120
  ## FAQ
108
121
 
@@ -144,7 +157,7 @@ Yes. Personal workspace journals stay separate per developer, while shared specs
144
157
  - [Quick Start](https://docs.trytrellis.app/guide/ch02-quick-start) - Get Trellis running in a repo fast
145
158
  - [Supported Platforms](https://docs.trytrellis.app/guide/ch13-multi-platform) - Platform-specific setup and command details
146
159
  - [Real-World Scenarios](https://docs.trytrellis.app/guide/ch08-real-world) - See how the workflow plays out in practice
147
- - [Changelog](https://docs.trytrellis.app/changelog/v0.3.1) - Track current releases and updates
160
+ - [Changelog](https://docs.trytrellis.app/changelog/v0.3.6) - Track current releases and updates
148
161
  - [Tech Blog](https://docs.trytrellis.app/blog) - Product thinking and technical writeups
149
162
  - [GitHub Issues](https://github.com/mindfold-ai/Trellis/issues) - Report bugs or request features
150
163
  - [Discord](https://discord.com/invite/tWcCZ3aRHc) - Join the community
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.3.6",
3
+ "description": "Task lifecycle hooks, custom template registries, and parent-child subtasks",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Enhancements:**\n- feat(init): add --registry flag for custom spec template sources (GitHub, GitLab, Bitbucket). Supports marketplace mode (index.json) and direct download mode\n- feat(task): add task lifecycle hooks via config.yaml (after_create, after_start, after_finish, after_archive) with TASK_JSON_PATH env var. Ships with Linear sync hook example\n- feat(task): add parent-child subtask support (add-subtask, remove-subtask commands, children/parent/meta fields in task.json)\n- docs(record-session): clarify archive judgment based on work status, not task.json status field\n\n**Bug Fixes:**\n- fix(hooks): PreToolUse context injection broken by Claude Code v2.1.63 Task→Agent tool rename. Implement/check/debug/research agents now correctly receive injected code-spec context",
7
+ "migrations": [],
8
+ "notes": "Run trellis update to sync updated hook scripts and command templates. Critical: fixes PreToolUse context injection for CC v2.1.63+."
9
+ }
@@ -708,7 +708,7 @@ def main():
708
708
 
709
709
  tool_name = input_data.get("tool_name", "")
710
710
 
711
- if tool_name != "Task":
711
+ if tool_name not in ("Task", "Agent"):
712
712
  sys.exit(0)
713
713
 
714
714
  tool_input = input_data.get("tool_input", {})
@@ -43,6 +43,16 @@
43
43
  }
44
44
  ]
45
45
  },
46
+ {
47
+ "matcher": "Agent",
48
+ "hooks": [
49
+ {
50
+ "type": "command",
51
+ "command": "{{PYTHON_CMD}} .claude/hooks/inject-subagent-context.py",
52
+ "timeout": 30
53
+ }
54
+ ]
55
+ },
46
56
  {
47
57
  "matcher": "Edit|Write|MultiEdit",
48
58
  "hooks": [
@@ -708,7 +708,7 @@ def main():
708
708
 
709
709
  tool_name = input_data.get("tool_name", "")
710
710
 
711
- if tool_name != "Task":
711
+ if tool_name not in ("Task", "Agent"):
712
712
  sys.exit(0)
713
713
 
714
714
  tool_input = input_data.get("tool_input", {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahanxu/trellis",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
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",