@rk0429/agentic-relay 1.1.0 → 1.1.1
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/relay.mjs +8 -17
- package/package.json +1 -1
package/dist/relay.mjs
CHANGED
|
@@ -654,9 +654,7 @@ ${input.prompt}`;
|
|
|
654
654
|
} else {
|
|
655
655
|
effectiveNativeSessionId = input.resumeSessionId;
|
|
656
656
|
}
|
|
657
|
-
return adapter.continueSession(effectiveNativeSessionId, effectivePrompt
|
|
658
|
-
...input.maxTurns !== void 0 ? { maxTurns: input.maxTurns } : {}
|
|
659
|
-
});
|
|
657
|
+
return adapter.continueSession(effectiveNativeSessionId, effectivePrompt);
|
|
660
658
|
} else {
|
|
661
659
|
let mcpServers;
|
|
662
660
|
if (childHttpUrl) {
|
|
@@ -670,7 +668,6 @@ ${input.prompt}`;
|
|
|
670
668
|
agent: input.agent,
|
|
671
669
|
systemPrompt: enhancedSystemPrompt,
|
|
672
670
|
model: input.model,
|
|
673
|
-
maxTurns: input.maxTurns,
|
|
674
671
|
mcpContext: {
|
|
675
672
|
parentSessionId: session.relaySessionId,
|
|
676
673
|
depth: envContext.depth + 1,
|
|
@@ -798,9 +795,6 @@ var init_spawn_agent = __esm({
|
|
|
798
795
|
model: z2.string().optional().describe(
|
|
799
796
|
"Model to use (e.g., 'opus', 'sonnet', 'o3'). Passed to the backend CLI. Model availability varies by backend."
|
|
800
797
|
),
|
|
801
|
-
maxTurns: z2.number().optional().describe(
|
|
802
|
-
"Maximum agentic turns (tool-use cycles). Limits execution depth to prevent runaway agents."
|
|
803
|
-
),
|
|
804
798
|
skillContext: z2.object({
|
|
805
799
|
skillPath: z2.string().describe("Path to the skill directory (e.g., '.agents/skills/software-engineer/')"),
|
|
806
800
|
subskill: z2.string().optional().describe("Specific subskill to activate within the skill")
|
|
@@ -1414,7 +1408,7 @@ var init_server = __esm({
|
|
|
1414
1408
|
this.guard = new RecursionGuard(guardConfig);
|
|
1415
1409
|
this.backendSelector = new BackendSelector();
|
|
1416
1410
|
this.server = new McpServer(
|
|
1417
|
-
{ name: "agentic-relay", version: "1.1.
|
|
1411
|
+
{ name: "agentic-relay", version: "1.1.1" },
|
|
1418
1412
|
createMcpServerOptions()
|
|
1419
1413
|
);
|
|
1420
1414
|
this.registerTools(this.server);
|
|
@@ -1597,7 +1591,6 @@ var init_server = __esm({
|
|
|
1597
1591
|
originalInput: spawnAgentInputSchema
|
|
1598
1592
|
})).min(1).describe("Array of failed results with their original input configurations"),
|
|
1599
1593
|
overrides: z5.object({
|
|
1600
|
-
maxTurns: z5.number().optional(),
|
|
1601
1594
|
preferredBackend: z5.enum(["claude", "codex", "gemini"]).optional()
|
|
1602
1595
|
}).optional().describe("Parameter overrides applied to all retried agents")
|
|
1603
1596
|
},
|
|
@@ -1606,7 +1599,6 @@ var init_server = __esm({
|
|
|
1606
1599
|
const agents = params.failedResults.map((r) => {
|
|
1607
1600
|
const input = { ...r.originalInput };
|
|
1608
1601
|
if (params.overrides) {
|
|
1609
|
-
if (params.overrides.maxTurns !== void 0) input.maxTurns = params.overrides.maxTurns;
|
|
1610
1602
|
if (params.overrides.preferredBackend !== void 0) input.preferredBackend = params.overrides.preferredBackend;
|
|
1611
1603
|
}
|
|
1612
1604
|
return input;
|
|
@@ -1789,7 +1781,7 @@ var init_server = __esm({
|
|
|
1789
1781
|
sessionIdGenerator: () => randomUUID()
|
|
1790
1782
|
});
|
|
1791
1783
|
const server = new McpServer(
|
|
1792
|
-
{ name: "agentic-relay", version: "1.1.
|
|
1784
|
+
{ name: "agentic-relay", version: "1.1.1" },
|
|
1793
1785
|
createMcpServerOptions()
|
|
1794
1786
|
);
|
|
1795
1787
|
this.registerTools(server);
|
|
@@ -2006,7 +1998,7 @@ var BaseAdapter = class _BaseAdapter {
|
|
|
2006
1998
|
}
|
|
2007
1999
|
return result.stdout.trim();
|
|
2008
2000
|
}
|
|
2009
|
-
async continueSession(_nativeSessionId, _prompt
|
|
2001
|
+
async continueSession(_nativeSessionId, _prompt) {
|
|
2010
2002
|
return {
|
|
2011
2003
|
exitCode: 1,
|
|
2012
2004
|
stdout: "",
|
|
@@ -2385,7 +2377,7 @@ var ClaudeAdapter = class extends BaseAdapter {
|
|
|
2385
2377
|
if (timer !== void 0) clearTimeout(timer);
|
|
2386
2378
|
}
|
|
2387
2379
|
}
|
|
2388
|
-
async continueSession(nativeSessionId, prompt
|
|
2380
|
+
async continueSession(nativeSessionId, prompt) {
|
|
2389
2381
|
const timeoutMs = resolveClaudeSdkTimeoutMs();
|
|
2390
2382
|
const abortController = new AbortController();
|
|
2391
2383
|
const timer = timeoutMs !== void 0 ? setTimeout(() => abortController.abort(), timeoutMs) : void 0;
|
|
@@ -2395,7 +2387,6 @@ var ClaudeAdapter = class extends BaseAdapter {
|
|
|
2395
2387
|
const queryOptions = {
|
|
2396
2388
|
abortController,
|
|
2397
2389
|
resume: nativeSessionId,
|
|
2398
|
-
maxTurns: options?.maxTurns ?? 1,
|
|
2399
2390
|
cwd: process.cwd(),
|
|
2400
2391
|
strictMcpConfig: true
|
|
2401
2392
|
};
|
|
@@ -2851,7 +2842,7 @@ ${prompt}`;
|
|
|
2851
2842
|
};
|
|
2852
2843
|
}
|
|
2853
2844
|
}
|
|
2854
|
-
async continueSession(nativeSessionId, prompt
|
|
2845
|
+
async continueSession(nativeSessionId, prompt) {
|
|
2855
2846
|
try {
|
|
2856
2847
|
const { Codex } = await loadCodexSDK();
|
|
2857
2848
|
const codex = new Codex();
|
|
@@ -4808,7 +4799,7 @@ function createVersionCommand(registry2) {
|
|
|
4808
4799
|
description: "Show relay and backend versions"
|
|
4809
4800
|
},
|
|
4810
4801
|
async run() {
|
|
4811
|
-
const relayVersion = "1.1.
|
|
4802
|
+
const relayVersion = "1.1.1";
|
|
4812
4803
|
console.log(`agentic-relay v${relayVersion}`);
|
|
4813
4804
|
console.log("");
|
|
4814
4805
|
console.log("Backends:");
|
|
@@ -5158,7 +5149,7 @@ void configManager.getConfig().then((config) => {
|
|
|
5158
5149
|
var main = defineCommand10({
|
|
5159
5150
|
meta: {
|
|
5160
5151
|
name: "relay",
|
|
5161
|
-
version: "1.1.
|
|
5152
|
+
version: "1.1.1",
|
|
5162
5153
|
description: "Unified CLI proxy for Claude Code, Codex CLI, and Gemini CLI"
|
|
5163
5154
|
},
|
|
5164
5155
|
subCommands: {
|
package/package.json
CHANGED