replicas-engine 0.1.815 → 0.1.817
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/dist/src/{asp-host-LHDELXWM.js → asp-host-JUVXZCRV.js} +4 -4
- package/dist/src/{chunk-I3CLB5FS.js → chunk-6FLPUBVF.js} +2 -2
- package/dist/src/{chunk-MEPQJE5J.js → chunk-C52ENUG3.js} +1 -1
- package/dist/src/{chunk-UUQYVSQY.js → chunk-EOYBI3PV.js} +2 -2
- package/dist/src/{chunk-WRUZSBSF.js → chunk-FN67CYNX.js} +4 -4
- package/dist/src/chunk-JA23HN6S.js +46 -0
- package/dist/src/{chunk-3XXPWKPE.js → chunk-JAITEGC4.js} +1 -1
- package/dist/src/{chunk-JTAIM2QE.js → chunk-OCQQ6AO3.js} +8 -4
- package/dist/src/command-protection-hook.js +3 -3
- package/dist/src/deepseek-command-protection-plugin.js +4 -4
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +274 -275
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/relay-mcp.js +10 -5
- package/package.json +1 -1
|
@@ -3,11 +3,11 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
notifyPostToolUse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C52ENUG3.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-OCQQ6AO3.js";
|
|
11
11
|
import "./chunk-VEQXQN22.js";
|
|
12
12
|
|
|
13
13
|
// src/post-tool-pr-hook.ts
|
package/dist/src/relay-mcp.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from 'node:module';
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
RELAY_MCP_SERVER_NAME
|
|
6
|
+
} from "./chunk-JA23HN6S.js";
|
|
4
7
|
import {
|
|
5
8
|
messageRelaySubagentRequestSchema,
|
|
6
9
|
spawnRelaySubagentRequestSchema
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OCQQ6AO3.js";
|
|
8
11
|
import "./chunk-VEQXQN22.js";
|
|
9
12
|
|
|
10
13
|
// src/relay-mcp.ts
|
|
@@ -36,28 +39,30 @@ async function request(path, method, body) {
|
|
|
36
39
|
if (!response.ok) throw new Error(text || `Relay request failed (${response.status})`);
|
|
37
40
|
return text || JSON.stringify({ success: true });
|
|
38
41
|
}
|
|
39
|
-
var server = new McpServer({ name:
|
|
42
|
+
var server = new McpServer({ name: RELAY_MCP_SERVER_NAME, version: "1.0.0" });
|
|
40
43
|
server.registerTool("get_providers", {
|
|
41
44
|
description: "List the agent providers Relay is allowed to use and the configured Relay base provider."
|
|
42
45
|
}, async () => ({
|
|
43
46
|
content: [{ type: "text", text: await request(`/chats/${parentChatId}/subagents`, "GET") }]
|
|
44
47
|
}));
|
|
45
48
|
server.registerTool("spawn_agent", {
|
|
46
|
-
description: "Spawn a child agent with
|
|
49
|
+
description: "Spawn a child agent with all, none, or the latest N turns of parent context, wait for it to finish, and return its chat ID and final response.",
|
|
47
50
|
inputSchema: {
|
|
48
51
|
provider: spawnRelaySubagentRequestSchema.shape.provider.describe("Provider returned by get_providers."),
|
|
49
|
-
prompt: spawnRelaySubagentRequestSchema.shape.prompt.describe("
|
|
52
|
+
prompt: spawnRelaySubagentRequestSchema.shape.prompt.describe("The child\u2019s assigned task, scope, and expected result. Include all necessary context when fork_turns is none."),
|
|
53
|
+
fork_turns: spawnRelaySubagentRequestSchema.shape.forkTurns.describe("Parent context to inherit: all (default), none, or a positive integer string such as 3 for the latest 3 user-led turns, including the current turn."),
|
|
50
54
|
model: spawnRelaySubagentRequestSchema.shape.model,
|
|
51
55
|
thinking_level: spawnRelaySubagentRequestSchema.shape.thinkingLevel,
|
|
52
56
|
title: spawnRelaySubagentRequestSchema.shape.title,
|
|
53
57
|
timeout_minutes: spawnRelaySubagentRequestSchema.shape.timeoutMinutes
|
|
54
58
|
}
|
|
55
|
-
}, async ({ provider, prompt, model, thinking_level, title, timeout_minutes }) => ({
|
|
59
|
+
}, async ({ provider, prompt, fork_turns, model, thinking_level, title, timeout_minutes }) => ({
|
|
56
60
|
content: [{
|
|
57
61
|
type: "text",
|
|
58
62
|
text: await request(`/chats/${parentChatId}/subagents`, "POST", {
|
|
59
63
|
provider,
|
|
60
64
|
prompt,
|
|
65
|
+
forkTurns: fork_turns,
|
|
61
66
|
...model ? { model } : {},
|
|
62
67
|
...thinking_level ? { thinkingLevel: thinking_level } : {},
|
|
63
68
|
...title ? { title } : {},
|