agent-relay-server 0.8.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +12 -14
  2. package/package.json +18 -1
  3. package/public/index.html +979 -2575
  4. package/public/manifest.webmanifest +6 -6
  5. package/public/sw.js +16 -10
  6. package/recipes/code-review.yaml +26 -0
  7. package/recipes/debug.yaml +20 -0
  8. package/recipes/feature.yaml +26 -0
  9. package/recipes/refactor.yaml +20 -0
  10. package/recipes/test.yaml +20 -0
  11. package/runner/src/adapter.ts +69 -0
  12. package/runner/src/config.ts +144 -0
  13. package/scripts/orchestrator-spawn-smoke.ts +2 -9
  14. package/src/agent-spawn.ts +2 -94
  15. package/src/automations.ts +774 -0
  16. package/src/bus-outbox.ts +75 -0
  17. package/src/bus.ts +439 -0
  18. package/src/cli.ts +251 -5
  19. package/src/commands-db.ts +160 -0
  20. package/src/config.ts +2 -1
  21. package/src/connectors.ts +29 -9
  22. package/src/daemon.ts +1 -0
  23. package/src/db.ts +363 -36
  24. package/src/events.ts +33 -0
  25. package/src/index.ts +100 -5
  26. package/src/recipe-db.ts +163 -0
  27. package/src/recipe-loader.ts +100 -0
  28. package/src/recipe-runner.ts +206 -0
  29. package/src/recipe-validator.ts +85 -0
  30. package/src/routes.ts +661 -158
  31. package/src/security.ts +128 -2
  32. package/src/sse.ts +45 -28
  33. package/src/token-db.ts +96 -0
  34. package/src/types.ts +1 -488
  35. package/src/upgrade.ts +14 -28
  36. package/public/dashboard/actions.js +0 -819
  37. package/public/dashboard/api.js +0 -336
  38. package/public/dashboard/app.js +0 -34
  39. package/public/dashboard/charts.js +0 -128
  40. package/public/dashboard/computed.js +0 -693
  41. package/public/dashboard/constants.js +0 -28
  42. package/public/dashboard/display.js +0 -345
  43. package/public/dashboard/state.js +0 -129
  44. package/public/dashboard/utils.js +0 -207
package/README.md CHANGED
@@ -426,21 +426,19 @@ public/
426
426
  ├── index.html # Dashboard markup
427
427
  └── dashboard.js # Dashboard Alpine model and behavior
428
428
 
429
- claude/ # Claude Code plugin (npm: agent-relay-plugin)
429
+ runner/ # Unified provider runner (npm: agent-relay-runner)
430
+ ├── src/index.ts # claude-relay / codex-relay entrypoint
431
+ ├── src/runner.ts # lifecycle, status, commands, claims
432
+ ├── src/adapters/ # Claude and Codex provider adapters
433
+ └── plugins/claude/ # Thin runner-owned Claude plugin
434
+
435
+ claude/ # Legacy Claude skill package (npm: agent-relay-plugin)
430
436
  ├── .claude-plugin/plugin.json
431
- ├── monitors/monitors.json # Auto-start inbox monitor
432
- └── hooks/
433
- ├── relay-monitor.sh # Register, inject context, poll
434
- ├── approval-gate.sh # PreToolUse/PermissionDenied enforcement
435
- ├── set-status.sh # Turn hooks: busy/idle status updates
436
- ├── session-end.sh # Mark agent offline
437
- └── poll-inbox.sh # Inbox poll loop
438
-
439
- codex/ # Codex integration (npm: agent-relay-codex)
440
- ├── bin/agent-relay-codex.ts # Launcher CLI (install/start/doctor)
441
- ├── live-sidecar.ts # App-server <-> relay bridge
442
- ├── hooks/session-start.ts # Starts one sidecar per launched thread
443
- └── plugin/ # Codex plugin bundle
437
+ └── skills/
438
+
439
+ codex/ # Codex compatibility package (npm: agent-relay-codex)
440
+ ├── bin/agent-relay-codex.ts # Compatibility shim to codex-relay
441
+ └── plugin/.codex-plugin/plugin.json # Deprecated plugin marker
444
442
 
445
443
  client/ # TypeScript client (npm: agent-relay-client)
446
444
  └── index.ts # RelayClient class + types
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
7
+ "workspaces": [
8
+ "sdk",
9
+ "client",
10
+ "codex",
11
+ "runner",
12
+ "orchestrator",
13
+ "claude"
14
+ ],
7
15
  "bin": {
8
16
  "agent-relay": "src/index.ts"
9
17
  },
@@ -11,15 +19,24 @@
11
19
  "src/**/*.ts",
12
20
  "!src/**/*.test.ts",
13
21
  "examples/**",
22
+ "recipes/**",
14
23
  "scripts/orchestrator-spawn-smoke.ts",
24
+ "runner/src/config.ts",
25
+ "runner/src/adapter.ts",
26
+ "!runner/**/*.test.ts",
15
27
  "public/**",
16
28
  "README.md",
17
29
  "SECURITY.md",
18
30
  "CONTRIBUTING.md"
19
31
  ],
32
+ "dependencies": {
33
+ "agent-relay-sdk": "0.2.0"
34
+ },
20
35
  "scripts": {
21
36
  "start": "bun run src/index.ts",
22
37
  "dev": "bun --watch run src/index.ts",
38
+ "dev:dashboard": "cd dashboard && npx vite",
39
+ "build:dashboard": "cd dashboard && npx vite build",
23
40
  "test": "bun test",
24
41
  "smoke:spawn": "bun run scripts/orchestrator-spawn-smoke.ts",
25
42
  "typecheck": "tsc --noEmit"