opencode-usage-coach 0.13.4 → 0.13.6

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
@@ -58,19 +58,31 @@ Restart opencode — you're done. The sidebar panel appears (toggle with `Alt+H`
58
58
 
59
59
  ### Quota sensing (optional but recommended)
60
60
 
61
- The plugin works in **GO-only mode** out of the box (no quota sensing). To enable real-time quota monitoring, install [codexbar](https://github.com/nicepkg/codexbar):
61
+ The plugin works in **GO-only mode** out of the box (no quota sensing). To enable real-time quota monitoring, install [CodexBar](https://github.com/steipete/CodexBar):
62
62
 
63
63
  ```bash
64
- # macOS / Linux
65
- curl -fsSL https://raw.githubusercontent.com/nicepkg/codexbar/main/install.sh | bash
64
+ # macOS
65
+ brew install --cask codexbar
66
66
 
67
- # Then configure your provider API key:
67
+ # Linux (Homebrew)
68
+ brew install steipete/tap/codexbar
69
+
70
+ # Linux (Arch AUR)
71
+ yay -S codexbar-cli
72
+
73
+ # Or download CLI tarballs from GitHub Releases
74
+ # https://github.com/steipete/CodexBar/releases
75
+ ```
76
+
77
+ Then configure your provider API key:
78
+
79
+ ```bash
68
80
  printf '%s' "$YOUR_PROVIDER_API_KEY" | codexbar config set-api-key --provider <id> --stdin
69
81
  ```
70
82
 
71
- codexbar supports any provider with a usage API (OpenAI, Anthropic, Google, z.ai, etc.). Check `codexbar providers` for the full list.
83
+ CodexBar supports 65+ providers including z.ai, OpenAI, Claude, Cursor, Gemini, Copilot, and more. Check `codexbar config providers` for the full list.
72
84
 
73
- Without codexbar, the plugin simply doesn't sense quota — all other features (harness loop, learning, domain knowledge) work normally.
85
+ Without CodexBar, the plugin simply doesn't sense quota — all other features (harness loop, learning, domain knowledge) work normally.
74
86
 
75
87
  ## Configuration
76
88
 
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ function initDomain(stateDir) {
16
16
  if (basename(dirname(stateDir)) === "projects") {
17
17
  SHARED_DIR = join(dirname(dirname(stateDir)), "shared");
18
18
  } else {
19
- SHARED_DIR = join(stateDir, "_shared");
19
+ SHARED_DIR = join(stateDir, "shared");
20
20
  }
21
21
  }
22
22
  var nodesFile = () => join(BASE_DIR, "nodes.ndjson");
@@ -2307,6 +2307,9 @@ ${rules}
2307
2307
  ---
2308
2308
 
2309
2309
  ` + prefix;
2310
+ log(`generate domain HIT: ${nodes.length} nodes, ${edges.length} edges (kw=[${keywords.join(",")}])`);
2311
+ } else {
2312
+ log(`generate domain MISS: 0 nodes (kw=[${keywords.join(",")}])`);
2310
2313
  }
2311
2314
  }
2312
2315
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-usage-coach",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
4
4
  "description": "opencode closed-loop usage coach — quota SENSE -> coaching DECIDE -> loop ACT + TUI integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",