@agent-relay/sdk 3.1.23 → 3.2.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.
- package/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/__tests__/unit.test.js +8 -0
- package/dist/__tests__/unit.test.js.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/examples/example.js +1 -1
- package/dist/examples/example.js.map +1 -1
- package/dist/examples/ralph-loop.js +6 -6
- package/dist/examples/ralph-loop.js.map +1 -1
- package/dist/relay-adapter.js +4 -4
- package/dist/relay-adapter.js.map +1 -1
- package/dist/relay.d.ts +1 -0
- package/dist/relay.d.ts.map +1 -1
- package/dist/relay.js +2 -0
- package/dist/relay.js.map +1 -1
- package/dist/workflows/runner.js +8 -8
- package/dist/workflows/runner.js.map +1 -1
- package/dist/workflows/validator.js +4 -4
- package/dist/workflows/validator.js.map +1 -1
- package/package.json +2 -2
package/dist/workflows/runner.js
CHANGED
|
@@ -2600,8 +2600,8 @@ export class WorkflowRunner {
|
|
|
2600
2600
|
switch (preset) {
|
|
2601
2601
|
case 'worker':
|
|
2602
2602
|
return ('You are a non-interactive worker agent. Produce clean, structured output to stdout.\n' +
|
|
2603
|
-
'Do NOT use
|
|
2604
|
-
'Do NOT use
|
|
2603
|
+
'Do NOT use mcp__relaycast__agent_add, add_agent, or any MCP tool to spawn sub-agents.\n' +
|
|
2604
|
+
'Do NOT use mcp__relaycast__dm_send or any Relaycast messaging tools — you have no relay connection.\n\n');
|
|
2605
2605
|
case 'reviewer':
|
|
2606
2606
|
return ('You are a non-interactive reviewer agent. Read the specified files/artifacts and produce a clear verdict.\n' +
|
|
2607
2607
|
'Do NOT spawn sub-agents or use any Relaycast messaging tools.\n\n');
|
|
@@ -2627,7 +2627,7 @@ export class WorkflowRunner {
|
|
|
2627
2627
|
step.task +
|
|
2628
2628
|
'\n\n---\n' +
|
|
2629
2629
|
'IMPORTANT: You are running as a non-interactive subprocess. ' +
|
|
2630
|
-
'Do NOT call
|
|
2630
|
+
'Do NOT call mcp__relaycast__agent_add, add_agent, or any MCP tool to spawn or manage other agents.\n\n' +
|
|
2631
2631
|
'CRITICAL REQUIREMENT — YOU MUST FOLLOW THIS EXACTLY:\n' +
|
|
2632
2632
|
'You are running in non-interactive mode. There is NO opportunity for follow-up, ' +
|
|
2633
2633
|
'clarification, or additional input. Your stdout output is your ONLY deliverable.\n\n' +
|
|
@@ -3275,7 +3275,7 @@ export class WorkflowRunner {
|
|
|
3275
3275
|
'RELAY SETUP — do this FIRST before any other relay tool:\n' +
|
|
3276
3276
|
`1. Call: register(name="${agentName}")\n` +
|
|
3277
3277
|
' This authenticates you in the Relaycast workspace.\n' +
|
|
3278
|
-
' ALL relay tools (
|
|
3278
|
+
' ALL relay tools (mcp__relaycast__dm_send, mcp__relaycast__inbox_check, mcp__relaycast__message_post, etc.) require\n' +
|
|
3279
3279
|
' registration first — they will fail with "Not registered" otherwise.\n' +
|
|
3280
3280
|
`2. Your agent name is "${agentName}" — use this exact name when registering.`);
|
|
3281
3281
|
}
|
|
@@ -3297,10 +3297,10 @@ export class WorkflowRunner {
|
|
|
3297
3297
|
'If it involves multiple independent subtasks, touches many files, or could take a long time, ' +
|
|
3298
3298
|
'you should break it down and delegate to helper agents to avoid timeouts.\n\n' +
|
|
3299
3299
|
'Option 1 — Spawn relay agents (for real parallel coding work):\n' +
|
|
3300
|
-
' -
|
|
3301
|
-
' - Coordinate via
|
|
3302
|
-
' - Check on them with
|
|
3303
|
-
' - Clean up when done:
|
|
3300
|
+
' - mcp__relaycast__agent_add(name="helper-1", cli="claude", task="Specific subtask description")\n' +
|
|
3301
|
+
' - Coordinate via mcp__relaycast__dm_send(to="helper-1", text="...")\n' +
|
|
3302
|
+
' - Check on them with mcp__relaycast__inbox_check()\n' +
|
|
3303
|
+
' - Clean up when done: mcp__relaycast__agent_remove(name="helper-1")\n\n' +
|
|
3304
3304
|
subAgentOption +
|
|
3305
3305
|
'Guidelines:\n' +
|
|
3306
3306
|
'- You are the lead — delegate but stay in control, track progress, integrate results\n' +
|