sheeek
81c55be19b
refactor(sandbox): extract display logic into separate module
...
Move all display functions to sandbox-display.ts:
- displayContainers, displayBrowsers with generic displayItems helper
- displaySummary with image mismatch warnings
- displayRecreatePreview, displayRecreateResult
Uses DisplayConfig pattern to reduce duplication between container
and browser display logic. 156 LOC.
2026-01-09 13:23:16 +01:00
sheeek
dd0104290e
refactor(sandbox): extract formatters into separate module
...
Move formatting utilities to sandbox-formatters.ts:
- formatStatus, formatSimpleStatus, formatImageMatch, formatAge
- countRunning, countMismatches helper functions
- ContainerItem type definition
Improves modularity and reusability. 49 LOC.
2026-01-09 13:23:16 +01:00
sheeek
c3932c8508
test(sandbox): add comprehensive test suite for CLI commands
...
Add 19 tests covering sandboxListCommand and sandboxRecreateCommand:
- List command: human/JSON output, browser flag, error handling
- Recreate command: validation, filtering (session/agent), confirmation flow
- Factory functions (createContainer, createBrowser) reduce duplication
- Helper functions (expectLogContains, setupDefaultMocks) improve readability
All tests passing. 365 LOC with ~66% production code coverage.
2026-01-09 13:23:16 +01:00
sheeek
00b77421dd
refactor: improve sandbox commands code structure
...
Improvements:
- Extract validation into separate function
- Split display logic from business logic
- Create reusable container matcher for agent filtering
- Abstract status/image formatting into helpers
- Reduce code duplication between containers and browsers
- Extract container removal into generic function
- Add type safety with FilteredContainers type
- Improve readability with smaller, focused functions
Changes:
- validateRecreateOptions(): Validate mutual exclusivity
- fetchAndFilterContainers(): Fetch + filter in one place
- createAgentMatcher(): Reusable agent filter predicate
- displayContainers/Browsers(): Dedicated display functions
- displaySummary/RecreatePreview/Result(): Clear separation
- removeContainer(): Generic removal with error handling
- Format helpers: formatStatus, formatImageMatch, etc.
- Count helpers: countRunning, countMismatches
Result: 85 more lines but much better maintainability and testability.
2026-01-09 13:23:16 +01:00
sheeek
5e78d5a21f
feat: add sandbox CLI commands for container management
...
Add 'clawd sandbox list' and 'clawd sandbox recreate' commands to manage
sandbox containers. This fixes the issue where containers continue using
old images/configs after updates.
Problem:
- When sandbox Docker images or configs are updated, existing containers
keep running with old settings
- Containers are only recreated after 24h inactivity (pruning)
- If agents are used regularly, old containers run indefinitely
Solution:
- 'clawd sandbox list': Show all containers with status, age, and image match
- 'clawd sandbox recreate': Force container removal (recreated on next use)
- Supports --all, --session, --agent, --browser filters
- Requires confirmation unless --force is used
Implementation:
- Added helper functions to sandbox.ts (list/remove containers)
- Created sandbox-cli.ts following existing CLI patterns
- Created commands/sandbox.ts with list and recreate logic
- Integrated into program.ts
Use case: After updating sandbox images or changing sandbox config,
run 'clawd sandbox recreate --all' to ensure fresh containers.
2026-01-09 13:22:51 +01:00
Peter Steinberger
475d598ecb
fix: normalize poll providers and msteams deps
2026-01-09 11:07:32 +01:00
Peter Steinberger
e55358c65d
feat: finalize msteams polls + outbound parity
2026-01-09 11:07:32 +01:00
Onur
7f326ae4ae
fix: sync doctor-prompter.ts with main
2026-01-09 11:07:17 +01:00
Onur
13b47e6047
fix(doctor): restore initialValue behavior in non-interactive mode
...
The repair/force commit added an early return that broke non-interactive
mode - migrations would return false instead of using initialValue.
2026-01-09 11:07:01 +01:00
Peter Steinberger
d258c68ca1
feat: add gateway dev config options
2026-01-09 10:39:00 +01:00
Peter Steinberger
0c167e85af
style: sort configure imports
2026-01-09 10:03:52 +01:00
Peter Steinberger
827e68eadd
feat: improve auth setup flows
2026-01-09 09:59:58 +01:00
Peter Steinberger
5b50c97939
feat(cli): improve gateway status output
2026-01-09 09:27:42 +01:00
Peter Steinberger
89132fdd25
chore(lint): biome import order
2026-01-09 09:27:42 +01:00
Peter Steinberger
8d67bd2889
feat: apply lobster palette to prompts
2026-01-09 09:05:24 +01:00
Peter Steinberger
721183e259
feat: unify message cli and tools
2026-01-09 08:30:24 +01:00
Peter Steinberger
77d4bb8dfe
feat: update token auth flow
2026-01-09 08:13:05 +01:00
Peter Steinberger
a4d6638f89
fix: import outbound delivery types
2026-01-09 08:13:04 +01:00
Peter Steinberger
c32e3c467d
fix: map CLI deps for outbound sends
2026-01-09 08:13:04 +01:00
Peter Steinberger
185727c696
style: fix lint formatting
2026-01-09 08:13:04 +01:00
Peter Steinberger
37cbcc97d3
feat: support token auth profiles
2026-01-09 08:13:04 +01:00
Peter Steinberger
eced473e05
feat: add models auth commands
2026-01-09 08:13:04 +01:00
Peter Steinberger
2062165cd3
chore: add configure section hints
2026-01-09 08:13:04 +01:00
Shadow
95c2ccbd7b
fix: remove incorrect discord limited warning
2026-01-08 23:59:40 -06:00
Peter Steinberger
db22207014
feat: add message tool and CLI
2026-01-09 06:44:20 +01:00
Peter Steinberger
48a1b07097
fix: promote selected auth profile order
2026-01-09 05:36:14 +00:00
Peter Steinberger
9114331218
fix: serialize claude cli runs
2026-01-09 04:58:21 +00:00
Peter Steinberger
64fc5fa9fc
fix: allow default model outside allowlist
2026-01-09 04:18:30 +00:00
Peter Steinberger
9a8fe4d683
feat(agent): add claude cli runner
2026-01-09 04:52:37 +01:00
Peter Steinberger
8a3e100ad1
test: update google-shared expectations
2026-01-09 03:04:16 +01:00
Peter Steinberger
efa5f0bfe0
feat: improve logs output and docs
2026-01-09 02:51:17 +01:00
Peter Steinberger
e1789ba9e5
fix: set gemini default model for api-key auth ( #489 ) - thanks @jonasjancarik
2026-01-09 02:49:42 +01:00
Jonáš Jančařík
302d51fd40
feat: add Gemini API key onboarding
2026-01-09 02:45:15 +01:00
Peter Steinberger
948ce5eb5f
feat(models): add oauth auth health
2026-01-09 00:34:38 +00:00
Peter Steinberger
4e92ccc0dd
style: format
2026-01-09 00:33:09 +01:00
Peter Steinberger
561fa99d95
feat(providers): show status spinner message
2026-01-08 23:30:38 +00:00
Peter Steinberger
69f8af530d
feat(providers): improve doctor + status probes
2026-01-08 23:48:37 +01:00
Peter Steinberger
2f1ce51b2c
test: stabilize doctor + bash tool tests
2026-01-08 23:44:54 +01:00
Peter Steinberger
ed80860c34
chore(format): apply biome fixes
2026-01-08 22:22:17 +00:00
Peter Steinberger
1f215848be
chore(test): align auth choice options formatting
2026-01-08 23:18:33 +01:00
Peter Steinberger
b01d7e39d5
fix(onboarding): preflight claude cli keychain
2026-01-08 23:18:33 +01:00
Peter Steinberger
1cf8503017
fix(daemon): audit runtime best practices
2026-01-08 22:18:07 +00:00
Peter Steinberger
cd2f3bd355
feat(status): add Telegram/WhatsApp troubleshooting warnings
2026-01-08 23:14:11 +01:00
Peter Steinberger
7392387ec1
feat(status): warn on Discord message content intent
2026-01-08 23:07:34 +01:00
Peter Steinberger
9a1267b530
fix(doctor): run legacy migrations in non-interactive
2026-01-08 21:37:22 +00:00
Peter Steinberger
35ba99c245
fix: honor non-interactive legacy migrations
2026-01-08 22:13:57 +01:00
Peter Steinberger
884e734809
feat(doctor): audit config + state permissions
2026-01-08 21:51:34 +01:00
Peter Steinberger
2d4ec35e1c
feat(doctor): add repair/force flows
2026-01-08 21:47:35 +01:00
Peter Steinberger
ea748f9440
fix(doctor): handle missing service readCommand
2026-01-08 21:38:51 +01:00
Peter Steinberger
01641b34ea
feat(doctor): audit supervisor config + docs
2026-01-08 21:28:48 +01:00