@ai-ecoverse/slicc-kernel 1.174.0 → 1.174.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 +26 -9
- package/dist/index.js +33 -0
- package/dist/index.js.map +3 -3
- package/dist/kernel-worker.js +14488 -14009
- package/dist/kernel-worker.js.map +4 -4
- package/dist/node-process-worker.cjs +14 -8
- package/dist/node-process-worker.cjs.map +3 -3
- package/dist/node-process-worker.js +14 -8
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +17259 -16779
- package/dist/node.js.map +4 -4
- package/dist/process-worker.js +14 -8
- package/dist/process-worker.js.map +3 -3
- package/dist/testing.js +4 -2
- package/dist/testing.js.map +2 -2
- package/dist/types/cron/clock.d.ts +3 -1
- package/dist/types/cron/schedule.d.ts +5 -3
- package/dist/types/cron/service.d.ts +1 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/kernel/host.d.ts +1 -0
- package/dist/types/kernel/process.d.ts +5 -3
- package/dist/types/launcher.d.ts +4 -1
- package/dist/types/node.d.ts +2 -1
- package/dist/types/process/js/js-context.d.ts +11 -0
- package/dist/types/serve.d.ts +1 -0
- package/dist/types/sudo-command.d.ts +3 -0
- package/dist/types/sudo.d.ts +14 -17
- package/dist/types/sudoers.d.ts +37 -0
- package/dist/types/time-zone.d.ts +11 -0
- package/package.json +5 -5
package/dist/process-worker.js
CHANGED
|
@@ -3118,7 +3118,7 @@ var init_version = __esm({
|
|
|
3118
3118
|
"src/version.ts"() {
|
|
3119
3119
|
"use strict";
|
|
3120
3120
|
init_captured_globals();
|
|
3121
|
-
KERNEL_VERSION = true ? "1.174.
|
|
3121
|
+
KERNEL_VERSION = true ? "1.174.2" : "0.0.0-dev";
|
|
3122
3122
|
OS_RELEASE = "6.0.0-slicc";
|
|
3123
3123
|
}
|
|
3124
3124
|
});
|
|
@@ -19127,6 +19127,18 @@ function cleanOf(sab) {
|
|
|
19127
19127
|
const changes = sab ? new ChangeView(sab) : void 0;
|
|
19128
19128
|
return () => changes?.clean() === true;
|
|
19129
19129
|
}
|
|
19130
|
+
function policyOps(kernel, o) {
|
|
19131
|
+
return {
|
|
19132
|
+
sudo: async (args) => await kernel.json({
|
|
19133
|
+
op: "proc-sudo",
|
|
19134
|
+
args: [...args],
|
|
19135
|
+
cwd: o.cwd,
|
|
19136
|
+
...o.env.TERM !== void 0 ? { term: o.env.TERM } : {}
|
|
19137
|
+
}),
|
|
19138
|
+
visudo: async (call2) => await kernel.json({ ...call2, op: "proc-visudo" }),
|
|
19139
|
+
crontab: async (call2) => await kernel.json({ ...call2, op: "proc-crontab" })
|
|
19140
|
+
};
|
|
19141
|
+
}
|
|
19130
19142
|
function createContext(o) {
|
|
19131
19143
|
const { kernel } = o;
|
|
19132
19144
|
const infos = new capturedMap();
|
|
@@ -19253,13 +19265,7 @@ function createContext(o) {
|
|
|
19253
19265
|
sync,
|
|
19254
19266
|
fetch: fetchOp(kernel),
|
|
19255
19267
|
umask: async (mask) => await kernel.json(umaskRequest(mask)),
|
|
19256
|
-
|
|
19257
|
-
op: "proc-sudo",
|
|
19258
|
-
args: [...args],
|
|
19259
|
-
cwd: o.cwd,
|
|
19260
|
-
...o.env.TERM !== void 0 ? { term: o.env.TERM } : {}
|
|
19261
|
-
}),
|
|
19262
|
-
crontab: async (call2) => await kernel.json({ ...call2, op: "proc-crontab" }),
|
|
19268
|
+
...policyOps(kernel, o),
|
|
19263
19269
|
...children,
|
|
19264
19270
|
net,
|
|
19265
19271
|
websocket: websocketOp(kernel),
|