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:
27
network-poc/frontend/node_modules/retext-stringify/lib/index.js
generated
vendored
Normal file
27
network-poc/frontend/node_modules/retext-stringify/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @typedef {import('nlcst').Root} Root
|
||||
*/
|
||||
|
||||
import {toString} from 'nlcst-to-string'
|
||||
|
||||
/**
|
||||
* Add support for serializing natural language.
|
||||
*
|
||||
* @returns {undefined}
|
||||
* Nothing.
|
||||
*/
|
||||
export default function retextStringify() {
|
||||
// eslint-disable-next-line unicorn/no-this-assignment
|
||||
const self =
|
||||
/** @type {import('unified').Processor<undefined, undefined, undefined, Root, string>} */ (
|
||||
// @ts-expect-error -- TS in JSDoc doesn’t understand `this`.
|
||||
this
|
||||
)
|
||||
|
||||
self.compiler = compiler
|
||||
}
|
||||
|
||||
/** @type {import('unified').Compiler<Root, string>} */
|
||||
function compiler(tree) {
|
||||
return toString(tree)
|
||||
}
|
||||
Reference in New Issue
Block a user