style: run prettier on TS SDK files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Soumil Rathi
2026-04-13 11:29:06 -07:00
co-authored by Claude Opus 4.6
parent 3ae22be8a2
commit e1e033daef
7 changed files with 40 additions and 80 deletions
+3 -4
View File
@@ -111,10 +111,9 @@ describe("Memory - add()", () => {
});
test("result item has a memory string field", async () => {
const result: SearchResult = await memory.add(
"My favorite color is blue",
{ userId },
);
const result: SearchResult = await memory.add("My favorite color is blue", {
userId,
});
expect(typeof result.results[0].memory).toBe("string");
});
+1 -3
View File
@@ -30,9 +30,7 @@ jest.mock("../src/llms/openai", () => ({
const newMsgMatch = content.match(
/## New Messages\n([\s\S]*?)(?=\n##|$)/,
);
const extracted = newMsgMatch
? newMsgMatch[1].trim()
: "stored fact";
const extracted = newMsgMatch ? newMsgMatch[1].trim() : "stored fact";
return JSON.stringify({
memory: [
{
+1 -3
View File
@@ -28,9 +28,7 @@ jest.mock("../src/llms/openai", () => ({
const newMsgMatch = content.match(
/## New Messages\n([\s\S]*?)(?=\n##|$)/,
);
const extracted = newMsgMatch
? newMsgMatch[1].trim()
: "test fact";
const extracted = newMsgMatch ? newMsgMatch[1].trim() : "test fact";
return JSON.stringify({
memory: [
{