@codexview/react 0.1.4 → 0.2.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/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # codexview
1
+ # @codexview/react
2
2
 
3
3
  React components for rendering AI coding agent transcripts. The library consumes a normalized `ChatStreamEvent` stream and is host-agnostic — any source that produces compatible events renders identically.
4
4
 
5
- Reference adapters for several real-world agent log formats live in [`playground/adapter.mjs`](playground/adapter.mjs); see [Supported sources](#supported-sources) below.
5
+ For raw-log `ChatStreamEvent[]` conversion, install the companion [`@codexview/adapters`](https://www.npmjs.com/package/@codexview/adapters) package or write your own adapter.
6
6
 
7
7
  ## Install
8
8
 
@@ -37,17 +37,15 @@ export function App() {
37
37
 
38
38
  `events` is a plain array. Append new events as they arrive (typically via SSE) and pass the same array reference back; CodexView reduces incrementally.
39
39
 
40
- ## Supported sources
40
+ ## Supported source formats
41
41
 
42
- CodexView itself only renders `ChatStreamEvent[]`. Hosts convert their raw logs to that shape — either inline or by reusing the reference adapters in [`playground/adapter.mjs`](playground/adapter.mjs):
42
+ CodexView itself only renders `ChatStreamEvent[]`. Hosts convert their raw logs to that shape — either inline or with [`@codexview/adapters`](https://www.npmjs.com/package/@codexview/adapters):
43
43
 
44
44
  - ✅ **OpenAI Codex CLI** rollouts (`~/.codex/sessions/.../rollout-*.jsonl`)
45
45
  - ✅ **AgentWeb codex-team** status logs (`~/Projects/agentweb/.codex-team/runs/*/events.jsonl`)
46
- - ✅ **Claude Code** main sessions (`~/.claude/projects/<repo>/<sessionId>.jsonl`) — Bash / TodoWrite / Edit / Write / MultiEdit / `mcp__*` / `Agent` tools; subagent transcripts are loaded from the `subagents/` subfolder and embedded as a Markdown summary under each `Agent` tool call
46
+ - ✅ **Claude Code** main sessions (`~/.claude/projects/<repo>/<sessionId>.jsonl`) — Bash / TodoWrite / Edit / Write / MultiEdit / `mcp__*` / `Agent` tools; subagent transcripts can be embedded under each `Agent` tool call (pass `subagents` to `adapt()`).
47
47
  - 🔲 **OpenCode** — planned
48
48
 
49
- These adapters are not published as part of `@codexview/react` yet. To try them locally, clone the repo and run `pnpm playground` — it scans your home directory for sessions across all three supported formats.
50
-
51
49
  ## Status
52
50
 
53
51
  Session-level status (`idle | working | completed | stopped | failed`) is inferred automatically. Override via the `status` prop (e.g. when SSE drops, set `status="stopped"`).