@ai-ecoverse/slicc-kernel 1.148.0 → 1.148.1
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/dist/kernel-worker.js +18 -3
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +18 -3
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +1 -1
- package/dist/types/fs/opfs.d.ts +1 -0
- package/dist/types/fs/remote.d.ts +1 -0
- package/package.json +2 -2
package/dist/kernel-worker.js
CHANGED
|
@@ -1071,6 +1071,9 @@ var RemoteWatch = class {
|
|
|
1071
1071
|
await new Promise((resolve2) => setTimeout(resolve2, ANNOUNCE_POLL_MS));
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
+
legacy() {
|
|
1075
|
+
return [...this.peers].filter((peer) => !this.ackers.has(peer));
|
|
1076
|
+
}
|
|
1074
1077
|
crowded() {
|
|
1075
1078
|
return !this.settled || this.peers.size > 0;
|
|
1076
1079
|
}
|
|
@@ -1078,7 +1081,7 @@ var RemoteWatch = class {
|
|
|
1078
1081
|
return `${this.name}:${tab}`;
|
|
1079
1082
|
}
|
|
1080
1083
|
receive(data) {
|
|
1081
|
-
const sender = data.hello ?? data.here;
|
|
1084
|
+
const sender = data.hello ?? data.here ?? (data.paths !== void 0 ? data.tab : void 0);
|
|
1082
1085
|
if (sender !== void 0 && data.renames) this.ackers.add(sender);
|
|
1083
1086
|
if (data.hello !== void 0) this.greeted(data.hello);
|
|
1084
1087
|
if (data.renaming !== void 0 && data.tab !== void 0) this.heard(data);
|
|
@@ -1185,7 +1188,7 @@ var RemoteWatch = class {
|
|
|
1185
1188
|
announce(paths) {
|
|
1186
1189
|
this.mine = [...paths];
|
|
1187
1190
|
const seq2 = ++this.seq;
|
|
1188
|
-
this.channel.postMessage({ tab: this.tab, paths: this.mine, seq: seq2 });
|
|
1191
|
+
this.channel.postMessage({ tab: this.tab, paths: this.mine, seq: seq2, renames: true });
|
|
1189
1192
|
return this.acks(seq2, this.peers);
|
|
1190
1193
|
}
|
|
1191
1194
|
renamingTree(rename, cap = RENAME_ACK_MAX_MS) {
|
|
@@ -2812,6 +2815,17 @@ var OpfsFs = class {
|
|
|
2812
2815
|
}
|
|
2813
2816
|
async admitted(locks, lock, from, to, place, hooks) {
|
|
2814
2817
|
const remote = this.remote;
|
|
2818
|
+
const older = remote?.legacy() ?? [];
|
|
2819
|
+
if (older.length > 0) {
|
|
2820
|
+
this.ackBusy++;
|
|
2821
|
+
if (!this.warnedLegacy) {
|
|
2822
|
+
this.warnedLegacy = true;
|
|
2823
|
+
console.warn(
|
|
2824
|
+
`slicc-kernel: renaming ${from} to ${to} gave up (EBUSY): a tab running an older slicc-kernel shares this root and can't be waited for; reload it to rename directories (#1309)`
|
|
2825
|
+
);
|
|
2826
|
+
}
|
|
2827
|
+
throw fsError("EBUSY", from);
|
|
2828
|
+
}
|
|
2815
2829
|
if (remote && !this.shared() && !await remote.joinedAll(RENAME_ACK_MAX_MS)) {
|
|
2816
2830
|
this.ackBusy++;
|
|
2817
2831
|
console.warn(
|
|
@@ -2862,6 +2876,7 @@ var OpfsFs = class {
|
|
|
2862
2876
|
await run2;
|
|
2863
2877
|
}
|
|
2864
2878
|
renameAcks = 0;
|
|
2879
|
+
warnedLegacy = false;
|
|
2865
2880
|
ackBusy = 0;
|
|
2866
2881
|
ackMs = [];
|
|
2867
2882
|
ownLocks = /* @__PURE__ */ new Set();
|
|
@@ -7840,7 +7855,7 @@ function satisfies(version, range2) {
|
|
|
7840
7855
|
}
|
|
7841
7856
|
|
|
7842
7857
|
// src/version.ts
|
|
7843
|
-
var KERNEL_VERSION = true ? "1.148.
|
|
7858
|
+
var KERNEL_VERSION = true ? "1.148.1" : "0.0.0-dev";
|
|
7844
7859
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7845
7860
|
function procVersion() {
|
|
7846
7861
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|