@atlashub/smartstack-cli 4.8.0 → 4.10.0
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/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-entry.mjs +19 -19
- package/dist/mcp-entry.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/skills/apex/references/frontend-route-wiring-app-tsx.md +1 -1
- package/templates/skills/apex/references/post-checks.md +1 -1
- package/templates/skills/apex/references/smartstack-layers.md +1 -1
- package/templates/skills/apex/steps/step-03-execute.md +2 -2
- package/templates/skills/application/references/frontend-i18n-and-output.md +1 -1
- package/templates/skills/application/references/frontend-verification.md +1 -1
- package/templates/skills/application/steps/step-05-frontend.md +2 -2
package/dist/index.js
CHANGED
|
@@ -112990,6 +112990,28 @@ async function updateCommands(options = {}) {
|
|
|
112990
112990
|
logger.error(msg);
|
|
112991
112991
|
}
|
|
112992
112992
|
}
|
|
112993
|
+
for (const dir of INSTALL_DIRS) {
|
|
112994
|
+
const targetDir = (0, import_path2.join)(claudeDir, dir);
|
|
112995
|
+
if (await import_fs_extra2.default.pathExists(targetDir)) {
|
|
112996
|
+
const diskFiles = await getTemplateFiles(targetDir);
|
|
112997
|
+
for (const file of diskFiles) {
|
|
112998
|
+
const relativePath = (0, import_path2.join)(dir, file);
|
|
112999
|
+
if (!newFiles.has(relativePath)) {
|
|
113000
|
+
const filePath = (0, import_path2.join)(claudeDir, relativePath);
|
|
113001
|
+
try {
|
|
113002
|
+
await import_fs_extra2.default.remove(filePath);
|
|
113003
|
+
result.removed++;
|
|
113004
|
+
result.removedFiles.push(relativePath);
|
|
113005
|
+
logger.warning(`Removed orphan: ${relativePath}`);
|
|
113006
|
+
} catch (error) {
|
|
113007
|
+
const msg = `Failed to remove orphan ${relativePath}: ${error}`;
|
|
113008
|
+
result.errors.push(msg);
|
|
113009
|
+
logger.error(msg);
|
|
113010
|
+
}
|
|
113011
|
+
}
|
|
113012
|
+
}
|
|
113013
|
+
}
|
|
113014
|
+
}
|
|
112993
113015
|
await cleanEmptyDirectories(claudeDir);
|
|
112994
113016
|
} else {
|
|
112995
113017
|
const newFiles = /* @__PURE__ */ new Set();
|
|
@@ -113008,6 +113030,18 @@ async function updateCommands(options = {}) {
|
|
|
113008
113030
|
wouldRemove.push(oldFile);
|
|
113009
113031
|
}
|
|
113010
113032
|
}
|
|
113033
|
+
for (const dir of INSTALL_DIRS) {
|
|
113034
|
+
const targetDir = (0, import_path2.join)(claudeDir, dir);
|
|
113035
|
+
if (await import_fs_extra2.default.pathExists(targetDir)) {
|
|
113036
|
+
const diskFiles = await getTemplateFiles(targetDir);
|
|
113037
|
+
for (const file of diskFiles) {
|
|
113038
|
+
const relativePath = (0, import_path2.join)(dir, file);
|
|
113039
|
+
if (!newFiles.has(relativePath) && !wouldRemove.includes(relativePath)) {
|
|
113040
|
+
wouldRemove.push(relativePath);
|
|
113041
|
+
}
|
|
113042
|
+
}
|
|
113043
|
+
}
|
|
113044
|
+
}
|
|
113011
113045
|
if (wouldRemove.length > 0) {
|
|
113012
113046
|
logger.info(`
|
|
113013
113047
|
Files that would be REMOVED (${wouldRemove.length}):`);
|