Initial commit

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-11 23:08:05 -04:00
commit be7c525063
13 changed files with 2436 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
/**
* Self-contained stdout parser for OpenCode JSONL output.
* Zero external imports — required by the Paperclip adapter plugin UI parser contract.
*/
type TranscriptEntry =
| { kind: "stdout"; ts: string; text: string }
| { kind: "stderr"; ts: string; text: string }
| { kind: "system"; ts: string; text: string };
export function parseStdoutLine(line: string, ts: string): TranscriptEntry[] {
return [{ kind: "stdout", ts, text: line }];
}