@tpsdev-ai/flair-client 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/client.js +5 -2
  2. package/package.json +3 -3
package/dist/client.js CHANGED
@@ -92,7 +92,7 @@ class MemoryApi {
92
92
  }
93
93
  }
94
94
  const id = opts.id ?? `${this.client.agentId}-${Date.now()}`;
95
- return this.client.request("PUT", `/Memory/${id}`, {
95
+ const record = {
96
96
  id,
97
97
  agentId: this.client.agentId,
98
98
  content,
@@ -101,7 +101,10 @@ class MemoryApi {
101
101
  tags: opts.tags ?? [],
102
102
  subject: opts.subject,
103
103
  createdAt: new Date().toISOString(),
104
- });
104
+ };
105
+ await this.client.request("PUT", `/Memory/${id}`, record);
106
+ // Harper PUT returns {} — return the record we constructed
107
+ return record;
105
108
  }
106
109
  /** Search memories by meaning. */
107
110
  async search(query, opts = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tpsdev-ai/flair-client",
3
- "version": "0.2.0",
4
- "description": "Lightweight client for Flair \u2014 identity, memory, and soul for AI agents. Zero heavy dependencies.",
3
+ "version": "0.2.1",
4
+ "description": "Lightweight client for Flair identity, memory, and soul for AI agents. Zero heavy dependencies.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -45,4 +45,4 @@
45
45
  "devDependencies": {
46
46
  "typescript": "5.9.3"
47
47
  }
48
- }
48
+ }