fleetlens 0.2.1 → 0.2.3
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/app/apps/web/.next/BUILD_ID +1 -1
- package/app/apps/web/.next/build-manifest.json +3 -3
- package/app/apps/web/.next/prerender-manifest.json +3 -3
- package/app/apps/web/.next/server/app/_global-error.html +1 -1
- package/app/apps/web/.next/server/app/_global-error.rsc +1 -1
- package/app/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/app/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/parallelism/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/usage/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/_0yyvgac._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_06j3c.0._.js +1 -1
- package/app/apps/web/.next/server/middleware-build-manifest.js +3 -3
- package/app/apps/web/.next/server/pages/500.html +1 -1
- package/app/apps/web/.next/server/server-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/app/apps/web/.next/static/chunks/{0dtwmo5wu8b96.js → 16tz7r~m.q0sm.js} +1 -1
- package/app/apps/web/app/layout.tsx +7 -1
- package/app/apps/web/components/sidebar.tsx +26 -3
- package/app/apps/web/package.json +1 -1
- package/app/apps/web/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +24 -15
- package/package.json +1 -1
- /package/app/apps/web/.next/static/{Ha1-RttFUdwakgsbK-ky- → pRbROtmcyPCWUwwueyM2P}/_buildManifest.js +0 -0
- /package/app/apps/web/.next/static/{Ha1-RttFUdwakgsbK-ky- → pRbROtmcyPCWUwwueyM2P}/_clientMiddlewareManifest.js +0 -0
- /package/app/apps/web/.next/static/{Ha1-RttFUdwakgsbK-ky- → pRbROtmcyPCWUwwueyM2P}/_ssgManifest.js +0 -0
package/dist/index.js
CHANGED
|
@@ -158,8 +158,8 @@ var init_server = __esm({
|
|
|
158
158
|
|
|
159
159
|
// src/updater.ts
|
|
160
160
|
import { execSync, spawnSync } from "node:child_process";
|
|
161
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
162
|
-
import { join as join2 } from "node:path";
|
|
161
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
162
|
+
import { dirname as dirname3, join as join2 } from "node:path";
|
|
163
163
|
function shouldUpdate(local, remote) {
|
|
164
164
|
const l = local.split(".").map(Number);
|
|
165
165
|
const r = remote.split(".").map(Number);
|
|
@@ -248,12 +248,12 @@ Installed: ${PACKAGE_NAME}@${verify.installedVersion} at ${verify.installedPath
|
|
|
248
248
|
` \u26A0 Expected ${expectedLatest} but got ${verify.installedVersion} \u2014 npm may have cached an older tarball.`
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
|
-
const runningPath = process.argv[1] ?? "";
|
|
252
251
|
const pathResolved = currentBinaryPath();
|
|
253
|
-
|
|
252
|
+
const sameInstall = pathResolved ? resolvesIntoPackage(pathResolved, verify.installedPath) : true;
|
|
253
|
+
if (!sameInstall && pathResolved) {
|
|
254
254
|
console.warn(
|
|
255
255
|
`
|
|
256
|
-
\u26A0 Your shell resolves '${PACKAGE_NAME}' to a DIFFERENT
|
|
256
|
+
\u26A0 Your shell resolves '${PACKAGE_NAME}' to a DIFFERENT install:`
|
|
257
257
|
);
|
|
258
258
|
console.warn(` PATH target: ${pathResolved}`);
|
|
259
259
|
console.warn(` Just installed: ${verify.installedPath}`);
|
|
@@ -266,12 +266,21 @@ Installed: ${PACKAGE_NAME}@${verify.installedVersion} at ${verify.installedPath
|
|
|
266
266
|
console.warn(
|
|
267
267
|
` \u2022 reinstall in the correct Node env: 'npm install -g ${PACKAGE_NAME}@latest'`
|
|
268
268
|
);
|
|
269
|
-
} else {
|
|
269
|
+
} else if (verify.installedVersion !== "0.2.3") {
|
|
270
270
|
console.log(
|
|
271
|
-
` \u2192 This process is still running ${"0.2.
|
|
271
|
+
` \u2192 This process is still running ${"0.2.3"}. Next invocation will use ${verify.installedVersion}.`
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
}
|
|
275
|
+
function resolvesIntoPackage(binPath, packagePath) {
|
|
276
|
+
try {
|
|
277
|
+
const real = realpathSync(binPath);
|
|
278
|
+
if (real.startsWith(packagePath)) return true;
|
|
279
|
+
} catch {
|
|
280
|
+
}
|
|
281
|
+
const binPrefix = dirname3(dirname3(binPath));
|
|
282
|
+
const installPrefix = dirname3(dirname3(dirname3(packagePath)));
|
|
283
|
+
return binPrefix === installPrefix;
|
|
275
284
|
}
|
|
276
285
|
function reExec() {
|
|
277
286
|
const verify = verifyInstalledVersion();
|
|
@@ -295,7 +304,7 @@ async function checkForUpdate() {
|
|
|
295
304
|
if (process.env.__FLEETLENS_UPDATED === "1" || process.env.__CCLENS_UPDATED === "1") return;
|
|
296
305
|
const latest = await fetchLatestVersion();
|
|
297
306
|
if (latest === null) return;
|
|
298
|
-
const current = "0.2.
|
|
307
|
+
const current = "0.2.3";
|
|
299
308
|
if (!shouldUpdate(current, latest)) return;
|
|
300
309
|
console.log(`Updating ${PACKAGE_NAME} ${current} \u2192 ${latest}...`);
|
|
301
310
|
const ok = runNpmInstall();
|
|
@@ -313,7 +322,7 @@ async function checkForUpdate() {
|
|
|
313
322
|
}
|
|
314
323
|
async function forceUpdate() {
|
|
315
324
|
const latest = await fetchLatestVersion();
|
|
316
|
-
const current = "0.2.
|
|
325
|
+
const current = "0.2.3";
|
|
317
326
|
if (latest === null) {
|
|
318
327
|
console.error("Could not reach npm registry. Check your network.");
|
|
319
328
|
process.exit(1);
|
|
@@ -344,9 +353,9 @@ var init_updater = __esm({
|
|
|
344
353
|
|
|
345
354
|
// src/usage/storage.ts
|
|
346
355
|
import { appendFileSync, mkdirSync as mkdirSync2, readFileSync as readFileSync3, existsSync as existsSync3 } from "node:fs";
|
|
347
|
-
import { dirname as
|
|
356
|
+
import { dirname as dirname4 } from "node:path";
|
|
348
357
|
function appendSnapshot(filePath, snapshot) {
|
|
349
|
-
mkdirSync2(
|
|
358
|
+
mkdirSync2(dirname4(filePath), { recursive: true });
|
|
350
359
|
appendFileSync(filePath, JSON.stringify(snapshot) + "\n", "utf8");
|
|
351
360
|
}
|
|
352
361
|
function readSnapshots(filePath) {
|
|
@@ -381,7 +390,7 @@ __export(daemon_exports, {
|
|
|
381
390
|
stopDaemonSilent: () => stopDaemonSilent
|
|
382
391
|
});
|
|
383
392
|
import { spawn as spawn2 } from "node:child_process";
|
|
384
|
-
import { join as join3, dirname as
|
|
393
|
+
import { join as join3, dirname as dirname5 } from "node:path";
|
|
385
394
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
386
395
|
import { existsSync as existsSync4, statSync, readFileSync as readFileSync4 } from "node:fs";
|
|
387
396
|
import { homedir as homedir2 } from "node:os";
|
|
@@ -436,7 +445,7 @@ function getDaemonStatusInfo() {
|
|
|
436
445
|
};
|
|
437
446
|
}
|
|
438
447
|
function workerPath() {
|
|
439
|
-
const here =
|
|
448
|
+
const here = dirname5(fileURLToPath2(import.meta.url));
|
|
440
449
|
return join3(here, "daemon-worker.js");
|
|
441
450
|
}
|
|
442
451
|
async function daemon(args2) {
|
|
@@ -1724,7 +1733,7 @@ async function main() {
|
|
|
1724
1733
|
case "version":
|
|
1725
1734
|
case "--version":
|
|
1726
1735
|
case "-v":
|
|
1727
|
-
console.log(`fleetlens ${"0.2.
|
|
1736
|
+
console.log(`fleetlens ${"0.2.3"}`);
|
|
1728
1737
|
break;
|
|
1729
1738
|
case "help":
|
|
1730
1739
|
case "--help":
|
package/package.json
CHANGED
/package/app/apps/web/.next/static/{Ha1-RttFUdwakgsbK-ky- → pRbROtmcyPCWUwwueyM2P}/_buildManifest.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/app/apps/web/.next/static/{Ha1-RttFUdwakgsbK-ky- → pRbROtmcyPCWUwwueyM2P}/_ssgManifest.js
RENAMED
|
File without changes
|