Commit Graph

38 Commits

Author SHA1 Message Date
Artur Do Lago a513cc0e34 fix: clear stale daemon socket in run scripts 2026-01-20 13:17:39 +01:00
Artur Do Lago 98208b3dfb add dev and dist run scripts 2026-01-20 13:17:39 +01:00
Artur Do Lago 78c245b905 fix: kill any daemon that started during build
Before starting daemon, now:
1. Calls daemon-stop command to cleanly stop any running daemon
2. Force kills any process on the daemon port as final measure
This handles cases where a daemon auto-starts during the build process
2026-01-20 13:12:10 +01:00
Artur Do Lago 07ec40d787 fix: handle 'Text file busy' error in reload.sh
- Delete old binary before copying to avoid file lock issues
- Add retry logic with increasing delays (up to 5 attempts)
- Add extra 2s wait after killing processes for file handles to release
2026-01-20 13:12:10 +01:00
Artur Do Lago bc6b191adf feat: enhance reload.sh with aggressive process killing and clean options
- Add --clean option: removes dist/ before rebuild
- Add --fresh option: nuclear option that clears dist/, turbo cache, node_modules cache, and reinstalls deps
- Make process killing much more aggressive:
  - Kill daemon, gateway, TUI (binary), TUI (dev), bun processes
  - Nuclear fallback: kill ANY process with 'agent-core' in command
  - Kill any process listening on daemon port
  - Show remaining processes if any survive
- Update step numbering to reflect new clean step
2026-01-20 13:12:09 +01:00
Artur Do Lago d211f20333 fix: MCP reconnection, type safety, and bug fixes
- Add MCP reconnection functionality (isHealthy, reconnect, reconnectAll, healthCheckAndReconnect)
- Add auto-reconnect on MCP tool fetch failure
- Add MCP reconnection API endpoints (/mcp/:name/reconnect, /mcp/reconnect-all, /mcp/health-check)
- Fix EventEmitter memory leak warning in GlobalBus
- Fix silent error swallowing in cache cleanup
- Fix type safety issues in processor.ts, transform.ts, prompt.ts
- Add debug status command (agent-core debug status)
- Add reload.sh script for daemon management
- Add comprehensive docs (OPS.md, BUGS.md)
- Update CLAUDE.md with ops warning
2026-01-20 13:12:09 +01:00
Artur Do Lago 5f65802558 fix: code review fixes and documentation updates
Critical fixes:
- Fix broken imports from deleted store.ts (scripts/store-ruth-memories.ts, zee-memory.ts)
- Create model-catalog.ts stub for council coordinator
- Fix council-coordinator.ts import path
- Add error handling for daemon shutdown

Reliability:
- Add tsconfig excludes for tiara dist/examples/tests
- Fix tiara swarm-coordinator null check
- Fix tiara SDK missing .js extensions

Documentation:
- Update README with personas system overview and credits
- Add package.json description

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:53:02 +01:00
Artur Do Lago 74820949d1 feat(daemon): integrate zee gateway with auto-supervision
- Remove built-in WhatsApp/Telegram gateways from agent-core
- Add GatewaySupervisor to spawn zee gateway as child process
- Auto-restart gateway on crash (up to 5 times per minute)
- Add --gateway flag to daemon command (default: true)
- Update systemd service for headless operation
- Gateway logs forwarded to agent-core journal

Messaging is now handled exclusively by external zee gateway,
keeping agent-core clean for upstream compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:51:55 +01:00
Artur Do Lago 3936b15dbf fix(naming): replace opencode with agent-core in user-facing text
- scripts/systemd/install.sh: fix help text CLI commands
- cli/cmd/pr.ts: fix spawned command and messages
- cli/error.ts: fix MCP and model error messages
- cli/cmd/uninstall.ts: also detect "# agent-core" in shell profiles

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:45:39 +01:00
Artur Do Lago 4e08a34ff1 feat(sync): complete Phase 5 upstream sync infrastructure
- Add .github/workflows/upstream-sync.yml for weekly upstream checks
  - Scheduled weekly on Mondays
  - Manual trigger with optional PR creation
  - Conflict detection in workflow summary
- Add scripts/validate-sync.sh for post-merge validation
  - Checks critical persona files exist
  - Validates agent-core naming preserved
  - Verifies persona themes registered
  - TypeScript compilation check
- Update ROADMAP.md marking Phase 5 as complete
- Remove Electron/browser extension from backlog (TUI is our desktop app)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:34:57 +01:00
Artur Do Lago 58c09c52c4 feat(sync): add upstream sync infrastructure for Phase 5
- Add scripts/check-upstream.sh for tracking upstream OpenCode releases
- Add scripts/sync-upstream.sh for merging/rebasing upstream changes
- Create patches/agent-core/ structure for documenting divergences
- Add docs/UPSTREAM-SYNC.md with comprehensive sync guide
- Update ROADMAP.md with Phase 5.1 progress and Phase 6 cross-platform plan

