@elpapi42/pi-fleet 0.1.0-beta.13 → 0.1.0-beta.14
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/CHANGELOG.md +6 -0
- package/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/runtime-manifest.json +9 -9
- package/dist/runtime-meta.json +4 -4
- package/dist/runtime.mjs +13 -1
- package/dist/runtime.mjs.map +3 -3
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 4,
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@elpapi42/pi-fleet",
|
|
5
|
-
"version": "0.1.0-beta.
|
|
5
|
+
"version": "0.1.0-beta.14"
|
|
6
6
|
},
|
|
7
7
|
"piRuntime": {
|
|
8
8
|
"mode": "external"
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
{
|
|
22
22
|
"path": "dist/cli.mjs",
|
|
23
23
|
"bytes": 301006,
|
|
24
|
-
"sha256": "
|
|
24
|
+
"sha256": "350ce690fbb485e0f5ffae02faaa99d36a685e555a060be895adb3eb0e77d3e5"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"path": "dist/cli.mjs.map",
|
|
28
28
|
"bytes": 639227,
|
|
29
|
-
"sha256": "
|
|
29
|
+
"sha256": "9af6e394492cf3a8478a75a6af9a37a7a14dd97b75977badb496885c66cf2299"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"path": "dist/client-meta.json",
|
|
@@ -171,17 +171,17 @@
|
|
|
171
171
|
{
|
|
172
172
|
"path": "dist/runtime-meta.json",
|
|
173
173
|
"bytes": 252775,
|
|
174
|
-
"sha256": "
|
|
174
|
+
"sha256": "0c4e6ff818fdb142095d76a22cbdd35d9cbc0fdc34f5737c430945ccf090e3f1"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"path": "dist/runtime.mjs",
|
|
178
|
-
"bytes":
|
|
179
|
-
"sha256": "
|
|
178
|
+
"bytes": 450893,
|
|
179
|
+
"sha256": "7c91933ee37b3813baff594fe8d1b57f795a76f6e6d4695c77ff0889280b10ec"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"path": "dist/runtime.mjs.map",
|
|
183
|
-
"bytes":
|
|
184
|
-
"sha256": "
|
|
183
|
+
"bytes": 1006615,
|
|
184
|
+
"sha256": "91d078a3815a1bb2bfc8999b3d15e5469dc2fa1872bbedc7739ba5b921bdaa7e"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"path": "dist/runtime/semantic-events.d.ts",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
{
|
|
207
207
|
"path": "package.json",
|
|
208
208
|
"bytes": 2807,
|
|
209
|
-
"sha256": "
|
|
209
|
+
"sha256": "42d9ae8d279942d1936fff94999ac0372753ff68d6a0f3726b68e9fbcf3a4cb7"
|
|
210
210
|
}
|
|
211
211
|
],
|
|
212
212
|
"dependencies": [
|
package/dist/runtime-meta.json
CHANGED
|
@@ -6595,7 +6595,7 @@
|
|
|
6595
6595
|
"format": "esm"
|
|
6596
6596
|
},
|
|
6597
6597
|
"src/entry/runtime.ts": {
|
|
6598
|
-
"bytes":
|
|
6598
|
+
"bytes": 11622,
|
|
6599
6599
|
"imports": [
|
|
6600
6600
|
{
|
|
6601
6601
|
"path": "node:fs",
|
|
@@ -6696,7 +6696,7 @@
|
|
|
6696
6696
|
"imports": [],
|
|
6697
6697
|
"exports": [],
|
|
6698
6698
|
"inputs": {},
|
|
6699
|
-
"bytes":
|
|
6699
|
+
"bytes": 1006615
|
|
6700
6700
|
},
|
|
6701
6701
|
"dist/runtime.mjs": {
|
|
6702
6702
|
"imports": [
|
|
@@ -6850,7 +6850,7 @@
|
|
|
6850
6850
|
"entryPoint": "src/entry/runtime.ts",
|
|
6851
6851
|
"inputs": {
|
|
6852
6852
|
"src/entry/runtime.ts": {
|
|
6853
|
-
"bytesInOutput":
|
|
6853
|
+
"bytesInOutput": 9084
|
|
6854
6854
|
},
|
|
6855
6855
|
"src/runtime/receive-pager.ts": {
|
|
6856
6856
|
"bytesInOutput": 6993
|
|
@@ -7390,7 +7390,7 @@
|
|
|
7390
7390
|
"bytesInOutput": 282
|
|
7391
7391
|
}
|
|
7392
7392
|
},
|
|
7393
|
-
"bytes":
|
|
7393
|
+
"bytes": 450893
|
|
7394
7394
|
}
|
|
7395
7395
|
}
|
|
7396
7396
|
}
|
package/dist/runtime.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/entry/runtime.ts
|
|
8
|
-
import { existsSync, readdirSync as readdirSync2, statSync } from "node:fs";
|
|
8
|
+
import { existsSync, readFileSync as readFileSync2, readdirSync as readdirSync2, statSync } from "node:fs";
|
|
9
9
|
import { DatabaseSync as DatabaseSync2 } from "node:sqlite";
|
|
10
10
|
import { pathToFileURL } from "node:url";
|
|
11
11
|
|
|
@@ -11764,10 +11764,12 @@ function assertNoOtherProcessHasDatabaseOpen(path, procRoot = "/proc") {
|
|
|
11764
11764
|
continue;
|
|
11765
11765
|
}
|
|
11766
11766
|
if (currentUid !== void 0 && owner !== currentUid) continue;
|
|
11767
|
+
if (isZombieProcess(processPath)) continue;
|
|
11767
11768
|
let descriptors;
|
|
11768
11769
|
try {
|
|
11769
11770
|
descriptors = readdirSync2(`${processPath}/fd`);
|
|
11770
11771
|
} catch (error) {
|
|
11772
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT") continue;
|
|
11771
11773
|
throw new Error(`Cannot prove legacy runtime ${entry} released pi-fleet state`, {
|
|
11772
11774
|
cause: error
|
|
11773
11775
|
});
|
|
@@ -11787,6 +11789,16 @@ function assertNoOtherProcessHasDatabaseOpen(path, procRoot = "/proc") {
|
|
|
11787
11789
|
}
|
|
11788
11790
|
}
|
|
11789
11791
|
}
|
|
11792
|
+
function isZombieProcess(processPath) {
|
|
11793
|
+
let stat3;
|
|
11794
|
+
try {
|
|
11795
|
+
stat3 = readFileSync2(`${processPath}/stat`, "utf8");
|
|
11796
|
+
} catch {
|
|
11797
|
+
return false;
|
|
11798
|
+
}
|
|
11799
|
+
const afterComm = stat3.slice(stat3.lastIndexOf(")") + 1).trim();
|
|
11800
|
+
return afterComm.startsWith("Z");
|
|
11801
|
+
}
|
|
11790
11802
|
if (process.argv[1] !== void 0 && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
11791
11803
|
await runRuntime();
|
|
11792
11804
|
}
|