refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/ai",
|
||||
"version": "0.8.8",
|
||||
"version": "0.8.9",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "Zero-dependency Claude (Anthropic) client for WrNexus apps.",
|
||||
|
||||
@@ -75,7 +75,7 @@ describe("AI platform", () => {
|
||||
{ role: "user", content: "c" },
|
||||
]);
|
||||
expect(await conversations.load("one")).toHaveLength(2);
|
||||
expect(promptTemplate("Hello {{name}}")({ name: "Wire" })).toBe("Hello Wire");
|
||||
expect(promptTemplate("Hello {{name}}")({ name: "WrNexus" })).toBe("Hello WrNexus");
|
||||
const provider = guardedProvider(
|
||||
{ name: "test", generate: async () => ({ value: "ok", provider: "test" }) },
|
||||
[maxPromptLength(3)],
|
||||
|
||||
Reference in New Issue
Block a user