From 69e9e66d03cf33e6d66cd044f0a8019ef3d56587 Mon Sep 17 00:00:00 2001 From: roboomp Date: Sun, 14 Jun 2026 11:14:18 +0000 Subject: [PATCH] test(catalog): sourced Model and ModelSpec types from pi-catalog Followed AGENTS.md by importing the catalog model-spec types from @oh-my-pi/pi-catalog/types in the issue #2558 regression. The Context/Tool/TJsonSchema signatures used by streamAnthropic still come from pi-ai. --- packages/catalog/test/issue-2558-repro.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/catalog/test/issue-2558-repro.test.ts b/packages/catalog/test/issue-2558-repro.test.ts index 180b5ea6e..3d1c72162 100644 --- a/packages/catalog/test/issue-2558-repro.test.ts +++ b/packages/catalog/test/issue-2558-repro.test.ts @@ -17,8 +17,9 @@ */ import { describe, expect, it } from "bun:test"; import { buildAnthropicClientOptions, streamAnthropic } from "@oh-my-pi/pi-ai/providers/anthropic"; -import type { Context, Model, ModelSpec, TJsonSchema, Tool } from "@oh-my-pi/pi-ai/types"; +import type { Context, TJsonSchema, Tool } from "@oh-my-pi/pi-ai/types"; import { buildModel } from "@oh-my-pi/pi-catalog/build"; +import type { Model, ModelSpec } from "@oh-my-pi/pi-catalog/types"; const COPILOT_BEARER = JSON.stringify({ token: "ghc_test" });