lean-spec 0.2.5-dev.20251120072524 → 0.2.5-dev.20251120093243
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.
|
@@ -7082,10 +7082,49 @@ async function runLocalWeb(uiDir, specsDir, specsMode, options) {
|
|
|
7082
7082
|
if (options.multiProject) {
|
|
7083
7083
|
console.log(chalk18.cyan("Multi-project mode is active"));
|
|
7084
7084
|
if (options.addProject) {
|
|
7085
|
-
|
|
7085
|
+
try {
|
|
7086
|
+
const res = await fetch(`http://localhost:${options.port}/api/projects`, {
|
|
7087
|
+
method: "POST",
|
|
7088
|
+
headers: { "Content-Type": "application/json" },
|
|
7089
|
+
body: JSON.stringify({ path: options.addProject })
|
|
7090
|
+
});
|
|
7091
|
+
if (res.ok) {
|
|
7092
|
+
console.log(chalk18.green(` \u2713 Added project: ${options.addProject}`));
|
|
7093
|
+
} else {
|
|
7094
|
+
console.error(chalk18.red(` \u2717 Failed to add project: ${options.addProject}`));
|
|
7095
|
+
}
|
|
7096
|
+
} catch (e) {
|
|
7097
|
+
console.error(chalk18.red(` \u2717 Failed to connect to server for adding project`));
|
|
7098
|
+
}
|
|
7086
7099
|
}
|
|
7087
7100
|
if (options.discover) {
|
|
7088
|
-
console.log(chalk18.dim(`
|
|
7101
|
+
console.log(chalk18.dim(` Discovering projects in: ${options.discover}...`));
|
|
7102
|
+
try {
|
|
7103
|
+
const res = await fetch(`http://localhost:${options.port}/api/local-projects/discover`, {
|
|
7104
|
+
method: "POST",
|
|
7105
|
+
headers: { "Content-Type": "application/json" },
|
|
7106
|
+
body: JSON.stringify({ path: options.discover })
|
|
7107
|
+
});
|
|
7108
|
+
if (res.ok) {
|
|
7109
|
+
const data = await res.json();
|
|
7110
|
+
const discovered = data.discovered || [];
|
|
7111
|
+
console.log(chalk18.green(` \u2713 Found ${discovered.length} projects`));
|
|
7112
|
+
for (const p of discovered) {
|
|
7113
|
+
const addRes = await fetch(`http://localhost:${options.port}/api/projects`, {
|
|
7114
|
+
method: "POST",
|
|
7115
|
+
headers: { "Content-Type": "application/json" },
|
|
7116
|
+
body: JSON.stringify({ path: p.path })
|
|
7117
|
+
});
|
|
7118
|
+
if (addRes.ok) {
|
|
7119
|
+
console.log(chalk18.dim(` + Added: ${p.name} (${p.path})`));
|
|
7120
|
+
}
|
|
7121
|
+
}
|
|
7122
|
+
} else {
|
|
7123
|
+
console.error(chalk18.red(` \u2717 Failed to discover projects`));
|
|
7124
|
+
}
|
|
7125
|
+
} catch (e) {
|
|
7126
|
+
console.error(chalk18.red(` \u2717 Failed to connect to server for discovery`));
|
|
7127
|
+
}
|
|
7089
7128
|
}
|
|
7090
7129
|
}
|
|
7091
7130
|
console.log(chalk18.dim("\nPress Ctrl+C to stop\n"));
|
|
@@ -8523,5 +8562,5 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
|
|
8523
8562
|
}
|
|
8524
8563
|
|
|
8525
8564
|
export { analyzeCommand, archiveCommand, backfillCommand, boardCommand, checkCommand, compactCommand, createCommand, createMcpServer, depsCommand, filesCommand, ganttCommand, initCommand, linkCommand, listCommand, mcpCommand, migrateCommand, openCommand, searchCommand, splitCommand, statsCommand, templatesCommand, timelineCommand, tokensCommand, uiCommand, unlinkCommand, updateCommand, validateCommand, viewCommand };
|
|
8526
|
-
//# sourceMappingURL=chunk-
|
|
8527
|
-
//# sourceMappingURL=chunk-
|
|
8565
|
+
//# sourceMappingURL=chunk-5A7MJSNZ.js.map
|
|
8566
|
+
//# sourceMappingURL=chunk-5A7MJSNZ.js.map
|