ac-framework 1.9.0 → 1.9.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/package.json +1 -1
- package/src/commands/init.js +9 -7
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -54,9 +54,7 @@ const acGradient = gradient(['#6C5CE7', '#00CEC9', '#0984E3']);
|
|
|
54
54
|
*/
|
|
55
55
|
async function setupPersistentMemory() {
|
|
56
56
|
const memoryDbPath = join(homedir(), '.acfm', 'memory.db');
|
|
57
|
-
|
|
58
|
-
// Only ask on first run
|
|
59
|
-
if (existsSync(memoryDbPath)) return;
|
|
57
|
+
const alreadyExists = existsSync(memoryDbPath);
|
|
60
58
|
|
|
61
59
|
console.log();
|
|
62
60
|
await animatedSeparator(60);
|
|
@@ -93,16 +91,20 @@ async function setupPersistentMemory() {
|
|
|
93
91
|
}
|
|
94
92
|
|
|
95
93
|
console.log();
|
|
96
|
-
console.log(chalk.hex('#B2BEC3')(' Initializing NexusVault...'));
|
|
94
|
+
console.log(chalk.hex('#B2BEC3')(alreadyExists ? ' Reconnecting NexusVault...' : ' Initializing NexusVault...'));
|
|
97
95
|
|
|
98
|
-
// Init the SQLite database
|
|
96
|
+
// Init the SQLite database (idempotent — skips if already exists)
|
|
99
97
|
const { initDatabase, isDatabaseInitialized } = await import('../memory/database.js');
|
|
100
98
|
if (!isDatabaseInitialized()) {
|
|
101
99
|
initDatabase();
|
|
102
100
|
}
|
|
103
101
|
console.log(
|
|
104
102
|
chalk.hex('#00CEC9')(' ◆ ') +
|
|
105
|
-
chalk.hex('#DFE6E9')(
|
|
103
|
+
chalk.hex('#DFE6E9')(
|
|
104
|
+
alreadyExists
|
|
105
|
+
? 'NexusVault database found at ~/.acfm/memory.db'
|
|
106
|
+
: 'NexusVault database created at ~/.acfm/memory.db'
|
|
107
|
+
)
|
|
106
108
|
);
|
|
107
109
|
|
|
108
110
|
// Install MCP server into detected assistants
|
|
@@ -284,7 +286,7 @@ export async function initCommand(options = {}) {
|
|
|
284
286
|
|
|
285
287
|
// Dynamic step counting: +1 step when downloading from GitHub
|
|
286
288
|
const stepOffset = useLatest ? 1 : 0;
|
|
287
|
-
const totalSteps =
|
|
289
|
+
const totalSteps = 5 + stepOffset;
|
|
288
290
|
|
|
289
291
|
// Framework source: bundled by default, overridden by --latest
|
|
290
292
|
let frameworkPath = FRAMEWORK_PATH;
|