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.
Files changed (2) hide show
  1. package/bin/opencode-pilot +12 -2
  2. package/package.json +1 -1
@@ -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 sources = config.sources || [];
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-pilot",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "main": "plugin/index.js",
6
6
  "description": "Automation daemon for OpenCode - polls for work and spawns sessions",