@dboio/cli 0.19.2 → 0.19.4
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
CHANGED
package/src/commands/clone.js
CHANGED
|
@@ -19,6 +19,7 @@ import { runPendingMigrations } from '../lib/migrations.js';
|
|
|
19
19
|
import { upsertDeployEntry } from '../lib/deploy-config.js';
|
|
20
20
|
import { syncDependencies, parseDependenciesColumn } from '../lib/dependencies.js';
|
|
21
21
|
import { sep } from 'path';
|
|
22
|
+
import { installOrUpdateClaudeCommands } from './install.js';
|
|
22
23
|
|
|
23
24
|
/** True when cwd is inside app_dependencies/ (dependency checkout clone). */
|
|
24
25
|
function isDependencyCheckout() {
|
|
@@ -1480,6 +1481,29 @@ export async function performClone(source, options = {}) {
|
|
|
1480
1481
|
if (!options.pullMode) {
|
|
1481
1482
|
log.dim(' Run "dbo login" to authenticate, then "dbo push" to deploy changes');
|
|
1482
1483
|
}
|
|
1484
|
+
|
|
1485
|
+
// Offer to install Claude Code plugins on fresh clone (not pull, not dependency checkout)
|
|
1486
|
+
if (!options.pullMode && !isDependencyCheckout()) {
|
|
1487
|
+
const pluginsDir = join(process.cwd(), '.claude', 'plugins');
|
|
1488
|
+
let pluginsAlreadyInstalled = false;
|
|
1489
|
+
try {
|
|
1490
|
+
const entries = await readdir(pluginsDir);
|
|
1491
|
+
pluginsAlreadyInstalled = entries.length > 0;
|
|
1492
|
+
} catch { /* directory doesn't exist */ }
|
|
1493
|
+
|
|
1494
|
+
if (!pluginsAlreadyInstalled) {
|
|
1495
|
+
const inquirer = (await import('inquirer')).default;
|
|
1496
|
+
const { install } = await inquirer.prompt([{
|
|
1497
|
+
type: 'confirm',
|
|
1498
|
+
name: 'install',
|
|
1499
|
+
message: 'Install Claude Code plugins for this project? (adds /dbo and /track commands)',
|
|
1500
|
+
default: true,
|
|
1501
|
+
}]);
|
|
1502
|
+
if (install) {
|
|
1503
|
+
await installOrUpdateClaudeCommands({ local: true });
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1483
1507
|
}
|
|
1484
1508
|
|
|
1485
1509
|
/**
|