From bf157122af6d66a01f267a450a831b1ea53cab3d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 3 Sep 2026 10:21:43 +0200 Subject: [PATCH] fix(ai): remove unnecessary Chord dependency --- package-lock.json | 1 - packages/ai/CHANGELOG.md | 1 + packages/ai/package.json | 1 - packages/ai/src/types.ts | 3 +-- packages/coding-agent/install-lock/package-lock.json | 1 - packages/coding-agent/npm-shrinkwrap.json | 1 - 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index b0c51ae12..39fbaf0b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5364,7 +5364,6 @@ "dependencies": { "@anthropic-ai/sdk": "0.123.0", "@aws-sdk/client-bedrock-runtime": "3.1048.0", - "@earendil-works/chord": "^0.84.4", "@earendil-works/pi-telemetry": "^0.84.4", "@google/genai": "1.52.0", "@smithy/node-http-handler": "4.7.3", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index ff66ffbeb..b579e9283 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixed +- Removed the unnecessary Chord dependency from pi-ai by defining its exported `JsonValue` type directly. - Fixed GitHub Copilot Claude Fable 5 requests to use the Anthropic Messages adapter so selected reasoning levels are sent ([#8961](https://github.com/earendil-works/pi/issues/8961)). ## [0.84.4] - 2026-08-28 diff --git a/packages/ai/package.json b/packages/ai/package.json index e65be24cd..fcae2ecc3 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -65,7 +65,6 @@ }, "dependencies": { "@anthropic-ai/sdk": "0.123.0", - "@earendil-works/chord": "^0.84.4", "@aws-sdk/client-bedrock-runtime": "3.1048.0", "@earendil-works/pi-telemetry": "^0.84.4", "@google/genai": "1.52.0", diff --git a/packages/ai/src/types.ts b/packages/ai/src/types.ts index af46eb816..152033981 100644 --- a/packages/ai/src/types.ts +++ b/packages/ai/src/types.ts @@ -1,4 +1,3 @@ -import type { JsonValue } from "@earendil-works/chord"; import type { TelemetryContext } from "@earendil-works/pi-telemetry"; import type { AnthropicOptions } from "./api/anthropic-messages.ts"; import type { AzureOpenAIResponsesOptions } from "./api/azure-openai-responses.ts"; @@ -405,7 +404,7 @@ export interface Usage { export type StopReason = "pending" | "stop" | "length" | "toolUse" | "error" | "aborted" | "deferred"; -export type { JsonValue } from "@earendil-works/chord"; +export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue }; export interface DeferredHandle { provider: string; diff --git a/packages/coding-agent/install-lock/package-lock.json b/packages/coding-agent/install-lock/package-lock.json index 5caebe72d..e5dec9a2d 100644 --- a/packages/coding-agent/install-lock/package-lock.json +++ b/packages/coding-agent/install-lock/package-lock.json @@ -484,7 +484,6 @@ "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "0.123.0", - "@earendil-works/chord": "^0.84.4", "@aws-sdk/client-bedrock-runtime": "3.1048.0", "@earendil-works/pi-telemetry": "^0.84.4", "@google/genai": "1.52.0", diff --git a/packages/coding-agent/npm-shrinkwrap.json b/packages/coding-agent/npm-shrinkwrap.json index a41899875..77407d555 100644 --- a/packages/coding-agent/npm-shrinkwrap.json +++ b/packages/coding-agent/npm-shrinkwrap.json @@ -511,7 +511,6 @@ "license": "MIT", "dependencies": { "@anthropic-ai/sdk": "0.123.0", - "@earendil-works/chord": "^0.84.4", "@aws-sdk/client-bedrock-runtime": "3.1048.0", "@earendil-works/pi-telemetry": "^0.84.4", "@google/genai": "1.52.0",