prompt-skill-armory 0.4.8 → 0.4.9
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/cli.cjs +5 -12
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -114,19 +114,12 @@ function addBundle(profileDir) {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
/** Mount the client panel via the profile's cordis.patch.yml.
|
|
117
|
+
/** Mount the client panel via the profile's cordis.patch.yml.
|
|
118
|
+
* No longer automatic: the web-app bundle (shipped with the client / harness)
|
|
119
|
+
* already composes ui-switchblade; adding it again to a profile patch causes
|
|
120
|
+
* a duplicate loader entry. Kept as a no-op for backwards safety. */
|
|
118
121
|
function mountClientPanel(profileDir) {
|
|
119
|
-
|
|
120
|
-
const existing = existsSync(patchPath) ? readFileSync(patchPath, 'utf8') : '[]'
|
|
121
|
-
if (existing.includes('ui-switchblade')) {
|
|
122
|
-
console.log(` · ui-switchblade already mounted in ${patchPath}`)
|
|
123
|
-
return
|
|
124
|
-
}
|
|
125
|
-
const mount = `# Prompt-SkillArmory: mount the Web panel (client half).\n- insert:\n - id: ui-switchblade\n name: '@deepseek-ai/dsh-client-ui-switchblade'\n`
|
|
126
|
-
// Append after the existing patch list (or start fresh if it was just `[]`).
|
|
127
|
-
const base = existing.trim() === '[]' ? '' : existing.replace(/\s*$/, '\n')
|
|
128
|
-
writeFileSync(patchPath, `${base}${mount}`)
|
|
129
|
-
console.log(` ✓ mounted ui-switchblade in ${patchPath}`)
|
|
122
|
+
void profileDir
|
|
130
123
|
}
|
|
131
124
|
|
|
132
125
|
function main() {
|