opencode-courier 0.11.0 → 0.11.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
@@ -18,7 +18,7 @@ A narrated tour of the terminal UI: the tree panel, the asks inbox, failing chil
18
18
  ## Quickstart
19
19
 
20
20
  ```bash
21
- npm install -g @opencode/cli@2.1.3 # OpenCode V2, the version courier is tested on
21
+ npm install -g @opencode/cli@2.1.4 # OpenCode V2, the version courier is tested on
22
22
  opencode plugin add opencode-courier
23
23
  opencode
24
24
  ```
@@ -60,10 +60,10 @@ split a task and how to check and merge the parts. Every detail: [the reference]
60
60
  ## Install
61
61
 
62
62
  Requires OpenCode V2: the `opencode` command from `@opencode/cli`. Each release is tested against
63
- one OpenCode version; this one is tested on **OpenCode 2.1.3** (check with `opencode --version`).
63
+ one OpenCode version; this one is tested on **OpenCode 2.1.4** (check with `opencode --version`).
64
64
 
65
65
  ```bash
66
- npm install -g @opencode/cli@2.1.3
66
+ npm install -g @opencode/cli@2.1.4
67
67
  opencode plugin add opencode-courier
68
68
  ```
69
69
 
@@ -76,13 +76,13 @@ name, without a version: OpenCode offers updates only for an entry without an ex
76
76
  <!-- compat-table:start rows=3: generated by script/compat-table.ts from the release tags -->
77
77
  | opencode-courier | OpenCode V2 (`opencode` and `@opencode/plugin`) |
78
78
  |---|---|
79
+ | 0.11.1 | 2.1.4 |
79
80
  | 0.11.0 | 2.1.3 |
80
81
  | 0.10.2, 0.10.3 | 2.1.2 |
81
- | 0.10.1 | 2.1.0 |
82
82
  <!-- compat-table:end -->
83
83
 
84
84
  Every release: [the full table](docs/reference.md#the-opencode-version). The server part loads on
85
- any V2 host from 2.0.4 on. The terminal part is tested on OpenCode 2.1.3 only.
85
+ any V2 host from 2.0.4 on. The terminal part is tested on OpenCode 2.1.4 only.
86
86
 
87
87
  ## Options
88
88
 
@@ -9,15 +9,15 @@ function titleOf(task) {
9
9
  return line.length > 60 ? `${line.slice(0, 57)}...` : line;
10
10
  }
11
11
  /**
12
- * The model a child runs on: its parent's, so it does not fall back to OpenCode's default, which
13
- * the parent may have been moved off for a reason. An agent that names its own model keeps it.
12
+ * The model a child runs on, always passed on so no OpenCode version falls back to its default:
13
+ * the named agent's own, else its parent's.
14
14
  */
15
15
  async function inheritedModel(ports, parentID, agent) {
16
16
  const parent = await ports.session.get({ sessionID: parentID });
17
- if (!parent.model || !agent)
17
+ if (!agent)
18
18
  return parent.model;
19
19
  const named = await ports.agent.get({ agentID: agent, location: { directory: ports.directory } });
20
- return named.data.model ? undefined : parent.model;
20
+ return named.data.model ?? parent.model;
21
21
  }
22
22
  /** Removes a worktree made for a child that was never created; one that cannot be removed stays. */
23
23
  async function dropWorktree(ports, directory) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-courier",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Multi-session orchestration for OpenCode V2: spawn child sessions, be woken by them. No polling.",
5
5
  "license": "MIT",
6
6
  "author": "Ivo Pogace <71701666+ivopogace@users.noreply.github.com>",
@@ -56,14 +56,14 @@
56
56
  "test:e2e": "e2e/run.sh"
57
57
  },
58
58
  "peerDependencies": {
59
- "@opencode/plugin": "2.1.3",
59
+ "@opencode/plugin": "2.1.4",
60
60
  "effect": "4.0.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@opencode/plugin": "2.1.3",
64
- "@opencode/theme": "2.1.3",
65
- "@opentui/core": "0.6.6",
66
- "@opentui/solid": "0.6.6",
63
+ "@opencode/plugin": "2.1.4",
64
+ "@opencode/theme": "2.1.4",
65
+ "@opentui/core": "0.6.8",
66
+ "@opentui/solid": "0.6.8",
67
67
  "@types/bun": "1.4.2",
68
68
  "@types/node": "26.6.4",
69
69
  "effect": "4.0.1",