checkpoint: File edit:

🚀 Generated with [Claude Code](https://claude.com/claude-code)
📊 V3 Development Progress Checkpoint

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
rUvandClaude Sonnet 4 committed 2026-01-05 19:40:01 +00:00
1 parent 0f4d454246
commit 3d4813240d
3 files changed
+41 -9

No files matched your search

+37 -8
View File
@@ -542,16 +542,45 @@ neural/
* Find source directory for skills/commands/agents
*/
function findSourceDir(type: 'skills' | 'commands' | 'agents'): string | null {
const possiblePaths = [
// Installed package
path.join(__dirname, '..', '..', '..', '..', '..', '.claude', type),
// Plugin directory
path.join(__dirname, '..', '..', '..', '..', '..', 'plugin', type),
// V2 directory for agents
path.join(__dirname, '..', '..', '..', '..', '..', 'v2', '.claude', type),
// Root .claude directory
// Build list of possible paths to check
const possiblePaths: string[] = [];
// From dist/src/init -> go up to project root
// __dirname is typically /path/to/v3/@claude-flow/cli/dist/src/init
const distPath = __dirname;
// Try to find the project root by looking for .claude directory
let currentDir = distPath;
for (let i = 0; i < 10; i++) {
const parentDir = path.dirname(currentDir);
const dotClaudePath = path.join(parentDir, '.claude', type);
if (fs.existsSync(dotClaudePath)) {
possiblePaths.push(dotClaudePath);
}
currentDir = parentDir;
}
// Also check relative to process.cwd() for development
const cwdBased = [
path.join(process.cwd(), '.claude', type),
path.join(process.cwd(), '..', '.claude', type),
path.join(process.cwd(), '..', '..', '.claude', type),
];
possiblePaths.push(...cwdBased);
// Check v2 directory for agents
if (type === 'agents') {
possiblePaths.push(
path.join(process.cwd(), 'v2', '.claude', type),
path.join(process.cwd(), '..', 'v2', '.claude', type),
);
}
// Plugin directory
possiblePaths.push(
path.join(process.cwd(), 'plugin', type),
path.join(process.cwd(), '..', 'plugin', type),
);
for (const p of possiblePaths) {
if (fs.existsSync(p)) {
+2 -1
View File
@@ -309,7 +309,8 @@ class PromptManager {
// Initialize selection state
const selected = new Set<number>();
for (let i = 0; i < choices.length; i++) {
if (defaultValues.includes(choices[i].value)) {
// Check both default array and individual selected property
if (defaultValues.includes(choices[i].value) || choices[i].selected) {
selected.add(i);
}
}
+2
View File
@@ -192,6 +192,8 @@ export interface SelectOption<T = string> {
label: string;
hint?: string;
disabled?: boolean;
/** For multiselect: whether this option is selected by default */
selected?: boolean;
}
export interface SelectPromptOptions<T = string> {