@dtlabs/ai-toolkit 0.21.1 → 0.21.2
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
## 0.1.4 (2026-07-21)
|
|
2
|
+
## [0.21.2](https://github.com/dtlab-tech/ai-toolkit/compare/v0.21.1...v0.21.2) (2026-10-21)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **pm-phase2:** read gaia-user-story-template.md via print-asset, not a local-install-relative path ([4913bcf](https://github.com/dtlab-tech/ai-toolkit/commit/4913bcfb71bd37b56d373d340abf9cee17478154))
|
|
8
|
+
* read gaia-user-story-template.md via print-asset (global-install compatibility) ([29486d9](https://github.com/dtlab-tech/ai-toolkit/commit/29486d9eeec4ae6ea2abfe02ffba4753addfc9fb))
|
|
9
|
+
|
|
2
10
|
## [0.21.1](https://github.com/dtlab-tech/ai-toolkit/compare/v0.21.0...v0.21.1) (2026-10-20)
|
|
3
11
|
|
|
4
12
|
|
package/package.json
CHANGED
|
@@ -130,7 +130,13 @@ function renderPhaseDetailBlock(phase, taskTitles, dependsOnPhases) {
|
|
|
130
130
|
? taskTitles.map(t => `- \`${t.id}\` — ${t.title}`).join('\n')
|
|
131
131
|
: '_No tasks._'
|
|
132
132
|
const dependsOn = dependsOnPhases.length ? dependsOnPhases.join(', ') : 'none'
|
|
133
|
-
|
|
133
|
+
// The template lives under the toolkit's own installed scripts/templates/ — outside the project
|
|
134
|
+
// for a globally-installed toolkit, which a plain c.read() has no way to resolve (it only reads
|
|
135
|
+
// project-relative paths). Read via print-asset instead, same as gaia-task-template.md below —
|
|
136
|
+
// this was previously a bare c.read() of a local-install-relative path, which only worked when
|
|
137
|
+
// the toolkit happened to be installed locally into this project's own .claude/ folder (a real
|
|
138
|
+
// incident: a project with only a global install failed with ENOENT on this exact line).
|
|
139
|
+
let text = _stripTemplateComments(c.command(['print-asset', 'scripts/templates/gaia-user-story-template.md', '--project', c.root]).stdout)
|
|
134
140
|
text = text.replace(/\{PHASE_ID\}/g, phase.id)
|
|
135
141
|
text = _fillFieldBlock(text, {
|
|
136
142
|
'Phase ID': phase.id,
|