@mean-weasel/lineage 0.1.13 → 0.1.15
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 +12 -0
- package/README.md +37 -3
- package/dist/cli/lineage-channel.js +61 -34
- package/dist/cli/lineage-channel.js.map +3 -3
- package/dist/cli/lineage-dev.js +161 -15
- package/dist/cli/lineage-dev.js.map +3 -3
- package/dist/cli/lineage-preview.js +161 -15
- package/dist/cli/lineage-preview.js.map +3 -3
- package/dist/cli/lineage.js +161 -15
- package/dist/cli/lineage.js.map +3 -3
- package/dist/runtime-build.json +4 -4
- package/dist/server.js +13 -7
- package/dist/server.js.map +3 -3
- package/dist/web/assets/{index-3uJbXqPS.css → app-CDxSvoD3.css} +1 -1
- package/dist/web/assets/app-CYUgf6rX.js +16 -0
- package/dist/web/assets/jsx-runtime-_Rdg6et1.js +8 -0
- package/dist/web/assets/landing-D3Y679_B.css +1 -0
- package/dist/web/assets/landing-ii8AH_DG.js +1 -0
- package/dist/web/index.html +3 -2
- package/dist/web/landing/index.html +19 -0
- package/package.json +2 -1
- package/dist/web/assets/index-BrGIkUus.js +0 -23
package/dist/runtime-build.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_fingerprint": "
|
|
2
|
+
"build_fingerprint": "5726f451f6c74d249f9d81a64a3f805e45f49c94f947706bfc71e639cc15dffc",
|
|
3
3
|
"package_name": "@mean-weasel/lineage",
|
|
4
|
-
"package_version": "0.1.
|
|
4
|
+
"package_version": "0.1.15",
|
|
5
5
|
"schema_version": "lineage.runtime_build.v1",
|
|
6
6
|
"source_dirty": false,
|
|
7
|
-
"source_fingerprint": "
|
|
8
|
-
"source_git_sha": "
|
|
7
|
+
"source_fingerprint": "a92b1501637f3b1bc2f5a659bbfb248c6adce52ef14ba2bcc532de35b86390df",
|
|
8
|
+
"source_git_sha": "6883a78641c32006bd66d0ea068ecbc4bbf7ea94"
|
|
9
9
|
}
|
package/dist/server.js
CHANGED
|
@@ -5,7 +5,7 @@ import { existsSync as existsSync14 } from "node:fs";
|
|
|
5
5
|
import { join as join14 } from "node:path";
|
|
6
6
|
|
|
7
7
|
// src/server/assetCore.ts
|
|
8
|
-
import { existsSync as existsSync6, mkdirSync as mkdirSync5, readdirSync as readdirSync2, readFileSync as readFileSync4, unlinkSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
8
|
+
import { chmodSync as chmodSync2, existsSync as existsSync6, mkdirSync as mkdirSync5, readdirSync as readdirSync2, readFileSync as readFileSync4, unlinkSync, writeFileSync as writeFileSync3 } from "node:fs";
|
|
9
9
|
import { dirname as dirname4, join as join6, resolve as resolve4 } from "node:path";
|
|
10
10
|
import { spawnSync } from "node:child_process";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -288,7 +288,7 @@ import { join as join5 } from "node:path";
|
|
|
288
288
|
|
|
289
289
|
// src/server/profileWriterLease.ts
|
|
290
290
|
import { createHash as createHash3, randomUUID as randomUUID2, timingSafeEqual } from "node:crypto";
|
|
291
|
-
import { existsSync as existsSync4, lstatSync, mkdirSync as mkdirSync3, readFileSync as readFileSync3, renameSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
291
|
+
import { existsSync as existsSync4, lstatSync as lstatSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync3, renameSync as renameSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
292
292
|
import { dirname as dirname3, join as join4, resolve as resolve3 } from "node:path";
|
|
293
293
|
|
|
294
294
|
// src/server/lineageProfiles.ts
|
|
@@ -296,13 +296,18 @@ import { createHash as createHash2, randomUUID } from "node:crypto";
|
|
|
296
296
|
import { createRequire } from "node:module";
|
|
297
297
|
import {
|
|
298
298
|
chmodSync,
|
|
299
|
+
closeSync,
|
|
299
300
|
constants as fsConstants,
|
|
300
301
|
copyFileSync as copyFileSync2,
|
|
301
302
|
existsSync as existsSync3,
|
|
303
|
+
fsyncSync,
|
|
302
304
|
linkSync,
|
|
305
|
+
lstatSync,
|
|
303
306
|
mkdirSync as mkdirSync2,
|
|
307
|
+
openSync,
|
|
304
308
|
readFileSync as readFileSync2,
|
|
305
309
|
realpathSync,
|
|
310
|
+
renameSync,
|
|
306
311
|
rmSync,
|
|
307
312
|
statSync as statSync3,
|
|
308
313
|
writeFileSync
|
|
@@ -693,7 +698,7 @@ function errorCode(error) {
|
|
|
693
698
|
return error && typeof error === "object" && "code" in error ? String(error.code) : void 0;
|
|
694
699
|
}
|
|
695
700
|
function readOwner(lockPath) {
|
|
696
|
-
const stat =
|
|
701
|
+
const stat = lstatSync2(lockPath);
|
|
697
702
|
if (!stat.isDirectory() || stat.isSymbolicLink()) {
|
|
698
703
|
throw new Error(`Writer lease path is not a safe directory: ${lockPath}; manual inspection is required`);
|
|
699
704
|
}
|
|
@@ -742,7 +747,7 @@ function reclaimDeadOwner(lockPath, owner) {
|
|
|
742
747
|
const tokenFence = createHash3("sha256").update(owner.token).digest("hex").slice(0, 24);
|
|
743
748
|
const tombstone = `${lockPath}.stale-${owner.pid}-${tokenFence}`;
|
|
744
749
|
try {
|
|
745
|
-
|
|
750
|
+
renameSync2(lockPath, tombstone);
|
|
746
751
|
} catch (error) {
|
|
747
752
|
if (errorCode(error) === "ENOENT") return;
|
|
748
753
|
throw error;
|
|
@@ -2105,7 +2110,8 @@ function deleteObjectGuarded(project, assetId, confirmation) {
|
|
|
2105
2110
|
}
|
|
2106
2111
|
function ensureUploadDir() {
|
|
2107
2112
|
const dir = join6(repoRoot, ".asset-scratch", "studio-uploads");
|
|
2108
|
-
mkdirSync5(dir, { recursive: true });
|
|
2113
|
+
mkdirSync5(dir, { recursive: true, mode: 448 });
|
|
2114
|
+
chmodSync2(dir, 448);
|
|
2109
2115
|
return dir;
|
|
2110
2116
|
}
|
|
2111
2117
|
function cleanupUploadedTemp(file) {
|
|
@@ -8158,7 +8164,7 @@ function registerLineageWorkspaceRoutes(app2, projectFrom2, asyncRoute2) {
|
|
|
8158
8164
|
import { createHash as createHash6 } from "node:crypto";
|
|
8159
8165
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
8160
8166
|
import { createRequire as createRequire4 } from "node:module";
|
|
8161
|
-
import { existsSync as existsSync11, lstatSync as
|
|
8167
|
+
import { existsSync as existsSync11, lstatSync as lstatSync3, readFileSync as readFileSync7, readdirSync as readdirSync4, readlinkSync, realpathSync as realpathSync3, statSync as statSync5 } from "node:fs";
|
|
8162
8168
|
import { dirname as dirname6, isAbsolute as isAbsolute2, join as join12, resolve as resolve6 } from "node:path";
|
|
8163
8169
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
8164
8170
|
|
|
@@ -8224,7 +8230,7 @@ function untrackedFingerprint(root, status) {
|
|
|
8224
8230
|
hash.update(relativePath);
|
|
8225
8231
|
const path = join12(root, relativePath);
|
|
8226
8232
|
try {
|
|
8227
|
-
const stat =
|
|
8233
|
+
const stat = lstatSync3(path);
|
|
8228
8234
|
if (stat.isSymbolicLink()) hash.update(readlinkSync(path));
|
|
8229
8235
|
else if (stat.isFile()) hash.update(readFileSync7(path));
|
|
8230
8236
|
else hash.update(`[${stat.mode}:${stat.size}]`);
|