prompt-skill-armory 0.4.4 → 0.4.5
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 +16 -0
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -96,6 +96,21 @@ function addBundle(profileDir) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/** Mount the client panel via the profile's cordis.patch.yml. */
|
|
100
|
+
function mountClientPanel(profileDir) {
|
|
101
|
+
const patchPath = join(profileDir, 'cordis.patch.yml')
|
|
102
|
+
const existing = existsSync(patchPath) ? readFileSync(patchPath, 'utf8') : '[]'
|
|
103
|
+
if (existing.includes('ui-switchblade')) {
|
|
104
|
+
console.log(` · ui-switchblade already mounted in ${patchPath}`)
|
|
105
|
+
return
|
|
106
|
+
}
|
|
107
|
+
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`
|
|
108
|
+
// Append after the existing patch list (or start fresh if it was just `[]`).
|
|
109
|
+
const base = existing.trim() === '[]' ? '' : existing.replace(/\s*$/, '\n')
|
|
110
|
+
writeFileSync(patchPath, `${base}${mount}`)
|
|
111
|
+
console.log(` ✓ mounted ui-switchblade in ${patchPath}`)
|
|
112
|
+
}
|
|
113
|
+
|
|
99
114
|
function main() {
|
|
100
115
|
console.log('Prompt-SkillArmory installer')
|
|
101
116
|
console.log(` harness home: ${dshHome}`)
|
|
@@ -122,6 +137,7 @@ function main() {
|
|
|
122
137
|
console.log(` profile: ${profileDir}`)
|
|
123
138
|
for (const pkg of pkgs) installPackage(pkg, profileDir)
|
|
124
139
|
addBundle(profileDir)
|
|
140
|
+
mountClientPanel(profileDir)
|
|
125
141
|
}
|
|
126
142
|
|
|
127
143
|
console.log('')
|