diff --git a/.gitignore b/.gitignore index 6ba4ea2e6..4a3b0cb04 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ artifacts/ .superpowers/ packages/github-emulator/LICENSE packages/github-emulator/THIRD_PARTY_NOTICES.md +.types/ diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 000000000..1a669fb82 --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,55 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": [ + "typescript" + ], + "rules": { + "no-array-constructor": "error", + "no-unused-expressions": [ + "error", + { + "allowShortCircuit": false, + "allowTaggedTemplates": false, + "allowTernary": false + } + ], + "no-unused-vars": [ + "warn", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_" + } + ], + "no-var": "error", + "prefer-const": [ + "error", + { + "destructuring": "any", + "ignoreReadBeforeAssign": false + } + ], + "prefer-rest-params": "error", + "prefer-spread": "error", + "typescript/ban-ts-comment": "error", + "typescript/no-duplicate-enum-values": "error", + "typescript/no-extra-non-null-assertion": "error", + "typescript/no-misused-new": "error", + "typescript/no-namespace": "error", + "typescript/no-non-null-asserted-optional-chain": "error", + "typescript/no-this-alias": "error", + "typescript/no-unnecessary-type-constraint": "error", + "typescript/no-unsafe-declaration-merging": "error", + "typescript/no-unsafe-function-type": "error", + "typescript/no-wrapper-object-types": "error", + "typescript/prefer-as-const": "error", + "typescript/prefer-namespace-keyword": "error", + "typescript/triple-slash-reference": "error" + }, + "ignorePatterns": [ + "**/dist/**", + "**/node_modules/**", + "**/.next/**", + "apps/**", + "examples/**" + ] +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dc47a8ec..5441fe995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,22 @@ # Changelog -## 0.13.0 +## 0.13.1 +### Improvements + +- Upgraded the build to **TypeScript 7**, with `tsc` emitting package declarations and `rolldown-plugin-dts` bundling the `emulate` API types. `@emulators/*` packages now ship one `.d.ts` file per module instead of a single bundled file; the `types` entry points and exported types are unchanged (#346) +- Kept **declarations current in watch mode** so `dev` builds re-emit types when type-only source files change (#352) + +### Contributors + +- @ctate + + + +## 0.13.0 + ### New Features - Added **local MCP server** with `npx emulate mcp` so agents can list services, create configurations, and start or stop emulators through shared CLI tools (#331) @@ -16,8 +29,6 @@ - @lahfir - - ## 0.12.3 ### New Features diff --git a/eslint.config.mjs b/eslint.config.mjs deleted file mode 100644 index 2fa8efb4a..000000000 --- a/eslint.config.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import tseslint from "typescript-eslint"; -import prettier from "eslint-config-prettier"; - -export default tseslint.config( - { - ignores: ["**/dist/**", "**/node_modules/**", "**/.next/**", "apps/**", "examples/**"], - }, - tseslint.configs.recommended, - prettier, - { - rules: { - "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-empty-object-type": "off", - "@typescript-eslint/no-require-imports": "off", - }, - }, -); diff --git a/package.json b/package.json index 7091c658b..8c62e20db 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "build": "node scripts/build.mjs", "test": "pnpm -r test", "type-check": "pnpm -r type-check", + "type-check:tsc": "pnpm -r type-check:tsc", "lint": "pnpm -r lint", "format": "prettier --write \"**/*.{ts,tsx}\"", "format:check": "prettier --check \"**/*.{ts,tsx}\"", @@ -18,12 +19,10 @@ }, "devDependencies": { "@types/node": "^22", - "eslint": "^9.39.4", - "eslint-config-prettier": "^10.1.8", - "playwright": "^1.64.1", + "oxlint": "^1.91.0", "prettier": "^3.8.1", - "typescript": "^5.7", - "typescript-eslint": "^8.58.0", + "playwright": "^1.64.1", + "typescript": "^7.0.2", "vitest": "^4.1.0" }, "packageManager": "pnpm@11.2.2", diff --git a/packages/@emulators/core/package.json b/packages/@emulators/core/package.json index f008a1b57..2f038ab1d 100644 --- a/packages/@emulators/core/package.json +++ b/packages/@emulators/core/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/core", - "version": "0.13.0", + "version": "0.13.1", "license": "Apache-2.0", "type": "module", "main": "./dist/index.js", @@ -31,19 +31,21 @@ ], "scripts": { "build": "tsup --clean", - "dev": "tsup --watch", + "dev": "tsup --watch src", "test": "vitest run", "clean": "rm -rf dist .turbo", - "type-check": "tsc --noEmit", - "lint": "eslint src", + "type-check": "tsc-ts --noEmit", + "type-check:tsc": "tsc --noEmit", + "lint": "oxlint src", "prepack": "node ../../../scripts/prepare-package.mjs" }, "dependencies": { "jose": "^6.2.2" }, "devDependencies": { + "tsc-ts": "0.1.3", "tsup": "^8", - "typescript": "^5.7", + "typescript": "^7.0.2", "vitest": "^4.1.0" } } diff --git a/packages/@emulators/core/src/__tests__/http.test.ts b/packages/@emulators/core/src/__tests__/http.test.ts index bdb93affe..5327a0da4 100644 --- a/packages/@emulators/core/src/__tests__/http.test.ts +++ b/packages/@emulators/core/src/__tests__/http.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vitest"; import { once } from "node:events"; -import type { AddressInfo } from "node:net"; -import { Hono, cors, serve } from "../http.js"; +import { createServer, type AddressInfo, type Server } from "node:net"; +import { Hono, assertPortFree, cors, serve } from "../http.js"; describe("HTTP listener", () => { it.each([ @@ -80,6 +80,36 @@ describe("internal http layer", () => { expect(res.headers.get("X-Handler")).toBe("get"); }); + it.each([ + { pattern: "/auth/*", hits: ["/auth", "/auth/login", "/auth/a/b"], misses: ["/authx", "/other"] }, + { pattern: "/a/:id/*", hits: ["/a/1", "/a/1/z", "/a/1/z/w"], misses: ["/a", "/b/1/z"] }, + { pattern: "/m/*/end", hits: ["/m/x/end"], misses: ["/m/end", "/m/x/y/end"] }, + { pattern: "/files*", hits: ["/files*"], misses: ["/filesx", "/files"] }, + ])("matches wildcard pattern $pattern", async ({ pattern, hits, misses }) => { + const app = new Hono(); + app.get(pattern, (c) => c.text("hit")); + for (const path of hits) expect(await (await app.request(path)).text()).toBe("hit"); + for (const path of misses) expect((await app.request(path)).status).toBe(404); + }); + + it("runs prefix middleware under its path only", async () => { + const app = new Hono(); + app.use("/auth/*", async (c, next) => { + c.header("x-guard", "1"); + await next(); + }); + app.get("/*", (c) => c.text("ok")); + + expect((await app.request("/auth/login")).headers.get("x-guard")).toBe("1"); + expect((await app.request("/public")).headers.get("x-guard")).toBeNull(); + }); + + it("detects duplicate wildcard routes in strict mode", () => { + const app = new Hono({ strictRoutes: true }); + app.get("/files/*", (c) => c.text("a")); + expect(() => app.get("/files/*", (c) => c.text("b"))).toThrow(/Duplicate route/); + }); + it("handles CORS preflight requests", async () => { const app = new Hono(); app.use("*", cors({ allowMethods: ["GET"], allowHeaders: ["x-test"], maxAge: 60 })); @@ -93,4 +123,56 @@ describe("internal http layer", () => { expect(res.headers.get("Access-Control-Allow-Headers")).toBe("x-test"); expect(res.headers.get("Access-Control-Max-Age")).toBe("60"); }); + + async function hold(host?: string): Promise { + const holder = createServer(); + holder.listen(0, host); + try { + await once(holder, "listening"); + return holder; + } catch { + return undefined; + } + } + + it("reports a port that a wildcard listener holds", async () => { + const holder = (await hold())!; + const { port } = holder.address() as AddressInfo; + try { + await expect(assertPortFree("127.0.0.1", port)).rejects.toMatchObject({ code: "EADDRINUSE" }); + } finally { + holder.close(); + } + }); + + it("accepts a port that only another address holds", async () => { + const holder = await hold("::1"); + if (!holder) return; + const { port } = holder.address() as AddressInfo; + try { + await expect(assertPortFree("127.0.0.1", port)).resolves.toBeUndefined(); + } finally { + holder.close(); + } + }); + + it("leaves an invalid port for listen to report", async () => { + await expect(assertPortFree("127.0.0.1", 70000)).resolves.toBeUndefined(); + expect(() => serve({ fetch: () => new Response("ready"), port: 70000 })).toThrow(); + }); + + it("accepts a connection made right after serve returns", async () => { + const holder = (await hold("127.0.0.1"))!; + const { port } = holder.address() as AddressInfo; + await new Promise((resolve) => holder.close(resolve)); + const server = serve({ fetch: () => new Response("ready"), port }); + try { + expect(await (await fetch(`http://127.0.0.1:${port}`)).text()).toBe("ready"); + } finally { + await new Promise((resolve) => { + server.close(() => resolve()); + server.closeAllConnections(); + }); + } + }); }); diff --git a/packages/@emulators/core/src/http.ts b/packages/@emulators/core/src/http.ts index ce8c0e267..2b3a221fe 100644 --- a/packages/@emulators/core/src/http.ts +++ b/packages/@emulators/core/src/http.ts @@ -4,6 +4,8 @@ * Copyright (c) 2021 - present, Yusuke Wada and Hono contributors * MIT license: see THIRD_PARTY_NOTICES.md in the repository and npm packages. */ +import { lookup } from "node:dns/promises"; +import { connect, isIP } from "node:net"; import { createServer as createNodeServer, type IncomingMessage, type Server, type ServerResponse } from "node:http"; type BodyInit = ConstructorParameters[0]; @@ -443,15 +445,60 @@ export function serve(options: ServeOptions): Server { return server; } +/** + * Rejects with an EADDRINUSE error when something already accepts connections on the address a listener is about to + * bind. Await it before `serve`: macOS lets a specific address bind a port another process holds on the wildcard + * address. The other process sees one short connection. + */ +export async function assertPortFree(hostname: string | undefined, port: number): Promise { + const host = hostname ?? "127.0.0.1"; + if (port === 0 || host === "0.0.0.0" || host === "::") return; + const address = isIP(host) + ? host + : await lookup(host).then( + (r) => r.address, + () => undefined, + ); + if (!address) return; + const taken = await new Promise((resolve) => { + try { + const socket = connect({ host: address, port, timeout: 300 }); + const settle = (value: boolean) => { + socket.destroy(); + resolve(value); + }; + socket.once("connect", () => settle(true)); + socket.once("timeout", () => settle(false)); + socket.once("error", () => settle(false)); + } catch { + resolve(false); + } + }); + if (!taken) return; + throw Object.assign(new Error(`listen EADDRINUSE: address already in use ${address}:${port}`), { + code: "EADDRINUSE", + errno: -48, + syscall: "listen", + address, + port, + }); +} + function compilePath(pattern: string): CompiledPath { if (pattern === "*" || pattern === "/*") { return { pattern, regex: /^.*$/, paramNames: [] }; } + const prefix = pattern.endsWith("/*"); + const body = prefix ? pattern.slice(0, -2) : pattern; const paramNames: string[] = []; let source = "^"; - for (let i = 0; i < pattern.length; i++) { - const char = pattern[i]; + for (let i = 0; i < body.length; i++) { + const char = body[i]; + if (char === "*" && body[i - 1] === "/" && (i + 1 === body.length || body[i + 1] === "/")) { + source += "[^/]+"; + continue; + } if (char !== ":") { source += escapeRegex(char); continue; @@ -459,24 +506,24 @@ function compilePath(pattern: string): CompiledPath { let name = ""; i++; - while (i < pattern.length && /[A-Za-z0-9_]/.test(pattern[i])) { - name += pattern[i]; + while (i < body.length && /[A-Za-z0-9_]/.test(body[i])) { + name += body[i]; i++; } i--; paramNames.push(name); - if (pattern[i + 1] === "{") { - const close = pattern.indexOf("}", i + 2); + if (body[i + 1] === "{") { + const close = body.indexOf("}", i + 2); if (close < 0) throw new Error(`Invalid route pattern: ${pattern}`); - const expr = pattern.slice(i + 2, close); + const expr = body.slice(i + 2, close); source += `(${expr})`; i = close; } else { source += "([^/]+)"; } } - source += "$"; + source += prefix ? "(?:/.*)?$" : "$"; return { pattern, regex: new RegExp(source), paramNames }; } diff --git a/packages/@emulators/core/src/index.ts b/packages/@emulators/core/src/index.ts index ceeccfb4e..89f8377d3 100644 --- a/packages/@emulators/core/src/index.ts +++ b/packages/@emulators/core/src/index.ts @@ -19,6 +19,7 @@ export { HonoRequest, cors, serve, + assertPortFree, type ContentfulStatusCode, type CorsOptions, type ErrorHandler, diff --git a/packages/@emulators/core/tsconfig.build.json b/packages/@emulators/core/tsconfig.build.json new file mode 100644 index 000000000..e08c9b6de --- /dev/null +++ b/packages/@emulators/core/tsconfig.build.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./dist", + "emitDeclarationOnly": true, + "declarationMap": false + }, + "exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/__tests__/**"] +} diff --git a/packages/@emulators/core/tsup.config.ts b/packages/@emulators/core/tsup.config.ts index 0e8fc17e0..2228697b9 100644 --- a/packages/@emulators/core/tsup.config.ts +++ b/packages/@emulators/core/tsup.config.ts @@ -1,16 +1,18 @@ import { defineConfig } from "tsup"; +import { emitTypes } from "../../../scripts/emit-types.mjs"; import { cpSync, mkdirSync } from "node:fs"; import { resolve } from "node:path"; export default defineConfig({ entry: ["src/index.ts"], format: ["esm"], - dts: true, + dts: false, sourcemap: true, onSuccess: async () => { const src = resolve("src/fonts"); const dest = resolve("dist/fonts"); mkdirSync(dest, { recursive: true }); cpSync(src, dest, { recursive: true }); + emitTypes(__dirname); }, }); diff --git a/packages/@emulators/github/package.json b/packages/@emulators/github/package.json index 48f1eed17..d99184a1a 100644 --- a/packages/@emulators/github/package.json +++ b/packages/@emulators/github/package.json @@ -1,6 +1,6 @@ { "name": "@emulators/github", - "version": "0.13.0", + "version": "0.13.1", "license": "Apache-2.0", "type": "module", "main": "./dist/index.js", @@ -30,19 +30,21 @@ ], "scripts": { "build": "tsup --clean", - "dev": "tsup --watch", + "dev": "tsup --watch src", "test": "vitest run", "clean": "rm -rf dist .turbo", - "type-check": "tsc --noEmit", - "lint": "eslint src", + "type-check": "tsc-ts --noEmit", + "type-check:tsc": "tsc --noEmit", + "lint": "oxlint src", "prepack": "node ../../../scripts/prepare-package.mjs" }, "dependencies": { "@emulators/core": "workspace:*" }, "devDependencies": { + "tsc-ts": "0.1.3", "tsup": "^8", - "typescript": "^5.7", + "typescript": "^7.0.2", "vitest": "^4.1.0" } } diff --git a/packages/@emulators/github/src/__tests__/oauth-code-client.test.ts b/packages/@emulators/github/src/__tests__/oauth-code-client.test.ts new file mode 100644 index 000000000..6fbd4abac --- /dev/null +++ b/packages/@emulators/github/src/__tests__/oauth-code-client.test.ts @@ -0,0 +1,85 @@ +import { describe, expect, it } from "vitest"; +import { + Hono, + Store, + WebhookDispatcher, + authMiddleware, + createApiErrorHandler, + createErrorHandler, +} from "@emulators/core"; +import type { TokenMap } from "@emulators/core"; +import { githubPlugin, seedFromConfig } from "../index.js"; + +const base = "http://localhost:4000"; +const redirectUri = "http://localhost:3000/callback"; +const portal = { client_id: "portal-client", client_secret: "portal-secret" }; +const other = { client_id: "other-client", client_secret: "other-secret" }; + +function createTestApp() { + const store = new Store(); + const tokenMap: TokenMap = new Map(); + const app = new Hono(); + app.onError(createApiErrorHandler()); + app.use("*", createErrorHandler()); + app.use("*", authMiddleware(tokenMap)); + githubPlugin.register(app as any, store, new WebhookDispatcher(), base, tokenMap); + githubPlugin.seed?.(store, base); + seedFromConfig(store, base, { + users: [{ login: "alice" }], + oauth_apps: [portal, other].map((oauthApp) => ({ + ...oauthApp, + name: oauthApp.client_id, + redirect_uris: [redirectUri], + })), + }); + return app; +} + +async function authorize(app: Hono, clientId: string): Promise { + const callback = await app.request(`${base}/login/oauth/callback`, { + method: "POST", + headers: { "Content-Type": "application/x-www-form-urlencoded" }, + body: new URLSearchParams({ login: "alice", client_id: clientId, redirect_uri: redirectUri, scope: "repo" }), + }); + return new URL(callback.headers.get("location") ?? "").searchParams.get("code") ?? ""; +} + +async function exchange(app: Hono, code: string, credentials: typeof portal) { + const res = await app.request(`${base}/login/oauth/access_token`, { + method: "POST", + headers: { "Content-Type": "application/json", Accept: "application/json" }, + body: JSON.stringify({ ...credentials, code, redirect_uri: redirectUri }), + }); + return { status: res.status, body: (await res.json()) as Record }; +} + +describe("GitHub OAuth code bound to its client", () => { + it("refuses a code issued to another OAuth app", async () => { + const app = createTestApp(); + const code = await authorize(app, portal.client_id); + const res = await exchange(app, code, other); + expect(res.status).toBe(200); + expect(res.body).toEqual({ + error: "bad_verification_code", + error_description: "The code passed is incorrect or expired.", + }); + }); + + it("keeps the code usable by the app it was issued to", async () => { + const app = createTestApp(); + const code = await authorize(app, portal.client_id); + expect((await exchange(app, code, other)).body.error).toBe("bad_verification_code"); + const res = await exchange(app, code, portal); + expect(res.body.access_token).toMatch(/^gho_/); + expect(res.body.scope).toBe("repo"); + }); + + it("still exchanges each app's own code once", async () => { + const app = createTestApp(); + const portalCode = await authorize(app, portal.client_id); + const otherCode = await authorize(app, other.client_id); + expect((await exchange(app, portalCode, portal)).body.access_token).toMatch(/^gho_/); + expect((await exchange(app, otherCode, other)).body.access_token).toMatch(/^gho_/); + expect((await exchange(app, portalCode, portal)).body.error).toBe("bad_verification_code"); + }); +}); diff --git a/packages/@emulators/github/src/__tests__/oauth-revocation.test.ts b/packages/@emulators/github/src/__tests__/oauth-revocation.test.ts new file mode 100644 index 000000000..3f444fa13 --- /dev/null +++ b/packages/@emulators/github/src/__tests__/oauth-revocation.test.ts @@ -0,0 +1,121 @@ +import { describe, expect, it } from "vitest"; +import { + Hono, + Store, + WebhookDispatcher, + authMiddleware, + createApiErrorHandler, + createErrorHandler, +} from "@emulators/core"; +import type { TokenMap } from "@emulators/core"; +import { githubPlugin, seedFromConfig } from "../index.js"; + +const base = "http://localhost:4000"; +const redirectUri = "http://localhost:3000/callback"; +const portal = { client_id: "portal-client", client_secret: "portal-secret" }; +const other = { client_id: "other-client", client_secret: "other-secret" }; + +function createTestApp(fallback = false) { + const store = new Store(); + const tokenMap: TokenMap = new Map(); + const app = new Hono(); + app.onError(createApiErrorHandler()); + app.use("*", createErrorHandler()); + app.use("*", authMiddleware(tokenMap, undefined, fallback ? { login: "bob", id: 99, scopes: [] } : undefined)); + githubPlugin.register(app as any, store, new WebhookDispatcher(), base, tokenMap); + githubPlugin.seed?.(store, base); + seedFromConfig(store, base, { + users: [{ login: "alice" }, { login: "bob" }], + oauth_apps: [portal, other].map((oauthApp) => ({ + ...oauthApp, + name: oauthApp.client_id, + redirect_uris: [redirectUri], + })), + }); + return app; +} + +async function issueToken(app: Hono, login: string, oauthApp = portal): Promise { + const callback = await app.request(`${base}/login/oauth/callback`, { + method: "POST", + headers: { "Content-Type": "application/x-www-form-urlencoded" }, + body: new URLSearchParams({ login, client_id: oauthApp.client_id, redirect_uri: redirectUri, scope: "repo" }), + }); + const code = new URL(callback.headers.get("location") ?? "").searchParams.get("code") ?? ""; + const exchange = await app.request(`${base}/login/oauth/access_token`, { + method: "POST", + headers: { "Content-Type": "application/json", Accept: "application/json" }, + body: JSON.stringify({ ...oauthApp, code, redirect_uri: redirectUri }), + }); + return ((await exchange.json()) as { access_token: string }).access_token; +} + +function revoke(app: Hono, endpoint: "token" | "grant", token: string, credentials = portal) { + const basic = Buffer.from(`${credentials.client_id}:${credentials.client_secret}`).toString("base64"); + return app.request(`${base}/applications/${portal.client_id}/${endpoint}`, { + method: "DELETE", + headers: { Authorization: `Basic ${basic}`, "Content-Type": "application/json" }, + body: JSON.stringify({ access_token: token }), + }); +} + +async function userStatus(app: Hono, token: string): Promise { + return (await app.request(`${base}/user`, { headers: { Authorization: `Bearer ${token}` } })).status; +} + +describe("GitHub OAuth token and grant revocation", () => { + it("revokes one token with DELETE /applications/:client_id/token", async () => { + const app = createTestApp(); + const revoked = await issueToken(app, "alice"); + const kept = await issueToken(app, "alice"); + expect((await revoke(app, "token", revoked)).status).toBe(204); + expect(await userStatus(app, revoked)).toBe(401); + expect(await userStatus(app, kept)).toBe(200); + }); + + it("revokes every token of the grant with DELETE /applications/:client_id/grant", async () => { + const app = createTestApp(); + const first = await issueToken(app, "alice"); + const second = await issueToken(app, "alice"); + const bob = await issueToken(app, "bob"); + const otherApp = await issueToken(app, "alice", other); + expect((await revoke(app, "grant", first)).status).toBe(204); + expect(await userStatus(app, first)).toBe(401); + expect(await userStatus(app, second)).toBe(401); + expect(await userStatus(app, bob)).toBe(200); + expect(await userStatus(app, otherApp)).toBe(200); + }); + + it("rejects a revoked token even when unknown tokens fall back to a default user", async () => { + const app = createTestApp(true); + const token = await issueToken(app, "alice"); + expect((await revoke(app, "token", token)).status).toBe(204); + expect(await userStatus(app, token)).toBe(401); + }); + + it("requires the app's client credentials", async () => { + const app = createTestApp(); + const token = await issueToken(app, "alice"); + expect((await revoke(app, "token", token, { ...portal, client_secret: "wrong" })).status).toBe(401); + expect(await userStatus(app, token)).toBe(200); + }); + + it("rejects a token that is unknown or belongs to another app", async () => { + const app = createTestApp(); + const otherApp = await issueToken(app, "alice", other); + expect((await revoke(app, "token", "gho_never_issued")).status).toBe(422); + expect((await revoke(app, "grant", otherApp)).status).toBe(422); + expect(await userStatus(app, otherApp)).toBe(200); + }); + + it("revokes the grant from the settings page as well", async () => { + const app = createTestApp(); + const token = await issueToken(app, "alice"); + const res = await app.request(`${base}/settings/connections/applications/${portal.client_id}/revoke`, { + method: "POST", + headers: { Authorization: `Bearer ${token}` }, + }); + expect(res.status).toBe(302); + expect(await userStatus(app, token)).toBe(401); + }); +}); diff --git a/packages/@emulators/github/src/__tests__/orgs.test.ts b/packages/@emulators/github/src/__tests__/orgs.test.ts index b46069e8c..c60577f9e 100644 --- a/packages/@emulators/github/src/__tests__/orgs.test.ts +++ b/packages/@emulators/github/src/__tests__/orgs.test.ts @@ -106,7 +106,7 @@ describe("GitHub organization seed memberships", () => { const outsiderRepo = await app.request(`${base}/repos/acme/private-repo`, { headers: authHeaders("outsider-token"), }); - expect(outsiderRepo.status).toBe(403); + expect(outsiderRepo.status).toBe(404); const adminUpdate = await app.request(`${base}/orgs/acme`, { method: "PATCH", diff --git a/packages/@emulators/github/src/__tests__/private-repo-not-found.test.ts b/packages/@emulators/github/src/__tests__/private-repo-not-found.test.ts new file mode 100644 index 000000000..40b0ee66d --- /dev/null +++ b/packages/@emulators/github/src/__tests__/private-repo-not-found.test.ts @@ -0,0 +1,98 @@ +import { describe, expect, it } from "vitest"; +import { + Hono, + Store, + WebhookDispatcher, + authMiddleware, + createApiErrorHandler, + createErrorHandler, +} from "@emulators/core"; +import type { AuthInstallation, TokenMap } from "@emulators/core"; +import { githubPlugin, seedFromConfig } from "../index.js"; + +const base = "http://localhost:4000"; + +const installation: AuthInstallation = { + installationId: 77, + appId: 7, + accountId: 11, + accountType: "User", + permissions: { contents: "read", metadata: "read" }, + repositoryIds: [], + repositorySelection: "all", +}; + +function createTestApp() { + const store = new Store(); + const tokenMap: TokenMap = new Map([ + ["owner-token", { login: "owner", id: 1, scopes: ["repo"] }], + ["outsider-token", { login: "outsider", id: 2, scopes: ["repo"] }], + ["reader-token", { login: "reader", id: 3, scopes: ["repo"] }], + ["installation-token", { login: "app[bot]", id: 9, scopes: [], installation }], + ]); + const app = new Hono(); + app.onError(createApiErrorHandler()); + app.use("*", createErrorHandler()); + app.use("*", authMiddleware(tokenMap)); + githubPlugin.register(app as any, store, new WebhookDispatcher(), base, tokenMap); + githubPlugin.seed?.(store, base); + seedFromConfig(store, base, { + users: [{ login: "owner" }, { login: "outsider" }, { login: "reader" }], + repos: [{ owner: "owner", name: "secret", private: true, auto_init: true }], + }); + return app; +} + +function request(app: Hono, path: string, token?: string, init: RequestInit = {}) { + const headers: Record = token + ? { Authorization: `Bearer ${token}`, "Content-Type": "application/json" } + : {}; + return app.request(`${base}${path}`, { ...init, headers }); +} + +describe("GitHub private repository visibility", () => { + it("answers 404 to callers who cannot see the repository", async () => { + const app = createTestApp(); + expect((await request(app, "/repos/owner/secret", "owner-token")).status).toBe(200); + expect((await request(app, "/repos/owner/secret", "outsider-token")).status).toBe(404); + expect((await request(app, "/repos/owner/secret")).status).toBe(404); + expect((await request(app, "/repos/owner/secret/contents/README.md", "outsider-token")).status).toBe(404); + }); + + it("answers 404 to reads and writes from a user who cannot see the repository", async () => { + const app = createTestApp(); + const writes: Array<[string, string, unknown]> = [ + ["POST", "/repos/owner/secret/issues", { title: "hidden" }], + ["POST", "/repos/owner/secret/releases", { tag_name: "v1" }], + ["PUT", "/repos/owner/secret/contents/a.txt", { message: "m", content: "YQ==" }], + ["POST", "/repos/owner/secret/hooks", { config: { url: "http://localhost:3000/hook" } }], + ]; + for (const [method, path, body] of writes) { + const res = await request(app, path, "outsider-token", { method, body: JSON.stringify(body) }); + expect(res.status, `${method} ${path}`).toBe(404); + } + }); + + it("keeps 403 for a collaborator who can see the repository but cannot write to it", async () => { + const app = createTestApp(); + const invited = await request(app, "/repos/owner/secret/collaborators/reader", "owner-token", { + method: "PUT", + body: JSON.stringify({ permission: "pull" }), + }); + expect(invited.status).toBeLessThan(300); + expect((await request(app, "/repos/owner/secret", "reader-token")).status).toBe(200); + expect( + ( + await request(app, "/repos/owner/secret/contents/a.txt", "reader-token", { + method: "PUT", + body: JSON.stringify({ message: "m", content: "YQ==" }), + }) + ).status, + ).toBe(403); + }); + + it("keeps the installation error for a repository outside the installation", async () => { + const app = createTestApp(); + expect((await request(app, "/repos/owner/secret", "installation-token")).status).toBe(403); + }); +}); diff --git a/packages/@emulators/github/src/__tests__/strict-tokens.test.ts b/packages/@emulators/github/src/__tests__/strict-tokens.test.ts new file mode 100644 index 000000000..0fa1d6c74 --- /dev/null +++ b/packages/@emulators/github/src/__tests__/strict-tokens.test.ts @@ -0,0 +1,105 @@ +import { describe, expect, it } from "vitest"; +import { + Hono, + Store, + WebhookDispatcher, + authMiddleware, + createApiErrorHandler, + createErrorHandler, +} from "@emulators/core"; +import type { TokenMap } from "@emulators/core"; +import { githubPlugin, seedFromConfig } from "../index.js"; + +const base = "http://localhost:4000"; +const redirectUri = "http://localhost:3000/callback"; + +function createTestApp(strict: boolean, fallback = true) { + const store = new Store(); + const tokenMap: TokenMap = new Map([["alice-token", { login: "alice", id: 2, scopes: ["repo", "user"] }]]); + const app = new Hono(); + app.onError(createApiErrorHandler()); + app.use("*", createErrorHandler()); + app.use( + "*", + authMiddleware(tokenMap, undefined, fallback ? { login: "admin", id: 1, scopes: ["repo", "user"] } : undefined), + ); + githubPlugin.register(app as any, store, new WebhookDispatcher(), base, tokenMap); + githubPlugin.seed?.(store, base); + seedFromConfig(store, base, { + users: [{ login: "admin" }, { login: "alice" }], + oauth_apps: [{ client_id: "app-client", client_secret: "app-secret", name: "App", redirect_uris: [redirectUri] }], + strict_scopes: strict, + }); + return { app, tokenMap }; +} + +function getUser(app: Hono, token: string) { + return app.request(`${base}/user`, { headers: { Authorization: `Bearer ${token}` } }); +} + +function basic(credentials: string) { + return { Authorization: `Basic ${Buffer.from(credentials).toString("base64")}` }; +} + +describe("GitHub strict mode tokens", () => { + it("rejects a token the emulator never issued", async () => { + const { app } = createTestApp(true); + const res = await getUser(app, "ghp_never_issued"); + expect(res.status).toBe(401); + expect(((await res.json()) as { message: string }).message).toBe("Bad credentials"); + }); + + it("accepts configured tokens and tokens issued by an OAuth exchange", async () => { + const { app } = createTestApp(true); + expect(((await (await getUser(app, "alice-token")).json()) as { login: string }).login).toBe("alice"); + + const callback = await app.request(`${base}/login/oauth/callback`, { + method: "POST", + headers: { "Content-Type": "application/x-www-form-urlencoded" }, + body: new URLSearchParams({ + login: "alice", + client_id: "app-client", + redirect_uri: redirectUri, + scope: "repo", + }), + }); + const code = new URL(callback.headers.get("location") ?? "").searchParams.get("code") ?? ""; + const exchange = await app.request(`${base}/login/oauth/access_token`, { + method: "POST", + headers: { "Content-Type": "application/json", Accept: "application/json" }, + body: JSON.stringify({ client_id: "app-client", client_secret: "app-secret", code, redirect_uri: redirectUri }), + }); + const { access_token: token } = (await exchange.json()) as { access_token: string }; + expect(((await (await getUser(app, token)).json()) as { login: string }).login).toBe("alice"); + }); + + it("rejects an unknown token sent without a scheme", async () => { + const { app } = createTestApp(true); + const res = await app.request(`${base}/users/alice`, { headers: { Authorization: "ghp_never_issued" } }); + expect(res.status).toBe(401); + }); + + it("accepts HTTP Basic credentials only for a configured OAuth app", async () => { + const { app } = createTestApp(true); + expect((await app.request(`${base}/users/alice`, { headers: basic("app-client:wrong") })).status).toBe(401); + expect((await app.request(`${base}/users/alice`, { headers: basic("app-client:app-secret") })).status).toBe(200); + }); + + it("does not give OAuth app credentials a user identity", async () => { + const { app } = createTestApp(true); + const res = await app.request(`${base}/user`, { headers: basic("app-client:app-secret") }); + expect(res.status).toBe(401); + }); + + it("keeps public endpoints open to anonymous requests", async () => { + const { app } = createTestApp(true); + expect((await app.request(`${base}/users/alice`)).status).toBe(200); + }); + + it("keeps the fallback user for unknown tokens by default", async () => { + const { app } = createTestApp(false); + const res = await getUser(app, "ghp_never_issued"); + expect(res.status).toBe(200); + expect(((await res.json()) as { login: string }).login).toBe("admin"); + }); +}); diff --git a/packages/@emulators/github/src/index.ts b/packages/@emulators/github/src/index.ts index 13e3ae18c..82f475fbc 100644 --- a/packages/@emulators/github/src/index.ts +++ b/packages/@emulators/github/src/index.ts @@ -1,5 +1,6 @@ import { createHmac, generateKeyPair } from "crypto"; -import type { Hono } from "@emulators/core"; +import { constantTimeSecretEqual } from "@emulators/core"; +import type { Context, Hono } from "@emulators/core"; import type { ServicePlugin, Store, @@ -11,6 +12,7 @@ import type { } from "@emulators/core"; import { getGitHubStore } from "./store.js"; import type { GitHubStore } from "./store.js"; +import { isRevokedToken } from "./tokens.js"; import type { GitHubAppInstallation } from "./entities.js"; import { generateNodeId } from "./helpers.js"; import { usersRoutes } from "./routes/users.js"; @@ -43,6 +45,7 @@ export * from "./entities.js"; export interface GitHubSeedConfig { port?: number; + strict_scopes?: boolean; users?: Array<{ login: string; name?: string; @@ -288,6 +291,9 @@ function seedDefaults(store: Store, baseUrl: string): void { } export function seedFromConfig(store: Store, baseUrl: string, config: GitHubSeedConfig): void { + if (config.strict_scopes !== undefined) { + store.setData("github.strict_scopes", config.strict_scopes); + } for (const app of config.apps ?? []) { if (!app.private_key) { throw new Error( @@ -666,6 +672,30 @@ export const githubPlugin: ServicePlugin = { await deliverToAppWebhookUrls(gh, event, action, payload, owner, repo); }; + // GitHub rejects credentials it cannot resolve. The default remains permissive: an unknown token acts as the + // default user, and strict mode turns that fallback off. Revoked tokens are invalid in either mode. + app.use("*", async (c, next) => { + const header = c.req.header("Authorization")?.trim(); + if (!header) return next(); + + const presented = header.replace(/^(Bearer|token)\s+/i, "").trim(); + if (isRevokedToken(store, presented)) return badCredentials(c); + + if (store.getData("github.strict_scopes") !== true || c.get("authApp")) return next(); + if (tokenMap?.has(presented)) return next(); + + if (/^Basic\s/i.test(header)) { + if (!isOAuthAppCredential(gh, header)) return badCredentials(c); + // OAuth app credentials belong to the app, not to a user: drop the fallback identity. + c.set("authUser", undefined); + c.set("authToken", undefined); + c.set("authScopes", undefined); + return next(); + } + + return badCredentials(c); + }); + const ctx: RouteContext = { app, store, webhooks, baseUrl, tokenMap }; usersRoutes(ctx); reposRoutes(ctx); @@ -699,3 +729,16 @@ export const githubPlugin: ServicePlugin = { }; export default githubPlugin; + +function badCredentials(c: Context) { + const docsUrl = (c.get("docsUrl") as string | undefined) ?? "https://emulate.dev"; + return c.json({ message: "Bad credentials", documentation_url: docsUrl }, 401); +} + +function isOAuthAppCredential(gh: GitHubStore, header: string): boolean { + const decoded = Buffer.from(header.replace(/^Basic\s+/i, ""), "base64").toString(); + const separator = decoded.indexOf(":"); + if (separator < 0) return false; + const oauthApp = gh.oauthApps.findOneBy("client_id", decoded.slice(0, separator)); + return !!oauthApp && constantTimeSecretEqual(decoded.slice(separator + 1), oauthApp.client_secret); +} diff --git a/packages/@emulators/github/src/route-helpers.ts b/packages/@emulators/github/src/route-helpers.ts index 89b6e9885..ade5cea44 100644 --- a/packages/@emulators/github/src/route-helpers.ts +++ b/packages/@emulators/github/src/route-helpers.ts @@ -76,10 +76,12 @@ export function canAccessRepo(gh: GitHubStore, authUser: AuthUser | undefined, r return Boolean(gh.collaborators.findBy("repo_id", repo.id).find((c) => c.user_id === user.id)); } +// GitHub answers 404, not 401 or 403, to a user or anonymous caller for a private repository they cannot see, so as +// not to confirm that it exists. Installation tokens keep their existing errors. export function assertRepoRead(gh: GitHubStore, authUser: AuthUser | undefined, repo: GitHubRepo): void { if (canAccessRepo(gh, authUser, repo)) return; - if (!authUser) throw unauthorized(); - throw forbidden(); + if (authUser?.installation) throw forbidden(); + throw notFound(); } function hasInstallationPermission(authUser: AuthUser, permissions: string[], required: "read" | "write"): boolean { @@ -113,6 +115,7 @@ export function assertRepoPermission( required: "read" | "write" = "read", ): void { const accepted = Array.isArray(permissions) ? permissions : [permissions]; + if (!authUser?.installation && !canAccessRepo(gh, authUser, repo)) throw notFound(); if (!canAccessRepoWithPermission(gh, authUser, repo, accepted, required)) { if (!authUser) throw unauthorized(); throw forbidden(); @@ -187,6 +190,7 @@ export function assertRepoContentsWrite(gh: GitHubStore, authUser: AuthUser | un if (repo.archived) throw new ApiError(403, "Repository was archived so is read-only."); return installationActor(gh, authUser); } + if (!canAccessRepo(gh, authUser, repo)) throw notFound(); const user = assertAuthenticatedUser(gh, authUser); if (!hasRepoContentsWrite(gh, user, repo)) throw forbidden(); if (repo.archived) throw new ApiError(403, "Repository was archived so is read-only."); @@ -306,6 +310,7 @@ export function assertRepoAdmin(gh: GitHubStore, authUser: AuthUser | undefined, return assertAuthenticatedActor(gh, authUser); } + if (!canAccessRepo(gh, authUser, repo)) throw notFound(); const user = assertAuthenticatedUser(gh, authUser); if (hasRepoAdmin(gh, user, repo)) return user; throw forbidden(); @@ -322,10 +327,8 @@ export function assertRepoWrite( return assertAuthenticatedActor(gh, authUser); } - const user = assertAuthenticatedUser(gh, authUser); - if (!repo.private) return user; - if (!canAccessRepo(gh, authUser, repo)) throw forbidden(); - return user; + if (!canAccessRepo(gh, authUser, repo)) throw notFound(); + return assertAuthenticatedUser(gh, authUser); } export function assertIssueWrite(gh: GitHubStore, authUser: AuthUser | undefined, repo: GitHubRepo): GitHubUser { diff --git a/packages/@emulators/github/src/routes/oauth.ts b/packages/@emulators/github/src/routes/oauth.ts index 6391e4c9f..724c36371 100644 --- a/packages/@emulators/github/src/routes/oauth.ts +++ b/packages/@emulators/github/src/routes/oauth.ts @@ -2,6 +2,7 @@ import { randomBytes } from "crypto"; import type { Context } from "@emulators/core"; import type { RouteContext, Store, AuthUser, AppEnv } from "@emulators/core"; import { + ApiError, unauthorized, escapeHtml, escapeAttr, @@ -16,6 +17,7 @@ import { import { getGitHubStore } from "../store.js"; import { formatUser, formatUserFull } from "../helpers.js"; import { getBrowserSessionMap, resolveBrowserSessionUser } from "../route-helpers.js"; +import { getTokenToClientId, revokeOAuthGrant, revokeOAuthToken } from "../tokens.js"; type PendingCode = { login: string; @@ -36,15 +38,6 @@ function getPendingCodes(store: Store): Map { return map; } -function getTokenToClientId(store: Store): Map { - let map = store.getData>("github.oauth.tokenToClientId"); - if (!map) { - map = new Map(); - store.setData("github.oauth.tokenToClientId", map); - } - return map; -} - /** On read: drops entries older than {@link PENDING_CODE_TTL_MS}. */ function getPendingCodeIfValid(store: Store, code: string): PendingCode | undefined { const map = getPendingCodes(store); @@ -237,13 +230,19 @@ export function oauthRoutes({ app, store, baseUrl, tokenMap }: RouteContext): vo debug("github.oauth", `[OAuth token] no oauth apps configured, skipping client validation`); } + const badVerificationCode = () => + c.json({ error: "bad_verification_code", error_description: "The code passed is incorrect or expired." }, 200); + const pending = getPendingCodeIfValid(store, code); if (!pending) { debug("github.oauth", `[OAuth token] REJECTED: code not found in pendingCodes or expired`); - return c.json( - { error: "bad_verification_code", error_description: "The code passed is incorrect or expired." }, - 200, - ); + return badVerificationCode(); + } + + // A code issued to another app is an incorrect code for this one, and stays usable by its own app. + if (oauthAppsConfigured && pending.clientId !== bodyClientId) { + debug("github.oauth", `[OAuth token] REJECTED: code was issued to another client_id`); + return badVerificationCode(); } debug("github.oauth", `[OAuth token] code valid, login=${pending.login}, scope=${pending.scope}`); @@ -252,10 +251,7 @@ export function oauthRoutes({ app, store, baseUrl, tokenMap }: RouteContext): vo const user = gh.users.findOneBy("login", pending.login); if (!user) { debug("github.oauth", `[OAuth token] REJECTED: user "${pending.login}" not found in store`); - return c.json( - { error: "bad_verification_code", error_description: "The code passed is incorrect or expired." }, - 200, - ); + return badVerificationCode(); } const token = "gho_" + randomBytes(20).toString("base64url"); @@ -496,20 +492,51 @@ export function oauthRoutes({ app, store, baseUrl, tokenMap }: RouteContext): vo const clientId = c.req.param("client_id"); - const grant = gh.oauthGrants.all().find((g) => g.user_id === sessionUser.id && g.client_id === clientId); - if (grant) { - gh.oauthGrants.delete(grant.id); - } + revokeOAuthGrant(store, { login: sessionUser.login, id: sessionUser.id }, clientId, tokenMap); + return c.redirect("/settings/applications", 302); + }); - if (tokenMap) { - for (const [token, tokenUser] of tokenMap.entries()) { - if (tokenUser.login === sessionUser.login && getTokenToClientId(store).get(token) === clientId) { - tokenMap.delete(token); - getTokenToClientId(store).delete(token); - } - } - } + // ---------- OAuth app token and grant revocation (REST API) ---------- + // DELETE /applications/:client_id/token revokes one access token; /grant revokes the user's grant and every token + // the app holds for that user. Both take the app's client_id and client_secret as HTTP Basic credentials. - return c.redirect("/settings/applications", 302); + function authenticateOAuthApp(c: Context, clientId: string): boolean { + const header = c.req.header("Authorization") ?? ""; + if (!/^Basic\s/i.test(header)) return false; + const decoded = Buffer.from(header.replace(/^Basic\s+/i, ""), "base64").toString(); + const separator = decoded.indexOf(":"); + if (separator < 0 || decoded.slice(0, separator) !== clientId) return false; + const oauthApp = gh.oauthApps.findOneBy("client_id", clientId); + return !!oauthApp && constantTimeSecretEqual(decoded.slice(separator + 1), oauthApp.client_secret); + } + + async function appTokenOwner( + c: Context, + clientId: string, + ): Promise<{ token: string; login: string; id: number } | undefined> { + const body = (await c.req.json().catch(() => ({}))) as { access_token?: unknown }; + const token = typeof body.access_token === "string" ? body.access_token.trim() : ""; + if (!token) return undefined; + const tokenUser = tokenMap?.get(token); + if (!tokenUser || getTokenToClientId(store).get(token) !== clientId) return undefined; + return { token, login: tokenUser.login, id: tokenUser.id }; + } + + app.delete("/applications/:client_id/token", async (c) => { + const clientId = c.req.param("client_id"); + if (!authenticateOAuthApp(c, clientId)) throw new ApiError(401, "Bad credentials"); + const owner = await appTokenOwner(c, clientId); + if (!owner) throw new ApiError(422, "Validation Failed"); + revokeOAuthToken(store, tokenMap, owner.token); + return c.body(null, 204); + }); + + app.delete("/applications/:client_id/grant", async (c) => { + const clientId = c.req.param("client_id"); + if (!authenticateOAuthApp(c, clientId)) throw new ApiError(401, "Bad credentials"); + const owner = await appTokenOwner(c, clientId); + if (!owner) throw new ApiError(422, "Validation Failed"); + revokeOAuthGrant(store, { login: owner.login, id: owner.id }, clientId, tokenMap); + return c.body(null, 204); }); } diff --git a/packages/@emulators/github/src/tokens.ts b/packages/@emulators/github/src/tokens.ts new file mode 100644 index 000000000..490379ac7 --- /dev/null +++ b/packages/@emulators/github/src/tokens.ts @@ -0,0 +1,53 @@ +import type { Store, TokenMap } from "@emulators/core"; +import { getGitHubStore } from "./store.js"; + +/** OAuth access tokens the emulator issued, mapped to the client_id that received them. */ +export function getTokenToClientId(store: Store): Map { + let map = store.getData>("github.oauth.tokenToClientId"); + if (!map) { + map = new Map(); + store.setData("github.oauth.tokenToClientId", map); + } + return map; +} + +/** + * Tokens revoked through the REST API or the settings page. A revoked token is invalid credentials, so it stays + * rejected even when the service falls back to a default user for tokens it does not know. + */ +export function getRevokedTokens(store: Store): Set { + let set = store.getData>("github.revoked_tokens"); + if (!set) { + set = new Set(); + store.setData("github.revoked_tokens", set); + } + return set; +} + +export function isRevokedToken(store: Store, token: string): boolean { + return getRevokedTokens(store).has(token); +} + +export function revokeOAuthToken(store: Store, tokenMap: TokenMap | undefined, token: string): void { + tokenMap?.delete(token); + getTokenToClientId(store).delete(token); + getRevokedTokens(store).add(token); +} + +export function revokeOAuthGrant( + store: Store, + user: { login: string; id: number }, + clientId: string, + tokenMap?: TokenMap, +): void { + const gh = getGitHubStore(store); + const grant = gh.oauthGrants.all().find((g) => g.user_id === user.id && g.client_id === clientId); + if (grant) gh.oauthGrants.delete(grant.id); + + if (!tokenMap) return; + for (const [token, tokenUser] of tokenMap.entries()) { + if (tokenUser.login === user.login && getTokenToClientId(store).get(token) === clientId) { + revokeOAuthToken(store, tokenMap, token); + } + } +} diff --git a/packages/@emulators/github/tsconfig.build.json b/packages/@emulators/github/tsconfig.build.json new file mode 100644 index 000000000..e08c9b6de --- /dev/null +++ b/packages/@emulators/github/tsconfig.build.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./dist", + "emitDeclarationOnly": true, + "declarationMap": false + }, + "exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/__tests__/**"] +} diff --git a/packages/@emulators/github/tsup.config.ts b/packages/@emulators/github/tsup.config.ts index 59a7354cb..479a9298b 100644 --- a/packages/@emulators/github/tsup.config.ts +++ b/packages/@emulators/github/tsup.config.ts @@ -1,4 +1,5 @@ import { defineConfig } from "tsup"; +import { emitTypes } from "../../../scripts/emit-types.mjs"; import { cpSync, mkdirSync } from "node:fs"; import { resolve } from "node:path"; @@ -12,8 +13,11 @@ const copyFonts = async () => { export default defineConfig({ entry: ["src/index.ts"], format: ["esm"], - dts: true, + dts: false, sourcemap: true, noExternal: [/^@emulators\/core/], - onSuccess: copyFonts, + onSuccess: async () => { + await copyFonts(); + emitTypes(__dirname); + }, }); diff --git a/packages/github-emulator/README.md b/packages/github-emulator/README.md index cc42874b0..2c675c8c8 100644 --- a/packages/github-emulator/README.md +++ b/packages/github-emulator/README.md @@ -18,6 +18,8 @@ try { } ``` +Tokens are checked as GitHub checks them: a bearer token that the seed did not configure and the emulator did not issue (for example one issued before `reset()`) gets `401 Bad credentials`. Upstream emulate treats such a token as the default user; set `strict_scopes: false` in the seed to restore that. Private repositories answer `404` to callers who cannot see them. + The default seed is synthetic. Configure `seed` and `tokens` for your tests. The instance provides `url`, `generatedSecrets`, `reset()`, and `close()`; tokens are resolved to seeded user IDs. Reset clears dynamic credentials and replays fixture state while preserving generated App keys. After installing the tarball, `npx github-emulator --help` lists CLI options. It listens on loopback port 4200 by default and accepts `--port`, `--host`, `--base-url`, and `--config` for JSON configuration. diff --git a/packages/github-emulator/package.json b/packages/github-emulator/package.json index 64b94761b..b1cd15c0b 100644 --- a/packages/github-emulator/package.json +++ b/packages/github-emulator/package.json @@ -33,8 +33,9 @@ "scripts": { "build": "tsup --clean", "test": "vitest run", - "type-check": "tsc --noEmit", - "lint": "eslint src", + "type-check": "tsc-ts --noEmit", + "type-check:tsc": "tsc --noEmit", + "lint": "oxlint src", "prepack": "node ../../scripts/prepare-package.mjs" }, "dependencies": { @@ -43,8 +44,11 @@ "devDependencies": { "@emulators/core": "workspace:*", "@emulators/github": "workspace:*", + "rolldown": "1.2.16", + "rolldown-plugin-dts": "0.29.0", + "tsc-ts": "0.1.3", "tsup": "^8", - "typescript": "^5.7", + "typescript": "^7.0.2", "vitest": "^4.1.0" } } diff --git a/packages/github-emulator/scripts/bundle-dts.mjs b/packages/github-emulator/scripts/bundle-dts.mjs new file mode 100644 index 000000000..b55f2508d --- /dev/null +++ b/packages/github-emulator/scripts/bundle-dts.mjs @@ -0,0 +1,36 @@ +// Bundles the declarations tsc writes to .types into dist/index.d.ts, inlining the types of +// @emulators/core and @emulators/github so the package has no type dependency on them. +// rolldown-plugin-dts reads the .d.ts files as they are (dtsInput), so this step needs no +// TypeScript API. +import { readFileSync } from "node:fs"; +import { fileURLToPath } from "node:url"; +import { rolldown } from "rolldown"; +import { dts } from "rolldown-plugin-dts"; + +const cwd = fileURLToPath(new URL("..", import.meta.url)); + +// The bundler drops file-header comments, so `/*!` license notices (such as the Hono +// attribution in @emulators/core) are collected from the bundled files and kept as a banner. +function licenseNotices(chunk) { + const notices = new Set(); + for (const id of chunk.moduleIds) { + let text; + try { + text = readFileSync(id, "utf8"); + } catch { + continue; + } + for (const notice of text.match(/\/\*![\s\S]*?\*\//g) ?? []) notices.add(notice); + } + return [...notices].join("\n"); +} + +const bundle = await rolldown({ + cwd, + input: { index: fileURLToPath(new URL("../.types/index.d.ts", import.meta.url)) }, + plugins: [ + dts({ dtsInput: true, emitDtsOnly: true, generator: "oxc", resolve: ["@emulators/core", "@emulators/github"] }), + ], +}); +await bundle.write({ dir: "dist", format: "es", banner: licenseNotices }); +await bundle.close(); diff --git a/packages/github-emulator/src/index.ts b/packages/github-emulator/src/index.ts index b06f033c9..c9a28a0ec 100644 --- a/packages/github-emulator/src/index.ts +++ b/packages/github-emulator/src/index.ts @@ -1,6 +1,6 @@ import { createPrivateKey } from "node:crypto"; import type { Server } from "node:http"; -import { createServer, serve, type AppKeyResolver } from "@emulators/core"; +import { assertPortFree, createServer, serve, type AppKeyResolver } from "@emulators/core"; import { createAppKeyResolver, getGitHubStore, @@ -102,6 +102,9 @@ function validateOptions(options: GitHubEmulatorOptions): void { export async function createGitHubEmulator(options: GitHubEmulatorOptions = {}): Promise { validateOptions(options); const prepared = await materializeGitHubSeedConfig(structuredClone(options.seed ?? defaultSeed)); + // GitHub answers 401 Bad credentials for a token it never issued. Upstream keeps a permissive + // fallback by default; this edition matches GitHub unless a seed opts out explicitly. + prepared.config.strict_scopes ??= true; for (const app of prepared.config.apps ?? []) { const key = createPrivateKey(app.private_key!); if (key.asymmetricKeyType !== "rsa") throw new Error(`App ${app.app_id} requires an RSA private key`); @@ -120,8 +123,12 @@ export async function createGitHubEmulator(options: GitHubEmulatorOptions = {}): let handler: ((request: Request) => Response | Promise) | undefined; const hostname = options.hostname ?? "127.0.0.1"; + const port = options.port ?? 4200; + // Fail with EADDRINUSE when another process holds the port on the wildcard address, instead of + // binding the loopback address beside it and splitting traffic between two listeners. + await assertPortFree(hostname, port); const server = serve({ - port: options.port ?? 4200, + port, hostname, fetch: (request) => (handler ? handler(request) : Response.json({ error: "Starting" }, { status: 503 })), }); diff --git a/packages/github-emulator/tsconfig.build.json b/packages/github-emulator/tsconfig.build.json new file mode 100644 index 000000000..362b47750 --- /dev/null +++ b/packages/github-emulator/tsconfig.build.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./.types", + "emitDeclarationOnly": true, + "declarationMap": false + }, + "exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/__tests__/**"] +} diff --git a/packages/github-emulator/tsup.config.ts b/packages/github-emulator/tsup.config.ts index 1af1e4981..3f9102689 100644 --- a/packages/github-emulator/tsup.config.ts +++ b/packages/github-emulator/tsup.config.ts @@ -1,14 +1,17 @@ import { defineConfig } from "tsup"; import { cpSync } from "node:fs"; +import { emitTypes } from "../../scripts/emit-types.mjs"; export default defineConfig({ entry: ["src/index.ts", "src/cli.ts"], format: ["esm"], - dts: { resolve: true }, + // tsup's `dts` needs the TypeScript 6 API; declarations come from tsc in onSuccess instead. + dts: false, external: [/^node:/], sourcemap: true, noExternal: [/^@emulators\//], onSuccess: async () => { cpSync("../@emulators/core/src/fonts", "dist/fonts", { recursive: true }); + emitTypes(__dirname, { bundle: true }); }, }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 084336c02..05d9fa7bb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,12 +11,9 @@ importers: '@types/node': specifier: ^22 version: 22.19.17 - eslint: - specifier: ^9.39.4 - version: 9.39.4 - eslint-config-prettier: - specifier: ^10.1.8 - version: 10.1.8(eslint@9.39.4) + oxlint: + specifier: ^1.91.0 + version: 1.93.0 playwright: specifier: ^1.64.1 version: 1.64.1 @@ -24,11 +21,8 @@ importers: specifier: ^3.8.1 version: 3.8.1 typescript: - specifier: ^5.7 - version: 5.9.3 - typescript-eslint: - specifier: ^8.58.0 - version: 8.58.0(eslint@9.39.4)(typescript@5.9.3) + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.0 version: 4.1.3(@types/node@22.19.17)(vite@8.0.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)(@types/node@22.19.17)(esbuild@0.27.4)) @@ -39,12 +33,15 @@ importers: specifier: ^6.2.2 version: 6.2.2 devDependencies: + tsc-ts: + specifier: 0.1.3 + version: 0.1.3 tsup: specifier: ^8 - version: 8.5.1(postcss@8.5.23)(typescript@5.9.3) + version: 8.5.1(postcss@8.5.23)(typescript@7.0.2) typescript: - specifier: ^5.7 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.0 version: 4.1.3(@types/node@22.19.17)(vite@8.0.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)(@types/node@22.19.17)(esbuild@0.27.4)) @@ -55,12 +52,15 @@ importers: specifier: workspace:* version: link:../core devDependencies: + tsc-ts: + specifier: 0.1.3 + version: 0.1.3 tsup: specifier: ^8 - version: 8.5.1(postcss@8.5.23)(typescript@5.9.3) + version: 8.5.1(postcss@8.5.23)(typescript@7.0.2) typescript: - specifier: ^5.7 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.0 version: 4.1.3(@types/node@22.19.17)(vite@8.0.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)(@types/node@22.19.17)(esbuild@0.27.4)) @@ -77,12 +77,21 @@ importers: '@emulators/github': specifier: workspace:* version: link:../@emulators/github + rolldown: + specifier: 1.2.16 + version: 1.2.16 + rolldown-plugin-dts: + specifier: 0.29.0 + version: 0.29.0(rolldown@1.2.16)(typescript@7.0.2) + tsc-ts: + specifier: 0.1.3 + version: 0.1.3 tsup: specifier: ^8 - version: 8.5.1(postcss@8.5.23)(typescript@5.9.3) + version: 8.5.1(postcss@8.5.23)(typescript@7.0.2) typescript: - specifier: ^5.7 - version: 5.9.3 + specifier: ^7.0.2 + version: 7.0.2 vitest: specifier: ^4.1.0 version: 4.1.3(@types/node@22.19.17)(vite@8.0.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)(@types/node@22.19.17)(esbuild@0.27.4)) @@ -254,60 +263,6 @@ packages: cpu: [x64] os: [win32] - '@eslint-community/eslint-utils@4.9.1': - resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - - '@eslint-community/regexpp@4.12.2': - resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint/config-array@0.21.2': - resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/config-helpers@0.4.2': - resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/core@0.17.0': - resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/eslintrc@3.3.5': - resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/js@9.39.4': - resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/object-schema@2.1.7': - resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@eslint/plugin-kit@0.4.1': - resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - '@humanfs/core@0.19.1': - resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} - engines: {node: '>=18.18.0'} - - '@humanfs/node@0.16.7': - resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==} - engines: {node: '>=18.18.0'} - - '@humanwhocodes/module-importer@1.0.1': - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} - engines: {node: '>=12.22'} - - '@humanwhocodes/retry@0.4.3': - resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} - engines: {node: '>=18.18'} - '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -330,36 +285,197 @@ packages: '@oxc-project/types@0.120.0': resolution: {integrity: sha512-k1YNu55DuvAip/MGE1FTsIuU3FUCn6v/ujG9V7Nq5Df/kX2CWb13hhwD0lmJGMGqE+bE1MXvv9SZVnMzEXlWcg==} + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} + + '@oxlint/binding-android-arm-eabi@1.93.0': + resolution: {integrity: sha512-KKw70pbD5Pvq3G2lJ+WQ71XPMjCmg37rkSe2+mDqCRP3PoTSdDMuEi4UOnE8JBtyNM7bek61EC2s0Jt7S7u+Sg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.93.0': + resolution: {integrity: sha512-fvr1fTUZGelwRxKDt64pf28aL1WaWgviwz3X+E/FcRYvrlEahH0NECRz/c1SY+K+KWmZk5uAf6h1kQnyBkp/2A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.93.0': + resolution: {integrity: sha512-VdvSN9JRf4Es6ZzoAdvEeh8tgKdw8L4H82WmA8MMPVfPdZGCwE/nI27Z1HrRHYQhPxOh4kmnxQEioSUFrOvDaw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.93.0': + resolution: {integrity: sha512-QR1V890Ml0YGRG0F/iV0K9igG+pOhe+VWd+aZnxY849rRHZf3F2gEoQks5+GVHf105X9Mh/6HdShTP5juekG2g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.93.0': + resolution: {integrity: sha512-jDfIbi30zZaKi+rTvig3sge+Xhi8pFFSgHxb0jzovc4qh8ETm/irKV9c7N/JsuwnYc5sbvf4IC8w1vQQ0IL+BA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.93.0': + resolution: {integrity: sha512-qtxZ714ND/koFgVH00QgxlzZiIbRPmguaPhnHRU5DFFtrtEdOrSnZD4U/H2AzXrXkZ59eQbMBnJwbum5XohrIQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.93.0': + resolution: {integrity: sha512-5pJ9NjMvH7WMUqXB6bTTOSemBm39w2cod27Hu3+Yom/GhbTeNXlYcpDx1o4CgBP6fhp0YHG66TNdVaUm6sHjsA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.93.0': + resolution: {integrity: sha512-pRf+7jtbt2fHE23SX7qBxRgnBZicUgsoCK1PVIjnOk+t3a6UBkpt/GrKI99WlxsKUxftz/5nv/kfKvScmYywkw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-arm64-musl@1.93.0': + resolution: {integrity: sha512-zM8Fd/K8sqGvsBcJBZ3oVZ3ctGWbszA08IaGt5gFFF5RcunppAI/ZnAXbouABvnWeJ//S44KKlfPZnDDbeiphg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-ppc64-gnu@1.93.0': + resolution: {integrity: sha512-7qKCnvhZKDXJG2pdbLazd2hw4FxjJHbZOFrrbzyy5PdHfPLH9vnNUa1le01A8uItZuYKPBPncH+HCoEiFT4SgA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-gnu@1.93.0': + resolution: {integrity: sha512-2pgulxC6G8V5wE750NJE/fRkf9aO6i6yoj10wyaR2EdiNtan4OemsOtsQ0ZTXGdY8Q3IoTmlND3GYvjJsvikYg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.93.0': + resolution: {integrity: sha512-yWsn6Gg2PnGG5jlyDz5+pHGiMTMiy4adaa4WRMzDgzB8efaShk1JMmTHIBSVLQMh0tYXRs4CN5uJCO79r4Mi4g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.93.0': + resolution: {integrity: sha512-WCn5plwp/ezS2RDPQKp0/EXEVRr9/dDexUdRKmsMFqzNM5xBSZ1wbsi3PuMk1VfkMRnI5BuazCsziCWMXRDOlw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-gnu@1.93.0': + resolution: {integrity: sha512-F2CGjb9LAkzH+IYTZSzd1klQ1vk5z6Utjax64WeLByCkYXbVDbsun+Oy2hLfW2MDSKCvW+jwy/9ld0EPgdeu+A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-musl@1.93.0': + resolution: {integrity: sha512-plf5DE2objcG8Tf7mXRuRa8tT8rzDkpjqXQtKoGsKHWkpgsialbON1+cCtoSEUTVbQUjXvuAm8vV9+3rR0yCBw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxlint/binding-openharmony-arm64@1.93.0': + resolution: {integrity: sha512-Kp2yJrKvoTe9FfKdO/xwLNUbs2bYTMKx0+aoQD1s0h/Tx0kSgtHSdGmrk8tTKdluosjFbo88qYRIaNIX43AfFw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.93.0': + resolution: {integrity: sha512-vigjcHCFsR6KjnWTEVfaCxcMYapEuaK9FZa1MpewwQ1S+Xud3v0okfkj1RySsD6RF1NRHIjSlQSalTnKIaj3nA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.93.0': + resolution: {integrity: sha512-0Ot3BEe/AAr2/uQhe55r8CmPlperYk2mQmxdutOru7oU0kir6IiEVHb1TG3GORRlfra97lPHVDLhgmihiKzLrg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.93.0': + resolution: {integrity: sha512-ZzzIIVs/Qkm8trUWYKF0OYub5ALlv50/3gsEZbKAvWgz+yNJX6uRmQ8ySPXU2Q0/Y9m4JCOjhpmC8XUYbPHX5Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/binding-android-arm-eabi@1.2.16': + resolution: {integrity: sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + '@rolldown/binding-android-arm64@1.0.0-rc.10': resolution: {integrity: sha512-jOHxwXhxmFKuXztiu1ORieJeTbx5vrTkcOkkkn2d35726+iwhrY1w/+nYY/AGgF12thg33qC3R1LMBF5tHTZHg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] + '@rolldown/binding-android-arm64@1.2.16': + resolution: {integrity: sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + '@rolldown/binding-darwin-arm64@1.0.0-rc.10': resolution: {integrity: sha512-gED05Teg/vtTZbIJBc4VNMAxAFDUPkuO/rAIyyxZjTj1a1/s6z5TII/5yMGZ0uLRCifEtwUQn8OlYzuYc0m70w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] + '@rolldown/binding-darwin-arm64@1.2.16': + resolution: {integrity: sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + '@rolldown/binding-darwin-x64@1.0.0-rc.10': resolution: {integrity: sha512-rI15NcM1mA48lqrIxVkHfAqcyFLcQwyXWThy+BQ5+mkKKPvSO26ir+ZDp36AgYoYVkqvMcdS8zOE6SeBsR9e8A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] + '@rolldown/binding-darwin-x64@1.2.16': + resolution: {integrity: sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + '@rolldown/binding-freebsd-x64@1.0.0-rc.10': resolution: {integrity: sha512-XZRXHdTa+4ME1MuDVp021+doQ+z6Ei4CCFmNc5/sKbqb8YmkiJdj8QKlV3rCI0AJtAeSB5n0WGPuJWNL9p/L2w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] + '@rolldown/binding-freebsd-x64@1.2.16': + resolution: {integrity: sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.10': resolution: {integrity: sha512-R0SQMRluISSLzFE20sPWYHVmJdDQnRyc/FzSCN72BqQmh2SOZUFG+N3/vBZpR4C6WpEUVYJLrYUXaj43sJsNLA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] + '@rolldown/binding-linux-arm-gnueabihf@1.2.16': + resolution: {integrity: sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.10': resolution: {integrity: sha512-Y1reMrV/o+cwpduYhJuOE3OMKx32RMYCidf14y+HssARRmhDuWXJ4yVguDg2R/8SyyGNo+auzz64LnPK9Hq6jg==} engines: {node: ^20.19.0 || >=22.12.0} @@ -367,6 +483,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-arm64-gnu@1.2.16': + resolution: {integrity: sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.10': resolution: {integrity: sha512-vELN+HNb2IzuzSBUOD4NHmP9yrGwl1DVM29wlQvx1OLSclL0NgVWnVDKl/8tEks79EFek/kebQKnNJkIAA4W2g==} engines: {node: ^20.19.0 || >=22.12.0} @@ -374,6 +497,13 @@ packages: os: [linux] libc: [musl] + '@rolldown/binding-linux-arm64-musl@1.2.16': + resolution: {integrity: sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.10': resolution: {integrity: sha512-ZqrufYTgzxbHwpqOjzSsb0UV/aV2TFIY5rP8HdsiPTv/CuAgCRjM6s9cYFwQ4CNH+hf9Y4erHW1GjZuZ7WoI7w==} engines: {node: ^20.19.0 || >=22.12.0} @@ -381,6 +511,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-ppc64-gnu@1.2.16': + resolution: {integrity: sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.10': resolution: {integrity: sha512-gSlmVS1FZJSRicA6IyjoRoKAFK7IIHBs7xJuHRSmjImqk3mPPWbR7RhbnfH2G6bcmMEllCt2vQ/7u9e6bBnByg==} engines: {node: ^20.19.0 || >=22.12.0} @@ -388,6 +525,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-s390x-gnu@1.2.16': + resolution: {integrity: sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.10': resolution: {integrity: sha512-eOCKUpluKgfObT2pHjztnaWEIbUabWzk3qPZ5PuacuPmr4+JtQG4k2vGTY0H15edaTnicgU428XW/IH6AimcQw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -395,6 +539,13 @@ packages: os: [linux] libc: [glibc] + '@rolldown/binding-linux-x64-gnu@1.2.16': + resolution: {integrity: sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + '@rolldown/binding-linux-x64-musl@1.0.0-rc.10': resolution: {integrity: sha512-Xdf2jQbfQowJnLcgYfD/m0Uu0Qj5OdxKallD78/IPPfzaiaI4KRAwZzHcKQ4ig1gtg1SuzC7jovNiM2TzQsBXA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -402,12 +553,25 @@ packages: os: [linux] libc: [musl] + '@rolldown/binding-linux-x64-musl@1.2.16': + resolution: {integrity: sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + '@rolldown/binding-openharmony-arm64@1.0.0-rc.10': resolution: {integrity: sha512-o1hYe8hLi1EY6jgPFyxQgQ1wcycX+qz8eEbVmot2hFkgUzPxy9+kF0u0NIQBeDq+Mko47AkaFFaChcvZa9UX9Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] + '@rolldown/binding-openharmony-arm64@1.2.16': + resolution: {integrity: sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + '@rolldown/binding-wasm32-wasi@1.0.0-rc.10': resolution: {integrity: sha512-Ugv9o7qYJudqQO5Y5y2N2SOo6S4WiqiNOpuQyoPInnhVzCY+wi/GHltcLHypG9DEUYMB0iTB/huJrpadiAcNcA==} engines: {node: '>=14.0.0'} @@ -419,15 +583,30 @@ packages: cpu: [arm64] os: [win32] + '@rolldown/binding-win32-arm64-msvc@1.2.16': + resolution: {integrity: sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.10': resolution: {integrity: sha512-PYxKHMVHOb5NJuDL53vBUl1VwUjymDcYI6rzpIni0C9+9mTiJedvUxSk7/RPp7OOAm3v+EjgMu9bIy3N6b408w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] + '@rolldown/binding-win32-x64-msvc@1.2.16': + resolution: {integrity: sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + '@rolldown/pluginutils@1.0.0-rc.10': resolution: {integrity: sha512-UkVDEFk1w3mveXeKgaTuYfKWtPbvgck1dT8TUG3bnccrH0XtLTuAyfCoks4Q/M5ZGToSVJTIQYCzy2g/atAOeg==} + '@rolldown/pluginutils@1.1.1': + resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==} + '@rollup/rollup-android-arm-eabi@4.59.0': resolution: {integrity: sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==} cpu: [arm] @@ -569,6 +748,45 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@tsc-ts/darwin-arm64@0.1.3': + resolution: {integrity: sha512-TgVwPUp5a/HSZBvTghac1w6VUREr1eSdGL8gTBJH1xQ0Lwc9WSpaUXWvKd9CgUYz11y216SqQZ7UlTbTaUD3ug==} + cpu: [arm64] + os: [darwin] + + '@tsc-ts/darwin-x64@0.1.3': + resolution: {integrity: sha512-37+N830u4YsFjmgXDM4ahGDPoSbu3nmZLOAode8HU9xaRMN2i6OXWHotjDOHXqJx1VK5p0NMJvGR31hF9YMcTA==} + cpu: [x64] + os: [darwin] + + '@tsc-ts/linux-arm64-gnu@0.1.3': + resolution: {integrity: sha512-50kMgZajYRzbp4BMvCcOwN9GAquW+7ZGip3ZEBjSDTdFcC6871FvPCHWS43JBajKX94gsNgiAbaIHTT2aRtUQg==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tsc-ts/linux-arm64-musl@0.1.3': + resolution: {integrity: sha512-Eu/HDi7pWyQmBtA6QHCRf9Dl58dIh2SithYZFMfz7ZeqLUvU2cmYzHft3k6Pf4bnYGD031U7fKuynas15fYmww==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tsc-ts/linux-x64-gnu@0.1.3': + resolution: {integrity: sha512-uGFs1wYP4AIdIuZjjFpmiVBRN+VceDTdsch82SbJODZ1D3Rk8wdrZBRCk5Zx6SYwews/4UpI8cehXSGIKLIjng==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tsc-ts/linux-x64-musl@0.1.3': + resolution: {integrity: sha512-IidxhZJjcKLeaxipOqzJFXZBxyVD4s13MqqTJt2jSfH9Q204VLsfMnybt+F0IkWG4R6ex16bm0iEY75s+frK6w==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tsc-ts/win32-x64-msvc@0.1.3': + resolution: {integrity: sha512-MSrbC1JUrfp6vPc84TxXYofcwBNKZO0rUZsx9VYlQ/VvEAWYpU7FYO9+9FI/WfiQDh/7KzcHbRLBY+5L4BqhUg==} + cpu: [x64] + os: [win32] + '@tybys/wasm-util@0.10.3': resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} @@ -584,70 +802,128 @@ packages: '@types/estree@1.0.9': resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@22.19.17': resolution: {integrity: sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==} - '@typescript-eslint/eslint-plugin@8.58.0': - resolution: {integrity: sha512-RLkVSiNuUP1C2ROIWfqX+YcUfLaSnxGE/8M+Y57lopVwg9VTYYfhuz15Yf1IzCKgZj6/rIbYTmJCUSqr76r0Wg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - '@typescript-eslint/parser': ^8.58.0 - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-aix-ppc64@7.0.2': + resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [aix] - '@typescript-eslint/parser@8.58.0': - resolution: {integrity: sha512-rLoGZIf9afaRBYsPUMtvkDWykwXwUPL60HebR4JgTI8mxfFe2cQTu3AGitANp4b9B2QlVru6WzjgB2IzJKiCSA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-darwin-arm64@7.0.2': + resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [darwin] - '@typescript-eslint/project-service@8.58.0': - resolution: {integrity: sha512-8Q/wBPWLQP1j16NxoPNIKpDZFMaxl7yWIoqXWYeWO+Bbd2mjgvoF0dxP2jKZg5+x49rgKdf7Ck473M8PC3V9lg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-darwin-x64@7.0.2': + resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [darwin] - '@typescript-eslint/scope-manager@8.58.0': - resolution: {integrity: sha512-W1Lur1oF50FxSnNdGp3Vs6P+yBRSmZiw4IIjEeYxd8UQJwhUF0gDgDD/W/Tgmh73mxgEU3qX0Bzdl/NGuSPEpQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript/typescript-freebsd-arm64@7.0.2': + resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [freebsd] - '@typescript-eslint/tsconfig-utils@8.58.0': - resolution: {integrity: sha512-doNSZEVJsWEu4htiVC+PR6NpM+pa+a4ClH9INRWOWCUzMst/VA9c4gXq92F8GUD1rwhNvRLkgjfYtFXegXQF7A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-freebsd-x64@7.0.2': + resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [freebsd] - '@typescript-eslint/type-utils@8.58.0': - resolution: {integrity: sha512-aGsCQImkDIqMyx1u4PrVlbi/krmDsQUs4zAcCV6M7yPcPev+RqVlndsJy9kJ8TLihW9TZ0kbDAzctpLn5o+lOg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-linux-arm64@7.0.2': + resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [linux] + + '@typescript/typescript-linux-arm@7.0.2': + resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==} + engines: {node: '>=16.20.0'} + cpu: [arm] + os: [linux] - '@typescript-eslint/types@8.58.0': - resolution: {integrity: sha512-O9CjxypDT89fbHxRfETNoAnHj/i6IpRK0CvbVN3qibxlLdo5p5hcLmUuCCrHMpxiWSwKyI8mCP7qRNYuOJ0Uww==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript/typescript-linux-loong64@7.0.2': + resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==} + engines: {node: '>=16.20.0'} + cpu: [loong64] + os: [linux] - '@typescript-eslint/typescript-estree@8.58.0': - resolution: {integrity: sha512-7vv5UWbHqew/dvs+D3e1RvLv1v2eeZ9txRHPnEEBUgSNLx5ghdzjHa0sgLWYVKssH+lYmV0JaWdoubo0ncGYLA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-linux-mips64el@7.0.2': + resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==} + engines: {node: '>=16.20.0'} + cpu: [mips64el] + os: [linux] - '@typescript-eslint/utils@8.58.0': - resolution: {integrity: sha512-RfeSqcFeHMHlAWzt4TBjWOAtoW9lnsAGiP3GbaX9uVgTYYrMbVnGONEfUCiSss+xMHFl+eHZiipmA8WkQ7FuNA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' + '@typescript/typescript-linux-ppc64@7.0.2': + resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==} + engines: {node: '>=16.20.0'} + cpu: [ppc64] + os: [linux] - '@typescript-eslint/visitor-keys@8.58.0': - resolution: {integrity: sha512-XJ9UD9+bbDo4a4epraTwG3TsNPeiB9aShrUneAVXy8q4LuwowN+qu89/6ByLMINqvIMeI9H9hOHQtg/ijrYXzQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript/typescript-linux-riscv64@7.0.2': + resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==} + engines: {node: '>=16.20.0'} + cpu: [riscv64] + os: [linux] + + '@typescript/typescript-linux-s390x@7.0.2': + resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==} + engines: {node: '>=16.20.0'} + cpu: [s390x] + os: [linux] + + '@typescript/typescript-linux-x64@7.0.2': + resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [linux] + + '@typescript/typescript-netbsd-arm64@7.0.2': + resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [netbsd] + + '@typescript/typescript-netbsd-x64@7.0.2': + resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [netbsd] + + '@typescript/typescript-openbsd-arm64@7.0.2': + resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [openbsd] + + '@typescript/typescript-openbsd-x64@7.0.2': + resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [openbsd] + + '@typescript/typescript-sunos-x64@7.0.2': + resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [sunos] + + '@typescript/typescript-win32-arm64@7.0.2': + resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [win32] + + '@typescript/typescript-win32-x64@7.0.2': + resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [win32] '@vitest/expect@4.1.3': resolution: {integrity: sha512-CW8Q9KMtXDGHj0vCsqui0M5KqRsu0zm0GNDW7Gd3U7nZ2RFpPKSCpeCXoT+/+5zr1TNlsoQRDEz+LzZUyq6gnQ==} @@ -678,47 +954,48 @@ packages: '@vitest/utils@4.1.3': resolution: {integrity: sha512-Pc/Oexse/khOWsGB+w3q4yzA4te7W4gpZZAvk+fr8qXfTURZUMj5i7kuxsNK5mP/dEB6ao3jfr0rs17fHhbHdw==} - acorn-jsx@5.3.2: - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} - peerDependencies: - acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + '@yuku-toolchain/darwin-arm64@0.25.0': + resolution: {integrity: sha512-21QMCgP74cgSrgxIgw/SS5uMnn7cFHwgjNEBZYgO1HxpdjG4ULenXyUY92xRReuAJZdbRyz6OGwtYi6lDKumSw==} + cpu: [arm64] + os: [darwin] + + '@yuku-toolchain/darwin-x64@0.25.0': + resolution: {integrity: sha512-bsR90bUlDZpBdFyK5C+XFZ/Yuq4aPtK8BI15GZsT+dfdWabl8OGpTiJXcriSBu+4vrljw3pYKmn7WizWgjZ0fQ==} + cpu: [x64] + os: [darwin] + + '@yuku-toolchain/linux-arm64@0.25.0': + resolution: {integrity: sha512-T0Y/gCqE4FKfchzRKpxXbQyWFpyaCcw6wdopu1ZKCLqZs48MfZShqihQjq1dck0JgJYwc+zxlfVvb693gFH4fg==} + cpu: [arm64] + os: [linux] + + '@yuku-toolchain/linux-x64@0.25.0': + resolution: {integrity: sha512-uwroa8GsFLJLarEphscB0UCqrx3jdDNqhwVZC2Tv2QDN4i4Eo87NmJaTFpOlNF4+CNVsiN+P0BnriySTidc3xQ==} + cpu: [x64] + os: [linux] + + '@yuku-toolchain/win32-arm64@0.25.0': + resolution: {integrity: sha512-VssXbUjyRj1egmSSNwo2NEayMTth0mHBPit9WiYGEnvQyTQSUM0TLix0sJn/mVjJBrwqEKyGYg7dkdWFafNYFw==} + cpu: [arm64] + os: [win32] + + '@yuku-toolchain/win32-x64@0.25.0': + resolution: {integrity: sha512-drLnLlLtqLni1UPZJ1pKl6PPsdGJoaFGaQsJa1khtjJT+OK5Z71rb+md9fO6KP9eJXjIOJKtW7OgnVlLf91WIw==} + cpu: [x64] + os: [win32] acorn@8.16.0: resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==} engines: {node: '>=0.4.0'} hasBin: true - ajv@6.14.0: - resolution: {integrity: sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==} - - ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} - engines: {node: '>=8'} - any-promise@1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - - balanced-match@4.0.4: - resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} - engines: {node: 18 || 20 || >=22} - - brace-expansion@1.1.12: - resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} - - brace-expansion@5.0.4: - resolution: {integrity: sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==} - engines: {node: 18 || 20 || >=22} - bundle-require@5.1.0: resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -729,36 +1006,18 @@ packages: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} - callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} - engines: {node: '>=6'} - chai@6.2.2: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} - chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} - engines: {node: '>=10'} - chokidar@4.0.3: resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} engines: {node: '>= 14.16.0'} - color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} - engines: {node: '>=7.0.0'} - - color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - commander@4.1.1: resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} engines: {node: '>= 6'} - concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - confbox@0.1.8: resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} @@ -769,10 +1028,6 @@ packages: convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} - engines: {node: '>= 8'} - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -782,13 +1037,19 @@ packages: supports-color: optional: true - deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - detect-libc@2.1.2: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} + dts-resolver@3.0.0: + resolution: {integrity: sha512-1T1f+z+4tl9XD+m+0HBgWoL/nm0bOIffyWaUuUSBlFg/86IWvfx+wjNaO/ybU0AJzG9/Mi5hBUgGV6zCmWEN7Q==} + engines: {node: ^22.18.0 || >=24.0.0} + peerDependencies: + oxc-resolver: '>=11.0.0' + peerDependenciesMeta: + oxc-resolver: + optional: true + es-module-lexer@2.0.0: resolution: {integrity: sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==} @@ -797,79 +1058,13 @@ packages: engines: {node: '>=18'} hasBin: true - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - - eslint-config-prettier@10.1.8: - resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==} - hasBin: true - peerDependencies: - eslint: '>=7.0.0' - - eslint-scope@8.4.0: - resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - - eslint-visitor-keys@4.2.1: - resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - eslint-visitor-keys@5.0.1: - resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} - engines: {node: ^20.19.0 || ^22.13.0 || >=24} - - eslint@9.39.4: - resolution: {integrity: sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. - hasBin: true - peerDependencies: - jiti: '*' - peerDependenciesMeta: - jiti: - optional: true - - espree@10.4.0: - resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - - esquery@1.7.0: - resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} - engines: {node: '>=0.10'} - - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} - engines: {node: '>=4.0'} - estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} - engines: {node: '>=0.10.0'} - expect-type@1.3.0: resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==} engines: {node: '>=12.0.0'} - fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} - - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - - fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} - fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -879,67 +1074,17 @@ packages: picomatch: optional: true - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} - - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - fix-dts-default-cjs-exports@1.0.1: resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==} - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} - - flatted@3.4.2: - resolution: {integrity: sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] - glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} - engines: {node: '>=10.13.0'} - - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} - engines: {node: '>=18'} - - has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} - engines: {node: '>=8'} - - ignore@5.3.2: - resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} - engines: {node: '>= 4'} - - ignore@7.0.5: - resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} - engines: {node: '>= 4'} - - import-fresh@3.3.1: - resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} - engines: {node: '>=6'} - - imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} - engines: {node: '>=0.8.19'} - - is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} - engines: {node: '>=0.10.0'} - - is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} - engines: {node: '>=0.10.0'} - - isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + get-tsconfig@5.0.0-beta.6: + resolution: {integrity: sha512-X6fBC0pmImC70gvX2zm56go9hx0MyoGVdG0tUCkg/D+Xnh5TJsOZ7iDbOdI3PvmtrDxnu1YdDufpK2QJX1Meqw==} + engines: {node: '>=20.20.0'} jose@6.2.12: resolution: {integrity: sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==} @@ -951,26 +1096,6 @@ packages: resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} engines: {node: '>=10'} - js-yaml@4.1.1: - resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} - hasBin: true - - json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} - - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - - json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} - - keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - - levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} - engines: {node: '>= 0.8.0'} - lightningcss-android-arm64@1.32.0: resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} engines: {node: '>= 12.0.0'} @@ -1056,23 +1181,9 @@ packages: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - minimatch@10.2.4: - resolution: {integrity: sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==} - engines: {node: 18 || 20 || >=22} - - minimatch@3.1.5: - resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} - mlly@1.8.2: resolution: {integrity: sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==} @@ -1087,9 +1198,6 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - object-assign@4.1.1: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} @@ -1097,29 +1205,22 @@ packages: obug@2.1.1: resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==} - optionator@0.9.4: - resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} - engines: {node: '>= 0.8.0'} - - p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} - engines: {node: '>=10'} - - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} - engines: {node: '>=6'} + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} + engines: {node: '>=12.20.0'} - path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} - engines: {node: '>=8'} - - path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} - engines: {node: '>=8'} + oxlint@1.93.0: + resolution: {integrity: sha512-19JMsQFX+YvEbcUTFQxjTwhvs0Ibg0D6CFneSLgpwnACWcY/6LjhpGpkPodh0T5aIT1pjMTLlYaeBFzaVgugTA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=7.0.2005' + vite-plus: '*' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -1170,54 +1271,59 @@ packages: resolution: {integrity: sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==} engines: {node: ^10 || ^12 || >=14} - prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} - engines: {node: '>= 0.8.0'} - prettier@3.8.1: resolution: {integrity: sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==} engines: {node: '>=14'} hasBin: true - punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} - engines: {node: '>=6'} - readdirp@4.1.2: resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} engines: {node: '>= 14.18.0'} - resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} - engines: {node: '>=4'} - resolve-from@5.0.0: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + + rolldown-plugin-dts@0.29.0: + resolution: {integrity: sha512-PvsbRXQR5tHGnjLyxj2peRMwv3pfRfStiIqhbag3J/I2fFaYdfEQ1AaFwXfZlK8qKBkgQUNnCZdrUcaTPPq05Q==} + engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} + peerDependencies: + '@volar/typescript': ~2.4.0 + '@vue/language-core': ~3.2.0 || ~3.3.0 + rolldown: ^1.2.0 + tsrs: '*' + typescript: ^5.0.0 || ^6.0.0 || ~7.0.0 || ~7.1.0-0 + vue-tsc: ~3.2.0 || ~3.3.0 + peerDependenciesMeta: + '@volar/typescript': + optional: true + '@vue/language-core': + optional: true + tsrs: + optional: true + typescript: + optional: true + vue-tsc: + optional: true + rolldown@1.0.0-rc.10: resolution: {integrity: sha512-q7j6vvarRFmKpgJUT8HCAUljkgzEp4LAhPlJUvQhA5LA1SUL36s5QCysMutErzL3EbNOZOkoziSx9iZC4FddKA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true + rolldown@1.2.16: + resolution: {integrity: sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + rollup@4.59.0: resolution: {integrity: sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - semver@7.8.5: - resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} - engines: {node: '>=10'} - hasBin: true - - shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} - engines: {node: '>=8'} - - shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} - engines: {node: '>=8'} - siginfo@2.0.0: resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} @@ -1235,19 +1341,11 @@ packages: std-env@4.0.0: resolution: {integrity: sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==} - strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} - engines: {node: '>=8'} - sucrase@3.35.1: resolution: {integrity: sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==} engines: {node: '>=16 || 14 >=14.17'} hasBin: true - supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} - engines: {node: '>=8'} - thenify-all@1.6.0: resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} engines: {node: '>=0.8'} @@ -1281,15 +1379,19 @@ packages: resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} hasBin: true - ts-api-utils@2.5.0: - resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} - engines: {node: '>=18.12'} - peerDependencies: - typescript: '>=4.8.4' - ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + tsc-ts@0.1.3: + resolution: {integrity: sha512-GjdYgEnyj5B/UtWk8rX+lXUlxspQmmYZL/zhHA5CGSI4iqBMtdKyDsOTI9qs9SHowI5vvdZr09jyxxQJVB2E2w==} + engines: {node: '>=20'} + hasBin: true + peerDependencies: + '@scriptc/threads': 0.4.8 + peerDependenciesMeta: + '@scriptc/threads': + optional: true + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -1312,20 +1414,9 @@ packages: typescript: optional: true - type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} - engines: {node: '>= 0.8.0'} - - typescript-eslint@8.58.0: - resolution: {integrity: sha512-e2TQzKfaI85fO+F3QywtX+tCTsu/D3WW5LVU6nz8hTFKFZ8yBJ6mSYRpXqdR3mFjPWmO0eWsTa5f+UpAOe/FMA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: '>=4.8.4 <6.1.0' - - typescript@5.9.3: - resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} - engines: {node: '>=14.17'} + typescript@7.0.2: + resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==} + engines: {node: '>=16.20.0'} hasBin: true ufo@1.6.3: @@ -1334,9 +1425,6 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - vite@8.0.1: resolution: {integrity: sha512-wt+Z2qIhfFt85uiyRt5LPU4oVEJBXj8hZNWKeqFG4gRG/0RaRGJ7njQCwzFVjO+v4+Ipmf5CY7VdmZRAYYBPHw==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1421,23 +1509,19 @@ packages: jsdom: optional: true - which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} - engines: {node: '>= 8'} - hasBin: true - why-is-node-running@2.3.0: resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} hasBin: true - word-wrap@1.2.5: - resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} - engines: {node: '>=0.10.0'} - - yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} - engines: {node: '>=10'} + yuku@0.25.0: + resolution: {integrity: sha512-iAlHlpPmcjRqUauDkW9xF33b+jsUzTrrv49FfPLBNxEAUWuU7XN8tBUGjBHYPCEF/d3632MhG6GjCZutecA8Ng==} + engines: {node: '>=16.4.0'} + peerDependencies: + '@yuku-toolchain/wasm': 0.25.0 + peerDependenciesMeta: + '@yuku-toolchain/wasm': + optional: true snapshots: @@ -1535,122 +1619,163 @@ snapshots: '@esbuild/win32-x64@0.27.4': optional: true - '@eslint-community/eslint-utils@4.9.1(eslint@9.39.4)': + '@jridgewell/gen-mapping@0.3.13': dependencies: - eslint: 9.39.4 - eslint-visitor-keys: 3.4.3 + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 - '@eslint-community/regexpp@4.12.2': {} + '@jridgewell/resolve-uri@3.1.2': {} - '@eslint/config-array@0.21.2': - dependencies: - '@eslint/object-schema': 2.1.7 - debug: 4.4.3 - minimatch: 3.1.5 - transitivePeerDependencies: - - supports-color + '@jridgewell/sourcemap-codec@1.5.5': {} - '@eslint/config-helpers@0.4.2': + '@jridgewell/trace-mapping@0.3.31': dependencies: - '@eslint/core': 0.17.0 + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 - '@eslint/core@0.17.0': + '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)': dependencies: - '@types/json-schema': 7.0.15 + '@emnapi/core': 1.10.0 + '@emnapi/runtime': 1.11.3 + '@tybys/wasm-util': 0.10.3 + optional: true - '@eslint/eslintrc@3.3.5': - dependencies: - ajv: 6.14.0 - debug: 4.4.3 - espree: 10.4.0 - globals: 14.0.0 - ignore: 5.3.2 - import-fresh: 3.3.1 - js-yaml: 4.1.1 - minimatch: 3.1.5 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color + '@oxc-project/types@0.120.0': {} - '@eslint/js@9.39.4': {} + '@oxc-project/types@0.156.0': {} - '@eslint/object-schema@2.1.7': {} + '@oxlint/binding-android-arm-eabi@1.93.0': + optional: true - '@eslint/plugin-kit@0.4.1': - dependencies: - '@eslint/core': 0.17.0 - levn: 0.4.1 + '@oxlint/binding-android-arm64@1.93.0': + optional: true - '@humanfs/core@0.19.1': {} + '@oxlint/binding-darwin-arm64@1.93.0': + optional: true - '@humanfs/node@0.16.7': - dependencies: - '@humanfs/core': 0.19.1 - '@humanwhocodes/retry': 0.4.3 + '@oxlint/binding-darwin-x64@1.93.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.93.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.93.0': + optional: true - '@humanwhocodes/module-importer@1.0.1': {} + '@oxlint/binding-linux-arm-musleabihf@1.93.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.93.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.93.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.93.0': + optional: true - '@humanwhocodes/retry@0.4.3': {} + '@oxlint/binding-linux-riscv64-gnu@1.93.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.93.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.93.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.93.0': + optional: true - '@jridgewell/gen-mapping@0.3.13': - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - '@jridgewell/trace-mapping': 0.3.31 + '@oxlint/binding-linux-x64-musl@1.93.0': + optional: true - '@jridgewell/resolve-uri@3.1.2': {} + '@oxlint/binding-openharmony-arm64@1.93.0': + optional: true - '@jridgewell/sourcemap-codec@1.5.5': {} + '@oxlint/binding-win32-arm64-msvc@1.93.0': + optional: true - '@jridgewell/trace-mapping@0.3.31': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 + '@oxlint/binding-win32-ia32-msvc@1.93.0': + optional: true - '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.11.3 - '@tybys/wasm-util': 0.10.3 + '@oxlint/binding-win32-x64-msvc@1.93.0': optional: true - '@oxc-project/types@0.120.0': {} + '@rolldown/binding-android-arm-eabi@1.2.16': + optional: true '@rolldown/binding-android-arm64@1.0.0-rc.10': optional: true + '@rolldown/binding-android-arm64@1.2.16': + optional: true + '@rolldown/binding-darwin-arm64@1.0.0-rc.10': optional: true + '@rolldown/binding-darwin-arm64@1.2.16': + optional: true + '@rolldown/binding-darwin-x64@1.0.0-rc.10': optional: true + '@rolldown/binding-darwin-x64@1.2.16': + optional: true + '@rolldown/binding-freebsd-x64@1.0.0-rc.10': optional: true + '@rolldown/binding-freebsd-x64@1.2.16': + optional: true + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-arm-gnueabihf@1.2.16': + optional: true + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-arm64-gnu@1.2.16': + optional: true + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-arm64-musl@1.2.16': + optional: true + '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-ppc64-gnu@1.2.16': + optional: true + '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-s390x-gnu@1.2.16': + optional: true + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-x64-gnu@1.2.16': + optional: true + '@rolldown/binding-linux-x64-musl@1.0.0-rc.10': optional: true + '@rolldown/binding-linux-x64-musl@1.2.16': + optional: true + '@rolldown/binding-openharmony-arm64@1.0.0-rc.10': optional: true + '@rolldown/binding-openharmony-arm64@1.2.16': + optional: true + '@rolldown/binding-wasm32-wasi@1.0.0-rc.10(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)': dependencies: '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3) @@ -1662,11 +1787,19 @@ snapshots: '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.10': optional: true + '@rolldown/binding-win32-arm64-msvc@1.2.16': + optional: true + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.10': optional: true + '@rolldown/binding-win32-x64-msvc@1.2.16': + optional: true + '@rolldown/pluginutils@1.0.0-rc.10': {} + '@rolldown/pluginutils@1.1.1': {} + '@rollup/rollup-android-arm-eabi@4.59.0': optional: true @@ -1744,6 +1877,27 @@ snapshots: '@standard-schema/spec@1.1.0': {} + '@tsc-ts/darwin-arm64@0.1.3': + optional: true + + '@tsc-ts/darwin-x64@0.1.3': + optional: true + + '@tsc-ts/linux-arm64-gnu@0.1.3': + optional: true + + '@tsc-ts/linux-arm64-musl@0.1.3': + optional: true + + '@tsc-ts/linux-x64-gnu@0.1.3': + optional: true + + '@tsc-ts/linux-x64-musl@0.1.3': + optional: true + + '@tsc-ts/win32-x64-msvc@0.1.3': + optional: true + '@tybys/wasm-util@0.10.3': dependencies: tslib: 2.8.1 @@ -1760,102 +1914,69 @@ snapshots: '@types/estree@1.0.9': {} - '@types/json-schema@7.0.15': {} - '@types/node@22.19.17': dependencies: undici-types: 6.21.0 - '@typescript-eslint/eslint-plugin@8.58.0(@typescript-eslint/parser@8.58.0(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@eslint-community/regexpp': 4.12.2 - '@typescript-eslint/parser': 8.58.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/scope-manager': 8.58.0 - '@typescript-eslint/type-utils': 8.58.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/utils': 8.58.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.58.0 - eslint: 9.39.4 - ignore: 7.0.5 - natural-compare: 1.4.0 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color + '@typescript/typescript-aix-ppc64@7.0.2': + optional: true - '@typescript-eslint/parser@8.58.0(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@typescript-eslint/scope-manager': 8.58.0 - '@typescript-eslint/types': 8.58.0 - '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.9.3) - '@typescript-eslint/visitor-keys': 8.58.0 - debug: 4.4.3 - eslint: 9.39.4 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color + '@typescript/typescript-darwin-arm64@7.0.2': + optional: true - '@typescript-eslint/project-service@8.58.0(typescript@5.9.3)': - dependencies: - '@typescript-eslint/tsconfig-utils': 8.58.0(typescript@5.9.3) - '@typescript-eslint/types': 8.58.0 - debug: 4.4.3 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color + '@typescript/typescript-darwin-x64@7.0.2': + optional: true - '@typescript-eslint/scope-manager@8.58.0': - dependencies: - '@typescript-eslint/types': 8.58.0 - '@typescript-eslint/visitor-keys': 8.58.0 + '@typescript/typescript-freebsd-arm64@7.0.2': + optional: true - '@typescript-eslint/tsconfig-utils@8.58.0(typescript@5.9.3)': - dependencies: - typescript: 5.9.3 + '@typescript/typescript-freebsd-x64@7.0.2': + optional: true - '@typescript-eslint/type-utils@8.58.0(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@typescript-eslint/types': 8.58.0 - '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.58.0(eslint@9.39.4)(typescript@5.9.3) - debug: 4.4.3 - eslint: 9.39.4 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color + '@typescript/typescript-linux-arm64@7.0.2': + optional: true - '@typescript-eslint/types@8.58.0': {} + '@typescript/typescript-linux-arm@7.0.2': + optional: true - '@typescript-eslint/typescript-estree@8.58.0(typescript@5.9.3)': - dependencies: - '@typescript-eslint/project-service': 8.58.0(typescript@5.9.3) - '@typescript-eslint/tsconfig-utils': 8.58.0(typescript@5.9.3) - '@typescript-eslint/types': 8.58.0 - '@typescript-eslint/visitor-keys': 8.58.0 - debug: 4.4.3 - minimatch: 10.2.4 - semver: 7.8.5 - tinyglobby: 0.2.17 - ts-api-utils: 2.5.0(typescript@5.9.3) - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color + '@typescript/typescript-linux-loong64@7.0.2': + optional: true - '@typescript-eslint/utils@8.58.0(eslint@9.39.4)(typescript@5.9.3)': - dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) - '@typescript-eslint/scope-manager': 8.58.0 - '@typescript-eslint/types': 8.58.0 - '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.9.3) - eslint: 9.39.4 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color + '@typescript/typescript-linux-mips64el@7.0.2': + optional: true - '@typescript-eslint/visitor-keys@8.58.0': - dependencies: - '@typescript-eslint/types': 8.58.0 - eslint-visitor-keys: 5.0.1 + '@typescript/typescript-linux-ppc64@7.0.2': + optional: true + + '@typescript/typescript-linux-riscv64@7.0.2': + optional: true + + '@typescript/typescript-linux-s390x@7.0.2': + optional: true + + '@typescript/typescript-linux-x64@7.0.2': + optional: true + + '@typescript/typescript-netbsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-netbsd-x64@7.0.2': + optional: true + + '@typescript/typescript-openbsd-arm64@7.0.2': + optional: true + + '@typescript/typescript-openbsd-x64@7.0.2': + optional: true + + '@typescript/typescript-sunos-x64@7.0.2': + optional: true + + '@typescript/typescript-win32-arm64@7.0.2': + optional: true + + '@typescript/typescript-win32-x64@7.0.2': + optional: true '@vitest/expect@4.1.3': dependencies: @@ -1898,41 +2019,29 @@ snapshots: convert-source-map: 2.0.0 tinyrainbow: 3.1.0 - acorn-jsx@5.3.2(acorn@8.16.0): - dependencies: - acorn: 8.16.0 - - acorn@8.16.0: {} - - ajv@6.14.0: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 + '@yuku-toolchain/darwin-arm64@0.25.0': + optional: true - ansi-styles@4.3.0: - dependencies: - color-convert: 2.0.1 + '@yuku-toolchain/darwin-x64@0.25.0': + optional: true - any-promise@1.3.0: {} + '@yuku-toolchain/linux-arm64@0.25.0': + optional: true - argparse@2.0.1: {} + '@yuku-toolchain/linux-x64@0.25.0': + optional: true - assertion-error@2.0.1: {} + '@yuku-toolchain/win32-arm64@0.25.0': + optional: true - balanced-match@1.0.2: {} + '@yuku-toolchain/win32-x64@0.25.0': + optional: true - balanced-match@4.0.4: {} + acorn@8.16.0: {} - brace-expansion@1.1.12: - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 + any-promise@1.3.0: {} - brace-expansion@5.0.4: - dependencies: - balanced-match: 4.0.4 + assertion-error@2.0.1: {} bundle-require@5.1.0(esbuild@0.27.4): dependencies: @@ -1941,49 +2050,28 @@ snapshots: cac@6.7.14: {} - callsites@3.1.0: {} - chai@6.2.2: {} - chalk@4.1.2: - dependencies: - ansi-styles: 4.3.0 - supports-color: 7.2.0 - chokidar@4.0.3: dependencies: readdirp: 4.1.2 - color-convert@2.0.1: - dependencies: - color-name: 1.1.4 - - color-name@1.1.4: {} - commander@4.1.1: {} - concat-map@0.0.1: {} - confbox@0.1.8: {} consola@3.4.2: {} convert-source-map@2.0.0: {} - cross-spawn@7.0.6: - dependencies: - path-key: 3.1.1 - shebang-command: 2.0.0 - which: 2.0.2 - debug@4.4.3: dependencies: ms: 2.1.3 - deep-is@0.1.4: {} - detect-libc@2.1.2: {} + dts-resolver@3.0.0: {} + es-module-lexer@2.0.0: {} esbuild@0.27.4: @@ -2015,147 +2103,28 @@ snapshots: '@esbuild/win32-ia32': 0.27.4 '@esbuild/win32-x64': 0.27.4 - escape-string-regexp@4.0.0: {} - - eslint-config-prettier@10.1.8(eslint@9.39.4): - dependencies: - eslint: 9.39.4 - - eslint-scope@8.4.0: - dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 - - eslint-visitor-keys@3.4.3: {} - - eslint-visitor-keys@4.2.1: {} - - eslint-visitor-keys@5.0.1: {} - - eslint@9.39.4: - dependencies: - '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.4) - '@eslint-community/regexpp': 4.12.2 - '@eslint/config-array': 0.21.2 - '@eslint/config-helpers': 0.4.2 - '@eslint/core': 0.17.0 - '@eslint/eslintrc': 3.3.5 - '@eslint/js': 9.39.4 - '@eslint/plugin-kit': 0.4.1 - '@humanfs/node': 0.16.7 - '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.4.3 - '@types/estree': 1.0.8 - ajv: 6.14.0 - chalk: 4.1.2 - cross-spawn: 7.0.6 - debug: 4.4.3 - escape-string-regexp: 4.0.0 - eslint-scope: 8.4.0 - eslint-visitor-keys: 4.2.1 - espree: 10.4.0 - esquery: 1.7.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 - find-up: 5.0.0 - glob-parent: 6.0.2 - ignore: 5.3.2 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - json-stable-stringify-without-jsonify: 1.0.1 - lodash.merge: 4.6.2 - minimatch: 3.1.5 - natural-compare: 1.4.0 - optionator: 0.9.4 - transitivePeerDependencies: - - supports-color - - espree@10.4.0: - dependencies: - acorn: 8.16.0 - acorn-jsx: 5.3.2(acorn@8.16.0) - eslint-visitor-keys: 4.2.1 - - esquery@1.7.0: - dependencies: - estraverse: 5.3.0 - - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@5.3.0: {} - estree-walker@3.0.3: dependencies: '@types/estree': 1.0.9 - esutils@2.0.3: {} - expect-type@1.3.0: {} - fast-deep-equal@3.1.3: {} - - fast-json-stable-stringify@2.1.0: {} - - fast-levenshtein@2.0.6: {} - fdir@6.5.0(picomatch@4.0.4): optionalDependencies: picomatch: 4.0.4 - file-entry-cache@8.0.0: - dependencies: - flat-cache: 4.0.1 - - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - fix-dts-default-cjs-exports@1.0.1: dependencies: magic-string: 0.30.21 mlly: 1.8.2 rollup: 4.59.0 - flat-cache@4.0.1: - dependencies: - flatted: 3.4.2 - keyv: 4.5.4 - - flatted@3.4.2: {} - fsevents@2.3.3: optional: true - glob-parent@6.0.2: - dependencies: - is-glob: 4.0.3 - - globals@14.0.0: {} - - has-flag@4.0.0: {} - - ignore@5.3.2: {} - - ignore@7.0.5: {} - - import-fresh@3.3.1: - dependencies: - parent-module: 1.0.1 - resolve-from: 4.0.0 - - imurmurhash@0.1.4: {} - - is-extglob@2.1.1: {} - - is-glob@4.0.3: + get-tsconfig@5.0.0-beta.6: dependencies: - is-extglob: 2.1.1 - - isexe@2.0.0: {} + resolve-pkg-maps: 1.0.0 jose@6.2.12: {} @@ -2163,25 +2132,6 @@ snapshots: joycon@3.1.1: {} - js-yaml@4.1.1: - dependencies: - argparse: 2.0.1 - - json-buffer@3.0.1: {} - - json-schema-traverse@0.4.1: {} - - json-stable-stringify-without-jsonify@1.0.1: {} - - keyv@4.5.4: - dependencies: - json-buffer: 3.0.1 - - levn@0.4.1: - dependencies: - prelude-ls: 1.2.1 - type-check: 0.4.0 - lightningcss-android-arm64@1.32.0: optional: true @@ -2237,24 +2187,10 @@ snapshots: load-tsconfig@0.2.5: {} - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - - lodash.merge@4.6.2: {} - magic-string@0.30.21: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - minimatch@10.2.4: - dependencies: - brace-expansion: 5.0.4 - - minimatch@3.1.5: - dependencies: - brace-expansion: 1.1.12 - mlly@1.8.2: dependencies: acorn: 8.16.0 @@ -2272,36 +2208,33 @@ snapshots: nanoid@3.3.19: {} - natural-compare@1.4.0: {} - object-assign@4.1.1: {} obug@2.1.1: {} - optionator@0.9.4: - dependencies: - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - word-wrap: 1.2.5 - - p-limit@3.1.0: - dependencies: - yocto-queue: 0.1.0 - - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - parent-module@1.0.1: - dependencies: - callsites: 3.1.0 - - path-exists@4.0.0: {} + obug@3.0.0: {} - path-key@3.1.1: {} + oxlint@1.93.0: + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.93.0 + '@oxlint/binding-android-arm64': 1.93.0 + '@oxlint/binding-darwin-arm64': 1.93.0 + '@oxlint/binding-darwin-x64': 1.93.0 + '@oxlint/binding-freebsd-x64': 1.93.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.93.0 + '@oxlint/binding-linux-arm-musleabihf': 1.93.0 + '@oxlint/binding-linux-arm64-gnu': 1.93.0 + '@oxlint/binding-linux-arm64-musl': 1.93.0 + '@oxlint/binding-linux-ppc64-gnu': 1.93.0 + '@oxlint/binding-linux-riscv64-gnu': 1.93.0 + '@oxlint/binding-linux-riscv64-musl': 1.93.0 + '@oxlint/binding-linux-s390x-gnu': 1.93.0 + '@oxlint/binding-linux-x64-gnu': 1.93.0 + '@oxlint/binding-linux-x64-musl': 1.93.0 + '@oxlint/binding-openharmony-arm64': 1.93.0 + '@oxlint/binding-win32-arm64-msvc': 1.93.0 + '@oxlint/binding-win32-ia32-msvc': 1.93.0 + '@oxlint/binding-win32-x64-msvc': 1.93.0 pathe@2.0.3: {} @@ -2335,18 +2268,27 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - prelude-ls@1.2.1: {} - prettier@3.8.1: {} - punycode@2.3.1: {} - readdirp@4.1.2: {} - resolve-from@4.0.0: {} - resolve-from@5.0.0: {} + resolve-pkg-maps@1.0.0: {} + + rolldown-plugin-dts@0.29.0(rolldown@1.2.16)(typescript@7.0.2): + dependencies: + dts-resolver: 3.0.0 + get-tsconfig: 5.0.0-beta.6 + obug: 3.0.0 + rolldown: 1.2.16 + yuku: 0.25.0 + optionalDependencies: + typescript: 7.0.2 + transitivePeerDependencies: + - '@yuku-toolchain/wasm' + - oxc-resolver + rolldown@1.0.0-rc.10(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3): dependencies: '@oxc-project/types': 0.120.0 @@ -2371,6 +2313,27 @@ snapshots: - '@emnapi/core' - '@emnapi/runtime' + rolldown@1.2.16: + dependencies: + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.1.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.16 + '@rolldown/binding-android-arm64': 1.2.16 + '@rolldown/binding-darwin-arm64': 1.2.16 + '@rolldown/binding-darwin-x64': 1.2.16 + '@rolldown/binding-freebsd-x64': 1.2.16 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.16 + '@rolldown/binding-linux-arm64-gnu': 1.2.16 + '@rolldown/binding-linux-arm64-musl': 1.2.16 + '@rolldown/binding-linux-ppc64-gnu': 1.2.16 + '@rolldown/binding-linux-s390x-gnu': 1.2.16 + '@rolldown/binding-linux-x64-gnu': 1.2.16 + '@rolldown/binding-linux-x64-musl': 1.2.16 + '@rolldown/binding-openharmony-arm64': 1.2.16 + '@rolldown/binding-win32-arm64-msvc': 1.2.16 + '@rolldown/binding-win32-x64-msvc': 1.2.16 + rollup@4.59.0: dependencies: '@types/estree': 1.0.8 @@ -2402,14 +2365,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.59.0 fsevents: 2.3.3 - semver@7.8.5: {} - - shebang-command@2.0.0: - dependencies: - shebang-regex: 3.0.0 - - shebang-regex@3.0.0: {} - siginfo@2.0.0: {} source-map-js@1.2.1: {} @@ -2420,8 +2375,6 @@ snapshots: std-env@4.0.0: {} - strip-json-comments@3.1.1: {} - sucrase@3.35.1: dependencies: '@jridgewell/gen-mapping': 0.3.13 @@ -2432,10 +2385,6 @@ snapshots: tinyglobby: 0.2.17 ts-interface-checker: 0.1.13 - supports-color@7.2.0: - dependencies: - has-flag: 4.0.0 - thenify-all@1.6.0: dependencies: thenify: 3.3.1 @@ -2464,16 +2413,22 @@ snapshots: tree-kill@1.2.2: {} - ts-api-utils@2.5.0(typescript@5.9.3): - dependencies: - typescript: 5.9.3 - ts-interface-checker@0.1.13: {} + tsc-ts@0.1.3: + optionalDependencies: + '@tsc-ts/darwin-arm64': 0.1.3 + '@tsc-ts/darwin-x64': 0.1.3 + '@tsc-ts/linux-arm64-gnu': 0.1.3 + '@tsc-ts/linux-arm64-musl': 0.1.3 + '@tsc-ts/linux-x64-gnu': 0.1.3 + '@tsc-ts/linux-x64-musl': 0.1.3 + '@tsc-ts/win32-x64-msvc': 0.1.3 + tslib@2.8.1: optional: true - tsup@8.5.1(postcss@8.5.23)(typescript@5.9.3): + tsup@8.5.1(postcss@8.5.23)(typescript@7.0.2): dependencies: bundle-require: 5.1.0(esbuild@0.27.4) cac: 6.7.14 @@ -2494,38 +2449,40 @@ snapshots: tree-kill: 1.2.2 optionalDependencies: postcss: 8.5.23 - typescript: 5.9.3 + typescript: 7.0.2 transitivePeerDependencies: - jiti - supports-color - tsx - yaml - type-check@0.4.0: - dependencies: - prelude-ls: 1.2.1 - - typescript-eslint@8.58.0(eslint@9.39.4)(typescript@5.9.3): - dependencies: - '@typescript-eslint/eslint-plugin': 8.58.0(@typescript-eslint/parser@8.58.0(eslint@9.39.4)(typescript@5.9.3))(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/parser': 8.58.0(eslint@9.39.4)(typescript@5.9.3) - '@typescript-eslint/typescript-estree': 8.58.0(typescript@5.9.3) - '@typescript-eslint/utils': 8.58.0(eslint@9.39.4)(typescript@5.9.3) - eslint: 9.39.4 - typescript: 5.9.3 - transitivePeerDependencies: - - supports-color - - typescript@5.9.3: {} + typescript@7.0.2: + optionalDependencies: + '@typescript/typescript-aix-ppc64': 7.0.2 + '@typescript/typescript-darwin-arm64': 7.0.2 + '@typescript/typescript-darwin-x64': 7.0.2 + '@typescript/typescript-freebsd-arm64': 7.0.2 + '@typescript/typescript-freebsd-x64': 7.0.2 + '@typescript/typescript-linux-arm': 7.0.2 + '@typescript/typescript-linux-arm64': 7.0.2 + '@typescript/typescript-linux-loong64': 7.0.2 + '@typescript/typescript-linux-mips64el': 7.0.2 + '@typescript/typescript-linux-ppc64': 7.0.2 + '@typescript/typescript-linux-riscv64': 7.0.2 + '@typescript/typescript-linux-s390x': 7.0.2 + '@typescript/typescript-linux-x64': 7.0.2 + '@typescript/typescript-netbsd-arm64': 7.0.2 + '@typescript/typescript-netbsd-x64': 7.0.2 + '@typescript/typescript-openbsd-arm64': 7.0.2 + '@typescript/typescript-openbsd-x64': 7.0.2 + '@typescript/typescript-sunos-x64': 7.0.2 + '@typescript/typescript-win32-arm64': 7.0.2 + '@typescript/typescript-win32-x64': 7.0.2 ufo@1.6.3: {} undici-types@6.21.0: {} - uri-js@4.4.1: - dependencies: - punycode: 2.3.1 - vite@8.0.1(@emnapi/core@1.10.0)(@emnapi/runtime@1.11.3)(@types/node@22.19.17)(esbuild@0.27.4): dependencies: lightningcss: 1.32.0 @@ -2568,15 +2525,16 @@ snapshots: transitivePeerDependencies: - msw - which@2.0.2: - dependencies: - isexe: 2.0.0 - why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 stackback: 0.0.2 - word-wrap@1.2.5: {} - - yocto-queue@0.1.0: {} + yuku@0.25.0: + optionalDependencies: + '@yuku-toolchain/darwin-arm64': 0.25.0 + '@yuku-toolchain/darwin-x64': 0.25.0 + '@yuku-toolchain/linux-arm64': 0.25.0 + '@yuku-toolchain/linux-x64': 0.25.0 + '@yuku-toolchain/win32-arm64': 0.25.0 + '@yuku-toolchain/win32-x64': 0.25.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 15a0d4897..2beb2f02e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,8 +1,14 @@ +minimumReleaseAge: 2880 +# tsc-ts and its platform packages are Vercel Labs packages, exempt so the +# type-check can use a just-released tsc-ts. +minimumReleaseAgeExclude: + - "tsc-ts" + - "@tsc-ts/*" + +allowBuilds: + esbuild: false + packages: - "packages/@emulators/core" - "packages/@emulators/github" - "packages/github-emulator" - -minimumReleaseAge: 2880 -allowBuilds: - esbuild: false diff --git a/scripts/emit-types.mjs b/scripts/emit-types.mjs new file mode 100644 index 000000000..ee6f16ab1 --- /dev/null +++ b/scripts/emit-types.mjs @@ -0,0 +1,19 @@ +// Writes a package's declaration files with tsc and its tsconfig.build.json. tsup's own `dts` +// option needs the TypeScript 6 API, so tsup configs call this from `onSuccess` instead, which +// runs after every build, including each rebuild in watch mode. +import { execFileSync } from "node:child_process"; +import { join } from "node:path"; + +export function emitTypes(packageDir, { bundle = false } = {}) { + execFileSync("tsc", ["-p", "tsconfig.build.json"], { + cwd: packageDir, + stdio: "inherit", + shell: process.platform === "win32", + }); + if (bundle) { + execFileSync(process.execPath, [join(packageDir, "scripts/bundle-dts.mjs")], { + cwd: packageDir, + stdio: "inherit", + }); + } +} diff --git a/tsconfig.json b/tsconfig.json index fe1189990..f56531f74 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,8 @@ "resolveJsonModule": true, "declaration": true, "declarationMap": true, - "sourceMap": true + "sourceMap": true, + "types": ["node"] }, "exclude": [ "node_modules",