opencode-pilot 0.5.0 → 0.5.1
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/bin/opencode-pilot +12 -2
- package/package.json +1 -1
package/bin/opencode-pilot
CHANGED
|
@@ -272,10 +272,20 @@ async function configCommand() {
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
// Validate sources section
|
|
275
|
+
// Validate sources section (use getSources to expand presets)
|
|
276
276
|
console.log("");
|
|
277
277
|
console.log("Sources:");
|
|
278
|
-
const
|
|
278
|
+
const { loadRepoConfig, getSources } = await import(join(serviceDir, "repo-config.js"));
|
|
279
|
+
loadRepoConfig(PILOT_CONFIG_FILE);
|
|
280
|
+
|
|
281
|
+
let sources;
|
|
282
|
+
try {
|
|
283
|
+
sources = getSources();
|
|
284
|
+
} catch (err) {
|
|
285
|
+
console.log(` ✗ Failed to load sources: ${err.message}`);
|
|
286
|
+
sources = [];
|
|
287
|
+
}
|
|
288
|
+
|
|
279
289
|
if (sources.length === 0) {
|
|
280
290
|
console.log(" (none configured)");
|
|
281
291
|
} else {
|