From ce449c40dbdad133c1a23fbf6f3abaf231e6640b Mon Sep 17 00:00:00 2001 From: leemour Date: Sat, 10 Oct 2026 01:31:31 +0200 Subject: [PATCH] chore: publish the native packages as @wirecat/cli-messaging-{sqlite,onnx} First half of the npm pass: the root still depends on the @leemour native packages until the @wirecat ones are published from main. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/onnx.yml | 8 ++++---- .github/workflows/sqlite.yml | 10 +++++----- bin/publish-sqlite | 6 +++--- packages/onnx/README.md | 6 +++--- packages/onnx/package.json | 4 ++-- packages/onnx/probe.mjs | 2 +- packages/sqlite/README.md | 4 ++-- packages/sqlite/package.json | 4 ++-- 8 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/onnx.yml b/.github/workflows/onnx.yml index a0da311f6..d1549d4f4 100644 --- a/.github/workflows/onnx.yml +++ b/.github/workflows/onnx.yml @@ -1,5 +1,5 @@ name: ONNX -# Builds @leemour/cli-messaging-onnx (packages/onnx), runs a model through it on every system under +# Builds @wirecat/cli-messaging-onnx (packages/onnx), runs a model through it on every system under # Node and Bun, and publishes it when started by hand with `publish` — npm trusts this file by name. on: pull_request: @@ -30,7 +30,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: package - path: leemour-cli-messaging-onnx-*.tgz + path: wirecat-cli-messaging-onnx-*.tgz if-no-files-found: error probe: @@ -62,7 +62,7 @@ jobs: working-directory: probe run: | echo '{"type":"module"}' > package.json - npm install --no-audit --no-fund ./leemour-cli-messaging-onnx-*.tgz + npm install --no-audit --no-fund ./wirecat-cli-messaging-onnx-*.tgz cp ../packages/onnx/probe.mjs . mkdir test && cp ../packages/onnx/test/multiply.onnx test/ - working-directory: probe @@ -86,4 +86,4 @@ jobs: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: package - - run: npm publish leemour-cli-messaging-onnx-*.tgz --access public --provenance + - run: npm publish wirecat-cli-messaging-onnx-*.tgz --access public --provenance diff --git a/.github/workflows/sqlite.yml b/.github/workflows/sqlite.yml index caab80c48..2dee8516d 100644 --- a/.github/workflows/sqlite.yml +++ b/.github/workflows/sqlite.yml @@ -1,5 +1,5 @@ name: SQLite -# Builds @leemour/cli-messaging-sqlite (packages/sqlite), checks every library on the systems it is +# Builds @wirecat/cli-messaging-sqlite (packages/sqlite), checks every library on the systems it is # for, and publishes it when started by hand with `publish` — npm trusts this file by name. on: pull_request: @@ -94,7 +94,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: package - path: packages/sqlite/leemour-cli-messaging-sqlite-*.tgz + path: packages/sqlite/wirecat-cli-messaging-sqlite-*.tgz if-no-files-found: error # The library as installed — unpacked from the tarball — under Bun, which loads it itself. @@ -115,7 +115,7 @@ jobs: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: package - - run: tar -xzf leemour-cli-messaging-sqlite-*.tgz + - run: tar -xzf wirecat-cli-messaging-sqlite-*.tgz - run: sw_vers -productVersion && uname -m - run: bun packages/sqlite/probe.mjs "$PWD/package/lib/darwin/libsqlite3.dylib" "$SQLITE_VERSION" @@ -141,7 +141,7 @@ jobs: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: package - - run: tar -xzf leemour-cli-messaging-sqlite-*.tgz + - run: tar -xzf wirecat-cli-messaging-sqlite-*.tgz - run: | docker run --rm -v "$PWD:/w" -w /w ${{ matrix.image }} sh -c ' if command -v apk >/dev/null; then apk add --no-cache nodejs >/dev/null @@ -165,4 +165,4 @@ jobs: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: package - - run: npm publish leemour-cli-messaging-sqlite-*.tgz --access public --provenance + - run: npm publish wirecat-cli-messaging-sqlite-*.tgz --access public --provenance diff --git a/bin/publish-sqlite b/bin/publish-sqlite index cf765e7b5..4dd0ceade 100755 --- a/bin/publish-sqlite +++ b/bin/publish-sqlite @@ -1,5 +1,5 @@ #!/usr/bin/env sh -# Publishes an empty @leemour/cli-messaging-sqlite@0.0.0 once, so the package exists and npm lets its +# Publishes an empty @wirecat/cli-messaging-sqlite@0.0.0 once, so the package exists and npm lets its # trusted publisher be set (npmjs.com → the package → Settings → Trusted Publisher: GitHub Actions, # WireCatLabs/cli-messaging, workflow sqlite.yml, environment npm). Every version with libraries is # published by that workflow, never from this machine. @@ -7,7 +7,7 @@ # bin/publish-sqlite set -eu -package=@leemour/cli-messaging-sqlite +package=@wirecat/cli-messaging-sqlite if npm view "$package" version >/dev/null 2>&1; then echo "$package is already on npm — set its trusted publisher, then run the SQLite workflow with publish" exit 0 @@ -30,7 +30,7 @@ cat > "$work/package.json" <