opencode-courier 0.10.0 → 0.10.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 +5 -5
- package/dist/tree/panel.d.ts +1 -1
- package/dist/tree/panel.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ The edge cases on the live terminal UI, narrated ([what it shows](#demos)).
|
|
|
21
21
|
## Quickstart
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install -g @opencode/cli@2.0
|
|
24
|
+
npm install -g @opencode/cli@2.1.0 # OpenCode V2, at the version courier is tested on
|
|
25
25
|
opencode plugin add opencode-courier # by name, so OpenCode offers new releases
|
|
26
26
|
opencode # in any folder
|
|
27
27
|
```
|
|
@@ -42,7 +42,7 @@ sometimes stall on a request; if nothing moves for a few minutes, send the promp
|
|
|
42
42
|
|
|
43
43
|
Courier is built on OpenCode V2's plugin API (`@opencode/plugin`), not the V1 one
|
|
44
44
|
(`@opencode-ai/plugin`). Each release is pinned to one V2 version and tested against it end to end;
|
|
45
|
-
the current one is tested on **OpenCode 2.0
|
|
45
|
+
the current one is tested on **OpenCode 2.1.0**. CI also runs the live suite on the newest OpenCode
|
|
46
46
|
release, on `main` and nightly. Older releases: [every release](docs/reference.md#the-opencode-version).
|
|
47
47
|
|
|
48
48
|
## Courier or the built-in subagent tool?
|
|
@@ -108,20 +108,20 @@ version than the pinned one writes one line to the server log
|
|
|
108
108
|
<!-- compat-table:start rows=3: generated by script/compat-table.ts from the release tags -->
|
|
109
109
|
| opencode-courier | OpenCode V2 (`opencode` and `@opencode/plugin`) |
|
|
110
110
|
|---|---|
|
|
111
|
+
| 0.10.1 | 2.1.0 |
|
|
111
112
|
| 0.7.3, 0.8.0, 0.9.0, 0.10.0 | 2.0.32 |
|
|
112
113
|
| 0.7.2 | 2.0.31 |
|
|
113
|
-
| 0.7.1 | 2.0.30 |
|
|
114
114
|
<!-- compat-table:end -->
|
|
115
115
|
|
|
116
116
|
Older releases and their versions: [every release](docs/reference.md#the-opencode-version).
|
|
117
117
|
|
|
118
118
|
The [terminal part](#in-the-terminal) relies on the host to provide its UI modules and is tested on
|
|
119
|
-
OpenCode 2.0
|
|
119
|
+
OpenCode 2.1.0 only; the server part works on older V2 hosts from 2.0.4 on.
|
|
120
120
|
|
|
121
121
|
Check yours with `opencode --version`, and install the matching CLI with:
|
|
122
122
|
|
|
123
123
|
```bash
|
|
124
|
-
npm install -g @opencode/cli@2.0
|
|
124
|
+
npm install -g @opencode/cli@2.1.0
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
### The plugin
|
package/dist/tree/panel.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function lastTool(messages: Messages): {
|
|
|
6
6
|
name: string;
|
|
7
7
|
at: number;
|
|
8
8
|
} | undefined;
|
|
9
|
-
/** How full a session's context is, as OpenCode's session view reads it (packages/tui/src/util/session.ts, v2.0
|
|
9
|
+
/** How full a session's context is, as OpenCode's session view reads it (packages/tui/src/util/session.ts, v2.1.0): the last usage since the last compaction over its model's window. */
|
|
10
10
|
export declare function contextOf(messages: Messages, windows: ReadonlyArray<ModelWindow>): number | undefined;
|
|
11
11
|
/** A request as the panel says what a paused session waits on: a permission request, or its first question. */
|
|
12
12
|
export declare const waitOf: (pending: Pending) => Wait;
|
package/dist/tree/panel.js
CHANGED
|
@@ -15,7 +15,7 @@ export function lastTool(messages) {
|
|
|
15
15
|
}
|
|
16
16
|
return undefined;
|
|
17
17
|
}
|
|
18
|
-
/** How full a session's context is, as OpenCode's session view reads it (packages/tui/src/util/session.ts, v2.0
|
|
18
|
+
/** How full a session's context is, as OpenCode's session view reads it (packages/tui/src/util/session.ts, v2.1.0): the last usage since the last compaction over its model's window. */
|
|
19
19
|
export function contextOf(messages, windows) {
|
|
20
20
|
const compacted = messages.findLastIndex((message) => message.type === "compaction" && message.status === "completed");
|
|
21
21
|
const last = messages.findLast((message, index) => index > compacted && message.type === "assistant" && message.tokens !== undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-courier",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.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.0
|
|
59
|
+
"@opencode/plugin": "2.1.0",
|
|
60
60
|
"effect": "4.0.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@opencode/plugin": "2.0
|
|
64
|
-
"@opencode/theme": "2.0
|
|
65
|
-
"@opentui/core": "0.
|
|
66
|
-
"@opentui/solid": "0.
|
|
63
|
+
"@opencode/plugin": "2.1.0",
|
|
64
|
+
"@opencode/theme": "2.1.0",
|
|
65
|
+
"@opentui/core": "0.6.6",
|
|
66
|
+
"@opentui/solid": "0.6.6",
|
|
67
67
|
"@types/bun": "1.3.14",
|
|
68
68
|
"@types/node": "26.6.4",
|
|
69
69
|
"effect": "4.0.1",
|