Currently 82 commits ahead, 23 behind upstream (sst/opencode dev branch).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:34:57 +01:00
Artur Do Lago 47d3e7ef9a feat(branding): rename package to agent-core and configure personas
- Rename packages/opencode to packages/agent-core
- Update bin entry from opencode to agent-core
- Set default_agent to "zee" for persona-first UX
- Update terminal title to show current persona name
- Fix persona colors:
  - Zee: #2563EB (blue)
  - Stanley: #059669 (emerald green)
  - Johny: #DC2626 (red)
- Update all documentation and build script references
- Update root package.json name and dev script

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 12:05:26 +01:00
Artur Do Lago 240e989e8f feat(daemon): add lifecycle hooks and WezTerm orchestration (Phase 4-5)
Phase 4: Tiara Hook Integration
- Add lifecycle hooks module (src/hooks/lifecycle.ts)
- Daemon lifecycle hooks: start, ready, shutdown
- Session lifecycle hooks: start, restore, end, transfer
- Todo lifecycle hooks: continuation, completed, blocked
- Integrate hooks with daemon startup/shutdown
- Integrate hooks with Telegram gateway for session events

Phase 5: WezTerm Visual Orchestration
- Add WezTerm orchestration module (src/orchestration/wezterm.ts)
- Display detection (X11 via DISPLAY, Wayland via WAYLAND_DISPLAY)
- Status pane showing daemon health, services, sessions
- Session pane management API (create/close/focus)
- Graceful degradation when no display available
- CLI options: --wezterm, --wezterm-layout
- Integration with lifecycle hooks for auto-updates

Also includes:
- Session persistence module (src/session/persistence.ts)
- Telegram gateway (src/gateway/telegram.ts)
- Daemon CLI command (src/cli/cmd/daemon.ts)
- Systemd service files (scripts/systemd/)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 11:54:24 +01:00
Dax Raad 49c5c2b1df ci 2026-01-02 18:56:41 -05:00
Dax 3c41e4e8f1 chore: rename repo references from sst/opencode to anomalyco/opencode (#6687)
Co-authored-by: Github Action <action@github.com>
2026-01-02 16:02:52 -05:00
Jay V cb0e05db26 docs: add auto-reload and monthly limits documentation to Zen guide 2025-12-30 12:57:58 -07:00
Dax Raad 2d9ed06367 ci: scripts 2025-07-31 01:25:24 -04:00
Dax Raad 50be2aee39 ci tweaks 2025-07-31 01:20:12 -04:00
Dax 33cef075d2 ci: new publish method (#1451) 2025-07-31 01:00:29 -04:00
Dax Raad 20bf27feda ci: tweak 2025-07-24 15:51:33 -04:00
adamdotdevin 10c8b49590 chore: generate sdk into packages/sdk 2025-07-22 11:50:51 -05:00
Dax Raad 5aafab118f wip: tui api 2025-07-22 12:15:50 -04:00
Frank 933d50e25a wip: github actions 2025-07-20 12:36:53 -04:00
Frank 0e1565449e wip: vscode extension 2025-07-20 11:33:44 -04:00
adamdotdevin 4e3c73c4f5 chore: updated stainless script 2025-07-20 05:39:18 -05:00
Frank c3c647a21a wip: github actions 2025-07-16 16:20:06 +08:00
Frank b79167ce66 sync 2025-07-16 16:12:31 +08:00
Frank 7ac0a2bc65 wip: github actions 2025-07-16 16:05:51 +08:00
adamdotdevin 2487b18f62 chore: update stainless script to kick off prod build 2025-07-15 08:15:31 -05:00
Dax Raad 22988894c8 ci: slow down stats 2025-07-10 15:31:06 -04:00
adamdottv ce4cb820f7 feat(tui): modes 2025-07-10 10:06:51 -05:00
Dax f884766445 v2 message format and upgrade to ai sdk v5 (#743)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Liang-Shih Lin <liangshihlin@proton.me>
Co-authored-by: Dominik Engelhardt <dominikengelhardt@ymail.com>
Co-authored-by: Jay V <air@live.ca>
Co-authored-by: adamdottv <2363879+adamdottv@users.noreply.github.com>
2025-07-07 15:53:43 -04:00
adamdottv 5a0910ea79 chore: better local dev with stainless script 2025-07-03 11:49:15 -05:00
Dax Raad 780419ecae ci: daily stats script 2025-06-28 21:57:46 -04:00
TheGoddessInari d0f9260559 scripts/hooks: Change shebang to universal /bin/sh (#453) 2025-06-27 07:40:22 -04:00
Dax ec001ca02f windows fixes (#374)
Co-authored-by: Matthew Glazar <strager.nds@gmail.com>
2025-06-24 18:05:04 -04:00
Dax Raad 3862184ccb hooks 2025-06-19 00:20:03 -04:00
Dax 289f6af3de CI (#43)
* sync

* ci test

* ci test

* tag

* sync

* sync

* ci

* sync

* enable cgo

* sync

* add back brew

* switch to main
2025-04-22 21:16:14 -04:00