musubi-sdd 0.1.1 → 0.1.2
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/bin/musubi-init.js +5 -3
- package/package.json +1 -1
package/bin/musubi-init.js
CHANGED
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
const fs = require('fs-extra');
|
|
22
22
|
const path = require('path');
|
|
23
23
|
const chalk = require('chalk');
|
|
24
|
-
const inquirer = require('inquirer');
|
|
25
24
|
|
|
26
25
|
const TEMPLATE_DIR = path.join(__dirname, '..', 'src', 'templates');
|
|
27
26
|
const SHARED_TEMPLATE_DIR = path.join(TEMPLATE_DIR, 'shared');
|
|
@@ -33,6 +32,9 @@ const AGENTS_TEMPLATE_DIR = path.join(TEMPLATE_DIR, 'agents');
|
|
|
33
32
|
* @param {string} agentKey - Agent key (e.g., 'claude-code', 'cursor')
|
|
34
33
|
*/
|
|
35
34
|
async function main(agent, agentKey) {
|
|
35
|
+
// Dynamic import for inquirer (ESM module)
|
|
36
|
+
const inquirer = await import('inquirer');
|
|
37
|
+
|
|
36
38
|
// If called directly without agent parameter, default to Claude Code
|
|
37
39
|
if (!agent) {
|
|
38
40
|
const { getAgentDefinition } = require('../src/agents/registry');
|
|
@@ -46,7 +48,7 @@ async function main(agent, agentKey) {
|
|
|
46
48
|
// Check if already initialized for this agent
|
|
47
49
|
const agentDir = agent.layout.agentDir;
|
|
48
50
|
if (fs.existsSync(agentDir)) {
|
|
49
|
-
const { overwrite } = await inquirer.prompt([
|
|
51
|
+
const { overwrite } = await inquirer.default.prompt([
|
|
50
52
|
{
|
|
51
53
|
type: 'confirm',
|
|
52
54
|
name: 'overwrite',
|
|
@@ -117,7 +119,7 @@ async function main(agent, agentKey) {
|
|
|
117
119
|
}
|
|
118
120
|
);
|
|
119
121
|
|
|
120
|
-
const answers = await inquirer.prompt(prompts);
|
|
122
|
+
const answers = await inquirer.default.prompt(prompts);
|
|
121
123
|
|
|
122
124
|
console.log(chalk.green('\n✨ Initializing MUSUBI...\n'));
|
|
123
125
|
|