Commit Graph

4231 Commits

Author SHA1 Message Date
Peter Steinberger
d19992d328 style: format cli files 2026-01-09 15:34:41 +01:00
Peter Steinberger
1ab7066c67 fix: sanitize Windows test output 2026-01-09 15:32:55 +01:00
Peter Steinberger
18d0640b3e fix: restore openUrl import 2026-01-09 15:32:55 +01:00
Peter Steinberger
0383a6cf36 fix: unblock CI on main (#569) (thanks @bjesuiter) 2026-01-09 15:32:55 +01:00
Peter Steinberger
7eba5be1f3 fix: land #569 (thanks @bjesuiter) 2026-01-09 15:32:55 +01:00
Benjamin Jesuiter
6d73ffa229 fix(ui): default to relative paths for control UI assets
Changes the default base path from "/" to "./" so the control UI works
correctly when served under a custom basePath (e.g., /jbclawd/).

Previously, assets were referenced with absolute paths like /assets/...,
which failed when the UI was served under a subpath. With relative paths
(./assets/...), the browser resolves them relative to the HTML location,
making the UI work regardless of the configured basePath.
2026-01-09 15:32:55 +01:00
Peter Steinberger
e9c4e4c22f Merge pull request #575 from clawdbot/blacksmith-migration-8b9ed6d 2026-01-09 14:31:53 +00:00
Peter Steinberger
8376509eec docs: emphasize setup-token 2026-01-09 15:29:50 +01:00
Peter Steinberger
0f17c2af94 docs: prefer setup-token for Anthropic 2026-01-09 15:27:49 +01:00
Peter Steinberger
55f01a0491 fix: honor gateway --dev flag 2026-01-09 15:25:51 +01:00
Peter Steinberger
f061e79a26 test: stabilize sandbox/doctor tests 2026-01-09 15:17:20 +01:00
Peter Steinberger
76ddaa9cc5 fix: remove configure control-ui prompt 2026-01-09 15:17:20 +01:00
Peter Steinberger
b727a4564e fix: reset dev gateway setup 2026-01-09 15:17:20 +01:00
Peter Steinberger
6ee0343b00 feat(models): add per-agent auth order overrides 2026-01-09 14:07:45 +00:00
blacksmith-sh[bot]
f59912d024 Migrate workflows to Blacksmith 2026-01-09 14:06:46 +00:00
Peter Steinberger
8b9ed6df62 fix(discovery): decode dns-sd escaped UTF-8 2026-01-09 14:56:01 +01:00
Peter Steinberger
67622b2867 style(gateway): multiline discovery output 2026-01-09 14:43:46 +01:00
Peter Steinberger
b4fd838bf7 fix(onboarding): remove redundant model spread fallback 2026-01-09 14:16:37 +01:00
Peter Steinberger
379325bdab fix(config): align agents defaults schema 2026-01-09 14:13:52 +01:00
Peter Steinberger
57d4168b42 Merge pull request #572 from ngutman/fix/mac-node-bridge-ping
fix(macos): add node bridge ping loop (AI-assisted)
2026-01-09 13:03:03 +00:00
Peter Steinberger
68d4777eef fix: land mac node bridge ping loop (#572) (thanks @ngutman) 2026-01-09 14:01:20 +01:00
Peter Steinberger
b23cf48ea1 style(telegram): format bot init 2026-01-09 13:57:06 +01:00
Peter Steinberger
aa53365bdf fix(onboarding): remove duplicate minimax constants 2026-01-09 13:56:16 +01:00
Peter Steinberger
05c4bd0fc9 fix(discovery): silence oxlint warning 2026-01-09 13:55:28 +01:00
Peter Steinberger
4a5ca5a45a docs(cli): fix sandbox links 2026-01-09 13:55:28 +01:00
Peter Steinberger
36e23bd2d5 style: format gateway discovery 2026-01-09 13:55:28 +01:00
Peter Steinberger
bb583d1c74 fix(gateway): fix wide-area discovery update 2026-01-09 13:55:27 +01:00
Peter Steinberger
ba1dd5626f fix: normalize routed replies 2026-01-09 13:55:27 +01:00
Peter Steinberger
77cc32cd4a style: format onboard providers 2026-01-09 13:54:53 +01:00
Peter Steinberger
93a9d3f719 feat(gateway): improve wide-area discovery 2026-01-09 13:54:53 +01:00
Nimrod Gutman
7821867e71 fix(macos): add node bridge ping loop 2026-01-09 13:50:38 +01:00
Peter Steinberger
947844117c feat: wire multi-agent config and routing
Co-authored-by: Mark Pors <1078320+pors@users.noreply.github.com>
2026-01-09 12:48:42 +00:00
Peter Steinberger
9efa1da4b1 feat: migrate agent config to multi-agent layout 2026-01-09 12:44:29 +00:00
Peter Steinberger
0e6067928e fix: respect auth cooldown with auth.order 2026-01-09 12:44:29 +00:00
Peter Steinberger
1fdf520d9d Merge pull request #495 from tobiasbischoff/main
Onboarding: add hosted MiniMax M2.1 API key option
2026-01-09 12:43:00 +00:00
Peter Steinberger
bd57e416f7 Merge branch 'main' into tobias-sync 2026-01-09 13:42:34 +01:00
Peter Steinberger
04fde4fcb1 fix: add hosted minimax onboarding (#495, thanks @tobiasbischoff) 2026-01-09 13:40:01 +01:00
Tobias Bischoff
51d3ec432a Telegram: cast fetch to grammy client type 2026-01-09 13:39:28 +01:00
Tobias Bischoff
89ff9aa65a Onboarding: add MiniMax hosted API key option 2026-01-09 13:39:28 +01:00
Josh Palmer
9d56b06c98 Adjust UI install for offline pnpm fetch (#568)
* 🤖 codex: make ui build install prod deps for offline pnpm (issue-pnpm-offline)

* 🤖 codex: ensure ui:test installs dev deps (issue-pnpm-offline)
2026-01-09 13:38:46 +01:00
Peter Steinberger
73c84a1e0f chore: update dev identity default 2026-01-09 13:34:45 +01:00
Peter Steinberger
fbb596e2df fix: clarify WhatsApp owner number prompts 2026-01-09 13:32:52 +01:00
Peter Steinberger
f39fe35222 fix(sandbox): compare list to config images (#563) - thanks @pasogott 2026-01-09 13:29:47 +01:00
sheeek
259a055440 test(sandbox): add unit tests for formatter functions
Add comprehensive tests for sandbox-formatters.ts (20 tests):
- formatStatus: running/stopped with emojis
- formatSimpleStatus: running/stopped without emojis
- formatImageMatch: match/mismatch indicators
- formatAge: seconds, minutes, hours, days with edge cases
- countRunning: count items by running state
- countMismatches: count items by image mismatch

All pure functions now covered. 152 LOC tests added.

Total test count: 39 tests (19 integration + 20 unit)
Test coverage increased from ~66% to ~80%.
2026-01-09 13:23:16 +01:00
sheeek
eb86476b22 style(sandbox): fix linting errors
- Remove unused normalizeOptions function
- Fix line length violations (format long lines)
- Fix import order (alphabetical)
- Format function signatures for readability

All lint checks now passing.
2026-01-09 13:23:16 +01:00
sheeek
089d93a44b refactor(sandbox-cli): improve structure and reduce duplication
Improvements:
- Extract help text examples into EXAMPLES constant object
- Add createRunner() helper to reduce try-catch boilerplate
- Add normalizeOptions() helper (prepared for future use)
- Fix command names from 'clawd' to 'clawdbot' throughout
- Update main sandbox command to show help by default
- Better organize code with clear section comments

Increases from 82 to 137 LOC but with much better organization
and reduced duplication in error handling.
2026-01-09 13:23:16 +01:00
sheeek
98026796f0 refactor(sandbox): use extracted display and formatter modules
Update sandbox.ts to import and use functions from:
- sandbox-display.ts for all UI output
- sandbox-formatters.ts for data formatting

Removes 141 LOC of display/formatting code from sandbox.ts,
reducing it from 351 to 210 LOC (-40%).

Core business logic now clearer and more focused.
2026-01-09 13:23:16 +01:00
sheeek
067816c6f3 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
6bd80eccdd 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
eb338eaf0a docs(sandbox): fix command name from clawd to clawdbot
Update all command examples in documentation to use 'clawdbot' instead
of 'clawd' for consistency with actual CLI command name.
2026-01-09 13:23:16 +01:00