@superbased/observer 1.4.8 → 1.4.10

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/README.md +8 -5
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -113,16 +113,19 @@ env var that matches your client(s); both can coexist on one machine.
113
113
  | **Cursor** (OpenAI mode) | `OPENAI_BASE_URL=http://127.0.0.1:8820/v1` | proxy + JSONL |
114
114
  | **Cline / Roo Code** | `ANTHROPIC_BASE_URL=...` or `OPENAI_BASE_URL=...` per provider | proxy + JSONL |
115
115
  | **GitHub Copilot** | (no proxy yet) | JSONL only |
116
- | **OpenCode** ([opencode.ai](https://opencode.ai/)) | (no proxy yet) | SQLite — `~/.opencode/opencode.db`. Captures **token counts + model + cost** per assistant message from OpenCode's own InfoData (`tokens.input/output/reasoning/cache.{read,write}` + `cost`). Tagged `Source=jsonl, Reliability=approximate`. |
116
+ | **OpenCode** ([opencode.ai](https://opencode.ai/)) | (no proxy yet) | SQLite — actual install path is `~/.local/share/opencode/opencode.db` (XDG). Captures **token counts + model + cost** per assistant message from OpenCode's InfoData (`tokens.input/output/reasoning/cache.{read,write}` + `cost`); **subtask** parts → `spawn_subagent` actions; **todo** table → `todo_update` actions; tool-name coverage extended to webfetch/websearch/task/todowrite/todoread/multiedit. Tagged `Source=jsonl, Reliability=approximate`. |
117
117
  | **OpenClaw** ([openclaw.ai](https://openclaw.ai/)) | (no proxy yet) | JSONL + sqlite — `~/.openclaw/tasks/runs.sqlite` + `~/.openclaw/agents/<agent>/sessions/sessions.json` |
118
- | **Pi** ([pi.dev](https://pi.dev/)) | (no proxy yet) | JSONL only — `~/.pi/agent/sessions/*.jsonl` |
118
+ | **Pi** ([pi.dev](https://pi.dev/)) | (no proxy yet) | JSONL — `~/.pi/agent/sessions/--<path>--/*.jsonl` (per upstream `docs/session-format.md` v3). Captures user / assistant / toolResult / `bashExecution` message roles; `usage.cost.total` → per-message USD; terminal `stopReason` (stop/length/error/aborted) → `task_complete` with `success=false` for failures (mid-turn `toolUse` is correctly skipped); `thinking` blocks surface as preceding reasoning. Tagged `Source=jsonl, Reliability=approximate`. |
119
119
 
120
120
  **JSONL-only** clients are captured passively by the watcher (always-on,
121
121
  no setup beyond `observer init`). You won't see real-time cost numbers
122
122
  for them on the Compression tab (those need the proxy), but every tool
123
123
  call shows up on Sessions / Actions / Discovery / Tools / Patterns and
124
- the JSONL-derived token counts feed the Cost tab with `Source=jsonl`
125
- + `Reliability=unreliable` tags.
124
+ the JSONL-derived token counts feed the Cost tab. Reliability tagging
125
+ is per-adapter: Claude Code emits `unreliable` (the JSONL stream uses
126
+ streaming-time placeholder counts per spec §24); Codex / Cline / Pi /
127
+ OpenCode / OpenClaw emit `approximate` (provider-reported usage that
128
+ hasn't been reconciled against an upstream invoice).
126
129
 
127
130
  ### Persistent setups
128
131
 
@@ -592,7 +595,7 @@ Every command supports `--help` for the full surface.
592
595
  |------------------------------------|---------|
593
596
  | `observer init` | Register hooks + MCP server with installed AI clients |
594
597
  | `observer uninstall` | Reverse `observer init` |
595
- | `observer start` | Run watcher + dashboard + proxy in one process (recommended) |
598
+ | `observer start` | Run watcher + dashboard + proxy in one process (recommended). Flags: `--dashboard-addr ADDR` (default `127.0.0.1:8081`), `--no-dashboard` to skip the HTTP UI. |
596
599
  | `observer watch` | Long-running JSONL watcher only |
597
600
  | `observer dashboard --addr ADDR` | HTTP dashboard only |
598
601
  | `observer proxy start` | Reverse proxy only |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superbased/observer",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "SuperBased Observer — capture, normalize, compress, and analyze AI coding tool activity across Claude Code, Codex, Cursor, Cline/Roo, and Copilot.",
5
5
  "keywords": [
6
6
  "ai",
@@ -36,11 +36,11 @@
36
36
  "LICENSE"
37
37
  ],
38
38
  "optionalDependencies": {
39
- "@superbased/observer-linux-x64": "1.4.8",
40
- "@superbased/observer-linux-arm64": "1.4.8",
41
- "@superbased/observer-darwin-x64": "1.4.8",
42
- "@superbased/observer-darwin-arm64": "1.4.8",
43
- "@superbased/observer-win32-x64": "1.4.8"
39
+ "@superbased/observer-linux-x64": "1.4.10",
40
+ "@superbased/observer-linux-arm64": "1.4.10",
41
+ "@superbased/observer-darwin-x64": "1.4.10",
42
+ "@superbased/observer-darwin-arm64": "1.4.10",
43
+ "@superbased/observer-win32-x64": "1.4.10"
44
44
  },
45
45
  "scripts": {
46
46
  "test": "node bin/observer.js --version"