@rulvar/planner 1.84.0 → 1.85.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/sandbox-worker.js +20 -0
- package/package.json +7 -7
package/dist/sandbox-worker.js
CHANGED
|
@@ -137,6 +137,26 @@ function main(port, init) {
|
|
|
137
137
|
Reflect.set(globalThis, "process", void 0);
|
|
138
138
|
Reflect.set(globalThis, "eval", void 0);
|
|
139
139
|
Reflect.set(globalThis, "Function", void 0);
|
|
140
|
+
const RealDate = Date;
|
|
141
|
+
Reflect.set(globalThis, "Date", new Proxy(RealDate, {
|
|
142
|
+
construct: (target, args, newTarget) => Reflect.construct(target, args.length === 0 ? [shimNow()] : args, newTarget),
|
|
143
|
+
apply: () => new RealDate(shimNow()).toString()
|
|
144
|
+
}));
|
|
145
|
+
const performanceRef = Reflect.get(globalThis, "performance");
|
|
146
|
+
if (typeof performanceRef === "object" && performanceRef !== null) {
|
|
147
|
+
const origin = logicalNow;
|
|
148
|
+
Reflect.set(performanceRef, "now", () => shimNow() - origin);
|
|
149
|
+
}
|
|
150
|
+
const cryptoRef = Reflect.get(globalThis, "crypto");
|
|
151
|
+
if (typeof cryptoRef === "object" && cryptoRef !== null) {
|
|
152
|
+
Reflect.set(cryptoRef, "randomUUID", shimUuid);
|
|
153
|
+
Reflect.set(cryptoRef, "getRandomValues", (view) => {
|
|
154
|
+
if (!ArrayBuffer.isView(view)) throw new TypeError("crypto.getRandomValues expects a typed array");
|
|
155
|
+
const bytes = new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
|
|
156
|
+
for (let i = 0; i < bytes.length; i += 1) bytes[i] = Math.floor(next() * 256);
|
|
157
|
+
return view;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
140
160
|
const asyncProto = Object.getPrototypeOf(shimAsyncMarker);
|
|
141
161
|
const AsyncFunctionCtor = asyncProto.constructor;
|
|
142
162
|
const denyCodegen = function constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulvar/planner",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.85.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,15 +23,15 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"acorn": "^8.17.0",
|
|
26
|
-
"eslint": "^9.39.
|
|
27
|
-
"@rulvar/core": "1.
|
|
28
|
-
"eslint-plugin-rulvar": "1.
|
|
26
|
+
"eslint": "^9.39.5",
|
|
27
|
+
"@rulvar/core": "1.85.0",
|
|
28
|
+
"eslint-plugin-rulvar": "1.85.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^22.20.
|
|
32
|
-
"tsdown": "^0.22.
|
|
31
|
+
"@types/node": "^22.20.1",
|
|
32
|
+
"tsdown": "^0.22.14",
|
|
33
33
|
"typescript": "~6.0.3",
|
|
34
|
-
"@rulvar/testing": "1.
|
|
34
|
+
"@rulvar/testing": "1.85.0"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|