@lessly/sdk-app 94.2.0 → 95.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 +10 -5
- package/dist/_types/gen/types.gen.d.ts +67 -2
- package/package.json +2 -2
- package/src/gen/types.gen.ts +67 -2
package/CHANGELOG.md
CHANGED
|
@@ -125,9 +125,14 @@ 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
|
-
##
|
|
129
|
-
|
|
130
|
-
###
|
|
131
|
-
-
|
|
132
|
-
-
|
|
128
|
+
## 95.0.0 (major)
|
|
129
|
+
|
|
130
|
+
### brain
|
|
131
|
+
- `brain_daemon_batch_status`: type change on `run (output)`
|
|
132
|
+
- `brain_daemon_runs`: new optional field `runs.planLimit (output)`
|
|
133
|
+
- `brain_memory_add`: new optional field `error_code (output)`
|
|
134
|
+
- `brain_memory_add`: new optional field `extraction (output)`
|
|
135
|
+
- `brain_memory_add`: description updated
|
|
136
|
+
- `brain_memory_stats`: new optional field `extraction_gaps (output)`
|
|
137
|
+
- `brain_memory_stats`: description updated
|
|
133
138
|
|
|
@@ -71239,8 +71239,18 @@ export interface BrainDaemonBatchStatusOutput {
|
|
|
71239
71239
|
submitted?: number;
|
|
71240
71240
|
};
|
|
71241
71241
|
status: string;
|
|
71242
|
-
outcome: (("finalized" | "finalized-with-fallback" | "below-min-files" | "nothing-submitted" | "timeout" | "failed" | "finalize-failed" | "crash") | null);
|
|
71242
|
+
outcome: (("finalized" | "finalized-with-fallback" | "below-min-files" | "nothing-submitted" | "timeout" | "failed" | "finalize-failed" | "crash" | "billing-blocked") | null);
|
|
71243
71243
|
elapsedMs: (number | null);
|
|
71244
|
+
planLimit: ({
|
|
71245
|
+
/**
|
|
71246
|
+
* Billing's reason for the stop (e.g. trial_cap_reached); null when billing gave none
|
|
71247
|
+
*/
|
|
71248
|
+
reason: (string | null);
|
|
71249
|
+
/**
|
|
71250
|
+
* Billing's upgrade link; null when billing gave none
|
|
71251
|
+
*/
|
|
71252
|
+
upgradeUrl: (string | null);
|
|
71253
|
+
} | null);
|
|
71244
71254
|
startedAt: string;
|
|
71245
71255
|
batchJobId: (string | null);
|
|
71246
71256
|
finishedAt: (string | null);
|
|
@@ -71705,6 +71715,19 @@ export interface BrainDaemonRunsOutput {
|
|
|
71705
71715
|
* How a batch run finished, in the batch pipeline's own words (e.g. finalized, timeout, crash); null for a realtime run
|
|
71706
71716
|
*/
|
|
71707
71717
|
outcome: (string | null);
|
|
71718
|
+
/**
|
|
71719
|
+
* Set when the run stopped on the product's plan limit before ingesting anything; null for every other run
|
|
71720
|
+
*/
|
|
71721
|
+
planLimit: ({
|
|
71722
|
+
/**
|
|
71723
|
+
* Billing's reason for the stop (e.g. trial_cap_reached); null when billing gave none
|
|
71724
|
+
*/
|
|
71725
|
+
reason: (string | null);
|
|
71726
|
+
/**
|
|
71727
|
+
* Billing's upgrade link; null when billing gave none
|
|
71728
|
+
*/
|
|
71729
|
+
upgradeUrl: (string | null);
|
|
71730
|
+
} | null);
|
|
71708
71731
|
/**
|
|
71709
71732
|
* When the run started, ISO 8601 timestamp
|
|
71710
71733
|
*/
|
|
@@ -72500,13 +72523,38 @@ export interface BrainMemoryAddInput {
|
|
|
72500
72523
|
}
|
|
72501
72524
|
export interface BrainMemoryAddOutput {
|
|
72502
72525
|
/**
|
|
72503
|
-
* True when the memory was stored
|
|
72526
|
+
* True when the memory was stored and its facts extracted (or there was nothing to extract). False when extraction failed — the raw memory is still stored under memory_id — or when the memory was not stored at all
|
|
72504
72527
|
*/
|
|
72505
72528
|
success: boolean;
|
|
72506
72529
|
/**
|
|
72507
72530
|
* Engine id of the memory just stored; keep it to read, replace or delete the memory later
|
|
72508
72531
|
*/
|
|
72509
72532
|
memory_id: string;
|
|
72533
|
+
/**
|
|
72534
|
+
* Present only when success is false. Tell stored from not stored by `extraction`, not by this code: with extraction.status 'failed' the raw memory IS stored and searchable under memory_id, only its facts are missing — do not re-add the same content, that stores a duplicate. With no `extraction` nothing was stored, and the add can be retried
|
|
72535
|
+
*/
|
|
72536
|
+
error_code?: string;
|
|
72537
|
+
/**
|
|
72538
|
+
* What fact extraction made of this memory
|
|
72539
|
+
*/
|
|
72540
|
+
extraction?: {
|
|
72541
|
+
/**
|
|
72542
|
+
* How many memories extraction stored from this write, across every derived layer (facts, identity, profile, summaries) — not a count of facts alone
|
|
72543
|
+
*/
|
|
72544
|
+
items: number;
|
|
72545
|
+
/**
|
|
72546
|
+
* 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
|
|
72547
|
+
*/
|
|
72548
|
+
status: ("ok" | "empty" | "failed" | "skipped");
|
|
72549
|
+
/**
|
|
72550
|
+
* The engine's code when extraction failed — or, with status ok, when it ran degraded but still stored its facts
|
|
72551
|
+
*/
|
|
72552
|
+
error_code?: string;
|
|
72553
|
+
/**
|
|
72554
|
+
* The engine's own words for that failure or degradation — quote it when reporting a problem
|
|
72555
|
+
*/
|
|
72556
|
+
error_message?: string;
|
|
72557
|
+
};
|
|
72510
72558
|
/**
|
|
72511
72559
|
* Engine request id for this call — quote it when reporting a problem
|
|
72512
72560
|
*/
|
|
@@ -72850,6 +72898,23 @@ export interface BrainMemoryStatsOutput {
|
|
|
72850
72898
|
*/
|
|
72851
72899
|
entityCount: number;
|
|
72852
72900
|
};
|
|
72901
|
+
/**
|
|
72902
|
+
* Raw memories left without facts, for the caller's product and scope. Counts only, and a lower bound. Null when the engine could not compute it
|
|
72903
|
+
*/
|
|
72904
|
+
extraction_gaps: ({
|
|
72905
|
+
/**
|
|
72906
|
+
* Raw memories (l1_raw) the scope holds
|
|
72907
|
+
*/
|
|
72908
|
+
raw_total: number;
|
|
72909
|
+
/**
|
|
72910
|
+
* Raw memories no derived memory (fact, identity) points back to — their extraction produced nothing
|
|
72911
|
+
*/
|
|
72912
|
+
raw_without_derived: number;
|
|
72913
|
+
/**
|
|
72914
|
+
* Of those, raw memories still in shadow status
|
|
72915
|
+
*/
|
|
72916
|
+
shadow_without_derived: number;
|
|
72917
|
+
} | null);
|
|
72853
72918
|
}
|
|
72854
72919
|
export interface BrainMemoryUpdateInput {
|
|
72855
72920
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
3
|
"description": "The Lessly SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lessly Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lessly platform services with full type safety and autocompletion.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "95.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/lepsto/lepsto-sdk-app.git"
|
|
@@ -220,5 +220,5 @@
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
|
-
"sdkContentHash": "sha256:
|
|
223
|
+
"sdkContentHash": "sha256:0f92375cfab82c13bb7e194d08056717ba794240b9785855a6be4cb37e954d82"
|
|
224
224
|
}
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -65760,8 +65760,18 @@ finalized?: number
|
|
|
65760
65760
|
submitted?: number
|
|
65761
65761
|
}
|
|
65762
65762
|
status: string
|
|
65763
|
-
outcome: (("finalized" | "finalized-with-fallback" | "below-min-files" | "nothing-submitted" | "timeout" | "failed" | "finalize-failed" | "crash") | null)
|
|
65763
|
+
outcome: (("finalized" | "finalized-with-fallback" | "below-min-files" | "nothing-submitted" | "timeout" | "failed" | "finalize-failed" | "crash" | "billing-blocked") | null)
|
|
65764
65764
|
elapsedMs: (number | null)
|
|
65765
|
+
planLimit: ({
|
|
65766
|
+
/**
|
|
65767
|
+
* Billing's reason for the stop (e.g. trial_cap_reached); null when billing gave none
|
|
65768
|
+
*/
|
|
65769
|
+
reason: (string | null)
|
|
65770
|
+
/**
|
|
65771
|
+
* Billing's upgrade link; null when billing gave none
|
|
65772
|
+
*/
|
|
65773
|
+
upgradeUrl: (string | null)
|
|
65774
|
+
} | null)
|
|
65765
65775
|
startedAt: string
|
|
65766
65776
|
batchJobId: (string | null)
|
|
65767
65777
|
finishedAt: (string | null)
|
|
@@ -66240,6 +66250,19 @@ status: string
|
|
|
66240
66250
|
* How a batch run finished, in the batch pipeline's own words (e.g. finalized, timeout, crash); null for a realtime run
|
|
66241
66251
|
*/
|
|
66242
66252
|
outcome: (string | null)
|
|
66253
|
+
/**
|
|
66254
|
+
* Set when the run stopped on the product's plan limit before ingesting anything; null for every other run
|
|
66255
|
+
*/
|
|
66256
|
+
planLimit: ({
|
|
66257
|
+
/**
|
|
66258
|
+
* Billing's reason for the stop (e.g. trial_cap_reached); null when billing gave none
|
|
66259
|
+
*/
|
|
66260
|
+
reason: (string | null)
|
|
66261
|
+
/**
|
|
66262
|
+
* Billing's upgrade link; null when billing gave none
|
|
66263
|
+
*/
|
|
66264
|
+
upgradeUrl: (string | null)
|
|
66265
|
+
} | null)
|
|
66243
66266
|
/**
|
|
66244
66267
|
* When the run started, ISO 8601 timestamp
|
|
66245
66268
|
*/
|
|
@@ -67057,13 +67080,38 @@ source_authority?: ("policy" | "official" | "team" | "informal")
|
|
|
67057
67080
|
|
|
67058
67081
|
export interface BrainMemoryAddOutput {
|
|
67059
67082
|
/**
|
|
67060
|
-
* True when the memory was stored
|
|
67083
|
+
* True when the memory was stored and its facts extracted (or there was nothing to extract). False when extraction failed — the raw memory is still stored under memory_id — or when the memory was not stored at all
|
|
67061
67084
|
*/
|
|
67062
67085
|
success: boolean
|
|
67063
67086
|
/**
|
|
67064
67087
|
* Engine id of the memory just stored; keep it to read, replace or delete the memory later
|
|
67065
67088
|
*/
|
|
67066
67089
|
memory_id: string
|
|
67090
|
+
/**
|
|
67091
|
+
* Present only when success is false. Tell stored from not stored by `extraction`, not by this code: with extraction.status 'failed' the raw memory IS stored and searchable under memory_id, only its facts are missing — do not re-add the same content, that stores a duplicate. With no `extraction` nothing was stored, and the add can be retried
|
|
67092
|
+
*/
|
|
67093
|
+
error_code?: string
|
|
67094
|
+
/**
|
|
67095
|
+
* What fact extraction made of this memory
|
|
67096
|
+
*/
|
|
67097
|
+
extraction?: {
|
|
67098
|
+
/**
|
|
67099
|
+
* How many memories extraction stored from this write, across every derived layer (facts, identity, profile, summaries) — not a count of facts alone
|
|
67100
|
+
*/
|
|
67101
|
+
items: number
|
|
67102
|
+
/**
|
|
67103
|
+
* 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
|
|
67104
|
+
*/
|
|
67105
|
+
status: ("ok" | "empty" | "failed" | "skipped")
|
|
67106
|
+
/**
|
|
67107
|
+
* The engine's code when extraction failed — or, with status ok, when it ran degraded but still stored its facts
|
|
67108
|
+
*/
|
|
67109
|
+
error_code?: string
|
|
67110
|
+
/**
|
|
67111
|
+
* The engine's own words for that failure or degradation — quote it when reporting a problem
|
|
67112
|
+
*/
|
|
67113
|
+
error_message?: string
|
|
67114
|
+
}
|
|
67067
67115
|
/**
|
|
67068
67116
|
* Engine request id for this call — quote it when reporting a problem
|
|
67069
67117
|
*/
|
|
@@ -67417,6 +67465,23 @@ knowledge: {
|
|
|
67417
67465
|
*/
|
|
67418
67466
|
entityCount: number
|
|
67419
67467
|
}
|
|
67468
|
+
/**
|
|
67469
|
+
* Raw memories left without facts, for the caller's product and scope. Counts only, and a lower bound. Null when the engine could not compute it
|
|
67470
|
+
*/
|
|
67471
|
+
extraction_gaps: ({
|
|
67472
|
+
/**
|
|
67473
|
+
* Raw memories (l1_raw) the scope holds
|
|
67474
|
+
*/
|
|
67475
|
+
raw_total: number
|
|
67476
|
+
/**
|
|
67477
|
+
* Raw memories no derived memory (fact, identity) points back to — their extraction produced nothing
|
|
67478
|
+
*/
|
|
67479
|
+
raw_without_derived: number
|
|
67480
|
+
/**
|
|
67481
|
+
* Of those, raw memories still in shadow status
|
|
67482
|
+
*/
|
|
67483
|
+
shadow_without_derived: number
|
|
67484
|
+
} | null)
|
|
67420
67485
|
}
|
|
67421
67486
|
|
|
67422
67487
|
export interface BrainMemoryUpdateInput {
|