@lessly/sdk-app 121.3.0 → 122.0.0

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/CHANGELOG.md CHANGED
@@ -125,18 +125,22 @@ before this point lives in that package.
125
125
  The publish pipeline appends its machine-rendered block for the release being
126
126
  built below this line. It is not committed back to the repo, so in a git
127
127
  checkout this section is empty — see the note at the top.
128
- ## 121.3.0 (minor)
129
-
130
- ### deployment
131
- - `deployment_canvas_get`: new optional field `services.pendingDeploy (output)`
132
- - `deployment_events_list_by_environment`: new accepted value on `type`
133
- - `deployment_events_list_by_environment`: new accepted value on `type (output)`
134
- - `deployment_events_list_by_service`: new accepted value on `type`
135
- - `deployment_events_list_by_service`: new accepted value on `type (output)`
136
- - `deployment_service_create`: new optional field `pendingDeploy (output)`
137
- - `deployment_service_get`: new optional field `pendingDeploy (output)`
138
- - `deployment_service_get`: description updated
139
- - `deployment_service_list`: new optional field `pendingDeploy (output)`
140
- - `deployment_service_scale`: new optional field `pendingDeploy (output)`
141
- - `deployment_service_update`: new optional field `pendingDeploy (output)`
128
+ ## 122.0.0 (major)
129
+
130
+ ### brain
131
+ - `brain_cognition_status`: type change on `digest (output)`
132
+ - `brain_memory_add`: new optional field `extract`
133
+ - `brain_memory_add`: new optional field `idempotency_key`
134
+ - `brain_memory_add`: new optional field `deduplicated (output)`
135
+ - `brain_memory_add`: description updated
136
+ - `brain_memory_delete`: new optional field `idempotency_key`
137
+ - `brain_memory_delete`: description updated
138
+ - `brain_memory_get`: new optional field `derived (output)`
139
+ - `brain_memory_list`: new optional field `memories.derived (output)`
140
+ - `brain_memory_search`: its composer-step declaration changed
141
+ - `brain_memory_search`: new optional field `profile.source (output)`
142
+ - `brain_memory_search`: new optional field `profile.derived (output)`
143
+ - `brain_memory_search`: description updated
144
+ - `brain_memory_update`: new optional field `idempotency_key`
145
+ - `brain_memory_update`: description updated
142
146
 
@@ -346631,7 +346631,7 @@ export interface BrainCognitionStatusOutput {
346631
346631
  error: (string | null);
346632
346632
  result?: unknown;
346633
346633
  run_id: string;
346634
- status: string;
346634
+ status: ("running" | "done" | "failed");
346635
346635
  started_at: string;
346636
346636
  finished_at: (string | null);
346637
346637
  } | null);
@@ -346640,7 +346640,7 @@ export interface BrainCognitionStatusOutput {
346640
346640
  error: (string | null);
346641
346641
  result?: unknown;
346642
346642
  run_id: string;
346643
- status: string;
346643
+ status: ("running" | "done" | "failed");
346644
346644
  started_at: string;
346645
346645
  finished_at: (string | null);
346646
346646
  } | null);
