Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.patch whitespace=-blank-at-eol
3 changes: 2 additions & 1 deletion .gitkeep
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# .gitkeep file auto-generated at 2026-06-17T15:20:23.237Z for PR creation at branch issue-39-15508d68b466 for issue https://github.com/link-assistant/agent-commander/issues/39
# .gitkeep file auto-generated at 2026-06-17T15:20:23.237Z for PR creation at branch issue-39-15508d68b466 for issue https://github.com/link-assistant/agent-commander/issues/39
# Updated: 2026-07-25T19:17:39.829Z
6 changes: 6 additions & 0 deletions js/.changeset/friendly-tuis-render.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'agent-commander': minor
---

Expose terminal artifact rendering and format options, default agent captures
to publishable 4:3 geometry, and include GIF replay fallbacks.
21 changes: 17 additions & 4 deletions js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,25 @@ const capture = await captureAgentTui({
startupInteractions: [
{ after: 'Do you trust the contents of this directory?', key: 'ENTER' },
],
cols: 100,
rows: 30,
// Defaults to an 80×30 terminal whose rendered content is 4:3.
aspectRatio: 4 / 3,
interactions: [
{ after: 'Choose an option', key: 'DOWN' },
{ after: 'Second option', key: 'ENTER' },
{ after: 'Working', resize: { cols: 120, rows: 40 } },
],
stopMarker: 'Finished',
artifactDirectory: 'artifacts/codex',
artifactOptions: {
borderRadius: 0,
cellWidth: 9,
cellHeight: 18,
fontSize: 14,
padding: 12,
background: '#111827',
foreground: '#e5e7eb',
},
artifacts: ['svg', 'gif', 'cast', 'frames', 'transcript'],
});

console.log(capture.transcript);
Expand All @@ -119,8 +129,11 @@ console.log(capture.events); // normalized message and tool_call events
The result includes command-stream's unrolled transcript, settled frames, raw
asciicast event stream, and normalized semantic events. The artifact directory
contains `transcript.txt`, `frames.json`, `session.cast`, `snapshot.svg`, and
the self-contained animated `recording.svg`. Partial artifacts are also written
when the terminal command times out.
the self-contained animated `recording.svg`, plus `recording.gif` for consumers
that cannot animate SVG. Use `artifacts` to select bundle formats and
`artifactOptions` to customize renderer geometry and theme. Explicit `cols` and
`rows` override the default geometry. Partial artifacts are also written when
the terminal command times out.

For large generated prompts, pass `promptFile` or let the controller create a temporary prompt file automatically for `claude`, `codex`, `opencode`, `agent`, `qwen`, and `gemini`:

Expand Down
Loading
Loading