wontopos 2.2.9 → 2.2.10
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.
- package/README.md +3 -0
- package/dist/wontopos.d.ts +15 -2
- package/dist/wontopos.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -131,6 +131,9 @@ const mem = new Client({ apiKey: "...", baseUrl: "https://wos.your-host.com" });
|
|
|
131
131
|
|
|
132
132
|
## Changelog
|
|
133
133
|
|
|
134
|
+
- **2.2.10** — `Memory` fix: the relevance field is `similarity` (not `score`,
|
|
135
|
+
which was never in the response); added typed `importance`, `category`,
|
|
136
|
+
`is_superseded`, `superseded_by`, `created_at`, `event_date`.
|
|
134
137
|
- **2.2.9** — typed responses for every method (index-signature friendly) +
|
|
135
138
|
typed `SearchOptions`; security round 2: 64MB response cap, key/model-name
|
|
136
139
|
hygiene, `Client.fromEnv()`.
|
package/dist/wontopos.d.ts
CHANGED
|
@@ -46,9 +46,22 @@ export interface Usage {
|
|
|
46
46
|
export interface Memory {
|
|
47
47
|
id?: string;
|
|
48
48
|
content?: string;
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
/** Cognitive category, e.g. "general". */
|
|
50
|
+
category?: string;
|
|
51
|
+
/** Semantic relevance to the query — higher is closer. This IS the relevance score; there is no `score` field. */
|
|
52
|
+
similarity?: number;
|
|
53
|
+
/** Learned importance weight of the memory. */
|
|
54
|
+
importance?: number;
|
|
55
|
+
/** Month bucket the memory belongs to (e.g. "2026-07"). Omitted when temporal fields are stripped. */
|
|
51
56
|
time_bucket?: string;
|
|
57
|
+
/** True if a later memory has superseded this one. */
|
|
58
|
+
is_superseded?: boolean;
|
|
59
|
+
/** Id of the memory that superseded this one, or null. */
|
|
60
|
+
superseded_by?: string | null;
|
|
61
|
+
/** When the memory was stored (RFC3339). Omitted when temporal fields are stripped. */
|
|
62
|
+
created_at?: string;
|
|
63
|
+
/** When the content actually happened (RFC3339), if known. */
|
|
64
|
+
event_date?: string;
|
|
52
65
|
/** WHO said it: "me" (the assistant) or a registered person's name. Absent = untagged. */
|
|
53
66
|
speaker?: string;
|
|
54
67
|
[key: string]: unknown;
|
package/dist/wontopos.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* runtime's (never disabled by this SDK; Node 18+ floors TLS at 1.2). Prefer
|
|
33
33
|
* `Client.fromEnv()` over keys in source code.
|
|
34
34
|
*/
|
|
35
|
-
const VERSION = "2.2.
|
|
35
|
+
const VERSION = "2.2.10";
|
|
36
36
|
const USER_AGENT = `wontopos-node/${VERSION}`;
|
|
37
37
|
const DEFAULT_BASE_URL = "https://api.wontopos.com";
|
|
38
38
|
const DEFAULT_MODEL = "tablet-1";
|
package/package.json
CHANGED