@rulvar/planner 1.33.0 → 1.35.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.js +8 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -277,6 +277,14 @@ var WorkerSandboxRunner = class {
|
|
|
277
277
|
workerUrl;
|
|
278
278
|
execArgv;
|
|
279
279
|
constructor(options) {
|
|
280
|
+
if (options?.timeoutMs !== void 0) {
|
|
281
|
+
const timeoutMs = options.timeoutMs;
|
|
282
|
+
if (typeof timeoutMs !== "number" || !Number.isInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > 2147483647) throw new ConfigError(`WorkerSandboxRunner timeoutMs must be an integer between 1 and 2147483647 ms (the Node timer maximum); got ${String(timeoutMs)}`);
|
|
283
|
+
}
|
|
284
|
+
if (options?.memoryMb !== void 0) {
|
|
285
|
+
const memoryMb = options.memoryMb;
|
|
286
|
+
if (typeof memoryMb !== "number" || !Number.isInteger(memoryMb) || memoryMb < 1) throw new ConfigError(`WorkerSandboxRunner memoryMb must be a positive integer; got ${String(memoryMb)}`);
|
|
287
|
+
}
|
|
280
288
|
this.timeoutMs = options?.timeoutMs ?? 3e5;
|
|
281
289
|
this.memoryMb = options?.memoryMb ?? 512;
|
|
282
290
|
this.workerUrl = options?.workerUrl ?? new URL("./sandbox-worker.js", import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/planner",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
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.
|
|
27
|
-
"eslint-plugin-rulvar": "1.
|
|
26
|
+
"@rulvar/core": "1.35.0",
|
|
27
|
+
"eslint-plugin-rulvar": "1.35.0"
|
|
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.
|
|
33
|
+
"@rulvar/testing": "1.35.0"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|