fix(runner): mirror qualified Claude runtime
This commit is contained in:
parent
a44cae61e1
commit
f5af8b2482
|
|
@ -88,8 +88,8 @@ impl AcpxProviderDescriptor {
|
|||
"claude-sonnet-5",
|
||||
"@agentclientprotocol/claude-agent-acp",
|
||||
"0.70.0",
|
||||
None,
|
||||
None,
|
||||
Some("@anthropic-ai/claude-agent-sdk"),
|
||||
Some("0.3.232"),
|
||||
"sha256:9d73d1f0f121fb96cc8badb28c22d5bff02d8582eb2e40360a81c189e1b9422a",
|
||||
),
|
||||
"codex" => (
|
||||
|
|
@ -1360,8 +1360,8 @@ mod tests {
|
|||
"claude-sonnet-5",
|
||||
"@agentclientprotocol/claude-agent-acp",
|
||||
"0.70.0",
|
||||
Value::Null,
|
||||
Value::Null,
|
||||
json!("@anthropic-ai/claude-agent-sdk"),
|
||||
json!("0.3.232"),
|
||||
"sha256:9d73d1f0f121fb96cc8badb28c22d5bff02d8582eb2e40360a81c189e1b9422a",
|
||||
)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -95,9 +95,9 @@ function acpxExecution(
|
|||
? "@earendil-works/pi-coding-agent"
|
||||
: agent === "codex"
|
||||
? "@openai/codex"
|
||||
: null,
|
||||
: "@anthropic-ai/claude-agent-sdk",
|
||||
agentRuntimeVersion:
|
||||
agent === "pi" ? "0.84.2" : agent === "codex" ? "0.148.0" : null,
|
||||
agent === "pi" ? "0.84.2" : agent === "codex" ? "0.148.0" : "0.3.232",
|
||||
commandDigest:
|
||||
agent === "codex"
|
||||
? "sha256:7a923b3829884d3cabcc9659d22cace3f86813e7bfffc90974b10140a45bc400"
|
||||
|
|
|
|||
|
|
@ -755,8 +755,9 @@ function defaultPackageJsonResolver(
|
|||
}
|
||||
// Source-mode and direct runtimes still have a stable module URL. The
|
||||
// descriptor-backed runner sidecar always receives the explicit root above.
|
||||
return createRequire(issuerPackageJsonPath ?? import.meta.url).resolve(
|
||||
`${packageName}/package.json`,
|
||||
return resolvePackageJsonFromIssuer(
|
||||
packageName,
|
||||
issuerPackageJsonPath ?? import.meta.url,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue