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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
34894e2cea
commit
4b9a27aac1
@@ -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<ProfileJobResponse> {
|
||||
async sampleProfiles(data?: { limit?: number }): Promise<ProfileJobResponse> {
|
||||
this._captureEvent("sample_profiles", []);
|
||||
await this._awaitIdentity();
|
||||
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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/");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user