agent-relay 2.0.12 → 2.0.14
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.
- package/bin/relay-pty-darwin-arm64 +0 -0
- package/bin/relay-pty-darwin-x64 +0 -0
- package/bin/relay-pty-linux-x64 +0 -0
- package/deploy/workspace/codex.config.toml +5 -0
- package/deploy/workspace/entrypoint.sh +10 -2
- package/dist/dashboard/out/404.html +1 -1
- package/dist/dashboard/out/app/onboarding.html +1 -1
- package/dist/dashboard/out/app/onboarding.txt +1 -1
- package/dist/dashboard/out/app.html +1 -1
- package/dist/dashboard/out/app.txt +1 -1
- package/dist/dashboard/out/cloud/link.html +1 -1
- package/dist/dashboard/out/cloud/link.txt +1 -1
- package/dist/dashboard/out/connect-repos.html +1 -1
- package/dist/dashboard/out/connect-repos.txt +1 -1
- package/dist/dashboard/out/history.html +1 -1
- package/dist/dashboard/out/history.txt +1 -1
- package/dist/dashboard/out/index.html +1 -1
- package/dist/dashboard/out/index.txt +1 -1
- package/dist/dashboard/out/login.html +1 -1
- package/dist/dashboard/out/login.txt +1 -1
- package/dist/dashboard/out/metrics.html +1 -1
- package/dist/dashboard/out/metrics.txt +1 -1
- package/dist/dashboard/out/pricing.html +1 -1
- package/dist/dashboard/out/pricing.txt +1 -1
- package/dist/dashboard/out/providers/setup/claude.html +1 -1
- package/dist/dashboard/out/providers/setup/claude.txt +1 -1
- package/dist/dashboard/out/providers/setup/codex.html +1 -1
- package/dist/dashboard/out/providers/setup/codex.txt +1 -1
- package/dist/dashboard/out/providers/setup/cursor.html +1 -1
- package/dist/dashboard/out/providers/setup/cursor.txt +1 -1
- package/dist/dashboard/out/providers.html +1 -1
- package/dist/dashboard/out/providers.txt +1 -1
- package/dist/dashboard/out/signup.html +1 -1
- package/dist/dashboard/out/signup.txt +1 -1
- package/dist/src/cli/index.js +131 -21
- package/package.json +20 -19
- package/packages/api-types/package.json +1 -1
- package/packages/bridge/dist/index.d.ts +1 -1
- package/packages/bridge/dist/index.js +1 -1
- package/packages/bridge/dist/spawner.d.ts +18 -0
- package/packages/bridge/dist/spawner.js +144 -39
- package/packages/bridge/package.json +8 -7
- package/packages/cloud/package.json +6 -6
- package/packages/config/package.json +2 -2
- package/packages/continuity/package.json +1 -1
- package/packages/daemon/dist/connection.js +5 -1
- package/packages/daemon/dist/relay-ledger.d.ts +3 -1
- package/packages/daemon/dist/relay-ledger.js +8 -2
- package/packages/daemon/dist/router.js +13 -0
- package/packages/daemon/dist/server.d.ts +7 -0
- package/packages/daemon/dist/server.js +338 -4
- package/packages/daemon/package.json +12 -12
- package/packages/dashboard/dist/server.js +29 -5
- package/packages/dashboard/package.json +13 -12
- package/packages/dashboard/ui-dist/404.html +1 -1
- package/packages/dashboard/ui-dist/app/onboarding.html +1 -1
- package/packages/dashboard/ui-dist/app/onboarding.txt +1 -1
- package/packages/dashboard/ui-dist/app.html +1 -1
- package/packages/dashboard/ui-dist/app.txt +1 -1
- package/packages/dashboard/ui-dist/cloud/link.html +1 -1
- package/packages/dashboard/ui-dist/cloud/link.txt +1 -1
- package/packages/dashboard/ui-dist/connect-repos.html +1 -1
- package/packages/dashboard/ui-dist/connect-repos.txt +1 -1
- package/packages/dashboard/ui-dist/history.html +1 -1
- package/packages/dashboard/ui-dist/history.txt +1 -1
- package/packages/dashboard/ui-dist/index.html +1 -1
- package/packages/dashboard/ui-dist/index.txt +1 -1
- package/packages/dashboard/ui-dist/login.html +1 -1
- package/packages/dashboard/ui-dist/login.txt +1 -1
- package/packages/dashboard/ui-dist/metrics.html +1 -1
- package/packages/dashboard/ui-dist/metrics.txt +1 -1
- package/packages/dashboard/ui-dist/pricing.html +1 -1
- package/packages/dashboard/ui-dist/pricing.txt +1 -1
- package/packages/dashboard/ui-dist/providers/setup/claude.html +1 -1
- package/packages/dashboard/ui-dist/providers/setup/claude.txt +1 -1
- package/packages/dashboard/ui-dist/providers/setup/codex.html +1 -1
- package/packages/dashboard/ui-dist/providers/setup/codex.txt +1 -1
- package/packages/dashboard/ui-dist/providers/setup/cursor.html +1 -1
- package/packages/dashboard/ui-dist/providers/setup/cursor.txt +1 -1
- package/packages/dashboard/ui-dist/providers.html +1 -1
- package/packages/dashboard/ui-dist/providers.txt +1 -1
- package/packages/dashboard/ui-dist/signup.html +1 -1
- package/packages/dashboard/ui-dist/signup.txt +1 -1
- package/packages/dashboard-server/dist/server.js +29 -5
- package/packages/dashboard-server/package.json +12 -12
- package/packages/hooks/package.json +4 -4
- package/packages/mcp/README.md +24 -3
- package/packages/mcp/dist/bin.js +13 -5
- package/packages/mcp/dist/client.d.ts +54 -1
- package/packages/mcp/dist/client.js +132 -18
- package/packages/mcp/dist/cloud.d.ts +12 -0
- package/packages/mcp/dist/cloud.js +125 -1
- package/packages/mcp/dist/file-transport.d.ts +97 -0
- package/packages/mcp/dist/file-transport.js +197 -0
- package/packages/mcp/dist/hybrid-client.d.ts +28 -0
- package/packages/mcp/dist/hybrid-client.js +159 -0
- package/packages/mcp/dist/index.d.ts +4 -2
- package/packages/mcp/dist/index.js +6 -2
- package/packages/mcp/dist/install.d.ts +23 -1
- package/packages/mcp/dist/install.js +229 -31
- package/packages/mcp/dist/server.js +7 -1
- package/packages/mcp/dist/simple.d.ts +1 -1
- package/packages/mcp/dist/tools/index.d.ts +1 -0
- package/packages/mcp/dist/tools/index.js +1 -0
- package/packages/mcp/dist/tools/relay-continuity.d.ts +35 -0
- package/packages/mcp/dist/tools/relay-continuity.js +101 -0
- package/packages/mcp/dist/tools/relay-health.d.ts +1 -4
- package/packages/mcp/dist/tools/relay-health.js +7 -15
- package/packages/mcp/dist/tools/relay-logs.js +4 -2
- package/packages/mcp/dist/tools/relay-metrics.d.ts +1 -4
- package/packages/mcp/dist/tools/relay-metrics.js +4 -15
- package/packages/mcp/dist/tools/relay-send.d.ts +2 -2
- package/packages/mcp/package.json +3 -2
- package/packages/memory/package.json +2 -2
- package/packages/policy/package.json +2 -2
- package/packages/protocol/dist/relay-pty-schemas.d.ts +14 -0
- package/packages/protocol/dist/types.d.ts +152 -2
- package/packages/protocol/package.json +1 -1
- package/packages/resiliency/package.json +1 -1
- package/packages/sdk/dist/client.js +7 -0
- package/packages/sdk/package.json +2 -2
- package/packages/spawner/package.json +1 -1
- package/packages/state/package.json +1 -1
- package/packages/storage/package.json +2 -2
- package/packages/telemetry/package.json +1 -1
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/dist/logger.js +3 -1
- package/packages/utils/package.json +1 -1
- package/packages/wrapper/dist/relay-pty-orchestrator.d.ts +28 -1
- package/packages/wrapper/dist/relay-pty-orchestrator.js +358 -43
- package/packages/wrapper/package.json +6 -6
- package/scripts/demos/README.md +79 -0
- package/scripts/demos/server-capacity.sh +69 -0
- package/scripts/demos/sprint-planning.sh +73 -0
- /package/dist/dashboard/out/_next/static/{h1U3qU5XIfQSy46M_SDsz → RgEj_9Y-mWbLaxggzni-X}/_buildManifest.js +0 -0
- /package/dist/dashboard/out/_next/static/{h1U3qU5XIfQSy46M_SDsz → RgEj_9Y-mWbLaxggzni-X}/_ssgManifest.js +0 -0
- /package/packages/dashboard/ui-dist/_next/static/{4WryIM4xHT22BbJ46YITr → RgEj_9Y-mWbLaxggzni-X}/_buildManifest.js +0 -0
- /package/packages/dashboard/ui-dist/_next/static/{4WryIM4xHT22BbJ46YITr → RgEj_9Y-mWbLaxggzni-X}/_ssgManifest.js +0 -0
- /package/packages/dashboard/ui-dist/_next/static/{dS0EgrS-iG-_pkUVhBypz → UkLmDJOkaPWU2PaNQnkx5}/_buildManifest.js +0 -0
- /package/packages/dashboard/ui-dist/_next/static/{dS0EgrS-iG-_pkUVhBypz → UkLmDJOkaPWU2PaNQnkx5}/_ssgManifest.js +0 -0
- /package/packages/dashboard/ui-dist/_next/static/{h1U3qU5XIfQSy46M_SDsz → bv9xidgU2pXi7xxPoCAK-}/_buildManifest.js +0 -0
- /package/packages/dashboard/ui-dist/_next/static/{h1U3qU5XIfQSy46M_SDsz → bv9xidgU2pXi7xxPoCAK-}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# Server Capacity Negotiation Demo
|
|
4
|
+
# Creates a shared prompt - invite agents to #incident channel
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
DEMO_DIR="/tmp/agent-relay-demos"
|
|
8
|
+
mkdir -p "$DEMO_DIR"
|
|
9
|
+
|
|
10
|
+
cat > "$DEMO_DIR/server-capacity.md" << 'PROMPT_END'
|
|
11
|
+
# Emergency Server Allocation
|
|
12
|
+
|
|
13
|
+
## Situation
|
|
14
|
+
It's Black Friday. Traffic is 5x normal. We have **10 emergency server slots** available for the next 6 hours. Three services need capacity - total requests exceed availability.
|
|
15
|
+
|
|
16
|
+
**This is urgent - decide within 5 minutes.**
|
|
17
|
+
|
|
18
|
+
## The Services
|
|
19
|
+
|
|
20
|
+
**WebAPI** (user-facing) - you may be this service
|
|
21
|
+
- Current: 4 servers at 95% CPU, 800ms latency, 2.1% error rate
|
|
22
|
+
- Request: 5-6 servers
|
|
23
|
+
- Impact: Users seeing errors NOW, Twitter complaints, direct revenue loss
|
|
24
|
+
- Minimum: 4 servers
|
|
25
|
+
|
|
26
|
+
**BatchJobs** (order processing) - you may be this service
|
|
27
|
+
- Current: 2 servers, 50K orders backlogged, oldest is 3 hours old
|
|
28
|
+
- Request: 4-5 servers
|
|
29
|
+
- Impact: "Ships today" promises broken, warehouse idle, SLA breach imminent
|
|
30
|
+
- Minimum: 3 servers
|
|
31
|
+
|
|
32
|
+
**Analytics** (dashboards/alerts) - you may be this service
|
|
33
|
+
- Current: 2 servers (1 crashed), dashboards 2 hours stale, alerts broken
|
|
34
|
+
- Request: 2-4 servers
|
|
35
|
+
- Impact: Flying blind, can't detect fraud, executives asking questions
|
|
36
|
+
- Minimum: 2 servers
|
|
37
|
+
|
|
38
|
+
## Constraints
|
|
39
|
+
- 10 slots total
|
|
40
|
+
- Minimum 1 per service
|
|
41
|
+
- Maximum 6 per service
|
|
42
|
+
|
|
43
|
+
## Your Task
|
|
44
|
+
1. Report your service's current state and what you need
|
|
45
|
+
2. Challenge assumptions - is that request really necessary?
|
|
46
|
+
3. Propose a fair allocation for ALL services
|
|
47
|
+
4. Vote quickly - we're losing money every minute
|
|
48
|
+
|
|
49
|
+
## Communication
|
|
50
|
+
You're in the #incident channel. Speak directly and urgently.
|
|
51
|
+
When ready to vote: "ALLOCATION VOTE: WebAPI=X, BatchJobs=Y, Analytics=Z"
|
|
52
|
+
|
|
53
|
+
WebAPI - you're incident commander. Start by declaring the emergency!
|
|
54
|
+
PROMPT_END
|
|
55
|
+
|
|
56
|
+
echo "Created: $DEMO_DIR/server-capacity.md"
|
|
57
|
+
echo ""
|
|
58
|
+
echo "=== HOW TO RUN ==="
|
|
59
|
+
echo ""
|
|
60
|
+
echo "1. Start daemon: agent-relay up --dashboard"
|
|
61
|
+
echo ""
|
|
62
|
+
echo "2. Start 3 agents in separate terminals:"
|
|
63
|
+
echo " agent-relay -n WebAPI claude"
|
|
64
|
+
echo " agent-relay -n BatchJobs claude"
|
|
65
|
+
echo " agent-relay -n Analytics claude"
|
|
66
|
+
echo ""
|
|
67
|
+
echo "3. Tell each agent:"
|
|
68
|
+
echo " Read $DEMO_DIR/server-capacity.md - you are [WebAPI/BatchJobs/Analytics]. Join #incident channel and negotiate the allocation."
|
|
69
|
+
echo ""
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# Sprint Planning Negotiation Demo
|
|
4
|
+
# Creates a shared prompt - invite agents to #sprint channel
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
DEMO_DIR="/tmp/agent-relay-demos"
|
|
8
|
+
mkdir -p "$DEMO_DIR"
|
|
9
|
+
|
|
10
|
+
cat > "$DEMO_DIR/sprint-planning.md" << 'PROMPT_END'
|
|
11
|
+
# Sprint Planning Negotiation
|
|
12
|
+
|
|
13
|
+
## Situation
|
|
14
|
+
Two-week sprint with **50 story points** of capacity.
|
|
15
|
+
Total requested: 85 points. Must cut 35 points.
|
|
16
|
+
|
|
17
|
+
## The Stakeholders
|
|
18
|
+
|
|
19
|
+
**ProductLead** (facilitator) - you may be this role
|
|
20
|
+
- Owns roadmap and customer commitments
|
|
21
|
+
- Hidden constraints: Referral (G2) promised to board, Security (P5) is compliance
|
|
22
|
+
- Your job: Facilitate fair negotiation, reveal constraints, break ties
|
|
23
|
+
|
|
24
|
+
**GrowthTeam** - you may be this team
|
|
25
|
+
- Q2 OKR: +25% signups (currently at +8%)
|
|
26
|
+
- Priorities:
|
|
27
|
+
- G1: Social login (8 pts) - removes friction
|
|
28
|
+
- G2: Referral program (13 pts) - viral growth
|
|
29
|
+
- G3: Onboarding wizard (8 pts) - activation
|
|
30
|
+
- G4: A/B testing (8 pts) - optimization
|
|
31
|
+
- G5: Landing page (8 pts) - first impression
|
|
32
|
+
|
|
33
|
+
**PlatformTeam** - you may be this team
|
|
34
|
+
- Q2 OKR: 99.9% uptime, <200ms latency (currently 99.5%, 350ms)
|
|
35
|
+
- Priorities:
|
|
36
|
+
- P1: Database optimization (8 pts) - 50% latency reduction
|
|
37
|
+
- P2: Kubernetes (13 pts) - auto-scaling
|
|
38
|
+
- P3: Error tracking (5 pts) - faster debugging
|
|
39
|
+
- P4: CI/CD improvements (8 pts) - 2x faster deploys
|
|
40
|
+
- P5: Security audit (6 pts) - compliance requirement
|
|
41
|
+
|
|
42
|
+
## Known Constraints
|
|
43
|
+
- P5 (Security) - Compliance deadline, MUST include
|
|
44
|
+
- G2 (Referral) - Board commitment, MUST include
|
|
45
|
+
These two = 19 points, leaving 31 for negotiation.
|
|
46
|
+
|
|
47
|
+
## Your Task
|
|
48
|
+
1. Share your top priorities with OKR justification
|
|
49
|
+
2. Find synergies (DB optimization helps Growth conversion, etc.)
|
|
50
|
+
3. Propose a complete 50-point sprint
|
|
51
|
+
4. Vote on final plan (need 2/3 majority)
|
|
52
|
+
|
|
53
|
+
## Communication
|
|
54
|
+
You're in #sprint channel. Talk naturally.
|
|
55
|
+
When ready to vote, list the items and points totaling 50.
|
|
56
|
+
|
|
57
|
+
ProductLead - start by welcoming everyone and revealing the constraints!
|
|
58
|
+
PROMPT_END
|
|
59
|
+
|
|
60
|
+
echo "Created: $DEMO_DIR/sprint-planning.md"
|
|
61
|
+
echo ""
|
|
62
|
+
echo "=== HOW TO RUN ==="
|
|
63
|
+
echo ""
|
|
64
|
+
echo "1. Start daemon: agent-relay up --dashboard"
|
|
65
|
+
echo ""
|
|
66
|
+
echo "2. Start 3 agents in separate terminals:"
|
|
67
|
+
echo " agent-relay -n ProductLead claude"
|
|
68
|
+
echo " agent-relay -n GrowthTeam claude"
|
|
69
|
+
echo " agent-relay -n PlatformTeam claude"
|
|
70
|
+
echo ""
|
|
71
|
+
echo "3. Tell each agent:"
|
|
72
|
+
echo " Read $DEMO_DIR/sprint-planning.md - you are [ProductLead/GrowthTeam/PlatformTeam]. Join #sprint channel and start planning."
|
|
73
|
+
echo ""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|