Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(provider-acp): Windows T3_ACP_MCP_CALL fallback calls resolve as T3 tools #42195

OpenPyseph(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/42195/headopened View on GitHub

Showing 2 changed files with 162 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
162 additions and 0 deletionspackages/provider-acp/src/server/runtimeModel.test.tsModified
View file
@@ -1439,6 +1439,168 @@
).toEqual({ server: "t3-code", tool: "delegate_task", input: { task: "x" } });
+ it("recovers T3 identity from Windows T3_ACP_MCP_CALL and acp-mcp-call.cmd fallbacks", () => {
+ for (const [command, expected] of [
+ [
+ `'{}' | & $env:T3_ACP_MCP_CALL orchestrator_capabilities -`,
+ { server: "t3-code", tool: "orchestrator_capabilities" },
+ ],
+ [
+ `$payload = @{\n title = "What each bot holds"\n height = 1521\n path = "C:\\temp\\bot-skills.html"\n} | ConvertTo-Json -Compress\n$payload | & $env:T3_ACP_MCP_CALL html_render -`,
+ { server: "t3-code", tool: "html_render" },
+ ],
+ [`'{}' | & "$env:T3_ACP_MCP_CALL" html_render -`, { server: "t3-code", tool: "html_render" }],
+ [
+ `'{}' | & \${env:T3_ACP_MCP_CALL} "html_render" -`,
+ { server: "t3-code", tool: "html_render" },
+ ],
+ [`'{}' | &$Env:T3_ACP_MCP_CALL html_render -`, { server: "t3-code", tool: "html_render" }],
+ [
+ `& $env:T3_ACP_MCP_CALL html_render '{\n "title": "Report",\n "html": "<p>Report</p>"\n}'`,
+ {
+ server: "t3-code",
+ tool: "html_render",
+ input: { title: "Report", html: "<p>Report</p>" },
+ },
+ ],
+ [
+ `@'\n{"title":"Report","path":"C:\\temp\\a.html"}\n'@ | & $env:T3_ACP_MCP_CALL html_render -`,