feat(cli): add print-template command and remove node dependency from skills#83
Merged
Conversation
… skills - Add prospec print-template <path> command to print raw template contents offline without Node.js - Modify prospec-upgrade.hbs to retrieve templates via prospec print-template - Update README files and templates README module documentation - Sync test and file counts in documentation (total 2092 -> 2096)
- Sync print-template requirements to standalone-binary feature spec and feature-map - Update modules README for cli, lib, and services to reflect print-template changes - Add archived summary history for 2026-07-08-cli-print-template
Prospec Check |
Test Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述 (Overview)
本 PR 解決了在 0.5.0 版本打包成 standalone binary 後,AI 技能(如
prospec-upgrade)在非 Node.js 環境中無法執行升級(因為require.resolve和node -e報錯)的問題。透過新增
prospec print-template <path>指令,使得 CLI 本身可以直接輸出打包在二進位檔內的樣板原始內容,徹底移除對 Node.js 的依賴。需求與驗收準則 (Requirements & Acceptance Criteria)
prospec print-template <path>可在未初始化專案的環境下獨立執行並輸出內置 Handlebars 樣板。lib/template.ts中的readTemplateSource取得樣板內容。node -e或require.resolve呼叫,改為呼叫prospec print-template取得樣板內容。src/lib/template.ts以公開導出readTemplateSource。影響模組 (Affected Modules)
驗證結果 (Verification & Quality)