chore: upgraded acp rust sdk and npm package (#12424)
This commit is contained in:
Generated
+11
-8
@@ -65,8 +65,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "agent-client-protocol"
|
||||
version = "2.0.0"
|
||||
source = "git+https://github.com/agentclientprotocol/rust-sdk?rev=c97a5203d3392f7f231514d84eea014f9f43e6fb#c97a5203d3392f7f231514d84eea014f9f43e6fb"
|
||||
version = "2.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "13f780597b2c88ab83d02509bcc3e86366751f86fa12114005e35c55ed691763"
|
||||
dependencies = [
|
||||
"agent-client-protocol-derive",
|
||||
"agent-client-protocol-schema",
|
||||
@@ -88,8 +89,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "agent-client-protocol-derive"
|
||||
version = "2.0.0"
|
||||
source = "git+https://github.com/agentclientprotocol/rust-sdk?rev=c97a5203d3392f7f231514d84eea014f9f43e6fb#c97a5203d3392f7f231514d84eea014f9f43e6fb"
|
||||
version = "2.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f4893bfb11e0e193aa5a64611a126ee87567acb1879556519c902722899229de"
|
||||
dependencies = [
|
||||
"quote",
|
||||
"syn 3.0.5",
|
||||
@@ -97,8 +99,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "agent-client-protocol-http"
|
||||
version = "2.0.0"
|
||||
source = "git+https://github.com/agentclientprotocol/rust-sdk?rev=c97a5203d3392f7f231514d84eea014f9f43e6fb#c97a5203d3392f7f231514d84eea014f9f43e6fb"
|
||||
version = "2.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "18e3d7117a48e9db3c4b5e29f7539bc14e390f1f782d10a99b1d9f5c3a8cc28f"
|
||||
dependencies = [
|
||||
"agent-client-protocol",
|
||||
"async-stream",
|
||||
@@ -113,9 +116,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "agent-client-protocol-schema"
|
||||
version = "1.5.0"
|
||||
version = "1.9.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d5c231915b4ab578c722eca2d1bd7df4d300bfd6cac3b8e9f0d1e3ddc95b187c"
|
||||
checksum = "1d595a79e1665d02c91c7dd1bedd118501e75cc0a3d5b1651b5150ec4c5c1e0d"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"derive_more",
|
||||
|
||||
+3
-5
@@ -21,9 +21,9 @@ string_slice = "warn"
|
||||
|
||||
[workspace.dependencies]
|
||||
rmcp = { version = "3.2.0", default-features = false, features = ["schemars", "auth"] }
|
||||
agent-client-protocol-schema = { version = "=1.5.0", default-features = false }
|
||||
agent-client-protocol = { version = "2.0.0", default-features = false }
|
||||
agent-client-protocol-http = { version = "2.0.0", default-features = false }
|
||||
agent-client-protocol-schema = { version = "=1.9.1", default-features = false }
|
||||
agent-client-protocol = { version = "2.2.0", default-features = false }
|
||||
agent-client-protocol-http = { version = "2.2.0", default-features = false }
|
||||
arboard = { version = "3", default-features = false }
|
||||
anyhow = { version = "1.0.102", default-features = false, features = ["std"] }
|
||||
async-stream = { version = "0.3.6", default-features = false }
|
||||
@@ -115,8 +115,6 @@ icu_calendar = { version = "=2.1.1", default-features = false }
|
||||
icu_locale = { version = "=2.1.1", default-features = false }
|
||||
|
||||
[patch.crates-io]
|
||||
agent-client-protocol = { git = "https://github.com/agentclientprotocol/rust-sdk", rev = "c97a5203d3392f7f231514d84eea014f9f43e6fb" }
|
||||
agent-client-protocol-http = { git = "https://github.com/agentclientprotocol/rust-sdk", rev = "c97a5203d3392f7f231514d84eea014f9f43e6fb" }
|
||||
v8 = { path = "vendor/v8" }
|
||||
cudaforge = { git = "https://github.com/jbg/cudaforge", rev = "e7c1967340e40673db98dc9e17da0f04834a456f" }
|
||||
|
||||
|
||||
@@ -175,7 +175,6 @@ tempfile = { workspace = true }
|
||||
tokio-util = { workspace = true, features = ["compat"] }
|
||||
agent-client-protocol-schema = { workspace = true }
|
||||
agent-client-protocol = { workspace = true, features = [
|
||||
"unstable_elicitation",
|
||||
"unstable_end_turn_token_usage",
|
||||
"unstable_session_fork",
|
||||
] }
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@aaif/goose-acp-client": "workspace:*",
|
||||
"@agentclientprotocol/sdk": "1.3.0",
|
||||
"@agentclientprotocol/sdk": "1.5.0",
|
||||
"@mcp-ui/client": "6.1.0",
|
||||
"@modelcontextprotocol/ext-apps": "^1.7.5",
|
||||
"@radix-ui/react-accordion": "^1.2.20",
|
||||
|
||||
@@ -33,7 +33,7 @@ function callbacks(): GooseAcpCallbacks {
|
||||
outcome: { outcome: 'selected', optionId: 'allow' },
|
||||
}),
|
||||
sessionUpdate: vi.fn(),
|
||||
unstable_createElicitation: vi.fn(),
|
||||
createElicitation: vi.fn(),
|
||||
unstable_sessionRecipeRequestParams: vi.fn().mockResolvedValue({
|
||||
action: 'submit',
|
||||
values: { name: 'Ada' },
|
||||
|
||||
@@ -218,7 +218,7 @@ function delay(delayMs: number): Promise<void> {
|
||||
function createClientCallbacks(): GooseAcpCallbacks {
|
||||
return {
|
||||
requestPermission: requestAcpPermission,
|
||||
unstable_createElicitation: requestAcpElicitation,
|
||||
createElicitation: requestAcpElicitation,
|
||||
unstable_sessionRecipeRequestParams: requestAcpRecipeParams,
|
||||
sessionUpdate: handleAcpSessionNotification,
|
||||
unstable_sessionUpdate: handleAcpGooseSessionNotification,
|
||||
|
||||
@@ -22,7 +22,7 @@ const [gooseSessionUpdate, providerDeviceCode] = GOOSE_EXT_NOTIFICATIONS;
|
||||
const [gooseRecipeParamsRequest] = GOOSE_EXT_AGENT_REQUESTS;
|
||||
|
||||
export type GooseAcpCallbacks = Required<
|
||||
Pick<Client, 'requestPermission' | 'sessionUpdate' | 'unstable_createElicitation'>
|
||||
Pick<Client, 'requestPermission' | 'sessionUpdate' | 'createElicitation'>
|
||||
> & {
|
||||
unstable_sessionRecipeRequestParams: (
|
||||
request: RequestRecipeParams_unstable
|
||||
@@ -50,7 +50,7 @@ export function connectGooseAcpClient(
|
||||
callbacks.sessionUpdate(context.params)
|
||||
)
|
||||
.onRequest(methods.client.elicitation.create, (context) =>
|
||||
callbacks.unstable_createElicitation(context.params)
|
||||
callbacks.createElicitation(context.params)
|
||||
)
|
||||
.onRequest(gooseRecipeParamsRequest.method, zRequestRecipeParams_unstable, (context) =>
|
||||
callbacks.unstable_sessionRecipeRequestParams(context.params)
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
"zod": "^4.4.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@agentclientprotocol/sdk": "^1.3.0"
|
||||
"@agentclientprotocol/sdk": "^1.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@agentclientprotocol/sdk": "1.3.0",
|
||||
"@agentclientprotocol/sdk": "1.5.0",
|
||||
"@hey-api/openapi-ts": "^0.99.0",
|
||||
"@types/node": "^26.2.0",
|
||||
"prettier": "^3.9.6",
|
||||
|
||||
Generated
+397
-407
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user