@rulvar/core 1.59.0 → 1.59.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.
- package/dist/index.js +11 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8015,16 +8015,16 @@ var FileTranscriptStore = class {
|
|
|
8015
8015
|
*
|
|
8016
8016
|
* Unpriced models surface in `unpriced`, never as a silent zero.
|
|
8017
8017
|
*/
|
|
8018
|
-
const ROLES = [
|
|
8019
|
-
"orchestrate",
|
|
8020
|
-
"plan",
|
|
8021
|
-
"loop",
|
|
8022
|
-
"finalize",
|
|
8023
|
-
"extract",
|
|
8024
|
-
"summarize"
|
|
8025
|
-
];
|
|
8026
8018
|
function emptyByRole() {
|
|
8027
|
-
return
|
|
8019
|
+
return {
|
|
8020
|
+
orchestrate: 0,
|
|
8021
|
+
plan: 0,
|
|
8022
|
+
loop: 0,
|
|
8023
|
+
finalize: 0,
|
|
8024
|
+
extract: 0,
|
|
8025
|
+
summarize: 0,
|
|
8026
|
+
synthesize: 0
|
|
8027
|
+
};
|
|
8028
8028
|
}
|
|
8029
8029
|
/** The orchestrator sub-account naming rule of makeOrchestratorWorkflow. */
|
|
8030
8030
|
function isOrchestratorAccount(scope) {
|
|
@@ -10057,6 +10057,7 @@ const ZERO_USAGE$1 = {
|
|
|
10057
10057
|
cacheReadTokens: 0,
|
|
10058
10058
|
cacheWriteTokens: 0
|
|
10059
10059
|
};
|
|
10060
|
+
const wallRandom = Math.random.bind(globalThis);
|
|
10060
10061
|
function addUsage$1(total, turn) {
|
|
10061
10062
|
const sum = {
|
|
10062
10063
|
inputTokens: total.inputTokens + turn.inputTokens,
|
|
@@ -10893,7 +10894,7 @@ async function runAgent(options) {
|
|
|
10893
10894
|
const retryPolicy = options.retry?.policy ?? DEFAULT_RETRY_POLICY;
|
|
10894
10895
|
const retryOn = retryPolicy.retryOn ?? DEFAULT_RETRY_POLICY.retryOn ?? [];
|
|
10895
10896
|
const injectedSleep = options.retry?.sleep;
|
|
10896
|
-
const retryRandom = options.retry?.random ??
|
|
10897
|
+
const retryRandom = options.retry?.random ?? wallRandom;
|
|
10897
10898
|
const abortKind = () => options.budget?.signal?.aborted === true ? "budget" : options.signal?.aborted === true ? "external" : void 0;
|
|
10898
10899
|
const abortedOutcome = (aborted) => ({
|
|
10899
10900
|
turn: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/core",
|
|
3
|
-
"version": "1.59.
|
|
3
|
+
"version": "1.59.1",
|
|
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",
|