Frontend uudelleenrakennettu: Astro-komponentit, Wasm pääsäikeessä, ei Workeria
Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
35
network-poc/frontend/node_modules/@astrojs/telemetry/dist/system-info.js
generated
vendored
Normal file
35
network-poc/frontend/node_modules/@astrojs/telemetry/dist/system-info.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import os from "node:os";
|
||||
import { name as ciName, isCI } from "ci-info";
|
||||
import isDocker from "is-docker";
|
||||
import isWSL from "is-wsl";
|
||||
let meta;
|
||||
function getSystemInfo(versions) {
|
||||
if (meta) {
|
||||
return meta;
|
||||
}
|
||||
const cpus = os.cpus() || [];
|
||||
return {
|
||||
// Version information
|
||||
nodeVersion: process.version.replace(/^v?/, ""),
|
||||
viteVersion: versions.viteVersion,
|
||||
astroVersion: versions.astroVersion,
|
||||
// Software information
|
||||
systemPlatform: os.platform(),
|
||||
systemRelease: os.release(),
|
||||
systemArchitecture: os.arch(),
|
||||
// Machine information
|
||||
cpuCount: cpus.length,
|
||||
cpuModel: cpus.length ? cpus[0].model : null,
|
||||
cpuSpeed: cpus.length ? cpus[0].speed : null,
|
||||
memoryInMb: Math.trunc(os.totalmem() / Math.pow(1024, 2)),
|
||||
// Environment information
|
||||
isDocker: isDocker(),
|
||||
isTTY: process.stdout.isTTY,
|
||||
isWSL,
|
||||
isCI,
|
||||
ciName
|
||||
};
|
||||
}
|
||||
export {
|
||||
getSystemInfo
|
||||
};
|
||||
Reference in New Issue
Block a user