Skip to content

add console, simulate, and agent dev commands + vendor webrtc & portaudio (#810) #809

Merged
theomonnom merged 10 commits into
mainfrom
theo/console-webrtc
May 11, 2026
Merged

add console, simulate, and agent dev commands + vendor webrtc & portaudio (#810) #809
theomonnom merged 10 commits into
mainfrom
theo/console-webrtc

Conversation

@theomonnom
Copy link
Copy Markdown
Member

No description provided.

@theomonnom theomonnom force-pushed the theo/console-webrtc branch from b977661 to 734ede1 Compare April 2, 2026 22:50
* add console, simulate, agent dev commands with TUI and protobuf IPC

* improve agent detection error messages and consistency

- Add friendly error when no agent project is detected (start/dev/console)
- Print detected language and directory to stderr for start/dev/console
- Deduplicate console detection logic to use shared detectProject()
- Add nil guard in BytesToSamples for empty data

* improve error messages, entrypoint detection, and IPC safety

- Detect project root from entrypoint directory when --entrypoint is set
- Better entrypoint-not-found error showing checked paths
- Print detected language and directory to stderr for start/dev/console
- Render CLI errors in red at the call site
- Add maxMessageSize check to IPC WriteProto

* add console build docs and PortAudio submodule check

* add blank line after user/agent messages in console TUI

* remove duplicate -lc++ linker flags, cgo handles C++ linking automatically

* fix console TUI rendering, add startup spinner and handoff support

* remove local replace directives, use published server-sdk-go

Switch to the server-sdk-go branch that exports CreateSourceTarball,
MultipartUpload, and AgentSimulationClient. Fix spinnerFrames reference
across build tags.

* update server-sdk-go to include complete AgentSimulationClient

* update server-sdk-go to merged main with SimulationAdmin grant

* Fix agent watcher exitCh race on restart

* Remove default num-simulations, let server decide

* Show 'Generating scenarios' without count when num-simulations not specified

* Improve agent simulate TUI setup and log display

* Read NumSimulations from server response

* Use larger circle icon (⏺) in TUI

* Integrate save scenario overlay, show labels in job list, fix selected row highlight

* Softer yellow, use ⏺ for pending icons

* Pad selected row to max label width for consistent highlight

* Remove q to quit, only ctrl+c exits

* CI mode, TUI improvements, log filtering, and entrypoint fix

CLI architecture:
- Non-interactive CI mode auto-detected (no TTY or CI env var)
- Shared lifecycle functions in simulate.go (no bubbletea dependency)
- simulate_ci.go: sequential runner with ::group:: output for GHA

TUI improvements:
- Detail view: unified scrollable content (instructions, transcript, logs)
- Log filtering by room name prefix (latest retry only)
- Compact chat transcript rendering
- Removed filter tabs, simplified matrix rain
- Mouse capture removed (text selection works)
- Summary unavailable message, summarizing spinner

Agent subprocess:
- Debug logging enabled, room-indexed log storage
- Per-room log filtering by prefix with latest-room tracking

Bug fix:
- Send CodeEntrypoint in ConfirmSourceUpload so the generator
  analyzes the correct file instead of the entire workspace

* Use positional arg for entrypoint instead of --entrypoint flag

* Address PR review: remove redundant flags, fix console text mode

- Remove --url, --api-key, --api-secret flags from agent run commands
  (already available as global flags)
- Fix console text mode: suppress UserInputTranscribed events in text
  mode to prevent duplicate/out-of-order user messages
- Clear partial transcript when switching to text mode mid-call

* Put start/dev/console/simulate behind console build tag, revert CI changes

- All agent subprocess commands (start, dev, console, simulate) require
  -tags console to build. Without the tag, they don't appear in lk agent.
- Revert .github/workflows/release.yaml and banner to main
- Remove .goreleaser.yaml (not on main)
- Move noAgentError to agent.go (non-tagged)
- Add init() registration for simulate command

* Add CI job for no-console, no-CGO build verification

* Remove build-binaries.yaml workflow

* Remove Homebrew formula

* Restore .goreleaser.yml

* Rename .goreleaser.yml to .goreleaser.yaml

* Remove console build section from README
@theomonnom theomonnom changed the title vendor WebRTC APM and PortAudio native sources add console, simulate, and agent dev commands + vendor webrtc & portaudio (#810) May 11, 2026
@theomonnom theomonnom force-pushed the theo/console-webrtc branch 2 times, most recently from 54c1ae4 to 1e7fa57 Compare May 11, 2026 05:47
@theomonnom theomonnom force-pushed the theo/console-webrtc branch from fc70d6a to fb010a0 Compare May 11, 2026 05:58
@theomonnom theomonnom force-pushed the theo/console-webrtc branch from 4a1a2f0 to e8c9e0a Compare May 11, 2026 06:16
@theomonnom theomonnom force-pushed the theo/console-webrtc branch from e8c9e0a to 42e9a48 Compare May 11, 2026 06:17
@theomonnom theomonnom merged commit 758e0e7 into main May 11, 2026
16 checks passed
@theomonnom theomonnom deleted the theo/console-webrtc branch May 11, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants