@rulvar/plan 1.17.0 → 1.19.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 -3
- package/dist/index.js +9 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdmissionDecision, AdmitRejectReason, AgentResult, CanonicalLadderSpec, ChatRequest, Effort, Engine, EntryRef, EscalationDecision, EscalationOptions, HashVersion, IsolationSpec, JournalEntry, JournalStore, Json, KbProposalTrigger, KeyDeriver, LadderSpec, LeasableStore, LineageStats, LogicalTaskId, NodeId, OrchestrateOptions, OrchestratorExtension, ProviderAdapter, ReuseConfig, RunHandle, SchemaSpec, SpawnLineageOpt, TerminationAccountSnapshot, TerminationLimits, ToolDef, TriggerClass, UsageLimits, WireError } from "@rulvar/core";
|
|
1
|
+
import { AdmissionDecision, AdmitRejectReason, AgentResult, CanonicalLadderSpec, ChatRequest, Effort, Engine, EntryRef, EscalationDecision, EscalationOptions, HashVersion, IsolationSpec, JournalEntry, JournalStore, Json, KbProposalTrigger, KeyDeriver, LadderSpec, LeasableStore, LineageStats, LogicalTaskId, NodeId, OrchestrateOptions, OrchestratorExtension, ProviderAdapter, ReuseConfig, RunHandle, RunOptions, SchemaSpec, SpawnLineageOpt, TerminationAccountSnapshot, TerminationLimits, ToolDef, TriggerClass, UsageLimits, WireError } from "@rulvar/core";
|
|
2
2
|
|
|
3
3
|
//#region src/plan-state.d.ts
|
|
4
4
|
/**
|
|
@@ -982,10 +982,16 @@ interface PlanRunnerOptions {
|
|
|
982
982
|
* the `orchestratePlanned` convenience surface.
|
|
983
983
|
*/
|
|
984
984
|
declare function planRunner(options?: PlanRunnerOptions): OrchestratorExtension;
|
|
985
|
-
/**
|
|
985
|
+
/**
|
|
986
|
+
* The PlanRunner entry surface: mode (c) plus the extension in one call.
|
|
987
|
+
* `runOptions` are the ordinary engine RunOptions of the created run:
|
|
988
|
+
* `runOptions.budgetUsd` is the ROOT hard ceiling over the whole tree,
|
|
989
|
+
* immutable after start, while `opts.budget` only shapes the
|
|
990
|
+
* orchestrator's own sub-account inside it (v1.18.0 review P1-5).
|
|
991
|
+
*/
|
|
986
992
|
declare function orchestratePlanned(engine: Engine, goal: string, opts?: OrchestrateOptions & {
|
|
987
993
|
plan?: PlanRunnerOptions;
|
|
988
|
-
}): RunHandle<unknown>;
|
|
994
|
+
}, runOptions?: RunOptions): RunHandle<unknown>;
|
|
989
995
|
//#endregion
|
|
990
996
|
//#region src/cassettes.d.ts
|
|
991
997
|
/** One normalized-cassette fixture file (cassettes/<id>.json). */
|
package/dist/index.js
CHANGED
|
@@ -3683,13 +3683,19 @@ function planRunner(options) {
|
|
|
3683
3683
|
}
|
|
3684
3684
|
};
|
|
3685
3685
|
}
|
|
3686
|
-
/**
|
|
3687
|
-
|
|
3686
|
+
/**
|
|
3687
|
+
* The PlanRunner entry surface: mode (c) plus the extension in one call.
|
|
3688
|
+
* `runOptions` are the ordinary engine RunOptions of the created run:
|
|
3689
|
+
* `runOptions.budgetUsd` is the ROOT hard ceiling over the whole tree,
|
|
3690
|
+
* immutable after start, while `opts.budget` only shapes the
|
|
3691
|
+
* orchestrator's own sub-account inside it (v1.18.0 review P1-5).
|
|
3692
|
+
*/
|
|
3693
|
+
function orchestratePlanned(engine, goal, opts, runOptions) {
|
|
3688
3694
|
const { plan, ...orchestrateOpts } = opts ?? {};
|
|
3689
3695
|
return orchestrate(engine, goal, {
|
|
3690
3696
|
...orchestrateOpts,
|
|
3691
3697
|
extension: planRunner(plan)
|
|
3692
|
-
});
|
|
3698
|
+
}, runOptions);
|
|
3693
3699
|
}
|
|
3694
3700
|
//#endregion
|
|
3695
3701
|
//#region src/cassettes.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/plan",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Rulvar adaptive orchestration extension: PlanRunner, RunLedger, escalation extensions, ModelLadder configuration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@rulvar/core": "1.
|
|
25
|
+
"@rulvar/core": "1.19.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.20.0",
|
|
29
29
|
"tsdown": "^0.22.3",
|
|
30
30
|
"typescript": "~6.0.3",
|
|
31
|
-
"@rulvar/store-sqlite": "1.
|
|
31
|
+
"@rulvar/store-sqlite": "1.19.0"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|