@@ -347978,12 +347978,20 @@ export interface BrainMemoryAddInput {
347978
347978
  * The memory text to store
347979
347979
  */
347980
347980
  content: string;
347981
+ /**
347982
+ * Whether to extract facts from this memory (default true). Set false for meeting notes, drafts and discussions: the text is stored and searchable, but no facts are extracted from it, and extraction.status is 'skipped'
347983
+ */
347984
+ extract?: boolean;
347981
347985
  /**
347982
347986
  * Optional structured metadata
347983
347987
  */
347984
347988
  metadata?: {
347985
347989
  [k: string]: unknown;
347986
347990
  };
347991
+ /**
347992
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
347993
+ */
347994
+ idempotency_key?: string;
347987
347995
  /**
347988
347996
  * Source authority (highest→lowest): policy > official > team > informal. Omit to default to official; an unrecognized value is rejected.
347989
347997
  */
@@ -348011,7 +348019,7 @@ export interface BrainMemoryAddOutput {
348011
348019
  */
348012
348020
  items: number;
348013
348021
  /**
348014
- * ok = at least one memory was derived from it (a summary counts, so ok alone does not promise a fact); empty = nothing new came out of it — the content held nothing durable, or everything in it is already in memory; failed = extraction broke, the raw memory is stored without facts; skipped = the engine does not extract in this mode
348022
+ * ok = at least one memory was derived from it (a summary counts, so ok alone does not promise a fact); empty = nothing new came out of it — the content held nothing durable, or everything in it is already in memory; failed = extraction broke, the raw memory is stored without facts; skipped = extraction did not run, because the add asked for extract: false — the raw memory is stored and searchable, with no facts
348015
348023
  */
348016
348024
  status: ("ok" | "empty" | "failed" | "skipped");
348017
348025
  /**
@@ -348027,12 +348035,20 @@ export interface BrainMemoryAddOutput {
348027
348035
  * Engine request id for this call — quote it when reporting a problem
348028
348036
  */
348029
348037
  request_id: string;
348038
+ /**
348039
+ * True when an unkeyed add matched one completed in the last 10 minutes; no new memory was written
348040
+ */
348041
+ deduplicated?: boolean;
348030
348042
  }
348031
348043
  export interface BrainMemoryDeleteInput {
348032
348044
  /**
348033
348045
  * Engine memory id
348034
348046
  */
348035
348047
  memory_id: string;
348048
+ /**
348049
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
348050
+ */
348051
+ idempotency_key?: string;
348036
348052
  }
348037
348053
  export interface BrainMemoryDeleteOutput {
348038
348054
  /**
@@ -348044,7 +348060,7 @@ export interface BrainMemoryDeleteOutput {
348044
348060
  */
348045
348061
  request_id: string;
348046
348062
  /**
348047
- * How many memory rows the engine removed for this id; 0 when it was already gone
348063
+ * 1 when the engine removed this memory from vector or graph storage; 0 when it was already gone
348048
348064
  */
348049
348065
  deleted_count: number;
348050
348066
  }
@@ -348081,6 +348097,10 @@ export interface BrainMemoryGetOutput {
348081
348097
  * The memory text itself
348082
348098
  */
348083
348099
  content: string;
348100
+ /**
348101
+ * True when this memory was machine-extracted from a raw memory
348102
+ */
348103
+ derived: boolean;
348084
348104
  /**
348085
348105
  * Engine user namespace the memory was written under
348086
348106
  */
@@ -348191,6 +348211,10 @@ export interface BrainMemoryListOutput {
348191
348211
  * The memory text itself
348192
348212
  */
348193
348213
  content: string;
348214
+ /**
348215
+ * True when this memory was machine-extracted from a raw memory
348216
+ */
348217
+ derived: boolean;
348194
348218
  /**
348195
348219
  * Engine user namespace the memory was written under
348196
348220
  */
@@ -348274,10 +348298,31 @@ export interface BrainMemorySearchOutputItems {
348274
348298
  * How closely this hit matches the query — higher is closer. An engine-internal scale, not a percentage; compare hits against each other, never against a fixed threshold.
348275
348299
  */
348276
348300
  score: number;
348301
+ /**
348302
+ * Readable raw memory for verification; null when missing or outside your scope
348303
+ */
348304
+ source: ({
348305
+ /**
348306
+ * Raw memory text, at most 2000 Unicode characters
348307
+ */
348308
+ content: string;
348309
+ /**
348310
+ * Id of the raw memory this item was extracted from
348311
+ */
348312
+ memory_id: string;
348313
+ /**
348314
+ * True when the raw memory text was longer than 2000 Unicode characters
348315
+ */
348316
+ truncated: boolean;
348317
+ } | null);
348277
348318
  /**
348278
348319
  * The memory text itself
348279
348320
  */
348280
348321
  content: string;
348322
+ /**
348323
+ * True when this memory was machine-extracted from a raw memory; extracted content can be wrong
348324
+ */
348325
+ derived: boolean;
348281
348326
  /**
348282
348327
  * When the remembered EVENT happened, epoch milliseconds; null when the writer stated no time
348283
348328
  */
@@ -348393,6 +348438,10 @@ export interface BrainMemoryUpdateInput {
348393
348438
  * Engine memory id
348394
348439
  */
348395
348440
  memory_id: string;
348441
+ /**
348442
+ * Reuse this key when retrying a connection error; the same request returns its original response for 48 hours
348443
+ */
348444
+ idempotency_key?: string;
348396
348445
  }
348397
348446
  export interface BrainMemoryUpdateOutput {
348398
348447
  /**
package/dist/index.cjs CHANGED
@@ -1426,6 +1426,10 @@ var bindings = {
1426
1426
  "in": "body",
1427
1427
  "name": "content"
1428
1428
  },
1429
+ {
1430
+ "in": "body",
1431
+ "name": "idempotency_key"
1432
+ },
1429
1433
  {
1430
1434
  "in": "body",
1431
1435
  "name": "metadata"
@@ -1437,6 +1441,10 @@ var bindings = {
1437
1441
  {
1438
1442
  "in": "body",
1439
1443
  "name": "source_authority"
1444
+ },
1445
+ {
1446
+ "in": "body",
1447
+ "name": "extract"
1440
1448
  }
1441
1449
  ],
1442
1450
  "path": "/brain/memory",
@@ -1450,6 +1458,10 @@ var bindings = {
1450
1458
  {
1451
1459
  "in": "path",
1452
1460
  "name": "memory_id"
1461
+ },
1462
+ {
1463
+ "in": "body",
1464
+ "name": "idempotency_key"
1453
1465
  }
1454
1466
  ],
1455
1467
  "path": "/brain/memory/:memory_id",
@@ -1539,6 +1551,10 @@ var bindings = {
1539
1551
  {
1540
1552
  "in": "body",
1541
1553
  "name": "content"
1554
+ },
1555
+ {
1556
+ "in": "body",
1557
+ "name": "idempotency_key"
1542
1558
  }
1543
1559
  ],
1544
1560
  "path": "/brain/memory/:memory_id",
@@ -13157,7 +13173,7 @@ var compositions = {
13157
13173
  "brain_memory_delete": { "label": "Delete memory", "options": { "memory_id": "brain_memory_list" } },
13158
13174
  "brain_memory_get": { "pii": ["output.content"], "label": "Get memory", "options": { "memory_id": "brain_memory_list" } },
13159
13175
  "brain_memory_list": { "pii": ["output.memories[].content", "output.memories[].custom"], "label": "List memories" },
13160
- "brain_memory_search": { "pii": ["input.query", "output.profile[].content", "output.normal[].content", "output.proactive[].content"], "label": "Search memories" },
13176
+ "brain_memory_search": { "pii": ["input.query", "output.profile[].content", "output.profile[].source.content", "output.normal[].content", "output.normal[].source.content", "output.proactive[].content", "output.proactive[].source.content"], "label": "Search memories" },
13161
13177
  "brain_memory_stats": { "label": "Memory stats" },
13162
13178
  "brain_memory_update": { "pii": ["input.content"], "label": "Update memory", "options": { "memory_id": "brain_memory_list" } },
13163
13179
  "brain_usage_report": { "label": "Get usage report" },