opencode-pilot 0.13.0 → 0.13.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/README.md CHANGED
@@ -106,20 +106,6 @@ When using `server_port` to attach sessions to a global OpenCode server (e.g., O
106
106
 
107
107
  **Upstream issue**: [anomalyco/opencode#7376](https://github.com/anomalyco/opencode/issues/7376)
108
108
 
109
- ### Working directory doesn't switch when templates create worktrees/devcontainers
110
-
111
- When a template instructs the agent to create a git worktree or switch to a devcontainer, OpenCode's internal working directory context (`Instance.directory`) doesn't update. This means:
112
-
113
- - The "Session changes" panel shows diffs from the original directory
114
- - File tools may resolve paths relative to the wrong location
115
- - The agent works in the new directory, but OpenCode doesn't follow
116
-
117
- **Workaround**: Start OpenCode directly in the target directory, or use separate terminal sessions.
118
-
119
- **Upstream issue**: [anomalyco/opencode#6697](https://github.com/anomalyco/opencode/issues/6697)
120
-
121
- **Related**: [opencode-devcontainers#103](https://github.com/athal7/opencode-devcontainers/issues/103)
122
-
123
109
  ## Related
124
110
 
125
111
  - [opencode-devcontainers](https://github.com/athal7/opencode-devcontainers) - Run multiple devcontainer instances for OpenCode
@@ -39,8 +39,8 @@ function findServiceDir() {
39
39
  const serviceDir = findServiceDir();
40
40
 
41
41
  // Paths
42
- const PILOT_CONFIG_FILE = join(os.homedir(), ".config/opencode-pilot/config.yaml");
43
- const PILOT_TEMPLATES_DIR = join(os.homedir(), ".config/opencode-pilot/templates");
42
+ const PILOT_CONFIG_FILE = join(os.homedir(), ".config/opencode/pilot/config.yaml");
43
+ const PILOT_TEMPLATES_DIR = join(os.homedir(), ".config/opencode/pilot/templates");
44
44
 
45
45
  // Default port
46
46
  const DEFAULT_PORT = 4097;
@@ -231,7 +231,7 @@ async function configCommand() {
231
231
  console.log(`Config file not found: ${PILOT_CONFIG_FILE}`);
232
232
  console.log("");
233
233
  console.log("Create one by copying the example:");
234
- console.log(" cp node_modules/opencode-pilot/examples/config.yaml ~/.config/opencode-pilot/config.yaml");
234
+ console.log(" cp node_modules/opencode-pilot/examples/config.yaml ~/.config/opencode/pilot/config.yaml");
235
235
  process.exit(1);
236
236
  }
237
237
 
@@ -666,7 +666,7 @@ async function clearCommand(flags) {
666
666
  // No flags - show current state summary
667
667
  console.log("Poll state summary:");
668
668
  console.log(` Total entries: ${beforeCount}`);
669
- console.log(` State file: ~/.config/opencode-pilot/poll-state.json`);
669
+ console.log(` State file: ~/.config/opencode/pilot/poll-state.json`);
670
670
  console.log("");
671
671
  console.log("Usage:");
672
672
  console.log(" opencode-pilot clear --all Clear all entries");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-pilot",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "type": "module",
5
5
  "main": "plugin/index.js",
6
6
  "description": "Automation daemon for OpenCode - polls for work and spawns sessions",
package/plugin/index.js CHANGED
@@ -10,7 +10,7 @@ import { homedir } from 'os'
10
10
  import YAML from 'yaml'
11
11
 
12
12
  const DEFAULT_PORT = 4097
13
- const CONFIG_PATH = join(homedir(), '.config', 'opencode-pilot', 'config.yaml')
13
+ const CONFIG_PATH = join(homedir(), '.config', 'opencode', 'pilot', 'config.yaml')
14
14
 
15
15
  /**
16
16
  * Load port from config file
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * repo-config.js - Configuration management
3
3
  *
4
- * Manages configuration stored in ~/.config/opencode-pilot/config.yaml
4
+ * Manages configuration stored in ~/.config/opencode/pilot/config.yaml
5
5
  * Supports:
6
6
  * - defaults: default values applied to all sources
7
7
  * - repos: per-repository settings (use YAML anchors for sharing)