From 4b9a27aac1914c1513d67d6931e6c3a9f4b34fcb Mon Sep 17 00:00:00 2001 From: karthik Date: Fri, 18 Sep 2026 03:18:19 +0530 Subject: [PATCH] fix(profiles): format TS SDK profile client with prettier The ts-sdk CI Lint step (npx prettier --check .) failed on the three profile client files, which also failed the aggregate CI Gate. Reformat them with prettier 3.8.4 (the pinned devDependency); whitespace only. Co-Authored-By: Claude Opus 4.8 (1M context) --- mem0-ts/src/client/mem0.ts | 4 +--- mem0-ts/src/client/mem0.types.ts | 6 +++++- mem0-ts/src/client/tests/memoryClient.profiles.test.ts | 4 +--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mem0-ts/src/client/mem0.ts b/mem0-ts/src/client/mem0.ts index 675677b94..3cb2f57ba 100644 --- a/mem0-ts/src/client/mem0.ts +++ b/mem0-ts/src/client/mem0.ts @@ -871,9 +871,7 @@ export default class MemoryClient { * Real generations against real memories, and the results are kept: the * profiles are written to those entities and count toward usage. */ - async sampleProfiles(data?: { - limit?: number; - }): Promise { + async sampleProfiles(data?: { limit?: number }): Promise { this._captureEvent("sample_profiles", []); await this._awaitIdentity(); diff --git a/mem0-ts/src/client/mem0.types.ts b/mem0-ts/src/client/mem0.types.ts index 4a8daea68..90ed2496c 100644 --- a/mem0-ts/src/client/mem0.types.ts +++ b/mem0-ts/src/client/mem0.types.ts @@ -244,7 +244,11 @@ export type ProfileEntityType = "user" | "agent"; /** `succeeded` is the only state in which `profile` is guaranteed to hold content. */ export type ProfileStatus = - "succeeded" | "pending" | "failed" | "notEnabled" | "insufficientData"; + | "succeeded" + | "pending" + | "failed" + | "notEnabled" + | "insufficientData"; export interface ProfileResponse { /** Shaped by the project's schema; keys are not camel-cased. */ diff --git a/mem0-ts/src/client/tests/memoryClient.profiles.test.ts b/mem0-ts/src/client/tests/memoryClient.profiles.test.ts index e35270f5e..9e77e9e34 100644 --- a/mem0-ts/src/client/tests/memoryClient.profiles.test.ts +++ b/mem0-ts/src/client/tests/memoryClient.profiles.test.ts @@ -248,9 +248,7 @@ describe("MemoryClient - sampleProfiles() / regenerateProfiles()", () => { const client = new MemoryClient({ apiKey: TEST_API_KEY }); const result = await client.regenerateProfiles(); - expect( - findFetchCall(mock, "/v2/profiles/jobs/", "POST"), - ).toBeDefined(); + expect(findFetchCall(mock, "/v2/profiles/jobs/", "POST")).toBeDefined(); expect(result.jobId).toBe("job_3"); expect(result.statusUrl).toBe("/v2/profiles/jobs/job_3/"); });