opencode-pilot 0.16.0 → 0.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-pilot",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "type": "module",
5
5
  "main": "plugin/index.js",
6
6
  "description": "Automation daemon for OpenCode - polls for work and spawns sessions",
@@ -68,12 +68,16 @@ function parseGitHubRepo(url) {
68
68
  function discoverRepos(reposDir) {
69
69
  const discovered = new Map();
70
70
 
71
- if (!reposDir || !fs.existsSync(reposDir)) {
71
+ if (!reposDir) {
72
72
  return discovered;
73
73
  }
74
74
 
75
75
  const normalizedDir = reposDir.replace(/^~/, os.homedir());
76
76
 
77
+ if (!fs.existsSync(normalizedDir)) {
78
+ return discovered;
79
+ }
80
+
77
81
  try {
78
82
  const entries = fs.readdirSync(normalizedDir, { withFileTypes: true });
79
83