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.
This commit is contained in:
roboomp
2026-06-14 11:14:18 +00:00
parent e9551a1312
commit 69e9e66d03
@@ -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" });