clavix 3.3.1 → 3.3.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.
|
@@ -2,7 +2,6 @@ import { Command } from '@oclif/core';
|
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import * as path from 'path';
|
|
5
|
-
import JSON5 from 'json5';
|
|
6
5
|
import { AgentManager } from '../../core/agent-manager.js';
|
|
7
6
|
import { DocInjector } from '../../core/doc-injector.js';
|
|
8
7
|
import { AgentsMdGenerator } from '../../core/adapters/agents-md-generator.js';
|
|
@@ -44,7 +43,7 @@ export default class Init extends Command {
|
|
|
44
43
|
if (await FileSystem.exists('.clavix/config.json')) {
|
|
45
44
|
try {
|
|
46
45
|
const configContent = await FileSystem.readFile('.clavix/config.json');
|
|
47
|
-
const config =
|
|
46
|
+
const config = JSON.parse(configContent);
|
|
48
47
|
existingProviders = config.providers || [];
|
|
49
48
|
}
|
|
50
49
|
catch (error) {
|
|
@@ -5,7 +5,6 @@ import fs from 'fs-extra';
|
|
|
5
5
|
import * as path from 'path';
|
|
6
6
|
import { fileURLToPath } from 'url';
|
|
7
7
|
import { dirname } from 'path';
|
|
8
|
-
import JSON5 from 'json5';
|
|
9
8
|
import { DocInjector } from '../../core/doc-injector.js';
|
|
10
9
|
import { AgentManager } from '../../core/agent-manager.js';
|
|
11
10
|
import { AgentsMdGenerator } from '../../core/adapters/agents-md-generator.js';
|
|
@@ -49,7 +48,7 @@ export default class Update extends Command {
|
|
|
49
48
|
}
|
|
50
49
|
this.log(chalk.bold.cyan('🔄 Updating Clavix integration...\n'));
|
|
51
50
|
// Load config to determine providers
|
|
52
|
-
const config =
|
|
51
|
+
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
|
|
53
52
|
const providers = config.providers || ['claude-code'];
|
|
54
53
|
const agentManager = new AgentManager();
|
|
55
54
|
const updateDocs = flags['docs-only'] || (!flags['docs-only'] && !flags['commands-only']);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavix",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Clavix Intelligence™ for AI coding. Automatically optimizes prompts with intent detection, quality assessment, and adaptive patterns—no framework to learn. Works with Claude Code, Cursor, Windsurf, and 19+ other AI coding tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|