@siliconoid/agentkit 0.1.0 → 0.1.1
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/lib/commands/init.mjs +1 -1
- package/lib/prompts.mjs +26 -9
- package/package.json +1 -1
package/lib/commands/init.mjs
CHANGED
|
@@ -86,7 +86,7 @@ export async function runInit(opts = {}) {
|
|
|
86
86
|
platforms = answers.platforms
|
|
87
87
|
workflowPacks = answers.workflowPacks
|
|
88
88
|
skillPacks = answers.skillPacks
|
|
89
|
-
skillBundles = answers.skillBundles
|
|
89
|
+
skillBundles = answers.skillBundles
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
// Build extended vars from auto-detection for template replacement
|
package/lib/prompts.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { input, select, checkbox, confirm } from '@inquirer/prompts'
|
|
2
2
|
import { existsSync, readFileSync } from 'fs'
|
|
3
3
|
import { join, basename } from 'path'
|
|
4
|
-
import { PLATFORMS, WORKFLOW_PACKS, detectPlatforms, discoverSkillPacks } from './utils.mjs'
|
|
4
|
+
import { PLATFORMS, WORKFLOW_PACKS, SKILL_BUNDLES, detectPlatforms, discoverSkillPacks } from './utils.mjs'
|
|
5
5
|
|
|
6
6
|
// ---------------------------------------------------------------------------
|
|
7
7
|
// Auto-detection helpers
|
|
@@ -235,14 +235,31 @@ export async function askPlatforms(detected) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
export async function askWorkflowPacks() {
|
|
238
|
-
|
|
238
|
+
// Combine workflow packs and skill bundles into one prompt
|
|
239
|
+
const workflowChoices = WORKFLOW_PACKS.map(w => ({
|
|
240
|
+
name: `${w.name} — ${w.description}`,
|
|
241
|
+
value: { type: 'workflow', id: w.id },
|
|
242
|
+
checked: true,
|
|
243
|
+
}))
|
|
244
|
+
|
|
245
|
+
const bundleChoices = SKILL_BUNDLES.map(b => ({
|
|
246
|
+
name: `${b.name} — ${b.description}`,
|
|
247
|
+
value: { type: 'bundle', id: b.id },
|
|
248
|
+
checked: true,
|
|
249
|
+
}))
|
|
250
|
+
|
|
251
|
+
const choices = [...workflowChoices, ...bundleChoices]
|
|
252
|
+
if (choices.length === 0) return { workflowPacks: [], skillBundles: [] }
|
|
253
|
+
|
|
254
|
+
const selected = await checkbox({
|
|
239
255
|
message: 'Install workflow packs? (space to toggle, enter to confirm)',
|
|
240
|
-
choices
|
|
241
|
-
name: `${w.name} — ${w.description}`,
|
|
242
|
-
value: w.id,
|
|
243
|
-
checked: true,
|
|
244
|
-
})),
|
|
256
|
+
choices,
|
|
245
257
|
})
|
|
258
|
+
|
|
259
|
+
return {
|
|
260
|
+
workflowPacks: selected.filter(s => s.type === 'workflow').map(s => s.id),
|
|
261
|
+
skillBundles: selected.filter(s => s.type === 'bundle').map(s => s.id),
|
|
262
|
+
}
|
|
246
263
|
}
|
|
247
264
|
|
|
248
265
|
export async function askSkillPacks() {
|
|
@@ -311,10 +328,10 @@ export async function runInteractivePrompts(projectRoot) {
|
|
|
311
328
|
platforms = await askPlatforms(detected.platforms)
|
|
312
329
|
}
|
|
313
330
|
|
|
314
|
-
const workflowPacks = await askWorkflowPacks()
|
|
331
|
+
const { workflowPacks, skillBundles } = await askWorkflowPacks()
|
|
315
332
|
const skillPacks = await askSkillPacks()
|
|
316
333
|
|
|
317
|
-
return { projectName, projectDescription, framework, platforms, workflowPacks, skillPacks }
|
|
334
|
+
return { projectName, projectDescription, framework, platforms, workflowPacks, skillBundles, skillPacks }
|
|
318
335
|
}
|
|
319
336
|
|
|
320
337
|
/**
|