From 628a69f7bf3ce286bdabce7bf490463b0d07ff12 Mon Sep 17 00:00:00 2001 From: Dan Draper Date: Tue, 24 Nov 2026 12:35:22 +1100 Subject: [PATCH] chore(auth): build the node bindings with napi-rs 3 The repository is moving to one napi-rs version, and the recipher binding needs napi-rs 3. This moves @cipherstash/auth and @cipherstash/profile from napi-rs 2 to napi-rs 3: napi 3.16.2 and napi-derive 3.7.1, @napi-rs/cli 3.10.12. napi-build stays on 2 (2.6.0): napi-rs 3 has no stable napi-build 3, and its own crates build with napi-build 2. The one Rust change is the ThreadsafeFunction API, which napi-rs 3 rewrote. `ThreadsafeFunction` becomes `ThreadsafeFunction, T, Status, false>`: `false` is the old Fatal (no error-first argument, a throwing callback is fatal), and the return type moves from the closure into the type, so the callback now receives a `Result` and propagates it with `?` as the v2 closure did. The CLI changed under the release build. napi v2 turned off its generated loader with `--js false`; napi v3 reads `--js false` as a path and writes the loader to a file named `false`, which `git diff --exit-code` does not see because the file is untracked. The release build now passes `--no-js`, its tree check also fails on an added file, and auth-build-artifacts.test.mjs holds both. The package.json napi config moves to v3's `binaryName` and `targets`, which v3 reads without a deprecation warning; the six target triples and the binary names are unchanged. native.d.ts is regenerated: v3 sorts the declarations, changes the header, and types the three OidcFederationStrategy callbacks precisely instead of as `() => any`. index.d.ts, the published types entry, re-exports only the three unchanged interfaces from it, so consumers see no type change. --- .changeset/auth-napi-rs-3.md | 7 + .github/workflows/_build-auth-artifacts.yml | 29 +- AGENTS.md | 2 +- Cargo.lock | 66 +- languages/typescript/packages/auth/Cargo.toml | 4 +- .../typescript/packages/auth/native.d.ts | 179 +-- .../typescript/packages/auth/package.json | 23 +- languages/typescript/packages/auth/src/lib.rs | 50 +- .../typescript/packages/profile/Cargo.toml | 4 +- .../typescript/packages/profile/native.d.ts | 4 +- .../typescript/packages/profile/package.json | 23 +- pnpm-lock.yaml | 1108 ++++++++++++++++- .../__tests__/auth-build-artifacts.test.mjs | 28 +- 13 files changed, 1337 insertions(+), 190 deletions(-) create mode 100644 .changeset/auth-napi-rs-3.md diff --git a/.changeset/auth-napi-rs-3.md b/.changeset/auth-napi-rs-3.md new file mode 100644 index 0000000000..243eb9f14e --- /dev/null +++ b/.changeset/auth-napi-rs-3.md @@ -0,0 +1,7 @@ +--- +"@cipherstash/auth": patch +--- + +The native binaries are now built with napi-rs 3 instead of napi-rs 2. The +package's API, its TypeScript types and the names of its platform packages and +binaries are unchanged. diff --git a/.github/workflows/_build-auth-artifacts.yml b/.github/workflows/_build-auth-artifacts.yml index efa6f64560..cf04c62bea 100644 --- a/.github/workflows/_build-auth-artifacts.yml +++ b/.github/workflows/_build-auth-artifacts.yml @@ -102,15 +102,20 @@ jobs: if: ${{ matrix.platform != 'linux-x64-musl' }} run: pnpm install --frozen-lockfile - # `--js false` is load-bearing. With `--platform`, napi v2 also writes its - # own `index.js` loader over the committed one, which is a published, - # frozen file (release-gate.mjs FROZEN_ARTEFACT_DIGESTS). + # `--no-js` is load-bearing. With `--platform`, napi also writes its own + # `index.js` loader over the committed one, which is a published file + # the package's `main` names. napi v2 turned that off with `--js false`; + # napi v3 reads `--js false` as a path and writes its loader to a file + # named `false`, which the diff check below cannot see because the file + # is untracked. The binary lands in this directory as + # `stack-auth-node..node` (`napi.binaryName` plus the + # platform), and `native.d.ts` is rewritten in place. - name: Build the native binding if: ${{ matrix.platform != 'linux-x64-musl' }} working-directory: languages/typescript/packages/auth env: TARGET: ${{ matrix.target }} - run: mise x -- pnpm exec napi build --platform --release --target "$TARGET" --strip --dts native.d.ts --js false + run: mise x -- pnpm exec napi build --platform --release --target "$TARGET" --strip --dts native.d.ts --no-js # The musl binary is built inside Alpine Linux, a musl system, so the # compiler and its runtime libraries are musl's own. Built on the Ubuntu @@ -147,7 +152,7 @@ jobs: corepack prepare "$PNPM_SPEC" --activate pnpm install --frozen-lockfile --ignore-scripts --filter "@cipherstash/auth..." cd languages/typescript/packages/auth - pnpm exec napi build --platform --release --target "$TARGET" --strip --dts native.d.ts --js false + pnpm exec napi build --platform --release --target "$TARGET" --strip --dts native.d.ts --no-js # Load it here, on musl: readelf only infers that it will load, # and this also catches a missing runtime library or an # unresolved symbol, in every build, release builds included. @@ -156,9 +161,19 @@ jobs: # The build must leave the tracked tree alone: `native.d.ts` is # regenerated and has to equal the committed copy, and nothing else may - # change. + # change. The diff covers tracked files; the status check catches a file + # the build added, such as a loader written to a stray path. The binary + # itself is gitignored (`*.node`), so it does not show. - name: Verify the build changed no tracked file - run: git diff --exit-code -- languages/typescript/packages/auth + run: | + set -euo pipefail + git diff --exit-code -- languages/typescript/packages/auth + added=$(git status --porcelain -- languages/typescript/packages/auth) + if [ -n "$added" ]; then + echo "$added" + echo "::error::the build added files to the auth package" + exit 1 + fi - name: Place the binding in its platform package working-directory: languages/typescript/packages/auth diff --git a/AGENTS.md b/AGENTS.md index 9065c2333d..a6f8a49226 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -91,7 +91,7 @@ Every npm package except EQL lives under `languages/typescript/`: packages in `l `cipherstash/encrypt-query-language` repository. Old upstream issue and PR links are provenance only. - `packages/stack-auth`, `packages/stack-profile`, `packages/stack-kms`, `packages/stack-encrypt`, `packages/stack-encrypt-derive`, `packages/stack-encrypt-jsonpath`, `packages/stack-guest-abi`: The Rust crates imported from `cipherstash/cipherstash-suite` with their history, and one added here — `stack-auth` and `stack-profile` (published to crates.io, one version group), `stack-kms` (published to crates.io from 0.1.0, its own version group, re-exported by `stack-encrypt` as `stack_encrypt::kms`), `stack-encrypt` and `stack-encrypt-derive` (published to crates.io from 0.1.0, one version group; `eql-bindings`' `stack-encrypt` feature depends on them from the registry), `stack-encrypt-jsonpath` (the JSONPath grammar of the JSON index and the SQL/JSON path predicate grammar its `match` operator reads, moved out of `stack-encrypt` so the derive can check a field's declared paths, and `predicate!` a predicate's text, at compile time; in the `stack-encrypt` version group, re-exported at `stack_encrypt::json`; its first version is published by hand, as the others' were, before Trusted Publishing can take it), and `stack-guest-abi` (`publish = false`). They are the members of the **root Cargo workspace**, with the three node binding crates below. See "Working on the Rust crates". -- `languages/typescript/packages/auth`, `languages/typescript/packages/profile`, `languages/typescript/packages/stack-auth-wasm`: The node bindings of those crates. `@cipherstash/auth` (napi-rs v2) and its six `platforms/*` packages are published to npm from this repository by `release.yml` (`auth-artifacts`, `publish-auth`); a change to what it ships, the `stack-auth` crate included, needs an `@cipherstash/auth` changeset (`require-auth-npm-changeset.yml`). `@cipherstash/profile` and its platforms are private and never published; `@cipherstash/stack-auth-wasm` is private and builds the wasm that `@cipherstash/auth` ships. Their `build` and `test` scripts never invoke cargo; `build:native`, `build:debug` and `test:cargo` do. `@cipherstash/auth` also ships two pure-JS framework adapters over the wasm `OidcFederationStrategy`: `./next` (Next.js App Router, hands the token to the render on a request header) and `./start` (TanStack Start: `csFederateCurrent` is called inside a function middleware the app declares itself, which hands the token to the server function through `next({ context })`; `@tanstack/react-start` is an optional peer loaded only by that entry). +- `languages/typescript/packages/auth`, `languages/typescript/packages/profile`, `languages/typescript/packages/stack-auth-wasm`: The node bindings of those crates. `@cipherstash/auth` (napi-rs v3) and its six `platforms/*` packages are published to npm from this repository by `release.yml` (`auth-artifacts`, `publish-auth`); a change to what it ships, the `stack-auth` crate included, needs an `@cipherstash/auth` changeset (`require-auth-npm-changeset.yml`). `@cipherstash/profile` and its platforms are private and never published; `@cipherstash/stack-auth-wasm` is private and builds the wasm that `@cipherstash/auth` ships. Their `build` and `test` scripts never invoke cargo; `build:native`, `build:debug` and `test:cargo` do. `@cipherstash/auth` also ships two pure-JS framework adapters over the wasm `OidcFederationStrategy`: `./next` (Next.js App Router, hands the token to the render on a request header) and `./start` (TanStack Start: `csFederateCurrent` is called inside a function middleware the app declares itself, which hands the token to the server function through `next({ context })`; `@tanstack/react-start` is an optional peer loaded only by that entry). - `languages/golang`: The Go module — the SDK `encrypt` with its generated-code support `encrypt/gensupport`, its test package `encrypt/encrypttest` (context assertions, and `NewClient`: an offline client over the deterministic test builds, for an application's tests; a **nested Go module** of its own, so only a program that imports it downloads those builds, requiring the SDK at the zero pseudo-version with `replace ../..` in the tree, and `NewClient` fails when the two are at different versions) and the policy packages `encrypt/policy` and `encrypt/policy/protosource`; the credential package `auth`; the generator `stashgen` and its command `cmd/stashgen`; and `internal` (the shared guest plumbing and the `record` wire model). A wazero host with no cgo. Its two WASI guests (`encrypt/guest`, `auth/guest`) are detached Cargo workspaces built by `mise run wasm:guest:build` and `mise run wasm:auth-guest:build`; `mise run wasm:guest:build:deterministic` and `wasm:guest:build:eql:deterministic` build the seeded TEST builds into `encrypt/encrypttest/wasm`, which `encrypttest` embeds and the hermetic Go tests read; the `.wasm` files are gitignored. The stack-encrypt guest has a second build with the EQL types (`mise run wasm:guest:build:eql`, cargo feature `eql`, linking `eql-bindings` by path; `wasm:guest:build:eql:deterministic` is its test build), embedded by `encrypt/eql` and registered on import, so a program whose generated code names an EQL type runs it (ADR-0007, amended). `encrypt/eql`'s types and `Types` table are generated from the EQL catalog by `eql-codegen` (`eql_gen.go`, written by `mise run types:generate` in `packages/eql` and drift-gated by `types:check` and `cargo test -p eql-codegen`). Generated `*_stash.go` files are committed and CI fails when `go generate ./...` changes one. Releases are cut by hand with `.github/workflows/release-golang.yml` (`gh workflow run release-golang.yml -f version=X.Y.Z[-pre] --ref `): because the guests are gitignored on main and Go fetches a version as the files committed at its tag, the workflow builds them, commits them on a release-only commit no branch points at, with `encrypt/encrypttest/go.mod` pinned to the SDK version by `scripts/go-release-pin-encrypttest.sh` (run in `build` and in `publish`), tags it `languages/golang/vX.Y.Z` and `languages/golang/encrypt/encrypttest/vX.Y.Z` (the workflow's `MODULES`) and pushes the tags alone, then attaches the EQL v4 SQL bundle to the GitHub release. The ref must carry the EQL v4 bundle, or the build stops at "Build the EQL SQL bundles". `scripts/go-release-version.mjs` refuses, before anything is built, every version Go would refuse (non-canonical semver, `+build` metadata, a v2+ major on a module path with no `/vN` suffix, a version shaped like a pseudo-version), a final version dispatched from anywhere but `main`, and a final version while `languages/golang/go.mod` pins a `github.com/cipherstash/vitaminc/…` module at a pseudo-version (vitaminc's Go bindings have no tags, and a TEMPORARY pin on an unreleased commit must be gone before the module is tagged); a pre-release may come from a branch and may carry such a pin. The build job also refuses a version the Go proxy already lists in `@v/list`, which catches a tag deleted after the proxy fetched it; it never asks the proxy for the version itself before the tag exists, because the proxy would cache "not found" for up to 30 minutes and `verify` would fail after the push. The build checks the `Cargo.lock` of the EQL workspace and both guest workspaces with `--locked` first, since none of those builds passes it. It runs in a job with no write token and hands the guests to a `publish` job that holds `contents: write` and runs only git and gh. `publish` fetches the commit with plain unauthenticated git rather than `actions/checkout`, whose `token` input defaults to the job's writable token, and refuses a release commit whose tree is not the one the build tested. `publish` takes the paths it commits from the workflow's fixed `GUESTS` list, never from the artifact, and refuses a `guests.sha256` that is not exactly one SHA-256 line for each of those five guests (the three production guests and the two test builds `encrypttest` embeds): the build job runs third-party code after writing that manifest, so a path read from it could put any file on the tag (`scripts/__tests__/go-release-artifact.test.mjs`). The release page's notes are the version's `## [X.Y.Z]` section of `languages/golang/CHANGELOG.md`, taken by `scripts/go-release-notes.mjs` in a `notes` job that runs no third-party code and that `build` waits for: a version with no section, or an empty one, is refused before anything is built, so write the section before dispatching. A version is immutable once the Go proxy has fetched it, so a tag is never moved or deleted: if `publish` or `verify` fails after the tag is pushed, use "Re-run failed jobs" on the same run, which keeps a tag that run pushed and creates or completes the release; a new dispatch of the same version is refused. Never tag a main commit by hand: `go get` would fetch a module with no guests. `encrypt/example` is a third nested module, never tagged: it requires both modules as an application does. `./...` stops at a nested module, so `scripts/go-binding-test.sh`, `go:lint` and the generated-code check find each `go.mod` and run in its directory. - `e2e/*`: Cross-package end-to-end tests (package managers, supply chain, Prisma example README) - `e2e/migration-guide`: Unpublished, separately installed npm examples for the Protect/EQL v2 to Stack/EQL v3 guide. See its README before running; Postgres requires a disposable database and DynamoDB persistence is in memory. diff --git a/Cargo.lock b/Cargo.lock index 1ffec6803f..166be4dc9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -659,18 +659,18 @@ checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" [[package]] name = "convert_case" -version = "0.6.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" dependencies = [ "unicode-segmentation", ] [[package]] name = "convert_case" -version = "0.10.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +checksum = "1af709f1f33454bf52eadfc8c78b3b9ef9cb26fb54d16dc9cd9a7299f899fd1b" dependencies = [ "unicode-segmentation", ] @@ -785,12 +785,11 @@ dependencies = [ [[package]] name = "ctor" -version = "0.2.9" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501" +checksum = "ea691ed9f36489d087419b8b2ba3ef27d89621380b4178c73e2445a379e4e0f4" dependencies = [ - "quote", - "syn 2.0.114", + "link-section", ] [[package]] @@ -1930,9 +1929,9 @@ checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" [[package]] name = "libloading" -version = "0.8.9" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +checksum = "a1832accd5a4ca2795ace4d05d15c4039be15b62d3b950eff99746a990e3cc10" dependencies = [ "cfg-if", "windows-link", @@ -1954,6 +1953,12 @@ dependencies = [ "libc", ] +[[package]] +name = "link-section" +version = "0.19.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d9aae57673c1a235149777a74d152f3210ebd3e3b13346d2cdb6809e566bd3c" + [[package]] name = "linux-raw-sys" version = "0.4.15" @@ -2133,15 +2138,18 @@ checksum = "add0ac067452ff1aca8c5002111bd6b1c895baee6e45fcbc44e0193aea17be56" [[package]] name = "napi" -version = "2.16.17" +version = "3.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55740c4ae1d8696773c78fdafd5d0e5fe9bc9f1b071c7ba493ba5c413a9184f3" +checksum = "567c62b9c2d0fae123713f766686ad66a2c75b45ba3ee01ed8b06a7e99bc435b" dependencies = [ "bitflags", "ctor", - "napi-derive", + "futures", + "libc", + "napi-build", "napi-sys", - "once_cell", + "nohash-hasher", + "rustc-hash", "tokio", ] @@ -2153,38 +2161,36 @@ checksum = "b899b545d3aa6dca985939059f258c5488d34e4ecf39c274e20009748f4b846d" [[package]] name = "napi-derive" -version = "2.16.13" +version = "3.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cbe2585d8ac223f7d34f13701434b9d5f4eb9c332cccce8dee57ea18ab8ab0c" +checksum = "94c8098ed9d61a1bbd019519c637817531b0e24023ef4b5678f2f0cbe24bed9c" dependencies = [ - "cfg-if", - "convert_case 0.6.0", + "convert_case 0.12.0", + "ctor", "napi-derive-backend", "proc-macro2", "quote", - "syn 2.0.114", + "syn 3.0.9", ] [[package]] name = "napi-derive-backend" -version = "1.0.75" +version = "7.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1639aaa9eeb76e91c6ae66da8ce3e89e921cd3885e99ec85f4abacae72fc91bf" +checksum = "314cd6ca42bd978fd8bae84b4137e1322bbf3e83552fca8dbd7d18034188ff3a" dependencies = [ - "convert_case 0.6.0", - "once_cell", + "convert_case 0.12.0", "proc-macro2", "quote", - "regex", "semver", - "syn 2.0.114", + "syn 3.0.9", ] [[package]] name = "napi-sys" -version = "2.4.0" +version = "3.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427802e8ec3a734331fec1035594a210ce1ff4dc5bc1950530920ab717964ea3" +checksum = "d153beb7d5c973f4b9395be8a83054a28968b61188f1dd1a2cc2321af22daea2" dependencies = [ "libloading", ] @@ -2195,6 +2201,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + [[package]] name = "nom" version = "8.0.0" diff --git a/languages/typescript/packages/auth/Cargo.toml b/languages/typescript/packages/auth/Cargo.toml index 5f14a11a72..75cfd07351 100644 --- a/languages/typescript/packages/auth/Cargo.toml +++ b/languages/typescript/packages/auth/Cargo.toml @@ -12,8 +12,8 @@ stack-auth = { workspace = true, features = ["http"] } stack-profile = { workspace = true } cts-common = { workspace = true } vitaminc-protected = { workspace = true } -napi = { version = "2", features = ["async", "tokio_rt"] } -napi-derive = "2" +napi = { version = "3", features = ["async", "tokio_rt"] } +napi-derive = "3" serde_json = "1" zeroize = { workspace = true } diff --git a/languages/typescript/packages/auth/native.d.ts b/languages/typescript/packages/auth/native.d.ts index d798ade1f7..74a0188167 100644 --- a/languages/typescript/packages/auth/native.d.ts +++ b/languages/typescript/packages/auth/native.d.ts @@ -1,57 +1,26 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ /** - * The result of a successful `getToken()` call. - * - * Contains the bearer credential and decoded JWT claims for service discovery. - */ -export interface TokenResult { - /** The bearer token string (used as `Authorization: Bearer `). */ - token: string - /** The subject claim from the JWT (e.g. `"CS|auth0|user123"` or `"CS|CSAKkeyId"`). */ - subject: string - /** The workspace identifier from the JWT. */ - workspaceId: string - /** The issuer URL from the JWT `iss` claim (i.e. the CTS host). */ - issuer: string - /** Service endpoint URLs from the JWT `services` claim (e.g. `{ zerokms: "https://..." }`). */ - services: Record -} -/** Options for `AutoStrategy.detect()`. */ -export interface AutoStrategyOptions { - /** An explicit access key (takes precedence over `CS_CLIENT_ACCESS_KEY` env var). */ - accessKey?: string - /** An explicit workspace CRN (takes precedence over `CS_WORKSPACE_CRN` env var). */ - workspaceCrn?: string -} -/** - * Metadata returned after a successful device code authentication. - * - * The actual token is never exposed to JavaScript — it is saved directly - * to `~/.cipherstash/auth.json` by the Rust layer. + * An auth strategy that uses a static access key for service-to-service + * or CI/CD authentication. */ -export interface AuthResult { - /** Absolute epoch timestamp (seconds) when the token expires. */ - expiresAt: number - /** Number of seconds before the token expires (computed at time of return). */ - expiresIn: number +export declare class AccessKeyStrategy { + /** + * Create a new `AccessKeyStrategy` for the given workspace CRN and + * access key. + * + * The CRN format is `crn::` (e.g. + * `"crn:ap-southeast-2.aws:ZVATKW3VHMFG27DY"`). Region is parsed + * from the CRN and used for service discovery; the workspace ID is + * used to verify every issued token belongs to the right workspace. + * A mismatch fails `getToken()` with `code === "WORKSPACE_MISMATCH"`. + */ + static create(workspaceCrn: string, accessKey: string): AccessKeyStrategy + /** Retrieve a valid access token, refreshing or re-authenticating as needed. */ + getToken(): Promise } -/** - * Provision a device client in ZeroKMS after login. - * - * Loads the auth token and device identity from `~/.cipherstash/`, - * creates a client on the workspace's default keyset, and persists the - * resulting secret key to `~/.cipherstash/secretkey.json`. - * - * This is a no-op if the secret key already exists or the server returns - * 409 (conflict). - */ -export declare function bindClientDevice(): Promise -/** Begin the OAuth 2.0 Device Authorization flow. */ -export declare function beginDeviceCodeFlow(region: string, clientId: string): Promise + /** * An auth strategy that auto-detects credentials from environment variables * and the local profile store. @@ -74,25 +43,29 @@ export declare class AutoStrategy { /** Retrieve a valid access token, refreshing or re-authenticating as needed. */ getToken(): Promise } -/** - * An auth strategy that uses a static access key for service-to-service - * or CI/CD authentication. - */ -export declare class AccessKeyStrategy { + +export declare class DeviceCodeResult { + get userCode(): string + get verificationUri(): string + get verificationUriComplete(): string + get expiresIn(): number /** - * Create a new `AccessKeyStrategy` for the given workspace CRN and - * access key. + * Poll the auth server until the user completes authorization. * - * The CRN format is `crn::` (e.g. - * `"crn:ap-southeast-2.aws:ZVATKW3VHMFG27DY"`). Region is parsed - * from the CRN and used for service discovery; the workspace ID is - * used to verify every issued token belongs to the right workspace. - * A mismatch fails `getToken()` with `code === "WORKSPACE_MISMATCH"`. + * **Consumes** the internal handle — it cannot be reused after this call. + * If you need to open the browser, call `openInBrowser` *before* + * `pollForToken`. */ - static create(workspaceCrn: string, accessKey: string): AccessKeyStrategy - /** Retrieve a valid access token, refreshing or re-authenticating as needed. */ - getToken(): Promise + pollForToken(): Promise + /** + * Open the verification URI in the user's default browser. + * + * Does **not** consume the handle — you can still call `pollForToken` + * afterwards. + */ + openInBrowser(): boolean } + /** * An auth strategy that uses OAuth refresh tokens persisted to disk * (`~/.cipherstash/auth.json`). @@ -103,6 +76,7 @@ export declare class DeviceSessionStrategy { /** Retrieve a valid access token, refreshing as needed. */ getToken(): Promise } + /** * An auth strategy that federates a third-party OIDC JWT (Clerk, Supabase, …) * into a CipherStash CTS service token via `/api/authorise`. @@ -147,7 +121,7 @@ export declare class OidcFederationStrategy { * lifetime (about 15 minutes). `0` caches nothing. Each eviction is * logged at `debug`. */ - static create(workspaceCrn: string, getJwt: () => any, baseUrl?: string | undefined | null, cacheCapacity?: number | undefined | null): OidcFederationStrategy + static create(workspaceCrn: string, getJwt: (() => Promise), baseUrl?: string | undefined | null, cacheCapacity?: number | undefined | null): OidcFederationStrategy /** * Create an `OidcFederationStrategy` backed by external token-store callbacks. * @@ -163,7 +137,7 @@ export declare class OidcFederationStrategy { * strategy-scoped CTS host that overrides `CS_CTS_HOST` and service * discovery, and the number of JWTs whose token is kept in memory. */ - static createWithStore(workspaceCrn: string, getJwt: () => any, loadToken: () => any, saveToken: (arg: string) => any, baseUrl?: string | undefined | null, cacheCapacity?: number | undefined | null): OidcFederationStrategy + static createWithStore(workspaceCrn: string, getJwt: (() => Promise), loadToken: (() => Promise), saveToken: ((arg: string) => Promise), baseUrl?: string | undefined | null, cacheCapacity?: number | undefined | null): OidcFederationStrategy /** * Retrieve a valid CTS service token, federating or re-federating as needed. * @@ -185,24 +159,57 @@ export declare class OidcFederationStrategy { */ getTokenForJwt(jwt: string): Promise } -export declare class DeviceCodeResult { - get userCode(): string - get verificationUri(): string - get verificationUriComplete(): string - get expiresIn(): number - /** - * Poll the auth server until the user completes authorization. - * - * **Consumes** the internal handle — it cannot be reused after this call. - * If you need to open the browser, call `openInBrowser` *before* - * `pollForToken`. - */ - pollForToken(): Promise - /** - * Open the verification URI in the user's default browser. - * - * Does **not** consume the handle — you can still call `pollForToken` - * afterwards. - */ - openInBrowser(): boolean + +/** + * Metadata returned after a successful device code authentication. + * + * The actual token is never exposed to JavaScript — it is saved directly + * to `~/.cipherstash/auth.json` by the Rust layer. + */ +export interface AuthResult { + /** Absolute epoch timestamp (seconds) when the token expires. */ + expiresAt: number + /** Number of seconds before the token expires (computed at time of return). */ + expiresIn: number +} + +/** Options for `AutoStrategy.detect()`. */ +export interface AutoStrategyOptions { + /** An explicit access key (takes precedence over `CS_CLIENT_ACCESS_KEY` env var). */ + accessKey?: string + /** An explicit workspace CRN (takes precedence over `CS_WORKSPACE_CRN` env var). */ + workspaceCrn?: string +} + +/** Begin the OAuth 2.0 Device Authorization flow. */ +export declare function beginDeviceCodeFlow(region: string, clientId: string): Promise + +/** + * Provision a device client in ZeroKMS after login. + * + * Loads the auth token and device identity from `~/.cipherstash/`, + * creates a client on the workspace's default keyset, and persists the + * resulting secret key to `~/.cipherstash/secretkey.json`. + * + * This is a no-op if the secret key already exists or the server returns + * 409 (conflict). + */ +export declare function bindClientDevice(): Promise + +/** + * The result of a successful `getToken()` call. + * + * Contains the bearer credential and decoded JWT claims for service discovery. + */ +export interface TokenResult { + /** The bearer token string (used as `Authorization: Bearer `). */ + token: string + /** The subject claim from the JWT (e.g. `"CS|auth0|user123"` or `"CS|CSAKkeyId"`). */ + subject: string + /** The workspace identifier from the JWT. */ + workspaceId: string + /** The issuer URL from the JWT `iss` claim (i.e. the CTS host). */ + issuer: string + /** Service endpoint URLs from the JWT `services` claim (e.g. `{ zerokms: "https://..." }`). */ + services: Record } diff --git a/languages/typescript/packages/auth/package.json b/languages/typescript/packages/auth/package.json index c903e4b2ab..e1562915b8 100644 --- a/languages/typescript/packages/auth/package.json +++ b/languages/typescript/packages/auth/package.json @@ -43,18 +43,15 @@ } }, "napi": { - "name": "stack-auth-node", - "triples": { - "defaults": false, - "additional": [ - "x86_64-apple-darwin", - "aarch64-apple-darwin", - "x86_64-unknown-linux-gnu", - "aarch64-unknown-linux-gnu", - "x86_64-unknown-linux-musl", - "x86_64-pc-windows-msvc" - ] - } + "binaryName": "stack-auth-node", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-unknown-linux-gnu", + "aarch64-unknown-linux-gnu", + "x86_64-unknown-linux-musl", + "x86_64-pc-windows-msvc" + ] }, "files": [ "index.js", @@ -121,7 +118,7 @@ "@byteslice/result": "^0.3.0" }, "devDependencies": { - "@napi-rs/cli": "^2", + "@napi-rs/cli": "^3", "typescript": "^5", "vitest": "catalog:repo", "@tanstack/react-start": "^1.168.60" diff --git a/languages/typescript/packages/auth/src/lib.rs b/languages/typescript/packages/auth/src/lib.rs index c83ff8a92a..857a722817 100644 --- a/languages/typescript/packages/auth/src/lib.rs +++ b/languages/typescript/packages/auth/src/lib.rs @@ -3,7 +3,7 @@ use std::sync::Mutex; use cts_common::Region; use napi::bindgen_prelude::*; -use napi::threadsafe_function::{ErrorStrategy, ThreadsafeFunction, ThreadsafeFunctionCallMode}; +use napi::threadsafe_function::{ThreadsafeFunction, ThreadsafeFunctionCallMode}; use napi::tokio::sync::oneshot; use napi_derive::napi; use stack_auth::{ @@ -225,6 +225,28 @@ impl DeviceSessionStrategy { // OidcFederationStrategy — federate a third-party OIDC JWT into a CTS service token // --------------------------------------------------------------------------- +/// A JS callback taking `Args` and returning a `Promise` of `Resolves`. +/// +/// `CalleeHandled = false`: the callback is called with `Args` alone, not +/// with an error-first `(err, ...args)`. A callback that throws, or returns +/// something that is not a `Promise`, reaches the `?` in its +/// `call_with_return_value` closure below, and napi raises that error as an +/// uncaught exception (`napi_fatal_exception`) rather than handing it back +/// to Rust. A rejected `Promise` is handed back, and handled. +/// +/// The `#[napi]` factories spell these types out in full instead of using +/// the aliases: napi generates `native.d.ts` from the type as written, and +/// would print an alias's name rather than the function type it stands for. +type PromiseCallback = + ThreadsafeFunction, Args, Status, false>; + +/// `getJwt`: `() => Promise`. +type GetJwtCallback = PromiseCallback<(), String>; +/// `loadToken`: `() => Promise`. +type LoadTokenCallback = PromiseCallback<(), Option>; +/// `saveToken`: `(json: string) => Promise`. +type SaveTokenCallback = PromiseCallback; + /// Bridges a JS `getJwt` callback into a Rust [`OidcProvider`]. /// /// The binding keeps this provider itself, and does not give it to the Rust @@ -238,7 +260,7 @@ impl DeviceSessionStrategy { /// (running on napi's tokio pool) schedule the call onto the Node event-loop /// thread; the JS-returned `Promise` is ferried back and awaited here. struct NapiOidcProvider { - get_jwt: ThreadsafeFunction<(), ErrorStrategy::Fatal>, + get_jwt: GetJwtCallback, } impl OidcProvider for NapiOidcProvider { @@ -247,8 +269,8 @@ impl OidcProvider for NapiOidcProvider { let status = self.get_jwt.call_with_return_value( (), ThreadsafeFunctionCallMode::NonBlocking, - move |promise: Promise| { - let _ = tx.send(promise); + move |promise: Result>, _env| { + let _ = tx.send(promise?); Ok(()) }, ); @@ -280,8 +302,8 @@ impl OidcProvider for NapiOidcProvider { /// Both are best-effort, mirroring [`stack_auth::TokenStoreFn`] semantics: a /// `load` failure becomes a cache miss, a `save` failure is swallowed. struct NapiTokenStore { - load: ThreadsafeFunction<(), ErrorStrategy::Fatal>, - save: ThreadsafeFunction, + load: LoadTokenCallback, + save: SaveTokenCallback, } impl TokenStore for NapiTokenStore { @@ -290,8 +312,8 @@ impl TokenStore for NapiTokenStore { let status = self.load.call_with_return_value( (), ThreadsafeFunctionCallMode::NonBlocking, - move |promise: Promise>| { - let _ = tx.send(promise); + move |promise: Result>>, _env| { + let _ = tx.send(promise?); Ok(()) }, ); @@ -310,8 +332,8 @@ impl TokenStore for NapiTokenStore { let status = self.save.call_with_return_value( json.to_string(), ThreadsafeFunctionCallMode::NonBlocking, - move |promise: Promise<()>| { - let _ = tx.send(promise); + move |promise: Result>, _env| { + let _ = tx.send(promise?); Ok(()) }, ); @@ -389,7 +411,7 @@ impl OidcFederationStrategy { #[napi(factory)] pub fn create( workspace_crn: String, - get_jwt: ThreadsafeFunction<(), ErrorStrategy::Fatal>, + get_jwt: ThreadsafeFunction<(), Promise, (), Status, false>, base_url: Option, cache_capacity: Option, ) -> Result { @@ -423,9 +445,9 @@ impl OidcFederationStrategy { #[napi(factory)] pub fn create_with_store( workspace_crn: String, - get_jwt: ThreadsafeFunction<(), ErrorStrategy::Fatal>, - load_token: ThreadsafeFunction<(), ErrorStrategy::Fatal>, - save_token: ThreadsafeFunction, + get_jwt: ThreadsafeFunction<(), Promise, (), Status, false>, + load_token: ThreadsafeFunction<(), Promise>, (), Status, false>, + save_token: ThreadsafeFunction, String, Status, false>, base_url: Option, cache_capacity: Option, ) -> Result { diff --git a/languages/typescript/packages/profile/Cargo.toml b/languages/typescript/packages/profile/Cargo.toml index ea96fa83c3..51ddea4d1c 100644 --- a/languages/typescript/packages/profile/Cargo.toml +++ b/languages/typescript/packages/profile/Cargo.toml @@ -9,8 +9,8 @@ crate-type = ["cdylib"] [dependencies] stack-profile = { workspace = true } -napi = "2" -napi-derive = "2" +napi = "3" +napi-derive = "3" [build-dependencies] napi-build = "2" diff --git a/languages/typescript/packages/profile/native.d.ts b/languages/typescript/packages/profile/native.d.ts index 612a199654..03e43d933a 100644 --- a/languages/typescript/packages/profile/native.d.ts +++ b/languages/typescript/packages/profile/native.d.ts @@ -1,7 +1,5 @@ -/* tslint:disable */ -/* eslint-disable */ - /* auto-generated by NAPI-RS */ +/* eslint-disable */ export declare class ProfileStore { /** diff --git a/languages/typescript/packages/profile/package.json b/languages/typescript/packages/profile/package.json index 1a379f0d9e..56254c728a 100644 --- a/languages/typescript/packages/profile/package.json +++ b/languages/typescript/packages/profile/package.json @@ -5,18 +5,15 @@ "main": "index.js", "types": "index.d.ts", "napi": { - "name": "stack-profile-node", - "triples": { - "defaults": false, - "additional": [ - "x86_64-apple-darwin", - "aarch64-apple-darwin", - "x86_64-unknown-linux-gnu", - "aarch64-unknown-linux-gnu", - "x86_64-unknown-linux-musl", - "x86_64-pc-windows-msvc" - ] - } + "binaryName": "stack-profile-node", + "targets": [ + "x86_64-apple-darwin", + "aarch64-apple-darwin", + "x86_64-unknown-linux-gnu", + "aarch64-unknown-linux-gnu", + "x86_64-unknown-linux-musl", + "x86_64-pc-windows-msvc" + ] }, "files": [ "index.js", @@ -39,7 +36,7 @@ "@cipherstash/profile-win32-x64-msvc": "workspace:*" }, "devDependencies": { - "@napi-rs/cli": "^2", + "@napi-rs/cli": "^3", "vitest": "catalog:repo", "typescript": "^5" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d16287c1f6..3d7f3b2b35 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -207,8 +207,8 @@ importers: version: link:platforms/win32-x64-msvc devDependencies: '@napi-rs/cli': - specifier: ^2 - version: 2.18.4 + specifier: ^3 + version: 3.10.12(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3)(@types/node@26.2.0) '@tanstack/react-start': specifier: ^1.168.60 version: 1.169.5(esbuild@0.28.2)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(rollup@4.68.0)(vite@7.3.7(@types/node@22.20.5)(jiti@2.7.0)(lightningcss@1.33.0)(terser@5.44.1)(tsx@4.23.15)(yaml@2.9.1)) @@ -408,8 +408,8 @@ importers: languages/typescript/packages/profile: devDependencies: '@napi-rs/cli': - specifier: ^2 - version: 2.18.4 + specifier: ^3 + version: 3.10.12(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3)(@types/node@26.2.0) typescript: specifier: ^5 version: 5.9.3 @@ -1351,9 +1351,18 @@ packages: react-dom: optional: true + '@emnapi/core@2.0.0-beta.3': + resolution: {integrity: sha512-KA+gOBtbifRATmUa/Gpf5C2B2EJ0r4brHUT3XSgACeHREcuiObXH56xd+B3fFsEFbUT04VBEe6MuZiCtMp0tQg==} + '@emnapi/runtime@1.11.3': resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} + '@emnapi/runtime@2.0.0-beta.3': + resolution: {integrity: sha512-ayb/PyyLzpwRyFVxeC0uoEHu59QlB1iWGcGsOpXQcaB/Dc+uGfBmNmpCHp3HmTT0t8lSsMmg3j7+tdJW/TlHjQ==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + '@esbuild/aix-ppc64@0.28.1': resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==} engines: {node: '>=18'} @@ -1834,6 +1843,55 @@ packages: cpu: [x64] os: [win32] + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + '@inquirer/external-editor@1.0.3': resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==} engines: {node: '>=18'} @@ -1843,6 +1901,91 @@ packages: '@types/node': optional: true + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + '@isaacs/nonrecursive-glob-match@1.0.3': resolution: {integrity: sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==} @@ -1884,10 +2027,365 @@ packages: '@cfworker/json-schema': optional: true - '@napi-rs/cli@2.18.4': - resolution: {integrity: sha512-SgJeA4df9DE2iAEpr3M2H0OKl/yjtg1BnRI5/JyowS71tUWhrfSu2LT0V3vlHET+g1hBVlrO60PmEXwUEKp8Mg==} - engines: {node: '>= 10'} + '@napi-rs/cli@3.10.12': + resolution: {integrity: sha512-8QDEW10Ld/uAemSP9g5WFIcmKh7I6PMA78ttc2UtZb+6cyAsX7RkVt2H5B658j7504R2JRE6JHs+b0WERHc+4w==} + engines: {node: ^20.17.0 || ^22.13.0 || >= 23.5.0} hasBin: true + peerDependencies: + '@emnapi/core': ^1.7.1 || ^2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || ^2.0.0-beta.2 + emnapi: ^1.7.1 || ^2.0.0-beta.2 + peerDependenciesMeta: + '@emnapi/core': + optional: true + '@emnapi/runtime': + optional: true + emnapi: + optional: true + + '@napi-rs/cross-toolchain@1.0.5': + resolution: {integrity: sha512-UhzMXkaW8xc1ekwDeahmezVU0BEeK68VvkpgmdDPcJPhGVdHrAF/xQTD8lpyMEkFat0w2vBMmklpoFtzNCUneQ==} + peerDependencies: + '@napi-rs/cross-toolchain-arm64-target-aarch64': ^1.0.5 + '@napi-rs/cross-toolchain-arm64-target-armv7': ^1.0.5 + '@napi-rs/cross-toolchain-arm64-target-ppc64le': ^1.0.5 + '@napi-rs/cross-toolchain-arm64-target-s390x': ^1.0.5 + '@napi-rs/cross-toolchain-arm64-target-x86_64': ^1.0.5 + '@napi-rs/cross-toolchain-x64-target-aarch64': ^1.0.5 + '@napi-rs/cross-toolchain-x64-target-armv7': ^1.0.5 + '@napi-rs/cross-toolchain-x64-target-ppc64le': ^1.0.5 + '@napi-rs/cross-toolchain-x64-target-s390x': ^1.0.5 + '@napi-rs/cross-toolchain-x64-target-x86_64': ^1.0.5 + peerDependenciesMeta: + '@napi-rs/cross-toolchain-arm64-target-aarch64': + optional: true + '@napi-rs/cross-toolchain-arm64-target-armv7': + optional: true + '@napi-rs/cross-toolchain-arm64-target-ppc64le': + optional: true + '@napi-rs/cross-toolchain-arm64-target-s390x': + optional: true + '@napi-rs/cross-toolchain-arm64-target-x86_64': + optional: true + '@napi-rs/cross-toolchain-x64-target-aarch64': + optional: true + '@napi-rs/cross-toolchain-x64-target-armv7': + optional: true + '@napi-rs/cross-toolchain-x64-target-ppc64le': + optional: true + '@napi-rs/cross-toolchain-x64-target-s390x': + optional: true + '@napi-rs/cross-toolchain-x64-target-x86_64': + optional: true + + '@napi-rs/lzma-android-arm-eabi@1.5.3': + resolution: {integrity: sha512-Jo8Ej9sTXZO+vHVllHPYxcHVoW4dQe30eLx7wk3H786vv2zy/qIIi5KoO6WhK/VsSBhAb13xbIa/vc4maUgp8Q==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm] + os: [android] + + '@napi-rs/lzma-android-arm64@1.5.3': + resolution: {integrity: sha512-BUEMluJxOJ/9WkZH/IFyyi3viNQGEByodAHDbmJ/k7mVhabGIxjYBea3MmnyTZoIoqZs/ftAKH7jhVCIj+k6mw==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm64] + os: [android] + + '@napi-rs/lzma-darwin-arm64@1.5.3': + resolution: {integrity: sha512-ea46AUzmoGqWnrDP8JNea14TCiVMmxWtaD/d5YjRgh1KbL3YfZ9O2BZzfF7DAF+yrVuAQqS52rHveysjnzYlJA==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm64] + os: [darwin] + + '@napi-rs/lzma-darwin-x64@1.5.3': + resolution: {integrity: sha512-/vz8UpAe/9fV7JiTrT+lAV9Xk9bK4F28u8JRDNIYdGaT7lXP0r/e7YjDvBuJZ9bJtStW4nn/08q5Q7yfFmsF1Q==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [darwin] + + '@napi-rs/lzma-freebsd-x64@1.5.3': + resolution: {integrity: sha512-gAxemzm8Zk1OaMXihd0L8zeAb/P+71NqhrYnrPVweW3cTXg7XACC+zXQsvENAvHhkroeHCfaMmFupRwfHi+u7A==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [freebsd] + + '@napi-rs/lzma-linux-arm-gnueabihf@1.5.3': + resolution: {integrity: sha512-T7ZvCSEAKGoYSw7vIwdKgk1ZaYl8V1JLTgWSlGhnYBau23R9qZP79ONiF7FTosXnvR8G9RLe9peVuVGS5GI7ig==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm] + os: [linux] + + '@napi-rs/lzma-linux-arm64-gnu@1.5.3': + resolution: {integrity: sha512-fEfgGb/y8jo2X57cTtMQ62XSD57rxDbpSbT38TSq0gSMKg6A/zq3oOxZLRfoCuZkL3cDtuZMi4fAuo6xIkP5eQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@napi-rs/lzma-linux-arm64-musl@1.5.3': + resolution: {integrity: sha512-Phe10HwfNrtM7U2XsVLhJGePWOgx0BVW2/EWUBq1hoPkmKuUTjbrFj8y4XSTGS5eHMWABUtehnkbX+MPnN5sKg==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@napi-rs/lzma-linux-ppc64-gnu@1.5.3': + resolution: {integrity: sha512-rhuUE76jYbXZaR5oXAWqvfXzxoZKaCFM1nTH3yrdmz2Jtog5mnFcmyJ9WjDFmUgzQo062p1WfXWm3FA8SJOwaA==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@napi-rs/lzma-linux-riscv64-gnu@1.5.3': + resolution: {integrity: sha512-ogeKmHMV80J1uGYu5Lg4XVacyQxv9wapsEMEKH6beFtouIpo5wZMod5/zGLNHA+sg0/9HIAQbm/bVFJ5flkiQQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@napi-rs/lzma-linux-s390x-gnu@1.5.3': + resolution: {integrity: sha512-FvFzkI1zzVUqpX21UQdLZ0efTPxDolaCH1bqIp6k7hMTtx0RNwHJgcrsbGXQisAJ8uLWKRKncwNVL8MzcBVxUg==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@napi-rs/lzma-linux-x64-gnu@1.5.3': + resolution: {integrity: sha512-cqF0sRTngwVgnH0y7OV/5zWKWZomMYY71t3gzjtmJou4oPoWQHjxmO1Jo5E3GqUg2bPk+Fp3DcRw1xLAeKs1cg==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@napi-rs/lzma-linux-x64-musl@1.5.3': + resolution: {integrity: sha512-ZBMasmon/mQmwIKNCWDJagq/zq45vvDQzhSijJSBSIgyef8IRvoD9O4H2lq62Lrq3toHxhlMD2D85jwUVr4QQw==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [linux] + libc: [musl] + + '@napi-rs/lzma-wasm32-wasi@1.5.3': + resolution: {integrity: sha512-gJ2YpVByn8xNbSCbOwQhCN9Jc2ZQY0ERx/K3XFDldbyiFXCphbEnciptp3bwqcp+WUJvIvpZxcKP1+6tcUEj1g==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [wasm32] + + '@napi-rs/lzma-win32-arm64-msvc@1.5.3': + resolution: {integrity: sha512-oB9iJluslRc3bZ3upZ7ZD2tJfICX3tjTsqS8jUUWK+d7PpJei/oZ3YklBLNyczmLZ+JXHYZlBbotIeVCaoNGPw==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [arm64] + os: [win32] + + '@napi-rs/lzma-win32-ia32-msvc@1.5.3': + resolution: {integrity: sha512-b5HxoRno1C9kS9I9pH9E7uYO9oMEQZ2RuOzAs8+PafoHzcHA5KMzSibNfA//seedILG1w22IS7YfrW4s0+4FvA==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [ia32] + os: [win32] + + '@napi-rs/lzma-win32-x64-msvc@1.5.3': + resolution: {integrity: sha512-cPH8uIK0aaD9KZ0FTPBBPTIvncNHQ2Si3DNTP2rjPWyDRVV+syT2dWvlmkiklKgnRipXtx4eJ+tYQZhG30/+9w==} + engines: {node: ^22.20 || ^24.12 || >=25} + cpu: [x64] + os: [win32] + + '@napi-rs/lzma@1.5.3': + resolution: {integrity: sha512-QSIzELPyd2A7mcaDiJEWjwzApoAOWq9PVl9xYq+CxzIwstufv48s8aBgOUr0sgbjGmb15aYU88YKNaFaCaOuhQ==} + engines: {node: ^22.20 || ^24.12 || >=25} + + '@napi-rs/tar-android-arm-eabi@1.1.3': + resolution: {integrity: sha512-WDzurP2WgSlMVi6X96kTJRS9Nu+EKxTQkbLzdrGhhkVptO3cwvbY53S/H6c43xIFsI0ZskmyTNmYiAvj2nfwSQ==} + engines: {node: '>= 10'} + cpu: [arm] + os: [android] + + '@napi-rs/tar-android-arm64@1.1.3': + resolution: {integrity: sha512-cVhQUzlHy/YY7tLqCPa3ibRQlocM8haPLW/ZR9FysI1JN/T9TDUiEhWl+SJIMDr+EvSQxyPwOYP45adtx6ZCXw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@napi-rs/tar-darwin-arm64@1.1.3': + resolution: {integrity: sha512-LOGjc5FwCjZdGNRVjXZr0ItdsweAfwmVCnLkQLpx9IovNHhLKzwCWAa2ePdN/e+bbsOXDoUc8MrAtY0IUVWKcA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@napi-rs/tar-darwin-x64@1.1.3': + resolution: {integrity: sha512-Lqk5gYf5mlrGTPrIZKaRfGOKvbrqLxXAGsHre2zHLIvsFxJH6lJpPB/YXIYEMMCeSrySiZAtRlA2rKPlNGxTHg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@napi-rs/tar-freebsd-x64@1.1.3': + resolution: {integrity: sha512-HnrZ7YISLyPWwafzM3+xAlmgo3glb8L9jUvpVMBSVP4uo11/WXe+3GVFe9WywmXE047neDsWXYz6S4gXAX52Cw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@napi-rs/tar-linux-arm-gnueabihf@1.1.3': + resolution: {integrity: sha512-BLXGHslkW6jBInBuYVWMcmnlCqeWZOOWVZvn0Cr5bcMmPuq2Va18A7DOz6yYs/ebI1FnnasddbShXhLZAOHWfw==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@napi-rs/tar-linux-arm64-gnu@1.1.3': + resolution: {integrity: sha512-V7sdJPgYWx6msrpNO2v5OREbyEgk5eOJOF9rUpVzEA6Z4BWubFcElcQMyBkDgb8jOtor3b/z91Ep+aD4C2GHVw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@napi-rs/tar-linux-arm64-musl@1.1.3': + resolution: {integrity: sha512-wkkRDMI6+8duivzcvgoXJAfEAI0MFoRkjPq0fEMaBakK8E4xAePWjpLk4757ejQ0UwoV6aVFCgHJafySvuFXFg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@napi-rs/tar-linux-ppc64-gnu@1.1.3': + resolution: {integrity: sha512-1eaqPDSrBfmaDK7PHhOGwfm8S+Yg/0uOB5heY9b/B8vCm5+CmKt8Z2x4KfI39udz4kcwlMXAhDQrctRzGRravA==} + engines: {node: '>= 10'} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@napi-rs/tar-linux-s390x-gnu@1.1.3': + resolution: {integrity: sha512-o6qluAuWUZP9YUL3uzr7kBabbWyb/hVi7jlNU58snxZXgmtn+N3vbk67F67KD5LqJn8DQR3IgA13Sfu/v+IR3A==} + engines: {node: '>= 10'} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@napi-rs/tar-linux-x64-gnu@1.1.3': + resolution: {integrity: sha512-mt32bxTy7cSDVpca7T8Y3b9LgV8s/dBqGVZrZvIkVm2EFAyKe7rD0FjGgciw2BZNVmLGZCl1wIdRfzS45boFzg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@napi-rs/tar-linux-x64-musl@1.1.3': + resolution: {integrity: sha512-XbKOipWcorf08qf/KZ8MV1OwW9Wtgcg210yzONW0T9HTkgY1vRj5KzFuXoPLO/0H29GCO1xokY8HT4c6NDzCpA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@napi-rs/tar-wasm32-wasi@1.1.3': + resolution: {integrity: sha512-pUZYJ51H8sMB9vG1sT1aJVQqmoT4d7JmT1nER/pCsHtFQzk5aBvXuvj4G3Wo2BBCRr2eY+7zXFpJCtj50QuzeA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@napi-rs/tar-win32-arm64-msvc@1.1.3': + resolution: {integrity: sha512-KtAW+o86AZfMng8lC83pisb6Xe50NrbYpNa5ENOapWZBrLl3HU9+PxDQfoxoGTCvLTHU7aoiSzQntE8Ej9cYGg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@napi-rs/tar-win32-ia32-msvc@1.1.3': + resolution: {integrity: sha512-A82IKQLi/ZIYgbeLmN+h/LU/H9O78CUAEffdH6PCLsQznX4oZwSvAIXmFxqU7QVk+zLkYQvD7Kau2sBDlCOcIw==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@napi-rs/tar-win32-x64-msvc@1.1.3': + resolution: {integrity: sha512-Iq/zg92fzXEX7ajcjg2cnAf3YIVR6osfqd7OWucIEWg1NdtA2t2C4Eg8AiDgxHp9/ym+YQ+w5TMhAqJ5FCGo+A==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@napi-rs/tar@1.1.3': + resolution: {integrity: sha512-W1TENanv88k5OvB+TfkRnTc35ISN8vqvBqAxbWws64AToZKJjtay2yOw2QNVvJmX2SSkKM5JwmHzy96L8c53MQ==} + engines: {node: '>= 10'} + + '@napi-rs/wasm-runtime@1.2.7': + resolution: {integrity: sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3 + + '@napi-rs/wasm-tools-android-arm-eabi@1.1.2': + resolution: {integrity: sha512-a+SYoe8acnmJsBCeJ23V9Gxp0rKHY7tm+mDCouOxaf4ELQuoVLPMso8t4ofIK3PpVLIEKY98YdS1cqJ5wLabNQ==} + engines: {node: '>= 12.22.0'} + cpu: [arm] + os: [android] + + '@napi-rs/wasm-tools-android-arm64@1.1.2': + resolution: {integrity: sha512-NP82W1n8Gtg9C5mO6Bv6TyTGWBuq/5yJtRC9btnjDb98XPK7GRzb/Pzdta+tojzyojnpbre2jYCbEx98y6QrWw==} + engines: {node: '>= 12.22.0'} + cpu: [arm64] + os: [android] + + '@napi-rs/wasm-tools-darwin-arm64@1.1.2': + resolution: {integrity: sha512-bROsO82JGuTgvK9UoqRT45i8MtfMvF5HQ0DCBlWU3sDywWJTWWITXA/GFUuTnLE1XU+02VIVAPYujmbLdCaosQ==} + engines: {node: '>= 12.22.0'} + cpu: [arm64] + os: [darwin] + + '@napi-rs/wasm-tools-darwin-x64@1.1.2': + resolution: {integrity: sha512-uZ/0Z3Ru4DRhHALWyejYXQCbeyI60eYqOwBvdjSk51oMjLXMA6mfpc7ly3MaFGLcjV3mE9fBdNa9TXlsTHzQng==} + engines: {node: '>= 12.22.0'} + cpu: [x64] + os: [darwin] + + '@napi-rs/wasm-tools-freebsd-x64@1.1.2': + resolution: {integrity: sha512-6vcpEv4VC0uPTk6USmP7MRElqqbtEKs5jtdUApuTLCE7HrHkms9Qa/s8c/d2mUoywJ6EuzbAuY4vC2KWY6swCQ==} + engines: {node: '>= 12.22.0'} + cpu: [x64] + os: [freebsd] + + '@napi-rs/wasm-tools-linux-arm64-gnu@1.1.2': + resolution: {integrity: sha512-3/hLebdY3mgLx/RR3OBgJv0+mPge0/K0IzlTNRqv7sgGQPcKL3eYIfQfcPZu7DqCwBliJwnrrHJUTkOCRWGlew==} + engines: {node: '>= 12.22.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@napi-rs/wasm-tools-linux-arm64-musl@1.1.2': + resolution: {integrity: sha512-MJlyQuZqY2xzVezkwJY/JFVemFFMsbR9HyutG7jqlLjuGgTVHqj0gQzw40FVEl43EWnn/w6e8M5T/FNjkf3mpA==} + engines: {node: '>= 12.22.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@napi-rs/wasm-tools-linux-x64-gnu@1.1.2': + resolution: {integrity: sha512-G68ncazFlsRwXyflUncSu59p3Xfd5AUy79dIh01AeHgrEu8hMCj/g+63NUsaNjzgL8pwuB21rnA8hN0xtA3+Gw==} + engines: {node: '>= 12.22.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@napi-rs/wasm-tools-linux-x64-musl@1.1.2': + resolution: {integrity: sha512-skm8hhSd/qxBwenE5msnMyRo58spnH5YQdWCgFgJXltiMqCcBMI7e3qcPt1Ir4tfkPn0kSKeliKS3bvw1yNxHA==} + engines: {node: '>= 12.22.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@napi-rs/wasm-tools-wasm32-wasi@1.1.2': + resolution: {integrity: sha512-ZLeQOPDsIlvRWro6zIHe77d8VPDAwvzCk5QLQcoHseEi0TtgjqVLn5/HxjqtNZVPdWgujpm02XVxq5Dc1f9o/Q==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@napi-rs/wasm-tools-win32-arm64-msvc@1.1.2': + resolution: {integrity: sha512-ctoE1iYL2VVBc+cSyj3qIil1FIZ+T9EdraGxH/awZnCag3+bUjdXl/gIv59DmFLqb9DsH6cl0KYyF7EcRGXdXg==} + engines: {node: '>= 12.22.0'} + cpu: [arm64] + os: [win32] + + '@napi-rs/wasm-tools-win32-ia32-msvc@1.1.2': + resolution: {integrity: sha512-2qLV0CacEbm/IxL/iPdABjayj67UUT1wOBbBcsylXsZd+ELxnzmYSS/PCAHQwAuANgnNMY6Y7F5CYx0SKAYL4Q==} + engines: {node: '>= 12.22.0'} + cpu: [ia32] + os: [win32] + + '@napi-rs/wasm-tools-win32-x64-msvc@1.1.2': + resolution: {integrity: sha512-06DvdhcaUN29c62IE96/ZQcNykWNQAf9wWELyo4eLim3baSDw9OvdPHseLtfzs27cev2YyuvwaSuxAdYpD2LMw==} + engines: {node: '>= 12.22.0'} + cpu: [x64] + os: [win32] + + '@napi-rs/wasm-tools@1.1.2': + resolution: {integrity: sha512-VM6AVh5aYrUZtadC/ozmyx6lr1mE5RKqBXSrF6HkTrft9wFhHKD8hcKJ9v7QeA0H0QX5Og/7L21hILAICqFLww==} + engines: {node: '>= 12.22.0'} '@neon-rs/cli@0.2.6': resolution: {integrity: sha512-SC8xYNOH1dTnDiB2pykFhREl74gs6TF4jr2qFp0h9fwriRSoxic/CnVN2d7ikpc3XatOK1QnwfQCCmyv31x9/A==} @@ -1970,6 +2468,64 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} + '@octokit/auth-token@6.0.0': + resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==} + engines: {node: '>= 20'} + + '@octokit/core@7.0.8': + resolution: {integrity: sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==} + engines: {node: '>= 20'} + + '@octokit/endpoint@11.0.5': + resolution: {integrity: sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==} + engines: {node: '>= 20'} + + '@octokit/graphql@9.0.5': + resolution: {integrity: sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==} + engines: {node: '>= 20'} + + '@octokit/openapi-types@27.0.0': + resolution: {integrity: sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==} + + '@octokit/openapi-types@29.0.1': + resolution: {integrity: sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==} + + '@octokit/plugin-paginate-rest@14.0.0': + resolution: {integrity: sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==} + engines: {node: '>= 20'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-request-log@6.0.0': + resolution: {integrity: sha512-UkOzeEN3W91/eBq9sPZNQ7sUBvYCqYbrrD8gTbBuGtHEuycE4/awMXcYvx6sVYo7LypPhmQwwpUe4Yyu4QZN5Q==} + engines: {node: '>= 20'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-rest-endpoint-methods@17.0.0': + resolution: {integrity: sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==} + engines: {node: '>= 20'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/request-error@7.1.2': + resolution: {integrity: sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==} + engines: {node: '>= 20'} + + '@octokit/request@10.0.16': + resolution: {integrity: sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==} + engines: {node: '>= 20'} + + '@octokit/rest@22.0.1': + resolution: {integrity: sha512-Jzbhzl3CEexhnivb1iQ0KJ7s5vvjMWcmRtq5aUsKmKDrRW6z3r84ngmiFKFvpZjpiU/9/S6ITPFRpn5s/3uQJw==} + engines: {node: '>= 20'} + + '@octokit/types@16.0.0': + resolution: {integrity: sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==} + + '@octokit/types@18.0.0': + resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==} + '@oozcitak/dom@2.0.2': resolution: {integrity: sha512-GjpKhkSYC3Mj4+lfwEyI1dqnsKTgwGy48ytZEhm4A/xnH/8z9M3ZVXKr/YGQi3uCLs1AEBS+x5T2JPiueEDW8w==} engines: {node: '>=20.0'} @@ -2557,6 +3113,9 @@ packages: cpu: [arm64] os: [win32] + '@tybys/wasm-util@0.10.5': + resolution: {integrity: sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==} + '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} @@ -2693,6 +3252,9 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + argparse@3.0.4: + resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==} + arkregex@0.0.14: resolution: {integrity: sha512-G3I/uCtWE0IKQiPh0qqmmAFDdtjZKZQ5mNPR6gJBeAMZ7VqYCpoaDeXnLju2Zo6ywExtmxZJELeVFb0MPDjPyA==} @@ -2722,6 +3284,9 @@ packages: engines: {node: '>=6.0.0'} hasBin: true + before-after-hook@4.0.0: + resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==} + better-path-resolve@1.0.0: resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==} engines: {node: '>=4'} @@ -2801,6 +3366,10 @@ packages: resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} engines: {node: '>=8'} + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + client-only@0.0.1: resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} @@ -2848,6 +3417,10 @@ packages: resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} engines: {node: '>=18'} + content-type@3.1.1: + resolution: {integrity: sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==} + engines: {node: '>=22'} + convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -3045,6 +3618,9 @@ packages: resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} engines: {node: '>= 0.4'} + es-toolkit@1.53.2: + resolution: {integrity: sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==} + esbuild@0.28.1: resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==} engines: {node: '>=18'} @@ -3414,6 +3990,10 @@ packages: resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} hasBin: true + js-yaml@5.5.0: + resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==} + hasBin: true + jsesc@3.1.0: resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} engines: {node: '>=6'} @@ -3434,6 +4014,9 @@ packages: json-schema-typed@8.0.2: resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==} + json-with-bigint@3.5.12: + resolution: {integrity: sha512-uwbF/wSSuOgC7qqlq27Xp5B6a2MHVug3t0idZdTqu0JnlFvgJuH7ju+KAk/J06C7GfhoYy2gnb9wz2INqcne7w==} + json5@2.2.3: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} @@ -3606,6 +4189,10 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + mz@2.7.0: resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} @@ -3665,6 +4252,10 @@ packages: resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} engines: {node: '>=12.20.0'} + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} + engines: {node: '>=12.20.0'} + ohash@2.0.11: resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==} @@ -4274,6 +4865,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + ufo@1.6.4: resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==} @@ -4291,6 +4887,9 @@ packages: resolution: {integrity: sha512-ysuyrPk4xV9cOuJrQ9sPoqbGrf8PJG2PZEeRqs0JFPxhvusNrn0B26p3t7HLH6OGnQieDlDiVkuCWKkwPkUCoA==} engines: {node: '>=20.19.0'} + universal-user-agent@7.0.3: + resolution: {integrity: sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==} + universalify@0.1.2: resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} engines: {node: '>= 4.0.0'} @@ -4759,7 +5358,7 @@ snapshots: outdent: 0.5.0 prettier: 2.8.8 resolve-from: 5.0.0 - semver: 7.8.5 + semver: 7.8.6 '@changesets/assemble-release-plan@6.0.10': dependencies: @@ -4768,7 +5367,7 @@ snapshots: '@changesets/should-skip-package': 0.1.2 '@changesets/types': 6.1.0 '@manypkg/get-packages': 1.1.3 - semver: 7.8.5 + semver: 7.8.6 '@changesets/changelog-git@0.2.1': dependencies: @@ -4825,7 +5424,7 @@ snapshots: '@changesets/types': 6.1.0 '@manypkg/get-packages': 1.1.3 picocolors: 1.1.1 - semver: 7.8.5 + semver: 7.8.6 '@changesets/get-release-plan@4.0.16': dependencies: @@ -5067,11 +5666,27 @@ snapshots: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) + '@emnapi/core@2.0.0-beta.3': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.8.1 + optional: true + '@emnapi/runtime@1.11.3': dependencies: tslib: 2.8.1 optional: true + '@emnapi/runtime@2.0.0-beta.3': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.8.1 + optional: true + '@esbuild/aix-ppc64@0.28.1': optional: true @@ -5339,6 +5954,51 @@ snapshots: '@img/sharp-win32-x64@0.35.5': optional: true + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0(@types/node@26.2.0)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/confirm@6.4.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/core@12.1.0(@types/node@26.2.0)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@26.2.0) + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/editor@5.4.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/external-editor': 3.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/expand@5.2.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + '@inquirer/external-editor@1.0.3(@types/node@22.20.5)': dependencies: chardet: 2.2.0 @@ -5346,6 +6006,80 @@ snapshots: optionalDependencies: '@types/node': 22.20.5 + '@inquirer/external-editor@3.1.0(@types/node@26.2.0)': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/number@4.3.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/password@5.3.0(@types/node@26.2.0)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/prompts@8.8.0(@types/node@26.2.0)': + dependencies: + '@inquirer/checkbox': 5.3.0(@types/node@26.2.0) + '@inquirer/confirm': 6.4.0(@types/node@26.2.0) + '@inquirer/editor': 5.4.0(@types/node@26.2.0) + '@inquirer/expand': 5.2.0(@types/node@26.2.0) + '@inquirer/input': 5.2.0(@types/node@26.2.0) + '@inquirer/number': 4.3.0(@types/node@26.2.0) + '@inquirer/password': 5.3.0(@types/node@26.2.0) + '@inquirer/rawlist': 5.4.0(@types/node@26.2.0) + '@inquirer/search': 4.4.0(@types/node@26.2.0) + '@inquirer/select': 5.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/rawlist@5.4.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/search@4.4.0(@types/node@26.2.0)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/select@5.3.0(@types/node@26.2.0)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@26.2.0) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@26.2.0) + optionalDependencies: + '@types/node': 26.2.0 + + '@inquirer/type@4.3.0(@types/node@26.2.0)': + optionalDependencies: + '@types/node': 26.2.0 + '@isaacs/nonrecursive-glob-match@1.0.3': {} '@jridgewell/gen-mapping@0.3.13': @@ -5413,7 +6147,256 @@ snapshots: transitivePeerDependencies: - supports-color - '@napi-rs/cli@2.18.4': {} + '@napi-rs/cli@3.10.12(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3)(@types/node@26.2.0)': + dependencies: + '@inquirer/prompts': 8.8.0(@types/node@26.2.0) + '@napi-rs/cross-toolchain': 1.0.5 + '@napi-rs/wasm-tools': 1.1.2 + '@octokit/rest': 22.0.1 + clipanion: 4.0.0-rc.4(typanion@3.14.0) + colorette: 2.0.20 + es-toolkit: 1.53.2 + js-yaml: 5.5.0 + obug: 3.0.0 + semver: 7.8.6 + typanion: 3.14.0 + typescript: 6.0.3 + optionalDependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + transitivePeerDependencies: + - '@napi-rs/cross-toolchain-arm64-target-aarch64' + - '@napi-rs/cross-toolchain-arm64-target-armv7' + - '@napi-rs/cross-toolchain-arm64-target-ppc64le' + - '@napi-rs/cross-toolchain-arm64-target-s390x' + - '@napi-rs/cross-toolchain-arm64-target-x86_64' + - '@napi-rs/cross-toolchain-x64-target-aarch64' + - '@napi-rs/cross-toolchain-x64-target-armv7' + - '@napi-rs/cross-toolchain-x64-target-ppc64le' + - '@napi-rs/cross-toolchain-x64-target-s390x' + - '@napi-rs/cross-toolchain-x64-target-x86_64' + - '@types/node' + - supports-color + + '@napi-rs/cross-toolchain@1.0.5': + dependencies: + '@napi-rs/lzma': 1.5.3 + '@napi-rs/tar': 1.1.3 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@napi-rs/lzma-android-arm-eabi@1.5.3': + optional: true + + '@napi-rs/lzma-android-arm64@1.5.3': + optional: true + + '@napi-rs/lzma-darwin-arm64@1.5.3': + optional: true + + '@napi-rs/lzma-darwin-x64@1.5.3': + optional: true + + '@napi-rs/lzma-freebsd-x64@1.5.3': + optional: true + + '@napi-rs/lzma-linux-arm-gnueabihf@1.5.3': + optional: true + + '@napi-rs/lzma-linux-arm64-gnu@1.5.3': + optional: true + + '@napi-rs/lzma-linux-arm64-musl@1.5.3': + optional: true + + '@napi-rs/lzma-linux-ppc64-gnu@1.5.3': + optional: true + + '@napi-rs/lzma-linux-riscv64-gnu@1.5.3': + optional: true + + '@napi-rs/lzma-linux-s390x-gnu@1.5.3': + optional: true + + '@napi-rs/lzma-linux-x64-gnu@1.5.3': + optional: true + + '@napi-rs/lzma-linux-x64-musl@1.5.3': + optional: true + + '@napi-rs/lzma-wasm32-wasi@1.5.3': + dependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + '@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3) + optional: true + + '@napi-rs/lzma-win32-arm64-msvc@1.5.3': + optional: true + + '@napi-rs/lzma-win32-ia32-msvc@1.5.3': + optional: true + + '@napi-rs/lzma-win32-x64-msvc@1.5.3': + optional: true + + '@napi-rs/lzma@1.5.3': + optionalDependencies: + '@napi-rs/lzma-android-arm-eabi': 1.5.3 + '@napi-rs/lzma-android-arm64': 1.5.3 + '@napi-rs/lzma-darwin-arm64': 1.5.3 + '@napi-rs/lzma-darwin-x64': 1.5.3 + '@napi-rs/lzma-freebsd-x64': 1.5.3 + '@napi-rs/lzma-linux-arm-gnueabihf': 1.5.3 + '@napi-rs/lzma-linux-arm64-gnu': 1.5.3 + '@napi-rs/lzma-linux-arm64-musl': 1.5.3 + '@napi-rs/lzma-linux-ppc64-gnu': 1.5.3 + '@napi-rs/lzma-linux-riscv64-gnu': 1.5.3 + '@napi-rs/lzma-linux-s390x-gnu': 1.5.3 + '@napi-rs/lzma-linux-x64-gnu': 1.5.3 + '@napi-rs/lzma-linux-x64-musl': 1.5.3 + '@napi-rs/lzma-wasm32-wasi': 1.5.3 + '@napi-rs/lzma-win32-arm64-msvc': 1.5.3 + '@napi-rs/lzma-win32-ia32-msvc': 1.5.3 + '@napi-rs/lzma-win32-x64-msvc': 1.5.3 + + '@napi-rs/tar-android-arm-eabi@1.1.3': + optional: true + + '@napi-rs/tar-android-arm64@1.1.3': + optional: true + + '@napi-rs/tar-darwin-arm64@1.1.3': + optional: true + + '@napi-rs/tar-darwin-x64@1.1.3': + optional: true + + '@napi-rs/tar-freebsd-x64@1.1.3': + optional: true + + '@napi-rs/tar-linux-arm-gnueabihf@1.1.3': + optional: true + + '@napi-rs/tar-linux-arm64-gnu@1.1.3': + optional: true + + '@napi-rs/tar-linux-arm64-musl@1.1.3': + optional: true + + '@napi-rs/tar-linux-ppc64-gnu@1.1.3': + optional: true + + '@napi-rs/tar-linux-s390x-gnu@1.1.3': + optional: true + + '@napi-rs/tar-linux-x64-gnu@1.1.3': + optional: true + + '@napi-rs/tar-linux-x64-musl@1.1.3': + optional: true + + '@napi-rs/tar-wasm32-wasi@1.1.3': + dependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + '@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3) + optional: true + + '@napi-rs/tar-win32-arm64-msvc@1.1.3': + optional: true + + '@napi-rs/tar-win32-ia32-msvc@1.1.3': + optional: true + + '@napi-rs/tar-win32-x64-msvc@1.1.3': + optional: true + + '@napi-rs/tar@1.1.3': + optionalDependencies: + '@napi-rs/tar-android-arm-eabi': 1.1.3 + '@napi-rs/tar-android-arm64': 1.1.3 + '@napi-rs/tar-darwin-arm64': 1.1.3 + '@napi-rs/tar-darwin-x64': 1.1.3 + '@napi-rs/tar-freebsd-x64': 1.1.3 + '@napi-rs/tar-linux-arm-gnueabihf': 1.1.3 + '@napi-rs/tar-linux-arm64-gnu': 1.1.3 + '@napi-rs/tar-linux-arm64-musl': 1.1.3 + '@napi-rs/tar-linux-ppc64-gnu': 1.1.3 + '@napi-rs/tar-linux-s390x-gnu': 1.1.3 + '@napi-rs/tar-linux-x64-gnu': 1.1.3 + '@napi-rs/tar-linux-x64-musl': 1.1.3 + '@napi-rs/tar-wasm32-wasi': 1.1.3 + '@napi-rs/tar-win32-arm64-msvc': 1.1.3 + '@napi-rs/tar-win32-ia32-msvc': 1.1.3 + '@napi-rs/tar-win32-x64-msvc': 1.1.3 + + '@napi-rs/wasm-runtime@1.2.7(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3)': + dependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + '@tybys/wasm-util': 0.10.5 + optional: true + + '@napi-rs/wasm-tools-android-arm-eabi@1.1.2': + optional: true + + '@napi-rs/wasm-tools-android-arm64@1.1.2': + optional: true + + '@napi-rs/wasm-tools-darwin-arm64@1.1.2': + optional: true + + '@napi-rs/wasm-tools-darwin-x64@1.1.2': + optional: true + + '@napi-rs/wasm-tools-freebsd-x64@1.1.2': + optional: true + + '@napi-rs/wasm-tools-linux-arm64-gnu@1.1.2': + optional: true + + '@napi-rs/wasm-tools-linux-arm64-musl@1.1.2': + optional: true + + '@napi-rs/wasm-tools-linux-x64-gnu@1.1.2': + optional: true + + '@napi-rs/wasm-tools-linux-x64-musl@1.1.2': + optional: true + + '@napi-rs/wasm-tools-wasm32-wasi@1.1.2': + dependencies: + '@emnapi/core': 2.0.0-beta.3 + '@emnapi/runtime': 2.0.0-beta.3 + '@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@2.0.0-beta.3)(@emnapi/runtime@2.0.0-beta.3) + optional: true + + '@napi-rs/wasm-tools-win32-arm64-msvc@1.1.2': + optional: true + + '@napi-rs/wasm-tools-win32-ia32-msvc@1.1.2': + optional: true + + '@napi-rs/wasm-tools-win32-x64-msvc@1.1.2': + optional: true + + '@napi-rs/wasm-tools@1.1.2': + optionalDependencies: + '@napi-rs/wasm-tools-android-arm-eabi': 1.1.2 + '@napi-rs/wasm-tools-android-arm64': 1.1.2 + '@napi-rs/wasm-tools-darwin-arm64': 1.1.2 + '@napi-rs/wasm-tools-darwin-x64': 1.1.2 + '@napi-rs/wasm-tools-freebsd-x64': 1.1.2 + '@napi-rs/wasm-tools-linux-arm64-gnu': 1.1.2 + '@napi-rs/wasm-tools-linux-arm64-musl': 1.1.2 + '@napi-rs/wasm-tools-linux-x64-gnu': 1.1.2 + '@napi-rs/wasm-tools-linux-x64-musl': 1.1.2 + '@napi-rs/wasm-tools-wasm32-wasi': 1.1.2 + '@napi-rs/wasm-tools-win32-arm64-msvc': 1.1.2 + '@napi-rs/wasm-tools-win32-ia32-msvc': 1.1.2 + '@napi-rs/wasm-tools-win32-x64-msvc': 1.1.2 '@neon-rs/cli@0.2.6': {} @@ -5461,6 +6444,75 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 + '@octokit/auth-token@6.0.0': {} + + '@octokit/core@7.0.8': + dependencies: + '@octokit/auth-token': 6.0.0 + '@octokit/graphql': 9.0.5 + '@octokit/request': 10.0.16 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 + before-after-hook: 4.0.0 + universal-user-agent: 7.0.3 + + '@octokit/endpoint@11.0.5': + dependencies: + '@octokit/types': 18.0.0 + universal-user-agent: 7.0.3 + + '@octokit/graphql@9.0.5': + dependencies: + '@octokit/request': 10.0.16 + '@octokit/types': 18.0.0 + universal-user-agent: 7.0.3 + + '@octokit/openapi-types@27.0.0': {} + + '@octokit/openapi-types@29.0.1': {} + + '@octokit/plugin-paginate-rest@14.0.0(@octokit/core@7.0.8)': + dependencies: + '@octokit/core': 7.0.8 + '@octokit/types': 16.0.0 + + '@octokit/plugin-request-log@6.0.0(@octokit/core@7.0.8)': + dependencies: + '@octokit/core': 7.0.8 + + '@octokit/plugin-rest-endpoint-methods@17.0.0(@octokit/core@7.0.8)': + dependencies: + '@octokit/core': 7.0.8 + '@octokit/types': 16.0.0 + + '@octokit/request-error@7.1.2': + dependencies: + '@octokit/types': 18.0.0 + + '@octokit/request@10.0.16': + dependencies: + '@octokit/endpoint': 11.0.5 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 + content-type: 3.1.1 + json-with-bigint: 3.5.12 + universal-user-agent: 7.0.3 + + '@octokit/rest@22.0.1': + dependencies: + '@octokit/core': 7.0.8 + '@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.8) + '@octokit/plugin-request-log': 6.0.0(@octokit/core@7.0.8) + '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.8) + + '@octokit/types@16.0.0': + dependencies: + '@octokit/openapi-types': 27.0.0 + + '@octokit/types@18.0.0': + dependencies: + '@octokit/openapi-types': 29.0.1 + '@oozcitak/dom@2.0.2': dependencies: '@oozcitak/infra': 2.0.2 @@ -6081,6 +7133,11 @@ snapshots: '@turbo/windows-arm64@2.11.10': optional: true + '@tybys/wasm-util@0.10.5': + dependencies: + tslib: 2.8.1 + optional: true + '@types/chai@5.2.3': dependencies: '@types/deep-eql': 4.0.2 @@ -6229,6 +7286,8 @@ snapshots: argparse@2.0.1: {} + argparse@3.0.4: {} + arkregex@0.0.14: dependencies: '@ark/util': 0.56.8 @@ -6262,6 +7321,8 @@ snapshots: baseline-browser-mapping@2.11.35: {} + before-after-hook@4.0.0: {} + better-path-resolve@1.0.0: dependencies: is-windows: 1.0.2 @@ -6353,6 +7414,8 @@ snapshots: ci-info@4.4.0: {} + cli-width@4.1.0: {} + client-only@0.0.1: {} clipanion@4.0.0-rc.4(typanion@3.14.0): @@ -6382,6 +7445,8 @@ snapshots: content-type@2.1.0: {} + content-type@3.1.1: {} + convert-source-map@2.0.0: {} cookie-es@3.1.1: {} @@ -6463,6 +7528,8 @@ snapshots: dependencies: es-errors: 1.3.0 + es-toolkit@1.53.2: {} + esbuild@0.28.1: optionalDependencies: '@esbuild/aix-ppc64': 0.28.1 @@ -6866,6 +7933,10 @@ snapshots: dependencies: argparse: 2.0.1 + js-yaml@5.5.0: + dependencies: + argparse: 3.0.4 + jsesc@3.1.0: {} json-schema-to-ts@3.1.1: @@ -6889,6 +7960,8 @@ snapshots: json-schema-typed@8.0.2: {} + json-with-bigint@3.5.12: {} + json5@2.2.3: {} jsonc-parser@3.3.1: {} @@ -6978,7 +8051,7 @@ snapshots: make-dir@4.0.0: dependencies: - semver: 7.8.5 + semver: 7.8.6 math-intrinsics@1.1.0: {} @@ -7019,6 +8092,8 @@ snapshots: ms@2.1.3: {} + mute-stream@4.0.0: {} + mz@2.7.0: dependencies: any-promise: 1.3.0 @@ -7075,6 +8150,8 @@ snapshots: obug@2.2.1: {} + obug@3.0.0: {} + ohash@2.0.11: {} on-finished@2.4.2: @@ -7408,8 +8485,7 @@ snapshots: semver@7.8.5: {} - semver@7.8.6: - optional: true + semver@7.8.6: {} send@1.2.1: dependencies: @@ -7706,6 +8782,8 @@ snapshots: typescript@5.9.3: {} + typescript@6.0.3: {} + ufo@1.6.4: {} undici-types@6.21.0: {} @@ -7719,6 +8797,8 @@ snapshots: dependencies: '@noble/hashes': 2.2.0 + universal-user-agent@7.0.3: {} + universalify@0.1.2: {} unpipe@1.0.0: {} diff --git a/scripts/__tests__/auth-build-artifacts.test.mjs b/scripts/__tests__/auth-build-artifacts.test.mjs index c3623563ff..3c22df346b 100644 --- a/scripts/__tests__/auth-build-artifacts.test.mjs +++ b/scripts/__tests__/auth-build-artifacts.test.mjs @@ -11,15 +11,18 @@ import { readWorkflow } from './lib/workflows.mjs' * to undo in an edit that still looks right, and each one ships a broken * package rather than failing a build: * - * 1. `napi build --platform` with no `--js false` writes napi's own loader over - * the committed `index.js`, one of the wrapper's frozen published files. - * The workflow runs `git diff --exit-code` on the package after the build, - * so the build must leave the tracked tree as it found it. + * 1. `napi build --platform` with no `--no-js` writes napi's own loader over + * the committed `index.js`, the wrapper's published `main`. napi v2 turned + * that off with `--js false`; napi v3 reads `--js false` as a path and + * writes the loader to a file named `false` instead, so the old flag still + * looks right and no longer does the job. The workflow checks the package + * after the build, for changed tracked files and for added ones, so the + * build must leave the tree as it found it. * 2. The wrapper's six platform peers are `workspace:*`. `pnpm pack` rewrites * them to the exact version; `npm pack` publishes `workspace:*`, which no * registry resolves. * 3. The matrix is a third list of the six platforms, beside the `platforms/` - * folders and the napi triples in the wrapper's `package.json`. + * folders and the napi `targets` in the wrapper's `package.json`. */ const WORKFLOW = '.github/workflows/_build-auth-artifacts.yml' @@ -48,7 +51,7 @@ describe('_build-auth-artifacts.yml', () => { readFileSync(join(AUTH, 'package.json'), 'utf8'), ) expect(matrix.map((leg) => leg.target).sort()).toEqual( - [...napi.triples.additional].sort(), + [...napi.targets].sort(), ) }) @@ -62,13 +65,16 @@ describe('_build-auth-artifacts.yml', () => { '--target', '--strip', '--dts native.d.ts', - '--js false', + '--no-js', ]) { for (const run of build) expect(run).toContain(flag) } + // `--js ` names where the loader goes; it never turns it off. In + // napi v3, `--js false` writes the loader to `./false`. + for (const run of build) expect(run).not.toMatch(/--js(-binding)?[\s=]/) }) - it('fails the leg when either build changed a tracked file', () => { + it('fails the leg when either build changed a tracked file or added one', () => { const all = runs(binaries) const builds = all .map((_, index) => index) @@ -78,6 +84,12 @@ describe('_build-auth-artifacts.yml', () => { ) expect(builds).toHaveLength(2) for (const build of builds) expect(check).toBeGreaterThan(build) + // `git diff` sees only tracked files. A loader written to a new path is + // untracked, so the same step also fails on anything `git status` lists. + expect(all[check]).toMatch( + new RegExp(`git status --porcelain -- ${AUTH_DIR}\\b`), + ) + expect(all[check]).toMatch(/exit 1/) }) it('builds the musl binding inside Alpine, from the pinned Dockerfile', () => {