@log0u7/opencode-mesh 0.4.1 → 0.5.0
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/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +0 -2
- package/dist/plugin.js.map +1 -1
- package/dist/tui.d.ts +5 -0
- package/dist/tui.d.ts.map +1 -0
- package/dist/tui.js +36 -0
- package/dist/tui.tsx +35 -0
- package/package.json +17 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.5.0] - 2026-11-05
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- TUI plugin (phase 0+1): toast, `/mesh` slash command, sidebar slot.
|
|
13
|
+
|
|
8
14
|
## [Unreleased]
|
|
9
15
|
|
|
10
16
|
## [0.4.1] - 2026-10-24
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# opencode-mesh
|
|
2
2
|
|
|
3
3
|
[](https://github.com/log0u7/opencode-mesh/actions/workflows/ci.yml)
|
|
4
|
-
[](LICENSE)
|
|
5
|
+
[](https://www.typescriptlang.org)
|
|
5
6
|
[](https://www.npmjs.com/package/@log0u7/opencode-mesh)
|
|
6
|
-
[](LICENSE)
|
|
7
|
+
[](https://www.npmjs.com/package/@log0u7/opencode-mesh)
|
|
8
8
|
|
|
9
9
|
Coordination for [OpenCode](https://opencode.ai): multiple sessions working together on one machine, and a peer pool across a LAN or a Tailscale tailnet.
|
|
10
10
|
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAWzD,OAAO,EAA2C,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKlG,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAOlD,eAAO,MAAM,sBAAsB,EAAE,eAKJ,CAAC;AAclC,eAAO,MAAM,UAAU,EAAE,MA8ExB,CAAC"}
|
package/dist/plugin.js
CHANGED
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAe,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAwB,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAqB,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAsB,MAAM,cAAc,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAA6C,MAAM,mBAAmB,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,k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M,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QACnD,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CACH,CAAC;AACJ,CAAC"}
|
package/dist/tui.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../src/tui.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/tui.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** @jsxImportSource @opentui/solid */
|
|
2
|
+
|
|
3
|
+
import { Plugin } from "@opencode/plugin/tui";
|
|
4
|
+
export default Plugin.define({
|
|
5
|
+
id: "@log0u7/opencode-mesh.tui",
|
|
6
|
+
setup(context) {
|
|
7
|
+
context.ui.toast.show({
|
|
8
|
+
message: "opencode-mesh loaded",
|
|
9
|
+
variant: "info",
|
|
10
|
+
duration: 2000
|
|
11
|
+
});
|
|
12
|
+
context.keymap.layer(() => ({
|
|
13
|
+
mode: "global",
|
|
14
|
+
commands: [{
|
|
15
|
+
id: "mesh.status",
|
|
16
|
+
title: "Mesh status",
|
|
17
|
+
group: "Mesh",
|
|
18
|
+
slash: {
|
|
19
|
+
name: "mesh"
|
|
20
|
+
},
|
|
21
|
+
palette: true,
|
|
22
|
+
run: async () => {
|
|
23
|
+
context.ui.toast.show({
|
|
24
|
+
title: "Mesh",
|
|
25
|
+
message: "Multi-session coordination available",
|
|
26
|
+
variant: "info"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}]
|
|
30
|
+
}));
|
|
31
|
+
return context.ui.slot({
|
|
32
|
+
append: "sidebar.content",
|
|
33
|
+
render: () => null
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
package/dist/tui.tsx
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** @jsxImportSource @opentui/solid */
|
|
2
|
+
|
|
3
|
+
import { Plugin } from "@opencode/plugin/tui";
|
|
4
|
+
|
|
5
|
+
export default Plugin.define({
|
|
6
|
+
id: "@log0u7/opencode-mesh.tui",
|
|
7
|
+
setup(context) {
|
|
8
|
+
context.ui.toast.show({ message: "opencode-mesh loaded", variant: "info", duration: 2000 });
|
|
9
|
+
|
|
10
|
+
context.keymap.layer(() => ({
|
|
11
|
+
mode: "global",
|
|
12
|
+
commands: [
|
|
13
|
+
{
|
|
14
|
+
id: "mesh.status",
|
|
15
|
+
title: "Mesh status",
|
|
16
|
+
group: "Mesh",
|
|
17
|
+
slash: { name: "mesh" },
|
|
18
|
+
palette: true,
|
|
19
|
+
run: async () => {
|
|
20
|
+
context.ui.toast.show({
|
|
21
|
+
title: "Mesh",
|
|
22
|
+
message: "Multi-session coordination available",
|
|
23
|
+
variant: "info",
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
return context.ui.slot({
|
|
31
|
+
append: "sidebar.content",
|
|
32
|
+
render: () => null,
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@log0u7/opencode-mesh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Multi-session coordination for OpenCode: session coordination on one machine and a peer pool across LAN or Tailscale, with pairing, mailbox, and worktree locks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -18,11 +18,22 @@
|
|
|
18
18
|
"./server": {
|
|
19
19
|
"types": "./dist/index.d.ts",
|
|
20
20
|
"default": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./tui": {
|
|
23
|
+
"types": "./dist/tui.d.ts",
|
|
24
|
+
"default": "./dist/tui.js"
|
|
21
25
|
}
|
|
22
26
|
},
|
|
23
27
|
"oc-plugin": [
|
|
24
|
-
"server"
|
|
28
|
+
"server",
|
|
29
|
+
"tui"
|
|
25
30
|
],
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@opencode-ai/plugin": ">=2.0.0",
|
|
33
|
+
"@opentui/core": ">=0.5.0",
|
|
34
|
+
"@opentui/solid": ">=0.5.0",
|
|
35
|
+
"solid-js": ">=1.9.0"
|
|
36
|
+
},
|
|
26
37
|
"files": [
|
|
27
38
|
"dist",
|
|
28
39
|
"README.md",
|
|
@@ -36,7 +47,10 @@
|
|
|
36
47
|
"bonjour-service": "^1.3.0"
|
|
37
48
|
},
|
|
38
49
|
"devDependencies": {
|
|
50
|
+
"@babel/core": "^7.28.0",
|
|
51
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
39
52
|
"@biomejs/biome": "2.5.15",
|
|
53
|
+
"babel-preset-solid": "^1.9.12",
|
|
40
54
|
"@opencode-ai/plugin": "1.18.35",
|
|
41
55
|
"@opencode-ai/sdk": "1.18.35",
|
|
42
56
|
"@opencode/plugin": "2.0.26",
|
|
@@ -47,7 +61,7 @@
|
|
|
47
61
|
"vitest": "^5.0.0"
|
|
48
62
|
},
|
|
49
63
|
"scripts": {
|
|
50
|
-
"build": "tsc -p tsconfig.json",
|
|
64
|
+
"build": "tsc -p tsconfig.json && node scripts/prepare-tui-dist.mjs",
|
|
51
65
|
"build:check": "pnpm run build && pnpm pack --dry-run",
|
|
52
66
|
"check": "biome check .",
|
|
53
67
|
"format": "biome format --write .",
|