diff --git a/.env.example b/.env.example
index c06a1508d8..4bf359777b 100644
--- a/.env.example
+++ b/.env.example
@@ -46,8 +46,13 @@ BUZZ_DEV_VIEWER=
# Optional public Builderlab URL, exposed as import.meta.env.VITE_BUZZ_BUILDERLAB_URL.
# Read by Vite from .env.local or the build process environment (process wins,
-# including empty). Defaults to https://app.builderlab.xyz; set an empty value
-# to disable Builderlab sign-in and the bundled plugin's native grants.
+# including empty). Defaults to https://app.builderlab.xyz, the built-in sign-in
+# server. Another origin, or an empty value, turns that server off when no FI
+# servers are added; that build then has no Builderlab sign-in and no native
+# grants for the bundled plugin. Live development is the exception for another
+# origin: the Builderlab plugin still signs in to it through the development
+# broker, but the welcome screen never offers that sign-in. An empty value
+# leaves even that unconfigured.
# Packaging embeds the value; changing the launched app's environment has no effect.
# Restart Vite for development changes; rebuild/repackage for distributed apps.
# BUZZ_BUILDERLAB_URL=https://builderlab.example.com
@@ -55,3 +60,19 @@ BUZZ_DEV_VIEWER=
# Exact Apps domain paired with that login origin for native viewer SSO.
# Other deployments supply it at build time; empty keeps browser login.
# BUZZ_BUILDERLAB_APPS_DOMAIN=apps.example.com
+
+# Federated identity (FI) sign-in servers added to the built-in Builderlab one,
+# compiled into native code by `just desktop` and `just desktop-bundle`: a
+# descriptor or a JSON list of them. Single-quote the JSON. Unset keeps only the
+# built-in server; empty opts out of FI. A `tauri dev` run with BUZZ_DEV_VIEWER
+# pinned and this unset turns FI off by itself for the development broker, so
+# you don't need to set it empty; packaged and standalone builds keep FI on
+# whatever the pin. With a descriptor, leave BUZZ_BUILDERLAB_URL empty and
+# BUZZ_DEV_VIEWER unset or empty. See
+# docs/configuration.md#federated-identity-build-input.
+# BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG='{"version":1,"id":"example","identityOrigin":"https://identity.example","communityHosts":["*.communities.example"],"adapterBase":"https://identity.example/nip-fa/","apiBasePath":"/api/goose/"}'
+
+# Optional https URL of a managed plugin policy. The desktop app fetches it and
+# keeps the last good copy, recommended when no managed-plugins.json exists. See
+# docs/managed-plugins.md#packaged-policy.
+# BUZZ_BUILD_MANAGED_PLUGINS_URL=https://plugins.example/managed-plugins.json
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..08953968cb
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# Unified patch context lines intentionally contain one space.
+runtime/*.patch -whitespace
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4f0dc164db..cb6ca7348b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,13 +21,17 @@ env:
jobs:
javascript:
if: github.event_name != 'workflow_dispatch'
- name: JavaScript (${{ matrix.shard }}/4)
+ name: JavaScript (${{ matrix.shard }}/8)
runs-on: ubuntu-24.04
+ # Vitest shards by path hash and equal file count, not duration, so slow
+ # files can share one. At six, 5/6 held the live-continuity model and
+ # ChannelMembersDialog suites and reached this deadline; seven still
+ # pairs two of the slowest files. Eight keeps the slowest near 7 minutes.
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
- shard: [1, 2, 3, 4]
+ shard: [1, 2, 3, 4, 5, 6, 7, 8]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
@@ -42,7 +46,7 @@ jobs:
env:
# Bound contention between suites that sign and verify large fixtures.
BUZZ_TEST_WORKERS: "2"
- run: ./bin/node scripts/ci-test-report.mjs kind=vitest report=test-results/ci/vitest.json evidence=test-results/ci/vitest-timing.json title="Vitest shard ${{ matrix.shard }}/4" -- ./bin/pnpm exec vitest run --shard=${{ matrix.shard }}/4 --reporter=default --reporter=json --outputFile=test-results/ci/vitest.json
+ run: ./bin/node scripts/ci-test-report.mjs kind=vitest report=test-results/ci/vitest.json evidence=test-results/ci/vitest-timing.json title="Vitest shard ${{ matrix.shard }}/8" -- ./bin/pnpm exec vitest run --shard=${{ matrix.shard }}/8 --reporter=default --reporter=json --outputFile=test-results/ci/vitest.json
- name: Vitest timing evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -62,15 +66,31 @@ jobs:
with:
persist-credentials: false
- uses: ./.github/actions/setup
+ - name: Install pinned Pi test dependencies
+ run: |
+ source bin/activate-hermit
+ cd src/bundled/pi/deps
+ npm ci --ignore-scripts --no-audit --no-fund
+ - name: Real Pi tools and recovery
+ env:
+ PI_DEPS: ${{ github.workspace }}/src/bundled/pi/deps
+ run: ./bin/node scripts/ci-test-report.mjs kind=vitest report=test-results/protection/vitest.json evidence=test-results/protection/timing.json title="Protected Pi" -- ./bin/pnpm exec vitest run src/bundled/pi/protection.live.test.ts --reporter=default --reporter=json --outputFile=test-results/protection/vitest.json
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
key: agent-protection
save-if: ${{ github.event_name == 'push' }}
- - name: Native approval-state containment
+ - name: Install exact protected Claude fixture
+ run: ./bin/node scripts/install-protected-claude-test.mjs
+ - name: Native Claude protection boundary
+ env:
+ BUZZ_TEST_WORKERS: "2"
+ CLAUDE_PROTECTION_BIN: ${{ github.workspace }}/target/protected-claude-test/claude
+ run: ./bin/node scripts/ci-test-report.mjs kind=vitest report=test-results/protection/native-vitest.json evidence=test-results/protection/native-timing.json title="Native security hooks" -- ./bin/pnpm exec vitest run src/bundled/claude-code/protection.live.test.ts --reporter=default --reporter=json --outputFile=test-results/protection/native-vitest.json
+ - name: Native approval-state and window-state tests
run: |
mkdir -p test-results/protection
set -o pipefail
- ./bin/cargo test --manifest-path src-tauri/Cargo.toml host_process --lib 2>&1 | tee test-results/protection/native.log
+ ./bin/cargo test --manifest-path src-tauri/Cargo.toml --locked --lib -- host_process host_command window_state::tests 2>&1 | tee test-results/protection/native.log
- name: Protection test evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -83,7 +103,9 @@ jobs:
if: github.event_name != 'workflow_dispatch'
name: Rust and tool integration
runs-on: ubuntu-24.04
- timeout-minutes: 20
+ # A Cargo.lock change rebuilds most crates from a cold cache, and only a
+ # finished main push saves a warm one, so leave room for that cold run.
+ timeout-minutes: 30
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
@@ -113,12 +135,20 @@ jobs:
- name: FI Builderlab build and grant tests
env:
# Fixture authority only; never use a release's real configuration.
+ # It is added before the built-in server, as an internal build's is.
BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG: '{"version":1,"id":"ci-fi","identityOrigin":"https://identity.example.test","communityHosts":["relay.example.test"],"adapterBase":"https://identity.example.test/api/goose/nip-fa","apiBasePath":"/api/goose/"}'
BUZZ_BUILDERLAB_URL: ""
run: |
./bin/cargo test -p buzzodz-plugins --lib --locked
./bin/cargo test -p Buzz --lib --locked host_request
./bin/pnpm exec vite build
+ - name: FI opt-out build and grant tests
+ env:
+ # An empty value opts out of every sign-in server, the built-in one too.
+ BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG: ""
+ run: |
+ ./bin/cargo test -p buzzodz-plugins --lib --locked
+ ./bin/cargo test -p Buzz --lib --locked host_request
- name: Scheduled agent command identity
run: ./bin/node scripts/test-agent-command.mjs
- name: Bundled buzz CLI
@@ -150,9 +180,9 @@ jobs:
key: windows-native
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Native lint including Windows backend
- run: cargo clippy -p Buzz -p buzz-agent-controller -p buzz-credential-store --locked --all-targets -- -D warnings
+ run: cargo clippy -p Buzz -p buzz-agent-controller -p buzz-credential-store -p buzz-mesh-compute --locked --all-targets -- -D warnings
- name: All native package tests
- run: cargo test -p Buzz -p buzz-agent-controller -p buzz-credential-store --locked --no-fail-fast
+ run: cargo test -p Buzz -p buzz-agent-controller -p buzz-credential-store -p buzz-mesh-compute --locked --no-fail-fast
measurements:
if: github.event_name != 'workflow_dispatch'
@@ -196,6 +226,18 @@ jobs:
# separate. Keep its Chromium workload serial with the measurements above.
- name: Perf suite smoke check
run: ./bin/pnpm perf --scenario all --repeat 1 --cpu 4
+ # The 100,000-channel broker scale check asserts wall-clock time: about
+ # 20 s of single-threaded CPU inside a 30 s budget. A shared Vitest
+ # shard's two workers timed it out under load, so it runs alone here on
+ # the isolated runner with the same budget; the shards skip it. A title
+ # filter that matches nothing is a green run of zero tests, so require
+ # the one pass.
+ - name: Broker scale check
+ env:
+ BUZZ_BROKER_SCALE: "true"
+ run: |
+ ./bin/node scripts/ci-test-report.mjs kind=vitest report=test-results/broker-scale/vitest.json evidence=test-results/broker-scale/timing.json title="Broker scale" -- ./bin/pnpm exec vitest run browser-host/relay-broker-live.test.mjs -t "100,000" --reporter=default --reporter=json --outputFile=test-results/broker-scale/vitest.json
+ ./bin/node -e 'if (require("./test-results/broker-scale/vitest.json").numPassedTests !== 1) { console.error("The 100,000-channel scale check did not run"); process.exit(1); }'
- name: Measurement evidence
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -205,6 +247,7 @@ jobs:
test-results/browser
test-results/browser-classic-scrollbars
test-results/perf
+ test-results/broker-scale
retention-days: 7
browser_fixture:
@@ -262,24 +305,31 @@ jobs:
HOME: /root
BUZZ_BROWSER_FIXTURE_DIR: target/ci-browser-fixture
# Playwright sizes file-level shards by test count, not duration, so costly
- # files can share one. WebKit runs slower, so it gets fourteen shards to keep
+ # files can share one. WebKit runs slower, so it gets eighteen shards to keep
# its slowest well inside this deadline on slower runners, setup included;
- # Chromium keeps nine.
+ # Chromium keeps nine. Size the WebKit count from a recent run's per-test
+ # durations and `playwright test --list --shard=K/N`: at fourteen, the
+ # slowest shard's summed test time reached 25 minutes (two workers, about
+ # 15 minutes of job time) and hit this deadline with every test passing.
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
engine: [chromium, webkit]
- shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
+ shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
exclude:
- { engine: chromium, shard: 10 }
- { engine: chromium, shard: 11 }
- { engine: chromium, shard: 12 }
- { engine: chromium, shard: 13 }
- { engine: chromium, shard: 14 }
+ - { engine: chromium, shard: 15 }
+ - { engine: chromium, shard: 16 }
+ - { engine: chromium, shard: 17 }
+ - { engine: chromium, shard: 18 }
include:
- { engine: chromium, shards: 9 }
- - { engine: webkit, shards: 14 }
+ - { engine: webkit, shards: 18 }
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml
new file mode 100644
index 0000000000..38ad242c70
--- /dev/null
+++ b/.github/workflows/desktop-build.yml
@@ -0,0 +1,546 @@
+name: Desktop build
+
+# Builds, verifies and publishes every desktop platform for its callers:
+# release.yml (previews and Windows/Linux candidates) and desktop-stable.yml
+# (stable and beta tags). Callers choose the source ref; this checks it.
+on:
+ workflow_call:
+ inputs:
+ candidates:
+ description: Build Windows/Linux candidates only (no publishing or macOS signing)
+ type: boolean
+ default: false
+ release_version:
+ description: Stable or beta version (X.Y.Z or X.Y.Z-beta.N) built from its v tag; empty builds a preview from main
+ type: string
+ default: ""
+ preview_version:
+ description: Preview version (X.Y.Z-preview.N) for every platform; required without release_version
+ type: string
+ default: ""
+ outputs:
+ version:
+ description: The version every platform was built as
+ value: ${{ jobs.build.outputs.version }}
+
+permissions:
+ contents: read
+
+env:
+ # Automatic key backup to bb-public production, only for builds that sign in to
+ # app.builderlab.xyz: every build without an FI descriptor does, through the
+ # built-in server. The namespace must match that service's configuration.
+ BUZZ_NSEC_BACKUP_SERVICE_URL: ${{ !vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG && 'https://app.builderlab.xyz/api/goose' || '' }}
+ BUZZ_NSEC_BACKUP_NAMESPACE: ${{ !vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG && 'backup/bb-public/production' || '' }}
+ # Public verification inputs; the native build and plugins.updater must match.
+ # Candidate-only runs build without the updater. Stable and beta builds check
+ # the stable feed, previews the preview feed; both trust the same key.
+ BUZZ_UPDATER_PUBLIC_KEY: ${{ !inputs.candidates && 'dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJDQjQ2RDZFMUEwOERFMTEKUldRUjNnZ2FibTIwTE10QkVaMzFyYkZlY0R4ajhmbFBjdncvNVRCYnNpSm9kaFNBaHQzemZlZHkK' || '' }}
+ BUZZ_UPDATER_ENDPOINT: ${{ !inputs.candidates && (inputs.release_version && 'https://github.com/block/buzz-app/releases/download/stable-feed/latest.json' || 'https://github.com/block/buzz-app/releases/download/preview-feed/latest.json') || '' }}
+ # Read by scripts/candidate-version.mjs; an empty RELEASE_VERSION selects PREVIEW_VERSION.
+ RELEASE_VERSION: ${{ inputs.release_version }}
+ PREVIEW_VERSION: ${{ inputs.preview_version }}
+
+jobs:
+ build:
+ if: github.repository == 'block/buzz-app' && !inputs.candidates
+ name: Build, sign, and notarize (${{ matrix.arch }})
+ runs-on: macos-latest
+ strategy:
+ matrix:
+ include:
+ - { target: aarch64-apple-darwin, arch: aarch64, lipo: arm64 }
+ - { target: x86_64-apple-darwin, arch: x64, lipo: x86_64 }
+ timeout-minutes: 120
+ permissions:
+ contents: read
+ id-token: write
+ outputs:
+ version: ${{ steps.version.outputs.version }}
+ env:
+ CI: "true"
+ CARGO_TERM_COLOR: always
+ TARGET: ${{ matrix.target }}
+ steps:
+ # Unset builds trust only the built-in sign-in server and an empty value
+ # opts out, so add the repository's servers only when it names some.
+ - name: Add sign-in servers
+ if: vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG != ''
+ shell: bash
+ env:
+ SERVERS: ${{ vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG }}
+ # The delimiter form keeps a pretty-printed, multiline value intact.
+ run: |
+ delimiter="FI_${RANDOM}${RANDOM}${RANDOM}"
+ [[ "$SERVERS" != *"$delimiter"* ]]
+ printf 'BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG<<%s\n%s\n%s\n' "$delimiter" "$SERVERS" "$delimiter" >> "$GITHUB_ENV"
+ - name: Require the release source and signing configuration
+ env:
+ SOURCE_REF: ${{ github.ref }}
+ SIGNING_ROLE: ${{ secrets.OSX_CODESIGN_ROLE }}
+ SIGNING_BUCKET: ${{ secrets.CODESIGN_S3_BUCKET }}
+ UPDATER_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
+ UPDATER_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
+ run: |
+ # Previews build main; stable and beta releases build their own tag.
+ expected=refs/heads/main
+ [[ -z "$RELEASE_VERSION" ]] || expected="refs/tags/v$RELEASE_VERSION"
+ test "$SOURCE_REF" = "$expected" || { echo "::error::This release must run from $expected"; exit 1; }
+ test -n "$SIGNING_ROLE" && test -n "$SIGNING_BUCKET" || { echo '::error::Set OSX_CODESIGN_ROLE and CODESIGN_S3_BUCKET'; exit 1; }
+ test -n "$UPDATER_KEY" && test -n "$UPDATER_PASSWORD" || { echo '::error::Set TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD'; exit 1; }
+
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: ./.github/actions/setup
+ # Hermit's rustup proxies select the rust-toolchain.toml release, which has
+ # only the runner's (Apple Silicon) standard library. Add the Intel one to
+ # that toolchain and keep nested builds on it.
+ - name: Select pinned Rust with the Intel standard library
+ if: matrix.arch == 'x64'
+ run: |
+ version=$(rustc --version | cut -d' ' -f2)
+ rustup toolchain install "$version" --profile minimal --target "$TARGET"
+ echo "RUSTUP_TOOLCHAIN=$version" >> "$GITHUB_ENV"
+ echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
+ - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
+ with:
+ key: macos-prerelease-${{ matrix.arch }}
+ cache-all-crates: true
+
+ - name: Set release version
+ id: version
+ run: node scripts/candidate-version.mjs
+
+ - name: Build unsigned app and DMG
+ env:
+ TAURI_BUNDLER_DMG_IGNORE_CI: "true"
+ run: |
+ # Fail fast if the selected Rust lacks this target's standard library.
+ test -d "$(rustc --print target-libdir --target "$TARGET")" || { echo "::error::Rust has no $TARGET standard library"; exit 1; }
+ rm -rf "target/$TARGET/release/bundle"
+ pnpm tauri build --ci --no-sign --bundles dmg --target "$TARGET" --config "$RUNNER_TEMP/candidate.json" -- --locked
+
+ - name: Locate unsigned DMG
+ id: unsigned
+ run: |
+ shopt -s nullglob
+ dmgs=("target/$TARGET/release/bundle/dmg/"*.dmg)
+ test "${#dmgs[@]}" -eq 1 || { echo '::error::Expected exactly one DMG'; exit 1; }
+ echo "path=${dmgs[0]}" >> "$GITHUB_OUTPUT"
+
+ - name: Sign and notarize
+ id: codesign
+ uses: block/apple-codesign-action@679535d1ab7c5a7c18e6f9afcba3464512cc3dde # v1.1.0
+ with:
+ osx-codesign-role: ${{ secrets.OSX_CODESIGN_ROLE }}
+ codesign-s3-bucket: ${{ secrets.CODESIGN_S3_BUCKET }}
+ unsigned-artifact-path: ${{ steps.unsigned.outputs.path }}
+ entitlements-plist-path: src-tauri/entitlements.plist
+ artifact-name: buzz-app-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.lipo }}
+
+ - name: Verify release DMG
+ env:
+ SIGNED_DMG: ${{ steps.codesign.outputs.signed-dmg-path }}
+ LIPO_ARCH: ${{ matrix.lipo }}
+ run: |
+ app_dir=$(mktemp -d "$RUNNER_TEMP/verify-release.XXXXXX")
+ hdiutil attach "$SIGNED_DMG" -readonly -nobrowse -mountpoint "$app_dir" >/dev/null
+ trap 'hdiutil detach "$app_dir" >/dev/null' EXIT
+ app="$app_dir/Buzz.app"
+ codesign --verify --deep --strict --verbose=2 \
+ -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = EYF346PHUG' "$app"
+ spctl --assess --type execute --verbose=4 "$app"
+ xcrun stapler validate "$app"
+ test "$(lipo -archs "$app/Contents/MacOS/Buzz")" = "$LIPO_ARCH" || { echo "::error::Buzz is not $LIPO_ARCH"; exit 1; }
+ # Promotion inspects only the Apple Silicon executable, so check each leg here.
+ for value in "$BUZZ_UPDATER_PUBLIC_KEY" "$BUZZ_UPDATER_ENDPOINT"; do
+ grep -aqF "$value" "$app/Contents/MacOS/Buzz" || { echo '::error::Buzz does not embed the updater configuration'; exit 1; }
+ done
+ test -n "$(/usr/libexec/PlistBuddy -c 'Print :NSMicrophoneUsageDescription' "$app/Contents/Info.plist")"
+ codesign --display --entitlements :- "$app" > "$RUNNER_TEMP/signed-entitlements.plist"
+ test "$(/usr/libexec/PlistBuddy -c 'Print :com.apple.security.device.audio-input' "$RUNNER_TEMP/signed-entitlements.plist")" = true || { echo '::error::Signed app is missing microphone entitlement'; exit 1; }
+ test "$(/usr/libexec/PlistBuddy -c 'Print :com.apple.security.cs.disable-library-validation' "$RUNNER_TEMP/signed-entitlements.plist")" = true || { echo '::error::Signed app is missing library-validation exemption needed for MeshLLM runtimes'; exit 1; }
+ goose="$app/Contents/Resources/bin/goose-acp"
+ test -x "$goose" || { echo '::error::Signed app is missing goose-acp'; exit 1; }
+ test "$(lipo -archs "$goose")" = "$LIPO_ARCH" || { echo "::error::goose-acp is not $LIPO_ARCH"; exit 1; }
+ codesign --verify --strict --verbose=2 \
+ -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = EYF346PHUG' "$goose"
+ command="$app/Contents/Resources/bin/buzz-agent-command"
+ test -x "$command" || { echo '::error::Signed app is missing buzz-agent-command'; exit 1; }
+ test "$(lipo -archs "$command")" = "$LIPO_ARCH" || { echo "::error::buzz-agent-command is not $LIPO_ARCH"; exit 1; }
+ codesign --verify --strict --verbose=2 \
+ -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[subject.OU] = EYF346PHUG' "$command"
+ cli="$app/Contents/Resources/bin/buzz"
+ test -x "$cli" || { echo '::error::Signed app is missing buzz'; exit 1; }
+ test "$(lipo -archs "$cli")" = "$LIPO_ARCH" || { echo "::error::buzz is not $LIPO_ARCH"; exit 1; }
+ codesign --verify --strict --verbose=2 \
+ -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = EYF346PHUG' "$cli"
+ codesign --display --verbose=2 "$cli" 2>&1 | grep 'flags=.*runtime' > /dev/null || { echo '::error::buzz lacks the hardened runtime'; exit 1; }
+ "$cli" --help > /dev/null || { echo '::error::Signed buzz does not run'; exit 1; }
+
+ - name: Stage release assets and checksums
+ env:
+ SIGNED_DMG: ${{ steps.codesign.outputs.signed-dmg-path }}
+ VERSION: ${{ steps.version.outputs.version }}
+ ARCH: ${{ matrix.arch }}
+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
+ run: |
+ set -euo pipefail
+ mkdir release-assets
+ cp "$SIGNED_DMG" "release-assets/Buzz_${VERSION}_${ARCH}.dmg"
+
+ # Package the verified, Apple-signed and stapled app from the release DMG.
+ app_dir=$(mktemp -d "$RUNNER_TEMP/updater-app.XXXXXX")
+ hdiutil attach "$SIGNED_DMG" -readonly -nobrowse -mountpoint "$app_dir" >/dev/null
+ trap 'hdiutil detach "$app_dir" >/dev/null' EXIT
+ app="$app_dir/Buzz.app"
+ test -d "$app" || { echo '::error::Signed DMG contains no app'; exit 1; }
+ archive="$PWD/release-assets/Buzz_${VERSION}_${ARCH}.app.tar.gz"
+ # ditto copies the complete signed bundle (including symlinks and metadata).
+ staged_app=$(mktemp -d "$RUNNER_TEMP/updater-staging.XXXXXX")
+ ditto "$app" "$staged_app/Buzz.app"
+ codesign --verify --deep --strict "$staged_app/Buzz.app"
+ (cd "$staged_app" && COPYFILE_DISABLE=1 tar -czf "$archive" 'Buzz.app')
+ pnpm tauri signer sign "$archive"
+ test -s "$archive" && test -s "$archive.sig" || { echo '::error::Updater signing failed'; exit 1; }
+ (cd release-assets && shasum -a 256 ./*.dmg ./*.tar.gz > SHA256SUMS)
+
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: signed-macos-${{ matrix.arch }}
+ path: release-assets/
+ if-no-files-found: error
+ retention-days: 7
+
+ publish:
+ name: Publish GitHub release
+ needs: [build, windows, linux, updater_signatures]
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: signed-macos-aarch64
+ path: build-assets/macos-aarch64
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: signed-macos-x64
+ path: build-assets/macos-x64
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: windows-x64-candidate
+ path: build-assets/windows
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: linux-x64-candidates
+ path: build-assets/linux
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: windows-linux-updater-signatures
+ path: build-assets/signatures
+ - name: Verify and assemble release assets
+ env:
+ VERSION: ${{ needs.build.outputs.version }}
+ SOURCE_SHA: ${{ github.sha }}
+ run: |
+ set -euo pipefail
+ for platform in macos-aarch64 macos-x64 windows linux; do
+ (cd "build-assets/$platform" && sha256sum --check SHA256SUMS)
+ done
+ # Exact names also reject artifacts built as a different version.
+ mkdir release-assets
+ for arch in aarch64 x64; do
+ for asset in dmg app.tar.gz app.tar.gz.sig; do
+ cp "build-assets/macos-$arch/Buzz_${VERSION}_$arch.$asset" release-assets/
+ done
+ done
+ cp "build-assets/windows/Buzz_${VERSION}_x64_unsigned.exe" release-assets/
+ cp "build-assets/linux/Buzz_${VERSION}_amd64.deb" release-assets/
+ cp "build-assets/linux/Buzz_${VERSION}_x86_64.AppImage" release-assets/
+ for installer in x64_unsigned.exe amd64.deb x86_64.AppImage; do
+ cp "build-assets/signatures/Buzz_${VERSION}_${installer}.sig" release-assets/
+ done
+ printf '%s\n' "$SOURCE_SHA" > release-assets/SOURCE_COMMIT
+ (cd release-assets && sha256sum ./Buzz_* > SHA256SUMS)
+ - name: Publish desktop release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ SOURCE_SHA: ${{ github.sha }}
+ VERSION: ${{ needs.build.outputs.version }}
+ run: |
+ platforms='Includes Apple Silicon and Intel macOS (signed and notarized), Windows x64 (unsigned NSIS installer), and Linux x64 (Ubuntu 24.04 deb and AppImage).'
+ # Previews create their tag at the built commit. Stable and beta
+ # releases publish on their existing protected tag and never create one.
+ case "$VERSION" in
+ *-preview.*)
+ options=(--target "$SOURCE_SHA" --prerelease --latest=false --title "Buzz $VERSION (desktop preview)")
+ notes="Desktop preview from commit $SOURCE_SHA, built by Actions run $GITHUB_RUN_ID. $platforms Windows/Linux still require desktop acceptance. Updater-enabled installs update from the preview feed." ;;
+ *-beta.*)
+ options=(--verify-tag --prerelease --latest=false --title "Buzz $VERSION (beta)")
+ notes="Desktop beta from commit $SOURCE_SHA, built by Actions run $GITHUB_RUN_ID. $platforms Betas are never served on the stable feed; installs update to the next promoted stable release." ;;
+ *)
+ options=(--verify-tag --latest --title "Buzz $VERSION")
+ notes="Buzz desktop $VERSION from commit $SOURCE_SHA, built by Actions run $GITHUB_RUN_ID. $platforms Updater-enabled installs update from the stable feed once a release is promoted to it." ;;
+ esac
+ # GitHub can fail one call of several (500 publishing the uploaded
+ # draft). Delete a draft a failed try left, then try again. A
+ # published v$VERSION may be an earlier attempt's, already in a
+ # feed, so it is never deleted. Deleting a draft keeps its tag.
+ for try in 1 2 3; do
+ gh release create "v$VERSION" release-assets/* "${options[@]}" --notes "$notes" &&
+ exit 0
+ test "$try" -lt 3 || exit 1
+ draft=$(gh release view "v$VERSION" --json isDraft --jq .isDraft) || draft=
+ case "$draft" in
+ true) gh release delete "v$VERSION" --yes || true ;;
+ false)
+ echo "::error::v$VERSION is already published; leaving it in place."
+ exit 1 ;;
+ esac
+ sleep $((try * 15))
+ done
+
+ windows:
+ if: github.repository == 'block/buzz-app'
+ name: Windows x64 installer (unsigned)
+ runs-on: windows-2025
+ timeout-minutes: 120
+ defaults:
+ run:
+ shell: bash
+ steps:
+ # Unset builds trust only the built-in sign-in server and an empty value
+ # opts out, so add the repository's servers only when it names some.
+ - name: Add sign-in servers
+ if: vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG != ''
+ shell: bash
+ env:
+ SERVERS: ${{ vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG }}
+ # The delimiter form keeps a pretty-printed, multiline value intact.
+ run: |
+ delimiter="FI_${RANDOM}${RANDOM}${RANDOM}"
+ [[ "$SERVERS" != *"$delimiter"* ]]
+ printf 'BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG<<%s\n%s\n%s\n' "$delimiter" "$SERVERS" "$delimiter" >> "$GITHUB_ENV"
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ # Reuse the native CI pin selection; Hermit does not run on Windows.
+ - name: Read repository tool pins
+ id: pins
+ shell: pwsh
+ run: |
+ foreach ($tool in @('node', 'pnpm')) {
+ $pins = @(Get-ChildItem "bin/.$tool-*.pkg")
+ if ($pins.Count -ne 1) { throw "Expected one $tool pin" }
+ $version = $pins[0].Name -replace "^\.$tool-(.*)\.pkg$", '$1'
+ "$tool=$version" >> $env:GITHUB_OUTPUT
+ }
+ $rust = (Select-String -Path rust-toolchain.toml -Pattern '^channel = "(.+)"$').Matches.Groups[1].Value
+ if (!$rust) { throw "Expected a rust-toolchain.toml channel" }
+ "rust=$rust" >> $env:GITHUB_OUTPUT
+ - name: Select pinned Rust
+ shell: pwsh
+ env:
+ RUST_VERSION: ${{ steps.pins.outputs.rust }}
+ run: |
+ rustup toolchain install $env:RUST_VERSION --profile minimal
+ if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
+ "RUSTUP_TOOLCHAIN=$env:RUST_VERSION" >> $env:GITHUB_ENV
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
+ with:
+ node-version: ${{ steps.pins.outputs.node }}
+ - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
+ with:
+ version: ${{ steps.pins.outputs.pnpm }}
+ - run: pnpm install --frozen-lockfile
+ - name: Set candidate version
+ run: node scripts/candidate-version.mjs
+ - name: Build NSIS installer
+ run: pnpm tauri build --ci --no-sign --bundles nsis --config "$RUNNER_TEMP/candidate.json" -- --locked
+ - name: Install into disposable runner and verify app executable
+ shell: pwsh
+ env:
+ CANDIDATES: ${{ inputs.candidates }}
+ run: |
+ $installers = @(Get-ChildItem target/release/bundle/nsis/*.exe)
+ if ($installers.Count -ne 1) { throw 'Expected exactly one NSIS installer' }
+ $destination = "$env:RUNNER_TEMP\candidate-install"
+ # NSIS /D must be last and unquoted, including paths containing spaces.
+ $process = Start-Process $installers[0].FullName -ArgumentList "/S /D=$destination" -Wait -PassThru
+ if ($process.ExitCode -ne 0) { throw "Installer failed: $($process.ExitCode)" }
+ if (!(Test-Path "$destination\Buzz.exe")) { throw 'App executable missing' }
+ if (!(Test-Path "$destination\bin\goose-acp.exe")) { throw 'goose-acp missing' }
+ if (!(Test-Path "$destination\bin\buzz-agent-command.exe")) { throw 'buzz-agent-command missing' }
+ if (!(Test-Path "$destination\bin\buzz.exe")) { throw 'buzz missing' }
+ & "$destination\bin\buzz.exe" --help | Out-Null
+ if ($LASTEXITCODE -ne 0) { throw 'buzz does not run' }
+ if ($env:CANDIDATES -ne 'true') {
+ $binary = [Text.Encoding]::ASCII.GetString([IO.File]::ReadAllBytes("$destination\Buzz.exe"))
+ foreach ($value in @($env:BUZZ_UPDATER_PUBLIC_KEY, $env:BUZZ_UPDATER_ENDPOINT)) {
+ if (!$value -or !$binary.Contains($value)) { throw 'App executable does not embed the updater configuration' }
+ }
+ }
+ - name: Stage candidate and checksum
+ run: |
+ mkdir release-assets
+ installers=(target/release/bundle/nsis/*.exe)
+ test "${#installers[@]}" -eq 1
+ cp "${installers[0]}" "release-assets/Buzz_${VERSION}_x64_unsigned.exe"
+ printf '%s\n' "$GITHUB_SHA" > release-assets/SOURCE_COMMIT
+ cd release-assets
+ sha256sum ./*.exe > SHA256SUMS
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: windows-x64-candidate
+ path: release-assets/
+ if-no-files-found: error
+ retention-days: 7
+
+ linux:
+ if: github.repository == 'block/buzz-app'
+ name: Linux x64 installers
+ runs-on: ubuntu-latest
+ # Shipped old-Buzz recipe, without its mesh/Kubernetes/updater dependencies.
+ container: ubuntu:24.04@sha256:33ceb71981b602c1a7443a53469e4dba065f7503eab3078a2d7a57a2ab987517
+ timeout-minutes: 120
+ defaults:
+ run:
+ shell: bash
+ env:
+ APPIMAGE_EXTRACT_AND_RUN: "1"
+ steps:
+ # Unset builds trust only the built-in sign-in server and an empty value
+ # opts out, so add the repository's servers only when it names some.
+ - name: Add sign-in servers
+ if: vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG != ''
+ shell: bash
+ env:
+ SERVERS: ${{ vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG }}
+ # The delimiter form keeps a pretty-printed, multiline value intact.
+ run: |
+ delimiter="FI_${RANDOM}${RANDOM}${RANDOM}"
+ [[ "$SERVERS" != *"$delimiter"* ]]
+ printf 'BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG<<%s\n%s\n%s\n' "$delimiter" "$SERVERS" "$delimiter" >> "$GITHUB_ENV"
+ - name: Install build and packaging dependencies
+ run: |
+ apt-get update
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
+ build-essential ca-certificates curl desktop-file-utils file git \
+ libasound2-dev libayatana-appindicator3-dev libgtk-3-dev librsvg2-dev \
+ libopus-dev libssl-dev libwebkit2gtk-4.1-dev libxdo-dev patchelf pkg-config \
+ squashfs-tools wget xdg-utils
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
+ # No shared writable release caches. Use existing pins and frozen inputs.
+ - uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
+ - run: pnpm install --frozen-lockfile
+ - name: Install pinned AppImage repacking tools
+ run: |
+ wget -q -O /tmp/appimagetool https://github.com/AppImage/appimagetool/releases/download/1.9.1/appimagetool-x86_64.AppImage
+ echo 'ed4ce84f0d9caff66f50bcca6ff6f35aae54ce8135408b3fa33abfc3cb384eb0 /tmp/appimagetool' | sha256sum -c
+ install -m 755 /tmp/appimagetool /usr/local/bin/appimagetool
+ wget -q -O /tmp/appimage-runtime https://github.com/AppImage/type2-runtime/releases/download/20251108/runtime-x86_64
+ echo '2fca8b443c92510f1483a883f60061ad09b46b978b2631c807cd873a47ec260d /tmp/appimage-runtime' | sha256sum -c
+ install -D -m 644 /tmp/appimage-runtime /usr/local/lib/appimage-runtime
+ echo 'APPIMAGETOOL_RUNTIME_FILE=/usr/local/lib/appimage-runtime' >> "$GITHUB_ENV"
+ - name: Set candidate version
+ run: node scripts/candidate-version.mjs
+ - name: Build deb and AppImage
+ run: pnpm tauri build --ci --no-sign --bundles deb,appimage --config "$RUNNER_TEMP/candidate.json" -- --locked
+ - name: Repair AppImage and verify packaged app executables
+ env:
+ CANDIDATES: ${{ inputs.candidates }}
+ run: |
+ shopt -s nullglob
+ debs=(target/release/bundle/deb/*.deb)
+ images=(target/release/bundle/appimage/*.AppImage)
+ test "${#debs[@]}" -eq 1 && test "${#images[@]}" -eq 1
+ bash scripts/fix-appimage.sh "${images[0]}"
+ dpkg-deb -x "${debs[0]}" "$RUNNER_TEMP/deb"
+ test -x "$RUNNER_TEMP/deb/usr/bin/Buzz"
+ test -x "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/goose-acp"
+ test -x "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/buzz-agent-command"
+ test -x "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/buzz"
+ "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/buzz" --help > /dev/null
+ image=$(realpath "${images[0]}")
+ mkdir "$RUNNER_TEMP/appimage"
+ (cd "$RUNNER_TEMP/appimage" && "$image" --appimage-extract >/dev/null)
+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/Buzz"
+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/Buzz.bin"
+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/bin/goose-acp"
+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/bin/buzz-agent-command"
+ test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/bin/buzz"
+ # The updater selects each install's feed entry by its embedded bundle type.
+ binaries=("$RUNNER_TEMP/deb/usr/bin/Buzz" "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/Buzz.bin")
+ grep -aqF __TAURI_BUNDLE_TYPE_VAR_DEB "${binaries[0]}" || { echo '::error::deb app lacks its bundle type'; exit 1; }
+ grep -aqF __TAURI_BUNDLE_TYPE_VAR_APP "${binaries[1]}" || { echo '::error::AppImage app lacks its bundle type'; exit 1; }
+ if [[ "$CANDIDATES" != true ]]; then
+ for binary in "${binaries[@]}"; do
+ for value in "$BUZZ_UPDATER_PUBLIC_KEY" "$BUZZ_UPDATER_ENDPOINT"; do
+ [[ -n "$value" ]] && grep -aqF "$value" "$binary" || { echo "::error::$binary does not embed the updater configuration"; exit 1; }
+ done
+ done
+ fi
+ mkdir release-assets
+ cp "${debs[0]}" "release-assets/Buzz_${VERSION}_amd64.deb"
+ cp "${images[0]}" "release-assets/Buzz_${VERSION}_x86_64.AppImage"
+ printf '%s\n' "$GITHUB_SHA" > release-assets/SOURCE_COMMIT
+ cd release-assets
+ sha256sum ./*.deb ./*.AppImage > SHA256SUMS
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: linux-x64-candidates
+ path: release-assets/
+ if-no-files-found: error
+ retention-days: 7
+
+ updater_signatures:
+ # Installer jobs never receive the signing key; sign their verified bytes here.
+ if: >-
+ github.repository == 'block/buzz-app' && !inputs.candidates &&
+ github.ref == (inputs.release_version && format('refs/tags/v{0}', inputs.release_version) || 'refs/heads/main')
+ name: Sign Windows and Linux updater installers
+ needs: [windows, linux]
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - uses: ./.github/actions/setup
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: windows-x64-candidate
+ path: build-assets/windows
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
+ with:
+ name: linux-x64-candidates
+ path: build-assets/linux
+ - name: Sign verified installers
+ env:
+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
+ run: |
+ set -euo pipefail
+ for platform in windows linux; do
+ (cd "build-assets/$platform" && sha256sum --check SHA256SUMS)
+ done
+ mkdir signatures
+ for installer in build-assets/windows/*.exe build-assets/linux/*.deb build-assets/linux/*.AppImage; do
+ pnpm tauri signer sign "$installer"
+ test -s "$installer.sig" || { echo '::error::Updater signing failed'; exit 1; }
+ mv "$installer.sig" signatures/
+ done
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: windows-linux-updater-signatures
+ path: signatures/
+ if-no-files-found: error
+ retention-days: 7
diff --git a/.github/workflows/desktop-stable-feed.yml b/.github/workflows/desktop-stable-feed.yml
new file mode 100644
index 0000000000..41efa3eeba
--- /dev/null
+++ b/.github/workflows/desktop-stable-feed.yml
@@ -0,0 +1,69 @@
+name: Desktop stable feed
+run-name: Serve ${{ inputs.version }} on the stable feed
+
+# Points installed stable apps at a published stable release. Publishing a
+# release (desktop-stable.yml) never does this on its own; betas never reach it.
+# It also points the website download manifest at the same release.
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: Published stable version (X.Y.Z) to serve on the stable updater feed
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+concurrency:
+ group: desktop-stable-feed
+ cancel-in-progress: false
+
+jobs:
+ promote:
+ if: github.repository == 'block/buzz-app'
+ name: Promote stable release
+ runs-on: ubuntu-latest
+ # Required reviewers approve each promotion; deploys only from main.
+ environment: desktop-stable-feed
+ timeout-minutes: 10
+ permissions:
+ # Reads the environment's protection rules.
+ actions: read
+ contents: write
+ steps:
+ - name: Require the reviewed workflow from main
+ env:
+ DISPATCH_REF: ${{ github.ref }}
+ run: |
+ test "$DISPATCH_REF" = refs/heads/main || { echo "::error::Promote from main, not $DISPATCH_REF"; exit 1; }
+ # GitHub creates a missing environment without protection, so check it
+ # rather than trust that it was set up.
+ - name: Require an approval environment limited to main
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ run: |
+ set -euo pipefail
+ environment="repos/$GH_REPO/environments/desktop-stable-feed"
+ gh api "$environment" --jq '
+ ([.protection_rules[] | select(.type == "required_reviewers") | .reviewers | length] | add // 0) > 0
+ and .deployment_branch_policy.custom_branch_policies == true' | grep -qx true ||
+ { echo '::error::desktop-stable-feed needs required reviewers and a custom deployment branch policy'; exit 1; }
+ branches=$(gh api "$environment/deployment-branch-policies" --jq '[.branch_policies[] | "\(.type):\(.name)"] | sort | join(",")')
+ [[ "$branches" == "branch:main" ]] || { echo "::error::desktop-stable-feed must deploy only from main, not $branches"; exit 1; }
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ with:
+ persist-credentials: false
+ - name: Verify and publish stable feed
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ VERSION: ${{ inputs.version }}
+ run: scripts/promote-updater-feed.sh stable-feed "$VERSION"
+ - name: Publish website download manifest
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ VERSION: ${{ inputs.version }}
+ run: node scripts/publish-desktop-downloads.mjs "$VERSION" --apply
diff --git a/.github/workflows/desktop-stable.yml b/.github/workflows/desktop-stable.yml
new file mode 100644
index 0000000000..31c88e69d7
--- /dev/null
+++ b/.github/workflows/desktop-stable.yml
@@ -0,0 +1,68 @@
+name: Desktop stable release
+run-name: Publish ${{ github.ref_name }}
+
+# Publishes a stable (vX.Y.Z, marked Latest) or beta (vX.Y.Z-beta.N, a
+# prerelease) GitHub release from its protected tag. Serving a stable release
+# to installed apps is a separate step: desktop-stable-feed.yml.
+on:
+ push:
+ tags:
+ - "v[0-9]*"
+ # Previews' own tags; release.yml creates them and they never trigger this.
+ - "!v*-preview.*"
+
+permissions:
+ contents: read
+
+concurrency:
+ group: desktop-stable-${{ github.ref }}
+ cancel-in-progress: false
+
+jobs:
+ source:
+ if: github.repository == 'block/buzz-app'
+ name: Verify release tag
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ outputs:
+ version: ${{ steps.source.outputs.version }}
+ steps:
+ - name: Require a release tag in main history
+ id: source
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ TAG: ${{ github.ref_name }}
+ SOURCE_SHA: ${{ github.sha }}
+ run: |
+ set -euo pipefail
+ [[ "$TAG" =~ ^v((0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-beta\.[1-9][0-9]*)?)$ ]] ||
+ { echo "::error::$TAG is not a release tag (vX.Y.Z or vX.Y.Z-beta.N)"; exit 1; }
+ version="${BASH_REMATCH[1]}"
+ # Anyone with write access can push an unprotected tag, so publish only
+ # while an active ruleset restricts v* tags (previews' own excepted).
+ protected=''
+ for id in $(gh api "repos/$GH_REPO/rulesets" --jq '.[] | select(.target == "tag" and .enforcement == "active") | .id'); do
+ protected+=$(gh api "repos/$GH_REPO/rulesets/$id" --jq '
+ select((.conditions.ref_name.include | index("refs/tags/v*")) != null
+ and (.conditions.ref_name.exclude - ["refs/tags/v*-preview.*"]) == []
+ and ([.rules[].type] | sort) == ["creation", "deletion", "non_fast_forward", "update"]) | .id')
+ done
+ [[ -n "$protected" ]] || { echo '::error::No active tag ruleset restricts creation, update and deletion of refs/tags/v*'; exit 1; }
+ # The tag must point at the commit this run builds.
+ tagged=$(gh api "repos/$GH_REPO/commits/refs/tags/$TAG" --jq .sha)
+ [[ "$tagged" == "$SOURCE_SHA" ]] || { echo "::error::$TAG is at $tagged, not $SOURCE_SHA"; exit 1; }
+ main=$(gh api "repos/$GH_REPO/git/ref/heads/main" --jq .object.sha)
+ base=$(gh api "repos/$GH_REPO/compare/$SOURCE_SHA...$main" --jq .merge_base_commit.sha)
+ [[ "$base" == "$SOURCE_SHA" ]] || { echo "::error::$SOURCE_SHA is not in main history at $main"; exit 1; }
+ echo "version=$version" >> "$GITHUB_OUTPUT"
+
+ desktop:
+ needs: source
+ uses: ./.github/workflows/desktop-build.yml
+ permissions:
+ contents: write
+ id-token: write
+ secrets: inherit
+ with:
+ release_version: ${{ needs.source.outputs.version }}
diff --git a/.github/workflows/mesh-cross-node.yml b/.github/workflows/mesh-cross-node.yml
new file mode 100644
index 0000000000..8c43e69209
--- /dev/null
+++ b/.github/workflows/mesh-cross-node.yml
@@ -0,0 +1,55 @@
+name: Mesh cross-node CPU
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - 'src/bundled/mesh-compute/compute/**'
+ - 'scripts/*mesh-cross-node*'
+ - '.github/workflows/mesh-cross-node.yml'
+ - 'Cargo.lock'
+ - 'Cargo.toml'
+ push:
+ branches: [main]
+ paths:
+ - 'src/bundled/mesh-compute/compute/**'
+ - 'scripts/*mesh-cross-node*'
+ - '.github/workflows/mesh-cross-node.yml'
+ - 'Cargo.lock'
+ - 'Cargo.toml'
+permissions:
+ contents: read
+concurrency:
+ group: mesh-cross-node-${{ github.ref }}
+ cancel-in-progress: true
+jobs:
+ remote-only:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 20
+ steps:
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ with:
+ persist-credentials: false
+ - uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
+ - name: Install Linux dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install --no-install-recommends -y libwebkit2gtk-4.1-dev build-essential libssl-dev librsvg2-dev libayatana-appindicator3-dev
+ - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
+ with:
+ key: mesh-cross-node
+ save-if: ${{ github.event_name == 'push' }}
+ - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
+ with:
+ path: .cache/mesh-cross-node
+ key: mesh-smoke-assets-linux-v0.79.0-8030f045
+ - name: Full mesh crate tests
+ run: ./bin/cargo test --locked -p buzz-mesh-compute
+ - name: Remote-only completion and provider outage
+ run: scripts/ci-mesh-cross-node.sh
+ - name: Evidence (includes ephemeral test identities only)
+ if: always()
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ with:
+ name: mesh-cross-node
+ path: test-results/mesh-cross-node
+ retention-days: 7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6e5ad3661d..0f3196218e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,6 +1,15 @@
name: Desktop previews
on:
+ # A daily preview from main.
+ schedule:
+ - cron: "37 9 * * *"
+ # A preview of main right after each published stable release (always in
+ # main's history), so preview installs get its code without leaving the
+ # preview feed. The release only gates the run; main's head is built.
+ workflow_run:
+ workflows: [Desktop stable release]
+ types: [completed]
workflow_dispatch:
inputs:
candidates:
@@ -8,257 +17,68 @@ on:
type: boolean
default: false
promote_version:
- description: Promote a validated version (e.g. 0.7.0-preview.22.1) to the preview updater feed; no build
+ description: Promote a validated version (e.g. 1.0.2-preview.3) to the preview updater feed; no build
type: string
default: ""
- schedule:
- - cron: "17 */6 * * *"
permissions:
contents: read
-env:
- # Legacy login origin, only when FI is not configured: the build scripts
- # reject a nonempty legacy origin alongside the FI descriptor.
- BUZZ_BUILDERLAB_URL: ${{ !vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG && (vars.BUZZ_BUILDERLAB_URL || 'https://app.builderlab.xyz') || '' }}
- # Public verification inputs; the native build and plugins.updater must match.
- # Candidate-only runs build without the updater.
- BUZZ_UPDATER_PUBLIC_KEY: ${{ !inputs.candidates && 'dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJDQjQ2RDZFMUEwOERFMTEKUldRUjNnZ2FibTIwTE10QkVaMzFyYkZlY0R4ajhmbFBjdncvNVRCYnNpSm9kaFNBaHQzemZlZHkK' || '' }}
- BUZZ_UPDATER_ENDPOINT: ${{ !inputs.candidates && 'https://github.com/block/buzz-app/releases/download/preview-feed/latest.json' || '' }}
-
concurrency:
- group: desktop-preview-${{ inputs.candidates && github.ref || 'macos-prerelease' }}
+ # Stable completions the source job skips get their own group, so they can't
+ # replace a legitimate preview waiting in the shared one. Keep this test
+ # identical to the source job's.
+ group: >-
+ desktop-preview-${{ !(github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' &&
+ github.event.workflow_run.event == 'push' && !contains(github.event.workflow_run.head_branch, '-'))) &&
+ format('skipped-{0}', github.run_id) || (inputs.candidates && github.ref || 'macos-prerelease') }}
cancel-in-progress: false
jobs:
- build:
- if: github.repository == 'block/buzz-app' && !inputs.candidates && !inputs.promote_version
- name: Build, sign, and notarize
- runs-on: macos-latest
- timeout-minutes: 120
- permissions:
- contents: read
- id-token: write
+ source:
+ # Only a successful stable vX.Y.Z publication starts a preview; betas
+ # (vX.Y.Z-beta.N) contain '-' and do not.
+ if: >-
+ ${{ github.repository == 'block/buzz-app' && !inputs.promote_version && (inputs.candidates || github.ref == 'refs/heads/main') &&
+ (github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' &&
+ github.event.workflow_run.event == 'push' && !contains(github.event.workflow_run.head_branch, '-'))) }}
+ name: Derive preview version
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
outputs:
version: ${{ steps.version.outputs.version }}
- env:
- CI: "true"
- CARGO_TERM_COLOR: always
- BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG: ${{ vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG }}
steps:
- - name: Require main and signing configuration
- env:
- SOURCE_REF: ${{ github.ref }}
- SIGNING_ROLE: ${{ secrets.OSX_CODESIGN_ROLE }}
- SIGNING_BUCKET: ${{ secrets.CODESIGN_S3_BUCKET }}
- UPDATER_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
- UPDATER_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- run: |
- test "$SOURCE_REF" = refs/heads/main || { echo '::error::Releases must run from main'; exit 1; }
- test -n "$SIGNING_ROLE" && test -n "$SIGNING_BUCKET" || { echo '::error::Set OSX_CODESIGN_ROLE and CODESIGN_S3_BUCKET'; exit 1; }
- test -n "$UPDATER_KEY" && test -n "$UPDATER_PASSWORD" || { echo '::error::Set TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD'; exit 1; }
-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
+ # All history for the stable base and every tag for the preview counter.
+ fetch-depth: 0
+ fetch-tags: true
persist-credentials: false
- - uses: ./.github/actions/setup
- - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
- with:
- key: macos-prerelease
- cache-all-crates: true
-
- - name: Set preview version
+ - name: Derive the preview version
id: version
- run: |
- node --input-type=module <<'JS'
- import { readFileSync, writeFileSync, appendFileSync } from 'node:fs';
- const config = JSON.parse(readFileSync('src-tauri/tauri.conf.json', 'utf8'));
- const base = config.version.split('-')[0];
- if (!/^\d+\.\d+\.\d+$/.test(base)) throw new Error('Expected a numeric Tauri version');
- const version = `${base}-preview.${process.env.GITHUB_RUN_NUMBER}.${process.env.GITHUB_RUN_ATTEMPT}`;
- writeFileSync(`${process.env.RUNNER_TEMP}/release.json`, JSON.stringify({
- version,
- bundle: { createUpdaterArtifacts: false },
- plugins: { updater: { pubkey: process.env.BUZZ_UPDATER_PUBLIC_KEY, endpoints: [process.env.BUZZ_UPDATER_ENDPOINT] } },
- }));
- appendFileSync(process.env.GITHUB_OUTPUT, `version=${version}\n`);
- JS
-
- - name: Build unsigned app and DMG
- env:
- TAURI_BUNDLER_DMG_IGNORE_CI: "true"
- run: |
- rm -rf target/release/bundle
- pnpm tauri build --ci --no-sign --bundles dmg --config "$RUNNER_TEMP/release.json" -- --locked
-
- - name: Locate unsigned DMG
- id: unsigned
- run: |
- shopt -s nullglob
- dmgs=(target/release/bundle/dmg/*.dmg)
- test "${#dmgs[@]}" -eq 1 || { echo '::error::Expected exactly one DMG'; exit 1; }
- echo "path=${dmgs[0]}" >> "$GITHUB_OUTPUT"
-
- - name: Sign and notarize
- id: codesign
- uses: block/apple-codesign-action@679535d1ab7c5a7c18e6f9afcba3464512cc3dde # v1.1.0
- with:
- osx-codesign-role: ${{ secrets.OSX_CODESIGN_ROLE }}
- codesign-s3-bucket: ${{ secrets.CODESIGN_S3_BUCKET }}
- unsigned-artifact-path: ${{ steps.unsigned.outputs.path }}
- entitlements-plist-path: src-tauri/entitlements.plist
- artifact-name: buzz-app-${{ github.run_id }}-${{ github.run_attempt }}-arm64
-
- - name: Verify release DMG
- env:
- SIGNED_DMG: ${{ steps.codesign.outputs.signed-dmg-path }}
- run: |
- app_dir=$(mktemp -d "$RUNNER_TEMP/verify-release.XXXXXX")
- hdiutil attach "$SIGNED_DMG" -readonly -nobrowse -mountpoint "$app_dir" >/dev/null
- trap 'hdiutil detach "$app_dir" >/dev/null' EXIT
- app="$app_dir/Buzz.app"
- codesign --verify --deep --strict --verbose=2 \
- -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = EYF346PHUG' "$app"
- spctl --assess --type execute --verbose=4 "$app"
- xcrun stapler validate "$app"
- test -n "$(/usr/libexec/PlistBuddy -c 'Print :NSMicrophoneUsageDescription' "$app/Contents/Info.plist")"
- codesign --display --entitlements :- "$app" > "$RUNNER_TEMP/signed-entitlements.plist"
- test "$(/usr/libexec/PlistBuddy -c 'Print :com.apple.security.device.audio-input' "$RUNNER_TEMP/signed-entitlements.plist")" = true || { echo '::error::Signed app is missing microphone entitlement'; exit 1; }
- goose="$app/Contents/Resources/bin/goose-acp"
- test -x "$goose" || { echo '::error::Signed app is missing goose-acp'; exit 1; }
- test "$(lipo -archs "$goose")" = arm64 || { echo '::error::goose-acp is not arm64'; exit 1; }
- codesign --verify --strict --verbose=2 \
- -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = EYF346PHUG' "$goose"
- command="$app/Contents/Resources/bin/buzz-agent-command"
- test -x "$command" || { echo '::error::Signed app is missing buzz-agent-command'; exit 1; }
- test "$(lipo -archs "$command")" = arm64 || { echo '::error::buzz-agent-command is not arm64'; exit 1; }
- codesign --verify --strict --verbose=2 \
- -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[subject.OU] = EYF346PHUG' "$command"
- cli="$app/Contents/Resources/bin/buzz"
- test -x "$cli" || { echo '::error::Signed app is missing buzz'; exit 1; }
- test "$(lipo -archs "$cli")" = arm64 || { echo '::error::buzz is not arm64'; exit 1; }
- codesign --verify --strict --verbose=2 \
- -R '=anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] exists and certificate leaf[field.1.2.840.113635.100.6.1.13] exists and certificate leaf[subject.OU] = EYF346PHUG' "$cli"
- codesign --display --verbose=2 "$cli" 2>&1 | grep 'flags=.*runtime' > /dev/null || { echo '::error::buzz lacks the hardened runtime'; exit 1; }
- "$cli" --help > /dev/null || { echo '::error::Signed buzz does not run'; exit 1; }
-
- - name: Stage release assets and checksums
- env:
- SIGNED_DMG: ${{ steps.codesign.outputs.signed-dmg-path }}
- VERSION: ${{ steps.version.outputs.version }}
- TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
- TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- run: |
- set -euo pipefail
- mkdir release-assets
- cp "$SIGNED_DMG" "release-assets/Buzz_${VERSION}_aarch64.dmg"
-
- # Package the verified, Apple-signed and stapled app from the release DMG.
- app_dir=$(mktemp -d "$RUNNER_TEMP/updater-app.XXXXXX")
- hdiutil attach "$SIGNED_DMG" -readonly -nobrowse -mountpoint "$app_dir" >/dev/null
- trap 'hdiutil detach "$app_dir" >/dev/null' EXIT
- app="$app_dir/Buzz.app"
- test -d "$app" || { echo '::error::Signed DMG contains no app'; exit 1; }
- archive="$PWD/release-assets/Buzz_${VERSION}_aarch64.app.tar.gz"
- # ditto copies the complete signed bundle (including symlinks and metadata).
- staged_app=$(mktemp -d "$RUNNER_TEMP/updater-staging.XXXXXX")
- ditto "$app" "$staged_app/Buzz.app"
- codesign --verify --deep --strict "$staged_app/Buzz.app"
- (cd "$staged_app" && COPYFILE_DISABLE=1 tar -czf "$archive" 'Buzz.app')
- pnpm tauri signer sign "$archive"
- test -s "$archive" && test -s "$archive.sig" || { echo '::error::Updater signing failed'; exit 1; }
- (cd release-assets && shasum -a 256 ./*.dmg ./*.tar.gz > SHA256SUMS)
-
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- with:
- name: signed-macos-release
- path: release-assets/
- if-no-files-found: error
- retention-days: 7
+ run: node scripts/preview-version.mjs HEAD
- publish:
- name: Publish GitHub prerelease
- needs: [build, windows, linux, updater_signatures]
- runs-on: ubuntu-latest
- timeout-minutes: 5
+ desktop:
+ # Candidate-only runs may build a feature branch; previews build main.
+ needs: source
+ if: github.repository == 'block/buzz-app' && !inputs.promote_version && (inputs.candidates || github.ref == 'refs/heads/main')
+ uses: ./.github/workflows/desktop-build.yml
permissions:
contents: write
- steps:
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- with:
- name: signed-macos-release
- path: build-assets/macos
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- with:
- name: windows-x64-candidate
- path: build-assets/windows
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- with:
- name: linux-x64-candidates
- path: build-assets/linux
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- with:
- name: windows-linux-updater-signatures
- path: build-assets/signatures
- - name: Verify and assemble release assets
- env:
- VERSION: ${{ needs.build.outputs.version }}
- SOURCE_SHA: ${{ github.sha }}
- run: |
- set -euo pipefail
- for platform in macos windows linux; do
- (cd "build-assets/$platform" && sha256sum --check SHA256SUMS)
- done
- # Exact names also reject mixed versions after a partial-job rerun.
- # Rerun all jobs so every platform uses the same run attempt/version.
- mkdir release-assets
- cp "build-assets/macos/Buzz_${VERSION}_aarch64.dmg" release-assets/
- cp "build-assets/macos/Buzz_${VERSION}_aarch64.app.tar.gz" release-assets/
- cp "build-assets/macos/Buzz_${VERSION}_aarch64.app.tar.gz.sig" release-assets/
- cp "build-assets/windows/Buzz_${VERSION}_x64_unsigned.exe" release-assets/
- cp "build-assets/linux/Buzz_${VERSION}_amd64.deb" release-assets/
- cp "build-assets/linux/Buzz_${VERSION}_x86_64.AppImage" release-assets/
- for installer in x64_unsigned.exe amd64.deb x86_64.AppImage; do
- cp "build-assets/signatures/Buzz_${VERSION}_${installer}.sig" release-assets/
- done
- printf '%s\n' "$SOURCE_SHA" > release-assets/SOURCE_COMMIT
- (cd release-assets && sha256sum ./Buzz_* > SHA256SUMS)
- - name: Publish desktop previews
- env:
- GH_TOKEN: ${{ github.token }}
- GH_REPO: ${{ github.repository }}
- SOURCE_SHA: ${{ github.sha }}
- VERSION: ${{ needs.build.outputs.version }}
- run: |
- # GitHub can fail one call of several (500 publishing the uploaded
- # draft). Delete a draft a failed try left, then try again. A
- # published v$VERSION may be an earlier attempt's, already in the
- # feed, so it is never deleted.
- for try in 1 2 3; do
- gh release create "v$VERSION" release-assets/* \
- --target "$SOURCE_SHA" --prerelease --latest=false \
- --title "Buzz $VERSION (desktop preview)" \
- --notes "Desktop preview from commit $SOURCE_SHA, built by Actions run $GITHUB_RUN_ID. Includes Apple Silicon macOS (signed and notarized), Windows x64 (unsigned NSIS installer), and Linux x64 (Ubuntu 24.04 deb and AppImage). Windows/Linux still require desktop acceptance. Updater-enabled installs update from the preview feed." &&
- exit 0
- test "$try" -lt 3 || exit 1
- draft=$(gh release view "v$VERSION" --json isDraft --jq .isDraft) || draft=
- case "$draft" in
- true) gh release delete "v$VERSION" --yes || true ;;
- false)
- echo "::error::v$VERSION is already published; leaving it in place."
- exit 1 ;;
- esac
- sleep $((try * 15))
- done
+ id-token: write
+ secrets: inherit
+ with:
+ candidates: ${{ inputs.candidates == true }}
+ preview_version: ${{ needs.source.outputs.version }}
promote_preview:
name: Promote verified preview
- needs: [build, publish]
- # Explicit promotions skip build/publish; automatic promotions require both to succeed.
+ needs: [desktop]
+ # Explicit promotions skip the build; automatic promotions require it, including publication, to succeed.
if: >-
${{ !cancelled() && github.repository == 'block/buzz-app' && github.ref == 'refs/heads/main' && !inputs.candidates &&
- ((inputs.promote_version != '' && needs.build.result == 'skipped' && needs.publish.result == 'skipped') ||
- (inputs.promote_version == '' && needs.build.result == 'success' && needs.publish.result == 'success')) }}
+ ((inputs.promote_version != '' && needs.desktop.result == 'skipped') ||
+ (inputs.promote_version == '' && needs.desktop.result == 'success')) }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
@@ -271,41 +91,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- VERSION: ${{ inputs.promote_version || needs.build.outputs.version }}
- run: |
- set -euo pipefail
- # Validate the version before using it in release asset paths.
- [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+-preview\.[0-9]+\.[0-9]+$ ]] || exit 1
- archive="Buzz_${VERSION}_aarch64.app.tar.gz"
- mkdir -p "$RUNNER_TEMP/candidate" "$RUNNER_TEMP/current" "$RUNNER_TEMP/served"
- gh release view "v$VERSION" --json isPrerelease --jq .isPrerelease | grep -qx true
- for asset in "$archive" "Buzz_${VERSION}_x64_unsigned.exe" "Buzz_${VERSION}_amd64.deb" "Buzz_${VERSION}_x86_64.AppImage"; do
- gh release download "v$VERSION" --pattern "$asset" --pattern "$asset.sig" --dir "$RUNNER_TEMP/candidate"
- [[ -s "$RUNNER_TEMP/candidate/$asset" && -s "$RUNNER_TEMP/candidate/$asset.sig" ]]
- done
- # Previews built before the executable became `Buzz` stay re-promotable until pruned.
- executable=$(tar -tzf "$RUNNER_TEMP/candidate/$archive" | grep -xE 'Buzz\.app/Contents/MacOS/(Buzz|buzz-foundation)')
- tar -xOzf "$RUNNER_TEMP/candidate/$archive" "$executable" > "$RUNNER_TEMP/candidate/Buzz"
- test -s "$RUNNER_TEMP/candidate/Buzz"
- current=''
- if gh release view preview-feed >/dev/null 2>&1; then
- gh release download preview-feed --pattern latest.json --dir "$RUNNER_TEMP/current"
- current="$RUNNER_TEMP/current/latest.json"
- fi
- node scripts/preview-feed.mjs generate "$VERSION" "$RUNNER_TEMP/candidate" "$RUNNER_TEMP/candidate/latest.json" "$RUNNER_TEMP/candidate/Buzz" ${current:+"$current"}
- node scripts/preview-feed.mjs verify "$VERSION" "$RUNNER_TEMP/candidate" "$RUNNER_TEMP/candidate/latest.json" "$RUNNER_TEMP/candidate/Buzz" ${current:+"$current"}
- if [[ -z "$current" ]]; then
- gh release create preview-feed "$RUNNER_TEMP/candidate/latest.json" \
- --target "$GITHUB_SHA" --prerelease --latest=false \
- --title 'Buzz preview updater feed' \
- --notes 'Rolling manifest for desktop previews. Not the stable channel.'
- elif cmp -s "$RUNNER_TEMP/candidate/latest.json" "$current"; then
- echo 'Preview feed already points to this candidate.'
- else
- gh release upload preview-feed "$RUNNER_TEMP/candidate/latest.json" --clobber
- fi
- gh release download preview-feed --pattern latest.json --dir "$RUNNER_TEMP/served"
- cmp "$RUNNER_TEMP/candidate/latest.json" "$RUNNER_TEMP/served/latest.json"
+ VERSION: ${{ inputs.promote_version || needs.desktop.outputs.version }}
+ run: scripts/promote-updater-feed.sh preview-feed "$VERSION"
- name: Prune old preview releases and tags
if: success()
@@ -313,220 +100,3 @@ jobs:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: node scripts/prune-preview-releases.mjs --apply
-
- windows:
- if: github.repository == 'block/buzz-app' && (inputs.candidates || (github.ref == 'refs/heads/main' && !inputs.promote_version))
- name: Windows x64 installer (unsigned)
- env:
- BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG: ${{ vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG }}
- runs-on: windows-2025
- timeout-minutes: 120
- defaults:
- run:
- shell: bash
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- # Reuse the native CI pin selection; Hermit does not run on Windows.
- - name: Read repository tool pins
- id: pins
- shell: pwsh
- run: |
- foreach ($tool in @('node', 'pnpm')) {
- $pins = @(Get-ChildItem "bin/.$tool-*.pkg")
- if ($pins.Count -ne 1) { throw "Expected one $tool pin" }
- $version = $pins[0].Name -replace "^\.$tool-(.*)\.pkg$", '$1'
- "$tool=$version" >> $env:GITHUB_OUTPUT
- }
- $rust = (Select-String -Path rust-toolchain.toml -Pattern '^channel = "(.+)"$').Matches.Groups[1].Value
- if (!$rust) { throw "Expected a rust-toolchain.toml channel" }
- "rust=$rust" >> $env:GITHUB_OUTPUT
- - name: Select pinned Rust
- shell: pwsh
- env:
- RUST_VERSION: ${{ steps.pins.outputs.rust }}
- run: |
- rustup toolchain install $env:RUST_VERSION --profile minimal
- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- "RUSTUP_TOOLCHAIN=$env:RUST_VERSION" >> $env:GITHUB_ENV
- - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- with:
- node-version: ${{ steps.pins.outputs.node }}
- - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
- with:
- version: ${{ steps.pins.outputs.pnpm }}
- - run: pnpm install --frozen-lockfile
- - name: Set candidate version
- run: node scripts/candidate-version.mjs
- - name: Build NSIS installer
- run: pnpm tauri build --ci --no-sign --bundles nsis --config "$RUNNER_TEMP/candidate.json" -- --locked
- - name: Install into disposable runner and verify app executable
- shell: pwsh
- env:
- CANDIDATES: ${{ inputs.candidates }}
- run: |
- $installers = @(Get-ChildItem target/release/bundle/nsis/*.exe)
- if ($installers.Count -ne 1) { throw 'Expected exactly one NSIS installer' }
- $destination = "$env:RUNNER_TEMP\candidate-install"
- # NSIS /D must be last and unquoted, including paths containing spaces.
- $process = Start-Process $installers[0].FullName -ArgumentList "/S /D=$destination" -Wait -PassThru
- if ($process.ExitCode -ne 0) { throw "Installer failed: $($process.ExitCode)" }
- if (!(Test-Path "$destination\Buzz.exe")) { throw 'App executable missing' }
- if (!(Test-Path "$destination\bin\goose-acp.exe")) { throw 'goose-acp missing' }
- if (!(Test-Path "$destination\bin\buzz-agent-command.exe")) { throw 'buzz-agent-command missing' }
- if (!(Test-Path "$destination\bin\buzz.exe")) { throw 'buzz missing' }
- & "$destination\bin\buzz.exe" --help | Out-Null
- if ($LASTEXITCODE -ne 0) { throw 'buzz does not run' }
- if ($env:CANDIDATES -ne 'true') {
- $binary = [Text.Encoding]::ASCII.GetString([IO.File]::ReadAllBytes("$destination\Buzz.exe"))
- foreach ($value in @($env:BUZZ_UPDATER_PUBLIC_KEY, $env:BUZZ_UPDATER_ENDPOINT)) {
- if (!$value -or !$binary.Contains($value)) { throw 'App executable does not embed the updater configuration' }
- }
- }
- - name: Stage candidate and checksum
- run: |
- mkdir release-assets
- installers=(target/release/bundle/nsis/*.exe)
- test "${#installers[@]}" -eq 1
- cp "${installers[0]}" "release-assets/Buzz_${VERSION}_x64_unsigned.exe"
- printf '%s\n' "$GITHUB_SHA" > release-assets/SOURCE_COMMIT
- cd release-assets
- sha256sum ./*.exe > SHA256SUMS
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- with:
- name: windows-x64-candidate
- path: release-assets/
- if-no-files-found: error
- retention-days: 7
-
- linux:
- if: github.repository == 'block/buzz-app' && (inputs.candidates || (github.ref == 'refs/heads/main' && !inputs.promote_version))
- name: Linux x64 installers
- runs-on: ubuntu-latest
- # Shipped old-Buzz recipe, without its mesh/Kubernetes/updater dependencies.
- container: ubuntu:24.04@sha256:33ceb71981b602c1a7443a53469e4dba065f7503eab3078a2d7a57a2ab987517
- timeout-minutes: 120
- defaults:
- run:
- shell: bash
- env:
- APPIMAGE_EXTRACT_AND_RUN: "1"
- BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG: ${{ vars.BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG }}
- steps:
- - name: Install build and packaging dependencies
- run: |
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
- build-essential ca-certificates curl desktop-file-utils file git \
- libasound2-dev libayatana-appindicator3-dev libgtk-3-dev librsvg2-dev \
- libopus-dev libssl-dev libwebkit2gtk-4.1-dev libxdo-dev patchelf pkg-config \
- squashfs-tools wget xdg-utils
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- # No shared writable release caches. Use existing pins and frozen inputs.
- - uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
- - run: pnpm install --frozen-lockfile
- - name: Install pinned AppImage repacking tools
- run: |
- wget -q -O /tmp/appimagetool https://github.com/AppImage/appimagetool/releases/download/1.9.1/appimagetool-x86_64.AppImage
- echo 'ed4ce84f0d9caff66f50bcca6ff6f35aae54ce8135408b3fa33abfc3cb384eb0 /tmp/appimagetool' | sha256sum -c
- install -m 755 /tmp/appimagetool /usr/local/bin/appimagetool
- wget -q -O /tmp/appimage-runtime https://github.com/AppImage/type2-runtime/releases/download/20251108/runtime-x86_64
- echo '2fca8b443c92510f1483a883f60061ad09b46b978b2631c807cd873a47ec260d /tmp/appimage-runtime' | sha256sum -c
- install -D -m 644 /tmp/appimage-runtime /usr/local/lib/appimage-runtime
- echo 'APPIMAGETOOL_RUNTIME_FILE=/usr/local/lib/appimage-runtime' >> "$GITHUB_ENV"
- - name: Set candidate version
- run: node scripts/candidate-version.mjs
- - name: Build deb and AppImage
- run: pnpm tauri build --ci --no-sign --bundles deb,appimage --config "$RUNNER_TEMP/candidate.json" -- --locked
- - name: Repair AppImage and verify packaged app executables
- env:
- CANDIDATES: ${{ inputs.candidates }}
- run: |
- shopt -s nullglob
- debs=(target/release/bundle/deb/*.deb)
- images=(target/release/bundle/appimage/*.AppImage)
- test "${#debs[@]}" -eq 1 && test "${#images[@]}" -eq 1
- bash scripts/fix-appimage.sh "${images[0]}"
- dpkg-deb -x "${debs[0]}" "$RUNNER_TEMP/deb"
- test -x "$RUNNER_TEMP/deb/usr/bin/Buzz"
- test -x "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/goose-acp"
- test -x "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/buzz-agent-command"
- test -x "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/buzz"
- "$RUNNER_TEMP/deb/usr/lib/Buzz Foundation/bin/buzz" --help > /dev/null
- image=$(realpath "${images[0]}")
- mkdir "$RUNNER_TEMP/appimage"
- (cd "$RUNNER_TEMP/appimage" && "$image" --appimage-extract >/dev/null)
- test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/Buzz"
- test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/Buzz.bin"
- test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/bin/goose-acp"
- test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/bin/buzz-agent-command"
- test -x "$RUNNER_TEMP/appimage/squashfs-root/usr/lib/Buzz Foundation/bin/buzz"
- # The updater selects each install's feed entry by its embedded bundle type.
- binaries=("$RUNNER_TEMP/deb/usr/bin/Buzz" "$RUNNER_TEMP/appimage/squashfs-root/usr/bin/Buzz.bin")
- grep -aqF __TAURI_BUNDLE_TYPE_VAR_DEB "${binaries[0]}" || { echo '::error::deb app lacks its bundle type'; exit 1; }
- grep -aqF __TAURI_BUNDLE_TYPE_VAR_APP "${binaries[1]}" || { echo '::error::AppImage app lacks its bundle type'; exit 1; }
- if [[ "$CANDIDATES" != true ]]; then
- for binary in "${binaries[@]}"; do
- for value in "$BUZZ_UPDATER_PUBLIC_KEY" "$BUZZ_UPDATER_ENDPOINT"; do
- [[ -n "$value" ]] && grep -aqF "$value" "$binary" || { echo "::error::$binary does not embed the updater configuration"; exit 1; }
- done
- done
- fi
- mkdir release-assets
- cp "${debs[0]}" "release-assets/Buzz_${VERSION}_amd64.deb"
- cp "${images[0]}" "release-assets/Buzz_${VERSION}_x86_64.AppImage"
- printf '%s\n' "$GITHUB_SHA" > release-assets/SOURCE_COMMIT
- cd release-assets
- sha256sum ./*.deb ./*.AppImage > SHA256SUMS
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- with:
- name: linux-x64-candidates
- path: release-assets/
- if-no-files-found: error
- retention-days: 7
-
- updater_signatures:
- # Installer jobs never receive the signing key; sign their verified bytes here.
- if: github.repository == 'block/buzz-app' && github.ref == 'refs/heads/main' && !inputs.candidates && !inputs.promote_version
- name: Sign Windows and Linux updater installers
- needs: [windows, linux]
- runs-on: ubuntu-latest
- timeout-minutes: 15
- steps:
- - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- with:
- persist-credentials: false
- - uses: ./.github/actions/setup
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- with:
- name: windows-x64-candidate
- path: build-assets/windows
- - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- with:
- name: linux-x64-candidates
- path: build-assets/linux
- - name: Sign verified installers
- env:
- TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
- TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
- run: |
- set -euo pipefail
- for platform in windows linux; do
- (cd "build-assets/$platform" && sha256sum --check SHA256SUMS)
- done
- mkdir signatures
- for installer in build-assets/windows/*.exe build-assets/linux/*.deb build-assets/linux/*.AppImage; do
- pnpm tauri signer sign "$installer"
- test -s "$installer.sig" || { echo '::error::Updater signing failed'; exit 1; }
- mv "$installer.sig" signatures/
- done
- - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- with:
- name: windows-linux-updater-signatures
- path: signatures/
- if-no-files-found: error
- retention-days: 7
diff --git a/.mcp.json b/.mcp.json
new file mode 100644
index 0000000000..b2362316c7
--- /dev/null
+++ b/.mcp.json
@@ -0,0 +1,8 @@
+{
+ "mcpServers": {
+ "buzz-native": {
+ "command": "bin/node",
+ "args": ["scripts/native-mcp-client.mjs"]
+ }
+ }
+}
diff --git a/AGENTS.md b/AGENTS.md
index ec7f855008..75bc407da2 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -79,8 +79,15 @@ other ignored paths: Keychain credentials and pnpm's package cache are
machine-shared, while dependencies and build output are regenerated. Git hooks
need no per-worktree setup; see [Git hooks](docs/contributing.md#git-hooks).
+Agents run the desktop app with plain `just desktop`, never `just desktop me`:
+`me` signs in with the owner's release key and sets up their Keychain helper.
+
## Engineering standard
+When changing a shipped plugin to default-off, follow the
+[plugin-defaults decision](docs/plugin-defaults.md): apply it to fresh installs
+and preserve existing installs' effective states, including implicit defaults.
+
When changing user-facing Buzz behavior, update [the agent help guide](docs/buzz-help.md)
if the change affects how someone uses or understands the app. Keep it concise,
describe implemented behavior, and distinguish optional or platform-dependent
@@ -142,6 +149,23 @@ recovery, and lifecycle transitions; consider concurrency, persistence, security
and performance where the change affects them. Do not add machinery for
hypothetical requirements.
+Design every relay-facing path for the whole fleet running it at once. A relay
+rollout, restart, or network blip makes every client reconnect, renew, and catch
+up in the same few seconds, so relay reads per client times clients is the real
+load. Before adding or changing a connect, reconnect, renewal, poll, or catch-up
+path:
+
+- State its relay reads per client, and reconnect from a cursor rather than
+ rebuilding state. One replay filter per channel meant ~306 filters per
+ reconnect for a 300-channel client
+ ([block/buzz-app#2308](https://github.com/block/buzz-app/pull/2308)). Skip a
+ repair read only when the replay proves continuity and the client can
+ reconcile every projection it touched; otherwise keep the repair, bounded.
+- Jitter its start, and back off on failure with a cap.
+- Prefer an event-driven refresh with a long backstop over a short poll. A
+ 60-second full channel-list read became a 15-minute one
+ ([block/buzz-app#2215](https://github.com/block/buzz-app/pull/2215)).
+
Validate the affected user contract, not just isolated helpers. Add regression
coverage for changed behavior and relevant failure paths; exercise real integration
boundaries where practical. Follow the contribution workflow's iteration and batch
@@ -210,6 +234,49 @@ Tests must control the ordering they assert, not depend on runner speed.
engines for browser changes. Report exact validation scope and remaining gaps;
a green run does not establish that all flakes are gone.
+## Open-source boundary
+
+This repository is public. Never commit values that only make sense inside
+Block: Block's employee-only community and its hosts (bb-block:
+`block.builderlab.xyz`, `buzz.block.builderlab.xyz`, `*.communities.block.xyz`),
+private GitHub organizations, repositories or org SSH users, internal hosts,
+cloud accounts, IAM roles or buckets, internal ticket keys, go/ links, Slack
+channels, or personal setups. Public Builderlab
+(`app.builderlab.xyz`, `*.communities.builderlab.xyz`) is a supported public
+service and is fine, as is the generic rule that routes any
+`buzz.{name}.builderlab.xyz` community to `{name}.builderlab.xyz` sign-in.
+
+The rule covers functionality, not only identifiers. Every feature here must be
+generic: useful and complete for any community or distributor, with no knowledge
+of one company's internal services, workflows or identity setup. Functionality
+that only serves Block belongs in a plugin kept in a private repository and
+bundled by Block's own builds. A host change made for such a plugin must be a
+general-purpose extension point: a documented public contract that an
+independent plugin author could reasonably use, inert when no plugin uses it,
+and never naming, detecting or special-casing a specific plugin, organization or
+service. Review judges a change's purpose and approach, not just its strings.
+
+A distributor's values come from build-time settings set by that distributor's
+release build: `BUZZ_BUILDERLAB_URL`, `BUZZ_BUILDERLAB_APPS_DOMAIN`,
+`BUZZ_BUILDERLAB_APPS_CONTROL_PLANE`, `BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG`,
+`BUZZ_BUILD_REPOSITORY_ACCESS`, `BUZZ_EXTERNAL_MCP_COMMUNITIES`,
+`BUZZ_DEFAULT_COMMUNITY_URL`, `BUZZ_NSEC_BACKUP_SERVICE_URL` and
+`BUZZ_NSEC_BACKUP_NAMESPACE` (see [configuration](docs/configuration.md)). If
+one is missing, add a generic setting; never hardcode the value or special-case
+a host or organization.
+
+Tests, fixtures, docs and examples use example values (`example.org`,
+`example-org`). Reviewers treat a violation as a blocking
+finding.
+
+The same applies to everything published here: issues, PR titles and
+descriptions, commit messages, comments and reviews. Never include details from
+internal discussions. That means no quotes or paraphrases of private chat
+threads, no links to internal chats, messages or meetings, no attribution of
+opinions to colleagues, and no internal planning or deliberation. Describe the
+problem from its observable behavior, the public source and public issues and
+PRs.
+
## Commit attribution and DCO
Every PR commit needs a `Signed-off-by` (the hosted **DCO Check** fails without
@@ -283,15 +350,6 @@ confirmation, not app runs.
Icons use Tabler only, through `src/shared/design-system/icons`. Add individual exports as needed; icon and weight choices belong to the designer. The local lint and design checks enforce this import boundary.
-## Arjun's desktop acceptance setup
-
-When launching Buzz desktop builds for Arjun's acceptance testing, use his existing
-configured identity through the established local setup and verify that his
-communities load. Do not expose credentials in logs or responses. If the identity
-or community loading cannot be verified, report that limitation before presenting
-the build as ready to test. Follow the worktree bootstrap instructions above;
-do not hardcode identity values into tracked files.
-
## Inspect a live agent session
When asked to inspect or debug an Agent conversation, open its live session viewer
diff --git a/Cargo.lock b/Cargo.lock
index 99c014446b..d8d58a13cf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,12 +13,14 @@ dependencies = [
"buzz-agent-controller",
"buzz-audio-client",
"buzz-credential-store",
+ "buzz-mesh-compute",
"buzz-nsec-backup",
"buzz-pairing",
"buzzodz-plugins",
"bytes",
"chrono",
"dirs 6.0.0",
+ "dotenvy",
"dunce",
"fs2",
"futures-lite",
@@ -26,19 +28,22 @@ dependencies = [
"getrandom 0.3.4",
"gtk",
"hex",
- "hmac",
+ "hmac 0.12.1",
"http-body-util",
"hyper",
"hyper-util",
"image",
"libc",
"nix 0.31.3",
- "nostr 0.44.8",
- "nostr 0.45.5",
+ "nostr",
"objc2 0.6.4",
"objc2-app-kit 0.3.2",
+ "objc2-core-graphics",
+ "objc2-core-image 0.3.2",
+ "objc2-core-video",
"objc2-foundation 0.3.2",
"objc2-user-notifications 0.3.2",
+ "objc2-vision",
"objc2-web-kit 0.3.2",
"percent-encoding",
"portable-pty",
@@ -54,7 +59,7 @@ dependencies = [
"security-framework",
"serde",
"serde_json",
- "sha2",
+ "sha2 0.10.9",
"tauri",
"tauri-build",
"tauri-plugin-deep-link",
@@ -74,7 +79,7 @@ dependencies = [
"user-idle",
"uuid",
"webkit2gtk",
- "webpki-roots",
+ "webpki-roots 1.0.10",
"webview2-com 0.39.1",
"windows-core 0.62.2",
"windows-sys 0.61.2",
@@ -116,10 +121,20 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"
dependencies = [
- "crypto-common",
+ "crypto-common 0.1.7",
"generic-array",
]
+[[package]]
+name = "aead"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1973cfbc1a2daf9cf550e74e1f088c28e7f7d8c1e1418fb6c9dc5184b7e84c99"
+dependencies = [
+ "crypto-common 0.2.2",
+ "inout 0.2.5",
+]
+
[[package]]
name = "aes"
version = "0.8.4"
@@ -127,10 +142,49 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
dependencies = [
"cfg-if",
- "cipher",
+ "cipher 0.4.4",
"cpufeatures 0.2.17",
]
+[[package]]
+name = "aes"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc0fc36d7440d015b45468ba08a21e80e056ebbd014c611c6298bb7503e04bd1"
+dependencies = [
+ "cipher 0.5.2",
+ "cpubits",
+ "cpufeatures 0.3.1",
+]
+
+[[package]]
+name = "aes-gcm"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1"
+dependencies = [
+ "aead 0.5.2",
+ "aes 0.8.4",
+ "cipher 0.4.4",
+ "ctr",
+ "ghash",
+ "subtle",
+]
+
+[[package]]
+name = "ahash"
+version = "0.8.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
+dependencies = [
+ "cfg-if",
+ "getrandom 0.3.4",
+ "once_cell",
+ "serde",
+ "version_check",
+ "zerocopy",
+]
+
[[package]]
name = "aho-corasick"
version = "1.1.5"
@@ -155,6 +209,12 @@ dependencies = [
"alloc-no-stdlib",
]
+[[package]]
+name = "allocator-api2"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+
[[package]]
name = "ambient-authority"
version = "0.0.2"
@@ -170,6 +230,56 @@ dependencies = [
"libc",
]
+[[package]]
+name = "anstream"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
+dependencies = [
+ "anstyle",
+ "anstyle-parse",
+ "anstyle-query",
+ "anstyle-wincon",
+ "colorchoice",
+ "is_terminal_polyfill",
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle"
+version = "1.0.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
+
+[[package]]
+name = "anstyle-parse"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
+dependencies = [
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle-query"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "anstyle-wincon"
+version = "3.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
+dependencies = [
+ "anstyle",
+ "once_cell_polyfill",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "anyhow"
version = "1.0.104"
@@ -177,12 +287,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
[[package]]
-name = "arbitrary"
-version = "1.4.2"
+name = "apple-native-keyring-store"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b350bfd03649e07aa05c0a81b3e15934374e585c98204a57e20b9d49f49bb9a"
+dependencies = [
+ "keyring-core",
+ "log",
+ "security-framework",
+]
+
+[[package]]
+name = "approx"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
dependencies = [
- "derive_arbitrary",
+ "num-traits",
]
[[package]]
@@ -206,6 +327,27 @@ dependencies = [
"x11rb",
]
+[[package]]
+name = "arc-swap"
+version = "1.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "380962b3d93b99642e50b9febf72c071e97e8b32d86eae9cf4ef582bb960ae6e"
+dependencies = [
+ "rustversion",
+]
+
+[[package]]
+name = "argon2"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "134c52ddac6d63c576bef8168db10c83c49c26444ecbc68060fef078925a901c"
+dependencies = [
+ "base64ct",
+ "blake2",
+ "cpufeatures 0.3.1",
+ "password-hash",
+]
+
[[package]]
name = "arrayvec"
version = "0.7.8"
@@ -277,9 +419,9 @@ dependencies = [
[[package]]
name = "async-executor"
-version = "1.14.0"
+version = "1.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37"
dependencies = [
"async-task",
"concurrent-queue",
@@ -382,6 +524,49 @@ dependencies = [
"syn 3.0.5",
]
+[[package]]
+name = "async-utility"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "188f83b9a198af8c336e505611edb00d6d2ac5c694241c5a4f9a12316938cfe9"
+dependencies = [
+ "futures-util",
+ "gloo-timers",
+ "tokio",
+ "wasm-bindgen-futures",
+]
+
+[[package]]
+name = "async-wsocket"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c713e1f14c7b82e32ea159af1c6e2f070cfadbdf23fb2512acce9af0a26f1a2"
+dependencies = [
+ "futures",
+ "futures-util",
+ "js-sys",
+ "tokio",
+ "tokio-happy-eyeballs",
+ "tokio-rustls",
+ "tokio-socks",
+ "tokio-tungstenite 0.28.0",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
+[[package]]
+name = "async_io_stream"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6d7b9decdf35d8908a7e3ef02f64c5e9b1695e230154c0e8de3969142d9b94c"
+dependencies = [
+ "futures",
+ "pharos",
+ "rustc_version",
+]
+
[[package]]
name = "atk"
version = "0.18.2"
@@ -405,12 +590,33 @@ dependencies = [
"system-deps",
]
+[[package]]
+name = "atomic"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89cbf775b137e9b968e67227ef7f775587cde3fd31b0d8599dbd0f598a48340"
+dependencies = [
+ "bytemuck",
+]
+
[[package]]
name = "atomic-waker"
version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+[[package]]
+name = "attohttpc"
+version = "0.30.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16e2cdb6d5ed835199484bb92bb8b3edd526effe995c61732580439c1a67e2e9"
+dependencies = [
+ "base64 0.22.1",
+ "http",
+ "log",
+ "url",
+]
+
[[package]]
name = "autocfg"
version = "1.5.1"
@@ -440,6 +646,85 @@ dependencies = [
"pkg-config",
]
+[[package]]
+name = "axum"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "31b698c5f9a010f6573133b09e0de5408834d0c82f8d7475a89fc1867a71cd90"
+dependencies = [
+ "axum-core",
+ "base64 0.22.1",
+ "bytes",
+ "form_urlencoded",
+ "futures-util",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "itoa",
+ "matchit",
+ "memchr",
+ "mime",
+ "multer",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde_core",
+ "serde_json",
+ "serde_path_to_error",
+ "serde_urlencoded",
+ "sha1",
+ "sync_wrapper",
+ "tokio",
+ "tokio-tungstenite 0.29.0",
+ "tower",
+ "tower-layer",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "axum-core"
+version = "0.5.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "http-body-util",
+ "mime",
+ "pin-project-lite",
+ "sync_wrapper",
+ "tower-layer",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "backon"
+version = "1.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cffb0e931875b666fc4fcb20fee52e9bbd1ef836fd9e9e04ec21555f9f85f7ef"
+dependencies = [
+ "fastrand",
+ "gloo-timers",
+ "tokio",
+]
+
+[[package]]
+name = "base16ct"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6"
+
+[[package]]
+name = "base64"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
+
[[package]]
name = "base64"
version = "0.21.7"
@@ -476,6 +761,26 @@ version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efbd3e1070bbdf4cd88a75264e18e8a26f7cb5c6949eadf0ceb85fb159cf08f8"
+[[package]]
+name = "bindgen"
+version = "0.71.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
+dependencies = [
+ "bitflags 2.13.1",
+ "cexpr",
+ "clang-sys",
+ "itertools 0.13.0",
+ "log",
+ "prettyplease 0.2.37",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "rustc-hash",
+ "shlex 1.3.0",
+ "syn 2.0.119",
+]
+
[[package]]
name = "bip39"
version = "2.2.2"
@@ -487,6 +792,15 @@ dependencies = [
"unicode-normalization",
]
+[[package]]
+name = "bit-set"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
+dependencies = [
+ "bit-vec 0.6.3",
+]
+
[[package]]
name = "bit-set"
version = "0.8.0"
@@ -496,6 +810,12 @@ dependencies = [
"bit-vec 0.8.0",
]
+[[package]]
+name = "bit-vec"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
+
[[package]]
name = "bit-vec"
version = "0.8.0"
@@ -545,7 +865,6 @@ checksum = "bca4c7abb40c8817d77403c880988cfd484f23ab2365726afb2f798363e2c4a2"
dependencies = [
"bitcoin-io",
"hex-conservative 0.2.3",
- "serde",
]
[[package]]
@@ -575,6 +894,28 @@ dependencies = [
"serde_core",
]
+[[package]]
+name = "blake2"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b5d4d889834ee8ecfc0f8426ad30faf7cdcb10f741a8e6d7224d95325479f6f"
+dependencies = [
+ "digest 0.11.3",
+]
+
+[[package]]
+name = "blake3"
+version = "1.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d9e454fc11f76977dc803893aff6304ed33d6a26efae8696573bea74baa27ae"
+dependencies = [
+ "arrayvec",
+ "cc",
+ "cfg-if",
+ "constant_time_eq",
+ "cpufeatures 0.3.1",
+]
+
[[package]]
name = "block-buffer"
version = "0.10.4"
@@ -584,6 +925,15 @@ dependencies = [
"generic-array",
]
+[[package]]
+name = "block-buffer"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
+dependencies = [
+ "hybrid-array",
+]
+
[[package]]
name = "block-padding"
version = "0.3.3"
@@ -593,6 +943,15 @@ dependencies = [
"generic-array",
]
+[[package]]
+name = "block-padding"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "710f1dd022ef4e93f8a438b4ba958de7f64308434fa6a87104481645cc30068b"
+dependencies = [
+ "hybrid-array",
+]
+
[[package]]
name = "block2"
version = "0.5.1"
@@ -624,6 +983,29 @@ dependencies = [
"piper",
]
+[[package]]
+name = "bon"
+version = "3.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a05442cd7005532d0cfedec676b5b9333d2b4c7c3afabe2b1a9ce2742fbe2ee6"
+dependencies = [
+ "bon-macros",
+]
+
+[[package]]
+name = "bon-macros"
+version = "3.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93833e97ac7c46ba97045afcf247238c27057538fcf2f06344662ddd5f567be6"
+dependencies = [
+ "darling 0.24.1",
+ "ident_case",
+ "prettyplease 0.3.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
+]
+
[[package]]
name = "brotli"
version = "9.0.0"
@@ -654,6 +1036,17 @@ dependencies = [
"tinyvec",
]
+[[package]]
+name = "bstr"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f"
+dependencies = [
+ "memchr",
+ "regex-automata",
+ "serde_core",
+]
+
[[package]]
name = "bumpalo"
version = "3.20.3"
@@ -664,11 +1057,16 @@ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
name = "buzz-agent-command"
version = "0.1.0"
dependencies = [
- "reqwest",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "libc",
"serde",
"serde_json",
+ "sha2 0.10.9",
"tempfile",
"tokio",
+ "url",
]
[[package]]
@@ -679,16 +1077,16 @@ dependencies = [
"bech32 0.11.1",
"buzz-credential-store",
"getrandom 0.3.4",
- "hmac",
+ "hmac 0.12.1",
"libc",
"nix 0.31.3",
- "nostr 0.45.5",
+ "nostr",
"regex",
"secp256k1 0.31.1",
"security-framework",
"serde",
"serde_json",
- "sha2",
+ "sha2 0.10.9",
"tempfile",
"url",
"zeroize",
@@ -697,7 +1095,7 @@ dependencies = [
[[package]]
name = "buzz-audio-client"
version = "0.1.0"
-source = "git+https://github.com/block/buzz.git?rev=7e6461242aa7d98f132919dd672f7cc5f4abbba6#7e6461242aa7d98f132919dd672f7cc5f4abbba6"
+source = "git+https://github.com/block/buzz.git?rev=630922a9e1f891380a61f5b7d726d05ca948cc64#630922a9e1f891380a61f5b7d726d05ca948cc64"
dependencies = [
"futures-util",
"neteq",
@@ -712,24 +1110,63 @@ name = "buzz-credential-store"
version = "0.1.0"
dependencies = [
"dirs 6.0.0",
- "keyring",
+ "keyring 3.6.3",
"nix 0.31.3",
"security-framework",
- "sha2",
+ "sha2 0.10.9",
"tempfile",
"zeroize",
]
+[[package]]
+name = "buzz-dev-credential-helper"
+version = "0.1.0"
+dependencies = [
+ "core-foundation 0.10.1",
+ "libc",
+ "nix 0.31.3",
+ "security-framework",
+ "zeroize",
+]
+
[[package]]
name = "buzz-ifc"
version = "0.1.0"
dependencies = [
"ifc-core",
- "nostr 0.45.5",
+ "nostr",
"thiserror 2.0.20",
"uuid",
]
+[[package]]
+name = "buzz-mesh-compute"
+version = "0.1.0"
+dependencies = [
+ "anyhow",
+ "axum",
+ "base64 0.22.1",
+ "ed25519-dalek 2.2.0",
+ "futures-util",
+ "hex",
+ "iroh",
+ "mesh-llm-embedded-runtime",
+ "mesh-llm-events",
+ "mesh-llm-host-runtime",
+ "mesh-llm-system",
+ "nostr",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "sha2 0.10.9",
+ "tauri",
+ "tempfile",
+ "tokio",
+ "tokio-util",
+ "url",
+ "uuid",
+]
+
[[package]]
name = "buzz-nsec-backup"
version = "0.1.0"
@@ -749,11 +1186,14 @@ name = "buzz-pairing"
version = "0.0.0"
dependencies = [
"hex",
- "nostr 0.44.8",
+ "hkdf 0.12.4",
+ "nostr",
"percent-encoding",
"rand 0.10.2",
+ "secp256k1 0.30.0",
"serde",
"serde_json",
+ "sha2 0.10.9",
"subtle",
"thiserror 2.0.20",
"url",
@@ -774,14 +1214,21 @@ dependencies = [
"flate2",
"image",
"libc",
- "nostr 0.45.5",
+ "nostr",
"serde",
"serde_json",
- "sha2",
+ "sha2 0.10.9",
+ "tauri",
"tempfile",
"url",
]
+[[package]]
+name = "by_address"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06"
+
[[package]]
name = "bytemuck"
version = "1.25.2"
@@ -907,13 +1354,31 @@ dependencies = [
"toml 1.1.5+spec-1.1.0",
]
+[[package]]
+name = "castaway"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a"
+dependencies = [
+ "rustversion",
+]
+
[[package]]
name = "cbc"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6"
dependencies = [
- "cipher",
+ "cipher 0.4.4",
+]
+
+[[package]]
+name = "cbc"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce2dc9ee5f88d11e0beb842c88b33c8a5cf0d1329c4b19494af42b07dbfe8896"
+dependencies = [
+ "cipher 0.5.2",
]
[[package]]
@@ -925,7 +1390,7 @@ dependencies = [
"find-msvc-tools",
"jobserver",
"libc",
- "shlex",
+ "shlex 2.0.1",
]
[[package]]
@@ -934,6 +1399,15 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
+[[package]]
+name = "cexpr"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
+dependencies = [
+ "nom 7.1.3",
+]
+
[[package]]
name = "cfb"
version = "0.14.0"
@@ -980,7 +1454,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818"
dependencies = [
"cfg-if",
- "cipher",
+ "cipher 0.4.4",
"cpufeatures 0.2.17",
]
@@ -991,6 +1465,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
dependencies = [
"cfg-if",
+ "cipher 0.5.2",
"cpufeatures 0.3.1",
"rand_core 0.10.1",
]
@@ -1001,13 +1476,25 @@ version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35"
dependencies = [
- "aead",
+ "aead 0.5.2",
"chacha20 0.9.1",
- "cipher",
- "poly1305",
+ "cipher 0.4.4",
+ "poly1305 0.8.0",
"zeroize",
]
+[[package]]
+name = "chacha20poly1305"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b89e1c441e926b9c82a8d023f6e1b7ae0adcfaa7d621814e4d60789bac751cb"
+dependencies = [
+ "aead 0.6.1",
+ "chacha20 0.10.2",
+ "cipher 0.5.2",
+ "poly1305 0.9.1",
+]
+
[[package]]
name = "chrono"
version = "0.4.45"
@@ -1015,8 +1502,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
dependencies = [
"iana-time-zone",
+ "js-sys",
"num-traits",
"serde",
+ "wasm-bindgen",
"windows-link 0.2.1",
]
@@ -1026,11 +1515,73 @@ version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
dependencies = [
- "crypto-common",
- "inout",
+ "crypto-common 0.1.7",
+ "inout 0.1.4",
"zeroize",
]
+[[package]]
+name = "cipher"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c"
+dependencies = [
+ "block-buffer 0.12.1",
+ "crypto-common 0.2.2",
+ "inout 0.2.5",
+]
+
+[[package]]
+name = "clang-sys"
+version = "1.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
+dependencies = [
+ "glob",
+ "libc",
+ "libloading 0.8.9",
+]
+
+[[package]]
+name = "clap"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
+dependencies = [
+ "clap_builder",
+ "clap_derive",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
+]
+
+[[package]]
+name = "clap_derive"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
+]
+
+[[package]]
+name = "clap_lex"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
+
[[package]]
name = "clipboard-win"
version = "5.4.1"
@@ -1049,12 +1600,42 @@ dependencies = [
"cc",
]
+[[package]]
+name = "cmov"
+version = "0.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
+
+[[package]]
+name = "cobs"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1"
+dependencies = [
+ "thiserror 2.0.20",
+]
+
[[package]]
name = "color_quant"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
+[[package]]
+name = "colorchoice"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
+
+[[package]]
+name = "colored"
+version = "3.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "combine"
version = "4.6.8"
@@ -1065,6 +1646,21 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "compact_str"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9dfdd1c2274d9aa354115b09dc9a901d6c5576818cdf70d14cae2bdb47df00ab"
+dependencies = [
+ "castaway",
+ "cfg-if",
+ "itoa",
+ "rustversion",
+ "ryu",
+ "serde",
+ "static_assertions",
+]
+
[[package]]
name = "concurrent-queue"
version = "2.5.0"
@@ -1074,6 +1670,30 @@ dependencies = [
"crossbeam-utils",
]
+[[package]]
+name = "const-hex"
+version = "1.19.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e59eef12462b0f9b0a3620219be5d639afd79fe39dff0a42c3997061f9298b4"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "proptest",
+ "serde_core",
+]
+
+[[package]]
+name = "const-oid"
+version = "0.9.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
+
+[[package]]
+name = "const-oid"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
+
[[package]]
name = "const-random"
version = "0.1.18"
@@ -1094,6 +1714,36 @@ dependencies = [
"tiny-keccak",
]
+[[package]]
+name = "const-str"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18f12cc9948ed9604230cdddc7c86e270f9401ccbe3c2e98a4378c5e7632212f"
+
+[[package]]
+name = "const_panic"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9603f79528ece8163c496f8932121cb36cfe46259e9c907bb3d8205139d7caa3"
+dependencies = [
+ "typewit",
+]
+
+[[package]]
+name = "constant_time_eq"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b"
+
+[[package]]
+name = "convert_case"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9"
+dependencies = [
+ "unicode-segmentation",
+]
+
[[package]]
name = "cookie"
version = "0.18.2"
@@ -1104,6 +1754,16 @@ dependencies = [
"version_check",
]
+[[package]]
+name = "cordyceps"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b9ab7e0ca1d179628fa0172b2b97203c7fa0cd81be2448bd446fb9559ca9261"
+dependencies = [
+ "loom",
+ "tracing",
+]
+
[[package]]
name = "core-foundation"
version = "0.9.4"
@@ -1154,6 +1814,27 @@ dependencies = [
"libc",
]
+[[package]]
+name = "core_detect"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
+
+[[package]]
+name = "countio"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9702aee5d1d744c01d82f6915644f950f898e014903385464c773b96fefdecb"
+dependencies = [
+ "futures-io",
+]
+
+[[package]]
+name = "cpubits"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae"
+
[[package]]
name = "cpufeatures"
version = "0.2.17"
@@ -1172,15 +1853,31 @@ dependencies = [
"libc",
]
+[[package]]
+name = "crc-fast"
+version = "1.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e75b2483e97a5a7da73ac68a05b629f9c53cff58d8ed1c77866079e18b00dba5"
+dependencies = [
+ "digest 0.10.7",
+ "spin 0.10.1",
+]
+
[[package]]
name = "crc32fast"
-version = "1.5.1"
+version = "1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550"
+checksum = "5f97d3416d5337d15c4b0d78c8c91df922ca143f57ec20e2d1c188333047ef04"
dependencies = [
"cfg-if",
]
+[[package]]
+name = "critical-section"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"
+
[[package]]
name = "crossbeam-channel"
version = "0.5.17"
@@ -1191,38 +1888,143 @@ dependencies = [
]
[[package]]
-name = "crossbeam-utils"
-version = "0.8.23"
+name = "crossbeam-deque"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
+dependencies = [
+ "crossbeam-epoch",
+ "crossbeam-utils",
+]
[[package]]
-name = "crunchy"
-version = "0.2.4"
+name = "crossbeam-epoch"
+version = "0.9.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
+dependencies = [
+ "crossbeam-utils",
+]
[[package]]
-name = "crypto-common"
-version = "0.1.7"
+name = "crossbeam-queue"
+version = "0.3.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+checksum = "03e8bd762f7479489c70ed6c768ddca99d7296857de437a68dcb2a94365b3fae"
dependencies = [
- "generic-array",
- "rand_core 0.6.4",
- "typenum",
+ "crossbeam-utils",
]
[[package]]
-name = "cssparser"
-version = "0.37.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
+name = "crossbeam-utils"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+
+[[package]]
+name = "crossterm"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"
+dependencies = [
+ "bitflags 2.13.1",
+ "crossterm_winapi",
+ "derive_more",
+ "document-features",
+ "mio",
+ "parking_lot",
+ "rustix",
+ "signal-hook",
+ "signal-hook-mio",
+ "winapi",
+]
+
+[[package]]
+name = "crossterm_winapi"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "crunchy"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+dependencies = [
+ "generic-array",
+ "rand_core 0.6.4",
+ "typenum",
+]
+
+[[package]]
+name = "crypto-common"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
+dependencies = [
+ "getrandom 0.4.3",
+ "hybrid-array",
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "crypto_box"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16182b4f39a82ec8a6851155cc4c0cda3065bb1db33651726a29e1951de0f009"
+dependencies = [
+ "aead 0.5.2",
+ "crypto_secretbox",
+ "curve25519-dalek 4.1.3",
+ "salsa20",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "crypto_secretbox"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9d6cf87adf719ddf43a805e92c6870a531aedda35ff640442cbaf8674e141e1"
+dependencies = [
+ "aead 0.5.2",
+ "cipher 0.4.4",
+ "generic-array",
+ "poly1305 0.8.0",
+ "salsa20",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "csscolorparser"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb2a7d3066da2de787b7f032c736763eb7ae5d355f81a68bab2675a96008b0bf"
+dependencies = [
+ "lab",
+ "phf 0.11.3",
+]
+
+[[package]]
+name = "cssparser"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"
dependencies = [
"cssparser-macros",
"dtoa-short",
"itoa",
- "phf",
+ "phf 0.13.1",
"smallvec",
]
@@ -1251,23 +2053,107 @@ name = "ctor"
version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
+dependencies = [
+ "link-section",
+ "linktime-proc-macro",
+]
+
+[[package]]
+name = "ctr"
+version = "0.9.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835"
+dependencies = [
+ "cipher 0.4.4",
+]
+
+[[package]]
+name = "ctutils"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f"
+dependencies = [
+ "cmov",
+]
+
+[[package]]
+name = "curve25519-dalek"
+version = "4.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "curve25519-dalek-derive",
+ "digest 0.10.7",
+ "fiat-crypto 0.2.9",
+ "rustc_version",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "curve25519-dalek"
+version = "5.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.3.1",
+ "curve25519-dalek-derive",
+ "digest 0.11.3",
+ "fiat-crypto 0.3.0",
+ "rand_core 0.10.1",
+ "rustc_version",
+ "serde",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "curve25519-dalek-derive"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "daachorse"
+version = "3.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5614204febbc33cc07a2806aa6440b904ac012b68eecc37f4493ea4a76455a3d"
+
+[[package]]
+name = "darling"
+version = "0.20.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
+dependencies = [
+ "darling_core 0.20.11",
+ "darling_macro 0.20.11",
+]
[[package]]
name = "darling"
-version = "0.23.0"
+version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
+checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec"
dependencies = [
- "darling_core",
- "darling_macro",
+ "darling_core 0.24.1",
+ "darling_macro 0.24.1",
]
[[package]]
name = "darling_core"
-version = "0.23.0"
+version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
+checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
dependencies = [
+ "fnv",
"ident_case",
"proc-macro2",
"quote",
@@ -1275,23 +2161,76 @@ dependencies = [
"syn 2.0.119",
]
+[[package]]
+name = "darling_core"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 3.0.5",
+]
+
[[package]]
name = "darling_macro"
-version = "0.23.0"
+version = "0.20.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
+checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
dependencies = [
- "darling_core",
+ "darling_core 0.20.11",
"quote",
"syn 2.0.119",
]
+[[package]]
+name = "darling_macro"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
+dependencies = [
+ "darling_core 0.24.1",
+ "quote",
+ "syn 3.0.5",
+]
+
+[[package]]
+name = "dary_heap"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b1e3a325bc115f096c8b77bbf027a7c2592230e70be2d985be950d3d5e60ebe"
+dependencies = [
+ "serde",
+]
+
[[package]]
name = "data-encoding"
version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
+[[package]]
+name = "data-encoding-macro"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6a127ecbb3c4632e1525380e04c0c3fcf8dcb44d32a79ea290d8a36906edcd8"
+dependencies = [
+ "data-encoding",
+ "data-encoding-macro-internal",
+]
+
+[[package]]
+name = "data-encoding-macro-internal"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c54e03a951783e8b327515db3f2a2fd0e3bed362a96b066f341ce66ed49b4ead"
+dependencies = [
+ "data-encoding",
+ "syn 3.0.5",
+]
+
[[package]]
name = "dbus"
version = "0.9.12"
@@ -1309,16 +2248,16 @@ version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "708b509edf7889e53d7efb0ffadd994cc6c2345ccb62f55cfd6b0682165e4fa6"
dependencies = [
- "aes",
- "block-padding",
- "cbc",
+ "aes 0.8.4",
+ "block-padding 0.3.3",
+ "cbc 0.1.2",
"dbus",
"fastrand",
- "hkdf",
+ "hkdf 0.12.4",
"num",
"once_cell",
"openssl",
- "sha2",
+ "sha2 0.10.9",
"zeroize",
]
@@ -1362,6 +2301,33 @@ dependencies = [
"thiserror 2.0.20",
]
+[[package]]
+name = "deltae"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5729f5117e208430e437df2f4843f5e5952997175992d1414f94c57d61e270b4"
+
+[[package]]
+name = "der"
+version = "0.7.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
+dependencies = [
+ "const-oid 0.9.6",
+ "zeroize",
+]
+
+[[package]]
+name = "der"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004"
+dependencies = [
+ "const-oid 0.10.2",
+ "pem-rfc7468",
+ "zeroize",
+]
+
[[package]]
name = "der-parser"
version = "10.0.0"
@@ -1386,16 +2352,36 @@ dependencies = [
]
[[package]]
-name = "derive_arbitrary"
-version = "1.4.2"
+name = "derive_builder"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
+dependencies = [
+ "derive_builder_macro",
+]
+
+[[package]]
+name = "derive_builder_core"
+version = "0.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
+checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
dependencies = [
+ "darling 0.20.11",
"proc-macro2",
"quote",
"syn 2.0.119",
]
+[[package]]
+name = "derive_builder_macro"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
+dependencies = [
+ "derive_builder_core",
+ "syn 2.0.119",
+]
+
[[package]]
name = "derive_more"
version = "2.1.1"
@@ -1411,23 +2397,43 @@ version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
dependencies = [
+ "convert_case",
"proc-macro2",
"quote",
"rustc_version",
"syn 2.0.119",
+ "unicode-xid",
]
+[[package]]
+name = "diatomic-waker"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab03c107fafeb3ee9f5925686dbb7a73bc76e3932abb0d2b365cb64b169cf04c"
+
[[package]]
name = "digest"
version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
- "block-buffer",
- "crypto-common",
+ "block-buffer 0.10.4",
+ "crypto-common 0.1.7",
"subtle",
]
+[[package]]
+name = "digest"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
+dependencies = [
+ "block-buffer 0.12.1",
+ "const-oid 0.10.2",
+ "crypto-common 0.2.2",
+ "ctutils",
+]
+
[[package]]
name = "dirs"
version = "6.0.0"
@@ -1513,13 +2519,22 @@ dependencies = [
"const-random",
]
+[[package]]
+name = "document-features"
+version = "0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
+dependencies = [
+ "litrs",
+]
+
[[package]]
name = "dom_query"
version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"
dependencies = [
- "bit-set",
+ "bit-set 0.8.0",
"cssparser",
"foldhash 0.2.0",
"html5ever",
@@ -1576,6 +2591,63 @@ version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+[[package]]
+name = "ed25519"
+version = "2.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
+dependencies = [
+ "pkcs8 0.10.2",
+ "signature 2.2.0",
+]
+
+[[package]]
+name = "ed25519"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a"
+dependencies = [
+ "pkcs8 0.11.0",
+ "serdect",
+ "signature 3.0.0",
+]
+
+[[package]]
+name = "ed25519-dalek"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
+dependencies = [
+ "curve25519-dalek 4.1.3",
+ "ed25519 2.2.3",
+ "serde",
+ "sha2 0.10.9",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "ed25519-dalek"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de"
+dependencies = [
+ "curve25519-dalek 5.0.0",
+ "ed25519 3.0.0",
+ "rand_core 0.10.1",
+ "serde",
+ "sha2 0.11.1",
+ "signature 3.0.0",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "either"
+version = "1.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
+
[[package]]
name = "embed-resource"
version = "3.0.11"
@@ -1597,11 +2669,54 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
[[package]]
-name = "endi"
-version = "1.1.1"
+name = "embedded-io"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced"
+
+[[package]]
+name = "embedded-io"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"
+
+[[package]]
+name = "encoding_rs"
+version = "0.8.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "89253175e704ab869b04f9db224d38630e0211a53841a79181deae0889e169f5"
+dependencies = [
+ "cfg-if",
+ "core_detect",
+ "multiversion_no_op",
+ "rustversion",
+ "scopeguard",
+ "simdutf8",
+]
+
+[[package]]
+name = "endi"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+[[package]]
+name = "endian-type"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "869b0adbda23651a9c5c0c3d270aac9fcb52e8622a8f2b17e57802d7791962f2"
+
+[[package]]
+name = "enum-assoc"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0590c4a94da3372e83493b956755a6e2266830b6e4e3b101afe66e3f39477b91"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
+]
+
[[package]]
name = "enumflags2"
version = "0.7.12"
@@ -1656,6 +2771,21 @@ version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7"
+[[package]]
+name = "esaxx-rs"
+version = "0.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d817e038c30374a4bcb22f94d0a8a0e216958d4c3dcde369b1439fec4bdda6e6"
+
+[[package]]
+name = "euclid"
+version = "0.22.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06"
+dependencies = [
+ "num-traits",
+]
+
[[package]]
name = "event-listener"
version = "5.4.2"
@@ -1688,6 +2818,27 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"
+[[package]]
+name = "fancy-regex"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2"
+dependencies = [
+ "bit-set 0.5.3",
+ "regex",
+]
+
+[[package]]
+name = "fancy-regex"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72cf461f865c862bb7dc573f643dd6a2b6842f7c30b07882b56bd148cc2761b8"
+dependencies = [
+ "bit-set 0.8.0",
+ "regex-automata",
+ "regex-syntax",
+]
+
[[package]]
name = "faster-hex"
version = "0.10.1"
@@ -1721,6 +2872,18 @@ dependencies = [
"simd-adler32",
]
+[[package]]
+name = "fiat-crypto"
+version = "0.2.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
+
+[[package]]
+name = "fiat-crypto"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24"
+
[[package]]
name = "field-offset"
version = "0.3.6"
@@ -1758,6 +2921,18 @@ version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
+[[package]]
+name = "finl_unicode"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80bb028c8b4148c9ee0cca68fcd9add6044e81d3619f48577ddf13a263d047a2"
+
+[[package]]
+name = "fixedbitset"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
+
[[package]]
name = "fixedbitset"
version = "0.5.7"
@@ -1775,6 +2950,17 @@ dependencies = [
"zlib-rs",
]
+[[package]]
+name = "flume"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e139bc46ca777eb5efaf62df0ab8cc5fd400866427e56c68b22e414e53bd3be"
+dependencies = [
+ "futures-core",
+ "futures-sink",
+ "spin 0.9.9",
+]
+
[[package]]
name = "fnv"
version = "1.0.7"
@@ -1871,6 +3057,34 @@ version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
+[[package]]
+name = "futures"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-io",
+ "futures-sink",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-buffered"
+version = "0.2.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4421cb78ee172b6b06080093479d3c50f058e7c81b7d577bbb8d118d551d4cd5"
+dependencies = [
+ "cordyceps",
+ "diatomic-waker",
+ "futures-core",
+ "pin-project-lite",
+ "spin 0.10.1",
+]
+
[[package]]
name = "futures-channel"
version = "0.3.34"
@@ -1878,6 +3092,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
dependencies = [
"futures-core",
+ "futures-sink",
]
[[package]]
@@ -1945,6 +3160,7 @@ version = "0.3.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
dependencies = [
+ "futures-channel",
"futures-core",
"futures-io",
"futures-macro",
@@ -2054,6 +3270,27 @@ dependencies = [
"x11",
]
+[[package]]
+name = "gearhash"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "616e8f476a586f1b078d9eece21f7a071f27997e709e2b471f5697deea53bda9"
+
+[[package]]
+name = "generator"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1be81b31c9ce4caf7f3178eeb90662bb1864d3ad363ec6bdada3201adff19c37"
+dependencies = [
+ "cc",
+ "cfg-if",
+ "libc",
+ "log",
+ "rustversion",
+ "windows-link 0.2.1",
+ "windows-result 0.4.1",
+]
+
[[package]]
name = "generic-array"
version = "0.14.7"
@@ -2062,6 +3299,7 @@ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
dependencies = [
"typenum",
"version_check",
+ "zeroize",
]
[[package]]
@@ -2083,7 +3321,7 @@ dependencies = [
"cfg-if",
"js-sys",
"libc",
- "wasi",
+ "wasi 0.11.1+wasi-snapshot-preview1",
"wasm-bindgen",
]
@@ -2113,6 +3351,16 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "ghash"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1"
+dependencies = [
+ "opaque-debug",
+ "polyval",
+]
+
[[package]]
name = "gif"
version = "0.14.2"
@@ -2155,6 +3403,26 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "git-version"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ad568aa3db0fcbc81f2f116137f263d7304f512a1209b35b85150d3ef88ad19"
+dependencies = [
+ "git-version-macro",
+]
+
+[[package]]
+name = "git-version-macro"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53010ccb100b96a67bc32c0175f0ed1426b31b655d562898e57325f81c023ac0"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
[[package]]
name = "glib"
version = "0.18.5"
@@ -2208,6 +3476,31 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+[[package]]
+name = "globset"
+version = "0.4.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f98b0d85522dc0a824cfebbc9594ff4a9b289c568bea0370319dfbdf20ccdd2d"
+dependencies = [
+ "aho-corasick",
+ "bstr",
+ "log",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "gloo-timers"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "js-sys",
+ "wasm-bindgen",
+]
+
[[package]]
name = "gobject-sys"
version = "0.18.0"
@@ -2271,6 +3564,25 @@ dependencies = [
"syn 2.0.119",
]
+[[package]]
+name = "h2"
+version = "0.4.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "fnv",
+ "futures-core",
+ "futures-sink",
+ "http",
+ "indexmap 2.14.2",
+ "slab",
+ "tokio",
+ "tokio-util",
+ "tracing",
+]
+
[[package]]
name = "half"
version = "2.7.1"
@@ -2318,7 +3630,11 @@ version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
dependencies = [
+ "allocator-api2",
+ "equivalent",
"foldhash 0.2.0",
+ "serde",
+ "serde_core",
]
[[package]]
@@ -2326,16 +3642,27 @@ name = "hashbrown"
version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash 0.2.0",
+]
[[package]]
name = "hashlink"
-version = "0.11.1"
+version = "0.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "824e001ac4f3012dd16a264bec811403a67ca9deb6c102fc5049b32c4574b35f"
+checksum = "a596f1b20ed2cc5ecac41a164aaebc7258057060f06c0cf7a2ba3991ee7990fb"
dependencies = [
- "hashbrown 0.16.1",
+ "hashbrown 0.17.1",
]
+[[package]]
+name = "heapify"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0049b265b7f201ca9ab25475b22b47fe444060126a51abe00f77d986fc5cc52e"
+
[[package]]
name = "heapless"
version = "0.8.0"
@@ -2388,13 +3715,47 @@ dependencies = [
"arrayvec",
]
+[[package]]
+name = "hf-xet"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f4f75f8cb6f30052a6f755281641fdd4d0f02b2cba8865331793728516bfffc"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "bytes",
+ "http",
+ "more-asserts",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-util",
+ "tokio_with_wasm",
+ "tracing",
+ "uuid",
+ "xet-client",
+ "xet-core-structures",
+ "xet-data",
+ "xet-runtime",
+]
+
[[package]]
name = "hkdf"
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
dependencies = [
- "hmac",
+ "hmac 0.12.1",
+]
+
+[[package]]
+name = "hkdf"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4aaa26c720c68b866f2c96ef5c1264b3e6f473fe5d4ce61cd44bbe913e553018"
+dependencies = [
+ "hmac 0.13.0",
]
[[package]]
@@ -2403,7 +3764,25 @@ version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
dependencies = [
- "digest",
+ "digest 0.10.7",
+]
+
+[[package]]
+name = "hmac"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
+dependencies = [
+ "digest 0.11.3",
+]
+
+[[package]]
+name = "home"
+version = "0.5.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
+dependencies = [
+ "windows-sys 0.61.2",
]
[[package]]
@@ -2461,6 +3840,21 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
+[[package]]
+name = "humantime"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15"
+
+[[package]]
+name = "hybrid-array"
+version = "0.4.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
+dependencies = [
+ "typenum",
+]
+
[[package]]
name = "hyper"
version = "1.11.1"
@@ -2471,6 +3865,7 @@ dependencies = [
"bytes",
"futures-channel",
"futures-core",
+ "h2",
"http",
"http-body",
"httparse",
@@ -2497,6 +3892,19 @@ dependencies = [
"tower-service",
]
+[[package]]
+name = "hyper-timeout"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0"
+dependencies = [
+ "hyper",
+ "hyper-util",
+ "pin-project-lite",
+ "tokio",
+ "tower-service",
+]
+
[[package]]
name = "hyper-util"
version = "0.1.20"
@@ -2515,7 +3923,7 @@ dependencies = [
"percent-encoding",
"pin-project-lite",
"socket2",
- "system-configuration",
+ "system-configuration 0.7.0",
"tokio",
"tower-service",
"tracing",
@@ -2645,6 +4053,12 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+[[package]]
+name = "identity-hash"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfdd7caa900436d8f13b2346fe10257e0c05c1f1f9e351f4f5d57c03bd5f45da"
+
[[package]]
name = "idna"
version = "1.1.0"
@@ -2666,6 +4080,16 @@ dependencies = [
"icu_properties",
]
+[[package]]
+name = "if-addrs"
+version = "0.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0a05c691e1fae256cf7013d99dad472dc52d5543322761f83ec8d47eab40d2b"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "ifc-core"
version = "0.1.0"
@@ -2674,8 +4098,28 @@ dependencies = [
]
[[package]]
-name = "image"
-version = "0.25.10"
+name = "igd-next"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "de7238d487a9aff61f81b5ab41c0a841532a115a398b5fa92a2fadd0885e2581"
+dependencies = [
+ "attohttpc",
+ "bytes",
+ "futures",
+ "http",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "log",
+ "rand 0.10.2",
+ "tokio",
+ "url",
+ "xmltree",
+]
+
+[[package]]
+name = "image"
+version = "0.25.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"
dependencies = [
@@ -2725,6 +4169,15 @@ dependencies = [
"serde_core",
]
+[[package]]
+name = "indoc"
+version = "2.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
+dependencies = [
+ "rustversion",
+]
+
[[package]]
name = "infer"
version = "0.22.0"
@@ -2740,20 +4193,31 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
dependencies = [
- "block-padding",
+ "block-padding 0.3.3",
"generic-array",
]
[[package]]
-name = "instant"
-version = "0.1.13"
+name = "inout"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"
+checksum = "3b5cf4372d022092674a83b8febf5865f7a573cc0c5baec5e49c879b6a20978f"
dependencies = [
- "cfg-if",
- "js-sys",
- "wasm-bindgen",
- "web-sys",
+ "block-padding 0.4.2",
+ "hybrid-array",
+]
+
+[[package]]
+name = "instability"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c3b5acc1e2fd9375041a388da33d1eb8aed5f7a8c0dd3543e3ea2805adfbe20"
+dependencies = [
+ "darling 0.24.1",
+ "indoc",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
]
[[package]]
@@ -2778,12 +4242,189 @@ version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f0fb0570afe1fed943c5c3d4102d5358592d8625fda6a0007fdbe65a92fba96"
+[[package]]
+name = "ipconfig"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222"
+dependencies = [
+ "socket2",
+ "widestring",
+ "windows-registry",
+ "windows-result 0.4.1",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "ipnet"
version = "2.12.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
+[[package]]
+name = "iroh"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3689cab508af9bcef7816c1201b403595ec6aa20e7d15e1f9683bb4be4a5b17"
+dependencies = [
+ "backon",
+ "blake3",
+ "bytes",
+ "cfg_aliases 0.2.2",
+ "ctutils",
+ "data-encoding",
+ "derive_more",
+ "ed25519-dalek 3.0.0",
+ "futures-util",
+ "getrandom 0.4.3",
+ "http",
+ "ipnet",
+ "iroh-base",
+ "iroh-dns",
+ "iroh-metrics",
+ "iroh-relay",
+ "n0-error",
+ "n0-future",
+ "n0-watcher",
+ "netwatch",
+ "noq",
+ "noq-proto",
+ "noq-udp",
+ "papaya",
+ "pin-project",
+ "portable-atomic",
+ "portmapper",
+ "rand 0.10.2",
+ "reqwest",
+ "rustc-hash",
+ "rustls",
+ "rustls-pki-types",
+ "serde",
+ "smallvec",
+ "strum",
+ "time",
+ "tokio",
+ "tokio-stream",
+ "tokio-util",
+ "tracing",
+ "url",
+ "wasm-bindgen-futures",
+]
+
+[[package]]
+name = "iroh-base"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43b72366b16001af3a51574233df88ca6d62da0215807549a769e7de887da803"
+dependencies = [
+ "curve25519-dalek 5.0.0",
+ "data-encoding",
+ "data-encoding-macro",
+ "derive_more",
+ "ed25519-dalek 3.0.0",
+ "getrandom 0.4.3",
+ "n0-error",
+ "rand 0.10.2",
+ "serde",
+ "url",
+ "zeroize",
+]
+
+[[package]]
+name = "iroh-dns"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7481d0792dde1035a2b06ec06ed3cf6d01fcb1a494e6931b489e32073382048d"
+dependencies = [
+ "arc-swap",
+ "cfg_aliases 0.2.2",
+ "derive_more",
+ "iroh-base",
+ "n0-dns-resolver",
+ "n0-error",
+ "n0-future",
+ "portable-atomic",
+ "rand 0.10.2",
+ "rustls",
+ "simple-dns",
+ "strum",
+ "tokio",
+ "tracing",
+ "url",
+]
+
+[[package]]
+name = "iroh-metrics"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ede55536349842337f7cdc63012ec33dc637945f3259c98a0763aac364cdf09"
+dependencies = [
+ "iroh-metrics-derive",
+ "itoa",
+ "n0-error",
+ "portable-atomic",
+ "ryu",
+ "serde",
+ "tracing",
+]
+
+[[package]]
+name = "iroh-metrics-derive"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ae5f0c4405d1fbc9fb16ff422ca40620e93dc36c30ecaba0c2aee3992b7bd48"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "iroh-relay"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e5589e7c1475700686603a970275687f760df853bc6525c7eb1347aa31d7230"
+dependencies = [
+ "blake3",
+ "bytes",
+ "cfg_aliases 0.2.2",
+ "data-encoding",
+ "derive_more",
+ "getrandom 0.4.3",
+ "http",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "iroh-base",
+ "iroh-dns",
+ "iroh-metrics",
+ "lru",
+ "n0-error",
+ "n0-future",
+ "noq",
+ "noq-proto",
+ "num_enum",
+ "percent-encoding",
+ "pin-project",
+ "postcard",
+ "rand 0.10.2",
+ "reqwest",
+ "rustls",
+ "rustls-pki-types",
+ "serde",
+ "serde_bytes",
+ "strum",
+ "tokio",
+ "tokio-rustls",
+ "tokio-util",
+ "tokio-websockets",
+ "tracing",
+ "url",
+ "webpki-roots 1.0.10",
+ "ws_stream_wasm",
+]
+
[[package]]
name = "is-docker"
version = "0.2.0"
@@ -2803,6 +4444,30 @@ dependencies = [
"once_cell",
]
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
+
+[[package]]
+name = "itertools"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itertools"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
+dependencies = [
+ "either",
+]
+
[[package]]
name = "itoa"
version = "1.0.18"
@@ -3002,6 +4667,17 @@ dependencies = [
"serde_json",
]
+[[package]]
+name = "kasuari"
+version = "0.4.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72f14c90e40a6133f4805b83542a7ed7364f56070b447f56e7f4e90297122209"
+dependencies = [
+ "hashbrown 0.17.1",
+ "portable-atomic",
+ "thiserror 2.0.20",
+]
+
[[package]]
name = "keyboard-types"
version = "0.8.3"
@@ -3022,11 +4698,55 @@ dependencies = [
"dbus-secret-service",
"log",
"openssl",
- "secret-service",
+ "secret-service 4.0.0",
"windows-sys 0.60.2",
"zeroize",
]
+[[package]]
+name = "keyring"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2270074a3d26bcac93c1dc5d2845eb4c089e8d761ccf6e0ea266a16004640627"
+dependencies = [
+ "apple-native-keyring-store",
+ "keyring-core",
+ "windows-native-keyring-store",
+ "zbus-secret-service-keyring-store",
+]
+
+[[package]]
+name = "keyring-core"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29fbf4b551298c67925f38cf341a1ada797a75f1837bdf8ae1fc8e2ebc6efb59"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "konst"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f660d5f887e3562f9ab6f4a14988795b694099d66b4f5dedc02d197ba9becb1d"
+dependencies = [
+ "const_panic",
+ "konst_proc_macros",
+ "typewit",
+]
+
+[[package]]
+name = "konst_proc_macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e037a2e1d8d5fdbd49b16a4ea09d5d6401c1f29eca5ff29d03d3824dba16256a"
+
+[[package]]
+name = "lab"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf36173d4167ed999940f804952e6b08197cae5ad5d572eb4db150ce8ad5d58f"
+
[[package]]
name = "lazy_static"
version = "1.5.0"
@@ -3053,7 +4773,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"
dependencies = [
"gtk-sys",
- "libloading",
+ "libloading 0.7.4",
"once_cell",
]
@@ -3083,6 +4803,32 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "libloading"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
+dependencies = [
+ "cfg-if",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "libloading"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60"
+dependencies = [
+ "cfg-if",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "libm"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
+
[[package]]
name = "libredox"
version = "0.1.23"
@@ -3094,15 +4840,36 @@ dependencies = [
[[package]]
name = "libsqlite3-sys"
-version = "0.36.0"
+version = "0.38.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95b4103cffefa72eb8428cb6b47d6627161e51c2739fc5e3b734584157bc642a"
+checksum = "f1d20bef17f513b9b3004532233187769cd072d790971f4e4da0e346eb6401e8"
dependencies = [
"cc",
"pkg-config",
"vcpkg",
]
+[[package]]
+name = "line-clipping"
+version = "0.3.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e752191d037c44ad111a8caa762921926658402f01cc1253f7bef2020ece4f5e"
+dependencies = [
+ "bitflags 2.13.1",
+]
+
+[[package]]
+name = "link-section"
+version = "0.19.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39c29a617ce3df32c08497bdc1ab6e2376e0b17948ac166a2fbe5977c5954cd9"
+
+[[package]]
+name = "linktime-proc-macro"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e57c38c1e860fd37c604281cdfb1dd2216977fd76a50f85ba2f388ef3219616"
+
[[package]]
name = "linux-raw-sys"
version = "0.12.1"
@@ -3115,6 +4882,12 @@ version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
+[[package]]
+name = "litrs"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70"
+
[[package]]
name = "lock_api"
version = "0.4.14"
@@ -3130,6 +4903,28 @@ version = "0.4.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
+[[package]]
+name = "loom"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "419e0dc8046cb947daa77eb95ae174acfbddb7673b4151f56d1eed8e93fbfaca"
+dependencies = [
+ "cfg-if",
+ "generator",
+ "scoped-tls",
+ "tracing",
+ "tracing-subscriber",
+]
+
+[[package]]
+name = "lru"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef9ac18847474e638e3702b76c65d4eb93428471a74778ef0f1be711717f89b5"
+dependencies = [
+ "hashbrown 0.17.1",
+]
+
[[package]]
name = "lru-slab"
version = "0.1.2"
@@ -3137,1626 +4932,4217 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
[[package]]
-name = "mach"
-version = "0.1.2"
+name = "lz4_flex"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2fd13ee2dd61cc82833ba05ade5a30bb3d63f7ced605ef827063c63078302de9"
+checksum = "7ef0d4ed8669f8f8826eb00dc878084aa8f253506c4fd5e8f58f5bce72ddb97e"
dependencies = [
- "libc",
+ "twox-hash",
]
[[package]]
-name = "mach"
-version = "0.3.2"
+name = "mac-addr"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa"
-dependencies = [
- "libc",
-]
+checksum = "d3d25b0e0b648a86960ac23b7ad4abb9717601dec6f66c165f5b037f3f03065f"
[[package]]
-name = "markup5ever"
-version = "0.39.0"
+name = "mac_address"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
+checksum = "f3d0581a75c45969c63afd2bb87b1d8b25cfcc556c7a918cf9bb13b0fe8d2381"
dependencies = [
- "log",
- "tendril",
- "web_atoms",
+ "nix 0.31.3",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "maybe-owned"
-version = "0.3.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4"
-
-[[package]]
-name = "memchr"
-version = "2.8.3"
+name = "mach"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+checksum = "2fd13ee2dd61cc82833ba05ade5a30bb3d63f7ced605ef827063c63078302de9"
+dependencies = [
+ "libc",
+]
[[package]]
-name = "memoffset"
-version = "0.9.1"
+name = "mach"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa"
dependencies = [
- "autocfg",
+ "libc",
]
[[package]]
-name = "mime"
-version = "0.3.17"
+name = "macro_rules_attribute"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+checksum = "b3ae8f6d608c795738406608304d30a2dfbdc8e58e44f7ba43236da5208ded3c"
+dependencies = [
+ "macro_rules_attribute-proc_macro",
+ "pastey",
+]
[[package]]
-name = "minimal-lexical"
-version = "0.2.1"
+name = "macro_rules_attribute-proc_macro"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+checksum = "fc04a4c58212d57930a24bf47d3fa87485264a3a054e9c10e042eb373573ad3c"
[[package]]
-name = "minisign-verify"
-version = "0.3.0"
+name = "markup5ever"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "871285dc19d8d0ebe0eef3d0e99a205f2a71363b122632cbbfa4a6c370a960ce"
+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
+dependencies = [
+ "log",
+ "tendril",
+ "web_atoms",
+]
[[package]]
-name = "miniz_oxide"
-version = "0.8.9"
+name = "matchers"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
dependencies = [
- "adler2",
- "simd-adler32",
+ "regex-automata",
]
[[package]]
-name = "miniz_oxide"
-version = "0.9.1"
+name = "matchit"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
-dependencies = [
- "adler2",
- "simd-adler32",
-]
+checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3"
[[package]]
-name = "mio"
-version = "1.2.3"
+name = "maybe-owned"
+version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"
-dependencies = [
- "libc",
- "wasi",
- "windows-sys 0.61.2",
-]
+checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4"
[[package]]
-name = "moxcms"
-version = "0.8.1"
+name = "mdns-sd"
+version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
+checksum = "e6743ed743ff2bada2b8651ef298d3f98addb0b74844f19cdd57137d8bd0219e"
dependencies = [
- "num-traits",
- "pxfm",
+ "fastrand",
+ "flume",
+ "if-addrs",
+ "log",
+ "mio",
+ "socket-pktinfo",
+ "socket2",
]
[[package]]
-name = "muda"
-version = "0.20.0"
+name = "memchr"
+version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996"
-dependencies = [
- "crossbeam-channel",
- "dpi",
- "gtk",
- "keyboard-types",
- "objc2 0.6.4",
- "objc2-app-kit 0.3.2",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
- "once_cell",
- "png 0.18.1",
- "serde",
- "thiserror 2.0.20",
- "windows-sys 0.61.2",
-]
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]]
-name = "ndk"
-version = "0.9.0"
+name = "memmap2"
+version = "0.9.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157"
dependencies = [
- "bitflags 2.13.1",
- "jni-sys 0.3.1",
- "log",
- "ndk-sys",
- "num_enum",
- "raw-window-handle",
- "thiserror 1.0.69",
+ "libc",
]
[[package]]
-name = "ndk-context"
+name = "memmem"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+checksum = "a64a92489e2744ce060c349162be1c5f33c6969234104dbd99ddb5feb08b8c15"
[[package]]
-name = "ndk-sys"
-version = "0.6.0+11769913"
+name = "memoffset"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
dependencies = [
- "jni-sys 0.3.1",
+ "autocfg",
]
[[package]]
-name = "neteq"
-version = "0.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57fbe9601485d95750187c92344fa056e75055027b00e375c53d9f4b8b883112"
+name = "mesh-llm-analytics"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "log",
- "ringbuf",
+ "anyhow",
+ "chrono",
+ "dirs 6.0.0",
+ "mesh-llm-build-info",
+ "mesh-llm-events",
+ "reqwest",
"serde",
- "thiserror 1.0.69",
- "web-time",
+ "serde_json",
+ "tokio",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "new_debug_unreachable"
-version = "1.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+name = "mesh-llm-build-info"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
[[package]]
-name = "nix"
-version = "0.28.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
+name = "mesh-llm-client"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "bitflags 2.13.1",
- "cfg-if",
- "cfg_aliases 0.1.1",
- "libc",
+ "anyhow",
+ "base64 0.23.1",
+ "httparse",
+ "iroh",
+ "mesh-llm-identity",
+ "mesh-llm-membership",
+ "mesh-llm-protocol",
+ "mesh-llm-routing",
+ "mesh-llm-transport",
+ "mesh-llm-types",
+ "nostr-sdk",
+ "prost",
+ "rustls",
+ "serde",
+ "serde_json",
+ "skippy-model-artifact",
+ "thiserror 2.0.20",
+ "tokio",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "nix"
-version = "0.29.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
+name = "mesh-llm-config"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "bitflags 2.13.1",
- "cfg-if",
- "cfg_aliases 0.2.2",
+ "anyhow",
+ "dirs 6.0.0",
"libc",
- "memoffset",
+ "mesh-llm-types",
+ "semver",
+ "serde",
+ "serde_json",
+ "skippy-native-runtime",
+ "skippy-protocol",
+ "toml 1.1.5+spec-1.1.0",
+ "toml_edit 0.25.13+spec-1.1.0",
+ "url",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "nix"
-version = "0.31.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"
+name = "mesh-llm-control-api"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "bitflags 2.13.1",
- "cfg-if",
- "cfg_aliases 0.2.2",
- "libc",
+ "anyhow",
+ "http",
+ "httparse",
+ "mesh-llm-events",
+ "serde",
+ "serde_json",
+ "tokio",
+ "url",
]
[[package]]
-name = "nom"
-version = "7.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
+name = "mesh-llm-embedded-runtime"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "memchr",
- "minimal-lexical",
+ "mesh-llm-host-runtime",
]
[[package]]
-name = "nom"
-version = "8.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
+name = "mesh-llm-events"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "memchr",
+ "anyhow",
+ "chrono",
+ "clap",
+ "crossterm",
+ "libc",
+ "ratatui",
+ "serde",
+ "serde_json",
+ "skippy-events",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "nostr"
-version = "0.44.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40ff7b77ef428b40aa2834a6acbae38a0e104c98b306208ca4b87a420d579a4b"
+name = "mesh-llm-host-runtime"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "base64 0.22.1",
- "bech32 0.11.1",
- "bip39",
- "bitcoin_hashes 0.14.101",
- "cbc",
- "chacha20 0.9.1",
- "chacha20poly1305",
- "getrandom 0.2.17",
+ "anyhow",
+ "async-trait",
+ "axum",
+ "base64 0.23.1",
+ "bytes",
+ "chrono",
+ "crossbeam-queue",
+ "crossterm",
+ "dirs 6.0.0",
+ "ed25519-dalek 3.0.0",
+ "futures-util",
"hex",
- "instant",
- "scrypt",
- "secp256k1 0.29.1",
+ "http",
+ "http-body-util",
+ "httparse",
+ "iroh",
+ "libc",
+ "mdns-sd",
+ "mesh-llm-analytics",
+ "mesh-llm-build-info",
+ "mesh-llm-client",
+ "mesh-llm-config",
+ "mesh-llm-control-api",
+ "mesh-llm-events",
+ "mesh-llm-identity",
+ "mesh-llm-log-store",
+ "mesh-llm-membership",
+ "mesh-llm-moa-plugin",
+ "mesh-llm-node",
+ "mesh-llm-plugin",
+ "mesh-llm-plugin-manager",
+ "mesh-llm-protocol",
+ "mesh-llm-routing",
+ "mesh-llm-runtime-event-contracts",
+ "mesh-llm-skippy-adapter",
+ "mesh-llm-system",
+ "mesh-llm-transport",
+ "mesh-llm-types",
+ "mesh-llm-ui",
+ "mesh-native-serving-plugin-host",
+ "nostr-sdk",
+ "opentelemetry",
+ "opentelemetry-otlp",
+ "opentelemetry_sdk",
+ "prost",
+ "rand 0.10.2",
+ "regex-lite",
+ "reqwest",
+ "rmcp",
+ "rpassword",
+ "rustls",
+ "ryu",
+ "schemars 1.2.2",
"serde",
"serde_json",
- "unicode-normalization",
- "url",
-]
-
-[[package]]
-name = "nostr"
-version = "0.45.5"
+ "sha2 0.11.1",
+ "skippy-api",
+ "skippy-cache",
+ "skippy-commands",
+ "skippy-coordinator",
+ "skippy-events",
+ "skippy-ffi",
+ "skippy-guardrails",
+ "skippy-hf-hub",
+ "skippy-inference-api",
+ "skippy-model",
+ "skippy-model-artifact",
+ "skippy-model-hf",
+ "skippy-model-ref",
+ "skippy-model-resolver",
+ "skippy-native-runtime",
+ "skippy-package-format",
+ "skippy-protocol",
+ "skippy-runtime",
+ "skippy-serving",
+ "skippy-topology",
+ "socket2",
+ "subtle",
+ "tempfile",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-stream",
+ "toml 1.1.5+spec-1.1.0",
+ "tower",
+ "tracing",
+ "tracing-subscriber",
+ "url",
+ "urlencoding",
+ "uuid",
+ "windows-sys 0.61.2",
+ "zeroize",
+]
+
+[[package]]
+name = "mesh-llm-identity"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "apple-native-keyring-store",
+ "argon2",
+ "base64 0.23.1",
+ "chacha20poly1305 0.11.0",
+ "chrono",
+ "crypto_box",
+ "dirs 6.0.0",
+ "ed25519-dalek 3.0.0",
+ "hex",
+ "keyring 4.2.0",
+ "rand 0.10.2",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "thiserror 2.0.20",
+ "zeroize",
+]
+
+[[package]]
+name = "mesh-llm-log-store"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "chrono",
+ "data-encoding",
+ "hex",
+ "mesh-llm-events",
+ "rusqlite",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "uuid",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "mesh-llm-membership"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "dirs 6.0.0",
+ "ed25519-dalek 3.0.0",
+ "hex",
+ "iroh",
+ "mesh-llm-identity",
+ "mesh-llm-protocol",
+ "mesh-llm-routing",
+ "mesh-llm-types",
+ "rand 0.10.2",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "mesh-llm-moa-plugin"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "mesh-llm-plugin",
+ "mesh-mixture-of-agents",
+ "serde_json",
+ "tokio",
+]
+
+[[package]]
+name = "mesh-llm-node"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "mesh-llm-types",
+ "serde",
+ "serde_json",
+ "skippy-model-artifact",
+ "skippy-model-hf",
+ "skippy-model-ref",
+]
+
+[[package]]
+name = "mesh-llm-plugin"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "mesh-llm-config",
+ "prost",
+ "prost-build",
+ "protoc-bin-vendored",
+ "rmcp",
+ "schemars 1.2.2",
+ "serde",
+ "serde_json",
+ "tokio",
+]
+
+[[package]]
+name = "mesh-llm-plugin-manager"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "dirs 6.0.0",
+ "flate2",
+ "futures-util",
+ "hex",
+ "mesh-llm-skills",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "tar",
+ "tempfile",
+ "toml 1.1.5+spec-1.1.0",
+ "zip",
+]
+
+[[package]]
+name = "mesh-llm-protocol"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "hex",
+ "iroh",
+ "prost",
+ "serde_json",
+ "sha2 0.11.1",
+]
+
+[[package]]
+name = "mesh-llm-release-footer"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "hex",
+ "sha2 0.11.1",
+]
+
+[[package]]
+name = "mesh-llm-routing"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "blake3",
+ "iroh",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "mesh-llm-runtime-event-contracts"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "uuid",
+]
+
+[[package]]
+name = "mesh-llm-skills"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "dirs 6.0.0",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "mesh-llm-skippy-adapter"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "dirs 6.0.0",
+ "mesh-llm-config",
+ "mesh-llm-events",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-api",
+ "skippy-config",
+ "skippy-hf-hub",
+ "skippy-inference-api",
+ "skippy-model-artifact",
+ "skippy-model-hf",
+ "skippy-package-format",
+ "skippy-protocol",
+ "skippy-runtime",
+ "skippy-serving",
+ "toml 1.1.5+spec-1.1.0",
+]
+
+[[package]]
+name = "mesh-llm-system"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "clap",
+ "dirs 6.0.0",
+ "hex",
+ "libc",
+ "libloading 0.9.0",
+ "mesh-llm-build-info",
+ "mesh-llm-events",
+ "mesh-llm-release-footer",
+ "mesh-llm-types",
+ "reqwest",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-config",
+ "skippy-gpu-bench",
+ "skippy-native-runtime",
+ "skippy-runtime",
+ "skippy-runtime-install",
+ "tracing",
+ "windows-sys 0.61.2",
+ "zip",
+]
+
+[[package]]
+name = "mesh-llm-transport"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "iroh",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "mesh-llm-types"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "hex",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-model-artifact",
+]
+
+[[package]]
+name = "mesh-llm-ui"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+
+[[package]]
+name = "mesh-mixture-of-agents"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "async-trait",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "skippy-guardrails",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "mesh-native-serving-plugin-api"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+
+[[package]]
+name = "mesh-native-serving-plugin-host"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "libloading 0.9.0",
+ "mesh-native-serving-plugin-api",
+ "skippy-serving",
+ "skippy-tokenizer",
+ "tracing",
+]
+
+[[package]]
+name = "mime"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+
+[[package]]
+name = "mime_guess"
+version = "2.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"
+dependencies = [
+ "mime",
+ "unicase",
+]
+
+[[package]]
+name = "minimal-lexical"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+
+[[package]]
+name = "minisign-verify"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "871285dc19d8d0ebe0eef3d0e99a205f2a71363b122632cbbfa4a6c370a960ce"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "miniz_oxide"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "mio"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"
+dependencies = [
+ "libc",
+ "log",
+ "wasi 0.11.1+wasi-snapshot-preview1",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "monostate"
+version = "0.1.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3341a273f6c9d5bef1908f17b7267bbab0e95c9bf69a0d4dcf8e9e1b2c76ef67"
+dependencies = [
+ "monostate-impl",
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "monostate-impl"
+version = "0.1.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4db6d5580af57bf992f59068d4ea26fd518574ff48d7639b255a36f9de6e7e9"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "more-asserts"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fafa6961cabd9c63bcd77a45d7e3b7f3b552b70417831fb0f56db717e72407e"
+
+[[package]]
+name = "moxcms"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
+[[package]]
+name = "muda"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "gtk",
+ "keyboard-types",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.20",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "multer"
+version = "3.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b"
+dependencies = [
+ "bytes",
+ "encoding_rs",
+ "futures-util",
+ "http",
+ "httparse",
+ "memchr",
+ "mime",
+ "spin 0.9.9",
+ "version_check",
+]
+
+[[package]]
+name = "multimap"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084"
+
+[[package]]
+name = "multiversion_no_op"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
+
+[[package]]
+name = "n0-dns-resolver"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "535c99c9a786bee714155d2ee4fc2477405c2c43536e1bc6a51de09a0d1448f7"
+dependencies = [
+ "derive_more",
+ "ipconfig",
+ "jni 0.22.4",
+ "lru",
+ "n0-error",
+ "n0-future",
+ "ndk-context",
+ "rand 0.10.2",
+ "reqwest",
+ "rustc-hash",
+ "rustls",
+ "simple-dns",
+ "system-configuration 0.8.0",
+ "tokio",
+ "tokio-rustls",
+ "tracing",
+ "webpki-roots 1.0.10",
+]
+
+[[package]]
+name = "n0-error"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26c59ea174675ce6bc196878851e5049e11b8b1f9af3ba87e4d6df8d828bb001"
+dependencies = [
+ "n0-error-macros",
+ "spez",
+]
+
+[[package]]
+name = "n0-error-macros"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4412346410d6616f3668c40e53c298e5320c7b856f7a960e5914e442601be79f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "n0-future"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2ab99dfb861450e68853d34ae665243a88b8c493d01ba957321a1e9b2312bbe"
+dependencies = [
+ "cfg_aliases 0.2.2",
+ "derive_more",
+ "futures-buffered",
+ "futures-lite",
+ "futures-util",
+ "js-sys",
+ "pin-project",
+ "send_wrapper",
+ "tokio",
+ "tokio-util",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-time",
+]
+
+[[package]]
+name = "n0-watcher"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "64bf1ecb076a87e0e3f5edcf726e7d29e788c273bb0161ba30666b53f085906c"
+dependencies = [
+ "derive_more",
+ "n0-error",
+ "n0-future",
+ "slotmap",
+]
+
+[[package]]
+name = "ndk"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+dependencies = [
+ "bitflags 2.13.1",
+ "jni-sys 0.3.1",
+ "log",
+ "ndk-sys",
+ "num_enum",
+ "raw-window-handle",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
+[[package]]
+name = "ndk-sys"
+version = "0.6.0+11769913"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+dependencies = [
+ "jni-sys 0.3.1",
+]
+
+[[package]]
+name = "negentropy"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd6f12461d14b5768028d39fab3cdfbcefb0bc7f09e95f413a00b6fdedcc9c2d"
+
+[[package]]
+name = "netdev"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "096c44b66a9b09b99b4dd36b1c295ff3a492039ccecaf55466bd6ddcdba59968"
+dependencies = [
+ "block2 0.6.2",
+ "dispatch2",
+ "dlopen2",
+ "ipnet",
+ "jni 0.21.1",
+ "libc",
+ "mac-addr",
+ "ndk-context",
+ "netlink-packet-core 0.8.2",
+ "netlink-packet-route 0.31.0",
+ "netlink-sys 0.8.8",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-wlan",
+ "objc2-foundation 0.3.2",
+ "objc2-system-configuration",
+ "once_cell",
+ "plist",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "netdev"
+version = "0.46.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3c52c2584961c68f5a6e3356797344061f818c93b8acc9cd6d7e284795e563e"
+dependencies = [
+ "block2 0.6.2",
+ "dispatch2",
+ "dlopen2",
+ "ipnet",
+ "jni 0.21.1",
+ "libc",
+ "mac-addr",
+ "ndk-context",
+ "netlink-packet-core 0.9.0",
+ "netlink-packet-route 0.33.0",
+ "netlink-sys 0.9.0",
+ "objc2-core-foundation",
+ "objc2-system-configuration",
+ "once_cell",
+ "plist",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "neteq"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57fbe9601485d95750187c92344fa056e75055027b00e375c53d9f4b8b883112"
+dependencies = [
+ "log",
+ "ringbuf",
+ "serde",
+ "thiserror 1.0.69",
+ "web-time",
+]
+
+[[package]]
+name = "netlink-packet-core"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b897d7bd4f0af82e68d40d0344cf37e97f9c97ddf74a098de3e4da05e96ca395"
+dependencies = [
+ "paste",
+]
+
+[[package]]
+name = "netlink-packet-core"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2d6e2daf9a8c2e21302714706860a0e6be02e03d17294ecc66b354ea7d4059dd"
+
+[[package]]
+name = "netlink-packet-route"
+version = "0.31.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2288fcb784eb3defd5fb16f4c4160d5f477de192eac730f43e1d11c24d9a007"
+dependencies = [
+ "bitflags 2.13.1",
+ "libc",
+ "log",
+ "netlink-packet-core 0.8.2",
+]
+
+[[package]]
+name = "netlink-packet-route"
+version = "0.33.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59d48ffc8b73a506e1ff0878528c72668f2bfbc3d875b6be890a96be5d0d5576"
+dependencies = [
+ "bitflags 2.13.1",
+ "libc",
+ "log",
+ "netlink-packet-core 0.9.0",
+ "zerocopy",
+]
+
+[[package]]
+name = "netlink-proto"
+version = "0.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93af8261786086024cd5e96e0a991dd65ced07bbf7c233a487bbc96b971d5539"
+dependencies = [
+ "bytes",
+ "futures-channel",
+ "futures-util",
+ "log",
+ "netlink-packet-core 0.8.2",
+ "netlink-sys 0.8.8",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "netlink-sys"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd6c30ed10fa69cc491d491b85cc971f6bdeb8e7367b7cde2ee6cc878d583fae"
+dependencies = [
+ "bytes",
+ "futures-util",
+ "libc",
+ "log",
+ "tokio",
+]
+
+[[package]]
+name = "netlink-sys"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c99d38e00b420df49e940fe0826e667c3dad82ac68eb4c2bbf754c1c14a83a10"
+dependencies = [
+ "bytes",
+ "libc",
+ "log",
+]
+
+[[package]]
+name = "netwatch"
+version = "0.19.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39da9cad5f23aa43401f09497d3b280e51b5feba115d9ffbf38ca35d6ff95e96"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "cfg_aliases 0.2.2",
+ "derive_more",
+ "ipnet",
+ "js-sys",
+ "libc",
+ "n0-error",
+ "n0-future",
+ "n0-watcher",
+ "netdev 0.45.1",
+ "netdev 0.46.3",
+ "netlink-packet-core 0.8.2",
+ "netlink-packet-route 0.31.0",
+ "netlink-proto",
+ "netlink-sys 0.8.8",
+ "noq-udp",
+ "objc2-core-foundation",
+ "objc2-system-configuration",
+ "pin-project-lite",
+ "serde",
+ "socket2",
+ "time",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "web-sys",
+ "windows 0.62.2",
+ "windows-result 0.4.1",
+ "wmi",
+]
+
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+
+[[package]]
+name = "nibble_vec"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43"
+dependencies = [
+ "smallvec",
+]
+
+[[package]]
+name = "nix"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
+dependencies = [
+ "bitflags 2.13.1",
+ "cfg-if",
+ "cfg_aliases 0.1.1",
+ "libc",
+]
+
+[[package]]
+name = "nix"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
+dependencies = [
+ "bitflags 2.13.1",
+ "cfg-if",
+ "cfg_aliases 0.2.2",
+ "libc",
+ "memoffset",
+]
+
+[[package]]
+name = "nix"
+version = "0.31.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d"
+dependencies = [
+ "bitflags 2.13.1",
+ "cfg-if",
+ "cfg_aliases 0.2.2",
+ "libc",
+ "memoffset",
+]
+
+[[package]]
+name = "nom"
+version = "7.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
+dependencies = [
+ "memchr",
+ "minimal-lexical",
+]
+
+[[package]]
+name = "nom"
+version = "8.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "noq"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6249a065adc1edbc1704a95436f38dd60476064dbc3b7c47cf279e02d1590eb5"
+dependencies = [
+ "bytes",
+ "cfg_aliases 0.2.2",
+ "derive_more",
+ "noq-proto",
+ "noq-udp",
+ "pin-project-lite",
+ "rustc-hash",
+ "rustls",
+ "socket2",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-stream",
+ "tracing",
+ "web-time",
+]
+
+[[package]]
+name = "noq-proto"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c01a35be3ed37558c8db69554419f24eff8a63599b54f711bbe3863ec727c47d"
+dependencies = [
+ "aes-gcm",
+ "aws-lc-rs",
+ "bytes",
+ "derive_more",
+ "enum-assoc",
+ "getrandom 0.4.3",
+ "identity-hash",
+ "lru-slab",
+ "rand 0.10.2",
+ "rand_pcg",
+ "ring",
+ "rustc-hash",
+ "rustls",
+ "rustls-pki-types",
+ "slab",
+ "sorted-index-buffer",
+ "thiserror 2.0.20",
+ "tinyvec",
+ "tracing",
+ "web-time",
+]
+
+[[package]]
+name = "noq-udp"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d0160422832eea1cc11c34be04ee6d5a046452b0b46cfb14695d55a1f24c954"
+dependencies = [
+ "cfg_aliases 0.2.2",
+ "libc",
+ "socket2",
+ "tracing",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "nostr"
+version = "0.45.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38ca5c25a6df8d4d78fdf39b42792438f6ce22b4809ccbfdb27582ed9ca45407"
+dependencies = [
+ "base64 0.22.1",
+ "bech32 0.12.0",
+ "bip39",
+ "bitcoin_hashes 1.2.0",
+ "cbc 0.1.2",
+ "chacha20 0.9.1",
+ "chacha20poly1305 0.10.1",
+ "faster-hex",
+ "opaquerr",
+ "rand 0.10.2",
+ "secp256k1 0.30.0",
+ "serde",
+ "serde_json",
+ "unicode-normalization",
+ "universal-time",
+ "url",
+ "zeroize",
+]
+
+[[package]]
+name = "nostr-database"
+version = "0.45.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "309950383c9854ca413d195705400e78b1376aedc48f3256754a86c609c047e8"
+dependencies = [
+ "nostr",
+ "opaquerr",
+]
+
+[[package]]
+name = "nostr-gossip"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea822fd48ff6b84b81ddf84169e6edf1dc0bc9b312c8e41685b2278debaac3d"
+dependencies = [
+ "nostr",
+ "opaquerr",
+]
+
+[[package]]
+name = "nostr-sdk"
+version = "0.45.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f01e3d4fc102ddbb1cf0098a8257046aaeb24ec168bb4298f0274084a152faf7"
+dependencies = [
+ "async-utility",
+ "async-wsocket",
+ "faster-hex",
+ "futures",
+ "lru",
+ "negentropy",
+ "nostr",
+ "nostr-database",
+ "nostr-gossip",
+ "opaquerr",
+ "rand 0.10.2",
+ "tokio",
+ "tokio-stream",
+ "tracing",
+ "universal-time",
+]
+
+[[package]]
+name = "ntapi"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae"
+dependencies = [
+ "winapi",
+]
+
+[[package]]
+name = "nu-ansi-term"
+version = "0.50.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "num"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
+dependencies = [
+ "num-bigint",
+ "num-complex",
+ "num-integer",
+ "num-iter",
+ "num-rational",
+ "num-traits",
+]
+
+[[package]]
+name = "num-bigint"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-complex"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-conv"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
+
+[[package]]
+name = "num-derive"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "num-integer"
+version = "0.1.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-iter"
+version = "0.1.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-rational"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
+dependencies = [
+ "num-bigint",
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "num_enum"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
+dependencies = [
+ "num_enum_derive",
+ "rustversion",
+]
+
+[[package]]
+name = "num_enum_derive"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "num_threads"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cabcc654086861f9e1bc5115258de62ef92c79b20f4615a1b0cc57c4e82027d4"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "objc-sys"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
+
+[[package]]
+name = "objc2"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b"
+dependencies = [
+ "objc-sys",
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+dependencies = [
+ "objc2-encode",
+ "objc2-exception-helper",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "libc",
+ "objc2 0.5.3",
+ "objc2-core-data 0.2.2",
+ "objc2-core-image 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-quartz-core 0.2.2",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-core-location 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-contacts"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "dispatch2",
+ "libc",
+ "objc2 0.6.4",
+]
+
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.13.1",
+ "dispatch2",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+ "objc2-metal",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-core-graphics",
+ "objc2-core-video",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-contacts",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-core-video"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-wlan"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c71e34919aba0d701380d911702455038a8a3587467fe0141d6a71501e7ffe48"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-security",
+ "objc2-security-foundation",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-exception-helper"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "libc",
+ "objc2 0.5.3",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "libc",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15"
+dependencies = [
+ "libc",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-link-presentation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-open-directory"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb82bed227edf5201dfedf072bba4015a33d3d4a98519837295a90f0a23f676d"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-osa-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+ "objc2-metal",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-security"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"
+dependencies = [
+ "bitflags 2.13.1",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-security-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef76382e9cedd18123099f17638715cc3d81dba3637d4c0d39ab69df2ef345a5"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-symbols"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
+dependencies = [
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-system-configuration"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7216bd11cbda54ccabcab84d523dc93b858ec75ecfb3a7d89513fa22464da396"
+dependencies = [
+ "bitflags 2.13.1",
+ "dispatch2",
+ "libc",
+ "objc2 0.6.4",
+ "objc2-core-foundation",
+ "objc2-security",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-cloud-kit 0.2.2",
+ "objc2-core-data 0.2.2",
+ "objc2-core-image 0.2.2",
+ "objc2-core-location 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-link-presentation",
+ "objc2-quartz-core 0.2.2",
+ "objc2-symbols",
+ "objc2-uniform-type-identifiers",
+ "objc2-user-notifications 0.2.2",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-cloud-kit 0.3.2",
+ "objc2-core-data 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-core-image 0.3.2",
+ "objc2-core-location 0.3.2",
+ "objc2-core-text",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "objc2-user-notifications 0.3.2",
+]
+
+[[package]]
+name = "objc2-uniform-type-identifiers"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-core-location 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-vision"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bfc194758a2d5d7540b1ad283bfb9ca318ec608991892326e95b428230b2689b"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-core-video",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-web-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68bc69301064cebefc6c4c90ce9cba69225239e4b8ff99d445a2b5563797da65"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-web-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
+dependencies = [
+ "bitflags 2.13.1",
+ "block2 0.6.2",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "oid-registry"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
+dependencies = [
+ "asn1-rs",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+
+[[package]]
+name = "oneshot"
+version = "0.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "269bca4c2591a28585d6bf10d9ed0332b7d76900a1b02bec41bdc3a2cdcda107"
+
+[[package]]
+name = "opaque-debug"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
+
+[[package]]
+name = "opaquerr"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f933a4265d5cdad61d19bbdfc972ea5726d56cd8d3d57b8f2d3c365dd42bee9"
+
+[[package]]
+name = "open"
+version = "5.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa576c76302b7b808eecc68061e67336c47833ef9d22caa74dda10fa9675eebc"
+dependencies = [
+ "dunce",
+ "is-wsl",
+ "libc",
+]
+
+[[package]]
+name = "openssl"
+version = "0.10.81"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
+dependencies = [
+ "bitflags 2.13.1",
+ "cfg-if",
+ "foreign-types 0.3.2",
+ "libc",
+ "openssl-macros",
+ "openssl-sys",
+]
+
+[[package]]
+name = "openssl-macros"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "openssl-probe"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
+
+[[package]]
+name = "openssl-src"
+version = "300.6.1+3.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46eb8fb9fb3b61ce1c0f8a026c4c1a0714d3a9e138e7fbde78753ce2babc3846"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "openssl-sys"
+version = "0.9.117"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
+dependencies = [
+ "cc",
+ "libc",
+ "openssl-src",
+ "pkg-config",
+ "vcpkg",
+]
+
+[[package]]
+name = "opentelemetry"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b0142c63252a9e054e68a4c61a5778f7b14f576274d593f8ce883d191a099682"
+dependencies = [
+ "futures-core",
+ "futures-sink",
+ "js-sys",
+ "pin-project-lite",
+ "thiserror 2.0.20",
+ "tracing",
+]
+
+[[package]]
+name = "opentelemetry-http"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5683015d09e2df236ef005b17f6f196f0d5f6313c4fa43a7b6a53b52776e4331"
+dependencies = [
+ "async-trait",
+ "bytes",
+ "http",
+ "opentelemetry",
+ "reqwest",
+]
+
+[[package]]
+name = "opentelemetry-otlp"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9966929966d17620d7c316c643ba62631826e10021409357772d5eea84f62c35"
+dependencies = [
+ "http",
+ "opentelemetry",
+ "opentelemetry-http",
+ "opentelemetry-proto",
+ "opentelemetry_sdk",
+ "prost",
+ "reqwest",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "opentelemetry-proto"
+version = "0.32.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "56d658ba1faf63f7b9c492cfbe6e0ec365440a16132d3270c1065f7b33f1b638"
+dependencies = [
+ "base64 0.22.1",
+ "const-hex",
+ "opentelemetry",
+ "opentelemetry_sdk",
+ "prost",
+ "serde",
+ "tonic",
+ "tonic-prost",
+]
+
+[[package]]
+name = "opentelemetry_sdk"
+version = "0.32.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b59f80e1ac4d5ff7a2db8fb6c80badb7f0f3f858211fba08dd9aaec750894f9"
+dependencies = [
+ "futures-channel",
+ "futures-executor",
+ "futures-util",
+ "opentelemetry",
+ "percent-encoding",
+ "portable-atomic",
+ "rand 0.9.5",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "option-ext"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+
+[[package]]
+name = "opus"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33718946cc77d4032911d4efe03a66dbcbfbd2bb16c3da06aaeadcc637c32216"
+dependencies = [
+ "opusic-sys",
+]
+
+[[package]]
+name = "opusic-sys"
+version = "0.7.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9d1ecdf206421bc74343ab3bb2f30ad2abbfee41fa341f7181fecbaf957769a"
+dependencies = [
+ "cmake",
+]
+
+[[package]]
+name = "ordered-float"
+version = "4.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "ordered-multimap"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49203cdcae0030493bad186b28da2fa25645fa276a51b6fec8010d281e02ef79"
+dependencies = [
+ "dlv-list",
+ "hashbrown 0.14.5",
+]
+
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "os_pipe"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "os_str_bytes"
+version = "6.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2355d85b9a3786f481747ced0e0ff2ba35213a1f9bd406ed906554d7af805a1"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "osakit"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"
+dependencies = [
+ "objc2 0.6.4",
+ "objc2-foundation 0.3.2",
+ "objc2-osa-kit",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+]
+
+[[package]]
+name = "palette"
+version = "0.7.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddeed8580d347d2abf3dcf06a5f0b3dc020258338526b277847cd4248a70fc64"
+dependencies = [
+ "approx",
+ "libm",
+ "palette_derive",
+ "palette_math",
+]
+
+[[package]]
+name = "palette_derive"
+version = "0.7.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88537020289b719d81be994ccf1bbf4990f477e2f69ee52fe3e45f43a02e56be"
+dependencies = [
+ "by_address",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "palette_math"
+version = "0.7.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e6eb142958d64335fb0e345c5b9ead2ecd6fc438c307e9d7d3c4fd428dbaf12"
+dependencies = [
+ "libm",
+]
+
+[[package]]
+name = "pango"
+version = "0.18.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"
+dependencies = [
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+ "pango-sys",
+]
+
+[[package]]
+name = "pango-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "papaya"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da2442474a9404698c42509b8967f437249dbc7b50493e83020333d3943ec0ae"
+dependencies = [
+ "equivalent",
+ "seize",
+]
+
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link 0.2.1",
+]
+
+[[package]]
+name = "password-hash"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aab41826031698d6ffcd9cff78ef56ef998e39dc7e5067cdfebe373842d4723b"
+dependencies = [
+ "getrandom 0.4.3",
+ "phc",
+]
+
+[[package]]
+name = "paste"
+version = "1.0.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
+
+[[package]]
+name = "pastey"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
+
+[[package]]
+name = "pathdiff"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
+
+[[package]]
+name = "pem"
+version = "4.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120"
+dependencies = [
+ "base64 0.23.1",
+ "serde_core",
+]
+
+[[package]]
+name = "pem-rfc7468"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6305423e0e7738146434843d1694d621cce767262b2a86910beab705e4493d9"
+dependencies = [
+ "base64ct",
+]
+
+[[package]]
+name = "percent-encoding"
+version = "2.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+
+[[package]]
+name = "pest"
+version = "2.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8db75153506001cb36ed924f08cadc862eb3f8c4d0d534139f29074769d7660"
+dependencies = [
+ "memchr",
+ "pest_stack_guard",
+ "ucd-trie",
+]
+
+[[package]]
+name = "pest_derive"
+version = "2.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20aa17e11fb35664b67d5214a0afac57a360d231b6ec53d6eba0700b27d933b4"
+dependencies = [
+ "pest",
+ "pest_generator",
+]
+
+[[package]]
+name = "pest_generator"
+version = "2.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "626ec5afccf44ccbfeb2b232316510bb55b4bf34d891afcb0fb07d2b17d7fe9d"
+dependencies = [
+ "pest",
+ "pest_meta",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
+]
+
+[[package]]
+name = "pest_meta"
+version = "2.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3f45b6caa65c1b08186832745159c2529994146340a7bf44168095469720f5d"
+dependencies = [
+ "pest",
+]
+
+[[package]]
+name = "pest_stack_guard"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97e6cd2217057fa86b6eaa512917e58089d875b957a31e35e7ab729977e0a5f2"
+dependencies = [
+ "psm",
+ "stacker",
+]
+
+[[package]]
+name = "petgraph"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455"
+dependencies = [
+ "fixedbitset 0.5.7",
+ "hashbrown 0.15.5",
+ "indexmap 2.14.2",
+]
+
+[[package]]
+name = "pharos"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e9567389417feee6ce15dd6527a8a1ecac205ef62c2932bcf3d9f6fc5b78b414"
+dependencies = [
+ "futures",
+ "rustc_version",
+]
+
+[[package]]
+name = "phc"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44dc769b75f93afdddd8c7fa12d685292ddeff1e66f7f0f3a234cf1818afe892"
+dependencies = [
+ "base64ct",
+ "ctutils",
+ "getrandom 0.4.3",
+]
+
+[[package]]
+name = "phf"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"
+dependencies = [
+ "phf_macros 0.11.3",
+ "phf_shared 0.11.3",
+]
+
+[[package]]
+name = "phf"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+dependencies = [
+ "phf_macros 0.13.1",
+ "phf_shared 0.13.1",
+ "serde",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"
+dependencies = [
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
+dependencies = [
+ "phf_shared 0.11.3",
+ "rand 0.8.8",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+dependencies = [
+ "fastrand",
+ "phf_shared 0.13.1",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216"
+dependencies = [
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+dependencies = [
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38ca5c25a6df8d4d78fdf39b42792438f6ce22b4809ccbfdb27582ed9ca45407"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
dependencies = [
- "base64 0.22.1",
- "bech32 0.12.0",
- "bip39",
- "bitcoin_hashes 1.2.0",
- "cbc",
- "chacha20 0.9.1",
- "chacha20poly1305",
- "faster-hex",
- "opaquerr",
- "rand 0.10.2",
- "secp256k1 0.30.0",
+ "siphasher",
+]
+
+[[package]]
+name = "pin-project"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924"
+dependencies = [
+ "pin-project-internal",
+]
+
+[[package]]
+name = "pin-project-internal"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
+[[package]]
+name = "pkcs8"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
+dependencies = [
+ "der 0.7.10",
+ "spki 0.7.3",
+]
+
+[[package]]
+name = "pkcs8"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7"
+dependencies = [
+ "der 0.8.3",
+ "spki 0.8.1",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plist"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb"
+dependencies = [
+ "base64 0.23.1",
+ "indexmap 2.14.2",
+ "quick-xml 0.42.0",
"serde",
- "serde_json",
- "unicode-normalization",
- "universal-time",
- "url",
- "zeroize",
+ "time",
]
[[package]]
-name = "num"
-version = "0.4.3"
+name = "png"
+version = "0.17.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
+checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
dependencies = [
- "num-bigint",
- "num-complex",
- "num-integer",
- "num-iter",
- "num-rational",
- "num-traits",
+ "bitflags 1.3.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
]
[[package]]
-name = "num-bigint"
-version = "0.4.8"
+name = "png"
+version = "0.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
dependencies = [
- "num-integer",
- "num-traits",
+ "bitflags 2.13.1",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
]
[[package]]
-name = "num-complex"
-version = "0.4.6"
+name = "polling"
+version = "3.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
dependencies = [
- "num-traits",
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi",
+ "pin-project-lite",
+ "rustix",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "num-conv"
-version = "0.2.2"
+name = "poly1305"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
+checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf"
+dependencies = [
+ "cpufeatures 0.2.17",
+ "opaque-debug",
+ "universal-hash 0.5.1",
+]
[[package]]
-name = "num-integer"
-version = "0.1.47"
+name = "poly1305"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
+checksum = "6e2d0073b297041425c7c3df6eb4792d598a15323fe63346852b092eca02904c"
dependencies = [
- "num-traits",
+ "cpufeatures 0.3.1",
+ "universal-hash 0.6.1",
]
[[package]]
-name = "num-iter"
-version = "0.1.46"
+name = "polyval"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
+checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25"
dependencies = [
- "num-integer",
- "num-traits",
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "opaque-debug",
+ "universal-hash 0.5.1",
]
[[package]]
-name = "num-rational"
-version = "0.4.2"
+name = "portable-atomic"
+version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
dependencies = [
- "num-bigint",
- "num-integer",
- "num-traits",
+ "serde",
]
[[package]]
-name = "num-traits"
-version = "0.2.19"
+name = "portable-atomic-util"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
dependencies = [
- "autocfg",
+ "portable-atomic",
]
[[package]]
-name = "num_enum"
-version = "0.7.6"
+name = "portable-pty"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
+checksum = "b4a596a2b3d2752d94f51fac2d4a96737b8705dddd311a32b9af47211f08671e"
dependencies = [
- "num_enum_derive",
- "rustversion",
+ "anyhow",
+ "bitflags 1.3.2",
+ "downcast-rs",
+ "filedescriptor",
+ "lazy_static",
+ "libc",
+ "log",
+ "nix 0.28.0",
+ "serial2",
+ "shared_library",
+ "shell-words",
+ "winapi",
+ "winreg 0.10.1",
+]
+
+[[package]]
+name = "portmapper"
+version = "0.19.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca97242f016e090a25330613bc2382aab65eb22f9149dbe84d8f8e711d49a530"
+dependencies = [
+ "base64 0.22.1",
+ "bytes",
+ "derive_more",
+ "hyper-util",
+ "igd-next",
+ "iroh-metrics",
+ "libc",
+ "n0-error",
+ "n0-future",
+ "netwatch",
+ "num_enum",
+ "rand 0.10.2",
+ "serde",
+ "smallvec",
+ "socket2",
+ "time",
+ "tokio",
+ "tokio-util",
+ "tower-layer",
+ "tracing",
+ "url",
+]
+
+[[package]]
+name = "postcard"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24"
+dependencies = [
+ "cobs",
+ "embedded-io 0.4.0",
+ "embedded-io 0.6.1",
+ "postcard-derive",
+ "serde",
+]
+
+[[package]]
+name = "postcard-derive"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0232bd009a197ceec9cc881ba46f727fcd8060a2d8d6a9dde7a69030a6fe2bb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+dependencies = [
+ "zerovec",
+]
+
+[[package]]
+name = "powerfmt"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
+dependencies = [
+ "zerocopy",
]
[[package]]
-name = "num_enum_derive"
-version = "0.7.6"
+name = "precomputed-hash"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+
+[[package]]
+name = "prettyplease"
+version = "0.2.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
+checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
dependencies = [
- "proc-macro-crate 3.5.0",
"proc-macro2",
- "quote",
"syn 2.0.119",
]
[[package]]
-name = "objc-sys"
-version = "0.3.5"
+name = "prettyplease"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
+checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0"
+dependencies = [
+ "proc-macro2",
+ "syn 3.0.5",
+]
[[package]]
-name = "objc2"
-version = "0.5.3"
+name = "proc-macro-crate"
+version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b"
+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
- "objc-sys",
- "objc2-encode",
+ "once_cell",
+ "toml_edit 0.19.15",
]
[[package]]
-name = "objc2"
-version = "0.6.4"
+name = "proc-macro-crate"
+version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
dependencies = [
- "objc2-encode",
- "objc2-exception-helper",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
]
[[package]]
-name = "objc2-app-kit"
-version = "0.2.2"
+name = "proc-macro-crate"
+version = "3.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "libc",
- "objc2 0.5.3",
- "objc2-core-data 0.2.2",
- "objc2-core-image 0.2.2",
- "objc2-foundation 0.2.2",
- "objc2-quartz-core 0.2.2",
+ "toml_edit 0.25.13+spec-1.1.0",
]
[[package]]
-name = "objc2-app-kit"
-version = "0.3.2"
+name = "proc-macro-error"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.6.2",
- "objc2 0.6.4",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation 0.3.2",
- "objc2-quartz-core 0.3.2",
+ "proc-macro-error-attr",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+ "version_check",
]
[[package]]
-name = "objc2-cloud-kit"
-version = "0.2.2"
+name = "proc-macro-error-attr"
+version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-core-location 0.2.2",
- "objc2-foundation 0.2.2",
+ "proc-macro2",
+ "quote",
+ "version_check",
]
[[package]]
-name = "objc2-cloud-kit"
-version = "0.3.2"
+name = "proc-macro2"
+version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
- "bitflags 2.13.1",
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
+ "unicode-ident",
]
[[package]]
-name = "objc2-contacts"
-version = "0.2.2"
+name = "process-wrap"
+version = "10.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
+checksum = "1f21b97672d2dc848e7b25701ab4535618b92f4861c13cc3f7f7bed52ad3c8da"
dependencies = [
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
+ "futures",
+ "indexmap 2.14.2",
+ "nix 0.31.3",
+ "tokio",
+ "tracing",
+ "windows 0.62.2",
]
[[package]]
-name = "objc2-core-data"
-version = "0.2.2"
+name = "proptest"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
+checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"
dependencies = [
+ "bit-set 0.8.0",
+ "bit-vec 0.8.0",
"bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
+ "num-traits",
+ "rand 0.9.5",
+ "rand_chacha 0.9.0",
+ "rand_xorshift",
+ "regex-syntax",
+ "rusty-fork",
+ "tempfile",
+ "unarray",
]
[[package]]
-name = "objc2-core-data"
-version = "0.3.2"
+name = "prost"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+checksum = "528ac67416ff8646872a3c02cad9cc4ee5dc9f9540c9b10771855c95cb2e5ae1"
dependencies = [
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
+ "bytes",
+ "prost-derive",
]
[[package]]
-name = "objc2-core-foundation"
-version = "0.3.2"
+name = "prost-build"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042"
dependencies = [
- "bitflags 2.13.1",
- "dispatch2",
- "objc2 0.6.4",
+ "heck 0.5.0",
+ "itertools 0.14.0",
+ "log",
+ "multimap",
+ "petgraph",
+ "prettyplease 0.2.37",
+ "prost",
+ "prost-types",
+ "regex",
+ "syn 2.0.119",
+ "tempfile",
]
[[package]]
-name = "objc2-core-graphics"
-version = "0.3.2"
+name = "prost-derive"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf"
dependencies = [
- "bitflags 2.13.1",
- "dispatch2",
- "objc2 0.6.4",
- "objc2-core-foundation",
- "objc2-io-surface",
+ "anyhow",
+ "itertools 0.14.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
]
[[package]]
-name = "objc2-core-image"
-version = "0.2.2"
+name = "prost-types"
+version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
+checksum = "f94967dc7688f3054c7fac87473ffae4cc4c3904800e2d9f5b857246d8963b0a"
dependencies = [
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
- "objc2-metal",
+ "prost",
]
[[package]]
-name = "objc2-core-image"
-version = "0.3.2"
+name = "protoc-bin-vendored"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+checksum = "8760a25b6ff9c620324822737e468478fa092234190d2e449760344354896ed9"
dependencies = [
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
+ "protoc-bin-vendored-linux-aarch_64",
+ "protoc-bin-vendored-linux-ppcle_64",
+ "protoc-bin-vendored-linux-s390_64",
+ "protoc-bin-vendored-linux-x86_32",
+ "protoc-bin-vendored-linux-x86_64",
+ "protoc-bin-vendored-macos-aarch_64",
+ "protoc-bin-vendored-macos-x86_64",
+ "protoc-bin-vendored-win32",
]
[[package]]
-name = "objc2-core-location"
-version = "0.2.2"
+name = "protoc-bin-vendored-linux-aarch_64"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-contacts",
- "objc2-foundation 0.2.2",
-]
+checksum = "73fa2624782ca04cd44f51554566717377acd240e4c0016d757dd74fccc9324f"
[[package]]
-name = "objc2-core-location"
-version = "0.3.2"
+name = "protoc-bin-vendored-linux-ppcle_64"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
-dependencies = [
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
-]
+checksum = "e2417e9817fa237dab803ad4dda7357a111656e242959cc6b8f9a1a583367d42"
[[package]]
-name = "objc2-core-text"
-version = "0.3.2"
+name = "protoc-bin-vendored-linux-s390_64"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
-dependencies = [
- "bitflags 2.13.1",
- "objc2 0.6.4",
- "objc2-core-foundation",
- "objc2-core-graphics",
-]
+checksum = "4d189c34636356a46a7ed3188233dc8a88c431278cc54d4a19b096a2d270e985"
[[package]]
-name = "objc2-encode"
-version = "4.1.0"
+name = "protoc-bin-vendored-linux-x86_32"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+checksum = "171e39f1e846e5f322ced1ac3b8d4cd3a3833ca24b6e5d58b3632574fe6204fa"
[[package]]
-name = "objc2-exception-helper"
-version = "0.1.1"
+name = "protoc-bin-vendored-linux-x86_64"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+checksum = "873cdcc097593432086661aa432b8078f1cd87bfb02847c332e98ae2c119e966"
+
+[[package]]
+name = "protoc-bin-vendored-macos-aarch_64"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eeb72df001783b8297847fe8f5f874ee400fd742c843d60583e8c23d96977c7f"
+
+[[package]]
+name = "protoc-bin-vendored-macos-x86_64"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b04652167eca899dda05f32f5481adeaf25c623a98ce2fc146a001cc59a2add7"
+
+[[package]]
+name = "protoc-bin-vendored-win32"
+version = "3.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "263a3f48f01e7309e857138bd47f785585b4a005e8e56c6d2824ce91195999c3"
+
+[[package]]
+name = "psm"
+version = "0.1.24"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "200b9ff220857e53e184257720a14553b2f4aa02577d2ed9842d45d4b9654810"
dependencies = [
"cc",
]
[[package]]
-name = "objc2-foundation"
-version = "0.2.2"
+name = "pxfm"
+version = "0.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
-dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "libc",
- "objc2 0.5.3",
-]
+checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
[[package]]
-name = "objc2-foundation"
-version = "0.3.2"
+name = "qrcode"
+version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
-dependencies = [
- "bitflags 2.13.1",
- "block2 0.6.2",
- "libc",
- "objc2 0.6.4",
- "objc2-core-foundation",
-]
+checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec"
[[package]]
-name = "objc2-io-surface"
-version = "0.3.2"
+name = "quick-error"
+version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
-dependencies = [
- "bitflags 2.13.1",
- "objc2 0.6.4",
- "objc2-core-foundation",
-]
+checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
[[package]]
-name = "objc2-link-presentation"
-version = "0.2.2"
+name = "quick-error"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
+
+[[package]]
+name = "quick-xml"
+version = "0.41.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
dependencies = [
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "memchr",
]
[[package]]
-name = "objc2-metal"
-version = "0.2.2"
+name = "quick-xml"
+version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
+ "memchr",
]
[[package]]
-name = "objc2-osa-kit"
-version = "0.3.2"
+name = "quinn"
+version = "0.11.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f112d1746737b0da274ef79a23aac283376f335f4095a083a267a082f21db0c0"
+checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
dependencies = [
- "bitflags 2.13.1",
- "objc2 0.6.4",
- "objc2-app-kit 0.3.2",
- "objc2-foundation 0.3.2",
+ "bytes",
+ "cfg_aliases 0.2.2",
+ "pin-project-lite",
+ "quinn-proto",
+ "quinn-udp",
+ "rustc-hash",
+ "rustls",
+ "socket2",
+ "thiserror 2.0.20",
+ "tokio",
+ "tracing",
+ "web-time",
]
[[package]]
-name = "objc2-quartz-core"
-version = "0.2.2"
+name = "quinn-proto"
+version = "0.11.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
+checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
- "objc2-metal",
+ "aws-lc-rs",
+ "bytes",
+ "getrandom 0.4.3",
+ "lru-slab",
+ "rand 0.10.2",
+ "rand_pcg",
+ "ring",
+ "rustc-hash",
+ "rustls",
+ "rustls-pki-types",
+ "slab",
+ "thiserror 2.0.20",
+ "tinyvec",
+ "tracing",
+ "web-time",
]
[[package]]
-name = "objc2-quartz-core"
-version = "0.3.2"
+name = "quinn-udp"
+version = "0.5.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
dependencies = [
- "bitflags 2.13.1",
- "objc2 0.6.4",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "cfg_aliases 0.2.2",
+ "libc",
+ "once_cell",
+ "socket2",
+ "tracing",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "objc2-symbols"
-version = "0.2.2"
+name = "quote"
+version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
+ "proc-macro2",
]
[[package]]
-name = "objc2-ui-kit"
-version = "0.2.2"
+name = "r-efi"
+version = "5.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
-dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-cloud-kit 0.2.2",
- "objc2-core-data 0.2.2",
- "objc2-core-image 0.2.2",
- "objc2-core-location 0.2.2",
- "objc2-foundation 0.2.2",
- "objc2-link-presentation",
- "objc2-quartz-core 0.2.2",
- "objc2-symbols",
- "objc2-uniform-type-identifiers",
- "objc2-user-notifications 0.2.2",
-]
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
[[package]]
-name = "objc2-ui-kit"
-version = "0.3.2"
+name = "r-efi"
+version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "radix_trie"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b4431027dcd37fc2a73ef740b5f233aa805897935b8bce0195e41bbf9a3289a"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.6.2",
- "objc2 0.6.4",
- "objc2-cloud-kit 0.3.2",
- "objc2-core-data 0.3.2",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-core-image 0.3.2",
- "objc2-core-location 0.3.2",
- "objc2-core-text",
- "objc2-foundation 0.3.2",
- "objc2-quartz-core 0.3.2",
- "objc2-user-notifications 0.3.2",
+ "endian-type",
+ "nibble_vec",
]
[[package]]
-name = "objc2-uniform-type-identifiers"
-version = "0.2.2"
+name = "rand"
+version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
+checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
dependencies = [
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-foundation 0.2.2",
+ "libc",
+ "rand_chacha 0.3.1",
+ "rand_core 0.6.4",
]
[[package]]
-name = "objc2-user-notifications"
-version = "0.2.2"
+name = "rand"
+version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
+checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-core-location 0.2.2",
- "objc2-foundation 0.2.2",
+ "rand_chacha 0.9.0",
+ "rand_core 0.9.5",
]
[[package]]
-name = "objc2-user-notifications"
-version = "0.3.2"
+name = "rand"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
+checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.6.2",
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
+ "chacha20 0.10.2",
+ "getrandom 0.4.3",
+ "rand_core 0.10.1",
]
[[package]]
-name = "objc2-web-kit"
-version = "0.2.2"
+name = "rand_chacha"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68bc69301064cebefc6c4c90ce9cba69225239e4b8ff99d445a2b5563797da65"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.5.1",
- "objc2 0.5.3",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "ppv-lite86",
+ "rand_core 0.6.4",
]
[[package]]
-name = "objc2-web-kit"
-version = "0.3.2"
+name = "rand_chacha"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
dependencies = [
- "bitflags 2.13.1",
- "block2 0.6.2",
- "objc2 0.6.4",
- "objc2-app-kit 0.3.2",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "ppv-lite86",
+ "rand_core 0.9.5",
]
[[package]]
-name = "oid-registry"
-version = "0.8.1"
+name = "rand_core"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7"
+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
- "asn1-rs",
+ "getrandom 0.2.17",
]
[[package]]
-name = "once_cell"
-version = "1.21.4"
+name = "rand_core"
+version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
+dependencies = [
+ "getrandom 0.3.4",
+]
[[package]]
-name = "opaque-debug"
-version = "0.3.1"
+name = "rand_core"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
[[package]]
-name = "opaquerr"
-version = "0.2.0"
+name = "rand_pcg"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f933a4265d5cdad61d19bbdfc972ea5726d56cd8d3d57b8f2d3c365dd42bee9"
+checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
+dependencies = [
+ "rand_core 0.10.1",
+]
[[package]]
-name = "open"
-version = "5.4.4"
+name = "rand_xorshift"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa576c76302b7b808eecc68061e67336c47833ef9d22caa74dda10fa9675eebc"
+checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
dependencies = [
- "dunce",
- "is-wsl",
- "libc",
+ "rand_core 0.9.5",
]
[[package]]
-name = "openssl"
-version = "0.10.81"
+name = "ratatui"
+version = "0.30.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
+checksum = "3274ba0a2c5e1bcad2a2005d20f4dc59dad26b2eb0940fb094500dba4099d57d"
dependencies = [
- "bitflags 2.13.1",
- "cfg-if",
- "foreign-types 0.3.2",
- "libc",
- "openssl-macros",
- "openssl-sys",
+ "instability",
+ "ratatui-core",
+ "ratatui-crossterm",
+ "ratatui-macros",
+ "ratatui-termina",
+ "ratatui-termwiz",
+ "ratatui-widgets",
+ "serde",
]
[[package]]
-name = "openssl-macros"
-version = "0.1.1"
+name = "ratatui-core"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
+checksum = "cbb175c433c8e28a809d1f5773a2ae96e68c0ce40db865cbab1020bf33ae479c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.119",
+ "bitflags 2.13.1",
+ "compact_str",
+ "critical-section",
+ "hashbrown 0.17.1",
+ "itertools 0.14.0",
+ "kasuari",
+ "lru",
+ "palette",
+ "serde",
+ "strum",
+ "thiserror 2.0.20",
+ "unicode-segmentation",
+ "unicode-truncate",
+ "unicode-width",
]
[[package]]
-name = "openssl-probe"
-version = "0.2.1"
+name = "ratatui-crossterm"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
+checksum = "567584a3b0e6a8203c23de40b4861497266725eb5363dbfd18a1edd603cca9f0"
+dependencies = [
+ "cfg-if",
+ "crossterm",
+ "instability",
+ "ratatui-core",
+]
[[package]]
-name = "openssl-src"
-version = "300.6.1+3.6.3"
+name = "ratatui-macros"
+version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46eb8fb9fb3b61ce1c0f8a026c4c1a0714d3a9e138e7fbde78753ce2babc3846"
+checksum = "ed7dc68daa7498a43e4d68e0eb078427e10c38fbcfbb1e42d955f1fa2140d814"
dependencies = [
- "cc",
+ "ratatui-core",
+ "ratatui-widgets",
]
[[package]]
-name = "openssl-sys"
-version = "0.9.117"
+name = "ratatui-termina"
+version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
+checksum = "c0bf912d9e66f057a759d92e386a280ea886b352ab757d6ac4d653c7ed2c43c2"
dependencies = [
- "cc",
- "libc",
- "openssl-src",
- "pkg-config",
- "vcpkg",
+ "instability",
+ "ratatui-core",
+ "termina",
]
[[package]]
-name = "option-ext"
-version = "0.2.0"
+name = "ratatui-termwiz"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+checksum = "faf03e0380b7744054d6cb74224fe3adf062a029754933f575ca1e3b4c2ce977"
+dependencies = [
+ "ratatui-core",
+ "termwiz",
+]
[[package]]
-name = "opus"
-version = "0.4.0"
+name = "ratatui-widgets"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33718946cc77d4032911d4efe03a66dbcbfbd2bb16c3da06aaeadcc637c32216"
+checksum = "66e3d19bcc9130ca376277d93b60767ff121ace3be06f5f95f81dd68956407d1"
dependencies = [
- "opusic-sys",
+ "bitflags 2.13.1",
+ "hashbrown 0.17.1",
+ "indoc",
+ "instability",
+ "itertools 0.14.0",
+ "line-clipping",
+ "ratatui-core",
+ "serde",
+ "strum",
+ "time",
+ "unicode-segmentation",
+ "unicode-width",
]
[[package]]
-name = "opusic-sys"
-version = "0.7.5"
+name = "raw-window-handle"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c9d1ecdf206421bc74343ab3bb2f30ad2abbfee41fa341f7181fecbaf957769a"
-dependencies = [
- "cmake",
-]
+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
[[package]]
-name = "ordered-multimap"
-version = "0.7.3"
+name = "rayon"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49203cdcae0030493bad186b28da2fa25645fa276a51b6fec8010d281e02ef79"
+checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
dependencies = [
- "dlv-list",
- "hashbrown 0.14.5",
+ "either",
+ "rayon-core",
]
[[package]]
-name = "ordered-stream"
-version = "0.2.0"
+name = "rayon-cond"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+checksum = "2964d0cf57a3e7a06e8183d14a8b527195c706b7983549cd5462d5aa3747438f"
dependencies = [
- "futures-core",
- "pin-project-lite",
+ "either",
+ "itertools 0.14.0",
+ "rayon",
]
[[package]]
-name = "os_pipe"
-version = "1.2.3"
+name = "rayon-core"
+version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
dependencies = [
- "libc",
- "windows-sys 0.61.2",
+ "crossbeam-deque",
+ "crossbeam-utils",
]
[[package]]
-name = "osakit"
-version = "0.3.1"
+name = "rcgen"
+version = "0.14.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "732c71caeaa72c065bb69d7ea08717bd3f4863a4f451402fc9513e29dbd5261b"
+checksum = "8774e05a7d0de114588e6a28fe7e71694b82614ed569d86d8b389dfbc98b8ad8"
dependencies = [
- "objc2 0.6.4",
- "objc2-foundation 0.3.2",
- "objc2-osa-kit",
- "serde",
- "serde_json",
- "thiserror 2.0.20",
+ "pem",
+ "ring",
+ "rustls-pki-types",
+ "time",
+ "x509-parser",
+ "yasna",
]
[[package]]
-name = "pango"
-version = "0.18.3"
+name = "redb"
+version = "3.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"
+checksum = "4ba239c1c1693315d3cc0e601db3b3965543afbf48c41730fdca2f069f510f4a"
dependencies = [
- "gio",
- "glib",
"libc",
- "once_cell",
- "pango-sys",
]
[[package]]
-name = "pango-sys"
-version = "0.18.0"
+name = "redox_syscall"
+version = "0.5.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
dependencies = [
- "glib-sys",
- "gobject-sys",
- "libc",
- "system-deps",
+ "bitflags 2.13.1",
]
[[package]]
-name = "parking"
-version = "2.2.1"
+name = "redox_users"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
+dependencies = [
+ "getrandom 0.2.17",
+ "libredox",
+ "thiserror 2.0.20",
+]
[[package]]
-name = "parking_lot"
-version = "0.12.5"
+name = "ref-cast"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
dependencies = [
- "lock_api",
- "parking_lot_core",
+ "ref-cast-impl",
]
[[package]]
-name = "parking_lot_core"
-version = "0.9.12"
+name = "ref-cast-impl"
+version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
dependencies = [
- "cfg-if",
- "libc",
- "redox_syscall",
- "smallvec",
- "windows-link 0.2.1",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
]
[[package]]
-name = "password-hash"
-version = "0.5.0"
+name = "regex"
+version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
dependencies = [
- "base64ct",
- "rand_core 0.6.4",
- "subtle",
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
]
[[package]]
-name = "pbkdf2"
-version = "0.12.2"
+name = "regex-automata"
+version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
dependencies = [
- "digest",
- "hmac",
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
]
[[package]]
-name = "pem"
-version = "4.0.0"
+name = "regex-lite"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120"
-dependencies = [
- "base64 0.23.1",
- "serde_core",
-]
+checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973"
[[package]]
-name = "percent-encoding"
-version = "2.3.2"
+name = "regex-syntax"
+version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
-name = "petgraph"
-version = "0.8.3"
+name = "reqwest"
+version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455"
+checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
dependencies = [
- "fixedbitset",
- "hashbrown 0.15.5",
- "indexmap 2.14.2",
+ "base64 0.22.1",
+ "bytes",
+ "encoding_rs",
+ "futures-channel",
+ "futures-core",
+ "futures-util",
+ "h2",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-rustls",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "mime",
+ "mime_guess",
+ "percent-encoding",
+ "pin-project-lite",
+ "quinn",
+ "rustls",
+ "rustls-pki-types",
+ "rustls-platform-verifier",
+ "serde",
+ "serde_json",
+ "serde_urlencoded",
+ "sync_wrapper",
+ "tokio",
+ "tokio-rustls",
+ "tokio-util",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wasm-streams",
+ "web-sys",
]
[[package]]
-name = "phf"
-version = "0.13.1"
+name = "reqwest-middleware"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+checksum = "07bc3f1384cffa4f274dad2d4ddd73aed32fed8f786d96c6be8aa4e5fd3c3b58"
dependencies = [
- "phf_macros",
- "phf_shared",
- "serde",
+ "anyhow",
+ "async-trait",
+ "http",
+ "reqwest",
+ "thiserror 2.0.20",
+ "tower-service",
]
[[package]]
-name = "phf_codegen"
-version = "0.13.1"
+name = "rfd"
+version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
+checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"
dependencies = [
- "phf_generator",
- "phf_shared",
+ "block2 0.6.2",
+ "dispatch2",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "js-sys",
+ "log",
+ "objc2 0.6.4",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "raw-window-handle",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "windows-sys 0.60.2",
]
[[package]]
-name = "phf_generator"
-version = "0.13.1"
+name = "ring"
+version = "0.17.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
dependencies = [
- "fastrand",
- "phf_shared",
+ "cc",
+ "cfg-if",
+ "getrandom 0.2.17",
+ "libc",
+ "untrusted",
+ "windows-sys 0.52.0",
]
[[package]]
-name = "phf_macros"
-version = "0.13.1"
+name = "ringbuf"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+checksum = "79abed428d1fd2a128201cec72c5f6938e2da607c6f3745f769fabea399d950a"
dependencies = [
- "phf_generator",
- "phf_shared",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
+ "crossbeam-utils",
]
[[package]]
-name = "phf_shared"
-version = "0.13.1"
+name = "rmcp"
+version = "3.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+checksum = "d24a7e92f4bcaa36b97fa93c4fa7ca8f3e669eced949345b3462dba333c7f909"
dependencies = [
- "siphasher",
+ "async-trait",
+ "base64 0.23.1",
+ "bytes",
+ "chrono",
+ "futures",
+ "http",
+ "http-body",
+ "http-body-util",
+ "indexmap 2.14.2",
+ "libc",
+ "pastey",
+ "pin-project-lite",
+ "process-wrap",
+ "rand 0.10.2",
+ "reqwest",
+ "rmcp-macros",
+ "schemars 1.2.2",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "sse-stream",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-stream",
+ "tokio-util",
+ "tower-service",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "pin-project-lite"
-version = "0.2.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
-
-[[package]]
-name = "piper"
-version = "0.2.5"
+name = "rmcp-macros"
+version = "3.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+checksum = "b3140f24a766f80f9ec1607bde85680959a69b83d46fa9ce87dadab7e67ab029"
dependencies = [
- "atomic-waker",
- "fastrand",
- "futures-io",
+ "darling 0.24.1",
+ "proc-macro2",
+ "quote",
+ "serde_json",
+ "syn 3.0.5",
]
[[package]]
-name = "pkg-config"
-version = "0.3.34"
+name = "rpassword"
+version = "7.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+checksum = "2da316a15f47e3d053de9cb2c439650bd8fa4aaeb9365f2e5f27f492ff73c196"
+dependencies = [
+ "libc",
+ "rtoolbox",
+ "windows-sys 0.61.2",
+]
[[package]]
-name = "plist"
-version = "1.10.1"
+name = "rsqlite-vfs"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb"
+checksum = "c51c9ae4df8a7fba42103df5c621fa3c37eccf3a3c650879e90fc48b11cc192c"
dependencies = [
- "base64 0.23.1",
- "indexmap 2.14.2",
- "quick-xml 0.42.0",
- "serde",
- "time",
+ "hashbrown 0.16.1",
+ "thiserror 2.0.20",
]
[[package]]
-name = "png"
-version = "0.17.16"
+name = "rtoolbox"
+version = "0.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
+checksum = "9a1efe12a1469752d0e6ff5ebec0b6ef4924cc5c4c71046b0ec730040535819d"
dependencies = [
- "bitflags 1.3.2",
- "crc32fast",
- "fdeflate",
- "flate2",
- "miniz_oxide 0.8.9",
+ "libc",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "png"
-version = "0.18.1"
+name = "rusqlite"
+version = "0.40.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+checksum = "23f2a97da3e3873c73cb2a2e71b35c40ff95e0b1eefa8d72d8499a6928c3b5b3"
dependencies = [
"bitflags 2.13.1",
- "crc32fast",
- "fdeflate",
- "flate2",
- "miniz_oxide 0.8.9",
+ "fallible-iterator",
+ "fallible-streaming-iterator",
+ "hashlink",
+ "libsqlite3-sys",
+ "smallvec",
+ "sqlite-wasm-rs",
]
[[package]]
-name = "polling"
-version = "3.11.0"
+name = "rust-ini"
+version = "0.21.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+checksum = "4e310ef0e1b6eeb79169a1171daf9abcb87a2e17c03bee2c4bb100b55c75409f"
dependencies = [
"cfg-if",
- "concurrent-queue",
- "hermit-abi",
- "pin-project-lite",
- "rustix",
- "windows-sys 0.61.2",
+ "ordered-multimap",
+ "trim-in-place",
]
[[package]]
-name = "poly1305"
-version = "0.8.0"
+name = "rustc-hash"
+version = "2.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf"
-dependencies = [
- "cpufeatures 0.2.17",
- "opaque-debug",
- "universal-hash",
-]
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
[[package]]
-name = "portable-atomic"
-version = "1.15.0"
+name = "rustc_version"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
[[package]]
-name = "portable-atomic-util"
-version = "0.2.8"
+name = "rusticata-macros"
+version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
+checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
dependencies = [
- "portable-atomic",
+ "nom 7.1.3",
]
[[package]]
-name = "portable-pty"
-version = "0.9.0"
+name = "rustix"
+version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4a596a2b3d2752d94f51fac2d4a96737b8705dddd311a32b9af47211f08671e"
+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
dependencies = [
- "anyhow",
- "bitflags 1.3.2",
- "downcast-rs",
- "filedescriptor",
- "lazy_static",
+ "bitflags 2.13.1",
+ "errno",
"libc",
- "log",
- "nix 0.28.0",
- "serial2",
- "shared_library",
- "shell-words",
- "winapi",
- "winreg 0.10.1",
+ "linux-raw-sys",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "potential_utf"
-version = "0.1.6"
+name = "rustix-linux-procfs"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+checksum = "2fc84bf7e9aa16c4f2c758f27412dc9841341e16aa682d9c7ac308fe3ee12056"
dependencies = [
- "zerovec",
+ "once_cell",
+ "rustix",
]
[[package]]
-name = "powerfmt"
-version = "0.2.0"
+name = "rustls"
+version = "0.23.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
+checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
+dependencies = [
+ "aws-lc-rs",
+ "log",
+ "once_cell",
+ "ring",
+ "rustls-pki-types",
+ "rustls-webpki",
+ "subtle",
+ "zeroize",
+]
[[package]]
-name = "ppv-lite86"
-version = "0.2.21"
+name = "rustls-native-certs"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
+checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
dependencies = [
- "zerocopy",
+ "openssl-probe",
+ "rustls-pki-types",
+ "schannel",
+ "security-framework",
]
[[package]]
-name = "precomputed-hash"
-version = "0.1.1"
+name = "rustls-pki-types"
+version = "1.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
+dependencies = [
+ "web-time",
+ "zeroize",
+]
[[package]]
-name = "proc-macro-crate"
-version = "1.3.1"
+name = "rustls-platform-verifier"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
+checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0"
dependencies = [
+ "core-foundation 0.10.1",
+ "core-foundation-sys",
+ "jni 0.22.4",
+ "log",
"once_cell",
- "toml_edit 0.19.15",
+ "rustls",
+ "rustls-native-certs",
+ "rustls-platform-verifier-android",
+ "rustls-webpki",
+ "security-framework",
+ "security-framework-sys",
+ "webpki-root-certs",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "proc-macro-crate"
-version = "2.0.2"
+name = "rustls-platform-verifier-android"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
-dependencies = [
- "toml_datetime 0.6.3",
- "toml_edit 0.20.2",
-]
+checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
[[package]]
-name = "proc-macro-crate"
-version = "3.5.0"
+name = "rustls-webpki"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
- "toml_edit 0.25.13+spec-1.1.0",
+ "aws-lc-rs",
+ "ring",
+ "rustls-pki-types",
+ "untrusted",
]
[[package]]
-name = "proc-macro-error"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
-dependencies = [
- "proc-macro-error-attr",
- "proc-macro2",
- "quote",
- "syn 1.0.109",
- "version_check",
-]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
[[package]]
-name = "proc-macro-error-attr"
-version = "1.0.4"
+name = "rusty-fork"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"
dependencies = [
- "proc-macro2",
- "quote",
- "version_check",
+ "fnv",
+ "quick-error 1.2.3",
+ "tempfile",
+ "wait-timeout",
]
[[package]]
-name = "proc-macro2"
-version = "1.0.107"
+name = "rustyline"
+version = "18.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+checksum = "53f6a737db68eb1a8ccff86b584b2fc13eca6a7bb6f78ebc7c529547e3ab9684"
dependencies = [
- "unicode-ident",
+ "bitflags 2.13.1",
+ "cfg-if",
+ "clipboard-win",
+ "home",
+ "libc",
+ "log",
+ "memchr",
+ "nix 0.31.3",
+ "radix_trie",
+ "unicode-segmentation",
+ "unicode-width",
+ "utf8parse",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "proptest"
-version = "1.11.0"
+name = "ryu"
+version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"
-dependencies = [
- "bit-set",
- "bit-vec 0.8.0",
- "bitflags 2.13.1",
- "num-traits",
- "rand 0.9.5",
- "rand_chacha 0.9.0",
- "rand_xorshift",
- "regex-syntax",
- "rusty-fork",
- "tempfile",
- "unarray",
-]
+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
[[package]]
-name = "pxfm"
-version = "0.1.30"
+name = "safe-transmute"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
+checksum = "3944826ff8fa8093089aba3acb4ef44b9446a99a16f3bf4e74af3f77d340ab7d"
[[package]]
-name = "qrcode"
-version = "0.14.1"
+name = "safetensors"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec"
+checksum = "79b079b829cb27a1c3c374341345ed2e8b2c0c839034522cee576c140bd7f846"
+dependencies = [
+ "hashbrown 0.16.1",
+ "libc",
+ "serde",
+ "serde_json",
+ "tempfile",
+]
[[package]]
-name = "quick-error"
-version = "1.2.3"
+name = "salsa20"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
+checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213"
+dependencies = [
+ "cipher 0.4.4",
+]
[[package]]
-name = "quick-error"
-version = "2.0.1"
+name = "same-file"
+version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
[[package]]
-name = "quick-xml"
-version = "0.41.0"
+name = "schannel"
+version = "0.1.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
+checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
dependencies = [
- "memchr",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "quick-xml"
-version = "0.42.0"
+name = "schemars"
+version = "0.8.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
dependencies = [
- "memchr",
+ "dyn-clone",
+ "indexmap 1.9.3",
+ "schemars_derive 0.8.22",
+ "serde",
+ "serde_json",
+ "url",
+ "uuid",
]
[[package]]
-name = "quinn"
-version = "0.11.11"
+name = "schemars"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
dependencies = [
- "bytes",
- "cfg_aliases 0.2.2",
- "pin-project-lite",
- "quinn-proto",
- "quinn-udp",
- "rustc-hash",
- "rustls",
- "socket2",
- "thiserror 2.0.20",
- "tokio",
- "tracing",
- "web-time",
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
]
[[package]]
-name = "quinn-proto"
-version = "0.11.17"
+name = "schemars"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83"
+checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"
dependencies = [
- "aws-lc-rs",
- "bytes",
- "getrandom 0.4.3",
- "lru-slab",
- "rand 0.10.2",
- "rand_pcg",
- "ring",
- "rustc-hash",
- "rustls",
- "rustls-pki-types",
- "slab",
- "thiserror 2.0.20",
- "tinyvec",
- "tracing",
- "web-time",
+ "chrono",
+ "dyn-clone",
+ "ref-cast",
+ "schemars_derive 1.2.2",
+ "serde",
+ "serde_json",
]
[[package]]
-name = "quinn-udp"
-version = "0.5.15"
+name = "schemars_derive"
+version = "0.8.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
dependencies = [
- "cfg_aliases 0.2.2",
- "libc",
- "once_cell",
- "socket2",
- "tracing",
- "windows-sys 0.61.2",
+ "proc-macro2",
+ "quote",
+ "serde_derive_internals 0.29.1",
+ "syn 2.0.119",
]
[[package]]
-name = "quote"
-version = "1.0.47"
+name = "schemars_derive"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+checksum = "d98c67716b46af2f0b8cf752abc930f6f9aecfbf671ecfb531db8a31dbe4e2ba"
dependencies = [
"proc-macro2",
+ "quote",
+ "serde_derive_internals 0.30.0",
+ "syn 3.0.5",
]
[[package]]
-name = "r-efi"
-version = "5.3.0"
+name = "scoped-tls"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
[[package]]
-name = "r-efi"
-version = "6.0.0"
+name = "scopeguard"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
-name = "rand"
-version = "0.8.8"
+name = "secp256k1"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
+checksum = "b50c5943d326858130af85e049f2661ba3c78b26589b8ab98e65e80ae44a1252"
dependencies = [
- "libc",
- "rand_chacha 0.3.1",
- "rand_core 0.6.4",
+ "bitcoin_hashes 0.14.101",
+ "rand 0.8.8",
+ "secp256k1-sys 0.10.1",
]
[[package]]
-name = "rand"
-version = "0.9.5"
+name = "secp256k1"
+version = "0.31.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
+checksum = "2c3c81b43dc2d8877c216a3fccf76677ee1ebccd429566d3e67447290d0c42b2"
dependencies = [
- "rand_chacha 0.9.0",
- "rand_core 0.9.5",
+ "bitcoin_hashes 0.14.101",
+ "rand 0.9.5",
+ "secp256k1-sys 0.11.0",
]
[[package]]
-name = "rand"
-version = "0.10.2"
+name = "secp256k1-sys"
+version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
+checksum = "d4387882333d3aa8cb20530a17c69a3752e97837832f34f6dccc760e715001d9"
dependencies = [
- "chacha20 0.10.2",
- "getrandom 0.4.3",
- "rand_core 0.10.1",
+ "cc",
]
[[package]]
-name = "rand_chacha"
-version = "0.3.1"
+name = "secp256k1-sys"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+checksum = "dcb913707158fadaf0d8702c2db0e857de66eb003ccfdda5924b5f5ac98efb38"
dependencies = [
- "ppv-lite86",
- "rand_core 0.6.4",
+ "cc",
]
[[package]]
-name = "rand_chacha"
-version = "0.9.0"
+name = "secret-service"
+version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
+checksum = "e4d35ad99a181be0a60ffcbe85d680d98f87bdc4d7644ade319b87076b9dbfd4"
dependencies = [
- "ppv-lite86",
- "rand_core 0.9.5",
+ "aes 0.8.4",
+ "cbc 0.1.2",
+ "futures-util",
+ "generic-array",
+ "hkdf 0.12.4",
+ "num",
+ "once_cell",
+ "rand 0.8.8",
+ "serde",
+ "sha2 0.10.9",
+ "zbus 4.4.0",
]
[[package]]
-name = "rand_core"
-version = "0.6.4"
+name = "secret-service"
+version = "5.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
+checksum = "5107b24b91445dd2aa449a258a1807b63240942157292354dc5bfdbeb8bc6db8"
dependencies = [
- "getrandom 0.2.17",
+ "aes 0.9.4",
+ "cbc 0.2.1",
+ "futures-util",
+ "getrandom 0.4.3",
+ "hkdf 0.13.0",
+ "hybrid-array",
+ "num",
+ "once_cell",
+ "serde",
+ "sha2 0.11.1",
+ "zbus 5.19.0",
+]
+
+[[package]]
+name = "security-framework"
+version = "3.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
+dependencies = [
+ "bitflags 2.13.1",
+ "core-foundation 0.10.1",
+ "core-foundation-sys",
+ "libc",
+ "security-framework-sys",
]
[[package]]
-name = "rand_core"
-version = "0.9.5"
+name = "security-framework-sys"
+version = "2.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
dependencies = [
- "getrandom 0.3.4",
+ "core-foundation-sys",
+ "libc",
]
[[package]]
-name = "rand_core"
-version = "0.10.1"
+name = "seize"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
+checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521"
[[package]]
-name = "rand_pcg"
-version = "0.10.2"
+name = "selectors"
+version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
dependencies = [
- "rand_core 0.10.1",
+ "bitflags 2.13.1",
+ "cssparser",
+ "derive_more",
+ "log",
+ "new_debug_unreachable",
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
+ "precomputed-hash",
+ "rustc-hash",
+ "servo_arc",
+ "smallvec",
]
[[package]]
-name = "rand_xorshift"
-version = "0.4.0"
+name = "semver"
+version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
dependencies = [
- "rand_core 0.9.5",
+ "serde",
+ "serde_core",
]
[[package]]
-name = "raw-window-handle"
-version = "0.6.2"
+name = "send_wrapper"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73"
[[package]]
-name = "rcgen"
-version = "0.14.10"
+name = "serde"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8774e05a7d0de114588e6a28fe7e71694b82614ed569d86d8b389dfbc98b8ad8"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
- "pem",
- "ring",
- "rustls-pki-types",
- "time",
- "x509-parser",
- "yasna",
+ "serde_core",
+ "serde_derive",
]
[[package]]
-name = "redox_syscall"
-version = "0.5.18"
+name = "serde-untagged"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
dependencies = [
- "bitflags 2.13.1",
+ "erased-serde",
+ "serde",
+ "serde_core",
+ "typeid",
]
[[package]]
-name = "redox_users"
-version = "0.5.2"
+name = "serde_bytes"
+version = "0.11.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
+checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8"
dependencies = [
- "getrandom 0.2.17",
- "libredox",
- "thiserror 2.0.20",
+ "serde",
+ "serde_core",
]
[[package]]
-name = "ref-cast"
-version = "1.0.27"
+name = "serde_core"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
dependencies = [
- "ref-cast-impl",
+ "serde_derive",
]
[[package]]
-name = "ref-cast-impl"
-version = "1.0.27"
+name = "serde_derive"
+version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
@@ -4764,780 +9150,826 @@ dependencies = [
]
[[package]]
-name = "regex"
-version = "1.13.1"
+name = "serde_derive_internals"
+version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
dependencies = [
- "aho-corasick",
- "memchr",
- "regex-automata",
- "regex-syntax",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
]
[[package]]
-name = "regex-automata"
-version = "0.4.18"
+name = "serde_derive_internals"
+version = "0.30.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+checksum = "f852137cce035d6a4df67ccce505ff6b3e9fd3a10e3e52b24dc71e650bb1a9bd"
dependencies = [
- "aho-corasick",
- "memchr",
- "regex-syntax",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
]
[[package]]
-name = "regex-syntax"
-version = "0.8.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
-
-[[package]]
-name = "reqwest"
-version = "0.13.4"
+name = "serde_json"
+version = "1.0.151"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
dependencies = [
- "base64 0.22.1",
- "bytes",
- "futures-core",
- "futures-util",
- "http",
- "http-body",
- "http-body-util",
- "hyper",
- "hyper-rustls",
- "hyper-util",
- "js-sys",
- "log",
- "percent-encoding",
- "pin-project-lite",
- "quinn",
- "rustls",
- "rustls-pki-types",
- "rustls-platform-verifier",
+ "itoa",
+ "memchr",
"serde",
- "serde_json",
- "sync_wrapper",
- "tokio",
- "tokio-rustls",
- "tokio-util",
- "tower",
- "tower-http",
- "tower-service",
- "url",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "wasm-streams",
- "web-sys",
+ "serde_core",
+ "zmij",
]
[[package]]
-name = "rfd"
-version = "0.16.0"
+name = "serde_path_to_error"
+version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"
+checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
dependencies = [
- "block2 0.6.2",
- "dispatch2",
- "glib-sys",
- "gobject-sys",
- "gtk-sys",
- "js-sys",
- "log",
- "objc2 0.6.4",
- "objc2-app-kit 0.3.2",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
- "raw-window-handle",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "web-sys",
- "windows-sys 0.60.2",
+ "itoa",
+ "serde",
+ "serde_core",
]
[[package]]
-name = "ring"
-version = "0.17.14"
+name = "serde_repr"
+version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
+checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
dependencies = [
- "cc",
- "cfg-if",
- "getrandom 0.2.17",
- "libc",
- "untrusted",
- "windows-sys 0.52.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
]
[[package]]
-name = "ringbuf"
-version = "0.3.3"
+name = "serde_spanned"
+version = "0.6.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79abed428d1fd2a128201cec72c5f6938e2da607c6f3745f769fabea399d950a"
+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
dependencies = [
- "crossbeam-utils",
+ "serde",
]
[[package]]
-name = "rsqlite-vfs"
-version = "0.1.1"
+name = "serde_spanned"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c51c9ae4df8a7fba42103df5c621fa3c37eccf3a3c650879e90fc48b11cc192c"
+checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
dependencies = [
- "hashbrown 0.16.1",
- "thiserror 2.0.20",
+ "serde_core",
]
[[package]]
-name = "rusqlite"
-version = "0.38.0"
+name = "serde_urlencoded"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1c93dd1c9683b438c392c492109cb702b8090b2bfc8fed6f6e4eb4523f17af3"
+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
dependencies = [
- "bitflags 2.13.1",
- "fallible-iterator",
- "fallible-streaming-iterator",
- "hashlink",
- "libsqlite3-sys",
- "smallvec",
- "sqlite-wasm-rs",
+ "form_urlencoded",
+ "itoa",
+ "ryu",
+ "serde",
]
[[package]]
-name = "rust-ini"
-version = "0.21.1"
+name = "serde_with"
+version = "3.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e310ef0e1b6eeb79169a1171daf9abcb87a2e17c03bee2c4bb100b55c75409f"
+checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f"
dependencies = [
- "cfg-if",
- "ordered-multimap",
- "trim-in-place",
-]
-
-[[package]]
-name = "rustc-hash"
-version = "2.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+ "base64 0.23.1",
+ "bs58",
+ "chrono",
+ "hex",
+ "indexmap 1.9.3",
+ "indexmap 2.14.2",
+ "jiff",
+ "schemars 0.9.0",
+ "schemars 1.2.2",
+ "serde_core",
+ "serde_json",
+ "serde_with_macros",
+ "time",
+]
[[package]]
-name = "rustc_version"
-version = "0.4.1"
+name = "serde_with_macros"
+version = "3.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49"
dependencies = [
- "semver",
+ "darling 0.24.1",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.5",
]
[[package]]
-name = "rusticata-macros"
-version = "4.1.0"
+name = "serdect"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
+checksum = "66cf8fedced2fcf12406bcb34223dffb92eaf34908ede12fed414c82b7f00b3e"
dependencies = [
- "nom 7.1.3",
+ "base16ct",
+ "serde",
]
[[package]]
-name = "rustix"
-version = "1.1.4"
+name = "serial2"
+version = "0.2.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
+checksum = "b16809bc35793b19ce4e0c53924bc0dce3937f15487997cfdaed936004180730"
dependencies = [
- "bitflags 2.13.1",
- "errno",
+ "cfg-if",
"libc",
- "linux-raw-sys",
"windows-sys 0.61.2",
]
[[package]]
-name = "rustix-linux-procfs"
-version = "0.1.1"
+name = "serialize-to-javascript"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2fc84bf7e9aa16c4f2c758f27412dc9841341e16aa682d9c7ac308fe3ee12056"
+checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"
dependencies = [
- "once_cell",
- "rustix",
+ "serde",
+ "serde_json",
+ "serialize-to-javascript-impl",
]
[[package]]
-name = "rustls"
-version = "0.23.46"
+name = "serialize-to-javascript-impl"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
+checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
dependencies = [
- "aws-lc-rs",
- "once_cell",
- "ring",
- "rustls-pki-types",
- "rustls-webpki",
- "subtle",
- "zeroize",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
]
[[package]]
-name = "rustls-native-certs"
-version = "0.8.4"
+name = "servo_arc"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
dependencies = [
- "openssl-probe",
- "rustls-pki-types",
- "schannel",
- "security-framework",
+ "stable_deref_trait",
]
[[package]]
-name = "rustls-pki-types"
-version = "1.15.1"
+name = "sha1"
+version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
+checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
dependencies = [
- "web-time",
- "zeroize",
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "digest 0.10.7",
]
[[package]]
-name = "rustls-platform-verifier"
-version = "0.7.0"
+name = "sha1_smol"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26d1e2536ce4f35f4846aa13bff16bd0ff40157cdb14cc056c7b14ba41233ba0"
-dependencies = [
- "core-foundation 0.10.1",
- "core-foundation-sys",
- "jni 0.22.4",
- "log",
- "once_cell",
- "rustls",
- "rustls-native-certs",
- "rustls-platform-verifier-android",
- "rustls-webpki",
- "security-framework",
- "security-framework-sys",
- "webpki-root-certs",
- "windows-sys 0.61.2",
-]
+checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"
[[package]]
-name = "rustls-platform-verifier-android"
-version = "0.1.1"
+name = "sha2"
+version = "0.10.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "digest 0.10.7",
+]
[[package]]
-name = "rustls-webpki"
-version = "0.103.16"
+name = "sha2"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
+checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19"
dependencies = [
- "aws-lc-rs",
- "ring",
- "rustls-pki-types",
- "untrusted",
+ "cfg-if",
+ "cpufeatures 0.3.1",
+ "digest 0.11.3",
]
[[package]]
-name = "rustversion"
-version = "1.0.23"
+name = "sharded-slab"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
+dependencies = [
+ "lazy_static",
+]
[[package]]
-name = "rusty-fork"
-version = "0.3.1"
+name = "shared_library"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"
+checksum = "5a9e7e0f2bfae24d8a5b5a66c5b257a83c7412304311512a0c054cd5e619da11"
dependencies = [
- "fnv",
- "quick-error 1.2.3",
- "tempfile",
- "wait-timeout",
+ "lazy_static",
+ "libc",
]
[[package]]
-name = "salsa20"
-version = "0.10.2"
+name = "shell-words"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213"
-dependencies = [
- "cipher",
-]
+checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
[[package]]
-name = "same-file"
-version = "1.0.6"
+name = "shellexpand"
+version = "3.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+checksum = "32824fab5e16e6c4d86dc1ba84489390419a39f97699852b66480bb87d297ed8"
dependencies = [
- "winapi-util",
+ "bstr",
+ "dirs 6.0.0",
+ "os_str_bytes",
]
[[package]]
-name = "schannel"
-version = "0.1.29"
+name = "shlex"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
-dependencies = [
- "windows-sys 0.61.2",
-]
+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
-name = "schemars"
-version = "0.8.22"
+name = "shlex"
+version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
-dependencies = [
- "dyn-clone",
- "indexmap 1.9.3",
- "schemars_derive",
- "serde",
- "serde_json",
- "url",
- "uuid",
-]
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
[[package]]
-name = "schemars"
-version = "0.9.0"
+name = "signal-hook"
+version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
+checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
dependencies = [
- "dyn-clone",
- "ref-cast",
- "serde",
- "serde_json",
+ "libc",
+ "signal-hook-registry",
]
[[package]]
-name = "schemars"
-version = "1.2.2"
+name = "signal-hook-mio"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"
+checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
dependencies = [
- "dyn-clone",
- "ref-cast",
- "serde",
- "serde_json",
+ "libc",
+ "mio",
+ "signal-hook",
]
[[package]]
-name = "schemars_derive"
-version = "0.8.22"
+name = "signal-hook-registry"
+version = "1.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
dependencies = [
- "proc-macro2",
- "quote",
- "serde_derive_internals",
- "syn 2.0.119",
+ "errno",
+ "libc",
]
[[package]]
-name = "scopeguard"
-version = "1.2.0"
+name = "signature"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
+dependencies = [
+ "rand_core 0.6.4",
+]
[[package]]
-name = "scrypt"
-version = "0.11.0"
+name = "signature"
+version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0516a385866c09368f0b5bcd1caff3366aace790fcd46e2bb032697bb172fd1f"
+checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5"
dependencies = [
- "password-hash",
- "pbkdf2",
- "salsa20",
- "sha2",
+ "rand_core 0.10.1",
]
[[package]]
-name = "secp256k1"
-version = "0.29.1"
+name = "simd-adler32"
+version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9465315bc9d4566e1724f0fffcbcc446268cb522e60f9a27bcded6b19c108113"
-dependencies = [
- "rand 0.8.8",
- "secp256k1-sys 0.10.1",
- "serde",
-]
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
[[package]]
-name = "secp256k1"
-version = "0.30.0"
+name = "simd_cesu8"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b50c5943d326858130af85e049f2661ba3c78b26589b8ab98e65e80ae44a1252"
+checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520"
dependencies = [
- "bitcoin_hashes 0.14.101",
- "rand 0.8.8",
- "secp256k1-sys 0.10.1",
+ "rustc_version",
+ "simdutf8",
]
[[package]]
-name = "secp256k1"
-version = "0.31.1"
+name = "simdutf8"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c3c81b43dc2d8877c216a3fccf76677ee1ebccd429566d3e67447290d0c42b2"
-dependencies = [
- "bitcoin_hashes 0.14.101",
- "rand 0.9.5",
- "secp256k1-sys 0.11.0",
-]
+checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
[[package]]
-name = "secp256k1-sys"
-version = "0.10.1"
+name = "simple-dns"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4387882333d3aa8cb20530a17c69a3752e97837832f34f6dccc760e715001d9"
+checksum = "2b6f884fa9a8d48101774bfbd3aeb81e968dd22cffd19a372da69f183db22c1a"
dependencies = [
- "cc",
+ "bitflags 2.13.1",
]
[[package]]
-name = "secp256k1-sys"
-version = "0.11.0"
+name = "siphasher"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dcb913707158fadaf0d8702c2db0e857de66eb003ccfdda5924b5f5ac98efb38"
+checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
+
+[[package]]
+name = "skippy-api"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "cc",
+ "anyhow",
+ "hex",
+ "reqwest",
+ "same-file",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-cache",
+ "skippy-config",
+ "skippy-ffi",
+ "skippy-hf-hub",
+ "skippy-inference-api",
+ "skippy-model",
+ "skippy-model-artifact",
+ "skippy-model-hf",
+ "skippy-model-ref",
+ "skippy-native-runtime",
+ "skippy-package-format",
+ "skippy-protocol",
+ "skippy-runtime",
+ "skippy-runtime-install",
+ "skippy-serving",
+ "tokio",
+ "tracing",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "secret-service"
-version = "4.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4d35ad99a181be0a60ffcbe85d680d98f87bdc4d7644ade319b87076b9dbfd4"
+name = "skippy-cache"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "aes",
- "cbc",
- "futures-util",
- "generic-array",
- "hkdf",
- "num",
- "once_cell",
- "rand 0.8.8",
+ "anyhow",
+ "blake3",
+ "fs2",
+ "libc",
"serde",
- "sha2",
- "zbus 4.4.0",
+ "serde_json",
+ "skippy-protocol",
+ "windows-sys 0.61.2",
]
[[package]]
-name = "security-framework"
-version = "3.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
+name = "skippy-commands"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "bitflags 2.13.1",
- "core-foundation 0.10.1",
- "core-foundation-sys",
- "libc",
- "security-framework-sys",
+ "anyhow",
+ "chrono",
+ "clap",
+ "crossterm",
+ "futures",
+ "hex",
+ "ratatui",
+ "reqwest",
+ "rustyline",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-api",
+ "skippy-events",
+ "skippy-hardware-profile",
+ "skippy-hf-hub",
+ "skippy-model-artifact",
+ "skippy-model-hf",
+ "skippy-model-package",
+ "skippy-model-ref",
+ "skippy-model-resolver",
+ "skippy-package-format",
+ "skippy-protocol",
+ "skippy-runtime-install",
+ "skippy-topology",
+ "tabwriter",
+ "tokio",
+ "uuid",
]
[[package]]
-name = "security-framework-sys"
-version = "2.17.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
+name = "skippy-config"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "core-foundation-sys",
- "libc",
+ "anyhow",
+ "serde",
+ "serde_json",
+ "skippy-protocol",
]
[[package]]
-name = "selectors"
-version = "0.38.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
+name = "skippy-coordinator"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "bitflags 2.13.1",
- "cssparser",
- "derive_more",
- "log",
- "new_debug_unreachable",
- "phf",
- "phf_codegen",
- "precomputed-hash",
- "rustc-hash",
- "servo_arc",
- "smallvec",
+ "skippy-model-artifact",
+ "thiserror 2.0.20",
]
[[package]]
-name = "semver"
-version = "1.0.28"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+name = "skippy-events"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
"serde",
- "serde_core",
+ "uuid",
]
[[package]]
-name = "serde"
-version = "1.0.229"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+name = "skippy-ffi"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "serde_core",
- "serde_derive",
+ "bindgen",
+ "libloading 0.9.0",
]
[[package]]
-name = "serde-untagged"
-version = "0.1.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
+name = "skippy-gpu-bench"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "erased-serde",
"serde",
- "serde_core",
- "typeid",
+ "serde_json",
+ "tracing",
]
[[package]]
-name = "serde_core"
-version = "1.0.229"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+name = "skippy-guardrails"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "serde_derive",
+ "serde_json",
]
[[package]]
-name = "serde_derive"
-version = "1.0.229"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+name = "skippy-hardware-profile"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 3.0.5",
+ "libc",
+ "libloading 0.8.9",
+ "serde_json",
+ "skippy-native-runtime",
+ "sysinfo 0.38.4",
]
[[package]]
-name = "serde_derive_internals"
-version = "0.29.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
+name = "skippy-hf-hub"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.119",
+ "base64 0.22.1",
+ "bon",
+ "bytes",
+ "futures",
+ "getrandom 0.2.17",
+ "globset",
+ "hf-xet",
+ "hyper",
+ "libc",
+ "pathdiff",
+ "percent-encoding",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-retry",
+ "tokio-util",
+ "tracing",
+ "url",
+ "wasm-bindgen-futures",
]
[[package]]
-name = "serde_json"
-version = "1.0.151"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
+name = "skippy-inference-api"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "itoa",
- "memchr",
+ "async-trait",
+ "axum",
+ "base64 0.22.1",
+ "futures-core",
+ "futures-util",
+ "http-body",
"serde",
- "serde_core",
- "zmij",
+ "serde_json",
+ "sha2 0.10.9",
+ "skippy-events",
+ "skippy-guardrails",
+ "tokio",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "serde_repr"
-version = "0.1.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
+name = "skippy-metrics"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+
+[[package]]
+name = "skippy-model"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 3.0.5",
+ "anyhow",
+ "clap",
+ "libc",
+ "memmap2",
+ "safetensors",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-package-format",
]
[[package]]
-name = "serde_spanned"
-version = "0.6.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
+name = "skippy-model-artifact"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
+ "anyhow",
+ "async-trait",
"serde",
+ "serde_json",
+ "skippy-model-ref",
]
[[package]]
-name = "serde_spanned"
-version = "1.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
+name = "skippy-model-hf"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "serde_core",
+ "anyhow",
+ "async-trait",
+ "chrono",
+ "dirs 6.0.0",
+ "hex",
+ "libc",
+ "regex-lite",
+ "rustls",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-hf-hub",
+ "skippy-model-artifact",
+ "skippy-model-ref",
+ "skippy-model-resolver",
+ "tokio",
+ "tokio-stream",
+ "tracing",
]
[[package]]
-name = "serde_with"
-version = "3.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee78f1fbe43ac4a0e47aadb3dbd357b69eb0d3793e948624cd03dd2750ab1c0a"
+name = "skippy-model-package"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
+ "anyhow",
"base64 0.22.1",
- "bs58",
+ "bytes",
"chrono",
- "hex",
- "indexmap 1.9.3",
- "indexmap 2.14.2",
- "jiff",
- "schemars 0.9.0",
- "schemars 1.2.2",
- "serde_core",
+ "clap",
+ "futures",
+ "libc",
+ "reqwest",
+ "serde",
"serde_json",
- "serde_with_macros",
- "time",
+ "sha2 0.11.1",
+ "signal-hook-registry",
+ "skippy-hf-hub",
+ "skippy-model-hf",
+ "skippy-model-ref",
+ "skippy-package-format",
+ "tempfile",
+ "tokenizers",
+ "tokio",
]
[[package]]
-name = "serde_with_macros"
-version = "3.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8705578779c2b6bd90d84d66eb2e206b708b1a4d7b9f17641b293545bf1c7e46"
+name = "skippy-model-ref"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "darling",
- "proc-macro2",
- "quote",
- "syn 2.0.119",
+ "serde",
]
[[package]]
-name = "serial2"
-version = "0.2.38"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b16809bc35793b19ce4e0c53924bc0dce3937f15487997cfdaed936004180730"
+name = "skippy-model-resolver"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "cfg-if",
- "libc",
- "windows-sys 0.61.2",
+ "anyhow",
+ "serde",
+ "serde_json",
+ "skippy-model-artifact",
+ "skippy-model-ref",
]
[[package]]
-name = "serialize-to-javascript"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"
+name = "skippy-native-runtime"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
+ "anyhow",
+ "hex",
"serde",
"serde_json",
- "serialize-to-javascript-impl",
+ "sha2 0.11.1",
]
[[package]]
-name = "serialize-to-javascript-impl"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
+name = "skippy-package-format"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.119",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
]
[[package]]
-name = "servo_arc"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
+name = "skippy-protocol"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "stable_deref_trait",
+ "prost",
+ "prost-build",
+ "protoc-bin-vendored",
+ "serde",
+ "skippy-tokenizer",
]
[[package]]
-name = "sha1"
-version = "0.10.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
+name = "skippy-runtime"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "cfg-if",
- "cpufeatures 0.2.17",
- "digest",
+ "anyhow",
+ "crossbeam-queue",
+ "hex",
+ "libc",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-cache",
+ "skippy-ffi",
+ "skippy-model",
+ "skippy-model-ref",
+ "skippy-package-format",
+ "tokio",
+]
+
+[[package]]
+name = "skippy-runtime-install"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
+dependencies = [
+ "anyhow",
+ "dirs 6.0.0",
+ "flate2",
+ "futures-util",
+ "hex",
+ "reqwest",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-ffi",
+ "skippy-hardware-profile",
+ "skippy-native-runtime",
+ "tar",
+ "tempfile",
+ "tokio",
+ "tracing",
]
[[package]]
-name = "sha2"
-version = "0.10.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+name = "skippy-scheduler"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "cfg-if",
- "cpufeatures 0.2.17",
- "digest",
+ "skippy-runtime",
+ "thiserror 2.0.20",
]
[[package]]
-name = "shared_library"
-version = "0.1.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a9e7e0f2bfae24d8a5b5a66c5b257a83c7412304311512a0c054cd5e619da11"
+name = "skippy-serving"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "lazy_static",
+ "ahash",
+ "anyhow",
+ "async-trait",
+ "axum",
+ "base64 0.23.1",
+ "blake3",
+ "futures-util",
"libc",
+ "opentelemetry-proto",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "skippy-cache",
+ "skippy-config",
+ "skippy-events",
+ "skippy-hardware-profile",
+ "skippy-inference-api",
+ "skippy-metrics",
+ "skippy-model-artifact",
+ "skippy-package-format",
+ "skippy-protocol",
+ "skippy-runtime",
+ "skippy-scheduler",
+ "skippy-tokenizer",
+ "socket2",
+ "tokio",
+ "tonic",
+ "tracing",
+ "uuid",
]
[[package]]
-name = "shell-words"
-version = "1.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
-
-[[package]]
-name = "shlex"
-version = "2.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
-
-[[package]]
-name = "signal-hook-registry"
-version = "1.4.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+name = "skippy-tokenizer"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "errno",
- "libc",
+ "serde",
]
[[package]]
-name = "simd-adler32"
-version = "0.3.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
-
-[[package]]
-name = "simd_cesu8"
-version = "1.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520"
+name = "skippy-topology"
+version = "0.79.0"
+source = "git+https://github.com/Mesh-LLM/mesh-llm.git?rev=e8c9e7fba8bf88b3fa65a4187862d1147dce372c#e8c9e7fba8bf88b3fa65a4187862d1147dce372c"
dependencies = [
- "rustc_version",
- "simdutf8",
+ "serde",
+ "serde_json",
]
-[[package]]
-name = "simdutf8"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
-
-[[package]]
-name = "siphasher"
-version = "1.0.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
-
[[package]]
name = "slab"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+[[package]]
+name = "slotmap"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"
+dependencies = [
+ "version_check",
+]
+
[[package]]
name = "smallvec"
version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9be42f50aa861c555654aa3a37f52f4b1074bacf4e48fe0ef7fa584e80f1f0f"
+[[package]]
+name = "socket-pktinfo"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "612942246d0cc239cfd83af1dfd39be47f649208a3524e5e9da651910128e0ac"
+dependencies = [
+ "libc",
+ "socket2",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "socket2"
version = "0.6.5"
@@ -5570,6 +10002,12 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "sorted-index-buffer"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea06cc588e43c632923a55450401b8f25e628131571d4e1baea1bdfdb2b5ed06"
+
[[package]]
name = "soup3"
version = "0.5.0"
@@ -5596,6 +10034,64 @@ dependencies = [
"system-deps",
]
+[[package]]
+name = "spez"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c87e960f4dca2788eeb86bbdde8dd246be8948790b7618d656e68f9b720a86e8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "spin"
+version = "0.9.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e"
+dependencies = [
+ "lock_api",
+]
+
+[[package]]
+name = "spin"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "023a211cb3138dbc438680b32560ad89f699977624c9f8dbb95a47d5b4c07dd3"
+
+[[package]]
+name = "spki"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
+dependencies = [
+ "base64ct",
+ "der 0.7.10",
+]
+
+[[package]]
+name = "spki"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ef958a98b9d5da290cfc78946e9f3e61e1e62a18db0d92cac0b83cc161491a9"
+dependencies = [
+ "base64ct",
+ "der 0.8.3",
+]
+
+[[package]]
+name = "spm_precompiled"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5851699c4033c63636f7ea4cf7b7c1f1bf06d0cc03cfb42e711de5a5c46cf326"
+dependencies = [
+ "base64 0.13.1",
+ "nom 7.1.3",
+ "serde",
+ "unicode-segmentation",
+]
+
[[package]]
name = "sqlite-wasm-rs"
version = "0.5.5"
@@ -5608,12 +10104,38 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "sse-stream"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c25ac7aff0abd1dbc474536e40416e1102c7dd9bfba0b9861c6d357f835dcfb4"
+dependencies = [
+ "bytes",
+ "futures-util",
+ "http-body",
+ "http-body-util",
+ "pin-project-lite",
+]
+
[[package]]
name = "stable_deref_trait"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+[[package]]
+name = "stacker"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967"
+dependencies = [
+ "cc",
+ "cfg-if",
+ "libc",
+ "psm",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "static_assertions"
version = "1.1.0"
@@ -5626,6 +10148,16 @@ version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff7589a1859b09232522bb9edf076ca7fcf14ded96685d3fa629db73023ffbb7"
+[[package]]
+name = "statrs"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a3fe7c28c6512e766b0874335db33c94ad7b8f9054228ae1c2abd47ce7d335e"
+dependencies = [
+ "approx",
+ "num-traits",
+]
+
[[package]]
name = "string_cache"
version = "0.9.0"
@@ -5634,7 +10166,7 @@ checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
dependencies = [
"new_debug_unreachable",
"parking_lot",
- "phf_shared",
+ "phf_shared 0.13.1",
"precomputed-hash",
]
@@ -5644,8 +10176,8 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
dependencies = [
- "phf_generator",
- "phf_shared",
+ "phf_generator 0.13.1",
+ "phf_shared 0.13.1",
"proc-macro2",
"quote",
]
@@ -5656,6 +10188,27 @@ version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+[[package]]
+name = "strum"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd"
+dependencies = [
+ "strum_macros",
+]
+
+[[package]]
+name = "strum_macros"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
[[package]]
name = "subtle"
version = "2.6.1"
@@ -5673,6 +10226,12 @@ dependencies = [
"serde_json",
]
+[[package]]
+name = "symlink"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7973cce6668464ea31f176d85b13c7ab3bba2cb3b77a2ed26abd7801688010a"
+
[[package]]
name = "syn"
version = "1.0.109"
@@ -5680,6 +10239,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
+ "quote",
"unicode-ident",
]
@@ -5725,6 +10285,35 @@ dependencies = [
"syn 2.0.119",
]
+[[package]]
+name = "sysinfo"
+version = "0.38.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f"
+dependencies = [
+ "libc",
+ "memchr",
+ "ntapi",
+ "objc2-core-foundation",
+ "objc2-io-kit",
+ "windows 0.62.2",
+]
+
+[[package]]
+name = "sysinfo"
+version = "0.39.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2071df9448915b71c4fe6d25deaf1c22f12bd234f01540b77312bb8e41361e6"
+dependencies = [
+ "libc",
+ "memchr",
+ "ntapi",
+ "objc2-core-foundation",
+ "objc2-io-kit",
+ "objc2-open-directory",
+ "windows 0.62.2",
+]
+
[[package]]
name = "system-configuration"
version = "0.7.0"
@@ -5736,6 +10325,17 @@ dependencies = [
"system-configuration-sys",
]
+[[package]]
+name = "system-configuration"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "501336eb7ba9e417300a6a0fa985721065467aa83a6dcf0422a8e43e4c0328fa"
+dependencies = [
+ "bitflags 2.13.1",
+ "core-foundation 0.10.1",
+ "system-configuration-sys",
+]
+
[[package]]
name = "system-configuration-sys"
version = "0.6.0"
@@ -5759,6 +10359,15 @@ dependencies = [
"version-compare",
]
+[[package]]
+name = "tabwriter"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fce91f2f0ec87dff7e6bcbbeb267439aa1188703003c6055193c821487400432"
+dependencies = [
+ "unicode-width",
+]
+
[[package]]
name = "tao"
version = "0.37.2"
@@ -5918,7 +10527,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
- "sha2",
+ "sha2 0.10.9",
"syn 2.0.119",
"tauri-utils",
"thiserror 2.0.20",
@@ -6090,11 +10699,11 @@ dependencies = [
[[package]]
name = "tauri-plugin-updater"
-version = "2.13.3"
+version = "2.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "855a336eb389d2c1502244fd48fa2d8cb487a430f691bbaed025195f99a04489"
+checksum = "d957abbcb3f9f6c76d22a3a0f012f30880640d0bccb5634d2b12a9937e4c872b"
dependencies = [
- "base64 0.22.1",
+ "base64 0.23.1",
"dirs 7.0.0",
"flate2",
"futures-util",
@@ -6206,7 +10815,7 @@ dependencies = [
"json-patch",
"log",
"memchr",
- "phf",
+ "phf 0.13.1",
"plist",
"proc-macro2",
"quote",
@@ -6249,25 +10858,101 @@ dependencies = [
]
[[package]]
-name = "tempfile"
-version = "3.27.0"
+name = "tempfile"
+version = "3.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+dependencies = [
+ "fastrand",
+ "getrandom 0.4.3",
+ "once_cell",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tendril"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"
+dependencies = [
+ "new_debug_unreachable",
+]
+
+[[package]]
+name = "termina"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9048a889effe34a5cddee0af7f53285198b16dca3be510858d38dfdb3e62a04e"
+dependencies = [
+ "bitflags 2.13.1",
+ "parking_lot",
+ "rustix",
+ "signal-hook",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "terminfo"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4ea810f0692f9f51b382fff5893887bb4580f5fa246fde546e0b13e7fcee662"
+dependencies = [
+ "fnv",
+ "nom 7.1.3",
+ "phf 0.11.3",
+ "phf_codegen 0.11.3",
+]
+
+[[package]]
+name = "termios"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+checksum = "411c5bf740737c7918b8b1fe232dca4dc9f8e754b8ad5e20966814001ed0ac6b"
dependencies = [
- "fastrand",
- "getrandom 0.3.4",
- "once_cell",
- "rustix",
- "windows-sys 0.61.2",
+ "libc",
]
[[package]]
-name = "tendril"
-version = "0.5.1"
+name = "termwiz"
+version = "0.23.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"
+checksum = "4676b37242ccbd1aabf56edb093a4827dc49086c0ffd764a5705899e0f35f8f7"
dependencies = [
- "new_debug_unreachable",
+ "anyhow",
+ "base64 0.22.1",
+ "bitflags 2.13.1",
+ "fancy-regex 0.11.0",
+ "filedescriptor",
+ "finl_unicode",
+ "fixedbitset 0.4.2",
+ "hex",
+ "lazy_static",
+ "libc",
+ "log",
+ "memmem",
+ "nix 0.29.0",
+ "num-derive",
+ "num-traits",
+ "ordered-float",
+ "pest",
+ "pest_derive",
+ "phf 0.11.3",
+ "sha2 0.10.9",
+ "signal-hook",
+ "siphasher",
+ "terminfo",
+ "termios",
+ "thiserror 1.0.69",
+ "ucd-trie",
+ "unicode-segmentation",
+ "vtparse",
+ "wezterm-bidi",
+ "wezterm-blob-leases",
+ "wezterm-color-types",
+ "wezterm-dynamic",
+ "wezterm-input-types",
+ "winapi",
]
[[package]]
@@ -6310,6 +10995,15 @@ dependencies = [
"syn 3.0.5",
]
+[[package]]
+name = "thread_local"
+version = "1.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
+dependencies = [
+ "cfg-if",
+]
+
[[package]]
name = "tiff"
version = "0.11.3"
@@ -6331,7 +11025,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
dependencies = [
"deranged",
+ "js-sys",
+ "libc",
"num-conv",
+ "num_threads",
"powerfmt",
"serde_core",
"time-core",
@@ -6388,6 +11085,39 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
+[[package]]
+name = "tokenizers"
+version = "0.23.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7afbf6e88718afcc138bad01d6ccc3051dbbc3b2ce9793d8b8a3aeb610969cfc"
+dependencies = [
+ "ahash",
+ "compact_str",
+ "daachorse",
+ "dary_heap",
+ "derive_builder",
+ "esaxx-rs",
+ "fancy-regex 0.17.0",
+ "getrandom 0.3.4",
+ "itertools 0.14.0",
+ "log",
+ "macro_rules_attribute",
+ "monostate",
+ "paste",
+ "rand 0.9.5",
+ "rayon",
+ "rayon-cond",
+ "regex",
+ "regex-syntax",
+ "serde",
+ "serde_json",
+ "spm_precompiled",
+ "thiserror 2.0.20",
+ "unicode-normalization-alignments",
+ "unicode-segmentation",
+ "unicode_categories",
+]
+
[[package]]
name = "tokio"
version = "1.53.3"
@@ -6405,6 +11135,15 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "tokio-happy-eyeballs"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8564c32dfb6f4257f8bc6edfc178a34af97520e0b7b9815500c55eb3d092f29f"
+dependencies = [
+ "tokio",
+]
+
[[package]]
name = "tokio-macros"
version = "2.7.2"
@@ -6416,6 +11155,17 @@ dependencies = [
"syn 3.0.5",
]
+[[package]]
+name = "tokio-retry"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a129d95275ebf4c493ec53bf0f8cd95f5ac161bc4f381700809a54f595d4470"
+dependencies = [
+ "pin-project-lite",
+ "rand 0.10.2",
+ "tokio",
+]
+
[[package]]
name = "tokio-rustls"
version = "0.26.5"
@@ -6426,6 +11176,30 @@ dependencies = [
"tokio",
]
+[[package]]
+name = "tokio-socks"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7e2948f60dbe26b35f2c7fb74ac2854c1fddded0fe9d7548fcc674a246f7615"
+dependencies = [
+ "either",
+ "futures-util",
+ "thiserror 1.0.69",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-stream"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+ "tokio",
+ "tokio-util",
+]
+
[[package]]
name = "tokio-tungstenite"
version = "0.28.0"
@@ -6434,8 +11208,12 @@ checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857"
dependencies = [
"futures-util",
"log",
+ "rustls",
+ "rustls-pki-types",
"tokio",
+ "tokio-rustls",
"tungstenite 0.28.0",
+ "webpki-roots 0.26.11",
]
[[package]]
@@ -6463,10 +11241,60 @@ dependencies = [
"bytes",
"futures-core",
"futures-sink",
+ "futures-util",
+ "libc",
"pin-project-lite",
"tokio",
]
+[[package]]
+name = "tokio-websockets"
+version = "0.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d52efb639344a7c6adb8e62c6f3d2c19c001ff1b79a5041ba1c6ed42e19c6aa5"
+dependencies = [
+ "aws-lc-rs",
+ "base64 0.22.1",
+ "bytes",
+ "futures-core",
+ "futures-sink",
+ "getrandom 0.4.3",
+ "http",
+ "httparse",
+ "rand 0.10.2",
+ "ring",
+ "rustls-pki-types",
+ "sha1_smol",
+ "simdutf8",
+ "tokio",
+ "tokio-rustls",
+ "tokio-util",
+]
+
+[[package]]
+name = "tokio_with_wasm"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34e40fbbbd95441133fe9483f522db15dbfd26dc636164ebd8f2dd28759a6aa6"
+dependencies = [
+ "js-sys",
+ "tokio",
+ "tokio_with_wasm_proc",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
+[[package]]
+name = "tokio_with_wasm_proc"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d01145a2c788d6aae4cd653afec1e8332534d7d783d01897cefcafe4428de992"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
[[package]]
name = "toml"
version = "0.8.2"
@@ -6545,6 +11373,7 @@ dependencies = [
"indexmap 2.14.2",
"toml_datetime 1.1.1+spec-1.1.0",
"toml_parser",
+ "toml_writer",
"winnow 1.0.4",
]
@@ -6563,6 +11392,47 @@ version = "1.1.2+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"
+[[package]]
+name = "tonic"
+version = "0.14.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2cdfc673aabd30fe8fee92e65837b644c37c5d47f0f97ae6d5e0f1237d15e1b"
+dependencies = [
+ "async-trait",
+ "axum",
+ "base64 0.22.1",
+ "bytes",
+ "h2",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-timeout",
+ "hyper-util",
+ "percent-encoding",
+ "pin-project",
+ "socket2",
+ "sync_wrapper",
+ "tokio",
+ "tokio-stream",
+ "tokio-util",
+ "tower",
+ "tower-layer",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "tonic-prost"
+version = "0.14.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eba464054e2226f182a34489b8b079bf4c6e3e7ab5fd7fc30e024f24aa92a484"
+dependencies = [
+ "bytes",
+ "prost",
+ "tonic",
+]
+
[[package]]
name = "tower"
version = "0.5.3"
@@ -6571,11 +11441,15 @@ checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
dependencies = [
"futures-core",
"futures-util",
+ "indexmap 2.14.2",
"pin-project-lite",
+ "slab",
"sync_wrapper",
"tokio",
+ "tokio-util",
"tower-layer",
"tower-service",
+ "tracing",
]
[[package]]
@@ -6614,11 +11488,25 @@ version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
+ "log",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
]
+[[package]]
+name = "tracing-appender"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "050686193eb999b4bb3bc2acfa891a13da00f79734704c4b8b4ef1a10b368a3c"
+dependencies = [
+ "crossbeam-channel",
+ "symlink",
+ "thiserror 2.0.20",
+ "time",
+ "tracing-subscriber",
+]
+
[[package]]
name = "tracing-attributes"
version = "0.1.31"
@@ -6637,6 +11525,49 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
dependencies = [
"once_cell",
+ "valuable",
+]
+
+[[package]]
+name = "tracing-log"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
+dependencies = [
+ "log",
+ "once_cell",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-serde"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "704b1aeb7be0d0a84fc9828cae51dab5970fee5088f83d1dd7ee6f6246fc6ff1"
+dependencies = [
+ "serde",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-subscriber"
+version = "0.3.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
+dependencies = [
+ "matchers",
+ "nu-ansi-term",
+ "once_cell",
+ "regex-automata",
+ "serde",
+ "serde_json",
+ "sharded-slab",
+ "smallvec",
+ "thread_local",
+ "tracing",
+ "tracing-core",
+ "tracing-log",
+ "tracing-serde",
]
[[package]]
@@ -6696,6 +11627,8 @@ dependencies = [
"httparse",
"log",
"rand 0.9.5",
+ "rustls",
+ "rustls-pki-types",
"sha1",
"thiserror 2.0.20",
"utf-8",
@@ -6719,6 +11652,18 @@ dependencies = [
"thiserror 2.0.20",
]
+[[package]]
+name = "twox-hash"
+version = "2.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "86a801b3cea342a06d468c8710662aa29e5e05e4f5c0d62f00bbb7f2ad7941c2"
+
+[[package]]
+name = "typed-path"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e"
+
[[package]]
name = "typeid"
version = "1.0.3"
@@ -6731,6 +11676,18 @@ version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
+[[package]]
+name = "typewit"
+version = "1.15.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "214ca0b2191785cbc06209b9ca1861e048e39b5ba33574b3cedd58363d5bb5f6"
+
+[[package]]
+name = "ucd-trie"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971"
+
[[package]]
name = "uds_windows"
version = "1.2.1"
@@ -6748,6 +11705,12 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
+[[package]]
+name = "unicase"
+version = "2.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f"
+
[[package]]
name = "unicode-ident"
version = "1.0.24"
@@ -6763,20 +11726,68 @@ dependencies = [
"tinyvec",
]
+[[package]]
+name = "unicode-normalization-alignments"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43f613e4fa046e69818dd287fdc4bc78175ff20331479dab6e1b0f98d57062de"
+dependencies = [
+ "smallvec",
+]
+
[[package]]
name = "unicode-segmentation"
version = "1.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
+[[package]]
+name = "unicode-truncate"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16b380a1238663e5f8a691f9039c73e1cdae598a30e9855f541d29b08b53e9a5"
+dependencies = [
+ "itertools 0.14.0",
+ "unicode-segmentation",
+ "unicode-width",
+]
+
+[[package]]
+name = "unicode-width"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557"
+
+[[package]]
+name = "unicode-xid"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
+
+[[package]]
+name = "unicode_categories"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e"
+
[[package]]
name = "universal-hash"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"
dependencies = [
- "crypto-common",
- "subtle",
+ "crypto-common 0.1.7",
+ "subtle",
+]
+
+[[package]]
+name = "universal-hash"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4987bdc12753382e0bec4a65c50738ffaabc998b9cdd1f952fb5f39b0048a96"
+dependencies = [
+ "crypto-common 0.2.2",
+ "ctutils",
]
[[package]]
@@ -6804,6 +11815,12 @@ dependencies = [
"serde_derive",
]
+[[package]]
+name = "urlencoding"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
+
[[package]]
name = "urlpattern"
version = "0.6.0"
@@ -6841,18 +11858,31 @@ version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
[[package]]
name = "uuid"
version = "1.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b5772d71c9be8a8a6ac2117d949c5b224c1b72241bb611d9a3012edcf8af7812"
dependencies = [
+ "atomic",
"getrandom 0.4.3",
"js-sys",
"serde_core",
"wasm-bindgen",
]
+[[package]]
+name = "valuable"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
+
[[package]]
name = "vcpkg"
version = "0.2.15"
@@ -6891,6 +11921,15 @@ dependencies = [
"libc",
]
+[[package]]
+name = "vtparse"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d9b2acfb050df409c972a37d3b8e08cdea3bddb0c09db9d53137e504cfabed0"
+dependencies = [
+ "utf8parse",
+]
+
[[package]]
name = "wait-timeout"
version = "0.2.1"
@@ -6925,6 +11964,15 @@ version = "0.11.1+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+[[package]]
+name = "wasi"
+version = "0.14.7+wasi-0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
+dependencies = [
+ "wasip2",
+]
+
[[package]]
name = "wasip2"
version = "1.0.4+wasi-0.2.12"
@@ -6934,6 +11982,15 @@ dependencies = [
"wit-bindgen",
]
+[[package]]
+name = "wasite"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66fe902b4a6b8028a753d5424909b764ccf79b7a209eac9bf97e59cda9f71a42"
+dependencies = [
+ "wasi 0.14.7+wasi-0.2.4",
+]
+
[[package]]
name = "wasm-bindgen"
version = "0.2.128"
@@ -7098,8 +12155,8 @@ version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
dependencies = [
- "phf",
- "phf_codegen",
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
"string_cache",
"string_cache_codegen",
]
@@ -7157,6 +12214,15 @@ dependencies = [
"rustls-pki-types",
]
+[[package]]
+name = "webpki-roots"
+version = "0.26.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
+dependencies = [
+ "webpki-roots 1.0.10",
+]
+
[[package]]
name = "webpki-roots"
version = "1.0.10"
@@ -7231,6 +12297,97 @@ version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
+[[package]]
+name = "wezterm-bidi"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c0a6e355560527dd2d1cf7890652f4f09bb3433b6aadade4c9b5ed76de5f3ec"
+dependencies = [
+ "log",
+ "wezterm-dynamic",
+]
+
+[[package]]
+name = "wezterm-blob-leases"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "692daff6d93d94e29e4114544ef6d5c942a7ed998b37abdc19b17136ea428eb7"
+dependencies = [
+ "getrandom 0.3.4",
+ "mac_address",
+ "sha2 0.10.9",
+ "thiserror 1.0.69",
+ "uuid",
+]
+
+[[package]]
+name = "wezterm-color-types"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7de81ef35c9010270d63772bebef2f2d6d1f2d20a983d27505ac850b8c4b4296"
+dependencies = [
+ "csscolorparser",
+ "deltae",
+ "lazy_static",
+ "wezterm-dynamic",
+]
+
+[[package]]
+name = "wezterm-dynamic"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f2ab60e120fd6eaa68d9567f3226e876684639d22a4219b313ff69ec0ccd5ac"
+dependencies = [
+ "log",
+ "ordered-float",
+ "strsim",
+ "thiserror 1.0.69",
+ "wezterm-dynamic-derive",
+]
+
+[[package]]
+name = "wezterm-dynamic-derive"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46c0cf2d539c645b448eaffec9ec494b8b19bd5077d9e58cb1ae7efece8d575b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "wezterm-input-types"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7012add459f951456ec9d6c7e6fc340b1ce15d6fc9629f8c42853412c029e57e"
+dependencies = [
+ "bitflags 1.3.2",
+ "euclid",
+ "lazy_static",
+ "serde",
+ "wezterm-dynamic",
+]
+
+[[package]]
+name = "whoami"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "626c4bac6755d76ffc12cb01b2eac751db1996b9e0041de9aa02c8c211ddc82c"
+dependencies = [
+ "libc",
+ "libredox",
+ "objc2-system-configuration",
+ "wasite",
+ "web-sys",
+]
+
+[[package]]
+name = "widestring"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"
+
[[package]]
name = "winapi"
version = "0.3.9"
@@ -7403,6 +12560,19 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+[[package]]
+name = "windows-native-keyring-store"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "063426e76fdec7438d56bb777f67e318a84a25c707b07e575cb8b78e10c028f8"
+dependencies = [
+ "byteorder",
+ "keyring-core",
+ "regex",
+ "windows-sys 0.61.2",
+ "zeroize",
+]
+
[[package]]
name = "windows-numerics"
version = "0.2.0"
@@ -7865,6 +13035,21 @@ dependencies = [
"wayland-protocols-wlr",
]
+[[package]]
+name = "wmi"
+version = "0.18.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7c81b85c57a57500e56669586496bf2abd5cf082b9d32995251185d105208b64"
+dependencies = [
+ "chrono",
+ "futures",
+ "log",
+ "serde",
+ "thiserror 2.0.20",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
+]
+
[[package]]
name = "writeable"
version = "0.6.4"
@@ -7901,7 +13086,7 @@ dependencies = [
"once_cell",
"percent-encoding",
"raw-window-handle",
- "sha2",
+ "sha2 0.10.9",
"soup3",
"tao-macros",
"thiserror 2.0.20",
@@ -7915,6 +13100,25 @@ dependencies = [
"x11-dl",
]
+[[package]]
+name = "ws_stream_wasm"
+version = "0.7.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c173014acad22e83f16403ee360115b38846fe754e735c5d9d3803fe70c6abc"
+dependencies = [
+ "async_io_stream",
+ "futures",
+ "js-sys",
+ "log",
+ "pharos",
+ "rustc_version",
+ "send_wrapper",
+ "thiserror 2.0.20",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
[[package]]
name = "x11"
version = "2.21.0"
@@ -7991,6 +13195,166 @@ dependencies = [
"windows-sys 0.59.0",
]
+[[package]]
+name = "xet-client"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50da1139a73361f40dc911a812d916b64b2a1b437f33735ce2040d0f971e7cea"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "base64 0.22.1",
+ "bytes",
+ "chrono",
+ "crc-fast",
+ "crc32fast",
+ "futures",
+ "http",
+ "hyper",
+ "more-asserts",
+ "rand 0.10.2",
+ "redb",
+ "reqwest",
+ "reqwest-middleware",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "serde_with",
+ "statrs",
+ "tempfile",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-retry",
+ "tokio_with_wasm",
+ "tracing",
+ "url",
+ "urlencoding",
+ "uuid",
+ "web-time",
+ "xet-core-structures",
+ "xet-runtime",
+]
+
+[[package]]
+name = "xet-core-structures"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "506764be7157a4c994ecd576606bcdcf33c134a0d0488844db78e493567d7fe1"
+dependencies = [
+ "async-trait",
+ "base64 0.22.1",
+ "blake3",
+ "bytemuck",
+ "bytes",
+ "countio",
+ "futures",
+ "futures-util",
+ "getrandom 0.4.3",
+ "heapify",
+ "itertools 0.14.0",
+ "lz4_flex",
+ "more-asserts",
+ "rand 0.10.2",
+ "regex",
+ "safe-transmute",
+ "serde",
+ "static_assertions",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "uuid",
+ "web-time",
+ "xet-runtime",
+]
+
+[[package]]
+name = "xet-data"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d58a81956b4efbc486102ac957d2d0539cd234f66c1e71e526c0c8dc1b6ec863"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "bytes",
+ "chrono",
+ "gearhash",
+ "http",
+ "itertools 0.14.0",
+ "more-asserts",
+ "rand 0.10.2",
+ "serde",
+ "serde_json",
+ "sha2 0.11.1",
+ "tempfile",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-util",
+ "tokio_with_wasm",
+ "tracing",
+ "url",
+ "uuid",
+ "web-time",
+ "xet-client",
+ "xet-core-structures",
+ "xet-runtime",
+]
+
+[[package]]
+name = "xet-runtime"
+version = "1.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "762c0ff694ae45e481b7baa184a801e86b481e495b91d92bf83d2d55b2bc700e"
+dependencies = [
+ "anyhow",
+ "async-trait",
+ "bytes",
+ "chrono",
+ "colored",
+ "const-str",
+ "ctor",
+ "dirs 6.0.0",
+ "futures",
+ "git-version",
+ "humantime",
+ "konst",
+ "libc",
+ "more-asserts",
+ "oneshot",
+ "pin-project",
+ "rand 0.10.2",
+ "reqwest",
+ "serde",
+ "serde_json",
+ "shellexpand",
+ "sysinfo 0.39.6",
+ "thiserror 2.0.20",
+ "tokio",
+ "tokio-util",
+ "tokio_with_wasm",
+ "tracing",
+ "tracing-appender",
+ "tracing-subscriber",
+ "web-time",
+ "whoami",
+ "winapi",
+]
+
+[[package]]
+name = "xml-rs"
+version = "0.8.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
+
+[[package]]
+name = "xmltree"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7d8a75eaf6557bb84a65ace8609883db44a29951042ada9b393151532e41fcb"
+dependencies = [
+ "xml-rs",
+]
+
[[package]]
name = "yasna"
version = "0.6.0"
@@ -8091,6 +13455,17 @@ dependencies = [
"zvariant 5.15.0",
]
+[[package]]
+name = "zbus-secret-service-keyring-store"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74801d001b9e7729adb4f1825b67b398185fed424749aa3d8bacf70417137d9a"
+dependencies = [
+ "keyring-core",
+ "secret-service 5.2.0",
+ "zbus 5.19.0",
+]
+
[[package]]
name = "zbus_macros"
version = "4.4.0"
@@ -8246,14 +13621,20 @@ dependencies = [
[[package]]
name = "zip"
-version = "4.6.1"
+version = "9.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "caa8cd6af31c3b31c6631b8f483848b91589021b28fffe50adada48d4f4d2ed1"
+checksum = "e408c6cc4699dd017d53dc080cd51c2cea2b5354af57a1479bd265ed42911487"
dependencies = [
- "arbitrary",
"crc32fast",
+ "flate2",
+ "getrandom 0.4.3",
"indexmap 2.14.2",
+ "libc",
"memchr",
+ "nix 0.31.3",
+ "typed-path",
+ "windows-sys 0.61.2",
+ "zopfli",
]
[[package]]
@@ -8268,6 +13649,18 @@ version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+[[package]]
+name = "zopfli"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11"
+dependencies = [
+ "bumpalo",
+ "crc32fast",
+ "log",
+ "simd-adler32",
+]
+
[[package]]
name = "zune-core"
version = "0.5.3"
diff --git a/Cargo.toml b/Cargo.toml
index d0bb90e39c..adf1563e57 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,4 +1,4 @@
[workspace]
-members = ["crates/agent-command", "crates/pairing", "crates/plugin-manager", "crates/agent-controller", "crates/credential-store", "crates/ifc-core", "crates/buzz-ifc", "crates/nsec-backup", "src-tauri"]
+members = ["crates/agent-command", "crates/pairing", "crates/plugin-manager", "crates/agent-controller", "crates/credential-store", "crates/dev-credential-helper", "src/bundled/mesh-compute/compute", "crates/ifc-core", "crates/buzz-ifc", "crates/nsec-backup", "src-tauri"]
default-members = ["crates/plugin-manager"]
resolver = "2"
diff --git a/NOTICE.md b/NOTICE.md
index 63e2e678ed..f3840a5e5b 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -1,5 +1,11 @@
# Source attribution
+The agent-card foil texture in `src/features/agents/assets/card-foil.webp`,
+portrait palette sampling, and reveal/hover treatment are adapted from
+[Block Buzz PR #5790](https://github.com/block/buzz/pull/5790), revision
+`0c7cea1f91a681f3751af1ac25a7e15d0e99d36b`. The texture is the first embedded
+image in `desktop/src/features/agents/assets/buzz-trading-card-template.svg`.
+
The relay read model in `src/features/relay` and development read broker in
`browser-host` are adapted from the supplied Astra example. The channel layout
and virtualizer behavior are adapted from that example's Channels view.
@@ -29,6 +35,21 @@ The Emoji Mart picker configuration and search-input focus/correction behavior i
`b9392d9d78744df365f9276e1ffe8c1baa5ea903`. The adapter adds scoped custom IDs,
explicit dictionary cleanup, and lazy loading for the session-owned catalog.
+The chart grammar, option sanitizer and data-row tables in `src/bundled/charts`
+are adapted from a Charts plugin by Alessandro Joabar (GitHub `sandro-sq`).
+
+The file viewer in `src/bundled/file-viewer` is adapted from a Media viewer
+plugin by Krish Ray (GitHub `LordMelkor`), and its PDF view from a PDF viewer
+plugin by Eric Morgan (GitHub `ericm-square`). PDF pages are drawn with PDF.js
+(`pdfjs-dist`), Copyright Mozilla Foundation, under the Apache License 2.0.
+Code is highlighted with highlight.js (`highlight.js` 11.11.2), Copyright Ivan
+Sagalaev, under the BSD 3-Clause License, through lowlight (`lowlight` 3.3.0),
+Copyright Titus Wormer, under the MIT License. Heading IDs come from
+github-slugger (`github-slugger` 2.0.0), Copyright Dan Flettre, under the ISC
+License. Markdown parts are parsed with `unified` 11.0.5, `remark-parse` 11.0.0
+and `micromark-util-decode-string` 2.0.1, Copyright Titus Wormer and
+contributors, under the MIT License.
+
OneDrive is a trademark of Microsoft.
## Harness brand marks
@@ -148,9 +169,10 @@ trademarks of OpenAI; goose is a trademark of LF Projects; GitHub and Octocat
are trademarks of GitHub, Inc. Their inclusion identifies the corresponding
integrations and does not imply endorsement.
-The Huddles, Voice Notes, Usage, Mermaid diagrams, Pi, TypeSafe, Builderlab and
-Agent Attention UI illustrations were supplied separately by Taylor Ho and resized
-for the catalog; the generation attribution above does not cover these eight assets.
+The Huddles, Voice Notes, Usage, Mermaid diagrams, Pi, TypeSafe, Builderlab,
+Agent Attention UI, Shared compute and Focus illustrations were supplied separately
+by Taylor Ho and resized for the catalog; the generation attribution above does not
+cover these ten assets.
## Embedded callback typeface
diff --git a/README.md b/README.md
index 4bdadf3726..d983d16d85 100644
--- a/README.md
+++ b/README.md
@@ -5,26 +5,15 @@ app for team chat and AI agents: join a community, talk in channels and direct
messages, and run agents such as Claude, Codex, Goose or Pi on your own
computer that answer you right in the conversation.
-
-
-> [!IMPORTANT]
-> **Buzz 1.0 is in beta.** Buzz 0.X is still available and supported in
-> [block/buzz](https://github.com/block/buzz).
+[](https://buzz.xyz/#demo)
## Get started
### 1. Download
-Get the newest build from the [releases page](https://github.com/block/buzz-app/releases).
-
-| Platform | Download | Notes |
-| --- | --- | --- |
-| macOS (Apple Silicon) | `Buzz_…_aarch64.dmg` | Signed and notarized. Intel Macs aren't supported. |
-| Windows (x64) | `Buzz_…_x64_unsigned.exe` | Not code-signed, so Windows SmartScreen warns you before it runs. |
-| Linux (x64) | `Buzz_…_amd64.deb` or `Buzz_…_x86_64.AppImage` | Built on Ubuntu 24.04. |
-
-Once installed, Buzz updates itself. You can also check from
-**Settings → Software updates**.
+Download the latest release from [buzz.xyz](https://buzz.xyz) or view
+[all releases](https://github.com/block/buzz-app/releases). Available for
+macOS, Windows and Linux.
### 2. Set up your identity
@@ -55,7 +44,7 @@ communities later from the community button in the top-right corner →
**Join a community**.
**No invite?** Paste the Buzz feedback community's invite,
-`https://feedback.communities.buzz.xyz/invite/v2.yC8ZZIz5vwWCZYo2RRheuY1a0IKZRTXvxTmK7vIFIIY`,
+`https://feedback.communities.buzz.xyz/invite/v2.25_y9TSEwLpbhuk22iYuq_xW6AELuvyN-jTmnFHwdJ0`,
create one with **Create a community** (or at [buzz.xyz](https://buzz.xyz)), or
[run your own relay](https://github.com/block/buzz#i-want-my-own-hosted-relay)
from block/buzz.
@@ -64,7 +53,7 @@ from block/buzz.
### 4. Add your first agent
-Open **Agents** in the top bar and choose **Create your first agent** (or
+Open **Agents** in the app dock and choose **Create your first agent** (or
**New agent → Create a new agent**). Agents belong to a community, so add yours
first. Give the agent a name, pick a **Harness**, and optionally choose a model
and write instructions. Then click **Create agent**.
@@ -73,8 +62,8 @@ and write instructions. Then click **Create agent**.
| Harness | Platforms | What you need |
| --- | --- | --- |
-| Claude | macOS, Linux | A Claude account. Click **Install Claude** to download Buzz's own copy (about 250 MB), then **Sign in** in your browser. It shares settings with the `claude` in your terminal but doesn't change it. |
-| Codex | macOS, Linux | A ChatGPT or OpenAI account. Click **Install Codex** (about 130 MB), then **Sign in** in your browser. |
+| Claude | macOS, Linux | A Claude account. Click **Install integration** to download Buzz's own copy (about 250 MB), then **Sign in** in your browser. It shares settings with the `claude` in your terminal but doesn't change it. |
+| Codex | macOS, Linux | A ChatGPT or OpenAI account. Click **Install integration** (about 130 MB), then **Sign in** in your browser. |
| Goose | macOS, Linux, Windows | Included with Buzz. Choose a model provider and enter its key in **Settings → Agent setup → Harness defaults → Goose**. Providers that sign in through goose instead need `goose configure` from the separate goose CLI. |
| Pi | macOS, Linux, Windows | Node.js 22.19 or later. Turn on **Pi** in **Settings → Plugins** first. Click the model, choose a provider, paste its **API key**, and click **Save to Pi**. Providers that sign in another way need `pi`, then `/login`, in your terminal. |
@@ -85,28 +74,33 @@ edit files there.
### 5. Talk to it
-- **New chat:** click **+** in the top bar, left of **Messages**, and choose
- **New chat**. Your default agent is tagged for you; type a message and send.
+- **New chat:** click **+** at the top of the Messages sidebar, beside
+ **All / Solo / Team**, and choose **New chat**. Your default agent is tagged
+ for you; type a message and send.
- **Direct message:** open the agent's profile and click **Message**.
- **In a channel:** @mention the agent. If it isn't in the channel yet, Buzz
asks whether to **Invite** it.
### 6. Use the command line (optional)
-Buzz includes the `buzz` command line client at
-`/Applications/Buzz.app/Contents/Resources/bin/buzz`, so scripts and agents need
-no separate install. To run it as `buzz`, link it into your `PATH`:
+Buzz includes the `buzz` command line client, so scripts and agents need no
+separate install. On macOS and Linux (except the AppImage), Buzz links it to
+`~/.local/bin/buzz` each time it starts. If your shell doesn't find `buzz`, add
+that folder to your `PATH` in `~/.zshrc` or `~/.bashrc`:
```sh
-mkdir -p ~/.local/bin
-ln -sf /Applications/Buzz.app/Contents/Resources/bin/buzz ~/.local/bin/buzz
+export PATH="$HOME/.local/bin:$PATH"
```
+On Windows, the installer adds it to your `PATH`; open a new terminal after
+installing.
+
## Preview limitations
- Builds come straight from `main`; there's no stable release channel yet.
-- macOS builds are for Apple Silicon only. The Windows installer is unsigned,
- and Windows and Linux get less testing than macOS.
+- Updates can break plugins (see [Plugins](#plugins)).
+- The Windows installer is unsigned, and Intel macOS, Windows and Linux get
+ less testing than Apple Silicon macOS.
- Claude and Codex agents need macOS or Linux. Goose and Pi work everywhere.
- Buzz doesn't back up your key, so keep your own copy (see step 2).
- Bringing your identity over from Buzz 0.X doesn't bring your communities
@@ -114,6 +108,22 @@ ln -sf /Applications/Buzz.app/Contents/Resources/bin/buzz ~/.local/bin/buzz
with **Import them now** or **New agent → Import an agent**, and teams with
**New team → Import a team**.
+## Plugins
+
+Much of Buzz is built from plugins, and you can add your own in
+**Settings → Plugins**. The plugin API is a preview: Buzz changes fast, and an
+update can break a plugin.
+
+Some parts change less than others:
+
+- **Steady:** the manifest, commands, network requests and file reads, agent
+ tools, shortcuts, notifications, settings cards, and plugin pages and panels
+ (though where they appear may move).
+- **Likely to break:** reading relay data, anything added to conversations or
+ the sidebar, agent hooks, and UI added to pages Buzz owns.
+
+See [plugin architecture](docs/plugin-architecture.md) to build one.
+
## Build from source
```sh
@@ -134,7 +144,7 @@ to build plugins.
- [Plugin architecture and the `buzzodz` CLI](docs/plugin-architecture.md)
- [Contextual identity names: cross-client spec and fixtures](src/bundled/identity-naming/README.md)
- [Mention rules: cross-client spec and fixtures](src/bundled/mentions/README.md)
-- [Buzz feedback community invite](https://feedback.communities.buzz.xyz/invite/v2.yC8ZZIz5vwWCZYo2RRheuY1a0IKZRTXvxTmK7vIFIIY)
+- [Buzz feedback community invite](https://feedback.communities.buzz.xyz/invite/v2.25_y9TSEwLpbhuk22iYuq_xW6AELuvyN-jTmnFHwdJ0)
- [@buzzdotxyz on X](https://x.com/buzzdotxyz)
- [Project leads](CODEOWNERS)
- [Governance](GOVERNANCE.md)
diff --git a/biome.json b/biome.json
index 8257037c17..c3c698b001 100644
--- a/biome.json
+++ b/biome.json
@@ -20,7 +20,8 @@
"!!src-tauri/gen",
"!!target",
"!!test-results",
- "!!tests/fixtures/design-system/flake-selection-*"
+ "!!tests/fixtures/design-system/flake-selection-*",
+ "!tests/fixtures/read-state-vectors.json"
]
},
"formatter": {
@@ -31,6 +32,7 @@
"enabled": true,
"rules": {
"preset": "recommended",
+ "correctness": { "useExhaustiveDependencies": "error" },
"suspicious": {
"noUnknownAtRules": "off"
},
diff --git a/browser-host/README.md b/browser-host/README.md
index 1ed2d50e7d..1fe8eb0ecb 100644
--- a/browser-host/README.md
+++ b/browser-host/README.md
@@ -17,3 +17,19 @@ identity pin; never put a private key in environment configuration. Preserve
supported browser capabilities while consolidating duplicate implementations.
Use the native path for native acceptance and browser workflows to validate
browser support; see the [consolidation guidance](../docs/contributing.md#broker-consolidation-and-completion).
+
+## Hosted browser previews
+
+`relayBrokerPlugin({ browserOrigin: "https://preview.example.org" })` accepts
+one explicit HTTPS browser origin through a trusted proxy. The listener must
+stay on loopback. This setting is an explicit development opt-in. The broker
+refuses it outside the Vite development server in `development` mode, including
+production mode and builds. The proxy must authenticate its users; the origin setting
+does not grant access or authenticate a remote client. Use a simulated identity
+and relay for shared UX previews.
+
+Set the origin in trusted server configuration, never from request headers.
+Origins with credentials, a path, a query, or a fragment are refused. Requests
+still require a loopback Host and matching Origin. Cross-site browser requests
+remain refused. Without this setting, the broker requires its HTTP loopback
+origin. Native and release hosts do not use this setting.
diff --git a/browser-host/agent-library.mjs b/browser-host/agent-library.mjs
index c72b32b83c..c8993d976d 100644
--- a/browser-host/agent-library.mjs
+++ b/browser-host/agent-library.mjs
@@ -1,3 +1,4 @@
+import { relayOrigin } from "../src/features/communities/destination.ts";
import { avatarSource } from "../src/shared/avatar-source.ts";
// Read-only display projection of installed Buzz 1.0 agents. Explicit legacy
// input remains supported for compatibility tests/import readers; never discover
@@ -95,7 +96,7 @@ export function projectAgentLibrary(raw) {
/** The app's current custody store; only display metadata crosses the broker.
* It is versioned once an agent is in several communities, one row in each. */
-export function projectAgentIdentities(raw) {
+export function projectAgentIdentities(raw, scope) {
if (!Array.isArray(raw)) {
if (raw?.version !== 2 && raw?.version !== 3 && raw?.version !== 4)
throw failure();
@@ -107,11 +108,21 @@ export function projectAgentIdentities(raw) {
for (const state of [row.deleted, row.joining])
if (state !== undefined && typeof state !== "boolean") throw failure();
}
+ const community = scope ? relayOrigin(scope.community) : undefined;
return projectAgentLibrary({
version: 1,
agents: raw
- // A row still being added is no membership yet.
- .filter((row) => !row.deleted && !row.joining)
+ // Filter membership before pubkey deduplication: artwork is per community.
+ .filter((row) => {
+ if (row.deleted || row.joining) return false;
+ if (!scope) return true;
+ if (row.owner !== scope.owner) return false;
+ try {
+ return relayOrigin(row.relay) === community;
+ } catch {
+ return false;
+ }
+ })
.map((row) => ({
...row,
name: row.name === undefined ? "" : row.name,
@@ -144,7 +155,7 @@ const exists = (path) =>
() => true,
() => false,
);
-export async function readAgentLibrary(path) {
+export async function readAgentLibrary(path, scope) {
const current = path === undefined;
path ??= await (async () => {
const dir = installedBuzzDataDir();
@@ -177,13 +188,14 @@ export async function readAgentLibrary(path) {
}
if (size > MAX_BYTES) throw failure();
// No raw contents or parser errors escape this host-only function.
- return (current ? projectAgentIdentities : projectAgentLibrary)(
- JSON.parse(
- new TextDecoder("utf-8", { fatal: true }).decode(
- buffer.subarray(0, size),
- ),
+ const raw = JSON.parse(
+ new TextDecoder("utf-8", { fatal: true }).decode(
+ buffer.subarray(0, size),
),
);
+ return current || scope
+ ? projectAgentIdentities(raw, scope)
+ : projectAgentLibrary(raw);
} catch (error) {
// No saved library yet (or none since the store moved) is an empty one.
if (!file && error?.code === "ENOENT")
diff --git a/browser-host/agent-library.test.mjs b/browser-host/agent-library.test.mjs
index 0399247eb8..fce85a942e 100644
--- a/browser-host/agent-library.test.mjs
+++ b/browser-host/agent-library.test.mjs
@@ -28,6 +28,21 @@ it.each(identityCases)(
},
);
+it.each(identityCases)(
+ "community/account-scoped identity store: $name",
+ ({ rows, expected, scopedExpected }) => {
+ const scope = { community: "https://relay.example", owner: "d".repeat(64) };
+ if (expected)
+ expect(projectAgentIdentities(rows, scope)).toEqual(
+ scopedExpected ?? expected,
+ );
+ else
+ expect(() => projectAgentIdentities(rows, scope)).toThrow(
+ "Could not read",
+ );
+ },
+);
+
it("locates the installed Buzz data directory per platform and refuses to guess elsewhere", () => {
expect(installedBuzzDataDir("darwin", {}, "/Users/t")).toBe(
"/Users/t/Library/Application Support/xyz.block.buzz.desktop",
@@ -151,8 +166,8 @@ it.each([
},
);
-it.each(["legacy", "current"])(
- "actual broker and transport expose only the %s library projection, reject cross-origin reads, and retry failures",
+it.each(["array", "versioned"])(
+ "actual broker and transport expose only the scoped %s library projection, reject cross-origin reads, and retry failures",
async (format) => {
const { createServer } = await import("node:http");
const { generateSecretKey, getPublicKey } = await import("nostr-tools");
@@ -162,24 +177,27 @@ it.each(["legacy", "current"])(
);
const root = await mkdtemp(join(tmpdir(), "buzz-library-http-"));
const path = join(root, "managed-agents.json");
- const source =
- format === "legacy"
- ? rows
- : {
- version: 1,
- agents: [
- {
- pubkey: key,
- name: "Brain",
- environment: { TOKEN: "secret" },
- systemPrompt: "private instructions",
- },
- ],
- parked: {
- ["b".repeat(64)]: { pubkey: "b".repeat(64), name: "Old Bumble" },
- },
- };
- await writeFile(path, JSON.stringify(source));
+ const secret = generateSecretKey();
+ const owner = getPublicKey(secret);
+ const localRows = [
+ { pubkey: key, name: "Elsewhere", relay: "wss://other.example", owner },
+ {
+ pubkey: "c".repeat(64),
+ name: "Other account",
+ relay: fixtureRelayUrl,
+ owner: "f".repeat(64),
+ },
+ { pubkey: key, name: "Brain", relay: fixtureRelayUrl, owner },
+ ];
+ // Both existing file formats go through the actual scoped host reader.
+ const scopedSource =
+ format === "array" ? localRows : { version: 2, agents: localRows };
+ const bytes = JSON.stringify(scopedSource);
+ const expected = {
+ definitions: [],
+ identities: [{ pubkey: key, name: "Brain" }],
+ };
+ await writeFile(path, bytes);
let handler,
reads = 0;
const server = createServer((req, res) =>
@@ -191,13 +209,13 @@ it.each(["legacy", "current"])(
await relayBrokerPlugin({
archiveFile: ":memory:",
relayUrl: fixtureRelayUrl,
- identity: generateSecretKey,
+ identity: () => secret,
authority: async () => ({
relayAuthor: getPublicKey(generateSecretKey()),
}),
- agentLibrary: () => {
+ agentLibrary: (_path, scope) => {
reads++;
- return readAgentLibrary(path);
+ return readAgentLibrary(path, scope);
},
}).configureServer({
httpServer: server,
@@ -210,12 +228,23 @@ it.each(["legacy", "current"])(
});
await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve));
const base = `http://127.0.0.1:${server.address().port}`;
+ const realFetch = globalThis.fetch;
+ const scopedTransport = async (community) => {
+ // Registration is a trusted same-origin POST; Node fetch has no page origin.
+ const response = await realFetch(`${base}/api/relay/register`, {
+ method: "POST",
+ headers: { Origin: base, "Content-Type": "application/json" },
+ body: JSON.stringify({ url: community }),
+ });
+ expect(response.status).toBe(200);
+ return `${base}/api/relay/${encodeURIComponent(community)}/agent-library`;
+ };
try {
const transport = await connectBrokerTransport(base);
expect(reads).toBe(0);
expect(
await transport.readAgentLibrary(new AbortController().signal),
- ).toEqual(projectAgentLibrary(source));
+ ).toEqual(expected);
const bad = await fetch(`${base}/api/relay/agent-library`, {
headers: { Origin: "https://evil.example" },
});
@@ -227,11 +256,21 @@ it.each(["legacy", "current"])(
).rejects.toThrow();
const error = await fetch(`${base}/api/relay/agent-library`);
expect(await error.text()).not.toContain("secret");
- await writeFile(path, JSON.stringify(source));
+ await writeFile(path, bytes);
expect(
await transport.readAgentLibrary(new AbortController().signal),
- ).toEqual(projectAgentLibrary(source));
- expect(await readFile(path, "utf8")).toBe(JSON.stringify(source));
+ ).toEqual(expected);
+ const elsewhere = await scopedTransport("https://other.example");
+ expect(await (await realFetch(elsewhere)).json()).toEqual({
+ definitions: [],
+ identities: [{ pubkey: key, name: "Elsewhere" }],
+ });
+ const fresh = await scopedTransport("https://new.example");
+ expect(await (await realFetch(fresh)).json()).toEqual({
+ definitions: [],
+ identities: [],
+ });
+ expect(await readFile(path, "utf8")).toBe(bytes);
} finally {
server.closeAllConnections();
await new Promise((resolve) => server.close(resolve));
diff --git a/browser-host/attachment-upload.mjs b/browser-host/attachment-upload.mjs
index b288c541c1..8492e15354 100644
--- a/browser-host/attachment-upload.mjs
+++ b/browser-host/attachment-upload.mjs
@@ -138,7 +138,14 @@ export async function uploadAttachment(req, relay, key, fetchUpstream, signal) {
!new RegExp(`^/media/${sha256}(?:\\.[a-z0-9]{1,8})?$`).test(url.pathname)
)
throw new UploadError("invalid", 502);
- return { url: url.href, type: v.type, size, sha256 };
+ // The app validates `dim` like the native path; the broker only forwards it.
+ return {
+ url: url.href,
+ type: v.type,
+ size,
+ sha256,
+ ...(typeof v.dim === "string" ? { dim: v.dim } : {}),
+ };
} finally {
await spool.cleanup();
}
diff --git a/browser-host/attachment-upload.test.mjs b/browser-host/attachment-upload.test.mjs
index 5fd55cbccb..e650a8e853 100644
--- a/browser-host/attachment-upload.test.mjs
+++ b/browser-host/attachment-upload.test.mjs
@@ -1,3 +1,4 @@
+import { receiveAttachment } from "./attachment-file.mjs";
import { createHash } from "node:crypto";
import { createServer } from "node:http";
import { Readable } from "node:stream";
@@ -99,7 +100,7 @@ test("binary upload signs exact bytes for the captured community; existing proxy
"expiration",
String(auth.created_at + Math.ceil(UPLOAD_TIMEOUT_MS / 1000) + 60),
]);
- return Response.json(descriptor(bytes, other));
+ return Response.json({ ...descriptor(bytes, other), dim: "640x400" });
}
expect(auth.tags).toContainEqual(["t", "get"]);
return new Response(bytes, {
@@ -122,7 +123,7 @@ test("binary upload signs exact bytes for the captured community; existing proxy
expect(uploaded.status).toBe(200);
const result = await uploaded.json();
const { uploaded: _uploaded, ...expected } = descriptor(bytes, other);
- expect(result).toEqual(expected);
+ expect(result).toEqual({ ...expected, dim: "640x400" });
const downloaded = await fetch(
`${endpoint}/media?url=${encodeURIComponent(result.url)}`,
);
@@ -381,10 +382,10 @@ test("declared and streamed request budgets reject before signing or forwarding"
for (const declared of [true, false]) {
const req = Readable.from(
(function* () {
- const chunk = Buffer.alloc(1024 * 1024);
- for (let size = 0; size < UPLOAD_MAX_BYTES; size += chunk.length)
- yield chunk;
+ // Cross the cumulative limit without hashing/spooling the entire budget.
+ // The second chunk fits by itself; the preceding byte makes it too large.
yield Buffer.from("x");
+ yield Buffer.alloc(UPLOAD_MAX_BYTES);
})(),
);
req.headers = declared
@@ -398,6 +399,27 @@ test("declared and streamed request budgets reject before signing or forwarding"
expect(forward).not.toHaveBeenCalled();
});
+test("the spool budget counts bytes across chunks", async () => {
+ const req = Readable.from([
+ Buffer.alloc(8),
+ Buffer.alloc(8),
+ Buffer.alloc(1),
+ ]);
+ req.headers = {};
+ try {
+ await expect(
+ receiveAttachment(
+ req,
+ 16,
+ new AbortController().signal,
+ () => new Error("size"),
+ ),
+ ).rejects.toThrow("size");
+ } finally {
+ req.destroy();
+ }
+});
+
test("the whole-operation timeout aborts a stalled body without forwarding", async () => {
const deadline = new AbortController();
const timeout = vi
@@ -463,3 +485,37 @@ test.each(["text/html"])(
}
},
);
+
+test("an upload the community refuses marks its response for the connection", async () => {
+ let reply;
+ const h = await harness(async () => reply());
+ try {
+ for (const [status, body, mark] of [
+ [403, "authorization denied\n", "access"],
+ [401, "authentication required\n", "sign-in"],
+ [403, "evidence rejected\n", "sign-in"],
+ // The media route's own membership refusal (non-member or banned).
+ [403, JSON.stringify({ error: "relay membership required" }), "access"],
+ // The REST refusal, at 97 bytes past the old 64-byte copy bound.
+ [
+ 403,
+ JSON.stringify({
+ error: "relay_membership_required",
+ message: "You must be a relay member to access this relay",
+ }),
+ "access",
+ ],
+ // An item's or an edge's refusal says nothing about the community.
+ [403, JSON.stringify({ error: "restricted: p-gated" }), null],
+ [403, "Forbidden", null],
+ ]) {
+ reply = () => new Response(body, { status });
+ const response = await h.post();
+ // The route still reports its own upload error.
+ expect(await response.json()).toEqual({ code: "denied" });
+ expect(response.headers.get("x-buzz-refusal")).toBe(mark);
+ }
+ } finally {
+ await h.close();
+ }
+});
diff --git a/browser-host/broker-origin.test.mjs b/browser-host/broker-origin.test.mjs
new file mode 100644
index 0000000000..cbb0faaad5
--- /dev/null
+++ b/browser-host/broker-origin.test.mjs
@@ -0,0 +1,149 @@
+import { mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { request } from "node:http";
+import { getPublicKey } from "nostr-tools";
+import { createServer, resolveConfig } from "vite";
+import { expect, it } from "vitest";
+import { relayBrokerPlugin } from "./relay-broker.mjs";
+
+it("admits only the configured browser origin through a loopback proxy", async () => {
+ const directory = mkdtempSync(join(tmpdir(), "buzz-broker-origin-"));
+ const key = new Uint8Array(32).fill(1);
+ const browserOrigin = "https://preview.example.org";
+ const server = await createServer({
+ root: directory,
+ configFile: false,
+ logLevel: "silent",
+ optimizeDeps: { noDiscovery: true, include: [] },
+ server: { host: "127.0.0.1", port: 0, watch: null, hmr: false },
+ plugins: [
+ relayBrokerPlugin({
+ browserOrigin,
+ identity: () => key.slice(),
+ archiveFile: ":memory:",
+ }),
+ ],
+ });
+ try {
+ await server.listen();
+ const base = `http://127.0.0.1:${server.httpServer.address().port}`;
+ const allowed = await fetch(`${base}/api/relay/identity`, {
+ headers: { Origin: browserOrigin, "Sec-Fetch-Site": "same-origin" },
+ });
+ expect(allowed.status).toBe(200);
+ expect(await allowed.json()).toEqual({ viewer: getPublicKey(key) });
+ const post = await fetch(
+ `${base}/api/relay/prepare-remote-agent-authorization`,
+ {
+ method: "POST",
+ headers: {
+ Origin: browserOrigin,
+ "Sec-Fetch-Site": "same-origin",
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ owner: getPublicKey(key),
+ agentPubkey: getPublicKey(new Uint8Array(32).fill(2)),
+ }),
+ },
+ );
+ expect(post.status).toBe(200);
+ expect((await post.json()).slice(0, 2)).toEqual([
+ "auth",
+ getPublicKey(key),
+ ]);
+ for (const Origin of [
+ "https://other.example.org",
+ `${browserOrigin}.evil.example`,
+ "null",
+ base,
+ ]) {
+ const denied = await fetch(`${base}/api/relay/identity`, {
+ headers: { Origin },
+ });
+ expect(denied.status, Origin).toBe(403);
+ }
+ for (const headers of [
+ {},
+ { Origin: browserOrigin, "Sec-Fetch-Site": "cross-site" },
+ ]) {
+ const denied = await fetch(
+ `${base}/api/relay/prepare-remote-agent-authorization`,
+ {
+ method: "POST",
+ headers,
+ body: "{}",
+ },
+ );
+ expect(denied.status).toBe(403);
+ }
+ const hostStatus = await new Promise((resolve, reject) => {
+ const req = request(
+ `${base}/api/relay/identity`,
+ {
+ headers: { Origin: browserOrigin, Host: "other.example.org" },
+ },
+ (response) => {
+ response.resume();
+ response.on("end", () => resolve(response.statusCode));
+ },
+ );
+ req.on("error", reject);
+ req.end();
+ });
+ expect(hostStatus).toBe(403);
+ } finally {
+ await server.close();
+ rmSync(directory, { recursive: true, force: true });
+ }
+});
+
+it.each([
+ ["serve", "production"],
+ ["build", "development"],
+ ["build", "production"],
+])("refuses a hosted origin for %s in %s mode", async (command, mode) => {
+ await expect(
+ resolveConfig(
+ {
+ configFile: false,
+ mode,
+ plugins: [
+ relayBrokerPlugin({
+ browserOrigin: "https://preview.example.org",
+ identity: () => {
+ throw new Error("Identity read");
+ },
+ }),
+ ],
+ },
+ command,
+ mode,
+ ),
+ ).rejects.toThrow(
+ "browserOrigin requires the Vite development server in development mode",
+ );
+});
+
+it.each([
+ "*",
+ "http://preview.example.org",
+ "https://user:pass@preview.example.org",
+ "https://preview.example.org/path",
+ "https://preview.example.org/?query",
+ "https://preview.example.org/#fragment",
+ "",
+])(
+ "refuses invalid browser origin %s before reading identity",
+ (browserOrigin) => {
+ expect(() =>
+ relayBrokerPlugin({
+ browserOrigin,
+ identity: () => {
+ throw new Error("Identity read");
+ },
+ }),
+ ).toThrow("browserOrigin must be an HTTPS origin");
+ },
+);
diff --git a/browser-host/builderlab.mjs b/browser-host/builderlab.mjs
index 74c385306d..4ae6483ed1 100644
--- a/browser-host/builderlab.mjs
+++ b/browser-host/builderlab.mjs
@@ -3,7 +3,11 @@
// in this Node process; the page only sees account metadata and API results.
import { execFile } from "node:child_process";
import { createServer } from "node:http";
-import { randomUUID } from "node:crypto";
+import { randomUUID, randomBytes, createHash } from "node:crypto";
+import { readFileSync, openAsBlob } from "node:fs";
+import { realpath, stat } from "node:fs/promises";
+import { homedir } from "node:os";
+import { sep } from "node:path";
import { finalizeEvent } from "nostr-tools";
const API = "https://app.builderlab.xyz/api/goose";
@@ -12,8 +16,57 @@ export const BUILDERLAB_ORIGIN = "https://app.builderlab.xyz";
const LOGIN_TIMEOUT_MS = 10 * 60 * 1000;
const MAX_RESPONSE_BYTES = 64 * 1024;
const RESPONSE_STATUS = Symbol("builderlabResponseStatus");
-const COMPLETE_HTML =
- "
Buzz authentication completeYou're signed in. You can close this window and return to Buzz.";
+// Use the agents' callback page and assets, without a second visual implementation.
+const callbackRoot = new URL(
+ "../src-tauri/src/oauth_callback/",
+ import.meta.url,
+);
+function callbackPage(status) {
+ const read = (name) => readFileSync(new URL(name, callbackRoot));
+ const style = read("page.css")
+ .toString()
+ .replace("{{font}}", read("inter-latin.woff2").toString("base64"));
+ const script = read("page.js").toString();
+ const hash = (value) => createHash("sha256").update(value).digest("base64");
+ return {
+ body: read("page.html")
+ .toString()
+ .replace("", ``)
+ .replace("", ``)
+ .replace(
+ "",
+ read("brand.html")
+ .toString()
+ .replace(
+ "{{mark}}",
+ readFileSync(
+ new URL("../public/builderlab-mark.svg", import.meta.url),
+ ).toString(),
+ )
+ .replace("{{label}}", ""),
+ )
+ .replace("", "")
+ .replace(
+ "",
+ read("artwork.html")
+ .toString()
+ .replace("{{artwork}}", read("cubes.webp").toString("base64")),
+ )
+ .replace("", read("close-hint.html").toString())
+ .replaceAll("{{provider}}", "Builderlab")
+ .replaceAll("{{complete}}", status === 200 ? "true" : "false")
+ .replaceAll("{{closeDelay}}", "3")
+ .replace(
+ "{{heading}}",
+ status === 200 ? "Signing you in…" : "Sign-in needs attention",
+ )
+ .replace(
+ "{{message}}",
+ status === 200 ? "" : "Return to Buzz to retry sign-in.",
+ ),
+ policy: `default-src 'none'; img-src data:; font-src data:; style-src 'sha256-${hash(style)}'; script-src 'sha256-${hash(script)}'; base-uri 'none'; frame-ancestors 'none'`,
+ };
+}
/** Account routes forwarded with allowlisted string fields only. */
const ROUTES = {
@@ -40,7 +93,12 @@ export const builderlabResponseStatus = (value) =>
value?.[RESPONSE_STATUS] ?? 200;
/** Signs the kind 24243 challenge exactly as block/buzz desktop does, after the same checks. */
-export function bindingEvent(key, challenge, now = Date.now()) {
+export function bindingEvent(
+ key,
+ challenge,
+ now = Date.now(),
+ expectedOrigin = BUILDERLAB_ORIGIN,
+) {
const { challenge_id, nonce, verification_code, origin, expires_at } =
challenge ?? {};
if (
@@ -52,7 +110,7 @@ export function bindingEvent(key, challenge, now = Date.now()) {
!/^[A-Za-z0-9_-]{43}$/.test(nonce) ||
typeof verification_code !== "string" ||
!/^\d{6}$/.test(verification_code) ||
- origin !== BUILDERLAB_ORIGIN ||
+ origin !== expectedOrigin ||
typeof expires_at !== "string" ||
!(Date.parse(expires_at) > now)
)
@@ -88,9 +146,10 @@ const openBrowser = (url) =>
);
/** Waits for one loopback redirect carrying `code`, like the desktop callback listener. */
-function awaitCallback(signal, open) {
+function awaitCallback(signal, open, api, verifier) {
return new Promise((resolve, reject) => {
const nonce = randomUUID().replaceAll("-", "");
+ const state = randomUUID();
let settle;
let settled = false;
const server = createServer((req, res) => {
@@ -108,19 +167,29 @@ function awaitCallback(signal, open) {
res.writeHead(404).end("Not found");
return;
}
+ const codes = url.searchParams.getAll("code");
+ if (
+ url.searchParams.getAll("state").length !== 1 ||
+ url.searchParams.get("state") !== state ||
+ (!url.searchParams.has("error") &&
+ (codes.length !== 1 || !codes[0] || codes[0].length > 4096))
+ ) {
+ res.writeHead(400).end("Invalid callback");
+ return;
+ }
+ const failed = url.searchParams.has("error");
+ const page = callbackPage(failed ? 400 : 200);
res
- .writeHead(200, { "Content-Type": "text/html; charset=utf-8" })
- .end(COMPLETE_HTML);
- const code = url.searchParams.get("code");
+ .writeHead(failed ? 400 : 200, {
+ "Content-Type": "text/html; charset=utf-8",
+ "Cache-Control": "no-store",
+ "Referrer-Policy": "no-referrer",
+ "Content-Security-Policy": page.policy,
+ })
+ .end(page.body);
settle(
- code
- ? null
- : new Error(
- url.searchParams.get("error_description") ??
- url.searchParams.get("error") ??
- "Authentication callback did not include a code",
- ),
- code,
+ failed ? new Error("Browser sign-in failed. Try again.") : null,
+ codes[0],
);
});
const timer = setTimeout(
@@ -143,34 +212,77 @@ function awaitCallback(signal, open) {
server.once("error", (error) => settle(error));
server.listen(0, "127.0.0.1", () => {
const returnTo = `http://127.0.0.1:${server.address().port}/callback/${nonce}`;
- const login = new URL(`${API}/v1/auth/login`);
+ const login = new URL(`${api}/v1/auth/login`);
login.searchParams.set("type", "cli");
login.searchParams.set("product", "buzz");
- login.searchParams.set("returnTo", returnTo);
+ login.searchParams.set("state", state);
+ login.searchParams.set(
+ "code_challenge",
+ createHash("sha256").update(verifier).digest("base64url"),
+ );
+ login.searchParams.set("code_challenge_method", "S256");
+ login.searchParams.set("redirect_uri", returnTo);
open(login.href).catch((error) => settle(error));
});
});
}
+// Only literal true grants a capability; sign-in and capability checks share this.
+const capabilityFlags = (capabilities) => ({
+ can_use_remote_agents: capabilities?.can_use_remote_agents === true,
+ can_use_builderlab_decisions:
+ capabilities?.can_use_builderlab_decisions === true,
+ can_delete_buzz_communities:
+ capabilities?.can_delete_buzz_communities === true,
+});
+
export function createBuilderlab({
key,
fetch = globalThis.fetch,
open = openBrowser,
+ api = API,
+ appsBase,
}) {
let credential;
+ let account;
+ let capabilitiesCheckedAt;
+ let capabilityRead;
+ let pending = false;
+ let loginError;
+ let linking = Promise.resolve();
+ let expiry;
+ let revision = randomUUID();
+ const listeners = new Set();
+ const snapshot = () => ({
+ revision,
+ pending,
+ auth: account ?? null,
+ capabilitiesCheckedAt,
+ ...(loginError ? { error: loginError } : {}),
+ });
+ const notify = () => {
+ for (const listener of listeners) listener(snapshot());
+ };
+ const current = (expected) => {
+ if (!credential || expected !== revision)
+ throw new Error("Builderlab session changed");
+ };
const request = async (path, body, session = credential) => {
if (!session) throw new Error("Sign in to Builderlab first");
- const response = await fetch(`${API}${path}`, {
+ const started = generation;
+ const response = await fetch(`${api}${path}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-BB-Session-Credential": session,
- Origin: BUILDERLAB_ORIGIN,
+ Origin: new URL(api).origin,
},
body: JSON.stringify(body),
redirect: "error",
signal: AbortSignal.timeout(60000),
});
+ if (started !== generation) throw new Error("Builderlab session changed");
+ if (response.status === 401) revoke();
const text = await response.text();
if (Buffer.byteLength(text) > MAX_RESPONSE_BYTES)
throw new Error("Builderlab response was too large");
@@ -190,110 +302,370 @@ export function createBuilderlab({
}
throw new Error(`Builderlab request failed (HTTP ${response.status}).`);
};
- const me = async (session, signal) => {
- const response = await fetch(`${API}/v1/auth/me`, {
+ const me = async (session, signal, capabilitiesOnly = false) => {
+ const started = generation;
+ const response = await fetch(`${api}/v1/auth/me`, {
headers: { "X-BB-Session-Credential": session },
redirect: "error",
signal: AbortSignal.any([signal, AbortSignal.timeout(30000)]),
});
- if (!response.ok)
+ if (!response.ok) {
+ if (
+ response.status === 401 &&
+ !capabilitiesOnly &&
+ started === generation &&
+ credential === session
+ )
+ revoke();
throw new Error(
`Builderlab session check failed with HTTP ${response.status}`,
);
- const { email, name, expires_at, capabilities } = await response.json();
+ }
+ if (capabilitiesOnly) {
+ const value = await response.json();
+ if (!value || typeof value !== "object" || Array.isArray(value))
+ throw new Error("Builderlab returned invalid capabilities");
+ const { capabilities } = value;
+ if (
+ capabilities !== undefined &&
+ (!capabilities ||
+ typeof capabilities !== "object" ||
+ Array.isArray(capabilities))
+ )
+ throw new Error("Builderlab returned invalid capabilities");
+ return {
+ capabilities: capabilityFlags(capabilities),
+ };
+ }
+ const { subject, email, name, expires_at, capabilities } =
+ await response.json();
+ if (
+ typeof subject !== "string" ||
+ !subject.trim() ||
+ !Number.isFinite(Date.parse(expires_at))
+ )
+ throw new Error("Builderlab returned an invalid account");
return {
+ subject,
email,
name,
expiresAt: expires_at,
- capabilities: {
- can_delete_buzz_communities:
- capabilities?.can_delete_buzz_communities === true,
- },
+ capabilities: capabilityFlags(capabilities),
};
};
// Sign-in and sign-out bump the generation; late results from an older one never
// write, clear or describe the current session.
let generation = 0;
let session;
- const revoke = () => {
+ const revoke = (announce = true) => {
generation += 1;
+ revision = randomUUID();
+ clearTimeout(expiry);
+ pending = false;
+ loginError = undefined;
+ account = undefined;
+ capabilitiesCheckedAt = undefined;
+ capabilityRead = undefined;
session?.abort();
session = new AbortController();
credential = undefined;
+ if (announce) notify();
};
revoke();
- return {
+ const signOut = (announce = true) => {
+ const previous = credential;
+ revoke(announce);
+ if (previous)
+ void fetch(`${api}/v1/auth/logout`, {
+ method: "POST",
+ headers: { "X-BB-Session-Credential": previous },
+ redirect: "error",
+ signal: AbortSignal.timeout(30000),
+ }).catch(() => {});
+ };
+ const publishAccount = (value) => {
+ account = value;
+ capabilitiesCheckedAt = Date.now();
+ notify();
+ };
+ const broker = {
+ snapshot,
+ subscribe(listener) {
+ listeners.add(listener);
+ return () => listeners.delete(listener);
+ },
+ async capabilities(expected) {
+ current(expected);
+ if (capabilityRead) return capabilityRead;
+ const started = generation;
+ const checkedAt = Date.now();
+ capabilityRead = (async () => {
+ try {
+ const result = await me(credential, session.signal, true);
+ if (started !== generation)
+ throw new Error("Builderlab session changed");
+ // Restored pages retain refreshed flags without changing the sign-in profile.
+ account = { ...account, capabilities: result.capabilities };
+ return { revision, ...result };
+ } finally {
+ if (started === generation) {
+ capabilitiesCheckedAt = checkedAt;
+ capabilityRead = undefined;
+ }
+ }
+ })();
+ return capabilityRead;
+ },
async auth() {
const current = credential;
if (!current) return null;
const started = generation;
+ // Transport failures do not revoke a valid shared sign-in.
+ await linking;
+ const account = await me(current, session.signal);
+ if (started !== generation) throw new Error("Builderlab session changed");
+ return account;
+ },
+ async login(signal) {
+ signOut(false);
+ const started = generation;
+ pending = true;
+ notify();
+ const attempt = signal
+ ? AbortSignal.any([signal, session.signal])
+ : session.signal;
+ let loginCredential;
try {
- const account = await me(current, session.signal);
+ const verifier = randomBytes(32).toString("base64url");
+ const code = await awaitCallback(attempt, open, api, verifier);
+ const response = await fetch(`${api}/v1/auth/login/exchange`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ code, code_verifier: verifier }),
+ redirect: "error",
+ signal: AbortSignal.any([attempt, AbortSignal.timeout(30000)]),
+ });
+ if (!response.ok)
+ throw new Error(
+ `Builderlab code exchange failed with HTTP ${response.status}`,
+ );
+ const exchanged = await response.json();
+ if (
+ typeof exchanged.session_credential !== "string" ||
+ !exchanged.session_credential ||
+ exchanged.session_credential.length > 4096 ||
+ [...exchanged.session_credential].some(
+ (character) =>
+ character.charCodeAt(0) <= 32 || character.charCodeAt(0) > 126,
+ )
+ )
+ throw new Error(
+ "Builderlab code exchange returned an empty credential",
+ );
+ loginCredential = exchanged.session_credential;
+ const account = await me(loginCredential, attempt);
+ if (account.expiresAt !== exchanged.expires_at)
+ throw new Error(
+ "Builderlab session expiry did not match code exchange",
+ );
+ if (attempt.aborted || started !== generation)
+ throw new Error("Builderlab authentication canceled");
+ credential = exchanged.session_credential;
+ const delay = Date.parse(account.expiresAt) - Date.now();
+ if (delay <= 0) throw new Error("Builderlab sign-in expired");
+ expiry = setTimeout(revoke, Math.min(delay, 2_147_483_647));
+ expiry.unref?.();
+ // Bind before subsequent remote-agent operations.
+ void broker.bind();
if (started !== generation)
throw new Error("Builderlab session changed");
+ publishAccount(account);
return account;
} catch (error) {
- if (started === generation) credential = undefined;
- throw error;
+ const message = (
+ error instanceof Error ? error.message : "Builderlab sign-in failed"
+ ).replaceAll(loginCredential || "\u0000", "[redacted]");
+ if (started === generation) {
+ const canceled = attempt.aborted;
+ revoke(false);
+ loginError = canceled ? undefined : message;
+ notify();
+ }
+ throw new Error(message);
+ } finally {
+ if (started === generation) {
+ pending = false;
+ notify();
+ }
}
},
- async login(signal) {
- revoke();
+
+ signOut,
+ // Only the broker's fixed viewer/Decisions handlers opt into native routes.
+ async request(input, signal, native = false) {
+ // Activation must not overtake the sign-in's automatic key binding.
+ if (
+ typeof input.path === "string" &&
+ input.path.startsWith("/v3/beekeeper/")
+ )
+ await linking;
+ current(input.revision);
const started = generation;
- const attempt = AbortSignal.any([signal, session.signal]);
- const code = await awaitCallback(attempt, open);
- const response = await fetch(`${API}/v1/auth/login/exchange`, {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ code }),
- redirect: "error",
- signal: AbortSignal.any([attempt, AbortSignal.timeout(30000)]),
- });
- if (!response.ok)
+ const secret = credential;
+ const apps = input.target === "apps";
+ if (apps && !appsBase)
throw new Error(
- `Builderlab code exchange failed with HTTP ${response.status}`,
+ "Apps are not configured for this Builderlab environment",
);
- const exchanged = await response.json();
+ const base = new URL(apps ? appsBase : api);
+ const prefix = base.pathname.replace(/\/$/, "");
+ let url;
+ try {
+ if (
+ typeof input.path !== "string" ||
+ !input.path.startsWith("/") ||
+ input.path.startsWith("//") ||
+ input.path.includes("#") ||
+ input.path.includes("\\")
+ )
+ throw new Error();
+ url = new URL(`${base.href.replace(/\/$/, "")}${input.path}`);
+ } catch {
+ throw new Error("Unsupported Builderlab request");
+ }
+ const path = url.pathname.slice(prefix.length);
if (
- typeof exchanged.session_credential !== "string" ||
- !exchanged.session_credential
+ url.origin !== base.origin ||
+ !url.pathname.startsWith(`${prefix}/`) ||
+ !(native
+ ? !apps &&
+ [
+ "/v3/builderlab/decisions",
+ "/v1/auth/hosted-site/native-session",
+ ].includes(path)
+ : apps
+ ? /^\/v1\/agent\//.test(path)
+ : /^\/(?:v3\/beekeeper\/|v1\/buzz\/known-communities\/(?:list|add|remove)$)/.test(
+ path,
+ ))
)
- throw new Error(
- "Builderlab code exchange returned an empty credential",
- );
- const account = await me(exchanged.session_credential, attempt);
- if (account.expiresAt !== exchanged.expires_at)
- throw new Error(
- "Builderlab session expiry did not match code exchange",
+ throw new Error("Unsupported Builderlab request");
+ const method = input.method ?? "GET";
+ if (
+ !(apps ? ["GET", "POST", "PUT", "DELETE"] : ["GET", "POST"]).includes(
+ method,
+ )
+ )
+ throw new Error("Unsupported Builderlab method");
+ const headers = {
+ Accept: "application/json",
+ ...(apps
+ ? {
+ Authorization: `BBIdentity ${secret}`,
+ "X-Hotpod-Agent-Client-Version": "0.2.0",
+ }
+ : { "X-BB-Session-Credential": secret, Origin: new URL(api).origin }),
+ };
+ if (path === "/v3/builderlab/decisions") {
+ if (
+ typeof input.community !== "string" ||
+ !/^[a-z0-9.-]+(?::[0-9]+)?$/i.test(input.community) ||
+ input.community.length > 253
+ )
+ throw new Error("Invalid decision community");
+ headers["X-Buzz-Community"] = input.community;
+ }
+ let body = input.body;
+ if (input.file) {
+ if (
+ !apps ||
+ !/^\/v1\/agent\/apps\/[A-Za-z0-9_-]+\/deploy$/.test(path) ||
+ method !== "POST"
+ )
+ throw new Error("Unsupported Apps upload");
+ const home = await realpath(homedir());
+ const file = await realpath(input.file);
+ if (
+ file !== input.file ||
+ !file.startsWith(`${home}${sep}`) ||
+ !file.endsWith(".tar.gz") ||
+ !(await stat(file)).isFile() ||
+ (await stat(file)).size > 100 * 1024 * 1024
+ )
+ throw new Error(
+ "Apps artifact must be a .tar.gz file under home, at most 100 MB",
+ );
+ body = new FormData();
+ body.set(
+ "artifact",
+ await openAsBlob(file, { type: "application/gzip" }),
+ "artifact.tar.gz",
);
- if (attempt.aborted || started !== generation)
- throw new Error("Builderlab authentication canceled");
- credential = exchanged.session_credential;
- return account;
+ } else if (body !== undefined) {
+ if (typeof body !== "string")
+ throw new Error("Invalid Builderlab body");
+ headers["Content-Type"] = "application/json";
+ }
+ current(input.revision);
+ const response = await fetch(url, {
+ method,
+ headers,
+ ...(body !== undefined ? { body } : {}),
+ redirect: "error",
+ signal: AbortSignal.any([
+ signal,
+ // A dispatched upload keeps its receipt after sign-out/account switch.
+ ...(input.file ? [] : [session.signal]),
+ AbortSignal.timeout(
+ input.file || path.endsWith("/initialize") ? 180000 : 60000,
+ ),
+ ]),
+ });
+ const text = await response.text();
+ if (Buffer.byteLength(text) > 16 * 1024 * 1024)
+ throw new Error("Builderlab response was too large");
+ if (started !== generation && !input.file)
+ throw new Error("Builderlab session changed");
+ if (response.status === 401 && started === generation && !apps) revoke();
+ return {
+ status: response.status,
+ headers: {},
+ body: text.replaceAll(secret, "[redacted]"),
+ };
},
- signOut: revoke,
- async bind() {
- const session = credential;
- const started = generation;
- const challenge = await request(
- "/v1/buzz/nostr-identities/challenge",
- { origin: BUILDERLAB_ORIGIN },
- session,
- );
- if (challenge.error) return challenge;
- // A sign-out or new sign-in while the challenge was pending must not let the
- // old credential claim this device's key.
- if (started !== generation) throw new Error("Builderlab session changed");
- const event = bindingEvent(key(), challenge);
- return request(
- "/v1/buzz/nostr-identities/verify",
- {
- challenge_id: challenge.challenge_id,
- nonce: challenge.nonce,
- signed_payload: JSON.stringify(event),
- },
- session,
- );
+ bind() {
+ const done = (async () => {
+ const session = credential;
+ const started = generation;
+ const challenge = await request(
+ "/v1/buzz/nostr-identities/challenge",
+ { origin: new URL(api).origin },
+ session,
+ );
+ if (challenge.error) return challenge;
+ // A sign-out or new sign-in while the challenge was pending must not let the
+ // old credential claim this device's key.
+ if (started !== generation)
+ throw new Error("Builderlab session changed");
+ const event = bindingEvent(
+ key(),
+ challenge,
+ Date.now(),
+ new URL(api).origin,
+ );
+ return request(
+ "/v1/buzz/nostr-identities/verify",
+ {
+ challenge_id: challenge.challenge_id,
+ nonce: challenge.nonce,
+ signed_payload: JSON.stringify(event),
+ },
+ session,
+ );
+ })();
+ // Every attempt, including a manual retry, replaces the previous result.
+ linking = done.catch(() => {});
+ return done;
},
async call(action, input) {
const route = Object.hasOwn(ROUTES, action) ? ROUTES[action] : undefined;
@@ -314,4 +686,5 @@ export function createBuilderlab({
return request(path, body);
},
};
+ return broker;
}
diff --git a/browser-host/builderlab.test.mjs b/browser-host/builderlab.test.mjs
index 3cf198e9f1..33acf897a1 100644
--- a/browser-host/builderlab.test.mjs
+++ b/browser-host/builderlab.test.mjs
@@ -1,5 +1,9 @@
-import { expect, it } from "vitest";
+import { expect, it, vi } from "vitest";
+import { mkdtemp, realpath, rm, writeFile } from "node:fs/promises";
+import { homedir } from "node:os";
+import { join } from "node:path";
import { generateSecretKey, getPublicKey, verifyEvent } from "nostr-tools";
+import { controlPlane } from "../src/bundled/builderlab/apps/environment";
import {
BUILDERLAB_ORIGIN,
bindingEvent,
@@ -54,9 +58,13 @@ it.each([
function account(responses = {}) {
const requests = [];
let opened;
+ let didOpen;
+ const openedReady = new Promise((resolve) => {
+ didOpen = resolve;
+ });
const fetch = async (url, init = {}) => {
const path = new URL(url).pathname.replace("/api/goose", "");
- requests.push({ path, init });
+ requests.push({ path, url: new URL(url), init });
const reply = responses[path];
if (reply) return reply(init);
if (path === "/v1/auth/login/exchange")
@@ -66,6 +74,7 @@ function account(responses = {}) {
});
if (path === "/v1/auth/me")
return Response.json({
+ subject: "auth0|owner",
email: "a@example.com",
name: "A",
expires_at: "2030",
@@ -80,8 +89,10 @@ function account(responses = {}) {
return key;
},
fetch,
+ appsBase: controlPlane(BUILDERLAB_ORIGIN),
open: async (url) => {
opened = new URL(url);
+ didOpen(opened);
},
});
return {
@@ -89,31 +100,54 @@ function account(responses = {}) {
requests,
key,
opened: () => opened,
+ openedReady,
signs: () => signs,
};
}
async function signIn(h) {
- const pending = h.builderlab.login(new AbortController().signal);
- while (!h.opened()) await new Promise((resolve) => setTimeout(resolve, 5));
- const returnTo = h.opened().searchParams.get("returnTo");
+ const previous = h.opened();
+ // Observe rejection before the callback's network round trip; still propagate it to the caller.
+ const pending = h.builderlab.login(new AbortController().signal).then(
+ (auth) => ({ auth }),
+ (error) => ({ error }),
+ );
+ await vi.waitFor(() => {
+ expect(h.opened()).toBeDefined();
+ expect(h.opened()).not.toBe(previous);
+ });
+ const returnTo = h.opened().searchParams.get("redirect_uri");
expect(new URL(returnTo).hostname).toBe("127.0.0.1");
- await globalThis.fetch(`${returnTo}?code=one-time`);
- return pending;
+ await globalThis.fetch(
+ `${returnTo}?state=${h.opened().searchParams.get("state")}&code=one-time`,
+ );
+ const result = await pending;
+ if ("error" in result) throw result.error;
+ return result.auth;
}
it("completes browser sign-in through a loopback callback without exposing the credential", async () => {
const h = account();
const auth = await signIn(h);
expect(auth).toEqual({
+ subject: "auth0|owner",
email: "a@example.com",
name: "A",
expiresAt: "2030",
- capabilities: { can_delete_buzz_communities: false },
+ capabilities: {
+ can_delete_buzz_communities: false,
+ can_use_remote_agents: false,
+ can_use_builderlab_decisions: false,
+ },
});
expect(JSON.stringify(auth)).not.toContain("secret");
expect(h.opened().pathname).toBe("/api/goose/v1/auth/login");
expect(h.opened().searchParams.get("product")).toBe("buzz");
- expect(JSON.parse(h.requests[0].init.body)).toEqual({ code: "one-time" });
+ const exchange = JSON.parse(h.requests[0].init.body);
+ expect(exchange.code).toBe("one-time");
+ const { createHash } = await import("node:crypto");
+ expect(
+ createHash("sha256").update(exchange.code_verifier).digest("base64url"),
+ ).toBe(h.opened().searchParams.get("code_challenge"));
await h.builderlab.call("list", {});
expect(h.requests.at(-1).init.headers).toMatchObject({
"X-BB-Session-Credential": "secret",
@@ -207,6 +241,7 @@ it.each([
const h = account({
"/v1/auth/me": () =>
Response.json({
+ subject: "auth0|owner",
email: "a@example.com",
expires_at: "2030",
capabilities: { can_delete_buzz_communities: value },
@@ -214,6 +249,8 @@ it.each([
});
expect((await signIn(h)).capabilities).toEqual({
can_delete_buzz_communities: expected,
+ can_use_remote_agents: false,
+ can_use_builderlab_decisions: false,
});
});
@@ -267,6 +304,61 @@ const deferred = () => {
return { promise, resolve };
};
+it.each(["held", "rejected"])(
+ "logs out a replaced credential without blocking login on a %s upstream logout",
+ async (outcome) => {
+ const release = deferred();
+ const finished = deferred();
+ const h = account({
+ "/v1/auth/logout": async () => {
+ try {
+ await release.promise;
+ if (outcome === "rejected") throw new Error("Logout unavailable");
+ return Response.json({});
+ } finally {
+ finished.resolve();
+ }
+ },
+ });
+ await signIn(h);
+ const before = h.opened();
+ const states = [];
+ const stop = h.builderlab.subscribe((state) => states.push(state));
+ const abort = new AbortController();
+ const login = h.builderlab.login(abort.signal).catch((error) => error);
+ try {
+ expect(
+ h.requests.filter(({ path }) => path === "/v1/auth/logout"),
+ ).toMatchObject([
+ {
+ init: {
+ method: "POST",
+ headers: { "X-BB-Session-Credential": "secret" },
+ redirect: "error",
+ },
+ },
+ ]);
+ expect(states).toHaveLength(1);
+ expect(states[0]).toMatchObject({ pending: true, auth: null });
+ // Opening the replacement browser does not wait for upstream revocation.
+ await vi.waitFor(() => expect(h.opened()).not.toBe(before));
+ release.resolve();
+ await finished.promise;
+ expect(h.builderlab.snapshot()).toMatchObject({
+ pending: true,
+ auth: null,
+ });
+ expect(h.builderlab.snapshot()).not.toHaveProperty("error");
+ } finally {
+ release.resolve();
+ abort.abort();
+ await login;
+ stop();
+ h.builderlab.signOut();
+ }
+ },
+);
+
it.each(["cancel", "sign-out"])(
"a %s during a held code exchange never restores the session",
async (mode) => {
@@ -285,12 +377,15 @@ it.each(["cancel", "sign-out"])(
const abort = new AbortController();
const pending = h.builderlab.login(abort.signal).catch((error) => error);
while (!h.opened()) await new Promise((resolve) => setTimeout(resolve, 5));
- await globalThis.fetch(`${h.opened().searchParams.get("returnTo")}?code=x`);
+ await globalThis.fetch(
+ `${h.opened().searchParams.get("redirect_uri")}?state=${h.opened().searchParams.get("state")}&code=x`,
+ );
await started.promise;
if (mode === "cancel") abort.abort();
else h.builderlab.signOut();
release.resolve();
expect(await pending).toBeInstanceOf(Error);
+ expect(h.builderlab.snapshot()).not.toHaveProperty("error");
expect(await h.builderlab.auth()).toBeNull();
await expect(h.builderlab.call("list", {})).rejects.toThrow(
"Sign in to Builderlab first",
@@ -317,7 +412,11 @@ it.each(["error", "success"])(
await release.promise;
if (outcome === "error") return Response.json({}, { status: 401 });
}
- return Response.json({ email: session, expires_at: "2030" });
+ return Response.json({
+ subject: session,
+ email: session,
+ expires_at: "2030",
+ });
},
});
const signInAs = async (code) => {
@@ -326,7 +425,7 @@ it.each(["error", "success"])(
while (h.opened() === before)
await new Promise((resolve) => setTimeout(resolve, 5));
await globalThis.fetch(
- `${h.opened().searchParams.get("returnTo")}?code=${code}`,
+ `${h.opened().searchParams.get("redirect_uri")}?state=${h.opened().searchParams.get("state")}&code=${code}`,
);
return pending;
};
@@ -378,7 +477,7 @@ it("rejects malformed and wrong callbacks without ending the listener", async ()
const h = account();
const pending = h.builderlab.login(new AbortController().signal);
while (!h.opened()) await new Promise((resolve) => setTimeout(resolve, 5));
- const returnTo = new URL(h.opened().searchParams.get("returnTo"));
+ const returnTo = new URL(h.opened().searchParams.get("redirect_uri"));
const { request } = await import("node:http");
const raw = (path) =>
new Promise((resolve, reject) =>
@@ -391,6 +490,628 @@ it("rejects malformed and wrong callbacks without ending the listener", async ()
);
expect(await raw("//[")).toBe(400);
expect(await raw("/callback/wrong?code=x")).toBe(404);
- await globalThis.fetch(`${returnTo}?code=one-time`);
+ await globalThis.fetch(
+ `${returnTo}?state=${h.opened().searchParams.get("state")}&code=one-time`,
+ );
expect(await pending).toMatchObject({ email: "a@example.com" });
});
+
+it("keeps one public server revision for agents, Apps and reloaded clients, and never forwards caller credentials", async () => {
+ const h = account({
+ "/v3/beekeeper/list-agents": () => Response.json({ status: 1, agents: [] }),
+ "/v1/agent/apps": () => Response.json({ apps: [] }),
+ });
+ const states = [];
+ const stop = h.builderlab.subscribe((state) => states.push(state));
+ await signIn(h);
+ const signedIn = h.builderlab.snapshot();
+ expect(signedIn).toMatchObject({
+ pending: false,
+ auth: { subject: "auth0|owner" },
+ });
+ expect(JSON.stringify(states)).not.toContain("secret");
+ const revision = signedIn.revision;
+ await h.builderlab.request(
+ {
+ revision,
+ path: "/v3/beekeeper/list-agents",
+ method: "POST",
+ body: "{}",
+ headers: { "X-BB-Session-Credential": "untrusted" },
+ },
+ new AbortController().signal,
+ );
+ expect(h.requests.at(-1).init.headers["X-BB-Session-Credential"]).toBe(
+ "secret",
+ );
+ await h.builderlab.request(
+ { revision, target: "apps", path: "/v1/agent/apps?scope=owned" },
+ new AbortController().signal,
+ );
+ expect(h.requests.at(-1).init.headers.Authorization).toBe(
+ "BBIdentity secret",
+ );
+ await expect(h.builderlab.auth()).resolves.toMatchObject({
+ subject: "auth0|owner",
+ });
+ expect(h.builderlab.snapshot().revision).toBe(revision);
+ h.builderlab.signOut();
+ await expect(
+ h.builderlab.request(
+ { revision, path: "/v3/beekeeper/list-agents" },
+ new AbortController().signal,
+ ),
+ ).rejects.toThrow("session changed");
+ expect(states.at(-1).auth).toBeNull();
+ stop();
+});
+
+it("expires every consumer together on 401, while a transient account check preserves the server login", async () => {
+ let unavailable = false;
+ const h = account({
+ "/v1/auth/me": () =>
+ unavailable
+ ? Promise.reject(new Error("offline"))
+ : Response.json({ subject: "owner", expires_at: "2030" }),
+ "/v3/beekeeper/list-agents": () => Response.json({}, { status: 401 }),
+ });
+ await signIn(h);
+ const revision = h.builderlab.snapshot().revision;
+ unavailable = true;
+ await expect(h.builderlab.auth()).rejects.toThrow("offline");
+ expect(h.builderlab.snapshot().revision).toBe(revision);
+ const reply = await h.builderlab.request(
+ { revision, path: "/v3/beekeeper/list-agents", method: "POST", body: "{}" },
+ new AbortController().signal,
+ );
+ expect(reply.status).toBe(401);
+ expect(h.builderlab.snapshot()).toMatchObject({ auth: null, pending: false });
+});
+
+it("keeps the shared login and agent requests working after an Apps 401", async () => {
+ const h = account({
+ "/v1/agent/apps": () => Response.json({}, { status: 401 }),
+ "/v3/beekeeper/list-agents": () => Response.json({ agents: [] }),
+ });
+ await signIn(h);
+ const before = h.builderlab.snapshot();
+ const signal = new AbortController().signal;
+ expect(
+ await h.builderlab.request(
+ { revision: before.revision, target: "apps", path: "/v1/agent/apps" },
+ signal,
+ ),
+ ).toMatchObject({ status: 401 });
+ expect(h.builderlab.snapshot()).toEqual(before);
+ expect(
+ await h.builderlab.request(
+ {
+ revision: before.revision,
+ path: "/v3/beekeeper/list-agents",
+ method: "POST",
+ body: "{}",
+ },
+ signal,
+ ),
+ ).toMatchObject({ status: 200 });
+ h.builderlab.signOut();
+});
+
+it("preserves encoded Apps IDs and query values after resolving the allowed URL", async () => {
+ const h = account();
+ await signIn(h);
+ const path =
+ "/v1/agent/apps/app/communities/" +
+ encodeURIComponent("community:id") +
+ "?" +
+ new URLSearchParams({ version_id: "version/id with spaces" });
+ await h.builderlab.request(
+ { revision: h.builderlab.snapshot().revision, target: "apps", path },
+ new AbortController().signal,
+ );
+ expect(h.requests.at(-1).url.href).toBe(
+ `${controlPlane(BUILDERLAB_ORIGIN)}${path}`,
+ );
+ h.builderlab.signOut();
+});
+
+it.each([
+ "/v1/auth/login/exchange",
+ "/v1/auth/me",
+ "/v1/buzz/communities/list",
+ "/v1/buzz/nostr-identities/current",
+ "//evil.example/",
+ "/v3/beekeeper/../auth/me",
+ "/v3/beekeeper/%2e%2e/auth/me",
+ "/v1/auth/hosted-site/native-session",
+ "/v3/builderlab/decisions",
+ "/v3/beekeeper/../../../../v1/auth/me",
+])("refuses proxy path %s before dispatch", async (path) => {
+ const h = account();
+ await signIn(h);
+ const count = h.requests.length;
+ await expect(
+ h.builderlab.request(
+ { revision: h.builderlab.snapshot().revision, path },
+ new AbortController().signal,
+ ),
+ ).rejects.toThrow("Unsupported");
+ expect(h.requests).toHaveLength(count);
+ h.builderlab.signOut();
+});
+
+it("ends the shared session at its advertised expiry", async () => {
+ const expires = new Date(Date.now() + 60_000).toISOString();
+ const h = account({
+ "/v1/auth/login/exchange": () =>
+ Response.json({ session_credential: "secret", expires_at: expires }),
+ "/v1/auth/me": () =>
+ Response.json({ subject: "owner", expires_at: expires }),
+ });
+ const login = h.builderlab.login(new AbortController().signal);
+ while (!h.opened()) await new Promise((resolve) => setTimeout(resolve, 5));
+ vi.useFakeTimers({ toFake: ["setTimeout", "clearTimeout", "Date"] });
+ try {
+ await globalThis.fetch(
+ `${h.opened().searchParams.get("redirect_uri")}?state=${h.opened().searchParams.get("state")}&code=expiry`,
+ );
+ await login;
+ expect(h.builderlab.snapshot().auth).not.toBeNull();
+ await vi.advanceTimersByTimeAsync(60_000);
+ expect(h.builderlab.snapshot()).toMatchObject({
+ auth: null,
+ pending: false,
+ });
+ expect(await h.builderlab.auth()).toBeNull();
+ } finally {
+ vi.useRealTimers();
+ h.builderlab.signOut();
+ }
+});
+
+it("forwards native-validated Decisions through the same server session and community", async () => {
+ const h = account();
+ await signIn(h);
+ await h.builderlab.request(
+ {
+ revision: h.builderlab.snapshot().revision,
+ path: "/v3/builderlab/decisions",
+ method: "POST",
+ community: "buzz.example.com",
+ body: "{}",
+ },
+ new AbortController().signal,
+ true,
+ );
+ expect(h.requests.at(-1).init.headers).toMatchObject({
+ "X-BB-Session-Credential": "secret",
+ "X-Buzz-Community": "buzz.example.com",
+ });
+ await expect(
+ h.builderlab.request(
+ {
+ revision: h.builderlab.snapshot().revision,
+ path: "/v3/builderlab/decisions",
+ method: "POST",
+ community: "x\r\nforged",
+ body: "{}",
+ },
+ new AbortController().signal,
+ true,
+ ),
+ ).rejects.toThrow("Invalid decision community");
+ h.builderlab.signOut();
+});
+
+it("requires the agents OAuth state and reuses their branded callback page", async () => {
+ const h = account();
+ const login = h.builderlab.login(new AbortController().signal);
+ const opened = await h.openedReady;
+ const callback = opened.searchParams.get("redirect_uri");
+ expect(
+ (await globalThis.fetch(`${callback}?state=wrong&code=x`)).status,
+ ).toBe(400);
+ const response = await globalThis.fetch(
+ `${callback}?state=${opened.searchParams.get("state")}&code=x`,
+ );
+ expect(response.status).toBe(200);
+ const body = await response.text();
+ expect(response.headers.get("content-security-policy")).toContain(
+ "script-src 'sha256-",
+ );
+ expect(response.headers.get("cache-control")).toBe("no-store");
+ await login;
+ h.builderlab.signOut();
+ expect(body).toContain("Signing you in…");
+ expect(body).toContain("
Builderlab sign-in");
+ expect(body).toContain('data-provider="Builderlab"');
+ expect(body).toContain('class="brand" role="img" aria-label="Builderlab"');
+ expect(body).toContain('src="data:image/webp;base64,');
+ expect(body).toContain('id="closing-hint"');
+ expect(body).toContain('id="close-hint">You can close this window.');
+ expect(body).not.toContain("{{");
+});
+
+it.each(["secret\ncredential", "secret credential"])(
+ "refuses unsafe credential bytes before any authenticated request",
+ async (session_credential) => {
+ const h = account({
+ "/v1/auth/login/exchange": () =>
+ Response.json({ session_credential, expires_at: "2030" }),
+ });
+ await expect(signIn(h)).rejects.toThrow("empty credential");
+ expect(h.requests.map((entry) => entry.path)).not.toContain("/v1/auth/me");
+ expect(h.builderlab.snapshot().auth).toBeNull();
+ },
+);
+
+it("settles the sign-in identity binding before dispatching remote-agent operations", async () => {
+ const started = deferred();
+ const release = deferred();
+ let released = false;
+ const h = account({
+ "/v1/buzz/nostr-identities/challenge": async () => {
+ started.resolve();
+ await release.promise;
+ return Response.json({
+ ...challenge,
+ expires_at: "2099-01-01T00:00:00Z",
+ });
+ },
+ "/v3/beekeeper/list-agents": () => {
+ expect(released).toBe(true);
+ return Response.json({ status: 1, agents: [] });
+ },
+ });
+ await signIn(h);
+ await started.promise;
+ const request = h.builderlab.request(
+ {
+ revision: h.builderlab.snapshot().revision,
+ path: "/v3/beekeeper/list-agents",
+ method: "POST",
+ body: "{}",
+ },
+ new AbortController().signal,
+ );
+ released = true;
+ release.resolve();
+ await expect(request).resolves.toMatchObject({ status: 200 });
+ h.builderlab.signOut();
+});
+
+it("announces a new sign-in atomically as pending, without canceling observers", async () => {
+ const h = account();
+ const states = [];
+ const stop = h.builderlab.subscribe((state) => states.push(state));
+ const login = h.builderlab.login(new AbortController().signal);
+ const authorization = await h.openedReady;
+ expect(states).toHaveLength(1);
+ expect(states[0]).toMatchObject({ pending: true, auth: null });
+ await globalThis.fetch(
+ `${authorization.searchParams.get("redirect_uri")}?code=fixture&state=${authorization.searchParams.get("state")}`,
+ );
+ await login;
+ expect(states.at(-1)).toMatchObject({
+ pending: false,
+ auth: { subject: "auth0|owner" },
+ });
+ stop();
+ h.builderlab.signOut();
+});
+
+it.each(["sign-out", "account-switch", "disconnect"])(
+ "preserves a dispatched Apps upload across %s while retaining disconnect cancellation",
+ async (mode) => {
+ const directory = await mkdtemp(
+ join(await realpath(homedir()), ".buzz-upload-test-"),
+ );
+ const file = join(directory, "artifact.tar.gz");
+ await writeFile(file, "fixture archive");
+ const accepted = deferred();
+ const release = deferred();
+ const receipt = { version_id: "version-A", deployment_id: "deployment-A" };
+ const h = account({
+ "/v1/agent/apps/demo/deploy": (init) => {
+ accepted.resolve(init);
+ return {
+ status: 201,
+ async text() {
+ await release.promise;
+ init.signal.throwIfAborted();
+ return JSON.stringify(receipt);
+ },
+ };
+ },
+ });
+ const caller = new AbortController();
+ try {
+ await signIn(h);
+ const pending = h.builderlab
+ .request(
+ {
+ revision: h.builderlab.snapshot().revision,
+ target: "apps",
+ path: "/v1/agent/apps/demo/deploy",
+ method: "POST",
+ file,
+ },
+ caller.signal,
+ )
+ .then(
+ (result) => ({ result }),
+ (error) => ({ error }),
+ );
+ const upstream = await accepted.promise;
+ expect(upstream.headers.Authorization).toBe("BBIdentity secret");
+ if (mode === "disconnect") caller.abort();
+ else {
+ h.builderlab.signOut();
+ if (mode === "account-switch") {
+ const before = h.opened();
+ const login = h.builderlab.login(new AbortController().signal);
+ await vi.waitFor(() => expect(h.opened()).not.toBe(before));
+ await globalThis.fetch(
+ `${h.opened().searchParams.get("redirect_uri")}?state=${h.opened().searchParams.get("state")}&code=replacement`,
+ );
+ await login;
+ }
+ }
+ expect(upstream.signal.aborted).toBe(mode === "disconnect");
+ release.resolve();
+ const outcome = await pending;
+ if (mode === "disconnect") expect(outcome.error?.name).toBe("AbortError");
+ else {
+ expect(outcome.result?.status).toBe(201);
+ expect(JSON.parse(outcome.result.body)).toEqual(receipt);
+ }
+ } finally {
+ release.resolve();
+ h.builderlab.signOut();
+ await rm(directory, { recursive: true, force: true });
+ }
+ },
+);
+
+it("publishes login failures in the shared revision and clears them on a new attempt or sign-out", async () => {
+ const h = account({
+ "/v1/auth/login/exchange": () => Response.json({}, { status: 503 }),
+ });
+ const states = [];
+ const stop = h.builderlab.subscribe((state) => states.push(state));
+ try {
+ await expect(signIn(h)).rejects.toThrow(
+ "code exchange failed with HTTP 503",
+ );
+ expect(states).toHaveLength(2);
+ expect(states[0]).toMatchObject({ pending: true, auth: null });
+ expect(states[1]).toMatchObject({
+ pending: false,
+ auth: null,
+ error: "Builderlab code exchange failed with HTTP 503",
+ });
+ expect(states[1].revision).not.toBe(states[0].revision);
+ const before = h.opened();
+ const replacement = h.builderlab
+ .login(new AbortController().signal)
+ .catch((error) => error);
+ await vi.waitFor(() => expect(h.opened()).not.toBe(before));
+ expect(h.builderlab.snapshot()).toMatchObject({
+ pending: true,
+ auth: null,
+ });
+ expect(h.builderlab.snapshot()).not.toHaveProperty("error");
+ h.builderlab.signOut();
+ await replacement;
+ expect(h.builderlab.snapshot()).toMatchObject({
+ pending: false,
+ auth: null,
+ });
+ expect(h.builderlab.snapshot()).not.toHaveProperty("error");
+ } finally {
+ stop();
+ h.builderlab.signOut();
+ }
+});
+
+it("redacts the login credential before publishing a shared failure or returning it to HTTP", async () => {
+ const h = account({
+ "/v1/auth/me": () => {
+ throw new Error("Could not check secret");
+ },
+ });
+ try {
+ await expect(signIn(h)).rejects.toThrow("Could not check [redacted]");
+ expect(h.builderlab.snapshot().error).toBe("Could not check [redacted]");
+ expect(JSON.stringify(h.builderlab.snapshot())).not.toContain("secret");
+ } finally {
+ h.builderlab.signOut();
+ }
+});
+
+it("keeps the broker sign-in and account projection when a capability-only check is refused", async () => {
+ let status = 200;
+ let invalid = false;
+ const h = account({
+ "/v1/auth/me": () =>
+ Response.json(
+ invalid
+ ? []
+ : {
+ subject: "user",
+ email: "a@example.org",
+ expires_at: "2030",
+ capabilities: { can_use_remote_agents: true },
+ },
+ { status },
+ ),
+ });
+ await signIn(h);
+ const previous = h.builderlab.snapshot();
+ status = 401;
+ await expect(h.builderlab.capabilities(previous.revision)).rejects.toThrow(
+ "HTTP 401",
+ );
+ expect(h.builderlab.snapshot()).toEqual({
+ ...previous,
+ capabilitiesCheckedAt: expect.any(Number),
+ });
+ status = 200;
+ invalid = true;
+ await expect(h.builderlab.capabilities(previous.revision)).rejects.toThrow(
+ "invalid capabilities",
+ );
+ expect(h.builderlab.snapshot()).toEqual({
+ ...previous,
+ capabilitiesCheckedAt: expect.any(Number),
+ });
+ invalid = false;
+ await expect(h.builderlab.capabilities(previous.revision)).resolves.toEqual({
+ revision: previous.revision,
+ capabilities: {
+ can_use_remote_agents: true,
+ can_use_builderlab_decisions: false,
+ can_delete_buzz_communities: false,
+ },
+ });
+ expect(h.builderlab.snapshot()).toEqual({
+ ...previous,
+ capabilitiesCheckedAt: expect.any(Number),
+ });
+ h.builderlab.signOut();
+});
+
+it("retains refreshed flags and their age for reloaded pages without changing the sign-in profile", async () => {
+ let now = Date.now();
+ const clock = vi.spyOn(Date, "now").mockImplementation(() => now);
+ let granted = false;
+ const held = Promise.withResolvers();
+ const started = Promise.withResolvers();
+ let pending;
+ let restored;
+ const h = account({
+ "/v1/auth/me": async () => {
+ if (granted) {
+ started.resolve();
+ await held.promise;
+ }
+ return Response.json({
+ subject: granted ? "replacement-profile" : "original",
+ email: granted ? "changed@example.org" : "original@example.org",
+ name: granted ? "Changed" : "Original",
+ expires_at: "2030",
+ capabilities: { can_use_remote_agents: granted },
+ });
+ },
+ });
+ try {
+ await signIn(h);
+ const before = h.builderlab.snapshot();
+ granted = true;
+ now += 60_000;
+ const checkedAt = now;
+ pending = h.builderlab.capabilities(before.revision);
+ await started.promise;
+ // A page restoring mid-read must see an expired cache and join this request.
+ expect(h.builderlab.snapshot()).toEqual(before);
+ restored = h.builderlab.capabilities(before.revision);
+ now += 1_000;
+ held.resolve();
+ await Promise.all([pending, restored]);
+ expect(
+ h.requests.filter((request) => request.path === "/v1/auth/me"),
+ ).toHaveLength(2);
+ expect(h.builderlab.snapshot()).toMatchObject({
+ revision: before.revision,
+ capabilitiesCheckedAt: checkedAt,
+ auth: {
+ subject: "original",
+ email: "original@example.org",
+ name: "Original",
+ expiresAt: "2030",
+ capabilities: { can_use_remote_agents: true },
+ },
+ });
+ } finally {
+ held.resolve();
+ await Promise.allSettled([pending, restored]);
+ h.builderlab.signOut();
+ clock.mockRestore();
+ }
+});
+
+it("rejects a stale page before joining a replacement account's capability read and fences old cleanup", async () => {
+ let now = Date.now();
+ const clock = vi.spyOn(Date, "now").mockImplementation(() => now);
+ let subject = "A";
+ let held;
+ const first = {
+ started: Promise.withResolvers(),
+ reply: Promise.withResolvers(),
+ };
+ const second = {
+ started: Promise.withResolvers(),
+ reply: Promise.withResolvers(),
+ };
+ const h = account({
+ "/v1/auth/me": () => {
+ if (held) {
+ const read = held;
+ held = undefined;
+ read.started.resolve();
+ return read.reply.promise;
+ }
+ return Response.json({ subject, expires_at: "2030" });
+ },
+ });
+ const pending = [];
+ try {
+ await signIn(h);
+ const oldRevision = h.builderlab.snapshot().revision;
+ now += 60_000;
+ held = first;
+ const old = h.builderlab.capabilities(oldRevision);
+ const rejected = expect(old).rejects.toThrow("session changed");
+ pending.push(rejected);
+ await first.started.promise;
+ subject = "B";
+ now += 1_000;
+ await signIn(h);
+ const before = h.builderlab.snapshot();
+ now += 60_000;
+ held = second;
+ const current = h.builderlab.capabilities(before.revision);
+ pending.push(current);
+ await second.started.promise;
+ const stale = h.builderlab.capabilities(oldRevision).then(
+ () => "accepted",
+ (error) => error.message,
+ );
+ pending.push(stale);
+ first.reply.resolve(
+ Response.json({ capabilities: { can_use_remote_agents: false } }),
+ );
+ await rejected;
+ expect(h.builderlab.snapshot()).toEqual(before);
+ const joined = h.builderlab.capabilities(before.revision);
+ pending.push(joined);
+ second.reply.resolve(
+ Response.json({ capabilities: { can_use_remote_agents: true } }),
+ );
+ await Promise.all([current, joined]);
+ await expect(stale).resolves.toBe("Builderlab session changed");
+ expect(
+ h.requests.filter((request) => request.path === "/v1/auth/me"),
+ ).toHaveLength(4);
+ expect(h.builderlab.snapshot()).toMatchObject({
+ revision: before.revision,
+ auth: { subject: "B", capabilities: { can_use_remote_agents: true } },
+ });
+ } finally {
+ first.reply.resolve(Response.json({}));
+ second.reply.resolve(Response.json({}));
+ await Promise.allSettled(pending);
+ h.builderlab.signOut();
+ clock.mockRestore();
+ }
+});
diff --git a/browser-host/channel-commands.mjs b/browser-host/channel-commands.mjs
index 45c9e0e833..1748cce9ca 100644
--- a/browser-host/channel-commands.mjs
+++ b/browser-host/channel-commands.mjs
@@ -22,7 +22,7 @@ export function validChannelCommand(event) {
if (clientId.length !== 2 || !uuid.test(clientId[1])) return false;
tags = tags.slice(0, -1);
}
- const [h, p] = tags;
+ const [h] = tags;
if (h?.length !== 2 || h[0] !== "h" || !uuid.test(h[1])) return false;
if (event.kind === 9007) {
const expected = ["h", "name", "visibility", "channel_type"];
@@ -85,17 +85,29 @@ export function validChannelCommand(event) {
String(Number(ttlValue)) === ttlValue))
);
}
- if (event.kind === 9000)
+ if (event.kind === 9000) {
+ // block/buzz#8575: up to 100 distinct `p` tags. An invitation may name
+ // the participant role, or the read-only guest role Bestie joins private
+ // channels with. Several people may share the Bot role a single agent
+ // enrollment already signs; one agent keeps that exact enrollment shape.
+ // Never an elevation.
+ const role = tags.at(-1)?.[0] === "role" ? tags.at(-1) : undefined;
+ const people = tags.slice(1, role ? -1 : undefined);
return (
event.content === "" &&
- (tags.length === 2 ||
- (tags.length === 3 &&
- tags[2].length === 2 &&
- tags[2][0] === "role" &&
- tags[2][1] === "member")) &&
- p?.length === 2 &&
- p[0] === "p" &&
- /^[0-9a-f]{64}$/.test(p[1])
+ people.length >= 1 &&
+ people.length <= 100 &&
+ people.every(
+ (tag) =>
+ tag.length === 2 && tag[0] === "p" && /^[0-9a-f]{64}$/.test(tag[1]),
+ ) &&
+ new Set(people.map(([, key]) => key)).size === people.length &&
+ (!role ||
+ (role.length === 2 &&
+ (role[1] === "member" ||
+ role[1] === "guest" ||
+ (role[1] === "bot" && people.length > 1))))
);
+ }
return false;
}
diff --git a/browser-host/channel-commands.test.mjs b/browser-host/channel-commands.test.mjs
index 4e32979f46..806cd2daa8 100644
--- a/browser-host/channel-commands.test.mjs
+++ b/browser-host/channel-commands.test.mjs
@@ -1,7 +1,7 @@
import { expect, it } from "vitest";
import { validChannelCommand } from "./channel-commands.mjs";
const id = "11111111-1111-4111-8111-111111111111";
-it("allows ordinary invitations with an optional explicit participant role", () => {
+it("allows ordinary invitations with an optional participant or guest role", () => {
const invite = {
kind: 9000,
created_at: 1,
@@ -18,7 +18,13 @@ it("allows ordinary invitations with an optional explicit participant role", ()
tags: [...invite.tags, ["role", "member"]],
}),
).toBe(true);
- for (const role of ["owner", "admin", "guest", "bot", ""]) {
+ expect(
+ validChannelCommand({
+ ...invite,
+ tags: [...invite.tags, ["role", "guest"]],
+ }),
+ ).toBe(true);
+ for (const role of ["owner", "admin", "bot", "Guest", ""]) {
expect(
validChannelCommand({
...invite,
@@ -111,6 +117,9 @@ it("accepts one trailing outbox identifier for invitations and rejects ambiguous
expect(validChannelCommand(invite([h, p, ["role", "member"], client]))).toBe(
true,
);
+ expect(validChannelCommand(invite([h, p, ["role", "guest"], client]))).toBe(
+ true,
+ );
for (const tags of [
[h, p, client, client],
[client, h, p],
@@ -122,6 +131,37 @@ it("accepts one trailing outbox identifier for invitations and rejects ambiguous
expect(validChannelCommand(invite(tags))).toBe(false);
});
+it("signs a batch invitation of up to 100 distinct people without elevating roles", () => {
+ const invite = (tags) => ({ kind: 9000, created_at: 1, content: "", tags });
+ const h = ["h", id],
+ client = ["client-id", id];
+ const people = (count) =>
+ Array.from({ length: count }, (_, index) => [
+ "p",
+ index.toString(16).padStart(64, "0"),
+ ]);
+ for (const role of [
+ [],
+ [["role", "member"]],
+ [["role", "guest"]],
+ [["role", "bot"]],
+ ])
+ expect(
+ validChannelCommand(invite([h, ...people(100), ...role, client])),
+ ).toBe(true);
+ for (const tags of [
+ [h, ...people(101)],
+ [h, ...people(2), people(1)[0]],
+ [h, ...people(2), ["role", "admin"]],
+ [h, ...people(2), ["role", "owner"]],
+ [h, ["role", "member"]],
+ [h, people(1)[0], ["role", "bot"]],
+ [h, people(2)[0], ["role", "member"], people(2)[1]],
+ [h, ["p", "a".repeat(64), "admin"], ...people(1)],
+ ])
+ expect(validChannelCommand(invite(tags))).toBe(false);
+});
+
it("allows bounded ordinary stream creation and rejects malformed TTL", () => {
const create = {
kind: 9007,
diff --git a/browser-host/channel-kit.mjs b/browser-host/channel-kit.mjs
index 6d4fada9ae..50f2800028 100644
--- a/browser-host/channel-kit.mjs
+++ b/browser-host/channel-kit.mjs
@@ -1,5 +1,9 @@
import { getPublicKey, nip44 } from "nostr-tools";
import { eventDto } from "../src/features/relay/events.ts";
+import {
+ CANVAS_MAX_EVENT_BYTES,
+ LIVE_CANVAS_BYTES,
+} from "../src/features/channel-templates/canvas-limits.ts";
import {
privateCoordinate,
privateTag,
@@ -81,14 +85,17 @@ export function decodeChannelKit(raw, secret, community) {
};
});
}
+export const canvasEventFits = (event) =>
+ Buffer.byteLength(JSON.stringify(event)) <= CANVAS_MAX_EVENT_BYTES;
export function validCanvas(event) {
return (
event?.kind === 40100 &&
typeof event.content === "string" &&
- Buffer.byteLength(event.content) <= 24 * 1024 &&
+ Buffer.byteLength(event.content) <= LIVE_CANVAS_BYTES &&
Array.isArray(event.tags) &&
event.tags.filter((t) => t?.[0] === "h").length === 1 &&
event.tags.filter((t) => t?.[0] === "expected-revision").length <= 1 &&
+ event.tags.filter((t) => t?.[0] === "canvas-instructions").length <= 1 &&
event.tags.every(
(t) =>
Array.isArray(t) &&
@@ -98,9 +105,11 @@ export function validCanvas(event) {
: t[0] === "expected-revision"
? typeof t[1] === "string" &&
(t[1] === "none" || /^[0-9a-f]{64}$/.test(t[1]))
- : t[0] === "client-id" &&
- typeof t[1] === "string" &&
- t[1].length <= 128),
+ : t[0] === "canvas-instructions"
+ ? t[1] === "unapproved"
+ : t[0] === "client-id" &&
+ typeof t[1] === "string" &&
+ t[1].length <= 128),
)
);
}
diff --git a/browser-host/channel-kit.test.mjs b/browser-host/channel-kit.test.mjs
index f61237cfe9..98add31c23 100644
--- a/browser-host/channel-kit.test.mjs
+++ b/browser-host/channel-kit.test.mjs
@@ -12,6 +12,11 @@ import {
resolveLineup,
} from "../src/features/channel-templates/model.ts";
import {
+ CANVAS_MAX_EVENT_BYTES,
+ LIVE_CANVAS_BYTES,
+} from "../src/features/channel-templates/canvas-limits.ts";
+import {
+ canvasEventFits,
admitChannelKit,
decodeChannelKit,
prepareChannelKit,
@@ -162,11 +167,29 @@ it("bounds Canvas content in UTF-8 bytes, not JavaScript characters", () => {
kind: 40100,
tags: [["h", "11111111-1111-4111-8111-111111111111"]],
};
- const content = "é".repeat(12 * 1024);
+ const content = "é".repeat(LIVE_CANVAS_BYTES / 2);
expect(validCanvas({ ...canvas, content })).toBe(true);
expect(validCanvas({ ...canvas, content: `${content}x` })).toBe(false);
});
+it("bounds the complete Canvas event separately from its content", () => {
+ const event = {
+ kind: 40100,
+ tags: [["h", "11111111-1111-4111-8111-111111111111"]],
+ content: "",
+ };
+ const room =
+ CANVAS_MAX_EVENT_BYTES - Buffer.byteLength(JSON.stringify(event));
+ expect(canvasEventFits({ ...event, content: "x".repeat(room) })).toBe(true);
+ expect(canvasEventFits({ ...event, content: "x".repeat(room + 1) })).toBe(
+ false,
+ );
+ // Within the content limit, but every quote escapes to two bytes.
+ const quotes = { ...event, content: '"'.repeat(LIVE_CANVAS_BYTES) };
+ expect(validCanvas(quotes)).toBe(true);
+ expect(canvasEventFits(quotes)).toBe(false);
+});
+
it("encrypts manifest and payload records with exact owner/revision admission", async () => {
const snapshot = {
format: "buzz-team-snapshot",
diff --git a/browser-host/compute-widget.test.mjs b/browser-host/compute-widget.test.mjs
new file mode 100644
index 0000000000..850b071933
--- /dev/null
+++ b/browser-host/compute-widget.test.mjs
@@ -0,0 +1,413 @@
+import { readFileSync } from "node:fs";
+import vm from "node:vm";
+import { JSDOM } from "jsdom";
+import { expect, it } from "vitest";
+
+it("grants the widget read-only access to compute status", () => {
+ const capability = JSON.parse(
+ readFileSync(
+ new URL("../src-tauri/capabilities/compute-widget.json", import.meta.url),
+ "utf8",
+ ),
+ );
+ expect(capability.permissions).toContain("allow-mesh-compute-widget-status");
+ expect(capability.permissions).not.toContain("allow-mesh-compute-start");
+ expect(capability.permissions).not.toContain("allow-mesh-compute-stop");
+});
+
+it("keeps four designs tied to fresh native usage and resets totals on replacement", async () => {
+ const html = readFileSync(
+ new URL("../compute-widget.html", import.meta.url),
+ "utf8",
+ );
+ const script = readFileSync(
+ new URL("../public/compute-widget.js", import.meta.url),
+ "utf8",
+ );
+ const dom = new JSDOM(html, {
+ runScripts: "outside-only",
+ url: "http://localhost",
+ });
+ try {
+ let status = {
+ generation: 1,
+ state: "running",
+ usage: { tokensServed: 120, inflight: 0, tokensPerSecond: 5, peers: 2 },
+ };
+ const win = dom.window;
+ win.matchMedia = () => ({ matches: true });
+ win.HTMLCanvasElement.prototype.getContext = () =>
+ new Proxy(
+ {},
+ {
+ get: () => () => {},
+ },
+ );
+ win.requestAnimationFrame = () => 0;
+ win.setTimeout = () => 0;
+ win.clearTimeout = () => {};
+ let read = async () => status;
+ const calls = [];
+ win.__TAURI_INTERNALS__ = {
+ invoke: (command, args) => {
+ calls.push([command, args]);
+ return read();
+ },
+ };
+ const context = dom.getInternalVMContext();
+ const run = (code) => vm.runInContext(code, context);
+ run(script);
+ await run("poll()");
+ expect(run("model.total")).toBe(120);
+ expect(run("model.phase")).toBe("online");
+ for (let key = 0; key <= 9; key++) {
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: String(key) }));
+ expect(run("inspectedState")).toBeNull();
+ }
+ // Animation previews require an explicit development URL.
+ win.history.replaceState(null, "", "?preview=true");
+ // Exercise the real moving bee, not only the reduced-motion fallback.
+ const movingFrames = [0, 350, 700, 1100, 2200, 3800, 6500].map((elapsed) =>
+ run(
+ `draw("orbit", {phase:phases[3], index:3, elapsed:${elapsed}}, false)`,
+ ),
+ );
+ for (const frame of movingFrames) {
+ expect(frame.sprite.length).toBeGreaterThan(0);
+ expect(frame.sprite.flat().every(Number.isFinite)).toBe(true);
+ expect(frame.streaks.flat().every(Number.isFinite)).toBe(true);
+ }
+ expect(movingFrames[3].sprite).not.toEqual(movingFrames[4].sprite);
+
+ for (const name of ["orbit", "signal", "original", "bee"]) {
+ win.dispatchEvent(
+ new win.KeyboardEvent("keydown", { key: "ArrowRight" }),
+ );
+ expect(run("variation")).toBe(name);
+ const frame = run(
+ "variation==='original'?drawOriginal({phase:phases[3],index:3,elapsed:1100},true):variation==='bee'?draw('orbit',{phase:phases[3],index:3,elapsed:1100},true):drawInstrument({phase:phases[3],index:3,elapsed:1100},true)",
+ );
+ expect(frame.white.every(Number.isFinite)).toBe(true);
+ for (let key = 0; key <= 9; key++) {
+ win.dispatchEvent(
+ new win.KeyboardEvent("keydown", { key: String(key) }),
+ );
+ run("render(performance.now())");
+ expect(
+ win.document.getElementById("display").getAttribute("aria-label"),
+ ).toContain("Visual state preview");
+ }
+ }
+ expect(win.document.querySelector("select")).toBeNull();
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "ArrowLeft" }));
+ expect(run("variation")).toBe("original");
+ status = { generation: 1, state: "running", available: true, usage: null };
+ await run("poll()");
+ expect(run("model.valid")).toBe(true);
+ expect(run("model.phase")).toBe("online");
+ run("render(performance.now())");
+ expect(
+ win.document.getElementById("display").getAttribute("aria-label"),
+ ).not.toContain("Status unavailable");
+ status = { generation: 2, state: "starting", usage: null };
+ await run("poll()");
+ expect(run("model.total")).toBe(null);
+ expect(run("model.phase")).toBe("link");
+ status = { generation: 2, state: "failed", usage: null };
+ await run("poll()");
+ expect(run("model.phase")).toBe("error");
+ const timers = new Map();
+ win.setTimeout = (callback, delay) => {
+ timers.set(delay, callback);
+ return delay;
+ };
+ win.clearTimeout = (delay) => timers.delete(delay);
+ win.console.warn = () => {};
+ let finishLate;
+ read = () =>
+ new Promise((resolve) => {
+ finishLate = resolve;
+ });
+ const pending = run("poll()");
+ timers.get(8000)();
+ await pending;
+ expect(timers.has(1000)).toBe(true);
+ read = async () => ({
+ generation: 3,
+ state: "running",
+ usage: { tokensServed: 7, inflight: 0 },
+ });
+ await run("poll()");
+ finishLate({
+ generation: 1,
+ state: "running",
+ usage: { tokensServed: 999, inflight: 1 },
+ });
+ await Promise.resolve();
+ expect(run("model.total")).toBe(7);
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "4" }));
+ expect(run("inspectedState.index")).toBe(3);
+ expect(win.document.body.textContent).not.toContain("PREVIEW");
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "Escape" }));
+ expect(run("inspectedState")).toBeNull();
+
+ const tones = [];
+ const param = { setValueAtTime() {}, exponentialRampToValueAtTime() {} };
+ win.AudioContext = class {
+ currentTime = 0;
+ destination = {};
+ createGain() {
+ return { gain: param, connect: (node) => node };
+ }
+ createOscillator() {
+ const tone = {
+ frequency: {},
+ connect: (node) => node,
+ start() {},
+ stop() {},
+ };
+ tones.push(tone);
+ return tone;
+ }
+ };
+ run("setPhase('error'); lastCue = -Infinity");
+ expect(tones).toHaveLength(0);
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "s" }));
+ expect(run("sound")).toBe(true);
+ expect(win.localStorage.getItem("mesh-buddy-sound")).toBe("on");
+ expect(tones.map((tone) => tone.frequency.value)).toEqual([659, 988]);
+ run("lastCue = -Infinity; setPhase('online')");
+ expect(tones).toHaveLength(4);
+ run(
+ "lastCue = -Infinity; setPhase('complete'); lastCue = -Infinity; setPhase('online')",
+ );
+ expect(tones).toHaveLength(6);
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "s" }));
+ run("lastCue = -Infinity; setPhase('error')");
+ expect(tones).toHaveLength(6);
+ expect(win.localStorage.getItem("mesh-buddy-sound")).toBe("off");
+
+ const display = win.document.getElementById("display");
+ const pointer = (type, x = 0) =>
+ display.dispatchEvent(
+ new win.MouseEvent(type, { button: 0, screenX: x, screenY: 0 }),
+ );
+ const commands = () => calls.map(([command]) => command);
+ const before = run("variation");
+ pointer("pointerdown");
+ pointer("pointermove", 2);
+ pointer("pointerup", 2);
+ expect(run("variation")).not.toBe(before);
+ expect(commands()).not.toContain("plugin:window|start_dragging");
+ const clicked = run("variation");
+ pointer("pointerdown");
+ pointer("pointermove", 12);
+ pointer("pointerup", 12);
+ expect(commands()).toContain("plugin:window|start_dragging");
+ expect(run("variation")).toBe(clicked);
+ display.dispatchEvent(
+ new win.WheelEvent("wheel", { deltaY: 60, cancelable: true }),
+ );
+ const [, resized] = calls.find(
+ ([command]) => command === "plugin:window|set_size",
+ );
+ expect(resized.value.Logical.width).toBe(resized.value.Logical.height);
+ expect(resized.value.Logical.width).toBeGreaterThanOrEqual(96);
+ expect(resized.value.Logical.width).toBeLessThanOrEqual(320);
+ calls.length = 0;
+ read = async () => ({
+ sharing: true,
+ state: "running",
+ available: true,
+ usage: null,
+ });
+ await run("poll()");
+ expect(commands()).not.toContain("plugin:window|close");
+ // Keep enforcing visibility even when a visual preview is selected.
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "0" }));
+ read = async () => ({
+ sharing: false,
+ state: "running",
+ available: true,
+ usage: null,
+ });
+ await run("poll()");
+ expect(commands()).toContain("plugin:window|close");
+ expect(commands()).not.toContain("mesh_compute_stop");
+ calls.length = 0;
+ const settings = win.document.getElementById("widget-settings");
+ const menu = win.document.getElementById("settings-toggle");
+ expect(settings.hidden).toBe(true);
+ menu.click();
+ expect(settings.hidden).toBe(false);
+ expect(menu.getAttribute("aria-expanded")).toBe("true");
+ const beforeSettings = run("variation");
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "ArrowRight" }));
+ expect(run("variation")).toBe(beforeSettings);
+ win.dispatchEvent(new win.KeyboardEvent("keydown", { key: "Escape" }));
+ expect(settings.hidden).toBe(true);
+ expect(win.document.activeElement).toBe(menu);
+ win.dispatchEvent(
+ new win.KeyboardEvent("keydown", { key: ",", metaKey: true }),
+ );
+ expect(settings.hidden).toBe(false);
+ win.document.getElementById("close").click();
+ expect(commands()).toContain("plugin:window|close");
+ expect(commands()).not.toContain("mesh_compute_stop");
+ } finally {
+ dom.window.close();
+ }
+});
+
+it("embedded activity consumes only its parent feed and never invokes native window controls", () => {
+ const dom = new JSDOM(
+ readFileSync(new URL("../compute-widget.html", import.meta.url), "utf8"),
+ {
+ runScripts: "outside-only",
+ url: "http://localhost/compute-widget.html?embedded=true",
+ },
+ );
+ try {
+ const win = dom.window;
+ win.matchMedia = () => ({ matches: true });
+ win.HTMLCanvasElement.prototype.getContext = () =>
+ new Proxy({}, { get: () => () => {} });
+ win.requestAnimationFrame = () => 0;
+ win.setTimeout = () => 0;
+ win.clearTimeout = () => {};
+ const calls = [];
+ win.__TAURI_INTERNALS__ = {
+ invoke: (...args) => {
+ calls.push(args);
+ return Promise.resolve({});
+ },
+ };
+ const run = (code) => vm.runInContext(code, dom.getInternalVMContext());
+ run(
+ readFileSync(
+ new URL("../public/compute-widget.js", import.meta.url),
+ "utf8",
+ ),
+ );
+ const send = (origin, sharing) =>
+ win.dispatchEvent(
+ new win.MessageEvent("message", {
+ source: win.parent,
+ origin,
+ data: {
+ type: "compute-activity",
+ status: {
+ available: true,
+ generation: sharing,
+ sharing,
+ state: sharing ? "running" : "off",
+ usage: sharing
+ ? {
+ tokensServed: 42,
+ inflight: 1,
+ peers: 1,
+ tokensPerSecond: 5,
+ }
+ : null,
+ },
+ },
+ }),
+ );
+ send("http://other.example", true);
+ expect(run("model.total")).toBe(null);
+ send("http://localhost", true);
+ expect(run("model.total")).toBe(42);
+ expect(run("model.phase")).toBe("active");
+ send("http://localhost", false);
+ expect(run("model.phase")).toBe("offline");
+ expect(calls).toEqual([]);
+ expect(win.document.getElementById("close").hidden).toBe(true);
+ expect(win.document.getElementById("settings-toggle").hidden).toBe(true);
+ win.dispatchEvent(
+ new win.KeyboardEvent("keydown", { key: ",", metaKey: true }),
+ );
+ expect(win.document.getElementById("widget-settings").hidden).toBe(true);
+ } finally {
+ dom.window.close();
+ }
+});
+
+it("repaints the widget with the current theme surface and ink", () => {
+ const dom = new JSDOM(
+ readFileSync(new URL("../compute-widget.html", import.meta.url), "utf8"),
+ {
+ runScripts: "outside-only",
+ url: "http://localhost/compute-widget.html?embedded=true",
+ },
+ );
+ try {
+ const win = dom.window;
+ win.requestAnimationFrame = () => 0;
+ win.matchMedia = () => ({ matches: true });
+ const paints = [];
+ const drawing = new Proxy(
+ {},
+ {
+ get: (target, key) => (key in target ? target[key] : () => {}),
+ set: (target, key, value) => {
+ target[key] = value;
+ if (key === "fillStyle") paints.push(value);
+ return true;
+ },
+ },
+ );
+ win.HTMLCanvasElement.prototype.getContext = () => drawing;
+ const root = win.document.documentElement;
+ root.style.setProperty("--surface-inset", "rgb(245, 245, 245)");
+ root.style.setProperty("--text-standard", "rgb(20, 20, 20)");
+ root.style.setProperty("--text-danger", "rgb(180, 0, 0)");
+ const run = (code) => vm.runInContext(code, dom.getInternalVMContext());
+ run(
+ readFileSync(
+ new URL("../public/compute-widget.js", import.meta.url),
+ "utf8",
+ ),
+ );
+ run("render(100, false)");
+ expect(paints[0]).toBe("rgb(245, 245, 245)");
+ expect(paints.some((color) => color.includes("rgb(20, 20, 20)"))).toBe(
+ true,
+ );
+ // The same animation can paint for hardware with an independent dark
+ // palette while the visible desktop widget remains in light mode.
+ let hardwareFrame;
+ win.document.getElementById("display").addEventListener(
+ "compute-frame",
+ (event) => {
+ hardwareFrame = event.detail;
+ },
+ { once: true },
+ );
+ run("render(150, false)");
+ const device = win.document.createElement("canvas");
+ device.style.setProperty("--surface-inset", "rgb(16, 16, 16)");
+ device.style.setProperty("--text-standard", "rgb(240, 240, 240)");
+ device.style.setProperty("--text-danger", "rgb(255, 100, 100)");
+ win.document.body.append(device);
+ paints.length = 0;
+ hardwareFrame.paint(drawing, 128, 128, win.getComputedStyle(device));
+ expect(paints[0]).toBe("rgb(16, 16, 16)");
+ expect(paints.some((color) => color.includes("rgb(240, 240, 240)"))).toBe(
+ true,
+ );
+ expect(root.style.getPropertyValue("--surface-inset")).toBe(
+ "rgb(245, 245, 245)",
+ );
+ paints.length = 0;
+ root.style.setProperty("--surface-inset", "rgb(16, 16, 16)");
+ root.style.setProperty("--text-standard", "rgb(240, 240, 240)");
+ run("render(200, false)");
+ expect(paints[0]).toBe("rgb(16, 16, 16)");
+ expect(paints.some((color) => color.includes("rgb(240, 240, 240)"))).toBe(
+ true,
+ );
+ expect(drawing.globalAlpha).toBe(1);
+ } finally {
+ dom.window.close();
+ }
+});
diff --git a/browser-host/read-state-broker.test.mjs b/browser-host/read-state-broker.test.mjs
index c5eca68a41..2740529f5d 100644
--- a/browser-host/read-state-broker.test.mjs
+++ b/browser-host/read-state-broker.test.mjs
@@ -204,7 +204,7 @@ it("recovers expired saved state through broker HTTP, socket refusal and fresh c
{
slot: "b".repeat(32),
createdAt: past,
- blob: { v: 1, client_id: "fixture", contexts: { room: 12 } },
+ blob: { v: 1, client_id: "fixture", contexts: { room: past } },
},
h.key,
past,
@@ -217,7 +217,7 @@ it("recovers expired saved state through broker HTTP, socket refusal and fresh c
version: 1,
slot: "b".repeat(32),
clientId: "fixture",
- state: { frontiers: { room: 13 }, overrides: {} },
+ state: { frontiers: { room: past + 1 }, overrides: {} },
localUnread: {},
revision: 2,
acceptedRevision: 0,
@@ -252,7 +252,7 @@ it("recovers expired saved state through broker HTTP, socket refusal and fresh c
(
await h.transport.readState.decode(observed, new AbortController().signal)
)[0].blob.contexts.room,
- ).toBe(13);
+ ).toBe(past + 1);
});
it.each([false, true])(
"reconciles legacy maximum-size NIP-44 records without widening writes (snapshot: %s)",
diff --git a/browser-host/relay-authority.test.mjs b/browser-host/relay-authority.test.mjs
index b6027bba1f..f2a1905fd0 100644
--- a/browser-host/relay-authority.test.mjs
+++ b/browser-host/relay-authority.test.mjs
@@ -44,6 +44,42 @@ async function harness(info, identity = generateSecretKey()) {
},
};
}
+it.each([
+ [undefined, false],
+ [null, false],
+ [[], false],
+ [["nip-cl"], false],
+ ["nip-ar", false],
+ [["nip-ar"], true],
+])(
+ "offers artifact writes only with a NIP-AR advertisement: %j",
+ async (supported_extensions, supported) => {
+ const h = await harness(() =>
+ Response.json({ self, supported_extensions }),
+ );
+ try {
+ const transport = await h.connect();
+ expect(transport.writer.kinds.includes(45010)).toBe(supported);
+ expect(transport.configArtifacts !== undefined).toBe(supported);
+ if (supported) {
+ const event = await transport.configArtifacts.sign(
+ {
+ kind: 45010,
+ created_at: Math.floor(Date.now() / 1000),
+ tags: [["ar", "1"]],
+ content: "{}",
+ },
+ new AbortController().signal,
+ );
+ expect(event.kind).toBe(45010);
+ expect(event.pubkey).toBe(transport.viewer);
+ }
+ expect(h.requests).toHaveLength(1);
+ } finally {
+ await h.close();
+ }
+ },
+);
it.each([
["explicit self", { self, pubkey: contact }, self, self],
["self without contact", { self }, self, self],
diff --git a/browser-host/relay-broker-api.test.mjs b/browser-host/relay-broker-api.test.mjs
index 727d993583..bb56f0c3df 100644
--- a/browser-host/relay-broker-api.test.mjs
+++ b/browser-host/relay-broker-api.test.mjs
@@ -3,6 +3,7 @@ import { Context } from "@deepseek-ai/cordis";
import { HostService } from "../src/features/host/service.ts";
import { authTagOwner } from "../src/features/agents/owner-attestation.ts";
import { publishAgentRecord } from "../src/features/agents/relay-removal.ts";
+import { publishProfile } from "../src/features/communities/api.ts";
import { logSocketFrame } from "../src/features/developer/traffic.ts";
import { getLogger, setLogLevel } from "../src/features/developer/logging.ts";
import { brokerSocket, openBrokerSocket } from "../tests/broker-socket.mjs";
@@ -22,6 +23,10 @@ import {
generateSecretKey,
} from "nostr-tools";
import { relayBrokerPlugin } from "./relay-broker.mjs";
+import {
+ CANVAS_MAX_EVENT_BYTES,
+ LIVE_CANVAS_BYTES,
+} from "../src/features/channel-templates/canvas-limits.ts";
import { connectBrokerTransport } from "../src/features/relay/transport.ts";
import { createOutbox, PublishRejected } from "../src/features/relay/outbox.ts";
import { createRelaySession } from "../src/features/relay/session.ts";
@@ -168,6 +173,7 @@ test.each([
});
if (path.endsWith("/v1/auth/me"))
return Response.json({
+ subject: "auth0|owner",
email: "fixture@example.com",
expires_at: "2030",
});
@@ -185,9 +191,15 @@ test.each([
body: "{}",
});
const opened = new URL(await loginOpened);
- const callback = opened.searchParams.get("returnTo");
+ const callback = opened.searchParams.get("redirect_uri");
expect(callback).toBeTruthy();
- expect((await fetch(`${callback}?code=fixture`)).status).toBe(200);
+ expect(
+ (
+ await fetch(
+ `${callback}?state=${opened.searchParams.get("state")}&code=fixture`,
+ )
+ ).status,
+ ).toBe(200);
expect((await login).status).toBe(200);
const response = await fetch(`${h.base}/api/builderlab/delete`, {
method: "POST",
@@ -1022,6 +1034,26 @@ test("media proxy rejects malformed ranges before upstream I/O", async () => {
}
});
+test("media proxy falls back to the JPEG thumbnail an older relay has", async () => {
+ const webp = `${fixtureRelayUrl}/media/${blob}.thumb.webp`;
+ const jpeg = `${fixtureRelayUrl}/media/${blob}.thumb.jpg`;
+ const h = await harness((call) =>
+ call.url.endsWith(".thumb.webp")
+ ? new Response("missing", { status: 404 })
+ : new Response("jpeg", { headers: { "Content-Type": "image/jpeg" } }),
+ );
+ try {
+ const response = await fetch(
+ `${h.base}/api/relay/media?url=${encodeURIComponent(webp)}`,
+ );
+ expect(response.status).toBe(200);
+ expect(await response.text()).toBe("jpeg");
+ expect(h.calls.map((call) => call.url)).toEqual([webp, jpeg]);
+ } finally {
+ await h.close();
+ }
+});
+
test("media proxy accepts only the media URLs the native proxy accepts", async () => {
const relayHost = new URL(fixtureRelayUrl).host;
const scheme = new URL(fixtureRelayUrl).protocol;
@@ -1040,6 +1072,7 @@ test("media proxy accepts only the media URLs the native proxy accepts", async (
`${fixtureRelayUrl}/media/${blob}.PNG`,
`${fixtureRelayUrl}/media/${blob}.toolongext`,
`${fixtureRelayUrl}/media/${blob}.tar.gz`,
+ `${fixtureRelayUrl}/media/${blob}.thumb.png`,
`${fixtureRelayUrl}/media/${blob}/nested.png`,
`${fixtureRelayUrl}/other/${blob}.png`,
];
@@ -1047,6 +1080,7 @@ test("media proxy accepts only the media URLs the native proxy accepts", async (
`${fixtureRelayUrl}/media/${blob}`,
still,
`${fixtureRelayUrl}/media/${blob}.thumb.jpg`,
+ `${fixtureRelayUrl}/media/${blob}.thumb.webp`,
];
const h = await harness(
() => new Response("ok", { headers: { "Content-Type": "image/png" } }),
@@ -1232,7 +1266,7 @@ test.each([
],
["/api/relay/archive", 4096, "bytes", "Archive request too large"],
["/api/relay/stream-presence", 256, "bytes", "Live control too large"],
- ["/api/relay/stream", 300000, "bytes", "Live interests too large"],
+ ["/api/relay/stream", 64 * 1024 * 1024, "bytes", "Live interests too large"],
["/api/relay/query", 65536, "chars", "Filter body too large"],
["/api/relay/presence-snapshot", 20 * 1024, "bytes", "Filter body too large"],
])(
@@ -1270,6 +1304,37 @@ test.each([
},
);
+test("each community has its own query capacity", async () => {
+ let release;
+ const held = new Promise((resolve) => {
+ release = resolve;
+ });
+ const h = await harness(async (call, count, event) => {
+ await held;
+ return success(call, count, event);
+ });
+ const controllers = [];
+ const post = (route) => {
+ const controller = new AbortController();
+ controllers.push(controller);
+ return h.post(route, filters, controller.signal);
+ };
+ try {
+ const primary = Array.from({ length: 6 }, () => post("primary/query"));
+ await vi.waitFor(() => expect(h.calls).toHaveLength(6));
+ expect((await h.post("primary/query", filters)).status).toBe(429);
+ const secondary = post("secondary/query");
+ await vi.waitFor(() => expect(h.calls).toHaveLength(7));
+ release();
+ for (const response of [...primary, secondary])
+ expect((await response).status).toBe(200);
+ } finally {
+ release();
+ for (const c of controllers) c.abort();
+ await h.close();
+ }
+});
+
test("local capacity is explicitly unsent, not relay quota; unknown upstream publication is never resent", async () => {
let release;
const held = new Promise((resolve) => {
@@ -1416,6 +1481,115 @@ test("query keeps relay 403 refusals but turns an edge 403 page into a gateway f
}
});
+test("a queued request's community refusal marks its own response", async () => {
+ // A held sidebar write and five held queries fill the community's six-slot
+ // lane. The next query waits and starts from whichever finishes first, so
+ // its refusal must mark its own response, not that one's.
+ const releases = new Map();
+ let holding = true;
+ const h = await harness(async (call, count, event) => {
+ const filter = call.body?.[0];
+ const sidebar = filter?.kinds?.[0] === 30078;
+ if (filter?.limit === 7)
+ return new Response("authorization denied\n", { status: 403 });
+ if (holding && call.url.endsWith("/query"))
+ await new Promise((resolve) =>
+ releases.set(sidebar ? "sidebar" : filter.limit, resolve),
+ );
+ if (sidebar) return Response.json([]);
+ if (call.url.endsWith("/events"))
+ return Response.json({ accepted: true, event_id: call.body.id });
+ return success(call, count, event);
+ });
+ const releaseAll = () => {
+ holding = false;
+ for (const release of releases.values()) release();
+ };
+ try {
+ const sidebar = h.post("sidebar-sort", {
+ group: "forums",
+ mode: "recent",
+ sectionIds: [],
+ });
+ await vi.waitFor(() => expect(releases.has("sidebar")).toBe(true));
+ const held = [1, 2, 3, 4, 5].map((limit) =>
+ h.post("query", [{ kinds: [0], limit }]),
+ );
+ await vi.waitFor(() => expect(releases.size).toBe(6));
+ const queued = h.post("query", [{ kinds: [0], limit: 7 }]);
+ await delay(20);
+ expect(h.calls).toHaveLength(6);
+ releases.get(1)();
+ const first = await held[0];
+ const refused = await queued;
+ expect(refused.status).toBe(403);
+ expect(refused.headers.get("x-buzz-refusal")).toBe("access");
+ expect(first.headers.get("x-buzz-refusal")).toBeNull();
+ await Promise.all([first.text(), refused.text()]);
+ releaseAll();
+ await Promise.all(
+ [sidebar, ...held.slice(1)].map(async (response) =>
+ (await response).text(),
+ ),
+ );
+ } finally {
+ releaseAll();
+ await h.close();
+ }
+});
+
+test("Canvas sign and publish bound content and the complete signed event", async () => {
+ const h = await harness((call) =>
+ Response.json({ accepted: true, event_id: call.body.id }),
+ );
+ try {
+ await h.start();
+ const template = {
+ kind: 40100,
+ created_at: 1700000000,
+ tags: [["h", "11111111-1111-4111-8111-111111111111"]],
+ };
+ const sign = (content) => h.post("sign", { ...template, content });
+ const size = (event) => Buffer.byteLength(JSON.stringify(event));
+ const largest = await sign("x".repeat(LIVE_CANVAS_BYTES));
+ expect(largest.status).toBe(200);
+ const event = await largest.json();
+ expect(verifyEvent(event)).toBe(true);
+ expect((await h.post("publish", event)).status).toBe(200);
+ expect(h.publications).toHaveLength(1);
+ expect((await sign("x".repeat(LIVE_CANVAS_BYTES + 1))).status).toBe(400);
+
+ // Quotes escape to two bytes, so in-limit content can make a complete
+ // event exactly at, then one byte over, the relay's bound.
+ const overhead = size(await (await sign("")).json());
+ const quotes = CANVAS_MAX_EVENT_BYTES - overhead - LIVE_CANVAS_BYTES;
+ const escaped = (extra) =>
+ `${'"'.repeat(quotes + extra)}${"x".repeat(LIVE_CANVAS_BYTES - quotes - extra)}`;
+ const atBound = await sign(escaped(0));
+ expect(atBound.status).toBe(200);
+ const boundary = await atBound.json();
+ expect(size(boundary)).toBe(CANVAS_MAX_EVENT_BYTES);
+ expect((await h.post("publish", boundary)).status).toBe(200);
+ const over = await sign(escaped(1));
+ expect(over.status).toBe(400);
+ expect(await over.json()).toEqual({
+ error: "Relay event is too large",
+ sent: false,
+ });
+ // An event signed elsewhere is held to the same bound before publication;
+ // its request body is the event, so the body bound refuses it first.
+ const outside = finalizeEvent(
+ { ...template, content: escaped(1) },
+ generateSecretKey(),
+ );
+ expect(size(outside)).toBe(CANVAS_MAX_EVENT_BYTES + 1);
+ expect((await h.post("publish", outside)).status).toBe(413);
+ expect(h.publications).toHaveLength(2);
+ } finally {
+ await h.close();
+ }
+});
+
test("reaction sign and publish preserve kind 7 and reject malformed targets before upstream I/O", async () => {
const h = await harness((call) =>
Response.json({ accepted: true, event_id: call.body.id }),
@@ -1429,6 +1603,7 @@ test("reaction sign and publish preserve kind 7 and reject malformed targets bef
tags: [
["h", "c"],
["e", "a".repeat(64)],
+ ["p", "b".repeat(64)],
["emoji", "party", "https://a.test/party.png"],
],
};
@@ -1746,7 +1921,7 @@ test("real outbox creates, invites and sends", async () => {
}
});
-test("member addition works without channel creation, while role elevation remains rejected", async () => {
+test("member and guest additions work without channel creation, while role elevation remains rejected", async () => {
const h = await harness(success);
let traffic;
let owner;
@@ -1782,14 +1957,57 @@ test("member addition works without channel creation, while role elevation remai
).toBe("accepted"),
);
expect(h.publications).toHaveLength(2);
- for (const role of ["owner", "admin", "guest"]) {
- const denied = await h.post("sign", {
+ // Bestie joins a private channel as a guest: the same template through
+ // the outbox, with its trailing client-id, is signed and published.
+ const guestId = owner.outbox.send({
+ kind: 9000,
+ content: "",
+ tags: [...tags, ["role", "guest"]],
+ });
+ await vi.waitFor(() =>
+ expect(
+ owner.local.snapshot().find((row) => row.event.id === guestId)
+ ?.delivery,
+ ).toBe("accepted"),
+ );
+ expect(h.publications).toHaveLength(3);
+ expect(h.publications[2].tags).toEqual(
+ expect.arrayContaining([["role", "guest"]]),
+ );
+ // block/buzz#8575: one addition may name several people.
+ const people = [
+ ["p", "b".repeat(64)],
+ ["p", "c".repeat(64)],
+ ];
+ for (const role of [
+ [],
+ [["role", "member"]],
+ [["role", "guest"]],
+ [["role", "bot"]],
+ ]) {
+ const batchId = owner.outbox.send({
kind: 9000,
content: "",
- created_at: 1700000000,
- tags: [...tags, ["role", role]],
+ tags: [...tags, ...people, ...role],
});
- expect(denied.status).toBe(400);
+ await vi.waitFor(() =>
+ expect(
+ owner.local.snapshot().find((row) => row.event.id === batchId)
+ ?.delivery,
+ ).toBe("accepted"),
+ );
+ }
+ expect(h.publications).toHaveLength(7);
+ for (const role of ["owner", "admin"]) {
+ for (const named of [tags, [...tags, ...people]]) {
+ const denied = await h.post("sign", {
+ kind: 9000,
+ content: "",
+ created_at: 1700000000,
+ tags: [...named, ["role", role]],
+ });
+ expect(denied.status).toBe(400);
+ }
}
} finally {
owner?.dispose();
@@ -2030,6 +2248,55 @@ test("message/reaction deletions pass real signing and publication without admit
}
});
+test("a profile save keeps a Buzz mobile emoji avatar through the broker, never other SVG", async () => {
+ const h = await harness(success);
+ try {
+ const http = globalThis.fetch;
+ vi.stubGlobal("fetch", (url, input) => http(new URL(url, h.base), input));
+ // Buzz mobile's emojiAvatarDataUrl("🛹", 0xFFFFB84D).
+ const svg =
+ '';
+ const picture = `data:image/svg+xml,${encodeURIComponent(svg)}`;
+ const published = () =>
+ h.calls.filter((call) => call.url.endsWith("/events"));
+ await publishProfile(
+ fixtureRelayUrl,
+ { name: "Changed", picture, about: "Keep this" },
+ { picture, website: "https://example.org" },
+ );
+ expect(published()).toHaveLength(1);
+ const event = published()[0].body;
+ expect(verifyEvent(event)).toBe(true);
+ expect(event).toMatchObject({ kind: 0, pubkey: h.event.pubkey });
+ expect(JSON.parse(event.content)).toEqual({
+ picture,
+ website: "https://example.org",
+ name: "Changed",
+ display_name: "Changed",
+ about: "Keep this",
+ });
+ for (const rejected of [
+ "data:image/svg+xml,%3Csvg%3E%3Cscript%3Ealert(1)%3C%2Fscript%3E%3C%2Fsvg%3E",
+ `data:image/svg+xml,${encodeURIComponent(svg.replace(" {
const h = await harness(success);
let traffic;
@@ -3185,6 +3452,24 @@ test("lifecycle uses dedicated shape-limited host routes, never the message writ
["name", "rename"],
],
},
+ { ...template, kind: 9002, tags: [["h", id], ["auto_join"]] },
+ {
+ ...template,
+ kind: 9002,
+ tags: [
+ ["h", id],
+ ["auto_join", "maybe"],
+ ],
+ },
+ {
+ ...template,
+ kind: 9002,
+ tags: [
+ ["h", id],
+ ["archived", "true"],
+ ["auto_join", "true"],
+ ],
+ },
{
...template,
kind: 9022,
@@ -3243,7 +3528,23 @@ test("lifecycle uses dedicated shape-limited host routes, never the message writ
expect(restore).toMatchObject(unarchive);
expect((await h.post("publish", restore)).status).toBe(400);
await transport.channelLifecycle.publish(restore, signal);
- expect(h.publications).toHaveLength(2);
+ for (const value of ["true", "false"]) {
+ const flag = {
+ ...template,
+ kind: 9002,
+ tags: [
+ ["h", id],
+ ["auto_join", value],
+ ],
+ };
+ expect((await h.post("sign", flag)).status).toBe(400);
+ expect((await h.post("channel-details-sign", flag)).status).toBe(400);
+ const flagged = await transport.channelLifecycle.sign(flag, signal);
+ expect(verifyEvent(flagged)).toBe(true);
+ expect(flagged).toMatchObject(flag);
+ await transport.channelLifecycle.publish(flagged, signal);
+ }
+ expect(h.publications).toHaveLength(4);
} finally {
live?.dispose();
await h.close();
@@ -3910,3 +4211,249 @@ test("inventory rejects foreign pages, ignores invalid heads and follows exact-k
await h.close();
}
});
+
+test.each([[], [1, 42], [1, 42, 43]])(
+ "join discovery exposes membership enforcement for %j",
+ async (...nips) => {
+ const h = await harness((call) =>
+ Response.json(
+ call.url === fixtureRelayUrl
+ ? { name: "Community", supported_nips: nips }
+ : { policy: null },
+ ),
+ );
+ try {
+ expect(await (await h.get("info")).json()).toMatchObject({
+ membershipRequired: nips.includes(43),
+ });
+ } finally {
+ await h.close();
+ }
+ },
+);
+
+test("Builderlab HTTP accepts full agent instructions and isolates the fixed native routes", async () => {
+ let openLogin;
+ const opened = new Promise((resolve) => {
+ openLogin = resolve;
+ });
+ const instructions = "\\".repeat(20_000);
+ let received;
+ let accountReads = 0;
+ const nativeCalls = [];
+ const h = await harness(() => Response.json([]), {}, fixtureRelayUrl, {
+ open: async (url) => openLogin(new URL(url)),
+ fetch: async (url, init) => {
+ const path = new URL(url).pathname;
+ if (path.endsWith("/v1/auth/login/exchange"))
+ return Response.json({
+ session_credential: "fixture-only",
+ expires_at: "2030",
+ });
+ if (path.endsWith("/v1/auth/me")) {
+ accountReads += 1;
+ return Response.json({
+ subject: "fixture-account",
+ expires_at: "2030",
+ capabilities: { can_use_remote_agents: true },
+ });
+ }
+ if (path.endsWith("/nostr-identities/challenge"))
+ return Response.json({
+ error: { code: "missing_mapping", setup_needed: true },
+ });
+ if (path.endsWith("/v3/beekeeper/update-agent")) {
+ received = JSON.parse(init.body);
+ return Response.json({ status: 1 });
+ }
+ if (
+ path.endsWith("/v3/builderlab/decisions") ||
+ path.endsWith("/v1/auth/hosted-site/native-session")
+ ) {
+ nativeCalls.push({
+ path,
+ body: JSON.parse(init.body),
+ headers: init.headers,
+ });
+ return Response.json({ fixture: "native reply" });
+ }
+ throw new Error(`Unexpected Builderlab request ${path}`);
+ },
+ });
+ try {
+ const login = fetch(`${h.base}/api/builderlab/login`, {
+ method: "POST",
+ body: "{}",
+ });
+ const authorization = await opened;
+ await fetch(
+ `${authorization.searchParams.get("redirect_uri")}?code=fixture&state=${authorization.searchParams.get("state")}`,
+ );
+ expect((await login).status).toBe(200);
+ const stream = await fetch(`${h.base}/api/builderlab/events`);
+ const reader = stream.body.getReader();
+ const decoder = new TextDecoder();
+ let event = "";
+ try {
+ while (!event.includes("\n\n")) {
+ const part = await reader.read();
+ if (part.done) throw new Error("Missing development session metadata");
+ event += decoder.decode(part.value, { stream: true });
+ }
+ } finally {
+ await reader.cancel();
+ }
+ const { revision } = JSON.parse(
+ event.slice("data: ".length).split("\n\n")[0],
+ );
+ const capabilityCheck = await fetch(
+ `${h.base}/api/builderlab/capabilities?revision=${encodeURIComponent(revision)}`,
+ );
+ expect(capabilityCheck.status).toBe(200);
+ expect(await capabilityCheck.json()).toEqual({
+ revision,
+ capabilities: {
+ can_use_remote_agents: true,
+ can_use_builderlab_decisions: false,
+ can_delete_buzz_communities: false,
+ },
+ });
+ const reads = accountReads;
+ for (const query of ["", "?revision=previous"]) {
+ const refused = await fetch(
+ `${h.base}/api/builderlab/capabilities${query}`,
+ );
+ expect(refused.status).toBe(502);
+ expect(await refused.json()).toEqual({
+ error: "Builderlab session changed",
+ });
+ }
+ expect(accountReads).toBe(reads);
+ const body = JSON.stringify({
+ agent_pubkey: "a".repeat(64),
+ agent_instructions: instructions,
+ });
+ const envelope = JSON.stringify({
+ revision,
+ path: "/v3/beekeeper/update-agent",
+ method: "POST",
+ body,
+ });
+ expect(envelope.length).toBeGreaterThan(64 * 1024);
+ const response = await fetch(`${h.base}/api/builderlab/request`, {
+ method: "POST",
+ body: envelope,
+ });
+ expect(response.status).toBe(200);
+ expect((await response.json()).status).toBe(200);
+ expect(received.agent_instructions).toBe(instructions);
+ for (const [action, path, header] of [
+ ["decisions", "/v3/builderlab/decisions", "X-BB-Session-Credential"],
+ [
+ "viewer",
+ "/v1/auth/hosted-site/native-session",
+ "X-Buzz-Builderlab-Revision",
+ ],
+ ]) {
+ const refused = await fetch(`${h.base}/api/builderlab/request`, {
+ method: "POST",
+ body: JSON.stringify({ revision, path, method: "POST", body: "{}" }),
+ });
+ expect(await refused.json()).toEqual({
+ error: "Unsupported Builderlab request",
+ });
+ const forwarded = await fetch(`${h.base}/api/builderlab/${action}`, {
+ method: "POST",
+ headers: { [header]: revision, "X-Buzz-Community": "buzz.example" },
+ body: JSON.stringify({ fixture: action }),
+ });
+ expect(forwarded.status).toBe(200);
+ expect(await forwarded.json()).toEqual({ fixture: "native reply" });
+ expect(nativeCalls.at(-1)).toMatchObject({
+ path: `/api/goose${path}`,
+ body: { fixture: action },
+ headers: { "X-BB-Session-Credential": "fixture-only" },
+ });
+ }
+ expect(nativeCalls).toHaveLength(2);
+ expect(nativeCalls[0].headers["X-Buzz-Community"]).toBe("buzz.example");
+ } finally {
+ await h.close();
+ }
+});
+
+test("Builderlab pending sign-in survives its initiating page disconnecting", async () => {
+ let openLogin;
+ const opened = new Promise((resolve) => {
+ openLogin = resolve;
+ });
+ const h = await harness(() => Response.json([]), {}, fixtureRelayUrl, {
+ open: async (url) => openLogin(new URL(url)),
+ fetch: async (url) => {
+ const path = new URL(url).pathname;
+ if (path.endsWith("/v1/auth/login/exchange"))
+ return Response.json({
+ session_credential: "fixture-only",
+ expires_at: "2030",
+ });
+ if (path.endsWith("/v1/auth/me"))
+ return Response.json({
+ subject: "fixture-account",
+ expires_at: "2030",
+ });
+ if (path.endsWith("/nostr-identities/challenge"))
+ return Response.json({
+ error: { code: "missing_mapping", setup_needed: true },
+ });
+ throw new Error(`Unexpected Builderlab request ${path}`);
+ },
+ });
+ const disconnected = new Promise((resolve) => {
+ h.server.on("request", (req, res) => {
+ if (req.url === "/api/builderlab/login") res.once("close", resolve);
+ });
+ });
+ const abort = new AbortController();
+ let reader;
+ try {
+ const login = fetch(`${h.base}/api/builderlab/login`, {
+ method: "POST",
+ body: "{}",
+ signal: abort.signal,
+ }).catch((error) => error);
+ const authorization = await opened;
+ abort.abort();
+ await login;
+ await disconnected;
+ const stream = await fetch(`${h.base}/api/builderlab/events`);
+ reader = stream.body.getReader();
+ const decoder = new TextDecoder();
+ let buffered = "";
+ const next = async () => {
+ while (!buffered.includes("\n\n")) {
+ const part = await reader.read();
+ if (part.done) throw new Error("Development session stream ended");
+ buffered += decoder.decode(part.value, { stream: true });
+ }
+ const end = buffered.indexOf("\n\n");
+ const event = JSON.parse(buffered.slice("data: ".length, end));
+ buffered = buffered.slice(end + 2);
+ return event;
+ };
+ expect(await next()).toMatchObject({ pending: true, auth: null });
+ await fetch(
+ `${authorization.searchParams.get("redirect_uri")}?code=fixture&state=${authorization.searchParams.get("state")}`,
+ );
+ let signedIn;
+ do {
+ signedIn = await next();
+ } while (signedIn.pending);
+ expect(signedIn.auth).toMatchObject({ subject: "fixture-account" });
+ const auth = await (await fetch(`${h.base}/api/builderlab/auth`)).json();
+ expect(auth.auth).toMatchObject({ subject: "fixture-account" });
+ } finally {
+ abort.abort();
+ await reader?.cancel();
+ await h.close();
+ }
+});
diff --git a/browser-host/relay-broker-live.test.mjs b/browser-host/relay-broker-live.test.mjs
index acf0b8e956..78d478ee43 100644
--- a/browser-host/relay-broker-live.test.mjs
+++ b/browser-host/relay-broker-live.test.mjs
@@ -18,6 +18,7 @@ import { relayBrokerPlugin } from "./relay-broker.mjs";
import { ARTIFACT_SYNC_MAX_VIEWS } from "../src/features/relay/artifact-sync-filter.ts";
import { connectBrokerTransport } from "../src/features/relay/transport.ts";
import { createOutbox, PublishRejected } from "../src/features/relay/outbox.ts";
+import { LIVE_BATCH_SIZE } from "../src/features/relay/live.ts";
/** Real HTTP setup/response cancellation and production subscriber; only upstream
* WS I/O is substituted. No Keychain access or network outside localhost. */
@@ -56,7 +57,10 @@ async function harness(
relayUrl: fixtureRelayUrl,
communityAliases: fixtureAliases,
identity: () => key,
- authority: async () => ({ relayAuthor: getPublicKey(key) }),
+ authority: async () => ({
+ relayAuthor: getPublicKey(key),
+ artifactSupport: true,
+ }),
upstreamFetch: async (url, init) => {
upstream.push(String(url));
const filters = JSON.parse(init?.body ?? "[]");
@@ -74,13 +78,14 @@ async function harness(
const filter = filters[0];
frames.push({ kind, id, at: performance.now(), socket });
if (kind === "AUTH" && !options.holdAuth)
- queueMicrotask(() => this.receive(["OK", id.id, true]));
+ setImmediate(() => this.receive(["OK", id.id, true]));
if (kind === "EVENT") publications.push({ event: id, socket });
if (kind !== "REQ") return;
requests.push({ at: performance.now(), id, filter, filters, socket });
const refused = requests.length === refuseAt;
+ // WS replies arrive on an I/O turn, which also lets HTTP readers drain.
if (!options.holdSetup)
- queueMicrotask(() =>
+ setImmediate(() =>
this.receive(refused ? ["CLOSED", id, reason] : ["EOSE", id]),
);
},
@@ -94,7 +99,7 @@ async function harness(
},
};
sockets.push(socket);
- queueMicrotask(() => socket.receive(["AUTH", "fixture"]));
+ setImmediate(() => socket.receive(["AUTH", "fixture"]));
return socket;
},
});
@@ -125,7 +130,7 @@ async function harness(
const response = await fetch(`${base}/api/relay/stream`, {
method: "POST",
headers: { Origin: origin, "Content-Type": "application/json" },
- body: JSON.stringify({ channels }),
+ body: JSON.stringify({ channels, statusDeltas: options.statusDeltas }),
signal: controller.signal,
});
return { response, abort: () => controller.abort() };
@@ -259,7 +264,7 @@ test("real HTTP accepts the 1022-channel body and rejects invalid/oversized/orig
large.abort();
await until(() => h.sockets.every((s) => s.readyState === 3));
const count = h.sockets.length;
- for (const invalid of [[""], Array(1025).fill("a"), ["x".repeat(150001)]]) {
+ for (const invalid of [[""], ["x".repeat(150001)]]) {
const { response } = await h.post(invalid);
expect([400, 413]).toContain(response.status);
await response.text();
@@ -344,11 +349,11 @@ test.each([null, 1])(
.filter((r) => r.status === "limited")
.map((r) => r.channelId)
.sort(),
- ).toEqual(ids.slice(enabled ? 1021 : 1022));
- // Status retains every interest, but only 1024 routes may have a wire.
+ ).toEqual(ids.slice(enabled ? 1020 : 1021));
+ // One wire stays free for the silence probe. All interests stay visible.
expect(
snapshot.routes.filter((r) => r.status !== "limited"),
- ).toHaveLength(1024);
+ ).toHaveLength(1023);
expect(snapshot.routes.some((r) => r.id === "observer")).toBe(enabled);
sockets ??= h.sockets.length;
posts ??= streamPosts();
@@ -1054,6 +1059,11 @@ test("production interest controls preserve socket/global routes and pending wri
test.each([
["restricted: not a member", true, "Relay request failed (503)"],
+ [
+ 'invalid: an open channel named "Launch" already exists',
+ true,
+ 'An open channel named "Launch" already exists',
+ ],
[
"error: internal server error",
false,
@@ -1139,6 +1149,52 @@ test("lost publication receipt stays unknown; reconnect never automatically repu
}
});
+test("a reconnect's continuous channel replays cross the real HTTP boundary", async () => {
+ const h = await harness(0, undefined, { holdAuth: true });
+ let traffic;
+ const clock = vi.spyOn(Date, "now");
+ try {
+ const now = Date.now();
+ clock.mockReturnValue(now - 20 * 60_000);
+ browserFetch(h.base);
+ const transport = await connectBrokerTransport(h.base);
+ const established = vi.fn();
+ traffic = transport.subscribe({ ...callbacks, established });
+ traffic.update(["a", "b", "c"], ["a", "b"]);
+ await until(() => h.frames.some((frame) => frame.kind === "AUTH"));
+ // Start the session before the floor, then authenticate at the current
+ // time so the connection cursor has the full resume lag behind it.
+ clock.mockRestore();
+ const auth = h.frames.find((frame) => frame.kind === "AUTH");
+ await h.sockets[0].receive(["OK", auth.id.id, true]);
+ const channels = () =>
+ established.mock.calls.filter(([ids]) => ids !== undefined);
+ await until(() => channels().length === 2);
+ // A first connection has no cursor: no channel reports continuity.
+ expect(channels()).toEqual(expect.arrayContaining([[["a", "b"]], ["c"]]));
+ established.mockClear();
+ h.sockets[0].close();
+ await until(
+ () => h.frames.filter((frame) => frame.kind === "AUTH").length === 2,
+ );
+ const nextAuth = h.frames.filter((frame) => frame.kind === "AUTH")[1];
+ await h.sockets[1].receive(["OK", nextAuth.id.id, true]);
+ await until(() => channels().length === 2);
+ // The quiet replays resumed from their cursors, below the limit.
+ expect(channels()).toEqual(
+ expect.arrayContaining([
+ [["a", "b"], undefined, ["a", "b"]],
+ ["c", undefined, ["c"]],
+ ]),
+ );
+ } finally {
+ clock.mockRestore();
+ traffic?.dispose();
+ vi.unstubAllGlobals();
+ await h.close();
+ }
+});
+
test("read-only profile lookup needs no live owner; a not-yet-ready session fails publication without HTTP fallback", async () => {
const h = await harness();
try {
@@ -1488,25 +1544,40 @@ test("joined batches survive the real HTTP boundary and retirement only rebuilds
(_, i) => `c${String(i).padStart(3, "0")}`,
);
traffic.update([...joined, "preview"], joined);
- await until(() => established.mock.calls.length === 29);
- expect(h.requests).toHaveLength(29);
+ await until(
+ () => established.mock.calls.length === 4 && h.requests.length === 5,
+ );
+ expect(h.requests).toHaveLength(5);
const batches = h.requests.filter(
- (r) => r.filter["#h"] && r.filters.length > 1,
+ (r) => r.filter["#h"] && r.filter.limit === 0,
);
- expect(batches.map((r) => r.filters.length)).toEqual([
- ...Array(25).fill(10),
- 6,
- ]);
- for (const r of batches)
- for (const f of r.filters) {
- expect(f["#h"]).toHaveLength(1);
- expect(f.limit).toBe(500);
- }
+ // Every joined channel replays through one combined filter; the preview
+ // channel has its own route.
+ const replays = h.requests.filter(
+ (r) =>
+ r.filter["#h"] &&
+ r.filter.limit === 500 &&
+ !r.filter["#h"].includes("preview"),
+ );
+ expect(replays.map((r) => r.filters.length)).toEqual([1]);
+ expect(replays[0].filter["#h"]).toEqual(joined);
expect(
established.mock.calls
.filter(([ids]) => Array.isArray(ids))
.map(([ids]) => ids.length),
- ).toEqual([...Array(25).fill(10), 6]);
+ ).toEqual([256]);
+ // Globals carry their continuity across the host boundary. A first
+ // connection has no cursor, so neither proves it missed nothing.
+ expect(
+ established.mock.calls
+ .filter(([ids]) => ids === undefined)
+ .map(([, global]) => global),
+ ).toEqual(
+ expect.arrayContaining([
+ { route: "profiles", continuous: false },
+ { route: "membership", continuous: false },
+ ]),
+ );
const old = batches[0];
// Host rejects mismatched joined scope before changing any live routes.
const malformed = await fetcher(`${h.base}/api/relay/stream-interests`, {
@@ -1521,16 +1592,17 @@ test("joined batches survive the real HTTP boundary and retirement only rebuilds
});
expect(malformed.status).toBe(400);
await malformed.text();
- expect(h.requests).toHaveLength(29);
+ expect(h.requests).toHaveLength(5);
const retained = joined.slice(1);
traffic.update([...retained, "preview"], retained);
- await until(() => established.mock.calls.length === 30);
- expect(h.requests).toHaveLength(30);
- expect(h.frames.filter((f) => f.kind === "CLOSE").map((f) => f.id)).toEqual(
- [old.id],
- );
+ await until(() => established.mock.calls.length === 5);
+ expect(established).toHaveBeenCalledTimes(5);
+ expect(h.requests).toHaveLength(6);
+ expect(
+ h.frames.filter((f) => f.kind === "CLOSE" && f.id === old.id),
+ ).toHaveLength(1);
expect(h.requests.at(-1).filters.flatMap((f) => f["#h"])).toEqual(
- joined.slice(1, 10),
+ joined.slice(1),
);
const event = finalizeEvent(
{
@@ -1546,7 +1618,7 @@ test("joined batches survive the real HTTP boundary and retirement only rebuilds
await until(() => receive.mock.calls.length === 1);
expect(receive).toHaveBeenCalledExactlyOnceWith([event], {
phase: "live",
- sourceChannels: joined.slice(1, 10),
+ sourceChannels: joined.slice(1),
});
expect(h.sockets).toHaveLength(1);
} finally {
@@ -1667,6 +1739,60 @@ test("startup response ABA retires an old wire before applying the latest intere
}
});
+test("a re-added pending route replaces its queued removal before drain", async () => {
+ let response;
+ let backpressured = false;
+ const deltas = [];
+ const h = await harness(0, undefined, {
+ holdSetup: true,
+ statusDeltas: true,
+ response(res) {
+ response = res;
+ Object.defineProperty(res, "writableNeedDrain", {
+ get: () => backpressured,
+ });
+ const write = res.write.bind(res);
+ res.write = (chunk, ...args) => {
+ const text = String(chunk);
+ if (text.startsWith("event: state-delta\n"))
+ deltas.push(JSON.parse(text.split("data: ")[1]));
+ return write(chunk, ...args);
+ };
+ },
+ });
+ try {
+ const opened = await h.post(["a"]);
+ await until(() => h.requests.some((r) => r.filter["#h"]?.includes("a")));
+ const control = async (channels, interestRevision) => {
+ const result = await fetch(`${h.base}/api/relay/stream-interests`, {
+ method: "POST",
+ headers: { Origin: h.base, "Content-Type": "application/json" },
+ body: JSON.stringify({
+ streamId: opened.response.headers.get("x-buzz-live-id"),
+ channels,
+ interestRevision,
+ }),
+ });
+ expect(result.status).toBe(200);
+ await result.text();
+ };
+ backpressured = true;
+ await control([], 1);
+ await control(["a"], 2);
+ const before = deltas.length;
+ backpressured = false;
+ response.emit("drain");
+ const drained = deltas.slice(before);
+ expect(drained.flatMap((d) => d.removed)).not.toContain("channel:a");
+ expect(drained.flatMap((d) => d.routes)).toContainEqual(
+ expect.objectContaining({ id: "channel:a", status: "pending" }),
+ );
+ expect(drained.every((d) => d.interestRevision === 2)).toBe(true);
+ } finally {
+ await h.close();
+ }
+});
+
test.each(["disconnect", "close"])(
"backpressured route state drains latest revision and fences observer transitions and %s",
async (ending) => {
@@ -1828,13 +1954,20 @@ test.each([
]);
await h.sockets[0].receive(["OK", event.id, false, reason]);
const response = await result;
- expect(response.status).toBe(503);
- expect(await response.json()).toEqual({
- error: summary.startsWith("rate-limited:")
- ? summary
- : "Socket publication could not be confirmed",
- ...(!sent ? { sent: false } : {}),
- });
+ // A proven validation refusal answers this client as the relay's HTTP
+ // API does, with its own text; the log keeps only the safe summary.
+ const validation = !sent && reason.startsWith("invalid:");
+ expect(response.status).toBe(validation ? 400 : 503);
+ expect(await response.json()).toEqual(
+ validation
+ ? { error: reason }
+ : {
+ error: summary.startsWith("rate-limited:")
+ ? summary
+ : "Socket publication could not be confirmed",
+ ...(!sent ? { sent: false } : {}),
+ },
+ );
expect(lines).toContain(
`publication id=${event.id} kind=9000 stage=socket sent=${sent} reason=Relay publication not confirmed refusal=${summary}`,
);
@@ -2015,6 +2148,194 @@ test("live streams request no agent telemetry without plugin demand", async () =
}
});
+/** Joins `count` channels over the real HTTP boundary, delivers an event in
+ * the last one, which lies outside the first live REQ batch, and swaps it for
+ * a new channel. `budget` is the timeout in ms of the establishment wait and
+ * of the swap wait; the delivery wait between them keeps vi.waitFor's 1 s
+ * default. Returns the closed harness for its upstream record. */
+async function joinedBeyondFirstBatch(count, batches, budget) {
+ const h = await harness();
+ let traffic;
+ try {
+ browserFetch(h.base);
+ const transport = await connectBrokerTransport(h.base);
+ let snapshot;
+ const received = [];
+ const established = new Set();
+ traffic = transport.subscribe({
+ receive(events) {
+ received.push(...events);
+ },
+ established(ids) {
+ for (const id of typeof ids === "string" ? [ids] : (ids ?? []))
+ established.add(id);
+ },
+ denied() {},
+ state(value) {
+ snapshot = value;
+ },
+ });
+ const ids = Array.from(
+ { length: count },
+ (_, i) => `${String(i).padStart(6, "0")}-${"c".repeat(121)}`,
+ );
+ traffic.update(ids, ids);
+ await vi.waitFor(
+ () => {
+ expect(
+ established.size,
+ JSON.stringify({
+ status: snapshot?.status,
+ error: snapshot?.error,
+ requests: h.requests.length,
+ sockets: h.sockets.length,
+ }),
+ ).toBe(count);
+ expect(snapshot?.status).toBe("connected");
+ expect(
+ snapshot.routes.filter(
+ (route) => route.channelId && route.status === "live",
+ ),
+ ).toHaveLength(count);
+ },
+ { timeout: budget },
+ );
+ expect(h.sockets).toHaveLength(1);
+ // Live-only REQs each name a batch; a batch small enough to replay inside
+ // its own REQ carries limit 500 instead. The first is full and `last` lies
+ // beyond it.
+ const live = h.requests.filter((r) =>
+ r.filters.some((f) => f["#h"] && f.limit === 0),
+ );
+ expect(live).toHaveLength(batches);
+ expect(live[0].filter["#h"]).toHaveLength(LIVE_BATCH_SIZE);
+ const last = ids.at(-1);
+ expect(live[0].filter["#h"]).not.toContain(last);
+ const route = h.requests.find((request) =>
+ request.filters.some((filter) => filter["#h"]?.includes(last)),
+ );
+ expect(route).toBeDefined();
+ const event = finalizeEvent(
+ {
+ kind: 9,
+ content: "last task input",
+ created_at: Math.floor(Date.now() / 1000),
+ tags: [["h", last]],
+ },
+ h.key,
+ );
+ await route.socket.receive(["EVENT", route.id, event]);
+ await vi.waitFor(() =>
+ expect(received.map((item) => item.id)).toContain(event.id),
+ );
+ const next = [...ids.slice(0, -1), "new-task"];
+ traffic.update(next, next);
+ await vi.waitFor(
+ () => {
+ expect(established.has("new-task")).toBe(true);
+ expect(snapshot.routes.some((route) => route.channelId === last)).toBe(
+ false,
+ );
+ },
+ { timeout: budget },
+ );
+ return h;
+ } finally {
+ traffic?.dispose();
+ vi.unstubAllGlobals();
+ await h.close();
+ }
+}
+
+// Each budgeted wait gets the 5 s that the default test timeout allowed this
+// case as a whole. The longest failing run is both of them plus the 1 s
+// delivery wait, 11 s, so the 20 s test timeout lets a failed wait throw and
+// the helper's cleanup finish inside this test, not during the next one.
+test("real broker delivers outside the first joined batch", async () => {
+ // The lone overflow channel replays inside its own REQ, so only the first
+ // batch is a live-only REQ.
+ await joinedBeyondFirstBatch(LIVE_BATCH_SIZE + 1, 1, 5_000);
+}, 20_000);
+
+// Asserts wall-clock time: about 20 s of single-threaded CPU inside the 30 s
+// budget. A shared Vitest shard's two workers timed it out under load, so CI
+// runs it alone in the Browser measurements lane with BUZZ_BROKER_SCALE set,
+// selected by the `100,000` in its title; the shards skip it.
+test.skipIf(!process.env.BUZZ_BROKER_SCALE)(
+ "real broker keeps 100,000 joined channels and delivers outside the first batch",
+ async () => {
+ const h = await joinedBeyondFirstBatch(100_000, 49, 30_000);
+ const active = new Set();
+ for (const { kind, id } of h.frames) {
+ if (kind === "REQ") active.add(id);
+ if (kind === "CLOSE") active.delete(id);
+ expect(active.size).toBeLessThanOrEqual(1024);
+ }
+ },
+ 60_000,
+);
+
+test("broker renewals retain establishment signals while channel status stays live", async () => {
+ const h = await harness();
+ let traffic;
+ try {
+ browserFetch(h.base);
+ const transport = await connectBrokerTransport(h.base);
+ const established = vi.fn();
+ const states = [];
+ traffic = transport.subscribe({
+ ...callbacks,
+ established,
+ state: (state) => states.push(state),
+ });
+ const ids = Array.from({ length: 20 }, (_, i) => `c${i}`);
+ traffic.update(ids, ids);
+ await until(
+ () =>
+ established.mock.calls.filter(([value]) => Array.isArray(value))
+ .length === 1,
+ );
+ const membership = h.requests.find((request) =>
+ request.filters.some((filter) => filter.kinds.includes(44100)),
+ );
+ expect(membership).toBeDefined();
+ const before = states.length;
+ const notice = finalizeEvent(
+ {
+ kind: 44100,
+ content: "",
+ created_at: Math.floor(Date.now() / 1000),
+ tags: [
+ ["p", getPublicKey(h.key)],
+ ["h", ids[0]],
+ ],
+ },
+ h.key,
+ );
+ await membership.socket.receive(["EVENT", membership.id, notice]);
+ await until(
+ () =>
+ established.mock.calls.filter(([value]) => Array.isArray(value))
+ .length === 2,
+ );
+ expect(
+ states
+ .slice(before)
+ .every((state) =>
+ state.routes
+ .filter((route) => route.channelId)
+ .every((route) => route.status === "live"),
+ ),
+ ).toBe(true);
+ expect(established.mock.calls.at(-1)).toEqual([ids.sort()]);
+ expect(h.sockets).toHaveLength(1);
+ } finally {
+ traffic?.dispose();
+ vi.unstubAllGlobals();
+ await h.close();
+ }
+});
+
test("a sync close that overtakes its open keeps the late open from taking a host slot", async () => {
const h = await harness();
const post = (path, body) =>
diff --git a/browser-host/relay-broker.d.mts b/browser-host/relay-broker.d.mts
index f62b9f1b3c..e53c0149c3 100644
--- a/browser-host/relay-broker.d.mts
+++ b/browser-host/relay-broker.d.mts
@@ -2,6 +2,7 @@ import type { Plugin } from "vite";
export function relayBrokerPlugin(options?: {
archiveFile?: string;
authorizedViewer?: string | undefined;
+ browserOrigin?: string | undefined;
agentLibrary?: () => Promise<
import("../src/features/agents/library").AgentLibrary
>;
@@ -15,6 +16,8 @@ export function relayBrokerPlugin(options?: {
upstreamFetch?: typeof fetch;
socketFactory?: (url: string) => WebSocket;
builderlab?: {
+ api?: string;
+ appsBase?: string | undefined;
fetch?: typeof fetch;
open?: (url: string) => Promise;
};
diff --git a/browser-host/relay-broker.mjs b/browser-host/relay-broker.mjs
index 62449caf3b..f609f56bdc 100644
--- a/browser-host/relay-broker.mjs
+++ b/browser-host/relay-broker.mjs
@@ -32,6 +32,7 @@ import {
prepareChannelKit,
decodeChannelKit,
admitChannelKit,
+ canvasEventFits,
validCanvas,
} from "./channel-kit.mjs";
import { uploadAttachment, UploadError } from "./attachment-upload.mjs";
@@ -52,6 +53,7 @@ import {
directMessageReceipt,
} from "./direct-messages.mjs";
import { SocketRequestError } from "../src/features/relay/socket-requests.ts";
+import { CANVAS_MAX_EVENT_BYTES } from "../src/features/channel-templates/canvas-limits.ts";
import {
ARTIFACT_SYNC_MAX_VIEWS,
artifactSyncFilter,
@@ -132,7 +134,10 @@ import {
apiFailure,
presenceFilter,
presenceText,
+ readApiFailure,
+ BROKER_REFUSAL_HEADER,
} from "../src/features/relay/http-admission.ts";
+import { AsyncLocalStorage } from "node:async_hooks";
import { execFileSync } from "node:child_process";
import { createHash, randomBytes } from "node:crypto";
import { Readable, Transform } from "node:stream";
@@ -142,13 +147,17 @@ import {
mediaByteLimit,
UPLOAD_TIMEOUT_MS,
} from "../src/features/relay/attachment-limits.ts";
+import { legacyEmojiPicture } from "../src/shared/avatar-source.ts";
import dc from "node:diagnostics_channel";
import { finalizeEvent, getPublicKey, nip19, verifyEvent } from "nostr-tools";
import { Agent, fetch as upstreamHttp, interceptors } from "undici";
import { schnorr } from "@noble/curves/secp256k1.js";
+/** The app's profile save policy: an HTTPS URL, or old Buzz's emoji avatar
+ * that Buzz mobile still writes, never other inline or SVG data. */
function validProfilePicture(value) {
- if (!value) return true;
+ if (!value || legacyEmojiPicture(value.trim())) return true;
+ if (value.length > 2048) return false;
try {
const url = new URL(value);
return url.protocol === "https:" && !url.username && !url.password;
@@ -328,6 +337,9 @@ async function relayAuthority(fetch, relay) {
nip11.supported_extensions.includes("nip-cl"),
// NIP-AR sync: REQ with `"artifact": "current"` keeps a set current.
artifactSync: nip11.artifacts?.sync?.version === 1,
+ artifactSupport:
+ Array.isArray(nip11.supported_extensions) &&
+ nip11.supported_extensions.includes("nip-ar"),
// Bridge search accepts `search_sort: "newest"`.
searchSort:
Array.isArray(nip11.supported_extensions) &&
@@ -368,6 +380,7 @@ function relayMediaTarget(raw, relay) {
/^[0-9a-f]{64}$/.test(hash) &&
(extension === "" ||
extension === "thumb.jpg" ||
+ extension === "thumb.webp" ||
/^[a-z0-9]{1,8}$/.test(extension))
? target
: undefined;
@@ -799,6 +812,35 @@ function failureSummary(error) {
);
return `${category}${code ? ` (${code})` : ""}`;
}
+/** A community refusal in a relay 401/403, read from a copy of its body. Only
+ * the relay's short denial (its NIP-FI text, or a membership refusal's JSON)
+ * counts, so a longer body stops being read at once; its route still owns,
+ * reads or cancels the original. */
+async function refusalOf(response) {
+ const reader = response.clone().body?.getReader();
+ if (!reader) return undefined;
+ const chunks = [];
+ for (let bytes = 0; ; ) {
+ const { value, done } = await reader.read();
+ if (done) break;
+ bytes += value.byteLength;
+ if (bytes > 256) {
+ // A tee'd copy's cancel settles only once the original's does too.
+ void reader.cancel().catch(() => {});
+ return undefined;
+ }
+ chunks.push(value);
+ }
+ const copy = new Response(Buffer.concat(chunks), { status: response.status });
+ return (await readApiFailure(copy)).admission;
+}
+/** The browser response whose route is making a relay request. */
+const refusalTarget = new AsyncLocalStorage();
+/** `admittedApiRequest`, but a queued request keeps its own route's response:
+ * the shared lane starts a waiting request from whichever one finished, so
+ * left unbound it would mark that one's response with this one's refusal. */
+const admittedRelayRequest = (lane, request, ...rest) =>
+ admittedApiRequest(lane, AsyncLocalStorage.bind(request), ...rest);
const json = (res, code, body) => {
res.writeHead(code, {
"Content-Type": "application/json",
@@ -810,6 +852,7 @@ const json = (res, code, body) => {
/** @returns {import('vite').Plugin} */
export function relayBrokerPlugin({
authorizedViewer,
+ browserOrigin,
relayUrl,
communityAliases,
identity = () => loadIdentity(authorizedViewer),
@@ -822,10 +865,53 @@ export function relayBrokerPlugin({
// Tests that hold EOSE on purpose lengthen this real-time deadline.
liveSetupTimeoutMs,
} = {}) {
+ const publicOrigin =
+ browserOrigin === undefined
+ ? undefined
+ : typeof browserOrigin === "string"
+ ? URL.parse(browserOrigin)
+ : null;
+ if (
+ browserOrigin !== undefined &&
+ (publicOrigin?.protocol !== "https:" ||
+ publicOrigin.username ||
+ publicOrigin.password ||
+ publicOrigin.pathname !== "/" ||
+ publicOrigin.search ||
+ publicOrigin.hash)
+ )
+ throw new Error(
+ "browserOrigin must be an HTTPS origin without credentials, path, query, or fragment.",
+ );
const aliases = parseCommunityAliases(communityAliases);
const defaultRelay = relayUrl?.trim() ? relayOrigin(relayUrl) : undefined;
return {
name: "buzz-relay-broker",
+ configResolved(config) {
+ if (
+ publicOrigin &&
+ (config.command !== "serve" ||
+ config.mode !== "development" ||
+ config.isProduction)
+ )
+ throw new Error(
+ "browserOrigin requires the Vite development server in development mode.",
+ );
+ // Request headers express browser origin intent, not remote-client
+ // authentication. Check the effective listener, including CLI overrides,
+ // before configureServer loads the signing identity.
+ const host = config.server.host;
+ if (
+ host !== undefined &&
+ host !== false &&
+ host !== "localhost" &&
+ host !== "127.0.0.1" &&
+ host !== "::1"
+ )
+ throw new Error(
+ "The live identity broker requires a loopback-only Vite listener; remove --host or use --host 127.0.0.1.",
+ );
+ },
async configureServer(server) {
const log = getLogger("relay-broker");
const key = identity();
@@ -834,7 +920,22 @@ export function relayBrokerPlugin({
const localArchive = () => (archive ??= openArchive(archiveFile));
const upstream = createUpstream();
// Injected fixtures bypass the pool; the live relay always uses the warm agent.
- const fetchUpstream = upstreamFetch ?? upstream.fetch;
+ const relayFetch = upstreamFetch ?? upstream.fetch;
+ /** Every relay request passes here, so a community refusal reaches the
+ * browser whichever route met it and whatever it does with the body. */
+ const fetchUpstream = async (url, init) => {
+ const response = await relayFetch(url, init);
+ const res = refusalTarget.getStore();
+ if (
+ res &&
+ !res.headersSent &&
+ (response.status === 401 || response.status === 403)
+ ) {
+ const admission = await refusalOf(response);
+ if (admission) res.setHeader(BROKER_REFUSAL_HEADER, admission);
+ }
+ return response;
+ };
const readSidebarHead = async (response, label = "preference") => {
if (!response.body)
throw new Error(`Sidebar ${label} response missing`);
@@ -896,12 +997,14 @@ export function relayBrokerPlugin({
return gifSearchPaths.get(relay);
};
const stats = { queries: 0, errors: 0, media: 0, connects: 0 };
- let inflight = 0;
+ // Queries in flight per community: one community's load must not refuse
+ // another's, as natively each has its own socket.
+ const inflight = new Map();
let gitReads = 0;
let presenceFlight = false;
let sidebarUploads = 0;
let attachmentUploads = 0;
- let libraryRead;
+ const libraryReads = new Map();
const sidebarMutations = new Map();
const streams = new Map();
const admissions = createHostAdmission();
@@ -910,6 +1013,7 @@ export function relayBrokerPlugin({
...builderlabOptions,
});
server.httpServer?.once("close", () => {
+ builderlab.signOut();
for (const { close } of streams.values()) close();
archive?.close();
key.fill(0);
@@ -920,6 +1024,10 @@ export function relayBrokerPlugin({
`signing as ${viewer.slice(0, 8)}… for explicitly selected communities (lazy, scoped connections)`,
);
server.middlewares.use(async (req, res, next) => {
+ // This request's relay requests run with its response, so a community
+ // refusal any of them meets marks it (`fetchUpstream`). Each request
+ // has its own async context, so nothing else sees it.
+ refusalTarget.enterWith(res);
if (
!req.url?.startsWith("/api/relay/") &&
!req.url?.startsWith("/api/builderlab/")
@@ -936,7 +1044,8 @@ export function relayBrokerPlugin({
else if (res.statusCode >= 400) log.warn(line);
else log.debug(line);
});
- const origin = `http://${req.headers.host ?? ""}`;
+ const origin =
+ publicOrigin?.origin ?? `http://${req.headers.host ?? ""}`;
// Same-origin browser access only; trusted plugins/local processes are not sandboxed.
if (!/^(localhost|127\.0\.0\.1):\d+$/.test(req.headers.host ?? ""))
return json(res, 403, { error: "Host rejected" });
@@ -959,9 +1068,29 @@ export function relayBrokerPlugin({
if (res.destroyed) release();
try {
if (url.pathname.startsWith("/api/builderlab/")) {
- // Hosted communities plugin only; the session credential never leaves Node.
+ // One development sign-in for hosting, agents and apps; its credential stays in Node.
const action = url.pathname.slice("/api/builderlab/".length);
try {
+ if (action === "events" && req.method === "GET") {
+ res.writeHead(200, {
+ "Content-Type": "text/event-stream",
+ "Cache-Control": "no-store",
+ });
+ const send = (state) =>
+ res.write(`data: ${JSON.stringify(state)}\n\n`);
+ const stop = builderlab.subscribe(send);
+ res.once("close", stop);
+ send(builderlab.snapshot());
+ return;
+ }
+ if (action === "capabilities" && req.method === "GET")
+ return json(
+ res,
+ 200,
+ await builderlab.capabilities(
+ url.searchParams.get("revision"),
+ ),
+ );
if (action === "auth" && req.method === "GET")
return json(res, 200, { auth: await builderlab.auth() });
if (req.method !== "POST")
@@ -970,12 +1099,64 @@ export function relayBrokerPlugin({
req.setEncoding("utf8");
for await (const part of req) {
raw += part;
- if (raw.length > 4096)
+ if (
+ raw.length >
+ (action === "decisions"
+ ? 128 * 1024
+ : action === "request"
+ ? 1024 * 1024
+ : 4096)
+ )
return json(res, 413, { error: "Request too large" });
}
+ const input = raw ? JSON.parse(raw) : {};
+ const nativeRoute = {
+ // Native Decisions puts the public revision in its existing credential header.
+ decisions: [
+ "/v3/builderlab/decisions",
+ "x-bb-session-credential",
+ ],
+ viewer: [
+ "/v1/auth/hosted-site/native-session",
+ "x-buzz-builderlab-revision",
+ ],
+ }[action];
+ if (nativeRoute) {
+ const [path, header] = nativeRoute;
+ const reply = await builderlab.request(
+ {
+ revision: req.headers[header],
+ path,
+ method: "POST",
+ body: raw,
+ community: req.headers["x-buzz-community"],
+ },
+ cancel.signal,
+ true,
+ );
+ res
+ .writeHead(reply.status, {
+ "Content-Type": "application/json",
+ "Cache-Control": "no-store",
+ })
+ .end(reply.body);
+ return;
+ }
+ if (action === "request")
+ return json(
+ res,
+ 200,
+ await builderlab.request(input, cancel.signal),
+ );
+ // Scoped callers cannot submit an operation for a replacement account.
+ if (
+ input.revision !== undefined &&
+ input.revision !== builderlab.snapshot().revision
+ )
+ return json(res, 409, { error: "Builderlab session changed" });
if (action === "login")
return json(res, 200, {
- auth: await builderlab.login(cancel.signal),
+ auth: await builderlab.login(),
});
if (action === "sign-out") {
builderlab.signOut();
@@ -983,10 +1164,7 @@ export function relayBrokerPlugin({
}
if (action === "bind")
return json(res, 200, await builderlab.bind());
- const result = await builderlab.call(
- action,
- raw ? JSON.parse(raw) : {},
- );
+ const result = await builderlab.call(action, input);
return result
? json(res, builderlabResponseStatus(result), result)
: json(res, 404, { error: "Unknown Builderlab route" });
@@ -1141,6 +1319,9 @@ export function relayBrokerPlugin({
? null
: (await policyResponse.json()).policy;
return json(res, 200, {
+ membershipRequired:
+ Array.isArray(info.supported_nips) &&
+ info.supported_nips.includes(43),
name: info.name,
icon: info.icon,
policy: policy ?? null,
@@ -1318,7 +1499,7 @@ export function relayBrokerPlugin({
AbortSignal.timeout(UPSTREAM_TIMEOUT_MS),
]);
const dispatch = (path, body) =>
- admittedApiRequest(
+ admittedRelayRequest(
lane,
() => {
requestSignal.throwIfAborted();
@@ -1457,13 +1638,20 @@ export function relayBrokerPlugin({
if (route === "/api/relay/agent-library" && req.method === "GET") {
try {
- // Share concurrent reads, never retain the local snapshot after completion.
- libraryRead ??= Promise.resolve()
- .then(() => agentLibrary())
- .finally(() => {
- libraryRead = undefined;
- });
- return json(res, 200, await libraryRead);
+ // Share only same-community reads; never retain a completed snapshot.
+ if (!libraryReads.has(relay))
+ libraryReads.set(
+ relay,
+ Promise.resolve()
+ .then(() =>
+ agentLibrary(undefined, {
+ community: relay,
+ owner: viewer,
+ }),
+ )
+ .finally(() => libraryReads.delete(relay)),
+ );
+ return json(res, 200, await libraryReads.get(relay));
} catch {
return json(res, 503, {
error:
@@ -1494,7 +1682,7 @@ export function relayBrokerPlugin({
30178,
40100,
1984,
- 45010,
+ ...((await getAuthority(relay)).artifactSupport ? [45010] : []),
...WORKFLOW_KINDS,
...((await getAuthority(relay)).channelCreation ? [9007] : []),
],
@@ -1614,14 +1802,16 @@ export function relayBrokerPlugin({
const prioritizing = route === "/api/relay/stream-priority";
const observing = route === "/api/relay/stream-observer";
const updating = route === "/api/relay/stream-interests";
- let raw = "";
+ let raw = "",
+ bytes = 0;
req.setEncoding("utf8");
for await (const part of req) {
raw += part;
+ bytes += Buffer.byteLength(part);
if (
- Buffer.byteLength(raw) >
+ bytes >
(updating
- ? 450000
+ ? 64 * 1024 * 1024
: watchingPresence
? 20000
: prioritizing
@@ -1717,9 +1907,10 @@ export function relayBrokerPlugin({
// Coalescing may hide a removal followed by re-add. Retire the old
// wire before stamping the new revision; unchanged routes survive.
if (removed.length) {
+ const removedIds = new Set(removed);
stream.traffic.update(
- stream.channels.filter((id) => !removed.includes(id)),
- stream.joined.filter((id) => !removed.includes(id)),
+ stream.channels.filter((id) => !removedIds.has(id)),
+ stream.joined.filter((id) => !removedIds.has(id)),
);
}
stream.interestRevision = interestRevision;
@@ -1734,11 +1925,13 @@ export function relayBrokerPlugin({
return json(res, 200, { accepted: true });
}
if (route === "/api/relay/stream" && req.method === "POST") {
- let raw = "";
+ let raw = "",
+ bytes = 0;
req.setEncoding("utf8");
for await (const part of req) {
raw += part;
- if (Buffer.byteLength(raw) > 300000)
+ bytes += Buffer.byteLength(part);
+ if (bytes > 64 * 1024 * 1024)
return json(res, 413, { error: "Live interests too large" });
}
let channels,
@@ -1746,9 +1939,11 @@ export function relayBrokerPlugin({
priority,
observer,
interestRevision,
- presenceAuthors;
+ presenceAuthors,
+ statusDeltas;
try {
const body = JSON.parse(raw);
+ statusDeltas = body.statusDeltas === true;
channels = liveChannels(body.channels);
joined = liveJoined(channels, body.joined ?? []);
interestRevision = body.interestRevision ?? 0;
@@ -1786,7 +1981,7 @@ export function relayBrokerPlugin({
// Bound slow-client buffering rather than retaining unbounded traffic.
const write = (kind, value) => {
if (res.destroyed) return;
- if (res.writableLength > 2 * 1024 * 1024) {
+ if (res.writableLength > 8 * 1024 * 1024) {
res.destroy();
return;
}
@@ -1801,12 +1996,12 @@ export function relayBrokerPlugin({
let lastStateStatus;
let lastObserverStatus;
let liveChannelIds = new Set();
- const flushState = () => {
+ const flushLegacyState = () => {
const state = pendingState;
pendingState = undefined;
if (state) write("state", state);
};
- const writeState = (state) => {
+ const writeLegacyState = (state) => {
const observerStatus = state.routes.find(
(route) => route.id === "observer",
)?.status;
@@ -1831,6 +2026,138 @@ export function relayBrokerPlugin({
if (replaceable && res.writableNeedDrain) pendingState = state;
else write("state", state);
};
+ let knownRoutes = new Map();
+ const dirtyRoutes = new Map();
+ const pendingEstablished = new Map();
+ let deltaHeader;
+ const sameRoute = (a, b) =>
+ a?.status === b.status &&
+ a?.replay === b.replay &&
+ a?.error === b.error;
+ const flushDeltas = () => {
+ if (!deltaHeader) return;
+ while (dirtyRoutes.size && !res.destroyed) {
+ const routes = [],
+ removed = [];
+ for (const [id, route] of dirtyRoutes) {
+ dirtyRoutes.delete(id);
+ if (route) routes.push(route);
+ else removed.push(id);
+ if (routes.length + removed.length === 512) break;
+ }
+ write("state-delta", { ...deltaHeader, routes, removed });
+ if (res.writableNeedDrain) return;
+ }
+ while (pendingEstablished.size && !res.destroyed) {
+ const [first, entry] = pendingEstablished
+ .entries()
+ .next().value;
+ const { interestRevision, singleton } = entry;
+ if (singleton) {
+ pendingEstablished.delete(first);
+ write("established", {
+ channelId: first,
+ ...(entry.continuous ? { continuous: [first] } : {}),
+ interestRevision,
+ });
+ } else {
+ const channels = [];
+ const continuous = [];
+ for (const [id, pending] of pendingEstablished) {
+ if (
+ pending.interestRevision !== interestRevision ||
+ pending.singleton
+ )
+ continue;
+ pendingEstablished.delete(id);
+ channels.push(id);
+ if (pending.continuous) continuous.push(id);
+ if (channels.length === 512) break;
+ }
+ write("established", {
+ channels,
+ ...(continuous.length ? { continuous } : {}),
+ interestRevision,
+ });
+ }
+ if (res.writableNeedDrain) return;
+ }
+ };
+ const writeState = statusDeltas
+ ? (state) => {
+ const reset =
+ !deltaHeader || state.status !== deltaHeader.status;
+ if (reset) {
+ dirtyRoutes.clear();
+ pendingEstablished.clear();
+ knownRoutes.clear();
+ write("state-delta", {
+ status: state.status,
+ ...(state.error ? { error: state.error } : {}),
+ interestRevision: state.interestRevision,
+ reset: true,
+ routes: [],
+ removed: [],
+ });
+ }
+ deltaHeader = {
+ status: state.status,
+ ...(state.error ? { error: state.error } : {}),
+ interestRevision: state.interestRevision,
+ };
+ const next = new Map();
+ const urgent = [];
+ for (const route of state.routes) {
+ next.set(route.id, route);
+ const previous = knownRoutes.get(route.id);
+ // The browser already owns the IDs and can construct pending rows.
+ const implicit =
+ !previous &&
+ route.channelId &&
+ route.status === "pending" &&
+ route.replay === "unknown" &&
+ !route.error;
+ if (
+ (!implicit || dirtyRoutes.get(route.id) === null) &&
+ !sameRoute(previous, route)
+ ) {
+ dirtyRoutes.set(route.id, route);
+ if (
+ (previous?.status === "live" &&
+ route.status !== "live") ||
+ route.id === "observer"
+ )
+ urgent.push(route);
+ }
+ }
+ for (const id of knownRoutes.keys())
+ if (!next.has(id)) {
+ dirtyRoutes.set(id, null);
+ if (id.startsWith("channel:"))
+ pendingEstablished.delete(id.slice(8));
+ }
+ for (let offset = 0; offset < urgent.length; offset += 512) {
+ const routes = urgent.slice(offset, offset + 512);
+ for (const route of routes) dirtyRoutes.delete(route.id);
+ write("state-delta", {
+ ...deltaHeader,
+ routes,
+ removed: [],
+ });
+ }
+ if (knownRoutes.has("observer") && !next.has("observer")) {
+ dirtyRoutes.delete("observer");
+ write("state-delta", {
+ ...deltaHeader,
+ routes: [],
+ removed: ["observer"],
+ });
+ }
+ knownRoutes = next;
+ if (!res.writableNeedDrain) flushDeltas();
+ }
+ : writeLegacyState;
+ const flushState = statusDeltas ? flushDeltas : flushLegacyState;
res.on("drain", flushState);
const stream = {
relay,
@@ -1873,13 +2200,31 @@ export function relayBrokerPlugin({
...state,
interestRevision: stream.interestRevision,
}),
- established: (channelId) =>
- write("established", {
- ...(Array.isArray(channelId)
- ? { channels: channelId }
- : { channelId }),
- interestRevision: stream.interestRevision,
- }),
+ established: (channelId, global, continuous) => {
+ if (statusDeltas && channelId !== undefined) {
+ for (const id of typeof channelId === "string"
+ ? [channelId]
+ : channelId)
+ pendingEstablished.set(id, {
+ interestRevision: stream.interestRevision,
+ singleton: typeof channelId === "string",
+ // A coalesced establishment is continuous only if
+ // every one it replaces was too.
+ continuous:
+ !!continuous?.includes(id) &&
+ (pendingEstablished.get(id)?.continuous ?? true),
+ });
+ if (!res.writableNeedDrain) flushDeltas();
+ } else
+ write("established", {
+ ...(Array.isArray(channelId)
+ ? { channels: channelId }
+ : { channelId }),
+ ...(global ? { global } : {}),
+ ...(continuous ? { continuous } : {}),
+ interestRevision: stream.interestRevision,
+ });
+ },
recover: () => write("recover", {}),
denied: (channelId, reason) =>
write("denied", {
@@ -1908,6 +2253,9 @@ export function relayBrokerPlugin({
closed = true;
principal.streams--;
pendingState = undefined;
+ dirtyRoutes.clear();
+ pendingEstablished.clear();
+ knownRoutes.clear();
res.off("drain", flushState);
traffic.dispose();
clearInterval(keepAlive);
@@ -2000,7 +2348,7 @@ export function relayBrokerPlugin({
cancel.signal,
AbortSignal.timeout(UPLOAD_TIMEOUT_MS),
]);
- const upstream = await fetchUpstream(target, {
+ const init = {
headers: {
Authorization:
"Nostr " +
@@ -2009,7 +2357,20 @@ export function relayBrokerPlugin({
},
redirect: "error",
signal: mediaDeadline,
- });
+ };
+ let upstream = await fetchUpstream(target, init);
+ // Relays before WebP thumbnails, and images uploaded before them,
+ // have only the `.thumb.jpg` that every relay writes.
+ if (
+ upstream.status === 404 &&
+ target.pathname.endsWith(".thumb.webp")
+ ) {
+ await upstream.body?.cancel();
+ upstream = await fetchUpstream(
+ new URL(target.href.replace(/\.thumb\.webp$/, ".thumb.jpg")),
+ init,
+ );
+ }
stats.media++;
if (!upstream.ok) {
await upstream.body?.cancel();
@@ -2119,8 +2480,9 @@ export function relayBrokerPlugin({
return json(res, 404, { error: "Unknown broker route" });
const memory = route === "/api/relay/agent-memories";
const presence = route === "/api/relay/presence-snapshot";
- // Only NIP-AP catalog events may exceed the ordinary body bound.
- const catalogWrite =
+ // Only NIP-AP catalog and Canvas events may exceed the ordinary
+ // body bound, each up to its own complete-event bound.
+ const largeWrite =
route === "/api/relay/sign" || route === "/api/relay/publish";
let raw = "";
const uploadDeadline = memory
@@ -2133,7 +2495,10 @@ export function relayBrokerPlugin({
if (
presence
? Buffer.byteLength(raw) > 20 * 1024
- : raw.length > (catalogWrite ? CATALOG_EVENT_BYTES : 65536)
+ : raw.length >
+ (largeWrite
+ ? Math.max(CATALOG_EVENT_BYTES, CANVAS_MAX_EVENT_BYTES)
+ : 65536)
)
return json(res, 413, { error: "Filter body too large" });
}
@@ -2148,8 +2513,15 @@ export function relayBrokerPlugin({
}
if (
raw.length > 65536 &&
- (!isCatalogKind(filters?.kind) ||
- Buffer.byteLength(raw) > CATALOG_EVENT_BYTES)
+ !(
+ largeWrite &&
+ Buffer.byteLength(raw) <=
+ (isCatalogKind(filters?.kind)
+ ? CATALOG_EVENT_BYTES
+ : filters?.kind === 40100
+ ? CANVAS_MAX_EVENT_BYTES
+ : 0)
+ )
)
return json(res, 413, { error: "Filter body too large" });
let memoryAgent;
@@ -2480,7 +2852,6 @@ export function relayBrokerPlugin({
!filters.name.trim() ||
filters.name.length > 100 ||
typeof filters?.picture !== "string" ||
- filters.picture.length > 2048 ||
!validProfilePicture(filters.picture) ||
(filters.about !== undefined &&
(typeof filters.about !== "string" ||
@@ -2676,7 +3047,10 @@ export function relayBrokerPlugin({
throw new Error("Expired operation");
if (filters.kind === 30078)
admitChannelKit(filters, key, relay);
- else if (!validCanvas(filters))
+ else if (
+ !validCanvas(filters) ||
+ (!signing && !canvasEventFits(filters))
+ )
throw new Error("Invalid Canvas");
} catch {
return json(res, 400, {
@@ -2748,6 +3122,13 @@ export function relayBrokerPlugin({
},
key,
);
+ // The relay limits the complete event, which escaping and the
+ // id, pubkey and sig make larger than its content.
+ if (event.kind === 40100 && !canvasEventFits(event))
+ return json(res, 400, {
+ error: "Relay event is too large",
+ sent: false,
+ });
res.setHeader(
"Server-Timing",
`sign;dur=${(performance.now() - started).toFixed(2)}`,
@@ -2809,6 +3190,18 @@ export function relayBrokerPlugin({
const conflict =
failure?.sent === false &&
failure.refusal?.startsWith("conflict:");
+ // Answer a proven validation refusal as the relay's HTTP API does,
+ // 400 with its bounded text, so every publish path shows the same
+ // reason. The text goes to this client only, never to the log.
+ if (
+ failure?.sent === false &&
+ failure.reason?.startsWith("invalid:") &&
+ !(
+ readPublishing &&
+ failure.refusal === READ_STATE_TIMESTAMP_REFUSAL
+ )
+ )
+ return json(res, 400, { error: failure.reason });
return json(res, conflict ? 409 : 503, {
error:
failure?.sent === false &&
@@ -2857,12 +3250,12 @@ export function relayBrokerPlugin({
}
presenceFlight = true;
}
- if (!presence && inflight >= MAX_INFLIGHT)
+ if (!presence && (inflight.get(relay) ?? 0) >= MAX_INFLIGHT)
return json(res, 429, {
error: "Query concurrency limit",
sent: false,
});
- if (!presence) inflight++;
+ if (!presence) inflight.set(relay, (inflight.get(relay) ?? 0) + 1);
try {
const body = workflowPath ? undefined : JSON.stringify(filters);
const admissionStart = performance.now();
@@ -2927,7 +3320,7 @@ export function relayBrokerPlugin({
};
response = presence
? await request()
- : await admittedApiRequest(
+ : await admittedRelayRequest(
lane,
request,
requestSignal,
@@ -3024,7 +3417,11 @@ export function relayBrokerPlugin({
if (presence) {
presenceFlight = false;
releasePresence();
- } else inflight--;
+ } else {
+ const left = inflight.get(relay) - 1;
+ if (left) inflight.set(relay, left);
+ else inflight.delete(relay);
+ }
}
} catch (error) {
if (res.destroyed) return; // The browser gave up first; nothing to answer.
diff --git a/browser-host/sidebar-sort.mjs b/browser-host/sidebar-sort.mjs
index 46590918da..9bf6288b03 100644
--- a/browser-host/sidebar-sort.mjs
+++ b/browser-host/sidebar-sort.mjs
@@ -114,7 +114,7 @@ function sectionChoice(coordinate, validIntent, edit, field) {
intent.group,
intent.mode,
now,
- intent.activeWindowSeconds,
+ field === "filters" ? intent.activeWindowSeconds : undefined,
);
const projected = project(blob, intent.sectionIds);
if (Buffer.byteLength(JSON.stringify(blob)) > 128 * 1024)
@@ -163,8 +163,22 @@ function sectionChoice(coordinate, validIntent, edit, field) {
await publish(draft.event);
// This checks only the requested group now, not whether the whole-blob write
// lost another device's intervening change to an unrelated group.
- const confirmation = prepare(await readHead(), intent, secret);
- if (confirmation.event)
+ const heads = await readHead();
+ const confirmation =
+ field === "sort"
+ ? {
+ groups:
+ project(
+ parseHead(heads, secret, intent.sectionIds).blob,
+ intent.sectionIds,
+ ).sort ?? {},
+ }
+ : prepare(heads, intent, secret);
+ if (
+ field === "sort"
+ ? (confirmation.groups[intent.group] ?? "alpha") !== intent.mode
+ : confirmation.event
+ )
throw new Error(
`Sidebar ${label} changed on another device; reload and try again`,
);
diff --git a/browser-host/sidebar-sort.test.mjs b/browser-host/sidebar-sort.test.mjs
index aa85e372f5..06bb731e22 100644
--- a/browser-host/sidebar-sort.test.mjs
+++ b/browser-host/sidebar-sort.test.mjs
@@ -13,6 +13,7 @@ import {
mutateSidebarFilter,
} from "./sidebar-sort.mjs";
import { projectSidebarPreferences } from "../src/features/relay/sidebar-preferences.ts";
+import { editSidebarRecord } from "../src/features/relay/sidebar-registers.ts";
function harness() {
const secret = generateSecretKey(),
viewer = getPublicKey(secret);
@@ -38,6 +39,105 @@ function harness() {
};
}
const intent = { group: "section:work", mode: "recent", sectionIds: ["work"] };
+it.each([undefined, "alpha", "recent"])(
+ "encrypts plugin choices from legacy %s without putting them in legacy sort fields and confirms reloads",
+ async (initialMode) => {
+ const h = harness();
+ const mode = "plugin:example.plugin/rows/reverse";
+ let head = h.encrypt({
+ version: 1,
+ groups: {
+ dms: "recent",
+ ...(initialMode ? { channels: initialMode } : {}),
+ },
+ });
+ const publish = vi.fn(async (event) => {
+ head = event;
+ });
+ const choose = (selected) =>
+ mutateSidebarSort(
+ { group: "channels", mode: selected, sectionIds: [] },
+ h.secret,
+ async () => [head],
+ publish,
+ );
+ expect(await choose(mode)).toEqual({ channels: mode, dms: "recent" });
+ expect(h.decode(head).groups).toEqual({ channels: "alpha", dms: "recent" });
+ expect(h.decode(head).meta.g.channels[2]).toBe("alpha");
+ expect(await choose(mode)).toEqual({ channels: mode, dms: "recent" });
+ expect(publish).toHaveBeenCalledOnce();
+ expect(await choose("alpha")).toEqual({ dms: "recent" });
+ expect(publish).toHaveBeenCalledTimes(2);
+ },
+);
+it.each(["dms", "channels"])(
+ "confirms only the requested plugin sort when an older client changes %s",
+ async (changedGroup) => {
+ const h = harness();
+ const mode = "plugin:example.plugin/rows/reverse";
+ let head = prepareSidebarSort(
+ [],
+ { group: "dms", mode, sectionIds: [] },
+ h.secret,
+ 100_000,
+ ).event;
+ const publish = vi.fn(async (event) => {
+ const updated = editSidebarRecord(
+ "channel-sort",
+ h.decode(event),
+ event.created_at,
+ [[["g", changedGroup], "recent"]],
+ event.created_at * 1000 + 1,
+ );
+ head = h.encrypt(updated, { created_at: event.created_at + 1 });
+ });
+ const saved = mutateSidebarSort(
+ { group: "channels", mode, sectionIds: [] },
+ h.secret,
+ async () => [head],
+ publish,
+ );
+ if (changedGroup === "dms")
+ await expect(saved).resolves.toEqual({ channels: mode, dms: "recent" });
+ else await expect(saved).rejects.toThrow("changed on another device");
+ expect(publish).toHaveBeenCalledOnce();
+ expect(
+ projectSidebarPreferences(undefined, undefined, undefined, h.decode(head))
+ .sort,
+ ).toEqual(
+ changedGroup === "dms"
+ ? { channels: mode, dms: "recent" }
+ : { channels: "recent", dms: mode },
+ );
+ },
+);
+it("preserves another device's plugin choice when the writer has a stale section list", async () => {
+ const h = harness();
+ const mode = "plugin:example.plugin/rows/reverse";
+ let head = prepareSidebarSort(
+ [],
+ { group: "section:new", mode, sectionIds: ["new"] },
+ h.secret,
+ 100_000,
+ ).event;
+ const saved = h.decode(head).pluginSort;
+ expect(
+ await mutateSidebarSort(
+ { group: "channels", mode: "recent", sectionIds: [] },
+ h.secret,
+ async () => [head],
+ async (event) => {
+ head = event;
+ },
+ ),
+ ).toEqual({ channels: "recent" });
+ const current = h.decode(head);
+ expect(current.pluginSort).toEqual(saved);
+ expect(
+ projectSidebarPreferences(undefined, undefined, undefined, current, ["new"])
+ .sort,
+ ).toEqual({ channels: "recent", "section:new": mode });
+});
it("mutates only the selected register, imports recognized legacy modes, and encodes alpha as a tombstone", () => {
const h = harness();
const blob = {
diff --git a/browser-host/vite-config.test.mjs b/browser-host/vite-config.test.mjs
index 122ac14d74..a0f1310e6d 100644
--- a/browser-host/vite-config.test.mjs
+++ b/browser-host/vite-config.test.mjs
@@ -1,11 +1,17 @@
import { spawnSync } from "node:child_process";
+import { mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
import { fileURLToPath } from "node:url";
+import { getPublicKey } from "nostr-tools";
+import { createServer } from "vite";
import { expect, it } from "vitest";
+import { relayBrokerPlugin } from "./relay-broker.mjs";
it("loads the broker's Vite config without native-compatibility warnings", () => {
// A fresh Node process exercises real config imports, not Vitest's resolver.
- // Loading config creates the plugin but never invokes configureServer, so it
- // cannot read the Keychain, open a server, or contact a relay.
+ // Loading and resolving config never invoke configureServer, so they cannot
+ // read the Keychain, open a server, or contact a relay.
const result = spawnSync(
process.execPath,
[
@@ -16,7 +22,7 @@ it("loads the broker's Vite config without native-compatibility warnings", () =>
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
- import { loadConfigFromFile } from 'vite';
+ import { loadConfigFromFile, resolveConfig } from 'vite';
const configFile = join(process.cwd(), 'vite.config.ts');
// Load the real config with isolated .env files, never personal settings.
const directory = mkdtempSync(join(tmpdir(), 'buzz-vite-config-'));
@@ -28,6 +34,26 @@ it("loads the broker's Vite config without native-compatibility warnings", () =>
);
assert(loaded?.config.plugins.some(p => p?.name === 'buzz-relay-broker'));
assert.equal(loaded.config.define['import.meta.env.VITE_BUZZ_LIVE'], '"1"');
+ // Inline server options are how Vite applies CLI --host overrides.
+ // Resolve the real config without opening any listener or reading credentials.
+ for (const host of [undefined, false, 'localhost', '127.0.0.1', '::1']) {
+ await resolveConfig({ configFile, server: { host } }, 'serve');
+ }
+ const unsafeHosts = [true, '0.0.0.0', '::', '', '192.0.2.1', 'dev.example'];
+ for (const host of unsafeHosts) {
+ await assert.rejects(
+ resolveConfig({ configFile, server: { host } }, 'serve'),
+ /requires a loopback-only Vite listener/,
+ );
+ }
+ // Unpinned fixture servers and packaged builds do not load a signer.
+ process.env.BUZZ_DEV_VIEWER = '';
+ const fixture = await resolveConfig({ configFile, server: { host: true } }, 'serve');
+ assert(!fixture.plugins.some(p => p.name === 'buzz-relay-broker'));
+ assert.equal(fixture.server.host, true);
+ process.env.BUZZ_DEV_VIEWER = 'a'.repeat(64);
+ const packaged = await resolveConfig({ configFile, server: { host: true } }, 'build');
+ assert(!packaged.plugins.some(p => p.name === 'buzz-relay-broker'));
for (const command of ['serve', 'build']) {
for (const setting of [undefined, '', '0', '1', 'true', 'invalid']) {
if (setting === undefined) delete process.env.BUZZ_DEV_NOTIFICATIONS;
@@ -139,6 +165,49 @@ it("loads the broker's Vite config without native-compatibility warnings", () =>
);
}
delete process.env.BUZZ_DATABRICKS_HOST;
+ // Mobile app store listings reach the mobile card verbatim; invalid
+ // links fail the build without echoing credentials.
+ const mobileApps = ['BUZZ_MOBILE_APP_IOS_URL', 'BUZZ_MOBILE_APP_ANDROID_URL'];
+ for (const [link, expected] of [[' https://apps.example.com/buzz ', 'https://apps.example.com/buzz'], [undefined, '']]) {
+ for (const name of mobileApps) {
+ if (link === undefined) delete process.env[name];
+ else process.env[name] = link;
+ }
+ const result = await loadConfigFromFile({ command: 'build', mode: 'production' }, configFile);
+ for (const name of mobileApps)
+ assert.equal(result.config.define['import.meta.env.VITE_' + name], JSON.stringify(expected));
+ }
+ for (const [name, invalid] of [[mobileApps[0], 'https://user:secret@apps.example.com'], [mobileApps[1], 'http://apps.example.com']]) {
+ process.env[name] = invalid;
+ await assert.rejects(
+ loadConfigFromFile({ command: 'build', mode: 'production' }, configFile),
+ error => !String(error).includes('secret') && String(error).includes(name),
+ );
+ delete process.env[name];
+ }
+ // Recommended agent candidates reach the frontend as validated;
+ // unset (every OSS build) leaves no recommendation.
+ const candidates = '[{"harness":"codex","model":"model-a","effort":"high","label":"Model A"},{"harness":"goose","provider":"provider-a","model":"model-b","effort":"high","label":"Model B"}]';
+ for (const [value, expected] of [[candidates, candidates], [' ' + candidates + ' ', candidates], ['', ''], [undefined, '']]) {
+ if (value === undefined) delete process.env.BUZZ_RECOMMENDED_AGENT;
+ else process.env.BUZZ_RECOMMENDED_AGENT = value;
+ const result = await loadConfigFromFile({ command: 'build', mode: 'production' }, configFile);
+ assert.equal(result.config.define['import.meta.env.VITE_BUZZ_RECOMMENDED_AGENT'], JSON.stringify(expected));
+ }
+ for (const invalid of ['{"harness":"goose"}', '[]', '[{"harness":"pi","model":"m","effort":"high","label":"M"}]', '[{"harness":"goose","model":"m","effort":"high","label":"M"}]', '[{"harness":"codex","provider":"p","model":"m","effort":"high","label":"M"}]', 'not json']) {
+ process.env.BUZZ_RECOMMENDED_AGENT = invalid;
+ await assert.rejects(
+ loadConfigFromFile({ command: 'build', mode: 'production' }, configFile),
+ /BUZZ_RECOMMENDED_AGENT/,
+ );
+ }
+ // The build names the candidate and field at fault, not their values.
+ process.env.BUZZ_RECOMMENDED_AGENT = '[{"harness":"codex","model":"m","effort":"high","label":"M"},{"harness":"codex","model":"","effort":"secret","label":"M"}]';
+ await assert.rejects(
+ loadConfigFromFile({ command: 'build', mode: 'production' }, configFile),
+ error => String(error).includes('BUZZ_RECOMMENDED_AGENT[1].model') && !String(error).includes('secret'),
+ );
+ delete process.env.BUZZ_RECOMMENDED_AGENT;
// A fresh checkout uses production for both dev and packaged frontends.
// Explicit empty values retain the deployment opt-out.
for (const local of ['', 'BUZZ_BUILDERLAB_URL=']) {
@@ -180,6 +249,28 @@ it("loads the broker's Vite config without native-compatibility warnings", () =>
);
assert.equal(result.config.define['import.meta.env.VITE_BUZZ_BUILDERLAB_URL'], JSON.stringify(expected));
}
+ // The Apps control plane follows the native build's sources too:
+ // a mode file alone sets nothing, .env.local and process do.
+ delete process.env.BUZZ_BUILDERLAB_URL;
+ const plane = 'import.meta.env.VITE_BUZZ_BUILDERLAB_APPS_CONTROL_PLANE';
+ writeFileSync('.env.local', '');
+ writeFileSync('.env.production', 'BUZZ_BUILDERLAB_APPS_CONTROL_PLANE=https://ctrl.example');
+ const modeOnly = await loadConfigFromFile({ command: 'build', mode: 'production' }, configFile);
+ assert.equal(modeOnly.config.define[plane], JSON.stringify(''));
+ writeFileSync('.env.local', 'BUZZ_BUILDERLAB_APPS_CONTROL_PLANE=https://local.example');
+ const local = await loadConfigFromFile({ command: 'build', mode: 'production' }, configFile);
+ assert.equal(local.config.define[plane], JSON.stringify('https://local.example'));
+ process.env.BUZZ_BUILDERLAB_APPS_CONTROL_PLANE = 'https://process.example';
+ const fromProcess = await loadConfigFromFile({ command: 'build', mode: 'production' }, configFile);
+ assert.equal(fromProcess.config.define[plane], JSON.stringify('https://process.example'));
+ process.env.BUZZ_BUILDERLAB_APPS_CONTROL_PLANE = 'https://process.example/';
+ await assert.rejects(
+ loadConfigFromFile({ command: 'build', mode: 'production' }, configFile),
+ /HTTPS origin/,
+ );
+ delete process.env.BUZZ_BUILDERLAB_APPS_CONTROL_PLANE;
+ writeFileSync('.env.local', '');
+ writeFileSync('.env.production', '');
// The first-run account seed reaches only a dev server, and a
// malformed value fails at configuration time without being echoed.
for (const command of ['serve', 'build']) {
@@ -255,10 +346,57 @@ it("loads the broker's Vite config without native-compatibility warnings", () =>
VITE_CONFIG_NATIVE_IGNORE_WARNING: "",
},
encoding: "utf8",
- timeout: 30_000,
+ timeout: 120_000, // Team: shared CI runners are slower.
},
);
expect(result.error).toBeUndefined();
expect(result.status, result.stderr).toBe(0);
expect(result.stderr).not.toContain("configLoader: 'native'");
-}, 35_000);
+}, 125_000);
+
+it("refuses exposed Vite servers before reading identity and serves the broker on loopback", async () => {
+ const directory = mkdtempSync(join(tmpdir(), "buzz-broker-listener-"));
+ const key = new Uint8Array(32).fill(1);
+ let identityReads = 0;
+ const options = (host) => ({
+ root: directory,
+ configFile: false,
+ logLevel: "silent",
+ optimizeDeps: { noDiscovery: true, include: [] },
+ server: { host, port: 0, watch: null, hmr: false },
+ plugins: [
+ relayBrokerPlugin({
+ archiveFile: ":memory:",
+ identity: () => {
+ identityReads++;
+ return key.slice();
+ },
+ }),
+ ],
+ });
+ try {
+ // Real Vite server construction, without listen(), is safe even pre-fix.
+ // A rejected config must never reach the broker's credential loader.
+ await expect(async () => {
+ const server = await createServer(options(true));
+ await server.close();
+ }).rejects.toThrow("requires a loopback-only Vite listener");
+ expect(identityReads).toBe(0);
+ const server = await createServer(options("127.0.0.1"));
+ try {
+ expect(identityReads).toBe(1);
+ await server.listen();
+ const address = server.httpServer.address();
+ expect(address.address).toBe("127.0.0.1");
+ const response = await fetch(
+ `http://127.0.0.1:${address.port}/api/relay/identity`,
+ );
+ expect(response.status).toBe(200);
+ expect(await response.json()).toEqual({ viewer: getPublicKey(key) });
+ } finally {
+ await server.close();
+ }
+ } finally {
+ rmSync(directory, { recursive: true, force: true });
+ }
+});
diff --git a/browser-host/workflow-broker.test.mjs b/browser-host/workflow-broker.test.mjs
index 01c6b82282..3c3fd9fe21 100644
--- a/browser-host/workflow-broker.test.mjs
+++ b/browser-host/workflow-broker.test.mjs
@@ -229,7 +229,7 @@ it("real broker scoped history signs exact GET path/cursor and captured principa
expect(h.calls).toHaveLength(0);
expect(first.writer.kinds).toEqual([
30315, 30030, 7, 9, 40003, 42000, 9000, 9001, 30078, 30175, 30177, 30178,
- 40100, 1984, 45010, 30620, 46020, 5,
+ 40100, 1984, 30620, 46020, 5,
]);
await first.workflows.runs(id, cursor, signal());
await other.workflows.runs(id, undefined, signal());
@@ -397,7 +397,7 @@ it("existing backend signs only canonical workflow sign/publish with exact own e
live = await openBrokerSocket(t);
expect(t.writer.kinds).toEqual([
30315, 30030, 7, 9, 40003, 42000, 9000, 9001, 30078, 30175, 30177, 30178,
- 40100, 1984, 45010, 30620, 46020, 5,
+ 40100, 1984, 30620, 46020, 5,
]);
for (const input of [
template(),
@@ -411,6 +411,14 @@ it("existing backend signs only canonical workflow sign/publish with exact own e
["a", `30620:${h.viewer}:${id}`],
],
},
+ // The human signs an agent-targeted deletion; the relay checks ownership.
+ {
+ ...template(5),
+ tags: [
+ ["h", runId],
+ ["a", `30620:${"a".repeat(64)}:${id}`],
+ ],
+ },
]) {
const event = await t.writer.sign(input, signal());
expect(verifyEvent(event)).toBe(true);
@@ -421,7 +429,7 @@ it("existing backend signs only canonical workflow sign/publish with exact own e
expect(await t.writer.publish(event, signal())).toBe("workflow-result");
expect(h.publications.at(-1)).toEqual(JSON.parse(JSON.stringify(event)));
}
- expect(h.publications).toHaveLength(4);
+ expect(h.publications).toHaveLength(5);
expect(h.calls).toHaveLength(0);
} finally {
live?.dispose();
@@ -462,12 +470,12 @@ const invalidCommands = [
}),
],
[
- "other owner",
+ "malformed owner",
() => ({
...template(5),
tags: [
["h", runId],
- ["a", `30620:${"a".repeat(64)}:${id}`],
+ ["a", `30620:invalid:${id}`],
],
}),
],
diff --git a/compute-widget.html b/compute-widget.html
new file mode 100644
index 0000000000..47c20171e6
--- /dev/null
+++ b/compute-widget.html
@@ -0,0 +1,8 @@
+Compute
diff --git a/crates/agent-command/Cargo.toml b/crates/agent-command/Cargo.toml
index c5f461ba64..b039a290a0 100644
--- a/crates/agent-command/Cargo.toml
+++ b/crates/agent-command/Cargo.toml
@@ -5,8 +5,15 @@ edition = "2021"
license = "Apache-2.0"
[dependencies]
-reqwest = { version = "0.13", default-features = false }
+http-body-util = "0.1"
+hyper = { version = "1", features = ["client", "http1"] }
+hyper-util = { version = "0.1", features = ["tokio"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
+sha2 = "0.10"
tempfile = "3"
-tokio = { version = "1", features = ["rt", "net", "time"] }
+tokio = { version = "1", features = ["rt", "net", "time", "process", "io-util"] }
+url = "2"
+
+[target.'cfg(unix)'.dependencies]
+libc = "0.2"
diff --git a/crates/agent-command/src/lifetime.rs b/crates/agent-command/src/lifetime.rs
new file mode 100644
index 0000000000..eab695a14d
--- /dev/null
+++ b/crates/agent-command/src/lifetime.rs
@@ -0,0 +1,63 @@
+//! Attention commands belong to one app process and one saved watch across builds.
+use crate::{private_directory, Result};
+use sha2::{Digest, Sha256};
+use std::fs::{File, OpenOptions};
+use std::os::fd::AsRawFd;
+use std::os::unix::fs::{MetadataExt, OpenOptionsExt};
+use std::time::Duration;
+
+pub(super) fn watch() -> Result