@arthai/agents 1.0.2 → 1.0.3
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/VERSION +1 -1
- package/bin/cli.js +11 -0
- package/dist/plugins/canvas/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/compass/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/counsel/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/cruise/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/forge/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/prime/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/prism/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/scalpel/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/sentinel/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/shield/.claude-plugin/plugin.json +1 -1
- package/dist/plugins/spark/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.3
|
package/bin/cli.js
CHANGED
|
@@ -268,6 +268,17 @@ function copyPlugin(sourceDir, targetPluginsDir, name) {
|
|
|
268
268
|
|
|
269
269
|
// Recursive copy
|
|
270
270
|
copyDirRecursive(sourceDir, dest);
|
|
271
|
+
|
|
272
|
+
// Register plugin in .claude/settings.local.json so Claude Code discovers it
|
|
273
|
+
const projectDir = path.resolve(targetPluginsDir, '..'); // .claude/
|
|
274
|
+
const settingsPath = path.join(projectDir, 'settings.local.json');
|
|
275
|
+
let settings = {};
|
|
276
|
+
if (fs.existsSync(settingsPath)) {
|
|
277
|
+
try { settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8')); } catch (e) { settings = {}; }
|
|
278
|
+
}
|
|
279
|
+
if (!settings.enabledPlugins) settings.enabledPlugins = {};
|
|
280
|
+
settings.enabledPlugins[`${name}@local`] = true;
|
|
281
|
+
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n');
|
|
271
282
|
}
|
|
272
283
|
|
|
273
284
|
function copyDirRecursive(src, dest) {
|