@sjawhar/opencode-legion-envoy 0.2.0 → 0.2.2

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.
Files changed (2) hide show
  1. package/AGENTS.md +3 -3
  2. package/package.json +6 -7
package/AGENTS.md CHANGED
@@ -13,9 +13,9 @@ It is the user-facing bridge between OpenCode sessions and Envoy transport.
13
13
  | Task | Location | Notes |
14
14
  | ------------------- | ---------------------- | ------------------------------------------------------------------ |
15
15
  | Tool definitions | `src/server.ts` | `envoy_subscribe`, `envoy_unsubscribe`, `envoy_list`, `envoy_send`, `envoy_publish`, `envoy_role_set`, `envoy_whoami`, `envoy_sessions` |
16
- | Packaging metadata | `package.json` | npm identity, build scripts |
17
- | Distribution output | `dist/server.js` | built plugin consumed by OpenCode |
18
- | Host rollout helper | `scripts/sync-host.sh` | sync dist + shim to remote host |
16
+ | Packaging metadata | `package.json` | npm identity, `exports` map, scripts |
17
+ | TUI: `/whoami` + sidebar | `src/tui.tsx` | slash command + session-id/port sidebar; loaded via the `./tui` export. Ships as `.tsx` source (no build/`dist`) — Bun transpiles it natively at load, so `@opentui/core` + `@opentui/solid` MUST be `peerDependencies` (not `devDependencies`) so the `@jsxImportSource @opentui/solid` runtime resolves in the consumer's install tree |
18
+ | Host rollout helper | `scripts/sync-host.sh` | sync packed release tarball + shim to remote host |
19
19
  | Dispatch MCP + auto-subscribe | `src/dispatch-mcp.ts`, `src/dispatch-subscribe.ts` | injects the dispatch MCP server (shim); `tool.execute.after` auto-subscribes the caller to the new thread's topic so answers route back (Dispatch AC#4) |
20
20
 
21
21
  ## Critical conventions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "src/server.ts",
6
6
  "exports": {
@@ -8,8 +8,7 @@
8
8
  "import": "./src/server.ts"
9
9
  },
10
10
  "./tui": {
11
- "import": "./dist/tui.js",
12
- "types": "./dist/tui.d.ts"
11
+ "import": "./src/tui.tsx"
13
12
  }
14
13
  },
15
14
  "repository": {
@@ -18,7 +17,6 @@
18
17
  },
19
18
  "types": "src/server.ts",
20
19
  "scripts": {
21
- "build": "bun -e 'import { createSolidTransformPlugin } from \"@opentui/solid/bun-plugin\"; const result = await Bun.build({ entrypoints: [\"src/tui.tsx\"], outdir: \"dist\", target: \"bun\", format: \"esm\", external: [\"@opencode-ai/*\", \"solid-js\", \"solid-js/*\", \"@opentui/*\"], plugins: [createSolidTransformPlugin()] }); if (!result.success) { console.error(result.logs); process.exit(1); }'",
22
20
  "typecheck": "bunx tsc --noEmit",
23
21
  "test": "bun test",
24
22
  "lint": "bunx biome check src/"
@@ -26,11 +24,12 @@
26
24
  "dependencies": {
27
25
  "@opencode-ai/plugin": "~1.14.46"
28
26
  },
27
+ "peerDependencies": {
28
+ "@opentui/core": ">=0.1.92",
29
+ "@opentui/solid": ">=0.1.92"
30
+ },
29
31
  "devDependencies": {
30
32
  "@biomejs/biome": "^2.3.14",
31
- "@opentui/core": "^0.2.6",
32
- "@opentui/keymap": "^0.2.6",
33
- "@opentui/solid": "^0.2.6",
34
33
  "@types/bun": "latest",
35
34
  "solid-js": "^1.9.0",
36
35
  "typescript": "^5.3.0"