Merged
Conversation
Full rewrite of @agentage/cli from v0.1.19 to v0.2.0. - Daemon: Express + WebSocket server on port 4243, background process with PID file - CLI: 11 commands (run, agents, runs, machines, status, login, logout, logs, daemon stop/restart) - Discovery: markdown factory (.agent.md) + code factory (agent.ts/js) via jiti - Modernized: Vitest, ES2024, NodeNext, Node 22, Prettier - Binary renamed: agent/agentkit → agentage - Hub sync stubbed for Phase 4 - 102 tests, coverage >= 70%
- Fix race condition: buffer events per run so late WS subscribers get replayed events (200 msg cap, 60s TTL auto-cleanup) - Fix POST /api/agents/refresh to actually rescan discovery dirs - Add server.setFactories() for refresh to use correct factories - Add 20 E2E tests covering scenarios 1-9 from Phase 2 exit criteria: config creation, agent discovery from .agent.md, run execution, WebSocket streaming with replay, run lifecycle, refresh rescan, REST API contract validation, error cases - Total: 122 tests (102 unit/integration + 20 E2E)
e83be53 to
691c0ec
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@agentage/clifrom v0.1.19 → v0.2.0 — daemon + CLI in single binaryrun,agents,runs,machines,status,login,logout,logs,daemon stop/restart) via Commander.js.agent.md,SKILL.md) + code factory (agent.ts/agent.jsvia jiti)POST /api/agents/refreshnow actually rescans discovery directoriesagent/agentkit→agentagelogin/logout/machinesshow placeholder, full sync comes in Phase 4Tests
.agent.mdfiles, run execution via REST API, WebSocket streaming with event replay, run lifecycle, refresh rescan, REST API contract validationTest plan
npm run verifypasses (type-check + lint + format:check + test + build)npm pack --dry-run— only dist/, package.json, LICENSEnode dist/cli.js --version→ 0.2.0anytypes in source