pwsh-guide 0.2.1 → 0.2.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/bin/pwsh-guide.js CHANGED
@@ -16,7 +16,7 @@ const USAGE = `pwsh-guide - 生成项目级 Shell 操作指南 Agent Skill(跨
16
16
 
17
17
  用法:
18
18
  pwsh-guide init 探测环境并在 .agents/skills/pwsh-guide/ 生成 skill
19
- pwsh-guide refresh 重新探测并更新 references(SKILL.md 保持不变)
19
+ pwsh-guide refresh 重新探测并重新生成 SKILL.md 与 references
20
20
  pwsh-guide init --dry-run 仅输出探测结果,不写任何文件
21
21
 
22
22
  选项:
@@ -76,10 +76,8 @@ async function main() {
76
76
  const refsDir = path.join(skillDir, 'references');
77
77
  fs.mkdirSync(refsDir, { recursive: true });
78
78
 
79
- if (command === 'init') {
80
- fs.writeFileSync(path.join(skillDir, 'SKILL.md'), renderSkill(env), 'utf8');
81
- console.log(`[pwsh-guide] 已生成 ${path.join(skillDir, 'SKILL.md')}`);
82
- }
79
+ fs.writeFileSync(path.join(skillDir, 'SKILL.md'), renderSkill(env), 'utf8');
80
+ console.log(`[pwsh-guide] 已更新 ${path.join(skillDir, 'SKILL.md')}`);
83
81
  fs.writeFileSync(path.join(refsDir, 'environment.md'), renderEnvironment(env), 'utf8');
84
82
  fs.writeFileSync(path.join(refsDir, 'commands.md'), renderCommands(env), 'utf8');
85
83
  console.log(`[pwsh-guide] 已更新 ${path.join(refsDir, 'environment.md')}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pwsh-guide",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Generate a project-level Agent Skill: probe the current environment (Windows PowerShell / macOS / Linux shell) and produce a reliable command guide (SKILL.md + references) for agents such as Codex and Claude Code.",
5
5
  "type": "module",
6
6
  "bin": {