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