@ai-ecoverse/slicc-kernel 1.140.2 → 1.140.4
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/kernel-worker.js +14 -4
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +7 -4
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +14 -4
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +7 -4
- package/dist/process-worker.js.map +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/types/kernel/host.d.ts +1 -0
- package/dist/types/kernel/net/loopback-names.d.ts +4 -0
- package/dist/types/kernel/protocol.d.ts +1 -0
- package/package.json +3 -3
|
@@ -4447,6 +4447,9 @@ function isHostname(name2) {
|
|
|
4447
4447
|
function hostnameOf(env) {
|
|
4448
4448
|
return isHostname(env.HOSTNAME) ? env.HOSTNAME : DEFAULT_HOSTNAME;
|
|
4449
4449
|
}
|
|
4450
|
+
function initHostname(init) {
|
|
4451
|
+
return isHostname(init.hostname) ? init.hostname : hostnameOf(init.env);
|
|
4452
|
+
}
|
|
4450
4453
|
function ownNames(hostname) {
|
|
4451
4454
|
return [.../* @__PURE__ */ new Set([hostname.toLowerCase(), ...LIBC_HOSTNAMES])];
|
|
4452
4455
|
}
|
|
@@ -6718,7 +6721,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
6718
6721
|
var init_version = __esm({
|
|
6719
6722
|
"src/version.ts"() {
|
|
6720
6723
|
"use strict";
|
|
6721
|
-
KERNEL_VERSION = true ? "1.140.
|
|
6724
|
+
KERNEL_VERSION = true ? "1.140.4" : "0.0.0-dev";
|
|
6722
6725
|
OS_RELEASE = "6.0.0-slicc";
|
|
6723
6726
|
}
|
|
6724
6727
|
});
|
|
@@ -13997,7 +14000,7 @@ function kernelWrappers(imports, module, deps) {
|
|
|
13997
14000
|
goneCwdGetcwd(imports, fsOf, kernelGlue);
|
|
13998
14001
|
kernelLink(imports, fsOf, memory, kernelGlue);
|
|
13999
14002
|
devCreations(imports, fsOf, memory, kernelGlue);
|
|
14000
|
-
kernelUname(imports,
|
|
14003
|
+
kernelUname(imports, initHostname(init), memory, kernelGlue);
|
|
14001
14004
|
wrapImport(
|
|
14002
14005
|
imports,
|
|
14003
14006
|
"flock",
|
|
@@ -14170,7 +14173,7 @@ async function runWasmProcess(init, port3, deps = {}) {
|
|
|
14170
14173
|
streams2.quitting = on;
|
|
14171
14174
|
});
|
|
14172
14175
|
atExit = () => streams2.exiting();
|
|
14173
|
-
useMounts(running.FS, init.env, true);
|
|
14176
|
+
useMounts(running.FS, { ...init.env, HOSTNAME: initHostname(init) }, true);
|
|
14174
14177
|
useZeroDevices(running.FS);
|
|
14175
14178
|
useProcfs(running.FS, sys, init.pid);
|
|
14176
14179
|
if (init.fork) restoreForkedStreams(running.FS, streams2, init.fork.streams ?? []);
|
|
@@ -14208,7 +14211,7 @@ async function runWasmProcess(init, port3, deps = {}) {
|
|
|
14208
14211
|
...callerOwner(running.FS, init)
|
|
14209
14212
|
});
|
|
14210
14213
|
running.sliccKernel.http = createHttpKernel(transport);
|
|
14211
|
-
running.sliccKernel.hostname =
|
|
14214
|
+
running.sliccKernel.hostname = initHostname(init);
|
|
14212
14215
|
running.sliccKernel.net = createSocketKernel({
|
|
14213
14216
|
transport,
|
|
14214
14217
|
Fs: running.FS,
|