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:
37
network-poc/frontend/node_modules/@astrojs/internal-helpers/dist/cli.d.ts
generated
vendored
Normal file
37
network-poc/frontend/node_modules/@astrojs/internal-helpers/dist/cli.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Validates npm package names to prevent command injection attacks in CLI tools.
|
||||
*
|
||||
* This regex follows npm naming rules and blocks shell metacharacters that could
|
||||
* be used for command injection attacks.
|
||||
*
|
||||
* @see https://docs.npmjs.com/cli/v10/configuring-npm/package-json#name
|
||||
*/
|
||||
export declare const NPM_PACKAGE_NAME_REGEX: RegExp;
|
||||
/**
|
||||
* Validates a package name for use in CLI commands.
|
||||
*
|
||||
* @param packageName - The package name to validate
|
||||
* @returns true if the package name is valid, false otherwise
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* validatePackageName('react'); // true
|
||||
* validatePackageName('@astrojs/tailwind'); // true
|
||||
* validatePackageName('react; whoami'); // false
|
||||
* validatePackageName('react$(whoami)'); // false
|
||||
* ```
|
||||
*/
|
||||
export declare function validatePackageName(packageName: string): boolean;
|
||||
/**
|
||||
* Validates a package name and throws an error if invalid.
|
||||
*
|
||||
* @param packageName - The package name to validate
|
||||
* @throws {Error} If the package name is invalid
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* assertValidPackageName('react'); // OK
|
||||
* assertValidPackageName('react; whoami'); // throws Error
|
||||
* ```
|
||||
*/
|
||||
export declare function assertValidPackageName(packageName: string): asserts packageName is string;
|
||||
Reference in New Issue
Block a user