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:
Jaakko Vanhala
2026-04-09 20:17:39 +03:00
parent e3fdb91ac5
commit a8c4af0975
9617 changed files with 996171 additions and 5349 deletions

View File

@@ -0,0 +1,7 @@
import { type Flags } from '../flags.js';
interface TelemetryOptions {
flags: Flags;
}
export declare function notify(): Promise<void>;
export declare function update(subcommand: string, { flags }: TelemetryOptions): Promise<void>;
export {};

View File

@@ -0,0 +1,48 @@
import * as msg from "../../core/messages/runtime.js";
import { telemetry } from "../../events/index.js";
import { createLoggerFromFlags } from "../flags.js";
async function notify() {
await telemetry.notify(() => {
console.log(msg.telemetryNotice() + "\n");
return true;
});
}
async function update(subcommand, { flags }) {
const isValid = ["enable", "disable", "reset"].includes(subcommand);
const logger = createLoggerFromFlags(flags);
if (flags.help || flags.h || !isValid) {
msg.printHelp({
commandName: "astro telemetry",
usage: "[command]",
tables: {
Commands: [
["enable", "Enable anonymous data collection."],
["disable", "Disable anonymous data collection."],
["reset", "Reset anonymous data collection settings."]
]
}
});
return;
}
switch (subcommand) {
case "enable": {
telemetry.setEnabled(true);
logger.info("SKIP_FORMAT", msg.telemetryEnabled());
return;
}
case "disable": {
telemetry.setEnabled(false);
logger.info("SKIP_FORMAT", msg.telemetryDisabled());
return;
}
case "reset": {
telemetry.clear();
logger.info("SKIP_FORMAT", msg.telemetryReset());
return;
}
}
}
export {
notify,
update
};