@tbrandenburg/opencode-a2a-lite 0.2.7 → 0.3.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
@@ -5,10 +5,10 @@
5
5
  [![CI](https://github.com/tbrandenburg/opencode-a2a-lite/actions/workflows/ci.yml/badge.svg)](https://github.com/tbrandenburg/opencode-a2a-lite/actions/workflows/ci.yml)
6
6
  [![Release](https://img.shields.io/github/v/release/tbrandenburg/opencode-a2a-lite)](https://github.com/tbrandenburg/opencode-a2a-lite/releases/latest)
7
7
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
- ![Platform: Linux](https://img.shields.io/badge/platform-linux-lightgrey)
8
+ ![Platform: Linux and experimental macOS](https://img.shields.io/badge/platform-linux%20%7C%20macOS%20experimental-lightgrey)
9
9
  ![Runtime: Bun](https://img.shields.io/badge/runtime-Bun%201.4.4-black)
10
10
 
11
- A small OpenCode ACP → A2A 1.0 gateway for trusted Linux workspaces: point any A2A
11
+ A small OpenCode ACP → A2A 1.0 gateway for trusted workspaces: point any A2A
12
12
  client at it and it drives OpenCode. It uses the official A2A and ACP SDKs: OpenCode
13
13
  owns coding-session behavior, the gateway translates plain-text tasks, streamed output
14
14
  and context continuity.
@@ -59,17 +59,22 @@ SIGINT/SIGTERM.
59
59
 
60
60
  ## Requirements
61
61
 
62
- - Linux, **Bun 1.4.4**, and stable **`opencode` v2.2.7 or newer** on `PATH`
63
- (live acceptance recorded on 2.2.7).
62
+ - Linux, or macOS for experimental gateway use, **Bun 1.4.4**, and stable
63
+ **`opencode` v2.2.7 or newer** on `PATH` (full live acceptance recorded on
64
+ Linux with 2.2.7; a two-turn macOS live demo passed with 2.3.0).
64
65
  - An explicitly trusted workspace and reviewed OpenCode provider, model, tools,
65
66
  plugins, MCP servers and configuration.
66
67
  - The separate [official A2A CLI](https://github.com/a2aproject/a2a-cli)
67
- (tested with 0.3.1) to talk to the running gateway.
68
+ (tested with 0.3.1 on Linux and 0.4.0 in the macOS demo) to talk to the running gateway.
68
69
 
69
70
  Runtime security and compatibility evidence is tracked for
70
71
  [Bun](docs/bun-runtime-security.md) and [OpenCode](docs/opencode-runtime-upgrade.md).
71
72
  Standalone Bun and OpenCode's embedded runtime are separate upgrade boundaries;
72
73
  historical acceptance results do not establish compatibility of a new pair.
74
+ macOS package installation requires a release containing the `darwin` package
75
+ manifest entry; older published versions remain Linux-only. The isolated `make demo`
76
+ also supports macOS, but the full live acceptance suite, guarded MCP and team
77
+ launcher still use Linux-specific tooling.
73
78
 
74
79
  ## Usage
75
80
 
@@ -135,6 +140,7 @@ bun src/cli.ts --workspace /absolute/path/to/trusted/workspace --port 0
135
140
  | ---------------------------------------------------------------------- | -------------------------------------------------------------------- |
136
141
  | `make check` | Formatting, lint, strict types, deterministic regressions, build |
137
142
  | `make package-smoke` | Installed-tarball and subprocess lifecycle checks, without provider |
143
+ | `make runtime-smoke` | Isolated gateway and real OpenCode startup, without a model prompt |
138
144
  | `A2ABRIDGE_BIN=/absolute/path/to/verified/a2abridge make interop-test` | Pinned, provider-free guarded MCP/bridge/gateway acceptance |
139
145
  | `make demo` | Isolated official A2A CLI two-turn smoke (**live, billable**) |
140
146
  | `make e2e` | Production live-model acceptance (**live, billable**) |
@@ -142,9 +148,11 @@ bun src/cli.ts --workspace /absolute/path/to/trusted/workspace --port 0
142
148
  | `make release BUMP=patch` | Check, commit and push tag for npm publication and a GitHub release. |
143
149
  | `make clean` | Remove build, coverage and test results |
144
150
 
145
- CI checks deterministic tests, the provider-free team launcher fixtures, installed
146
- packaging and the checksummed provider-free MCP bridge. Live demo/E2E are explicit manual commands requiring a provider key,
151
+ CI is configured to check core deterministic tests and installed packaging on Linux and macOS;
152
+ the provider-free team launcher fixtures and checksummed MCP bridge run on Linux.
153
+ Live demo/E2E are explicit manual commands requiring a provider key,
147
154
  OpenCode and the official A2A CLI; `make demo` also needs `jq` and GNU `timeout`.
155
+ On macOS its isolated workspace cleanup additionally uses `/usr/sbin/lsof`.
148
156
  For the exact live evidence/limitations see [acceptance](docs/acceptance.md).
149
157
  For quality measurement see [quality baseline](docs/quality-baseline.md).
150
158
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbrandenburg/opencode-a2a-lite",
3
- "version": "0.2.7",
3
+ "version": "0.3.1",
4
4
  "description": "OpenCode ACP to A2A gateway for trusted workspaces",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,7 +17,8 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "os": [
20
- "linux"
20
+ "linux",
21
+ "darwin"
21
22
  ],
22
23
  "type": "module",
23
24
  "publishConfig": {
@@ -239,6 +239,10 @@ export function createAcpBridge(options) {
239
239
  catch (error) {
240
240
  if (error instanceof Error && "code" in error && error.code === "ESRCH")
241
241
  return false;
242
+ // On macOS an unreaped process group can briefly return EPERM after SIGKILL.
243
+ // Treat an existence probe as inconclusive, never as proof of cleanup.
244
+ if (signal === 0 && error instanceof Error && "code" in error && error.code === "EPERM")
245
+ return true;
242
246
  throw new Error("ACP owned process cleanup failed");
243
247
  }
244
248
  }
package/dist/src/cli.js CHANGED
@@ -8,7 +8,7 @@ async function main() {
8
8
  console.log(`Usage: opencode-a2a-lite --workspace <path> [--port <0..65535>]
9
9
 
10
10
  Start the foreground, unauthenticated A2A gateway.
11
- Linux, Bun 1.4.4, stable OpenCode 2.2.7 or newer on PATH, and configured provider required.
11
+ Linux or macOS (experimental), Bun 1.4.4, stable OpenCode 2.2.7 or newer on PATH, and configured provider required.
12
12
 
13
13
  --workspace <path> Explicitly trust this directory; relative paths are resolved.
14
14
  --port <0..65535> Port (default 41241; 0 selects a free port).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbrandenburg/opencode-a2a-lite",
3
- "version": "0.2.7",
3
+ "version": "0.3.1",
4
4
  "description": "OpenCode ACP to A2A gateway for trusted workspaces",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,7 +17,8 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "os": [
20
- "linux"
20
+ "linux",
21
+ "darwin"
21
22
  ],
22
23
  "type": "module",
23
24
  "publishConfig": {