ai-spec-tool 0.1.5 → 0.1.7

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.
@@ -147,17 +147,16 @@ async function init(options) {
147
147
  conflictsResolved: []
148
148
  };
149
149
 
150
- if (!fs.existsSync(TEMPLATE_AGENTS) || !fs.existsSync(TEMPLATE_AGENTS_DIR)) {
151
- console.error("Assets missing. Please reinstall ai-spec-tool.");
152
- process.exit(1);
150
+ if (fs.existsSync(TEMPLATE_AGENTS_DIR)) {
151
+ copyDirSafe(TEMPLATE_AGENTS_DIR, targetAgentsDir, report, options);
153
152
  }
154
-
155
- copyDirSafe(TEMPLATE_AGENTS_DIR, targetAgentsDir, report, options);
156
153
  if (fs.existsSync(TEMPLATE_DOCS_DIR)) {
157
154
  const targetDocsDir = path.join(cwd, "docs");
158
155
  copyDirSafe(TEMPLATE_DOCS_DIR, targetDocsDir, report, options);
159
156
  }
160
- updateAgentsMd(targetAgents, report);
157
+ if (fs.existsSync(TEMPLATE_AGENTS)) {
158
+ updateAgentsMd(targetAgents, report);
159
+ }
161
160
  await resolveConflictsInteractively(report, options);
162
161
 
163
162
  console.log("ai-spec-tool init complete.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-spec-tool",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Installable agents + rules for AI spec workflows",
5
5
  "bin": {
6
6
  "ai-spec-tool": "bin/ai-spec-tool.js"