@rulvar/core 1.165.0 → 1.167.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/dist/index.d.ts +9 -5
- package/dist/index.js +11 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1565,11 +1565,14 @@ interface TerminalEnvelope {
|
|
|
1565
1565
|
* report. `'journal'` means a process that never held the run rebuilt
|
|
1566
1566
|
* it from the journal that recorded the settle (a restart, a second
|
|
1567
1567
|
* replica, an offline reader): the money, the usage, the agent count
|
|
1568
|
-
* and the settlement verdict are the SAME facts
|
|
1569
|
-
*
|
|
1570
|
-
*
|
|
1571
|
-
*
|
|
1572
|
-
*
|
|
1568
|
+
* and the settlement verdict are the SAME facts. `completion` is
|
|
1569
|
+
* present exactly when the settle recorded the semantic lift beside
|
|
1570
|
+
* its output digest (the persisted-terminal tail); a settle written
|
|
1571
|
+
* before the lift rode it stays absent. `error` is ABSENT because
|
|
1572
|
+
* the journal does not record the run's own wire error, and absence
|
|
1573
|
+
* under this provenance means "not recorded", never "the workflow
|
|
1574
|
+
* claimed nothing" or "the run did not fail". A consumer that needs
|
|
1575
|
+
* the error reads it from the live outcome or the run:end event.
|
|
1573
1576
|
*/
|
|
1574
1577
|
provenance?: "journal";
|
|
1575
1578
|
}
|
|
@@ -11146,6 +11149,7 @@ declare function lastRunSettle(entries: readonly JournalEntry[]): {
|
|
|
11146
11149
|
runStatus: RunStatus;
|
|
11147
11150
|
seq: number;
|
|
11148
11151
|
outputHash?: string;
|
|
11152
|
+
completion?: "complete" | "partial" | "rejected";
|
|
11149
11153
|
} | undefined;
|
|
11150
11154
|
type RunAuditVerdict = "consistent" | "meta-behind" | "stranded" | "suspect";
|
|
11151
11155
|
interface RunStateAudit {
|
package/dist/index.js
CHANGED
|
@@ -8309,11 +8309,15 @@ function lastRunSettle(entries) {
|
|
|
8309
8309
|
const entry = entries[i];
|
|
8310
8310
|
if (entry === void 0 || entry.kind !== "decision") continue;
|
|
8311
8311
|
const value = entry.value;
|
|
8312
|
-
if (value?.decisionType === "run_settle" && typeof value.runStatus === "string" && RUN_STATUSES.has(value.runStatus))
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8312
|
+
if (value?.decisionType === "run_settle" && typeof value.runStatus === "string" && RUN_STATUSES.has(value.runStatus)) {
|
|
8313
|
+
const completion = value.completion;
|
|
8314
|
+
return {
|
|
8315
|
+
runStatus: value.runStatus,
|
|
8316
|
+
seq: entry.seq,
|
|
8317
|
+
...typeof value.outputHash === "string" ? { outputHash: value.outputHash } : {},
|
|
8318
|
+
...completion === "complete" || completion === "partial" || completion === "rejected" ? { completion } : {}
|
|
8319
|
+
};
|
|
8320
|
+
}
|
|
8317
8321
|
}
|
|
8318
8322
|
}
|
|
8319
8323
|
function structure(entries) {
|
|
@@ -13848,6 +13852,7 @@ function persistedTerminalEnvelope(input) {
|
|
|
13848
13852
|
workflow,
|
|
13849
13853
|
outcome: {
|
|
13850
13854
|
status: settle.runStatus,
|
|
13855
|
+
...settle.completion === void 0 ? {} : { completion: settle.completion },
|
|
13851
13856
|
usage: ledger.usage,
|
|
13852
13857
|
cost: costReportFromJournal(input.entries, input.priceUsd)
|
|
13853
13858
|
},
|
|
@@ -24365,6 +24370,7 @@ function createEngine(options) {
|
|
|
24365
24370
|
runStatus: status,
|
|
24366
24371
|
segment: segmentsBefore + 1,
|
|
24367
24372
|
...outputHash === void 0 ? {} : { outputHash },
|
|
24373
|
+
...lifted === void 0 ? {} : lifted,
|
|
24368
24374
|
...appliedPricing === void 0 || options.pricing === void 0 ? {} : {
|
|
24369
24375
|
pricing: appliedPricing,
|
|
24370
24376
|
pricingVersion: options.pricing.pricingVersion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.167.0",
|
|
4
4
|
"description": "Rulvar core: L0 contracts, journal kernel, ctx primitives, agent runtime, model router, tool system, dynamic orchestrator, InMemory and JSONL stores, event stream.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|