From c4b32780adb5e84824c031fa0a03c6f9590069b5 Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Thu, 3 Sep 2026 17:29:49 +0200 Subject: [PATCH] =?UTF-8?q?refactor(deps):=20ai-kit=20comes=20from=20npm?= =?UTF-8?q?=20=E2=80=94=20@bitbaum/ai-kit=20^0.6.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn --- package-lock.json | 41 +++++++++++++++++++++-------------------- package.json | 2 +- src/lib/health.ts | 2 +- src/lib/llm.test.ts | 2 +- src/lib/llm.ts | 2 +- 5 files changed, 25 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3401e52..5ed7ddb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "truthseeker", "version": "0.1.0", "dependencies": { - "ai-kit": "github:bitbaum/ai-kit#v0.6.2", + "@bitbaum/ai-kit": "^0.6.2", "entities": "^8.0.0", "next": "16.3.3", "react": "19.2.8", @@ -284,6 +284,26 @@ "node": ">=6.9.0" } }, + "node_modules/@bitbaum/ai-kit": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/@bitbaum/ai-kit/-/ai-kit-0.6.2.tgz", + "integrity": "sha512-974ollQp2pugPpsUgdJY/i6r+/v3CEwa3XqmfSdi+vM7w8eMVWufSKQ3mu9QLoEm7b0Gq/mKgLKql3lSawmCfw==", + "license": "MIT", + "dependencies": { + "ai-forms": "^0.1.2" + }, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "react": ">=18" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, "node_modules/@emnapi/core": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", @@ -3257,25 +3277,6 @@ } } }, - "node_modules/ai-kit": { - "version": "0.6.2", - "resolved": "git+ssh://git@github.com/bitbaum/ai-kit.git#ace11f14d817079ae2bf4cdc010b6daa9faacbec", - "license": "MIT", - "dependencies": { - "ai-forms": "^0.1.2" - }, - "engines": { - "node": ">=20" - }, - "peerDependencies": { - "react": ">=18" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - } - } - }, "node_modules/ajv": { "version": "6.15.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", diff --git a/package.json b/package.json index 5cd498c..50c06a8 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "format:check": "prettier --check ." }, "dependencies": { - "ai-kit": "github:bitbaum/ai-kit#v0.6.2", + "@bitbaum/ai-kit": "^0.6.2", "entities": "^8.0.0", "next": "16.3.3", "react": "19.2.8", diff --git a/src/lib/health.ts b/src/lib/health.ts index 6701b4a..16ee266 100644 --- a/src/lib/health.ts +++ b/src/lib/health.ts @@ -7,7 +7,7 @@ * kivvi, botsmann, hirnli, aoz-housing). */ -import { createHealthTracker } from "ai-kit"; +import { createHealthTracker } from "@bitbaum/ai-kit"; const tracker = createHealthTracker({ downAfter: 3 }); diff --git a/src/lib/llm.test.ts b/src/lib/llm.test.ts index 17c7a32..3be40a7 100644 --- a/src/lib/llm.test.ts +++ b/src/lib/llm.test.ts @@ -21,7 +21,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import fs from "node:fs"; import path from "node:path"; -import { freeChain } from "ai-kit"; +import { freeChain } from "@bitbaum/ai-kit"; import { callLLM, configuredLinks, noProviderMessage } from "./llm"; /** A chat-completions response carrying `content`. */ diff --git a/src/lib/llm.ts b/src/lib/llm.ts index c5694d4..6b8f771 100644 --- a/src/lib/llm.ts +++ b/src/lib/llm.ts @@ -20,7 +20,7 @@ // alongside GROQ_API_KEY and this app gains a second meter; with one key it // still gets the model-level fallback, which is what rot actually looks like. -import { freeChain, usableChain, type Env, type Link } from "ai-kit"; +import { freeChain, usableChain, type Env, type Link } from "@bitbaum/ai-kit"; import { recordLLMFailure, recordLLMSuccess } from "./health"; /** Prefix for this app's per-vendor model overrides (TRUTHSEEKER_GROQ_MODELS…). */