@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.
@@ -7514,7 +7514,7 @@ var init_version = __esm({
7514
7514
  "src/version.ts"() {
7515
7515
  "use strict";
7516
7516
  init_captured_globals();
7517
- KERNEL_VERSION = true ? "1.174.0" : "0.0.0-dev";
7517
+ KERNEL_VERSION = true ? "1.174.2" : "0.0.0-dev";
7518
7518
  OS_RELEASE = "6.0.0-slicc";
7519
7519
  }
7520
7520
  });
@@ -16393,6 +16393,18 @@ function cleanOf(sab) {
16393
16393
  const changes = sab ? new ChangeView(sab) : void 0;
16394
16394
  return () => changes?.clean() === true;
16395
16395
  }
16396
+ function policyOps(kernel, o) {
16397
+ return {
16398
+ sudo: async (args) => await kernel.json({
16399
+ op: "proc-sudo",
16400
+ args: [...args],
16401
+ cwd: o.cwd,
16402
+ ...o.env.TERM !== void 0 ? { term: o.env.TERM } : {}
16403
+ }),
16404
+ visudo: async (call3) => await kernel.json({ ...call3, op: "proc-visudo" }),
16405
+ crontab: async (call3) => await kernel.json({ ...call3, op: "proc-crontab" })
16406
+ };
16407
+ }
16396
16408
  function createContext(o) {
16397
16409
  const { kernel } = o;
16398
16410
  const infos = new capturedMap();
@@ -16519,13 +16531,7 @@ function createContext(o) {
16519
16531
  sync,
16520
16532
  fetch: fetchOp(kernel),
16521
16533
  umask: async (mask) => await kernel.json(umaskRequest(mask)),
16522
- sudo: async (args) => await kernel.json({
16523
- op: "proc-sudo",
16524
- args: [...args],
16525
- cwd: o.cwd,
16526
- ...o.env.TERM !== void 0 ? { term: o.env.TERM } : {}
16527
- }),
16528
- crontab: async (call3) => await kernel.json({ ...call3, op: "proc-crontab" }),
16534
+ ...policyOps(kernel, o),
16529
16535
  ...children,
16530
16536
  net,
16531
16537
  websocket: websocketOp(kernel),