@rulvar/planner 1.3.0 → 1.3.2
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/README.md +33 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @rulvar/planner
|
|
2
|
+
|
|
3
|
+
The flagship rulvar hybrid mode: a planner model writes a workflow
|
|
4
|
+
script against the sanctioned `ctx` dialect; the package lints and
|
|
5
|
+
repairs it from structured diagnostics, compiles it with an import
|
|
6
|
+
allowlist, and executes it deterministically in the worker sandbox with
|
|
7
|
+
seeded, journaled globals. Exports `plan`, `runPlanned`, `compileScript`,
|
|
8
|
+
`WorkerSandboxRunner`, and `apiCard`.
|
|
9
|
+
|
|
10
|
+
The one-line mnemonic against its sibling: `@rulvar/planner` plans
|
|
11
|
+
before the run (it writes the script); `@rulvar/plan` replans during the
|
|
12
|
+
run (it revises the task plan).
|
|
13
|
+
|
|
14
|
+
Part of [rulvar](https://rulvar.com), an embeddable TypeScript engine
|
|
15
|
+
for durable, budget-bounded multi-agent LLM workflows, where a completed
|
|
16
|
+
LLM call is never paid for twice. Full documentation:
|
|
17
|
+
[docs.rulvar.com](https://docs.rulvar.com).
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm add @rulvar/core @rulvar/planner
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Documentation
|
|
26
|
+
|
|
27
|
+
- [The planner](https://docs.rulvar.com/guide/planner)
|
|
28
|
+
- [Orchestration modes](https://docs.rulvar.com/guide/orchestration-modes)
|
|
29
|
+
- [API reference](https://docs.rulvar.com/api/%40rulvar/planner/)
|
|
30
|
+
|
|
31
|
+
## License
|
|
32
|
+
|
|
33
|
+
[Apache-2.0](https://github.com/o-stepper/rulvar/blob/main/LICENSE)
|
package/dist/index.js
CHANGED
|
@@ -241,7 +241,7 @@ var WorkerSandboxRunner = class {
|
|
|
241
241
|
this.workerUrl = options?.workerUrl ?? new URL("./sandbox-worker.js", import.meta.url);
|
|
242
242
|
}
|
|
243
243
|
async execute(wf, ctx, args) {
|
|
244
|
-
if (wf.kind !== "compiled-workflow") throw new ConfigError("WorkerSandboxRunner executes CompiledWorkflow values only; closures run in process
|
|
244
|
+
if (wf.kind !== "compiled-workflow") throw new ConfigError("WorkerSandboxRunner executes CompiledWorkflow values only; closures run in process ");
|
|
245
245
|
const argsJson = toJournalValue(args ?? null, "sandbox workflow args");
|
|
246
246
|
const channel = new MessageChannel();
|
|
247
247
|
const worker = new Worker(this.workerUrl, { resourceLimits: { maxOldGenerationSizeMb: this.memoryMb } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/planner",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "rulvar flagship hybrid mode: plan agent, compileScript, WorkerSandboxRunner, self-repair loop.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"eslint": "^9.39.4",
|
|
26
|
-
"@rulvar/core": "1.3.
|
|
27
|
-
"eslint-plugin-rulvar": "1.3.
|
|
26
|
+
"@rulvar/core": "1.3.2",
|
|
27
|
+
"eslint-plugin-rulvar": "1.3.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22.20.0",
|
|
31
31
|
"tsdown": "^0.22.3",
|
|
32
32
|
"typescript": "~6.0.3",
|
|
33
|
-
"@rulvar/testing": "1.3.
|
|
33
|
+
"@rulvar/testing": "1.3.2"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|