@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.
@@ -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.0" : "0.0.0-dev";
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
- sudo: async (args) => await kernel.json({
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),