opencode-skill-audit-tui 0.4.3 → 0.4.4

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
@@ -72,12 +72,12 @@ Windows: the plugin path is XDG-style on **every** platform —
72
72
  Two details that are easy to get wrong:
73
73
 
74
74
  -- The shim must be named `tui.*` and sit at the **root** of the plugin
75
- folder — OpenCode discovers the directory plugin from that filename. A
76
- folder holding `tui.js` inside a `dist/` subfolder is silently **not**
77
- loaded, with no error anywhere.
75
+ folder — OpenCode discovers the directory plugin from that filename. A
76
+ folder holding `tui.js` inside a `dist/` subfolder is silently **not**
77
+ loaded, with no error anywhere.
78
78
  -- Do not put a `package.json` in the plugin folder. It is inert there and the
79
- path never appears in the log; the manifest only matters for the npm
80
- package.
79
+ path never appears in the log; the manifest only matters for the npm
80
+ package.
81
81
 
82
82
  Confirm it was picked up:
83
83
 
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import { Plugin } from "@opencode/plugin";
2
+ /**
3
+ * Server-runtime entry. This plugin is TUI-only: the footer and commands
4
+ * live in the "./tui" export. The root exists so the server runtime loads
5
+ * something valid instead of TUI code it cannot run.
6
+ */
7
+ export default Plugin.define({
8
+ id: "skill-audit",
9
+ setup() { },
10
+ });
package/dist/tui.js CHANGED
@@ -48,6 +48,8 @@ const COL_SHARE = 8;
48
48
  export default Plugin.define({
49
49
  id: "skill-audit",
50
50
  setup(context) {
51
+ if (!context.keymap)
52
+ return; // not the TUI runtime - nothing to do here
51
53
  const muted = () => context.theme?.text?.muted ?? context.theme?.text?.base;
52
54
  const alert = () => context.theme?.warning ?? context.theme?.error ?? context.theme?.text?.feedback;
53
55
  const read = () => {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "opencode-skill-audit-tui",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "OpenCode v2 TUI plugin: context occupancy and loaded-skill accounting in the footer",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/zademy/opencode-skill-audit.git"
9
9
  },
10
- "main": "./dist/tui.js",
10
+ "main": "./dist/index.js",
11
11
  "exports": {
12
- ".": "./dist/tui.js",
12
+ ".": "./dist/index.js",
13
13
  "./tui": "./dist/tui.js"
14
14
  },
15
15
  "files": [
@@ -32,7 +32,7 @@
32
32
  "solid-js": "1.9.12"
33
33
  },
34
34
  "devDependencies": {
35
- "@opencode/plugin": "2.0.26",
35
+ "@opencode/plugin": "^2.0.32",
36
36
  "@opentui/core": "0.6.0",
37
37
  "@opentui/solid": "0.6.0",
38
38
  "@types/node": "^24.0.0",