diff --git a/.github/actions/setup-bun/action.yml b/.github/actions/setup-bun/action.yml index 92bddf7f53..f3b5313a38 100644 --- a/.github/actions/setup-bun/action.yml +++ b/.github/actions/setup-bun/action.yml @@ -20,8 +20,6 @@ runs: shell: bash run: | V=$(node -p "require('./package.json').packageManager.split('@')[1]") - # Bun 1.4.2 includes the patched peer-variant fix in oven-sh/bun#33646. - if [ "$RUNNER_OS" = "Windows" ]; then V=1.4.2; fi echo "version=$V" >> "$GITHUB_OUTPUT" if [ "$RUNNER_ARCH" = "X64" ]; then case "$RUNNER_OS" in diff --git a/.github/actions/setup-git-committer/action.yml b/.github/actions/setup-git-committer/action.yml deleted file mode 100644 index 65c974c6ab..0000000000 --- a/.github/actions/setup-git-committer/action.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: "Setup Git Committer" -description: "Create app token and configure git user" -inputs: - opencode-app-id: - description: "OpenCode GitHub App ID" - required: true - opencode-app-secret: - description: "OpenCode GitHub App private key" - required: true -outputs: - token: - description: "GitHub App token" - value: ${{ steps.apptoken.outputs.token }} - app-slug: - description: "GitHub App slug" - value: ${{ steps.apptoken.outputs.app-slug }} -runs: - using: "composite" - steps: - - name: Create app token - id: apptoken - uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2 - with: - app-id: ${{ inputs.opencode-app-id }} - private-key: ${{ inputs.opencode-app-secret }} - owner: ${{ github.repository_owner }} - - - name: Configure git user - run: | - slug="${{ steps.apptoken.outputs.app-slug }}" - git config --global user.name "${slug}[bot]" - git config --global user.email "${slug}[bot]@users.noreply.github.com" - shell: bash - - - name: Clear checkout auth - run: | - git config --local --unset-all http.https://github.com/.extraheader || true - shell: bash - - - name: Configure git remote - run: | - git remote set-url origin https://x-access-token:${{ steps.apptoken.outputs.token }}@github.com/${{ github.repository }} - shell: bash diff --git a/.github/nix-hashes/publish.sh b/.github/nix-hashes/publish.sh new file mode 100644 index 0000000000..9cea85c263 --- /dev/null +++ b/.github/nix-hashes/publish.sh @@ -0,0 +1,66 @@ +#!/usr/bin/env bash +# publish.sh : run from a checkout of v1. Puts on bot/v1-nix-hashes as one commit on top of v1, +# opens or updates the pull request into v1, dispatches its required checks and enables auto-merge. Closes the pull +# request instead when v1 already has these hashes. Uses git, gh and jq only; never runs repository code. +set -euo pipefail + +here=$(cd "$(dirname "$0")" && pwd) +new=$(realpath "$1") +branch=bot/v1-nix-hashes +file=nix/hashes.json +title="chore: update nix node_modules hashes" +: "${GH_REPO:?}" "${GITHUB_SHA:?}" +git=(git -c core.hooksPath=/dev/null -c user.name='github-actions[bot]' -c user.email='41898282+github-actions[bot]@users.noreply.github.com') + +bash "$here/validate.sh" "$new" + +"${git[@]}" fetch --no-tags --depth=1 origin "+refs/heads/v1:refs/remotes/origin/v1" "$GITHUB_SHA" + +# A newer push that changed the inputs has its own run, which publishes hashes for it. Mirrors on.push.paths. +if ! git diff --quiet "$GITHUB_SHA" origin/v1 -- bun.lock package.json ':(glob)packages/*/package.json' \ + flake.lock nix/node_modules.nix nix/scripts patches; then + echo "::notice::v1 changed the hash inputs since $GITHUB_SHA; leaving it to the newer run" + exit 0 +fi + +# Only a same-repository pull request is the bot's; a fork can use the same branch name. +find_pr() { + gh pr list --repo "$GH_REPO" --base v1 --head "$branch" --state open --json number,isCrossRepository \ + --jq 'map(select(.isCrossRepository | not)) | .[0].number // empty' +} +pr=$(find_pr) + +"${git[@]}" checkout -B "$branch" origin/v1 +if cmp -s "$new" "$file"; then + echo "v1 already has these hashes" + if [ -n "$pr" ]; then + gh pr close "$pr" --repo "$GH_REPO" --delete-branch --comment "v1 already has these hashes." + fi + exit 0 +fi + +cp "$new" "$file" +bash "$here/validate.sh" "$file" +"${git[@]}" add -- "$file" +"${git[@]}" commit --no-verify -m "$title" +[ "$(git diff --name-only origin/v1 HEAD)" = "$file" ] || { + echo "::error::the commit changes more than $file" >&2 + exit 1 +} +"${git[@]}" push --no-verify --force origin "HEAD:refs/heads/$branch" + +if [ -z "$pr" ]; then + gh pr create --repo "$GH_REPO" --base v1 --head "$branch" --title "$title" \ + --body "Updates \`$file\` to the node_modules hashes computed for $GITHUB_SHA by bot-nix-hashes. check-bot-scope keeps this branch to that file." + pr=$(find_pr) +fi + +# Pushes and pull requests made with GITHUB_TOKEN start no workflows; dispatches do. These produce v1's pull request +# checks on the new head. +for workflow in typecheck.yml test.yml nix-eval.yml check-bot-scope.yml; do + gh workflow run "$workflow" --repo "$GH_REPO" --ref "$branch" +done + +gh pr merge "$pr" --repo "$GH_REPO" --auto --squash +echo "### Nix hashes" >> "${GITHUB_STEP_SUMMARY:-/dev/null}" +echo "Updated pull request #$pr" >> "${GITHUB_STEP_SUMMARY:-/dev/null}" diff --git a/.github/nix-hashes/validate.sh b/.github/nix-hashes/validate.sh new file mode 100644 index 0000000000..59a7abf1dd --- /dev/null +++ b/.github/nix-hashes/validate.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +# validate.sh : fails unless has exactly the shape of nix/hashes.json, so the hashes bot can only ever publish +# three SRI hashes. Used by bot-nix-hashes.yml before it commits and by check-bot-scope.yml on the bot's pull request. +# Adding a system to the flake means adding it to SYSTEMS here. +set -euo pipefail + +file=${1:?usage: validate.sh } +SYSTEMS='["aarch64-darwin","aarch64-linux","x86_64-linux"]' + +fail() { + echo "::error::$file: $*" >&2 + exit 1 +} + +if [ ! -f "$file" ] || [ -L "$file" ]; then fail "not a regular file"; fi +[ "$(wc -c < "$file")" -lt 4096 ] || fail "4096 bytes or larger" +jq -se 'length == 1' "$file" > /dev/null 2>&1 || fail "not a single JSON value" +jq -e --argjson systems "$SYSTEMS" ' + type == "object" + and keys == ["nodeModules"] + and (.nodeModules | type == "object") + and (.nodeModules | keys == $systems) + and (.nodeModules | all(.[]; type == "string" and test("\\Asha256-[A-Za-z0-9+/]{43}=\\z"))) +' "$file" > /dev/null || fail "expected {\"nodeModules\": {<$SYSTEMS>: \"sha256-<44 base64 chars>\"}}" +# The canonical form rules out duplicate keys and anything else jq would drop on parse. +jq . "$file" | cmp -s - "$file" || fail "not formatted as jq . prints it" +echo "$file: valid" diff --git a/.github/workflows/bot-nix-hashes.yml b/.github/workflows/bot-nix-hashes.yml new file mode 100644 index 0000000000..13337383b6 --- /dev/null +++ b/.github/workflows/bot-nix-hashes.yml @@ -0,0 +1,202 @@ +name: bot-nix-hashes + +# Keeps nix/hashes.json in step with the lockfile through a pull request, using only GITHUB_TOKEN. +# - hash and compute run repository code (nix build) with a read-only token and no secrets. compute uploads only the +# new nix/hashes.json. +# - publish holds the write token. It runs only .github/nix-hashes/ from this commit, treats the artifact as data, +# validates its exact shape and commits only that file to bot/v1-nix-hashes. It never runs repository code. +# - check-bot-scope.yml, a required check, fails the bot's pull request unless it changes only a valid nix/hashes.json, +# so a tampered branch cannot auto-merge once v1 requires that check. +# This file, check-bot-scope.yml and .github/nix-hashes/ are the security boundary. + +permissions: + contents: read + +on: + workflow_dispatch: + push: + branches: [v1] + # Mirrored in .github/nix-hashes/publish.sh. + paths: + - "bun.lock" + - "package.json" + - "packages/*/package.json" + - "flake.lock" + - "nix/node_modules.nix" + - "nix/scripts/**" + - "patches/**" + - ".github/workflows/bot-nix-hashes.yml" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + # Native runners required: bun install cross-compilation flags (--os/--cpu) + # do not produce byte-identical node_modules as native installs. + hash: + strategy: + fail-fast: false + matrix: + include: + - system: x86_64-linux + runner: blacksmith-4vcpu-ubuntu-2404 + - system: aarch64-linux + runner: blacksmith-4vcpu-ubuntu-2404-arm + - system: aarch64-darwin + runner: macos-latest + runs-on: ${{ matrix.runner }} + + steps: + - name: Checkout repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Setup Nix + uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34 + + - name: Compute node_modules hash + id: hash + env: + SYSTEM: ${{ matrix.system }} + run: | + set -euo pipefail + + BUILD_LOG=$(mktemp) + trap 'rm -f "$BUILD_LOG"' EXIT + + HASH="" + MAX_ATTEMPTS=3 + for ((ATTEMPT = 1; ATTEMPT <= MAX_ATTEMPTS; ATTEMPT++)); do + # Build with fakeHash to trigger hash mismatch and reveal correct hash + nix build ".#packages.${SYSTEM}.node_modules_updater" --no-link 2>&1 | tee "$BUILD_LOG" || true + + HASH="$(nix run --inputs-from . nixpkgs#gnugrep -- -oP 'got:\s*\Ksha256-[A-Za-z0-9+/=]+' "$BUILD_LOG" | tail -n1 || true)" + + [ -n "$HASH" ] && break + + if [ "$ATTEMPT" -lt "$MAX_ATTEMPTS" ]; then + echo "::warning::Attempt ${ATTEMPT}/${MAX_ATTEMPTS} produced no hash for ${SYSTEM}; retrying in $((ATTEMPT * 10))s" + sleep $((ATTEMPT * 10)) + fi + done + + if [ -z "$HASH" ]; then + echo "::error::Failed to compute hash for ${SYSTEM} after ${MAX_ATTEMPTS} attempts" + cat "$BUILD_LOG" + exit 1 + fi + + echo "$HASH" > hash.txt + echo "Computed hash for ${SYSTEM}: $HASH" + + - name: Upload hash + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: hash-${{ matrix.system }} + path: hash.txt + retention-days: 1 + + # Assembles nix/hashes.json from the per-system hashes and uploads it as the only input publish accepts. + compute: + needs: hash + runs-on: ubuntu-24.04 + outputs: + changed: ${{ steps.update.outputs.changed }} + + steps: + - name: Checkout repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + persist-credentials: false + + - name: Download hash artifacts + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + path: ${{ runner.temp }}/hashes + pattern: hash-* + + - name: Update hashes.json + id: update + env: + HASHES: ${{ runner.temp }}/hashes + run: | + set -euo pipefail + + HASH_FILE="nix/hashes.json" + + [ -f "$HASH_FILE" ] || echo '{"nodeModules":{}}' > "$HASH_FILE" + + for SYSTEM in x86_64-linux aarch64-linux aarch64-darwin; do + HASH="$(tr -d '[:space:]' < "$HASHES/hash-${SYSTEM}/hash.txt")" + echo "${SYSTEM}: ${HASH}" + jq --arg sys "$SYSTEM" --arg h "$HASH" '.nodeModules[$sys] = $h' "$HASH_FILE" > tmp.json + mv tmp.json "$HASH_FILE" + done + + cat "$HASH_FILE" + bash .github/nix-hashes/validate.sh "$HASH_FILE" + + if git diff --quiet -- "$HASH_FILE"; then + echo "changed=false" >> "$GITHUB_OUTPUT" + echo "### Nix hashes" >> "$GITHUB_STEP_SUMMARY" + echo "Status: no changes" >> "$GITHUB_STEP_SUMMARY" + else + echo "changed=true" >> "$GITHUB_OUTPUT" + echo "### Nix hashes" >> "$GITHUB_STEP_SUMMARY" + echo "Status: changed" >> "$GITHUB_STEP_SUMMARY" + fi + + - name: Upload hashes.json + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: nix-hashes + path: nix/hashes.json + if-no-files-found: error + retention-days: 1 + + # Runs even when compute found no change, so an open bot pull request with stale hashes is closed, not merged. + publish: + needs: compute + if: github.repository == 'anomalyco/opencode' && github.ref == 'refs/heads/v1' + runs-on: ubuntu-24.04 + concurrency: + group: bot-nix-hashes-publish-v1 + cancel-in-progress: false + permissions: + contents: write + pull-requests: write + actions: write + + steps: + - name: Check out publish scripts + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + ref: ${{ github.sha }} + path: trusted + sparse-checkout: /.github/nix-hashes/ + sparse-checkout-cone-mode: false + persist-credentials: false + + # Holds the push credential; only nix/hashes.json is checked out and nothing in it runs. + - name: Check out v1 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + ref: v1 + path: repo + sparse-checkout: /nix/hashes.json + sparse-checkout-cone-mode: false + + - name: Download hashes.json + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: nix-hashes + path: ${{ runner.temp }}/nix-hashes + + - name: Publish + working-directory: repo + run: bash ../trusted/.github/nix-hashes/publish.sh "$RUNNER_TEMP/nix-hashes/hashes.json" + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} diff --git a/.github/workflows/check-bot-scope.yml b/.github/workflows/check-bot-scope.yml new file mode 100644 index 0000000000..d80289a865 --- /dev/null +++ b/.github/workflows/check-bot-scope.yml @@ -0,0 +1,63 @@ +name: check-bot-scope + +# Meant to be required on v1. bot-nix-hashes.yml pushes bot/v1-nix-hashes and auto-merges its pull request without review, so this +# fails that branch unless it changes nothing but a valid nix/hashes.json. Every other branch passes. The bot's own +# pushes start no workflows, so bot-nix-hashes.yml dispatches this; pull_request covers anyone else pushing the branch. + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + bot-scope: + name: bot-scope + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - name: Check branch + id: branch + env: + HEAD_REF: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }} + run: | + if [ "$HEAD_REF" = bot/v1-nix-hashes ]; then + echo "bot=true" >> "$GITHUB_OUTPUT" + else + echo "$HEAD_REF is not a bot branch; nothing to check" + fi + + - name: Checkout repository + if: steps.branch.outputs.bot == 'true' + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + fetch-depth: 0 + filter: blob:none + persist-credentials: false + + - name: Check changed files + if: steps.branch.outputs.bot == 'true' + env: + BASE: ${{ github.base_ref || 'v1' }} + run: | + set -euo pipefail + git fetch --no-tags --filter=blob:none origin "+refs/heads/$BASE:refs/remotes/origin/$BASE" + changed=$(git diff --name-only "origin/$BASE...HEAD") + echo "Changed files:" + echo "$changed" + if [ "$changed" != nix/hashes.json ]; then + echo "::error::bot/v1-nix-hashes may change only nix/hashes.json" + exit 1 + fi + + # Runs v1's validator: the step above proved this branch leaves .github/ unchanged. + - name: Validate nix/hashes.json + if: steps.branch.outputs.bot == 'true' + run: bash .github/nix-hashes/validate.sh nix/hashes.json diff --git a/.github/workflows/compliance-close.yml b/.github/workflows/compliance-close.yml index a83824e5cf..cc09925c5b 100644 --- a/.github/workflows/compliance-close.yml +++ b/.github/workflows/compliance-close.yml @@ -15,7 +15,7 @@ jobs: close-non-compliant: runs-on: ubuntu-latest steps: - - name: Close non-compliant issues and PRs after 2 hours + - name: Close non-compliant issues and PRs after 72 hours uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0 with: script: | @@ -33,7 +33,7 @@ jobs: } const now = Date.now(); - const twoHours = 2 * 60 * 60 * 1000; + const seventyTwoHours = 72 * 60 * 60 * 1000; const orgMemberAssociations = new Set(['OWNER', 'MEMBER']); const agentLogin = 'opencode-agent[bot]'; const { data: file } = await github.rest.repos.getContent({ @@ -87,14 +87,14 @@ jobs: if (!complianceComment) continue; const commentAge = now - new Date(complianceComment.created_at).getTime(); - if (commentAge < twoHours) { - core.info(`${kind} #${item.number} still within 2-hour window (${Math.round(commentAge / 60000)}m elapsed)`); + if (commentAge < seventyTwoHours) { + core.info(`${kind} #${item.number} still within 72-hour window (${Math.round(commentAge / 60000)}m elapsed)`); continue; } const closeMessage = isPR - ? 'This pull request has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window.\n\nFeel free to open a new pull request that follows our guidelines.' - : 'This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window.\n\nFeel free to open a new issue that follows our issue templates.'; + ? 'This pull request has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 72-hour window.\n\nFeel free to open a new pull request that follows our guidelines.' + : 'This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 72-hour window.\n\nFeel free to open a new issue that follows our issue templates.'; await github.rest.issues.createComment({ owner: context.repo.owner, @@ -129,5 +129,5 @@ jobs: }); } - core.info(`Closed non-compliant ${kind} #${item.number} after 2-hour window`); + core.info(`Closed non-compliant ${kind} #${item.number} after 72-hour window`); } diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 15bf078316..6b6d1dc988 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -16,6 +16,7 @@ permissions: jobs: build: + if: github.ref == 'refs/heads/v1' runs-on: blacksmith-4vcpu-ubuntu-2404 env: REGISTRY: ghcr.io/${{ github.repository_owner }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ef977a93bd..1f2f4ced58 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,21 +3,19 @@ name: deploy on: push: branches: - - dev - - production + - v1 workflow_dispatch: concurrency: ${{ github.workflow }}-${{ github.ref }} permissions: contents: read - id-token: write jobs: deploy: - if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production') - runs-on: ubuntu-latest - environment: ${{ github.ref_name }} + if: github.repository == 'anomalyco/opencode' && github.ref_name == 'v1' + runs-on: blacksmith-4vcpu-ubuntu-2404 + environment: v1 steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 @@ -27,23 +25,14 @@ jobs: with: node-version: "24" - - uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1 - with: - role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_ARN }} - role-session-name: opencode-${{ github.run_id }} - aws-region: us-east-1 - - - run: bun sst deploy --stage=${{ github.ref_name }} + # Only the V1 web app (app.opencode.ai) deploys from v1. + - run: bun sst deploy --stage=v1 env: - GITHUB_TOKEN: ${{ github.token }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - PLANETSCALE_SERVICE_TOKEN_NAME: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_NAME }} - PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }} - STRIPE_SECRET_KEY: ${{ github.ref_name == 'production' && secrets.STRIPE_SECRET_KEY_PROD || secrets.STRIPE_SECRET_KEY_DEV }} - HONEYCOMB_API_KEY: ${{ secrets.HONEYCOMB_API_KEY }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_ORG: ${{ vars.SENTRY_ORG }} SENTRY_PROJECT: ${{ vars.WEB_SENTRY_PROJECT }} SENTRY_RELEASE: web@${{ github.sha }} VITE_SENTRY_DSN: ${{ vars.WEB_SENTRY_DSN }} + VITE_SENTRY_ENVIRONMENT: production VITE_SENTRY_RELEASE: web@${{ github.sha }} diff --git a/.github/workflows/docs-locale-sync.yml b/.github/workflows/docs-locale-sync.yml deleted file mode 100644 index 5f921e8bb7..0000000000 --- a/.github/workflows/docs-locale-sync.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: docs-locale-sync - -on: - push: - branches: - - dev - paths: - - packages/web/src/content/docs/*.mdx - -jobs: - sync-locales: - if: false - #if: github.actor != 'opencode-agent[bot]' - runs-on: blacksmith-4vcpu-ubuntu-2404 - permissions: - contents: write - steps: - - name: Checkout repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - with: - persist-credentials: false - fetch-depth: 0 - ref: ${{ github.ref_name }} - - - name: Setup Bun - uses: ./.github/actions/setup-bun - - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - - name: Compute changed English docs - id: changes - run: | - FILES=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" -- ':(glob)packages/web/src/content/docs/*.mdx' || true) - if [ -z "$FILES" ]; then - echo "has_changes=false" >> "$GITHUB_OUTPUT" - echo "No English docs changed in push range" - exit 0 - fi - echo "has_changes=true" >> "$GITHUB_OUTPUT" - { - echo "files<> "$GITHUB_OUTPUT" - - - name: Install OpenCode - if: steps.changes.outputs.has_changes == 'true' - run: curl -fsSL https://opencode.ai/install | bash - - - name: Sync locale docs with OpenCode - if: steps.changes.outputs.has_changes == 'true' - env: - OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} - OPENCODE_CONFIG_CONTENT: | - { - "permission": { - "*": "deny", - "read": "allow", - "edit": "allow", - "glob": "allow", - "task": "allow" - } - } - run: | - opencode run --agent docs --model opencode/gpt-5.3-codex <<'EOF' - Update localized docs to match the latest English docs changes. - - Changed English doc files: - - ${{ steps.changes.outputs.files }} - - - Requirements: - 1. Update all relevant locale docs under packages/web/src/content/docs// so they reflect these English page changes. - 2. You MUST use the Task tool for translation work and launch subagents with subagent_type `translator` (defined in .opencode/agent/translator.md). - 3. Do not translate directly in the primary agent. Use translator subagent output as the source for locale text updates. - 4. Run translator subagent Task calls in parallel whenever file/locale translation work is independent. - 5. Use only the minimum tools needed for this task (read/glob, file edits, and translator Task). Do not use shell, web, search, or GitHub tools for translation work. - 6. Preserve frontmatter keys, internal links, code blocks, and existing locale-specific metadata unless the English change requires an update. - 7. Keep locale docs structure aligned with their corresponding English pages. - 8. Do not modify English source docs in packages/web/src/content/docs/*.mdx. - 9. If no locale updates are needed, make no changes. - EOF - - - name: Commit and push locale docs updates - if: steps.changes.outputs.has_changes == 'true' - run: | - if [ -z "$(git status --porcelain)" ]; then - echo "No locale docs changes to commit" - exit 0 - fi - git add -A - git commit -m "docs(i18n): sync locale docs from english changes" - git pull --rebase --autostash origin "$GITHUB_REF_NAME" - git push origin HEAD:"$GITHUB_REF_NAME" diff --git a/.github/workflows/duplicate-issues.yml b/.github/workflows/duplicate-issues.yml index 4254cca644..be193dc7fc 100644 --- a/.github/workflows/duplicate-issues.yml +++ b/.github/workflows/duplicate-issues.yml @@ -107,7 +107,7 @@ jobs: If the issue is NOT compliant and the author association is not OWNER or MEMBER, start the comment with: - Then explain what needs to be fixed and that they have 2 hours to edit the issue before it is automatically closed. Also add the label needs:compliance to the issue using: gh issue edit ${{ github.event.issue.number }} --add-label needs:compliance + Then explain what needs to be fixed and that they have 72 hours to edit the issue before it is automatically closed. Also add the label needs:compliance to the issue using: gh issue edit ${{ github.event.issue.number }} --add-label needs:compliance If duplicates were found, include a section about potential duplicates with links. @@ -124,7 +124,7 @@ jobs: **What needs to be fixed:** - [specific reasons] - Please edit this issue to address the above within **2 hours**, or it will be automatically closed. + Please edit this issue to address the above within **72 hours**, or it will be automatically closed. [If duplicates found, add:] --- diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml deleted file mode 100644 index 324cfec020..0000000000 --- a/.github/workflows/generate.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: generate - -on: - push: - branches: - - dev - -jobs: - generate: - runs-on: blacksmith-4vcpu-ubuntu-2404 - permissions: - contents: write - pull-requests: write - steps: - - name: Checkout repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - - - name: Setup Bun - uses: ./.github/actions/setup-bun - - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - - name: Generate - run: ./script/generate.ts - - - name: Commit and push - run: | - if [ -z "$(git status --porcelain)" ]; then - echo "No changes to commit" - exit 0 - fi - git add -A - git commit -m "chore: generate" --allow-empty - git push origin HEAD:${{ github.ref_name }} --no-verify - # if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then - # echo "" - # echo "============================================" - # echo "Failed to push generated code." - # echo "Please run locally and push:" - # echo "" - # echo " ./script/generate.ts" - # echo " git add -A && git commit -m \"chore: generate\" && git push" - # echo "" - # echo "============================================" - # exit 1 - # fi diff --git a/.github/workflows/models-snapshot.yml b/.github/workflows/models-snapshot.yml deleted file mode 100644 index 8b73190821..0000000000 --- a/.github/workflows/models-snapshot.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: models-snapshot - -permissions: - contents: write - -on: - workflow_dispatch: - schedule: - - cron: "0 12 * * *" - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: false - -jobs: - refresh: - if: github.repository == 'anomalyco/opencode' - runs-on: blacksmith-4vcpu-ubuntu-2404 - - steps: - - name: Checkout repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - with: - persist-credentials: false - ref: v2 - - # The refresh script only needs `fetch`; skip the monorepo install. - - name: Setup Bun - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 - with: - bun-version-file: package.json - - - name: Setup git committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - - name: Refresh snapshot - run: bun packages/core/script/update-models-snapshot.ts - - - name: Commit changes - run: | - set -euo pipefail - - FILE="packages/core/src/models-dev/snapshot.txt" - - if [ -z "$(git status --short -- "$FILE")" ]; then - echo "No changes to commit" - echo "### models.dev snapshot" >> "$GITHUB_STEP_SUMMARY" - echo "Status: no changes" >> "$GITHUB_STEP_SUMMARY" - exit 0 - fi - - git add "$FILE" - git commit -m "chore(core): refresh bundled models.dev snapshot" - - git pull --rebase --autostash origin v2 - git push origin HEAD:v2 --no-verify - - echo "### models.dev snapshot" >> "$GITHUB_STEP_SUMMARY" - echo "Status: committed $(git rev-parse --short HEAD)" >> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/nix-eval.yml b/.github/workflows/nix-eval.yml index 75332695a1..f415706c03 100644 --- a/.github/workflows/nix-eval.yml +++ b/.github/workflows/nix-eval.yml @@ -2,9 +2,9 @@ name: nix-eval on: push: - branches: [dev] + branches: [v1] pull_request: - branches: [dev] + branches: [v1] workflow_dispatch: concurrency: @@ -37,7 +37,7 @@ jobs: echo "=== Flake structure ===" nix flake show --all-systems - SYSTEMS="x86_64-linux aarch64-linux x86_64-darwin aarch64-darwin" + SYSTEMS="x86_64-linux aarch64-linux aarch64-darwin" PACKAGES="opencode" # TODO: move 'desktop' to PACKAGES when #11755 is fixed OPTIONAL_PACKAGES="desktop" diff --git a/.github/workflows/nix-hashes.yml b/.github/workflows/nix-hashes.yml deleted file mode 100644 index ce1d9237fd..0000000000 --- a/.github/workflows/nix-hashes.yml +++ /dev/null @@ -1,162 +0,0 @@ -name: nix-hashes - -permissions: - contents: write - -on: - workflow_dispatch: - push: - branches: [dev, beta] - paths: - - "bun.lock" - - "package.json" - - "packages/*/package.json" - - "flake.lock" - - "nix/node_modules.nix" - - "nix/scripts/**" - - "patches/**" - - ".github/workflows/nix-hashes.yml" - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - # Native runners required: bun install cross-compilation flags (--os/--cpu) - # do not produce byte-identical node_modules as native installs. - compute-hash: - strategy: - fail-fast: false - matrix: - include: - - system: x86_64-linux - runner: blacksmith-4vcpu-ubuntu-2404 - - system: aarch64-linux - runner: blacksmith-4vcpu-ubuntu-2404-arm - - system: x86_64-darwin - runner: macos-15-intel - - system: aarch64-darwin - runner: macos-latest - runs-on: ${{ matrix.runner }} - - steps: - - name: Checkout repository - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - - name: Setup Nix - uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035 # v34 - - - name: Compute node_modules hash - id: hash - env: - SYSTEM: ${{ matrix.system }} - run: | - set -euo pipefail - - BUILD_LOG=$(mktemp) - trap 'rm -f "$BUILD_LOG"' EXIT - - HASH="" - MAX_ATTEMPTS=3 - for ((ATTEMPT = 1; ATTEMPT <= MAX_ATTEMPTS; ATTEMPT++)); do - # Build with fakeHash to trigger hash mismatch and reveal correct hash - nix build ".#packages.${SYSTEM}.node_modules_updater" --no-link 2>&1 | tee "$BUILD_LOG" || true - - HASH="$(nix run --inputs-from . nixpkgs#gnugrep -- -oP 'got:\s*\Ksha256-[A-Za-z0-9+/=]+' "$BUILD_LOG" | tail -n1 || true)" - - [ -n "$HASH" ] && break - - if [ "$ATTEMPT" -lt "$MAX_ATTEMPTS" ]; then - echo "::warning::Attempt ${ATTEMPT}/${MAX_ATTEMPTS} produced no hash for ${SYSTEM}; retrying in $((ATTEMPT * 10))s" - sleep $((ATTEMPT * 10)) - fi - done - - if [ -z "$HASH" ]; then - echo "::error::Failed to compute hash for ${SYSTEM} after ${MAX_ATTEMPTS} attempts" - cat "$BUILD_LOG" - exit 1 - fi - - echo "$HASH" > hash.txt - echo "Computed hash for ${SYSTEM}: $HASH" - - - name: Upload hash - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - with: - name: hash-${{ matrix.system }} - path: hash.txt - retention-days: 1 - - update-hashes: - needs: compute-hash - if: github.event_name != 'pull_request' - runs-on: blacksmith-4vcpu-ubuntu-2404 - - steps: - - name: Checkout repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - with: - persist-credentials: false - fetch-depth: 0 - ref: ${{ github.ref_name }} - - - name: Setup git committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - - name: Pull latest changes - run: | - git pull --rebase --autostash origin "$GITHUB_REF_NAME" - - - name: Download hash artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 - with: - path: hashes - pattern: hash-* - - - name: Update hashes.json - run: | - set -euo pipefail - - HASH_FILE="nix/hashes.json" - - [ -f "$HASH_FILE" ] || echo '{"nodeModules":{}}' > "$HASH_FILE" - - for SYSTEM in x86_64-linux aarch64-linux x86_64-darwin aarch64-darwin; do - FILE="hashes/hash-${SYSTEM}/hash.txt" - if [ -f "$FILE" ]; then - HASH="$(tr -d '[:space:]' < "$FILE")" - echo "${SYSTEM}: ${HASH}" - jq --arg sys "$SYSTEM" --arg h "$HASH" '.nodeModules[$sys] = $h' "$HASH_FILE" > tmp.json - mv tmp.json "$HASH_FILE" - else - echo "::warning::Missing hash for ${SYSTEM}" - fi - done - - cat "$HASH_FILE" - - - name: Commit changes - run: | - set -euo pipefail - - HASH_FILE="nix/hashes.json" - - if [ -z "$(git status --short -- "$HASH_FILE")" ]; then - echo "No changes to commit" - echo "### Nix hashes" >> "$GITHUB_STEP_SUMMARY" - echo "Status: no changes" >> "$GITHUB_STEP_SUMMARY" - exit 0 - fi - - git add "$HASH_FILE" - git commit -m "chore: update nix node_modules hashes" - - git pull --rebase --autostash origin "$GITHUB_REF_NAME" - git push origin HEAD:"$GITHUB_REF_NAME" - - echo "### Nix hashes" >> "$GITHUB_STEP_SUMMARY" - echo "Status: committed $(git rev-parse --short HEAD)" >> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/pr-standards.yml b/.github/workflows/pr-standards.yml index 06838089d3..2984344e02 100644 --- a/.github/workflows/pr-standards.yml +++ b/.github/workflows/pr-standards.yml @@ -298,7 +298,7 @@ jobs: **What needs to be fixed:** ${issues.map(i => `- ${i}`).join('\n')} - Please edit this PR description to address the above within **2 hours**, or it will be automatically closed. + Please edit this PR description to address the above within **72 hours**, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know.`; diff --git a/.github/workflows/publish-github-action.yml b/.github/workflows/publish-github-action.yml index e5ca91b561..b7f3a25620 100644 --- a/.github/workflows/publish-github-action.yml +++ b/.github/workflows/publish-github-action.yml @@ -14,6 +14,7 @@ permissions: jobs: publish: + if: github.ref_type == 'tag' || github.ref == 'refs/heads/v1' runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 @@ -22,6 +23,9 @@ jobs: - run: git fetch --force --tags + - name: Require a v1 commit + run: git merge-base --is-ancestor "$GITHUB_SHA" origin/v1 + - name: Publish run: | git config --global user.email "opencode@sst.dev" diff --git a/.github/workflows/publish-vscode.yml b/.github/workflows/publish-vscode.yml index 00c7e26048..829ff3bb70 100644 --- a/.github/workflows/publish-vscode.yml +++ b/.github/workflows/publish-vscode.yml @@ -13,7 +13,9 @@ permissions: jobs: publish: + if: github.ref_type == 'tag' || github.ref == 'refs/heads/v1' runs-on: blacksmith-4vcpu-ubuntu-2404 + environment: release steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 with: @@ -22,6 +24,9 @@ jobs: - uses: ./.github/actions/setup-bun - run: git fetch --force --tags + + - name: Require a v1 commit + run: git merge-base --is-ancestor "$GITHUB_SHA" origin/v1 - run: bun install -g @vscode/vsce - name: Install extension dependencies diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d2c528e172..79497cd6c9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,11 +4,7 @@ run-name: "${{ format('release {0}', inputs.bump) }}" on: push: branches: - - ci - - dev - - beta - - fix/npm-native-binary-install - - snapshot-* + - v1 workflow_dispatch: inputs: bump: @@ -31,10 +27,17 @@ permissions: contents: write packages: write +env: + # V1 previews keep the dev channel so existing opencode-ai@dev installs keep upgrading and their data path. + OPENCODE_CHANNEL: ${{ (!inputs.bump && !inputs.version && 'dev') || '' }} + jobs: version: runs-on: blacksmith-4vcpu-ubuntu-2404 - if: github.repository == 'anomalyco/opencode' + # Only v1 publishes. Every other job needs this one, so a dispatch on another ref publishes nothing. + if: github.repository == 'anomalyco/opencode' && github.ref == 'refs/heads/v1' + # Versioned releases wait for approval in the release environment. + environment: ${{ (inputs.bump || inputs.version) && 'release' || '' }} steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 with: @@ -42,13 +45,6 @@ jobs: - uses: ./.github/actions/setup-bun - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - name: Install OpenCode if: inputs.bump || inputs.version run: bun i -g opencode-ai @@ -57,11 +53,11 @@ jobs: run: | ./script/version.ts env: - GH_TOKEN: ${{ steps.committer.outputs.token }} + GH_TOKEN: ${{ github.token }} OPENCODE_BUMP: ${{ inputs.bump }} OPENCODE_VERSION: ${{ inputs.version }} OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} - GH_REPO: ${{ (github.ref_name == 'beta' && 'anomalyco/opencode-beta') || github.repository }} + GH_REPO: ${{ github.repository }} outputs: version: ${{ steps.version.outputs.version }} release: ${{ steps.version.outputs.release }} @@ -79,23 +75,16 @@ jobs: - uses: ./.github/actions/setup-bun - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - name: Build id: build run: | - ./packages/opencode/script/build.ts ${{ (github.ref_name == 'beta' && '--sourcemaps') || '' }} - ./packages/cli/script/build.ts ${{ (github.ref_name == 'beta' && '--sourcemaps') || '' }} + ./packages/opencode/script/build.ts + ./packages/cli/script/build.ts env: OPENCODE_VERSION: ${{ needs.version.outputs.version }} OPENCODE_RELEASE: ${{ needs.version.outputs.release }} GH_REPO: ${{ needs.version.outputs.repo }} - GH_TOKEN: ${{ steps.committer.outputs.token }} + GH_TOKEN: ${{ github.token }} - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: @@ -123,27 +112,32 @@ jobs: - version runs-on: macos-26 if: github.repository == 'anomalyco/opencode' + environment: release steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - uses: apple-actions/import-codesign-certs@8f3fb608891dd2244cdab3d69cd68c0d37a7fe93 # v2.0.0 - with: - keychain: build - p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }} - p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} + # The certificate has no password, which apple-actions/import-codesign-certs rejects. The signing step looks up + # the identity in build.keychain, and codesign finds the key through the user search list. + - name: Import certificate + run: | + cert="$RUNNER_TEMP/cert.p12" + keychain_password=$(openssl rand -base64 32) + printf '%s' "$APPLE_SIGNING_CERTIFICATE" | base64 --decode > "$cert" + security create-keychain -p "$keychain_password" build.keychain + security set-keychain-settings -lut 21600 build.keychain + security unlock-keychain -p "$keychain_password" build.keychain + security import "$cert" -k build.keychain -P "" -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productsign + security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$keychain_password" build.keychain > /dev/null + security list-keychains -d user -s build.keychain $(security list-keychains -d user | tr -d '"') + rm -f "$cert" + env: + APPLE_SIGNING_CERTIFICATE: ${{ secrets.APPLE_SIGNING_CERTIFICATE }} - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: opencode-cli path: packages/opencode/dist - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - name: Sign macOS CLI binaries run: | identity=$(security find-identity -v -p codesigning build.keychain | sed -n 's/.*"\(Developer ID Application:.*\)"/\1/p' | head -n 1) @@ -180,7 +174,7 @@ jobs: - name: Upload signed macOS CLI release assets if: needs.version.outputs.release != '' env: - GH_TOKEN: ${{ steps.committer.outputs.token }} + GH_TOKEN: ${{ github.token }} run: | gh release upload "v${{ needs.version.outputs.version }}" \ packages/opencode/dist/opencode-darwin-arm64.zip \ @@ -199,12 +193,19 @@ jobs: packages/opencode/dist/opencode-darwin-*.zip if-no-files-found: error + - name: Delete keychain + if: always() + run: | + rm -f "$RUNNER_TEMP/cert.p12" + security delete-keychain build.keychain || true + sign-cli-windows: needs: - build-cli - version runs-on: blacksmith-4vcpu-windows-2025 if: github.repository == 'anomalyco/opencode' + environment: release env: AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} @@ -220,13 +221,6 @@ jobs: name: opencode-cli-windows path: packages/opencode/dist - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - name: Azure login uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0 with: @@ -282,7 +276,7 @@ jobs: if: needs.version.outputs.release != '' shell: pwsh env: - GH_TOKEN: ${{ steps.committer.outputs.token }} + GH_TOKEN: ${{ github.token }} run: | gh release upload "v${{ needs.version.outputs.version }}" ` "${{ github.workspace }}\packages\opencode\dist\opencode-windows-arm64.zip" ` @@ -337,19 +331,34 @@ jobs: target: aarch64-unknown-linux-gnu platform_flag: --linux --arm64 runs-on: ${{ matrix.settings.host }} + environment: release steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - uses: apple-actions/import-codesign-certs@8f3fb608891dd2244cdab3d69cd68c0d37a7fe93 # v2.0.0 + # The certificate has no password, which apple-actions/import-codesign-certs rejects. electron-builder reads + # the identity from build.keychain through CSC_KEYCHAIN. + - name: Import certificate if: runner.os == 'macOS' - with: - keychain: build - p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }} - p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} + run: | + cert="$RUNNER_TEMP/cert.p12" + keychain_password=$(openssl rand -base64 32) + printf '%s' "$APPLE_SIGNING_CERTIFICATE" | base64 --decode > "$cert" + security create-keychain -p "$keychain_password" build.keychain + security set-keychain-settings -lut 21600 build.keychain + security unlock-keychain -p "$keychain_password" build.keychain + security import "$cert" -k build.keychain -P "" -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/productsign + security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$keychain_password" build.keychain > /dev/null + security list-keychains -d user -s build.keychain $(security list-keychains -d user | tr -d '"') + rm -f "$cert" + env: + APPLE_SIGNING_CERTIFICATE: ${{ secrets.APPLE_SIGNING_CERTIFICATE }} - - name: Setup Apple API Key + # electron-builder notarizes with APPLE_API_KEY (a .p8 path), APPLE_API_KEY_ID and APPLE_API_ISSUER. + - name: Setup Apple notary key if: runner.os == 'macOS' - run: echo "${{ secrets.APPLE_API_KEY_PATH }}" > $RUNNER_TEMP/apple-api-key.p8 + run: printf '%s\n' "$APPLE_NOTARY_KEY" > "$RUNNER_TEMP/apple-api-key.p8" + env: + APPLE_NOTARY_KEY: ${{ secrets.APPLE_NOTARY_KEY }} - uses: ./.github/actions/setup-bun with: @@ -384,19 +393,12 @@ jobs: sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" rpm sudo chmod -R a+rw ~/apt-cache - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - name: Prepare run: bun ./scripts/prepare.ts working-directory: packages/desktop env: OPENCODE_VERSION: ${{ needs.version.outputs.version }} - OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }} + OPENCODE_CHANNEL: prod RUST_TARGET: ${{ matrix.settings.target }} - name: Build @@ -405,13 +407,13 @@ jobs: env: NODE_OPTIONS: --max-old-space-size=4096 OPENCODE_VERSION: ${{ needs.version.outputs.version }} - OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }} + OPENCODE_CHANNEL: prod SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_ORG: ${{ vars.SENTRY_ORG }} SENTRY_PROJECT: ${{ vars.WEB_SENTRY_PROJECT }} SENTRY_RELEASE: desktop@${{ needs.version.outputs.version }} VITE_SENTRY_DSN: ${{ vars.WEB_SENTRY_DSN }} - VITE_SENTRY_ENVIRONMENT: ${{ (github.ref_name == 'beta' && 'beta') || 'production' }} + VITE_SENTRY_ENVIRONMENT: production VITE_SENTRY_RELEASE: desktop@${{ needs.version.outputs.version }} - name: Package @@ -420,12 +422,12 @@ jobs: working-directory: packages/desktop timeout-minutes: 60 env: - OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }} - GH_TOKEN: ${{ steps.committer.outputs.token }} + OPENCODE_CHANNEL: prod + GH_TOKEN: ${{ github.token }} CSC_KEYCHAIN: build.keychain APPLE_API_KEY: ${{ runner.temp }}/apple-api-key.p8 - APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY }} - APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }} + APPLE_API_KEY_ID: ${{ vars.APPLE_NOTARY_KEY_ID }} + APPLE_API_ISSUER: ${{ vars.APPLE_NOTARY_ISSUER_ID }} - name: Package (no publish) if: ${{ !needs.version.outputs.release }} @@ -433,7 +435,7 @@ jobs: working-directory: packages/desktop timeout-minutes: 60 env: - OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }} + OPENCODE_CHANNEL: prod - name: Create macOS .app.tar.gz if: runner.os == 'macOS' && needs.version.outputs.release @@ -483,6 +485,12 @@ jobs: name: latest-yml-${{ matrix.settings.target }} path: packages/desktop/dist/latest*.yml + - name: Delete keychain + if: always() && runner.os == 'macOS' + run: | + rm -f "$RUNNER_TEMP/cert.p12" "$RUNNER_TEMP/apple-api-key.p8" + security delete-keychain build.keychain || true + publish: needs: - version @@ -490,10 +498,15 @@ jobs: - sign-cli-macos - sign-cli-windows - build-electron - if: always() && !failure() && !cancelled() + if: always() && !failure() && !cancelled() && needs.version.result == 'success' runs-on: blacksmith-4vcpu-ubuntu-2404 + # npm trusted publishing (previews included) only accepts the release environment. + environment: release steps: + # The release deploy key pushes the release tag and the version sync commit to v1. - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + with: + ssh-key: ${{ needs.version.outputs.release && secrets.RELEASE_TAG_KEY || '' }} - uses: ./.github/actions/setup-bun @@ -556,13 +569,6 @@ jobs: path: /tmp/desktop merge-multiple: true - - name: Setup git committer - id: committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - name: Cache apt packages (AUR) uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: @@ -585,7 +591,7 @@ jobs: - name: Upload desktop release assets if: needs.version.outputs.release env: - GH_TOKEN: ${{ steps.committer.outputs.token }} + GH_TOKEN: ${{ github.token }} run: | shopt -s nullglob files=(/tmp/desktop/*.{exe,blockmap,dmg,zip,AppImage,deb,rpm} /tmp/desktop/*.app.tar.gz) @@ -600,7 +606,8 @@ jobs: OPENCODE_VERSION: ${{ needs.version.outputs.version }} OPENCODE_RELEASE: ${{ needs.version.outputs.release }} AUR_KEY: ${{ secrets.AUR_KEY }} - GITHUB_TOKEN: ${{ steps.committer.outputs.token }} + GITHUB_TOKEN: ${{ github.token }} + HOMEBREW_TAP_DEPLOY_KEY: ${{ secrets.HOMEBREW_TAP_DEPLOY_KEY }} GH_REPO: ${{ needs.version.outputs.repo }} NPM_CONFIG_PROVENANCE: false LATEST_YML_DIR: /tmp/latest-yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c69de1d93b..003283493c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,14 +3,14 @@ name: test on: push: branches: - - dev + - v1 pull_request: workflow_dispatch: concurrency: - # Keep every run on dev so cancelled checks do not pollute the default branch + # Keep every run on v1 so cancelled checks do not pollute the release branch # commit history. PRs and other branches still share a group and cancel stale runs. - group: ${{ case(github.ref == 'refs/heads/dev', format('{0}-{1}', github.workflow, github.run_id), format('{0}-{1}', github.workflow, github.event.pull_request.number || github.ref)) }} + group: ${{ case(github.ref == 'refs/heads/v1', format('{0}-{1}', github.workflow, github.run_id), format('{0}-{1}', github.workflow, github.event.pull_request.number || github.ref)) }} cancel-in-progress: true permissions: @@ -28,10 +28,12 @@ jobs: matrix: settings: - name: linux - host: blacksmith-4vcpu-ubuntu-2404 + host: ubuntu-24.04 - name: windows - host: blacksmith-4vcpu-windows-2025 + host: windows-2025 runs-on: ${{ matrix.settings.host }} + env: + PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.playwright-browsers defaults: run: shell: bash @@ -63,6 +65,44 @@ jobs: turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}- turbo-${{ runner.os }}- + # Path tests strip the drive letter, so temp must share the checkout's drive (D:), not default C:. + - name: Keep temp on the checkout drive + if: runner.os == 'Windows' + run: | + echo "TEMP=$RUNNER_TEMP" >> "$GITHUB_ENV" + echo "TMP=$RUNNER_TEMP" >> "$GITHUB_ENV" + + # Core's ripgrep tests use a system rg; without one they download it from GitHub releases at test + # time (an outage fails them), and on Windows the Expand-Archive fallback also times out. + - name: Install ripgrep + run: | + if [ "$RUNNER_OS" = "Windows" ]; then choco install ripgrep -y --no-progress + else sudo apt-get update -qq && sudo apt-get install -y -qq ripgrep; fi + + # App browser tests (test-browser/) launch a real Chromium. + - name: Read Playwright version + id: playwright-version + run: | + version=$(node -e 'console.log(require("./package.json").workspaces.catalog["@playwright/test"])') + echo "version=$version" >> "$GITHUB_OUTPUT" + + - name: Cache Playwright browsers + id: playwright-cache + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: ${{ github.workspace }}/.playwright-browsers + key: ${{ runner.os }}-${{ runner.arch }}-playwright-${{ steps.playwright-version.outputs.version }}-chromium + + - name: Install Playwright system dependencies + if: runner.os == 'Linux' + working-directory: packages/app + run: bunx playwright install-deps chromium + + - name: Install Playwright browsers + if: steps.playwright-cache.outputs.cache-hit != 'true' + working-directory: packages/app + run: bunx playwright install chromium + - name: Run unit tests timeout-minutes: 20 run: GITHUB_ACTIONS=false bun turbo test @@ -86,9 +126,9 @@ jobs: matrix: settings: - name: linux - host: blacksmith-4vcpu-ubuntu-2404 + host: ubuntu-24.04 - name: windows - host: blacksmith-4vcpu-windows-2025 + host: windows-2025 runs-on: ${{ matrix.settings.host }} env: PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.playwright-browsers diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index fc9a52797c..d809ecba78 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -2,14 +2,14 @@ name: typecheck on: push: - branches: [dev] + branches: [dev, v1] pull_request: - branches: [dev] + branches: [dev, v1] workflow_dispatch: jobs: typecheck: - runs-on: blacksmith-4vcpu-ubuntu-2404 + runs-on: ubuntu-24.04 steps: - name: Checkout repository uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 @@ -19,3 +19,25 @@ jobs: - name: Run typecheck run: bun typecheck + + # Replaces the generate bot: pull requests must commit the regenerated SDK, OpenAPI document and formatting. + generated: + runs-on: ubuntu-24.04 + steps: + - name: Checkout repository + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + + - name: Setup Bun + uses: ./.github/actions/setup-bun + + - name: Generate + run: ./script/generate.ts + + - name: Check generated files + run: | + if [ -n "$(git status --porcelain)" ]; then + git status --short + git diff + echo "::error::Generated files are out of date. Run ./script/generate.ts and commit the result." + exit 1 + fi diff --git a/.github/workflows/unlock.yml b/.github/workflows/unlock.yml index 8df1af0e36..f38b65d2e0 100644 --- a/.github/workflows/unlock.yml +++ b/.github/workflows/unlock.yml @@ -19,6 +19,7 @@ permissions: jobs: unlock: + if: github.ref == 'refs/heads/v1' runs-on: ubuntu-latest environment: ${{ inputs.stage }} steps: diff --git a/.gitignore b/.gitignore index 45e5ee810a..059ec4ff3f 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ logs/ tsconfig.tsbuildinfo /packages/desktop/resources/cm-ae/ /packages/desktop/resources/cli/opencode* +/artifacts/ diff --git a/.opencode/tool/github-triage.ts b/.opencode/tool/github-triage.ts index d610a81e49..6e948a9e6c 100644 --- a/.opencode/tool/github-triage.ts +++ b/.opencode/tool/github-triage.ts @@ -5,8 +5,8 @@ const TEAM = { tui: ["kommander", "simonklee"], desktop_web: ["Hona", "Brendonovich"], core: ["jlongster", "rekram1-node", "neriousy", "nexxeln", "kitlangton"], - inference: ["fwang", "MrMushrooooom", "starptech"], - windows: ["Hona"], + inference: ["fwang", "vaprdev", "vimtor"], + windows: ["Hona", "neriousy"], } as const function pick(items: readonly T[]) { diff --git a/.prettierignore b/.prettierignore index 7c72d70225..949703d991 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,10 @@ sst-env.d.ts packages/desktop/src/bindings.ts packages/client/src/generated/ packages/client/src/generated-effect/ + +# Third-party bundles are staged byte-for-byte, not maintained source. +packages/desktop/vendor/ + +# Local build output is not source. +**/out/ +**/dist/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a9c545efb8..a53e2dd0b2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -260,7 +260,7 @@ All issues **must** use one of our issue templates: - **Feature request** — for suggesting enhancements (requires verification checkbox and description) - **Question** — for asking questions (requires the question) -Blank issues are not allowed. When a new issue is opened, an automated check verifies that it follows a template and meets our contributing guidelines. If an issue doesn't meet the requirements, you'll receive a comment explaining what needs to be fixed and have **2 hours** to edit the issue. After that, it will be automatically closed. +Blank issues are not allowed. When a new issue is opened, an automated check verifies that it follows a template and meets our contributing guidelines. If an issue doesn't meet the requirements, you'll receive a comment explaining what needs to be fixed and have **72 hours** to edit the issue. After that, it will be automatically closed. Issues may be flagged for: diff --git a/HANDOVER-wpp-dual-capture.md b/HANDOVER-wpp-dual-capture.md index ff22fc0224..2481edf55b 100644 --- a/HANDOVER-wpp-dual-capture.md +++ b/HANDOVER-wpp-dual-capture.md @@ -35,6 +35,7 @@ capture), which is the actual task for Codex. appears. Root cause: `.opencode` auto-install fails on `@opencode-ai/plugin@local`. ## B. Remaining work for Codex + The task is **"Dual network capture"** — the last major section of this file. Everything above it is context/done. Start there. @@ -66,7 +67,7 @@ The proxy's `sessionIdFromHeaders` ([openaiCompat.mjs:48](packages/desktop/src/m reads the affinity headers but ignores `x-parent-session-id`. **Goal:** detect sub-agent turns via `x-parent-session-id` and still pin them -(preserving delta/thread continuity *within* the sub-agent's own multi-turn run), +(preserving delta/thread continuity _within_ the sub-agent's own multi-turn run), but reap their tabs on a much shorter idle TTL than a real interactive session. ## Approach @@ -79,6 +80,7 @@ Follow the existing split: pure, Electron-free logic lives in `worker-slot.ts` (unit-testable); `worker-pool.ts` is the Electron glue. ### 1. Detect the sub-agent signal — `proxy/openaiCompat.mjs` + - Add a small helper alongside `sessionIdFromHeaders`, e.g. `hasParentSession(headers)` that returns true when `x-parent-session-id` is a non-empty string. @@ -88,17 +90,16 @@ Follow the existing split: pure, Electron-free logic lives in `worker-slot.ts` - Pass `subagent` into `bridgeOptions` (~line 191) next to `sessionKey`/`continueThread`. ### 2. Plumb the flag through the bridge — `proxy/extensionBridge.mjs` + - In `createWorkerJob` (~line 309-321) add `subagent: options.subagent === true` to `payload`, next to `sessionKey`. ### 3. Pure TTL decision — `worker-slot.ts` + - Extend `WorkerView` with `subagent?: boolean`. - Add a pure helper: ```ts - export function ttlForWorker( - worker: WorkerView, - ttls: { idle: number; pinned: number; subagent: number }, - ): number { + export function ttlForWorker(worker: WorkerView, ttls: { idle: number; pinned: number; subagent: number }): number { if (!worker.sessionKey) return ttls.idle return worker.subagent ? ttls.subagent : ttls.pinned } @@ -107,11 +108,12 @@ Follow the existing split: pure, Electron-free logic lives in `worker-slot.ts` three-way choice testable without the Electron runtime. ### 4. Apply in the pool — `worker-pool.ts` + - Add `SUBAGENT_WORKER_TTL_MS` (default 5 min; env-overridable via `O1_CODE_SUBAGENT_TTL_MS`, mirroring the `O1_CODE_MAX_SPAWNS` pattern). - Add `subagent: boolean` to the `Worker` type. - Thread `subagent` through `run` (read `job.payload?.subagent`) → `acquire(agent, - sessionKey, subagent)` → `claim`/`spawn` (set `worker.subagent`). On `claim`, +sessionKey, subagent)` → `claim`/`spawn` (set `worker.subagent`). On `claim`, always assign `worker.subagent = subagent` (an adopted unpinned worker takes the current turn's classification). - In `prune()`, replace the TTL ternary with @@ -124,6 +126,7 @@ No change needed to `selectWorkerSlot` (selection is by unique `sessionKey`) or `shouldReapWorker` (already TTL-parameterized). ## Critical files + - [packages/desktop/src/main/wpp-bridge/proxy/openaiCompat.mjs](packages/desktop/src/main/wpp-bridge/proxy/openaiCompat.mjs) — detect + pass flag - [packages/desktop/src/main/wpp-bridge/proxy/extensionBridge.mjs](packages/desktop/src/main/wpp-bridge/proxy/extensionBridge.mjs) — payload plumbing - [packages/desktop/src/main/wpp-bridge/worker-slot.ts](packages/desktop/src/main/wpp-bridge/worker-slot.ts) — `WorkerView` + `ttlForWorker` @@ -132,6 +135,7 @@ No change needed to `selectWorkerSlot` (selection is by unique `sessionKey`) or ## Verification **Unit tests** (`worker-pool.test.ts`, which imports `worker-slot.ts`): + - `ttlForWorker`: unpinned → idle; pinned non-subagent → pinned; pinned subagent → subagent TTL. - A reap scenario asserting a sub-agent worker is reaped once idle past @@ -143,6 +147,7 @@ No change needed to `selectWorkerSlot` (selection is by unique `sessionKey`) or `x-parent-session-id` is present. **Live check** (`O1_CODE_SHOW_WORKERS=1 bun run dev:desktop`): + 1. Run a turn that spawns a sub-agent (e.g. an Explore/Task) in OpenCode. 2. Confirm a worker window appears titled with the `(subagent)` marker and a distinct child-session key from the parent's window. @@ -154,6 +159,7 @@ No change needed to `selectWorkerSlot` (selection is by unique `sessionKey`) or Run `bun run lint` (oxlint from repo root) and `bun turbo typecheck` before finishing. ## Open tunable + `SUBAGENT_WORKER_TTL_MS` default is 5 min (vs 10 min idle / 30 min pinned). Adjust if sub-agent runs commonly idle longer than that between turns. @@ -193,10 +199,7 @@ abandoned session, not a normal reaper. // Interactive session tabs live for the running app session (Electron destroys them on quit). This // long idle TTL is only a leak guard so a forgotten session can't hold an authenticated window // forever; normal same-session turns refresh lastUsed and never hit it. -const PINNED_WORKER_TTL_MS = Math.max( - 30 * 60 * 1000, - Number(process.env.O1_CODE_PINNED_TTL_MS) || 4 * 60 * 60 * 1000, -) +const PINNED_WORKER_TTL_MS = Math.max(30 * 60 * 1000, Number(process.env.O1_CODE_PINNED_TTL_MS) || 4 * 60 * 60 * 1000) ``` No other code changes: `ttlForWorker` already routes pinned non-subagent workers to @@ -204,6 +207,7 @@ this constant, sub-agents keep `SUBAGENT_WORKER_TTL_MS` (5 min), unpinned scratc keep `IDLE_WORKER_TTL_MS` (10 min). The three-tier split built above is unchanged. ## Verification + - Existing `ttlForWorker` tests already assert pinned → `pinned` TTL and that the three tiers are distinct; they use literal TTLs, so the constant bump doesn't break them. Re-run `cd packages/desktop && bun test src/main/wpp-bridge/`. @@ -212,6 +216,7 @@ keep `IDLE_WORKER_TTL_MS` (10 min). The three-tier split built above is unchange past 30 min idle; quitting the app closes all worker windows. ## Note / tradeoff + Every interactive session ever touched keeps one hidden authenticated `BrowserWindow` for up to the backstop (or until app quit). With many sessions in one app run this accumulates windows/memory — acceptable per the chosen @@ -230,15 +235,15 @@ one app run this accumulates windows/memory — acceptable per the chosen Today the only network capture is the page monkey-patch (`injected/pageRecorder.js`), injected main-world at document-start via `recorder-injection.ts`, patching `fetch`/`XMLHttpRequest` and relaying chunks by `postMessage`. It's the sole -transport witness *and* the parser, and it depends on WPP page JS + timing. When it +transport witness _and_ the parser, and it depends on WPP page JS + timing. When it misses, the run loop in `content.js` silently falls back to **DOM scraping**, whose whitespace-lossy output then gets executed by the harness — the failure mode behind the "environment is lying to me" sessions. Electron lets us add an **independent transport witness** that page JS cannot bypass: attach `webContents.debugger`, enable the `Network` domain, and observe the model -request directly in the main process. The page recorder stays as the *semantic SSE -parser*; CDP becomes the *truth* about whether a model request happened, streamed +request directly in the main process. The page recorder stays as the _semantic SSE +parser_; CDP becomes the _truth_ about whether a model request happened, streamed bytes, and finished or failed; DOM is demoted to UI evidence only. Key simplifier: **one job per worker**, so within a worker's run window there is @@ -257,27 +262,29 @@ origin during the run window," no per-request id needed. typed `o1_code_capture_failure` from the pool triggers: reset continuity → retry once (the retry naturally takes the fresh-chat path because the watermark was reset). - `content.js` is largely unchanged: still parses + returns its own `responseSource` - and `recorder:{ready,reset,requestCount}`; main now *arbitrates* that result instead + and `recorder:{ready,reset,requestCount}`; main now _arbitrates_ that result instead of trusting it. ## Work items ### 1. Main-process CDP Network recorder — new `cdp-network-recorder.ts` + - `installNetworkWitness(contents)`: via existing `installInRootAndChildTargets` (reused from [cdp-targets.ts](packages/desktop/src/main/wpp-bridge/cdp-targets.ts)), `Network.enable` on root + the cross-origin assistant iframe target; subscribe to `dbg.on("message")` for `Network.requestWillBeSent`, `responseReceived`, `dataReceived`, `loadingFinished`, `loadingFailed`, `eventSourceMessageReceived`. - Keep a small rolling ring buffer of `{ts, requestId, url, method, status, bytes, - state}`. Filter to model requests with the **same predicate as the page recorder's +state}`. Filter to model requests with the **same predicate as the page recorder's `shouldRecordRequest`** (POST to assistant origin, excluding datadog/`/v1/project`/ `/v1/tools`/`/v1/oauth`) — factor that predicate into a shared module so both stay in sync. - Return a handle: `summarizeWindow(sinceTs)` → `{ requestSeen, status, bytes, - finished, failed, failureText, eventSourceMessages }`. +finished, failed, failureText, eventSourceMessages }`. - Witness is **metadata-only** (no `Network.getResponseBody`) per "witness, not parser." ### 2. Spawn wiring — `worker-pool.ts` + - In `spawn()`, after `installRecorder`/`installController`, call `installNetworkWitness` and store the handle on the `Worker` (`worker.netWitness`). - In `run()`: capture `t0 = Date.now()` before `controller.runJob`; after it resolves, @@ -294,12 +301,14 @@ origin during the run window," no per-request id needed. gets a clean tab. ### 3. Retry-with-reset — `proxy/openaiCompat.mjs` + - Wrap the `bridge.run` call: on `o1_code_capture_failure`, `resetThread(sessionKey)`, then retry **once** (fresh replay). If the retry also fails capture, surface the typed error (don't fall back to DOM). Distinguish the three kinds in the error message so the user sees "WPP request failed" vs "recorder/parser miss" vs "submit/UI failure." ### 4. DOM = display only + - With the arbiter in place, the DOM-fallback record ([content.js](packages/desktop/src/main/wpp-bridge/injected/content.js) `domRecordFromSnapshot`, already `lowFidelity:true`) is **never accepted as payload** by the pool when a model request was witnessed/seen-failed. DOM only survives as evidence @@ -307,6 +316,7 @@ origin during the run window," no per-request id needed. page produced visible text — configurable; default: reject). ### 5. Capture-health record (per turn) + Extend the run log (the `responseSource`/`lowFidelity` fields just added in [openaiCompat.mjs](packages/desktop/src/main/wpp-bridge/proxy/openaiCompat.mjs)) with a `capture` block, surfaced in `/bridge/health` too: @@ -315,6 +325,7 @@ cdpFailed, pageRecorderRequestSeen, parseComplete, responseSourceAccepted, retry verdict }`. This is what makes failures non-spooky. ## Critical files + - **new** `packages/desktop/src/main/wpp-bridge/cdp-network-recorder.ts` — witness - **new/shared** request-predicate module (extract `shouldRecordRequest` logic) shared by the witness and [pageRecorder.js](packages/desktop/src/main/wpp-bridge/injected/pageRecorder.js) @@ -324,25 +335,27 @@ verdict }`. This is what makes failures non-spooky. - reuse [cdp-targets.ts](packages/desktop/src/main/wpp-bridge/cdp-targets.ts) `installInRootAndChildTargets` ## Verification + - **Unit (Electron-free):** the verdict function is pure — feed `{controllerResult, - witnessSummary}` permutations (network-ok, dom+failed, dom+finished-parser-miss, +witnessSummary}` permutations (network-ok, dom+failed, dom+finished-parser-miss, dom+no-request) and assert accept / typed-failure-kind. Put it next to `worker-slot.ts` style pure logic so it tests without Electron. Run `bun test src/main/wpp-bridge/`. - **CDP event parsing:** unit-test the ring-buffer reducer over recorded `Network.*` event fixtures. - **Live (`O1_CODE_SHOW_WORKERS=1`):** run a turn; confirm `capture.cdpRequestSeen=true` - + `responseSourceAccepted=network`. Then force a parser miss (e.g. temporarily break - the page recorder predicate) and confirm: DOM is **not** executed, a typed - `recorder_parser_miss` is logged, one retry fires after reset, and the health block - records it. Kill network mid-turn → `wpp_request_failed` surfaced. + - `responseSourceAccepted=network`. Then force a parser miss (e.g. temporarily break + the page recorder predicate) and confirm: DOM is **not** executed, a typed + `recorder_parser_miss` is logged, one retry fires after reset, and the health block + records it. Kill network mid-turn → `wpp_request_failed` surfaced. - `bun run lint` + `bun run typecheck`. ## Risks / notes + - Two `setAutoAttach` passes already exist (recorder + controller injection); a third is idempotent but adds CDP chatter — acceptable, or fold `Network.enable` into the recorder-injection target pass. - SSE over CDP surfaces as `dataReceived` (and sometimes `eventSourceMessageReceived`); - treat *either* as "bytes arrived." `loadingFinished` may lag the visible completion — + treat _either_ as "bytes arrived." `loadingFinished` may lag the visible completion — the witness is queried after `controller.runJob` resolves, so timing is fine. - Keep CDP witness metadata-only; capturing bodies (`getResponseBody`/ `streamResourceContent`) is a possible future "CDP-as-second-parser" upgrade, out of diff --git a/HANDOVER-wpp-token-counter.md b/HANDOVER-wpp-token-counter.md index 3e3dbeb4bb..94b3546874 100644 --- a/HANDOVER-wpp-token-counter.md +++ b/HANDOVER-wpp-token-counter.md @@ -207,11 +207,11 @@ When syncing upstream OpenCode: ## Usage-field contract -| Field | Exact network usage | Confirmed WPP pill | Heuristic fallback | -| ------------------- | ----------------------------------------- | ------------------------------------------------------------- | ---------------------------- | -| `total_tokens` | Network prompt + completion | Current WPP context pill | Estimated prompt + completion | -| `completion_tokens` | Exact network value | Estimated from current output, capped at total | Estimated | -| `prompt_tokens` | Exact network value | Derived as total minus estimated completion | Estimated | +| Field | Exact network usage | Confirmed WPP pill | Heuristic fallback | +| ------------------- | --------------------------- | ---------------------------------------------- | ----------------------------- | +| `total_tokens` | Network prompt + completion | Current WPP context pill | Estimated prompt + completion | +| `completion_tokens` | Exact network value | Estimated from current output, capped at total | Estimated | +| `prompt_tokens` | Exact network value | Derived as total minus estimated completion | Estimated | For the current WPP response shape, only the DOM `total_tokens` is WPP-owned; the prompt/completion split remains estimated. If structured network usage is diff --git a/MISSION.md b/MISSION.md index 8257abe1fa..afcf43c59f 100644 --- a/MISSION.md +++ b/MISSION.md @@ -1,21 +1,25 @@ # Mission: CookieMonster for motion designers ## Why + Enable a team of motion designers to use CookieMonster as a safe, practical creative-production partner without requiring them to become software engineers first. The training should replace “AI magic” with a usable mental model of runtimes, project folders, tools, permissions, and verification. ## Success looks like + - A designer can explain the difference between JavaScript, Node.js, Bun, a terminal, an AI model, and a coding harness in plain language. - A designer can open the correct project folder, give CookieMonster a bounded brief, and predict what it can and cannot access. - A designer can choose a read-only or editing workflow intentionally and review evidence before accepting a result. - The team can apply the same workflow to small motion-production utilities and larger creative projects. ## Constraints + - Assume no coding knowledge and avoid syntax-first teaching. - Use motion-design and studio-production analogies, but identify where each analogy stops being exact. - Keep every exercise low-risk, observable, and immediately relevant to creative work. - CookieMonster uses Bun and Electron in practice, even though Node.js provides the foundational ecosystem model. ## Out of scope + - Teaching JavaScript programming in the foundation module. - Git branching, package authoring, application architecture, or production deployment before the team understands the harness loop. - Asking learners to trust an AI-produced change without reviewing the changed files or output. diff --git a/after/menu-verification.json b/after/menu-verification.json index 3530f2ac6e..90b3fc51d1 100644 --- a/after/menu-verification.json +++ b/after/menu-verification.json @@ -1218,4 +1218,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/after/metrics.json b/after/metrics.json index 6115d4c13b..b00cbc2ca8 100644 --- a/after/metrics.json +++ b/after/metrics.json @@ -4395,4 +4395,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/after/records-review.json b/after/records-review.json index 1654cd382e..0b291c8a1a 100644 --- a/after/records-review.json +++ b/after/records-review.json @@ -3634,4 +3634,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/after/tooltip-verification.json b/after/tooltip-verification.json index 90d3e01462..302f5b82bd 100644 --- a/after/tooltip-verification.json +++ b/after/tooltip-verification.json @@ -3866,4 +3866,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/artifacts/glm52-rise-video/.gitignore b/artifacts/glm52-rise-video/.gitignore deleted file mode 100644 index 9d38bb2591..0000000000 --- a/artifacts/glm52-rise-video/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -.remotion -out/frame-*.png diff --git a/artifacts/glm52-rise-video/bun.lock b/artifacts/glm52-rise-video/bun.lock deleted file mode 100644 index cac009ae81..0000000000 --- a/artifacts/glm52-rise-video/bun.lock +++ /dev/null @@ -1,483 +0,0 @@ -{ - "lockfileVersion": 1, - "configVersion": 1, - "workspaces": { - "": { - "name": "glm52-rise-video", - "dependencies": { - "@remotion/cli": "^4.0.384", - "react": "^19.2.3", - "react-dom": "^19.2.3", - "remotion": "^4.0.384", - }, - "devDependencies": { - "@types/react": "^19.2.8", - "@types/react-dom": "^19.2.3", - "typescript": "^5.8.2", - }, - }, - }, - "packages": { - "@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="], - - "@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], - - "@babel/parser": ["@babel/parser@7.24.1", "", { "bin": "./bin/babel-parser.js" }, "sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg=="], - - "@babel/types": ["@babel/types@7.24.0", "", { "dependencies": { "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" } }, "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w=="], - - "@emnapi/core": ["@emnapi/core@1.11.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.2.2", "tslib": "^2.4.0" } }, "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ=="], - - "@emnapi/runtime": ["@emnapi/runtime@1.11.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw=="], - - "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="], - - "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.1", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ=="], - - "@esbuild/android-arm": ["@esbuild/android-arm@0.28.1", "", { "os": "android", "cpu": "arm" }, "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ=="], - - "@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.1", "", { "os": "android", "cpu": "arm64" }, "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg=="], - - "@esbuild/android-x64": ["@esbuild/android-x64@0.28.1", "", { "os": "android", "cpu": "x64" }, "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng=="], - - "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q=="], - - "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ=="], - - "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.1", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw=="], - - "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ=="], - - "@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.1", "", { "os": "linux", "cpu": "arm" }, "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ=="], - - "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g=="], - - "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.1", "", { "os": "linux", "cpu": "ia32" }, "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w=="], - - "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg=="], - - "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ=="], - - "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ=="], - - "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ=="], - - "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.1", "", { "os": "linux", "cpu": "s390x" }, "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag=="], - - "@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.1", "", { "os": "linux", "cpu": "x64" }, "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA=="], - - "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.1", "", { "os": "none", "cpu": "arm64" }, "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw=="], - - "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.1", "", { "os": "none", "cpu": "x64" }, "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg=="], - - "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.1", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q=="], - - "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.1", "", { "os": "openbsd", "cpu": "x64" }, "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw=="], - - "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.28.1", "", { "os": "none", "cpu": "arm64" }, "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg=="], - - "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.1", "", { "os": "sunos", "cpu": "x64" }, "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ=="], - - "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA=="], - - "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.1", "", { "os": "win32", "cpu": "ia32" }, "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg=="], - - "@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.1", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="], - - "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], - - "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], - - "@jridgewell/source-map": ["@jridgewell/source-map@0.3.11", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA=="], - - "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], - - "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], - - "@mediabunny/aac-encoder": ["@mediabunny/aac-encoder@1.47.0", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-JNzgdJoHMFFnv5imi1+dmjZMudsJ1zNCUCEkKjBh90cqGhAFg8xu4V2gsyxE2i6oq/YpWx23P+OvoANLSMcDzA=="], - - "@mediabunny/flac-encoder": ["@mediabunny/flac-encoder@1.47.0", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-VpKmJO0xlYcFCRD6JvJlMbNQ6d/6YMHdO1gFIqWlZABHjSSL6BquNNEgWSCv5vdF8ELDBwIYBVZEslakIB/7GA=="], - - "@mediabunny/mp3-encoder": ["@mediabunny/mp3-encoder@1.47.0", "", { "peerDependencies": { "mediabunny": "^1.0.0" } }, "sha512-JyzZyGeGRm2HVUQaGJ/VZT9OG+kG00mA8SLP/f3CO7+qWAmBncKc16WYXWHbZEo8Jn/ZGA6De32S5R2bTQbDqA=="], - - "@module-federation/error-codes": ["@module-federation/error-codes@0.22.0", "", {}, "sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug=="], - - "@module-federation/runtime": ["@module-federation/runtime@0.22.0", "", { "dependencies": { "@module-federation/error-codes": "0.22.0", "@module-federation/runtime-core": "0.22.0", "@module-federation/sdk": "0.22.0" } }, "sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA=="], - - "@module-federation/runtime-core": ["@module-federation/runtime-core@0.22.0", "", { "dependencies": { "@module-federation/error-codes": "0.22.0", "@module-federation/sdk": "0.22.0" } }, "sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA=="], - - "@module-federation/runtime-tools": ["@module-federation/runtime-tools@0.22.0", "", { "dependencies": { "@module-federation/runtime": "0.22.0", "@module-federation/webpack-bundler-runtime": "0.22.0" } }, "sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA=="], - - "@module-federation/sdk": ["@module-federation/sdk@0.22.0", "", {}, "sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g=="], - - "@module-federation/webpack-bundler-runtime": ["@module-federation/webpack-bundler-runtime@0.22.0", "", { "dependencies": { "@module-federation/runtime": "0.22.0", "@module-federation/sdk": "0.22.0" } }, "sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA=="], - - "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.0.7", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw=="], - - "@remotion/bundler": ["@remotion/bundler@4.0.483", "", { "dependencies": { "@remotion/media-parser": "4.0.483", "@remotion/studio": "4.0.483", "@remotion/studio-shared": "4.0.483", "@remotion/timeline-utils": "4.0.483", "@rspack/core": "1.7.11", "@rspack/plugin-react-refresh": "1.6.1", "css-loader": "7.1.4", "esbuild": "0.28.1", "react-refresh": "0.18.0", "remotion": "4.0.483", "style-loader": "4.0.0", "webpack": "5.105.0" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-5fQRMYgr2sxZPBOThnIVuFwHBq/FhusJ+Ke6xopga8io8ecK/mj9GaRXC3tgfMa+YWuu8ZSXZ0U9EsMZjjP5YQ=="], - - "@remotion/canvas-capture": ["@remotion/canvas-capture@4.0.483", "", { "dependencies": { "mediabunny": "1.47.0", "remotion": "4.0.483" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-JABgbfvXwjFp1E61tlDN9gVAH8OoeF4kUUELNwG9kcNOE4ex8+vCYEO6VKIaXZ4l8A1PEAQ5EK//NheTJ80gfw=="], - - "@remotion/cli": ["@remotion/cli@4.0.483", "", { "dependencies": { "@remotion/bundler": "4.0.483", "@remotion/media-utils": "4.0.483", "@remotion/player": "4.0.483", "@remotion/renderer": "4.0.483", "@remotion/studio": "4.0.483", "@remotion/studio-server": "4.0.483", "@remotion/studio-shared": "4.0.483", "dotenv": "17.3.1", "minimist": "1.2.6", "prompts": "2.4.2", "remotion": "4.0.483" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "bin": { "remotion": "remotion-cli.js", "remotionb": "remotionb-cli.js", "remotiond": "remotiond-cli.js" } }, "sha512-z4TQcgTfQbSIV4GQpCvIihDL77M+leQelbxv962PmfSKTT7z3XnNN732PcZ4sei2+Xg+d2SD95K4tI5XBYs5Gw=="], - - "@remotion/compositor-darwin-arm64": ["@remotion/compositor-darwin-arm64@4.0.483", "", { "os": "darwin", "cpu": "arm64" }, "sha512-CkEJXouGEoCs5PX3KOufkXrlT/Kgn0ZF7SEQ4meCYGYMZD+QPVtsmS1MXH8pQ4RHlFO6Tk7g0CIHMT3Y4yzpuA=="], - - "@remotion/compositor-darwin-x64": ["@remotion/compositor-darwin-x64@4.0.483", "", { "os": "darwin", "cpu": "x64" }, "sha512-vDZK5U8FYbHGMjFC2lUgJRBz8KXwbwFSvEQi8FATD0roNg75SoaEJWrqAOIVv8v5eBjPvo18znDc36NLRYn1Eg=="], - - "@remotion/compositor-linux-arm64-gnu": ["@remotion/compositor-linux-arm64-gnu@4.0.483", "", { "os": "linux", "cpu": "arm64" }, "sha512-1LzfYDY/DQxy3MIc9pCbTn1ObcBDcyI6MzODOwe1bTZl8TZxdUUt1M3hDrQ60AB6iHwruBAnzT9dnogiMIdSew=="], - - "@remotion/compositor-linux-arm64-musl": ["@remotion/compositor-linux-arm64-musl@4.0.483", "", { "os": "linux", "cpu": "arm64" }, "sha512-nG1btxg0HXuLzulIqAg9NnxWyewZNrA0iLe82HdniaJjeWLORreGo4cEEJz1SjbDpQuPEY562XGkTO2DLKK5mA=="], - - "@remotion/compositor-linux-x64-gnu": ["@remotion/compositor-linux-x64-gnu@4.0.483", "", { "os": "linux", "cpu": "x64" }, "sha512-CV4h6r2rNYh4P8utUzP6RM2vW2vq43nA3IvVOwRSuh9LwJh/7rwG53Oco4HanY/sstaNuymGpT57wdXwONU5CQ=="], - - "@remotion/compositor-linux-x64-musl": ["@remotion/compositor-linux-x64-musl@4.0.483", "", { "os": "linux", "cpu": "x64" }, "sha512-moKvavbkoz5nteJZA4K6LMgTTlewhwIbtO7DYARZ3LK3ClGUKnYfFcmaPS15hMun02JPTOMIWbrlaszdR75mxA=="], - - "@remotion/compositor-win32-x64-msvc": ["@remotion/compositor-win32-x64-msvc@4.0.483", "", { "os": "win32", "cpu": "x64" }, "sha512-eDpWe6Vy7ySHugwxlgaeohqdBwR1etxiymXzT13cgbPw2+p6d55z1tJ7VPTXyfu0o+UdyRTauWqD4msoxN0wow=="], - - "@remotion/licensing": ["@remotion/licensing@4.0.483", "", {}, "sha512-GRtjykrxMmB5Cjpq1oVqeYIRXI95vid6afX0LTLfp1shD6MR4lTZRoRuopxrrZp1E4XFGXoY64b6dlIudgTyBQ=="], - - "@remotion/media-parser": ["@remotion/media-parser@4.0.483", "", {}, "sha512-iva9Eof7QQX+3hGxH/N8pGi80wgdGuzOr825Zn7IuEe7IWdtRYWlFpCEghmyfhrwgaWa7RY51wg77ycR3c3nRg=="], - - "@remotion/media-utils": ["@remotion/media-utils@4.0.483", "", { "dependencies": { "mediabunny": "1.47.0", "remotion": "4.0.483" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-4T4WQh/U95kCBzgmz/EL/HL8Zeox/AKAL5ufsehrZFgwlcvH1EsKNJH/RWaAtNPRLF+pskEOgFzPYaczHeI8hg=="], - - "@remotion/player": ["@remotion/player@4.0.483", "", { "dependencies": { "remotion": "4.0.483" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-yyIQ9vinUqqS0fQeL52bPCWQIr8qDXCqQ4iys8P7dSZncdu8V29p4W2a0/4eKV8bv5+mjnJQ/U6nl9NxBF1hdA=="], - - "@remotion/renderer": ["@remotion/renderer@4.0.483", "", { "dependencies": { "@remotion/licensing": "4.0.483", "@remotion/streaming": "4.0.483", "execa": "5.1.1", "remotion": "4.0.483", "source-map": "0.8.0-beta.0", "ws": "8.21.0" }, "optionalDependencies": { "@remotion/compositor-darwin-arm64": "4.0.483", "@remotion/compositor-darwin-x64": "4.0.483", "@remotion/compositor-linux-arm64-gnu": "4.0.483", "@remotion/compositor-linux-arm64-musl": "4.0.483", "@remotion/compositor-linux-x64-gnu": "4.0.483", "@remotion/compositor-linux-x64-musl": "4.0.483", "@remotion/compositor-win32-x64-msvc": "4.0.483" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-eSKdQqm8rcl+GNyOhFsBgcPYWMcxTJWHL5xaNrd037piCaL3sdJ57OEO/AbfEvvOO14zwUvlsONKjlkLlEVyKg=="], - - "@remotion/streaming": ["@remotion/streaming@4.0.483", "", {}, "sha512-96rqrk+l5AfriHOqmqxMn8rI6UJfFY7r5UMDZoSKqXWzTOwj+0VWHTRl9ilZQMXhYACaMSA/5yrL9jgQEK8Yuw=="], - - "@remotion/studio": ["@remotion/studio@4.0.483", "", { "dependencies": { "@jridgewell/trace-mapping": "0.3.31", "@remotion/canvas-capture": "4.0.483", "@remotion/media-utils": "4.0.483", "@remotion/player": "4.0.483", "@remotion/renderer": "4.0.483", "@remotion/studio-shared": "4.0.483", "@remotion/timeline-utils": "4.0.483", "@remotion/web-renderer": "4.0.483", "@remotion/zod-types": "4.0.483", "mediabunny": "1.47.0", "memfs": "3.4.3", "open": "8.4.2", "remotion": "4.0.483", "semver": "7.5.3", "zod": "4.3.6" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-gNa1Lw8NmHl0jwFb5fk7rzA+WFTJQpGDT/49A38t9jpEwoF+h1mKTgY8gA202apzjBHrEECdFE450npnBOUpUw=="], - - "@remotion/studio-server": ["@remotion/studio-server@4.0.483", "", { "dependencies": { "@babel/parser": "7.24.1", "@babel/types": "7.24.0", "@remotion/bundler": "4.0.483", "@remotion/renderer": "4.0.483", "@remotion/studio-shared": "4.0.483", "memfs": "3.4.3", "open": "8.4.2", "prettier": "3.8.1", "recast": "0.23.11", "remotion": "4.0.483", "semver": "7.5.3" } }, "sha512-2FSLbVN5N8bgtQPX+RQRbis557tJJnVTOZuEBZndfC9NOoPdARlSgEnwVer9tBNczUlc6B3KrPxyPSlS3UjL+Q=="], - - "@remotion/studio-shared": ["@remotion/studio-shared@4.0.483", "", { "dependencies": { "remotion": "4.0.483" } }, "sha512-aXxBYUgsWgphHVq7T7bz+ICMGzfii7pcX1IxS5hbLMLJHqlDtk9g+qcxm4kJ2Fjj/Gb5gERKiNzYym8WZTIM2Q=="], - - "@remotion/timeline-utils": ["@remotion/timeline-utils@4.0.483", "", { "dependencies": { "mediabunny": "1.47.0" } }, "sha512-KTTMdpNA5uRLX+iisAITO+V9cJBk17F8EWvuUnAEVmAFOQTbGIyPI9HNw5pZmL7SlzOJdFjAtksTjipeYGkEug=="], - - "@remotion/web-renderer": ["@remotion/web-renderer@4.0.483", "", { "dependencies": { "@mediabunny/aac-encoder": "1.47.0", "@mediabunny/flac-encoder": "1.47.0", "@mediabunny/mp3-encoder": "1.47.0", "@remotion/licensing": "4.0.483", "mediabunny": "1.47.0", "remotion": "4.0.483" }, "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" } }, "sha512-14iURfVWA/hcF/rJvkid1ZR5nmnVhkTIf071FabCFi6kdViOSVBugSglJ8tUPvWVbWmxlXGDGQD9CSU18IATww=="], - - "@remotion/zod-types": ["@remotion/zod-types@4.0.483", "", { "dependencies": { "remotion": "4.0.483" }, "peerDependencies": { "zod": "4.3.6" } }, "sha512-KIVYIzFpZBDB0wxGGQu5tDBr4XOYRzvrPXjmo6O/FI5Xx7O8hgvJmBs9VDkEwonAOft86sg79hI19F1DTX1p4w=="], - - "@rspack/binding": ["@rspack/binding@1.7.11", "", { "optionalDependencies": { "@rspack/binding-darwin-arm64": "1.7.11", "@rspack/binding-darwin-x64": "1.7.11", "@rspack/binding-linux-arm64-gnu": "1.7.11", "@rspack/binding-linux-arm64-musl": "1.7.11", "@rspack/binding-linux-x64-gnu": "1.7.11", "@rspack/binding-linux-x64-musl": "1.7.11", "@rspack/binding-wasm32-wasi": "1.7.11", "@rspack/binding-win32-arm64-msvc": "1.7.11", "@rspack/binding-win32-ia32-msvc": "1.7.11", "@rspack/binding-win32-x64-msvc": "1.7.11" } }, "sha512-2MGdy2s2HimsDT444Bp5XnALzNRxuBNc7y0JzyuqKbHBywd4x2NeXyhWXXoxufaCFu5PBc9Qq9jyfjW2Aeh06Q=="], - - "@rspack/binding-darwin-arm64": ["@rspack/binding-darwin-arm64@1.7.11", "", { "os": "darwin", "cpu": "arm64" }, "sha512-oduECiZVqbO5zlVw+q7Vy65sJFth99fWPTyucwvLJJtJkPL5n17Uiql2cYP6Ijn0pkqtf1SXgK8WjiKLG5bIig=="], - - "@rspack/binding-darwin-x64": ["@rspack/binding-darwin-x64@1.7.11", "", { "os": "darwin", "cpu": "x64" }, "sha512-a1+TtTE9ap6RalgFi7FGIgkJP6O4Vy6ctv+9WGJy53E4kuqHR0RygzaiVxCI/GMc/vBT9vY23hyrpWb3d1vtXA=="], - - "@rspack/binding-linux-arm64-gnu": ["@rspack/binding-linux-arm64-gnu@1.7.11", "", { "os": "linux", "cpu": "arm64" }, "sha512-P0QrGRPbTWu6RKWfN0bDtbnEps3rXH0MWIMreZABoUrVmNQKtXR6e73J3ub6a+di5s2+K0M2LJ9Bh2/H4UsDUA=="], - - "@rspack/binding-linux-arm64-musl": ["@rspack/binding-linux-arm64-musl@1.7.11", "", { "os": "linux", "cpu": "arm64" }, "sha512-6ky7R43VMjWwmx3Yx7Jl7faLBBMAgMDt+/bN35RgwjiPgsIByz65EwytUVuW9rikB43BGHvA/eqlnjLrUzNBqw=="], - - "@rspack/binding-linux-x64-gnu": ["@rspack/binding-linux-x64-gnu@1.7.11", "", { "os": "linux", "cpu": "x64" }, "sha512-cuOJMfCOvb2Wgsry5enXJ3iT1FGUjdPqtGUBVupQlEG4ntSYsQ2PtF4wIDVasR3wdxC5nQbipOrDiN/u6fYsdQ=="], - - "@rspack/binding-linux-x64-musl": ["@rspack/binding-linux-x64-musl@1.7.11", "", { "os": "linux", "cpu": "x64" }, "sha512-CoK37hva4AmHGh3VCsQXmGr40L36m1/AdnN5LEjUX6kx5rEH7/1nEBN6Ii72pejqDVvk9anEROmPDiPw10tpFg=="], - - "@rspack/binding-wasm32-wasi": ["@rspack/binding-wasm32-wasi@1.7.11", "", { "dependencies": { "@napi-rs/wasm-runtime": "1.0.7" }, "cpu": "none" }, "sha512-OtrmnPUVJMxjNa3eDMfHyPdtlLRmmp/aIm0fQHlAOATbZvlGm12q7rhPW5BXTu1yh+1rQ1/uqvz+SzKEZXuJaQ=="], - - "@rspack/binding-win32-arm64-msvc": ["@rspack/binding-win32-arm64-msvc@1.7.11", "", { "os": "win32", "cpu": "arm64" }, "sha512-lObFW6e5lCWNgTBNwT//yiEDbsxm9QG4BYUojqeXxothuzJ/L6ibXz6+gLMvbOvLGV3nKgkXmx8GvT9WDKR0mA=="], - - "@rspack/binding-win32-ia32-msvc": ["@rspack/binding-win32-ia32-msvc@1.7.11", "", { "os": "win32", "cpu": "ia32" }, "sha512-0pYGnZd8PPqNR68zQ8skamqNAXEA1sUfXuAdYcknIIRq2wsbiwFzIc0Pov1cIfHYab37G7sSIPBiOUdOWF5Ivw=="], - - "@rspack/binding-win32-x64-msvc": ["@rspack/binding-win32-x64-msvc@1.7.11", "", { "os": "win32", "cpu": "x64" }, "sha512-EeQXayoQk/uBkI3pdoXfQBXNIUrADq56L3s/DFyM2pJeUDrWmhfIw2UFIGkYPTMSCo8F2JcdcGM32FGJrSnU0Q=="], - - "@rspack/core": ["@rspack/core@1.7.11", "", { "dependencies": { "@module-federation/runtime-tools": "0.22.0", "@rspack/binding": "1.7.11", "@rspack/lite-tapable": "1.1.0" }, "peerDependencies": { "@swc/helpers": ">=0.5.1" }, "optionalPeers": ["@swc/helpers"] }, "sha512-rsD9b+Khmot5DwCMiB3cqTQo53ioPG3M/A7BySu8+0+RS7GCxKm+Z+mtsjtG/vsu4Tn2tcqCdZtA3pgLoJB+ew=="], - - "@rspack/lite-tapable": ["@rspack/lite-tapable@1.1.0", "", {}, "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw=="], - - "@rspack/plugin-react-refresh": ["@rspack/plugin-react-refresh@1.6.1", "", { "dependencies": { "error-stack-parser": "^2.1.4", "html-entities": "^2.6.0" }, "peerDependencies": { "react-refresh": ">=0.10.0 <1.0.0", "webpack-hot-middleware": "2.x" }, "optionalPeers": ["webpack-hot-middleware"] }, "sha512-eqqW5645VG3CzGzFgNg5HqNdHVXY+567PGjtDhhrM8t67caxmsSzRmT5qfoEIfBcGgFkH9vEg7kzXwmCYQdQDw=="], - - "@tybys/wasm-util": ["@tybys/wasm-util@0.10.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg=="], - - "@types/dom-mediacapture-transform": ["@types/dom-mediacapture-transform@0.1.11", "", { "dependencies": { "@types/dom-webcodecs": "*" } }, "sha512-Y2p+nGf1bF2XMttBnsVPHUWzRRZzqUoJAKmiP10b5umnO6DDrWI0BrGDJy1pOHoOULVmGSfFNkQrAlC5dcj6nQ=="], - - "@types/dom-webcodecs": ["@types/dom-webcodecs@0.1.13", "", {}, "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ=="], - - "@types/eslint": ["@types/eslint@9.6.1", "", { "dependencies": { "@types/estree": "*", "@types/json-schema": "*" } }, "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag=="], - - "@types/eslint-scope": ["@types/eslint-scope@3.7.7", "", { "dependencies": { "@types/eslint": "*", "@types/estree": "*" } }, "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg=="], - - "@types/estree": ["@types/estree@1.0.9", "", {}, "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg=="], - - "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], - - "@types/node": ["@types/node@26.0.1", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-fc3KiUoBt6kie0N9bIW3E47vZsuaMf0PM2AaUpLCLT0s/LvX1nxAim6Fc049cNxODPpGm6qRAuUOB86SkRuPQw=="], - - "@types/react": ["@types/react@19.2.17", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw=="], - - "@types/react-dom": ["@types/react-dom@19.2.3", "", { "peerDependencies": { "@types/react": "^19.2.0" } }, "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ=="], - - "@webassemblyjs/ast": ["@webassemblyjs/ast@1.14.1", "", { "dependencies": { "@webassemblyjs/helper-numbers": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ=="], - - "@webassemblyjs/floating-point-hex-parser": ["@webassemblyjs/floating-point-hex-parser@1.13.2", "", {}, "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA=="], - - "@webassemblyjs/helper-api-error": ["@webassemblyjs/helper-api-error@1.13.2", "", {}, "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ=="], - - "@webassemblyjs/helper-buffer": ["@webassemblyjs/helper-buffer@1.14.1", "", {}, "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA=="], - - "@webassemblyjs/helper-numbers": ["@webassemblyjs/helper-numbers@1.13.2", "", { "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.13.2", "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA=="], - - "@webassemblyjs/helper-wasm-bytecode": ["@webassemblyjs/helper-wasm-bytecode@1.13.2", "", {}, "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA=="], - - "@webassemblyjs/helper-wasm-section": ["@webassemblyjs/helper-wasm-section@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/wasm-gen": "1.14.1" } }, "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw=="], - - "@webassemblyjs/ieee754": ["@webassemblyjs/ieee754@1.13.2", "", { "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw=="], - - "@webassemblyjs/leb128": ["@webassemblyjs/leb128@1.13.2", "", { "dependencies": { "@xtuc/long": "4.2.2" } }, "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw=="], - - "@webassemblyjs/utf8": ["@webassemblyjs/utf8@1.13.2", "", {}, "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ=="], - - "@webassemblyjs/wasm-edit": ["@webassemblyjs/wasm-edit@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/helper-wasm-section": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-opt": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1", "@webassemblyjs/wast-printer": "1.14.1" } }, "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ=="], - - "@webassemblyjs/wasm-gen": ["@webassemblyjs/wasm-gen@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg=="], - - "@webassemblyjs/wasm-opt": ["@webassemblyjs/wasm-opt@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1" } }, "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw=="], - - "@webassemblyjs/wasm-parser": ["@webassemblyjs/wasm-parser@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-api-error": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ=="], - - "@webassemblyjs/wast-printer": ["@webassemblyjs/wast-printer@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw=="], - - "@xtuc/ieee754": ["@xtuc/ieee754@1.2.0", "", {}, "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA=="], - - "@xtuc/long": ["@xtuc/long@4.2.2", "", {}, "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="], - - "acorn": ["acorn@8.17.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg=="], - - "acorn-import-phases": ["acorn-import-phases@1.0.4", "", { "peerDependencies": { "acorn": "^8.14.0" } }, "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ=="], - - "ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], - - "ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="], - - "ajv-keywords": ["ajv-keywords@5.1.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3" }, "peerDependencies": { "ajv": "^8.8.2" } }, "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw=="], - - "ast-types": ["ast-types@0.16.1", "", { "dependencies": { "tslib": "^2.0.1" } }, "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg=="], - - "baseline-browser-mapping": ["baseline-browser-mapping@2.10.40", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-BSSLZ9/Cjjv7Gtj5B68ZzXcXUg8iOf3fme+FCuh8rC/Go+Kmh8cox7M3A8dolou16s64QjLPOSdngh7GxXvkSw=="], - - "browserslist": ["browserslist@4.28.4", "", { "dependencies": { "baseline-browser-mapping": "^2.10.38", "caniuse-lite": "^1.0.30001799", "electron-to-chromium": "^1.5.376", "node-releases": "^2.0.48", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-MTc8i/x9jBQd1iMw2CFGS+rwMa07eYjLR0CCTLDACl9xhxy+nIs3KeML/biicXtk9JrZ6dnnTatmc7ErPXIxqw=="], - - "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="], - - "caniuse-lite": ["caniuse-lite@1.0.30001799", "", {}, "sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw=="], - - "chrome-trace-event": ["chrome-trace-event@1.0.4", "", {}, "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ=="], - - "commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="], - - "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], - - "css-loader": ["css-loader@7.1.4", "", { "dependencies": { "icss-utils": "^5.1.0", "postcss": "^8.4.40", "postcss-modules-extract-imports": "^3.1.0", "postcss-modules-local-by-default": "^4.0.5", "postcss-modules-scope": "^3.2.0", "postcss-modules-values": "^4.0.0", "postcss-value-parser": "^4.2.0", "semver": "^7.6.3" }, "peerDependencies": { "@rspack/core": "0.x || ^1.0.0 || ^2.0.0-0", "webpack": "^5.27.0" }, "optionalPeers": ["@rspack/core", "webpack"] }, "sha512-vv3J9tlOl04WjiMvHQI/9tmIrCxVrj6PFbHemBB1iihpeRbi/I4h033eoFIhwxBBqLhI0KYFS7yvynBFhIZfTw=="], - - "cssesc": ["cssesc@3.0.0", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="], - - "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="], - - "define-lazy-prop": ["define-lazy-prop@2.0.0", "", {}, "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="], - - "dotenv": ["dotenv@17.3.1", "", {}, "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA=="], - - "electron-to-chromium": ["electron-to-chromium@1.5.379", "", {}, "sha512-v/qV5aV5EUA2pGilzUCq5/eyOloZAqDZBu9UMBIzgPpLlprjSR6zswsWBTv0KpqxLGUAZEwhO95ZCt7srymNVA=="], - - "enhanced-resolve": ["enhanced-resolve@5.24.1", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-7DdUaTjmNwMcH2gLr1qycesKII3BK4RLy/mdAb7x10Lq7bR4aNKHt1BR1ZALSv0rPM/hF5wYF0PhGop/rJm8vw=="], - - "error-stack-parser": ["error-stack-parser@2.1.4", "", { "dependencies": { "stackframe": "^1.3.4" } }, "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ=="], - - "es-module-lexer": ["es-module-lexer@2.1.0", "", {}, "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ=="], - - "esbuild": ["esbuild@0.28.1", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.1", "@esbuild/android-arm": "0.28.1", "@esbuild/android-arm64": "0.28.1", "@esbuild/android-x64": "0.28.1", "@esbuild/darwin-arm64": "0.28.1", "@esbuild/darwin-x64": "0.28.1", "@esbuild/freebsd-arm64": "0.28.1", "@esbuild/freebsd-x64": "0.28.1", "@esbuild/linux-arm": "0.28.1", "@esbuild/linux-arm64": "0.28.1", "@esbuild/linux-ia32": "0.28.1", "@esbuild/linux-loong64": "0.28.1", "@esbuild/linux-mips64el": "0.28.1", "@esbuild/linux-ppc64": "0.28.1", "@esbuild/linux-riscv64": "0.28.1", "@esbuild/linux-s390x": "0.28.1", "@esbuild/linux-x64": "0.28.1", "@esbuild/netbsd-arm64": "0.28.1", "@esbuild/netbsd-x64": "0.28.1", "@esbuild/openbsd-arm64": "0.28.1", "@esbuild/openbsd-x64": "0.28.1", "@esbuild/openharmony-arm64": "0.28.1", "@esbuild/sunos-x64": "0.28.1", "@esbuild/win32-arm64": "0.28.1", "@esbuild/win32-ia32": "0.28.1", "@esbuild/win32-x64": "0.28.1" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw=="], - - "escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="], - - "eslint-scope": ["eslint-scope@5.1.1", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw=="], - - "esprima": ["esprima@4.0.1", "", { "bin": { "esparse": "./bin/esparse.js", "esvalidate": "./bin/esvalidate.js" } }, "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="], - - "esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="], - - "estraverse": ["estraverse@4.3.0", "", {}, "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="], - - "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="], - - "execa": ["execa@5.1.1", "", { "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.1", "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="], - - "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], - - "fast-uri": ["fast-uri@3.1.2", "", {}, "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ=="], - - "fs-monkey": ["fs-monkey@1.0.3", "", {}, "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q=="], - - "get-stream": ["get-stream@6.0.1", "", {}, "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg=="], - - "glob-to-regexp": ["glob-to-regexp@0.4.1", "", {}, "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="], - - "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], - - "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], - - "html-entities": ["html-entities@2.6.0", "", {}, "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ=="], - - "human-signals": ["human-signals@2.1.0", "", {}, "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw=="], - - "icss-utils": ["icss-utils@5.1.0", "", { "peerDependencies": { "postcss": "^8.1.0" } }, "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA=="], - - "is-docker": ["is-docker@2.2.1", "", { "bin": { "is-docker": "cli.js" } }, "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="], - - "is-stream": ["is-stream@2.0.1", "", {}, "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="], - - "is-wsl": ["is-wsl@2.2.0", "", { "dependencies": { "is-docker": "^2.0.0" } }, "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww=="], - - "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], - - "jest-worker": ["jest-worker@27.5.1", "", { "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" } }, "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg=="], - - "json-parse-even-better-errors": ["json-parse-even-better-errors@2.3.1", "", {}, "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="], - - "json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="], - - "kleur": ["kleur@3.0.3", "", {}, "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w=="], - - "loader-runner": ["loader-runner@4.3.2", "", {}, "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w=="], - - "lodash.sortby": ["lodash.sortby@4.7.0", "", {}, "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA=="], - - "lru-cache": ["lru-cache@6.0.0", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="], - - "mediabunny": ["mediabunny@1.47.0", "", { "dependencies": { "@types/dom-mediacapture-transform": "^0.1.11", "@types/dom-webcodecs": "0.1.13" } }, "sha512-XQMZAcaKPkJ7hQ/Q2fvBdl3ZazQl2WVxDysUbJWh4PuAnLoerdsQBdPTDWdUdK6hh26LQ8Ue94MLLnmpWvlUYg=="], - - "memfs": ["memfs@3.4.3", "", { "dependencies": { "fs-monkey": "1.0.3" } }, "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg=="], - - "merge-stream": ["merge-stream@2.0.0", "", {}, "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="], - - "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], - - "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], - - "mimic-fn": ["mimic-fn@2.1.0", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="], - - "minimist": ["minimist@1.2.6", "", {}, "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="], - - "nanoid": ["nanoid@3.3.15", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA=="], - - "neo-async": ["neo-async@2.6.2", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="], - - "node-releases": ["node-releases@2.0.50", "", {}, "sha512-J6l92tKHX6w8Jy5nO1Vuc01NoIiRGi/d6qBKVxh+IQ8Cr3b6HbVNfKiF8ZpFKufTwpwxMmce2W3iQZ861ZRyTg=="], - - "npm-run-path": ["npm-run-path@4.0.1", "", { "dependencies": { "path-key": "^3.0.0" } }, "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw=="], - - "onetime": ["onetime@5.1.2", "", { "dependencies": { "mimic-fn": "^2.1.0" } }, "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg=="], - - "open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="], - - "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], - - "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], - - "postcss": ["postcss@8.5.15", "", { "dependencies": { "nanoid": "^3.3.12", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A=="], - - "postcss-modules-extract-imports": ["postcss-modules-extract-imports@3.1.0", "", { "peerDependencies": { "postcss": "^8.1.0" } }, "sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q=="], - - "postcss-modules-local-by-default": ["postcss-modules-local-by-default@4.2.0", "", { "dependencies": { "icss-utils": "^5.0.0", "postcss-selector-parser": "^7.0.0", "postcss-value-parser": "^4.1.0" }, "peerDependencies": { "postcss": "^8.1.0" } }, "sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw=="], - - "postcss-modules-scope": ["postcss-modules-scope@3.2.1", "", { "dependencies": { "postcss-selector-parser": "^7.0.0" }, "peerDependencies": { "postcss": "^8.1.0" } }, "sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA=="], - - "postcss-modules-values": ["postcss-modules-values@4.0.0", "", { "dependencies": { "icss-utils": "^5.0.0" }, "peerDependencies": { "postcss": "^8.1.0" } }, "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ=="], - - "postcss-selector-parser": ["postcss-selector-parser@7.1.4", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-HeP7D2wyhkR+XaK6v4W8oRF62Dsz4flyuczALJp61GckGm42u1saSSJ/0auvcBqxs3jMRFEcPK34At/0JBKdOg=="], - - "postcss-value-parser": ["postcss-value-parser@4.2.0", "", {}, "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="], - - "prettier": ["prettier@3.8.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="], - - "prompts": ["prompts@2.4.2", "", { "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" } }, "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q=="], - - "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="], - - "react": ["react@19.2.7", "", {}, "sha512-HNe9WslTbXmFK8o8cmwgAeJFSBvt1bPdHCVKtaaV+WlAN36mpT4hcRpwbf3fY56ar2oIXzsBpOAiIRHAdY0OlQ=="], - - "react-dom": ["react-dom@19.2.7", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.7" } }, "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ=="], - - "react-refresh": ["react-refresh@0.18.0", "", {}, "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw=="], - - "recast": ["recast@0.23.11", "", { "dependencies": { "ast-types": "^0.16.1", "esprima": "~4.0.0", "source-map": "~0.6.1", "tiny-invariant": "^1.3.3", "tslib": "^2.0.1" } }, "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA=="], - - "remotion": ["remotion@4.0.483", "", { "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" } }, "sha512-lf4xq4Twn75TQeTavFLrTE4zdck7EKBSx07ZrPv4om40Sist+3G0kq7NNzSjMeJ6G2Wx6vI+0oICD/vv4sGWtg=="], - - "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], - - "scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="], - - "schema-utils": ["schema-utils@4.3.3", "", { "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.9.0", "ajv-formats": "^2.1.1", "ajv-keywords": "^5.1.0" } }, "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA=="], - - "semver": ["semver@7.5.3", "", { "dependencies": { "lru-cache": "^6.0.0" }, "bin": { "semver": "bin/semver.js" } }, "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ=="], - - "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], - - "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], - - "signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="], - - "sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="], - - "source-map": ["source-map@0.8.0-beta.0", "", { "dependencies": { "whatwg-url": "^7.0.0" } }, "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA=="], - - "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], - - "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="], - - "stackframe": ["stackframe@1.3.4", "", {}, "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw=="], - - "strip-final-newline": ["strip-final-newline@2.0.0", "", {}, "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA=="], - - "style-loader": ["style-loader@4.0.0", "", { "peerDependencies": { "webpack": "^5.27.0" } }, "sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA=="], - - "supports-color": ["supports-color@8.1.1", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="], - - "tapable": ["tapable@2.3.3", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="], - - "terser": ["terser@5.48.0", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": { "terser": "bin/terser" } }, "sha512-J/9An6vs9Us6wKRriSFXBWdRZapREHqFzdNUKk0pmu804EMR6dr6winwo7e5JDxN4xahxQsuysyYFwlwj4XN/Q=="], - - "terser-webpack-plugin": ["terser-webpack-plugin@5.6.1", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", "terser": "^5.31.1" }, "peerDependencies": { "webpack": "^5.1.0" } }, "sha512-201R5j+sJpK8nFWwKVyNfZot8FaJbLZDq5evriVzbV1wDtSXDjRUDRfJzHpAaxFDMEhsZL1QkeqM61wgsS3KaQ=="], - - "tiny-invariant": ["tiny-invariant@1.3.3", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="], - - "to-fast-properties": ["to-fast-properties@2.0.0", "", {}, "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog=="], - - "tr46": ["tr46@1.0.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA=="], - - "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], - - "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - - "undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="], - - "update-browserslist-db": ["update-browserslist-db@1.2.3", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w=="], - - "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], - - "watchpack": ["watchpack@2.5.2", "", { "dependencies": { "graceful-fs": "^4.1.2" } }, "sha512-6i/00NBjP4yGPs+caKSyRfpTF/8Torsu0MOW3mMzIbhgISFder8i7xbqgHlLMwJrdiN8ndBV3UA1/AfzPSr+jg=="], - - "webidl-conversions": ["webidl-conversions@4.0.2", "", {}, "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg=="], - - "webpack": ["webpack@5.105.0", "", { "dependencies": { "@types/eslint-scope": "^3.7.7", "@types/estree": "^1.0.8", "@types/json-schema": "^7.0.15", "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.15.0", "acorn-import-phases": "^1.0.3", "browserslist": "^4.28.1", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.19.0", "es-module-lexer": "^2.0.0", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.3.1", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", "terser-webpack-plugin": "^5.3.16", "watchpack": "^2.5.1", "webpack-sources": "^3.3.3" }, "bin": { "webpack": "bin/webpack.js" } }, "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw=="], - - "webpack-sources": ["webpack-sources@3.5.0", "", {}, "sha512-HPuy+uuoTCaaoEoI1LQ3JN9+vrPBvEesnnX1jADHy728cHSMlq4wUc4afYqahq2B1mhQVZxCXOkNTnXltr+2vQ=="], - - "whatwg-url": ["whatwg-url@7.1.0", "", { "dependencies": { "lodash.sortby": "^4.7.0", "tr46": "^1.0.1", "webidl-conversions": "^4.0.2" } }, "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg=="], - - "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], - - "ws": ["ws@8.21.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g=="], - - "yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="], - - "zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="], - - "css-loader/semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], - - "esrecurse/estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="], - - "recast/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], - - "source-map-support/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], - } -} diff --git a/artifacts/glm52-rise-video/out/flash-share.mp4 b/artifacts/glm52-rise-video/out/flash-share.mp4 deleted file mode 100644 index 3e182b4c11..0000000000 Binary files a/artifacts/glm52-rise-video/out/flash-share.mp4 and /dev/null differ diff --git a/artifacts/glm52-rise-video/out/glm-52-broke-out.mp4 b/artifacts/glm52-rise-video/out/glm-52-broke-out.mp4 deleted file mode 100644 index eb456d0345..0000000000 Binary files a/artifacts/glm52-rise-video/out/glm-52-broke-out.mp4 and /dev/null differ diff --git a/artifacts/glm52-rise-video/out/june-totals.png b/artifacts/glm52-rise-video/out/june-totals.png deleted file mode 100644 index 678376dbed..0000000000 Binary files a/artifacts/glm52-rise-video/out/june-totals.png and /dev/null differ diff --git a/artifacts/glm52-rise-video/out/minimax-climb.mp4 b/artifacts/glm52-rise-video/out/minimax-climb.mp4 deleted file mode 100644 index 8ca6b678ae..0000000000 Binary files a/artifacts/glm52-rise-video/out/minimax-climb.mp4 and /dev/null differ diff --git a/artifacts/glm52-rise-video/out/novel-1984.mp4 b/artifacts/glm52-rise-video/out/novel-1984.mp4 deleted file mode 100644 index b94a899257..0000000000 Binary files a/artifacts/glm52-rise-video/out/novel-1984.mp4 and /dev/null differ diff --git a/artifacts/glm52-rise-video/out/nz-sheep.mp4 b/artifacts/glm52-rise-video/out/nz-sheep.mp4 deleted file mode 100644 index 64d382da26..0000000000 Binary files a/artifacts/glm52-rise-video/out/nz-sheep.mp4 and /dev/null differ diff --git a/artifacts/glm52-rise-video/package.json b/artifacts/glm52-rise-video/package.json deleted file mode 100644 index fb08574eb2..0000000000 --- a/artifacts/glm52-rise-video/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "glm52-rise-video", - "private": true, - "type": "module", - "scripts": { - "render": "remotion render src/index.tsx GLM52Rise out/glm-52-broke-out.mp4 --codec h264 --pixel-format yuv420p", - "render:sheep": "remotion render src/index.tsx NZSheep out/nz-sheep.mp4 --codec h264 --pixel-format yuv420p", - "render:novel": "remotion render src/index.tsx NovelTokens out/novel-1984.mp4 --codec h264 --pixel-format yuv420p", - "render:flash": "remotion render src/index.tsx FlashShare out/flash-share.mp4 --codec h264 --pixel-format yuv420p", - "render:minimax": "remotion render src/index.tsx MiniMaxClimb out/minimax-climb.mp4 --codec h264 --pixel-format yuv420p", - "still:june": "remotion still src/index.tsx JuneTotals out/june-totals.png --frame=0" - }, - "dependencies": { - "@remotion/cli": "^4.0.384", - "react": "^19.2.3", - "react-dom": "^19.2.3", - "remotion": "^4.0.384" - }, - "devDependencies": { - "@types/react": "^19.2.8", - "@types/react-dom": "^19.2.3", - "typescript": "^5.8.2" - } -} diff --git a/artifacts/glm52-rise-video/public/book.jpg b/artifacts/glm52-rise-video/public/book.jpg deleted file mode 100644 index 662ca244cd..0000000000 Binary files a/artifacts/glm52-rise-video/public/book.jpg and /dev/null differ diff --git a/artifacts/glm52-rise-video/public/sheep.jpg b/artifacts/glm52-rise-video/public/sheep.jpg deleted file mode 100644 index d9ed232a89..0000000000 Binary files a/artifacts/glm52-rise-video/public/sheep.jpg and /dev/null differ diff --git a/artifacts/glm52-rise-video/src/data.ts b/artifacts/glm52-rise-video/src/data.ts deleted file mode 100644 index d9fab2a631..0000000000 --- a/artifacts/glm52-rise-video/src/data.ts +++ /dev/null @@ -1,156 +0,0 @@ -// Verified against the production opencode-stats PlanetScale DB. -// Scope: tier='Go' (OpenCode Go), dataset='zen', client='all', source='all', grain='day'. -// metric = total_tokens. Daily token volume per model; GLM-5.2 (zhipu) launched Jun 17. -// Segments per day (tokens): glm-5.2, deepseek-v4-flash, deepseek-v4-pro, minimax-m3, all others. - -export type Day = { - date: string - total: number - glm: number - dsf: number - dsp: number - mm: number - others: number -} - -export const days: Day[] = [ - { - date: "Jun 12", - total: 2_283_799_449_383, - glm: 0, - dsf: 1_176_701_653_509, - dsp: 569_527_034_307, - mm: 159_016_250_684, - others: 378_554_510_883, - }, - { - date: "Jun 13", - total: 2_008_462_388_420, - glm: 0, - dsf: 995_338_131_997, - dsp: 445_817_536_548, - mm: 211_743_241_967, - others: 355_563_477_908, - }, - { - date: "Jun 14", - total: 2_007_785_405_251, - glm: 0, - dsf: 983_954_176_228, - dsp: 428_151_999_341, - mm: 262_476_527_930, - others: 333_202_701_752, - }, - { - date: "Jun 15", - total: 2_694_736_103_062, - glm: 0, - dsf: 1_255_893_953_859, - dsp: 632_223_338_376, - mm: 352_507_442_991, - others: 454_111_367_836, - }, - { - date: "Jun 16", - total: 2_838_153_758_908, - glm: 0, - dsf: 1_336_625_283_800, - dsp: 676_480_415_730, - mm: 305_268_829_013, - others: 519_779_230_365, - }, - { - date: "Jun 17", - total: 2_778_964_711_109, - glm: 70_095_977_043, - dsf: 1_339_831_523_555, - dsp: 660_414_395_220, - mm: 251_302_096_157, - others: 457_320_719_134, - }, - { - date: "Jun 18", - total: 2_806_992_430_656, - glm: 201_130_231_172, - dsf: 1_295_599_996_869, - dsp: 595_665_008_776, - mm: 322_205_104_324, - others: 392_392_089_515, - }, - { - date: "Jun 19", - total: 2_419_611_630_232, - glm: 199_086_413_910, - dsf: 1_115_750_468_802, - dsp: 475_965_869_304, - mm: 303_586_698_735, - others: 325_222_179_481, - }, - { - date: "Jun 20", - total: 2_188_278_916_865, - glm: 193_931_516_396, - dsf: 1_050_194_681_012, - dsp: 395_303_435_278, - mm: 281_998_000_337, - others: 266_851_283_842, - }, - { - date: "Jun 21", - total: 2_042_309_961_344, - glm: 181_894_043_118, - dsf: 985_164_570_580, - dsp: 368_194_079_542, - mm: 259_812_551_324, - others: 247_244_716_780, - }, - { - date: "Jun 22", - total: 2_893_934_325_663, - glm: 301_759_048_475, - dsf: 1_298_124_282_989, - dsp: 581_012_596_194, - mm: 371_581_117_839, - others: 341_457_280_166, - }, - { - date: "Jun 23", - total: 3_109_009_321_480, - glm: 282_277_235_158, - dsf: 1_423_571_678_821, - dsp: 627_374_654_587, - mm: 429_416_300_508, - others: 346_369_452_406, - }, - { - date: "Jun 24", - total: 2_939_149_971_595, - glm: 256_497_442_533, - dsf: 1_373_583_023_234, - dsp: 601_270_997_775, - mm: 391_586_493_231, - others: 316_212_014_822, - }, - { - date: "Jun 25", - total: 3_029_641_552_948, - glm: 256_279_657_734, - dsf: 1_481_084_002_776, - dsp: 602_077_167_287, - mm: 375_985_302_874, - others: 314_215_422_277, - }, -] - -export const launchIndex = 5 // Jun 17, first day of GLM-5.2 usage -// GLM-5.2 weekly token volume, Jun 19-25 (sum of glm): 1,671,725,357,324 = 1.67T -export const glmWeekTokensT = 1.672 - -// stacked segments, bottom -> top. GLM-5.2 is the hero (blue); the rest are the field it cut into. -export const segments = [ - { key: "glm", label: "GLM-5.2", color: "#3b5cf6", hero: true }, - { key: "dsf", label: "deepseek-v4-flash", color: "#9ca3ad" }, - { key: "dsp", label: "deepseek-v4-pro", color: "#b3b9c1" }, - { key: "mm", label: "minimax-m3", color: "#c8cdd3" }, - { key: "others", label: "other models", color: "#dde0e4" }, -] as const diff --git a/artifacts/glm52-rise-video/src/flash.tsx b/artifacts/glm52-rise-video/src/flash.tsx deleted file mode 100644 index 5d7aaef9bf..0000000000 --- a/artifacts/glm52-rise-video/src/flash.tsx +++ /dev/null @@ -1,185 +0,0 @@ -import React from "react" -import { AbsoluteFill, Easing, interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion" - -// stats.opencode.ai design tokens (light theme) -const c = { - bg: "#ffffff", - ink: "#161616", - muted: "#5c5c5c", - faint: "#808080", - line: "#e6e6e6", - dot: "#e4e4e4", - gray: "#aab0b8", - accent: "#3b5cf6", - accentHi: "#5b78ff", -} -const MONO = '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace' - -const DOT_MASK = - "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H2V2H0V0Z' fill='black'/%3E%3C/svg%3E\")" - -// verified: OpenCode Go, week of Jun 22-28, 2026 (2026-W26). share = % of 19.64T total Go tokens. -const bars = [ - { label: "deepseek-v4-flash", share: 48.3, hero: true }, - { label: "deepseek-v4-pro", share: 19.4 }, - { label: "minimax-m3", share: 13.0 }, - { label: "glm-5.2", share: 8.3 }, - { label: "mimo-v2.5", share: 4.3 }, - { label: "kimi-k2.7-code", share: 2.6 }, - { label: "other models", share: 4.1 }, -] - -function DataWordmark({ height = 30 }: { height?: number }) { - return ( - - - - - - - - - ) -} - -export function FlashShare() { - const frame = useCurrentFrame() - const { fps } = useVideoConfig() - - const grow = (i: number) => - Math.min( - 1, - Math.max(0, spring({ frame: frame - 18 - i * 7, fps, config: { damping: 18, stiffness: 120, mass: 0.6 } })), - ) - - return ( - -
- {/* header */} -
- -
JUN 22–28, 2026
-
- - {/* headline (static) */} -
-
- OPENCODE GO · SHARE OF TOKENS -
-
-
DeepSeek V4 Flash
-
- 48% -
-
-
- - {/* bar chart */} -
- {bars.map((b, i) => { - const g = grow(i) - const pct = b.share * g - return ( -
-
- {b.label} -
-
- {/* dotted 100% track — height is a multiple of the 12px tile, anchored bottom, so dots never clip */} -
- {/* fill */} -
-
-
- {Math.round(pct)}% -
-
- ) - })} -
- - {/* footer */} -
-
- - DeepSeek V4 Flash · 9.48T tokens · 83.6M requests -
-
opencode.ai/data
-
-
- - ) -} diff --git a/artifacts/glm52-rise-video/src/index.tsx b/artifacts/glm52-rise-video/src/index.tsx deleted file mode 100644 index 3265151ac5..0000000000 --- a/artifacts/glm52-rise-video/src/index.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { Composition, registerRoot } from "remotion" -import { GLM52Rise } from "./video" -import { NZSheep } from "./sheep" -import { NovelTokens } from "./novel" -import { FlashShare } from "./flash" -import { MiniMaxClimb } from "./minimax" -import { JuneTotals } from "./june" - -function Root() { - return ( - <> - - - - - - - - ) -} - -registerRoot(Root) diff --git a/artifacts/glm52-rise-video/src/june.tsx b/artifacts/glm52-rise-video/src/june.tsx deleted file mode 100644 index aa3f9de9be..0000000000 --- a/artifacts/glm52-rise-video/src/june.tsx +++ /dev/null @@ -1,144 +0,0 @@ -import React from "react" -import { AbsoluteFill } from "remotion" - -const c = { - bg: "#ffffff", - ink: "#161616", - muted: "#5c5c5c", - faint: "#808080", - line: "#e6e6e6", - dot: "#dcdcdc", - accent: "#3b5cf6", -} -const MONO = '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace' - -const DOT_MASK = - "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H2V2H0V0Z' fill='black'/%3E%3C/svg%3E\")" - -// verified: OpenCode Go (tier=Go, dataset=zen), June 1-30, 2026. -// 72.78T tokens · 651.4M requests · 11.42M sessions -> rounded headline figures. - -function DataWordmark({ height = 30 }: { height?: number }) { - return ( - - - - - - - - - ) -} - -function DotBand() { - return ( -
- ) -} - -function Metric({ value, label }: { value: string; label: string }) { - return ( -
-
- {value} -
-
{label}
-
- ) -} - -export function JuneTotals() { - return ( - -
- {/* header */} -
- -
MONTHLY RECAP
-
- - - {/* hero */} -
-
OPENCODE GO · JUNE 2026
-
-
- 73T -
-
tokens processed
-
- - {/* supporting metrics */} -
- - -
-
- - {/* footer */} - -
-
opencode.ai/data
-
-
-
- ) -} diff --git a/artifacts/glm52-rise-video/src/minimax.tsx b/artifacts/glm52-rise-video/src/minimax.tsx deleted file mode 100644 index 44cf09a1e7..0000000000 --- a/artifacts/glm52-rise-video/src/minimax.tsx +++ /dev/null @@ -1,201 +0,0 @@ -import React from "react" -import { AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig } from "remotion" - -const c = { - bg: "#ffffff", - ink: "#161616", - muted: "#5c5c5c", - faint: "#808080", - line: "#e6e6e6", - dot: "#e4e4e4", - accent: "#3b5cf6", - accentHi: "#5b78ff", - accentDim: "#aebcf3", -} -const MONO = '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace' - -const DOT_MASK = - "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H2V2H0V0Z' fill='black'/%3E%3C/svg%3E\")" - -// verified: minimax-m3, OpenCode Go (tier=Go, dataset=zen), weekly total_tokens. -// W26 2.559T is +23.2% / +482.3B vs W25 2.077T. -const weeks = [ - { label: "May 25", t: 0.008 }, - { label: "Jun 1", t: 0.429 }, - { label: "Jun 8", t: 1.192 }, - { label: "Jun 15", t: 2.077 }, - { label: "Jun 22", t: 2.559, latest: true }, -] -const AXIS_MAX = 3.0 - -function DataWordmark({ height = 30 }: { height?: number }) { - return ( - - - - - - - - - ) -} - -const CHART_H = 420 // multiple of 12 so the dotted tracks never clip - -export function MiniMaxClimb() { - const frame = useCurrentFrame() - const { fps } = useVideoConfig() - - const grow = (i: number) => - Math.min( - 1, - Math.max(0, spring({ frame: frame - 22 - i * 9, fps, config: { damping: 18, stiffness: 110, mass: 0.6 } })), - ) - - return ( - -
- {/* header */} -
- -
JUN 22–28, 2026
-
- - {/* headline (static) */} -
-
- OPENCODE GO · WEEKLY TOKENS -
-
-
MiniMax M3
-
-
- +23.2% -
-
- WEEK OVER WEEK -
-
-
-
- - {/* column chart */} -
-
- {weeks.map((w, i) => { - const g = grow(i) - const h = Math.round((w.t / AXIS_MAX) * CHART_H * g) - return ( -
- {/* value + bar */} -
- {/* dotted track */} -
- {/* fill */} -
- {/* value label */} -
- {w.t.toFixed(2)}T -
-
- {/* week label */} -
- {w.label} -
-
- ) - })} -
-
- - {/* footer */} -
-
- - 2.56T tokens last week · +482.3B added -
-
opencode.ai/data
-
-
- - ) -} diff --git a/artifacts/glm52-rise-video/src/novel.tsx b/artifacts/glm52-rise-video/src/novel.tsx deleted file mode 100644 index 9d649de4bb..0000000000 --- a/artifacts/glm52-rise-video/src/novel.tsx +++ /dev/null @@ -1,135 +0,0 @@ -import React from "react" -import { AbsoluteFill, Easing, Img, interpolate, staticFile, useCurrentFrame } from "remotion" - -const c = { - white: "#ffffff", - dim: "rgba(255,255,255,0.74)", -} -const MONO = '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace' - -// verified: OpenCode Go, week of Jun 22-28, 2026 (2026-W26) -// 19,642,742,937,105 tokens / 173,651,197 requests = 113,116 tokens/request -const AVG = 113116 -const K = Math.round(AVG / 1000) // 113 - -const nf = new Intl.NumberFormat("en-US") - -function DataWordmark({ height = 30 }: { height?: number }) { - return ( - - - - - - - - - ) -} - -export function NovelTokens() { - const frame = useCurrentFrame() - - const k = Math.round( - K * - interpolate(frame, [18, 92], [0, 1], { - extrapolateLeft: "clamp", - extrapolateRight: "clamp", - easing: Easing.out(Easing.cubic), - }), - ) - - const zoom = interpolate(frame, [0, 150], [1.06, 1.12], { - extrapolateRight: "clamp", - easing: Easing.inOut(Easing.quad), - }) - - return ( - - - - {/* legibility scrims */} -
- -
- {/* header */} -
- -
JUN 22–28, 2026
-
- - {/* bottom block */} -
-
- OPENCODE GO · LAST WEEK -
-
- {k}K -
-
tokens per request
- -
-
{nf.format(AVG)} tokens / request · last week
-
opencode.ai/data
-
-
-
- - ) -} diff --git a/artifacts/glm52-rise-video/src/sheep.tsx b/artifacts/glm52-rise-video/src/sheep.tsx deleted file mode 100644 index 53abb39ee5..0000000000 --- a/artifacts/glm52-rise-video/src/sheep.tsx +++ /dev/null @@ -1,139 +0,0 @@ -import React from "react" -import { AbsoluteFill, Easing, Img, interpolate, staticFile, useCurrentFrame } from "remotion" - -const c = { - white: "#ffffff", - dim: "rgba(255,255,255,0.72)", - faint: "rgba(255,255,255,0.55)", -} -const MONO = '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace' - -// verified: NZ OpenCode Go, week of Jun 22-28, 2026 (2026-W26) -const TOKENS = 40_915_594_381 // 40.9B -const SHEEP = 23_600_000 // 23.6M -const PER_SHEEP = Math.round(TOKENS / SHEEP) // 1,734 -const nf = new Intl.NumberFormat("en-US") - -// the correct opencode "DATA" wordmark (white, over photo) -function DataWordmark({ height = 30 }: { height?: number }) { - return ( - - - - - - - - - ) -} - -export function NZSheep() { - const frame = useCurrentFrame() - - const count = Math.round( - PER_SHEEP * - interpolate(frame, [18, 90], [0, 1], { - extrapolateLeft: "clamp", - extrapolateRight: "clamp", - easing: Easing.out(Easing.cubic), - }), - ) - - // slow Ken Burns push-in (scale up only — never reveals an edge) - const zoom = interpolate(frame, [0, 150], [1.06, 1.12], { - extrapolateRight: "clamp", - easing: Easing.inOut(Easing.quad), - }) - - return ( - - {/* the sheep, staring */} - - - {/* legibility scrims */} -
- - {/* content */} -
- {/* header */} -
- -
JUN 22–28, 2026
-
- - {/* bottom block */} -
-
- OPENCODE GO · NEW ZEALAND -
-
- {nf.format(count)} -
-
tokens per sheep
- -
-
40.9B tokens ÷ 23.6M sheep · last week
-
opencode.ai/data
-
-
-
- - ) -} diff --git a/artifacts/glm52-rise-video/src/video.tsx b/artifacts/glm52-rise-video/src/video.tsx deleted file mode 100644 index 41466a7e6c..0000000000 --- a/artifacts/glm52-rise-video/src/video.tsx +++ /dev/null @@ -1,254 +0,0 @@ -import React from "react" -import { AbsoluteFill, Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion" -import { days, launchIndex, glmWeekTokensT, segments } from "./data" - -// stats.opencode.ai design tokens (light theme) -const c = { - bg: "#ffffff", - ink: "#161616", - muted: "#5c5c5c", - faint: "#808080", - line: "#e6e6e6", - dot: "#ededed", - accent: "#3b5cf6", - accentHi: "#5b78ff", -} - -const MONO = '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace' -const W = 1080 - -const DOT_MASK = - "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H2V2H0V0Z' fill='black'/%3E%3C/svg%3E\")" - -const field = segments.filter((s) => !s.hero) -const glmColor = segments.find((s) => s.hero)!.color - -const clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v)) - -// the correct opencode "DATA" wordmark (from stats.opencode.ai header) -function DataWordmark({ height = 30, color = c.ink }: { height?: number; color?: string }) { - return ( - - - - - - - - - ) -} - -export function GLM52Rise() { - const frame = useCurrentFrame() - const { fps } = useVideoConfig() - - // ---------- virtual camera ---------- - // open zoomed-in on the field, pan right while the blue fills, then pull back to reveal. - const K = [0, 32, 150, 206, 240] - const ease = Easing.inOut(Easing.cubic) - const opt = { extrapolateLeft: "clamp" as const, extrapolateRight: "clamp" as const, easing: ease } - const s = interpolate(frame, K, [1.82, 1.72, 1.72, 1.0, 1.0], opt) - let fx = interpolate(frame, K, [420, 438, 760, 540, 540], opt) - let fy = interpolate(frame, K, [664, 664, 664, 540, 540], opt) - // keep the framing inside the 1080 canvas so edges never reveal black - fx = clamp(fx, 540 / s, W - 540 / s) - fy = clamp(fy, 540 / s, W - 540 / s) - const camera = `translate(${540 - fx * s}px, ${540 - fy * s}px) scale(${s})` - - // ---------- blue sweep (synced to the pan) ---------- - const p = interpolate(frame, [32, 150], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp", easing: ease }) - const revealAmount = p * (days.length - launchIndex) + 0.35 - const fillOf = (i: number) => clamp(revealAmount - (i - launchIndex), 0, 1) - - // token number climbs as the camera pulls back and the headline re-enters frame - const tokensT = - glmWeekTokensT * - interpolate(frame, [150, 202], [0, 1], { - extrapolateLeft: "clamp", - extrapolateRight: "clamp", - easing: Easing.out(Easing.cubic), - }) - - // chart geometry - const chartH = 440 - const chartW = 936 - const gap = 14 - const EXAGGERATE = 2.876 // broken y-axis: GLM-5.2 magnified ~2.9x for emphasis - - return ( - -
-
- {/* header */} -
- -
JUN 12–25, 2026
-
- - {/* headline (static) */} -
-
- GLM-5.2 broke out -
-
- From 0 to {tokensT.toFixed(2)}T tokens in a week. -
-
- - {/* stacked chart */} -
-
- {/* faint dotted backdrop */} -
- - {/* columns */} -
- {days.map((d, i) => { - const glmShare = d.glm / d.total - const blueH = Math.round(glmShare * EXAGGERATE * chartH) - const filled = Math.round(blueH * fillOf(i)) - const slotGap = filled > 2 ? 5 : 0 - const fieldH = chartH - filled - slotGap - const fieldTotal = d.dsf + d.dsp + d.mm + d.others - return ( -
- {/* gray field of other models (already in place) */} -
- {field.map((seg) => ( -
- ))} -
- {/* GLM-5.2, animates in */} - {filled > 2 && ( -
- )} -
- ) - })} -
-
-
- - {/* day axis */} -
- {days.map((d, i) => ( -
- {i === 0 || i === launchIndex || i === days.length - 1 ? d.date : ""} -
- ))} -
- - {/* footer */} -
-
- - GLM-5.2 -
-
opencode.ai/data
-
-
-
- - ) -} diff --git a/artifacts/glm52-rise-video/sst-env.d.ts b/artifacts/glm52-rise-video/sst-env.d.ts deleted file mode 100644 index 64441936d7..0000000000 --- a/artifacts/glm52-rise-video/sst-env.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* This file is auto-generated by SST. Do not edit. */ -/* tslint:disable */ -/* eslint-disable */ -/* deno-fmt-ignore-file */ -/* biome-ignore-all lint: auto-generated */ - -/// - -import "sst" -export {} \ No newline at end of file diff --git a/before/menu-verification.json b/before/menu-verification.json index e78fdab70c..08bea674b8 100644 --- a/before/menu-verification.json +++ b/before/menu-verification.json @@ -994,4 +994,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/before/metrics.json b/before/metrics.json index 26c414d03d..3a85312b08 100644 --- a/before/metrics.json +++ b/before/metrics.json @@ -739,4 +739,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/before/records-review.json b/before/records-review.json index 465f2f9498..80db16e7ee 100644 --- a/before/records-review.json +++ b/before/records-review.json @@ -562,4 +562,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/bun.lock b/bun.lock index 181931b2c1..2601d97789 100644 --- a/bun.lock +++ b/bun.lock @@ -29,7 +29,7 @@ }, "packages/app": { "name": "@opencode-ai/app", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@corvu/drawer": "catalog:", "@dnd-kit/abstract": "0.5.0", @@ -37,12 +37,12 @@ "@dnd-kit/helpers": "0.5.0", "@dnd-kit/solid": "0.5.0", "@kobalte/core": "catalog:", - "@opencode-ai/client": "file:vendor/opencode-ai-client-1.17.13-v2.tgz", "@opencode-ai/core": "workspace:*", "@opencode-ai/schema": "workspace:*", "@opencode-ai/sdk": "workspace:*", "@opencode-ai/session-ui": "workspace:*", "@opencode-ai/ui": "workspace:*", + "@opencode/client": "2.2.5", "@pierre/trees": "1.0.0-beta.4", "@sentry/solid": "catalog:", "@shikijs/transformers": "3.9.2", @@ -96,7 +96,7 @@ }, "packages/cli": { "name": "@opencode-ai/cli", - "version": "1.18.34", + "version": "1.19.5", "bin": { "lildax": "./bin/lildax.cjs", }, @@ -151,9 +151,13 @@ "zod": "catalog:", }, "devDependencies": { + "@opencode/client": "2.2.5", + "@opencode/plugin": "2.2.5", + "@opencode/server": "2.2.5", "@tsconfig/bun": "catalog:", "@types/bun": "catalog:", "@typescript/native-preview": "catalog:", + "effect": "4.0.6", }, }, "packages/cm-ui-prototype": { @@ -164,9 +168,35 @@ "vite": "catalog:", }, }, + "packages/cm-v2": { + "name": "@cookiemonster/cm-v2", + "version": "2.2.5", + "dependencies": { + "@effect/opentelemetry": "4.0.6", + "@effect/platform-node": "4.0.6", + "@effect/platform-node-shared": "4.0.6", + "@opencode/ai": "2.2.5", + "@opencode/client": "2.2.5", + "@opencode/core": "2.2.5", + "@opencode/plugin": "2.2.5", + "@opencode/protocol": "2.2.5", + "@opencode/pty": "0.4.0", + "@opencode/schema": "2.2.5", + "@opencode/server": "2.2.5", + "@opencode/util": "2.2.5", + "effect": "4.0.6", + "redis": "6.3.1", + "zod": "4.1.8", + }, + "devDependencies": { + "@types/bun": "catalog:", + "@types/node": "catalog:", + "@typescript/native-preview": "catalog:", + }, + }, "packages/codemode": { "name": "@opencode-ai/codemode", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "acorn": "8.15.0", "effect": "catalog:", @@ -180,7 +210,7 @@ }, "packages/console/app": { "name": "@opencode-ai/console-app", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@cloudflare/vite-plugin": "1.15.2", "@ibm/plex": "6.4.1", @@ -217,7 +247,7 @@ }, "packages/console/core": { "name": "@opencode-ai/console-core", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@aws-sdk/client-sts": "3.782.0", "@jsx-email/render": "1.1.1", @@ -244,7 +274,7 @@ }, "packages/console/function": { "name": "@opencode-ai/console-function", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@ai-sdk/anthropic": "3.0.82", "@ai-sdk/openai": "3.0.48", @@ -267,7 +297,7 @@ }, "packages/console/mail": { "name": "@opencode-ai/console-mail", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@jsx-email/all": "2.2.3", "@jsx-email/cli": "1.4.3", @@ -291,7 +321,7 @@ }, "packages/console/support": { "name": "@opencode-ai/console-support", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@cloudflare/vite-plugin": "1.15.2", "@opencode-ai/console-core": "workspace:*", @@ -311,7 +341,7 @@ }, "packages/core": { "name": "@opencode-ai/core", - "version": "1.18.34", + "version": "1.19.5", "bin": { "opencode": "./bin/opencode", }, @@ -335,12 +365,12 @@ "@ai-sdk/provider-utils": "4.0.51", "@ai-sdk/togetherai": "2.0.68", "@ai-sdk/vercel": "2.0.39", - "@ai-sdk/xai": "3.0.102", + "@ai-sdk/xai": "3.0.139", "@aws-sdk/credential-providers": "3.1057.0", "@effect/opentelemetry": "catalog:", "@effect/platform-node": "catalog:", "@effect/sql-sqlite-bun": "catalog:", - "@ff-labs/fff-bun": "0.9.4", + "@ff-labs/fff-bun": "0.10.5", "@lydell/node-pty": "catalog:", "@npmcli/arborist": "9.4.0", "@npmcli/config": "10.8.1", @@ -363,7 +393,7 @@ "drizzle-orm": "catalog:", "effect": "catalog:", "fuzzysort": "3.1.0", - "gitlab-ai-provider": "6.18.0", + "gitlab-ai-provider": "6.23.1", "glob": "13.0.5", "google-auth-library": "10.5.0", "gray-matter": "4.0.3", @@ -406,8 +436,9 @@ }, "packages/desktop": { "name": "@opencode-ai/desktop", - "version": "1.18.34", + "version": "2.2.5", "dependencies": { + "@cookiemonster/cm-v2": "workspace:*", "@zip.js/zip.js": "2.7.62", "csv-parse": "6.1.0", "drizzle-orm": "catalog:", @@ -463,7 +494,7 @@ }, "packages/effect-drizzle-sqlite": { "name": "@opencode-ai/effect-drizzle-sqlite", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "drizzle-orm": "catalog:", "effect": "catalog:", @@ -477,7 +508,7 @@ }, "packages/effect-sqlite-node": { "name": "@opencode-ai/effect-sqlite-node", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "effect": "catalog:", }, @@ -489,7 +520,7 @@ }, "packages/enterprise": { "name": "@opencode-ai/enterprise", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@hono/standard-validator": "catalog:", "@opencode-ai/core": "workspace:*", @@ -521,7 +552,7 @@ }, "packages/function": { "name": "@opencode-ai/function", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@octokit/auth-app": "8.0.1", "@octokit/rest": "catalog:", @@ -537,7 +568,7 @@ }, "packages/http-recorder": { "name": "@opencode-ai/http-recorder", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@effect/platform-node": "4.0.0-beta.83", "@effect/platform-node-shared": "4.0.0-beta.83", @@ -568,7 +599,7 @@ }, "packages/llm": { "name": "@opencode-ai/llm", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@opencode-ai/schema": "workspace:*", "@smithy/eventstream-codec": "4.2.14", @@ -587,7 +618,7 @@ }, "packages/opencode": { "name": "opencode", - "version": "1.18.34", + "version": "1.19.5", "bin": { "opencode": "./bin/opencode", }, @@ -613,12 +644,12 @@ "@ai-sdk/provider": "3.0.16", "@ai-sdk/togetherai": "2.0.68", "@ai-sdk/vercel": "2.0.39", - "@ai-sdk/xai": "3.0.102", + "@ai-sdk/xai": "3.0.139", "@aws-sdk/credential-providers": "3.1057.0", "@clack/prompts": "1.0.0-alpha.1", "@effect/opentelemetry": "catalog:", "@effect/platform-node": "catalog:", - "@ff-labs/fff-bun": "0.9.4", + "@ff-labs/fff-bun": "0.10.5", "@gitlab/opencode-gitlab-auth": "1.3.3", "@modelcontextprotocol/sdk": "1.29.0", "@octokit/graphql": "9.0.2", @@ -660,7 +691,7 @@ "drizzle-orm": "catalog:", "effect": "catalog:", "fuzzysort": "3.1.0", - "gitlab-ai-provider": "6.18.0", + "gitlab-ai-provider": "6.23.1", "glob": "13.0.5", "google-auth-library": "10.5.0", "gray-matter": "4.0.3", @@ -717,7 +748,7 @@ }, "packages/plugin": { "name": "@opencode-ai/plugin", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@ai-sdk/provider": "3.0.8", "@opencode-ai/sdk": "workspace:*", @@ -793,7 +824,7 @@ }, "packages/sdk/js": { "name": "@opencode-ai/sdk", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "cross-spawn": "catalog:", }, @@ -808,7 +839,7 @@ }, "packages/server": { "name": "@opencode-ai/server", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@opencode-ai/core": "workspace:*", "@opencode-ai/protocol": "workspace:*", @@ -823,7 +854,7 @@ }, "packages/session-ui": { "name": "@opencode-ai/session-ui", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@kobalte/core": "catalog:", "@opencode-ai/client": "file:../app/vendor/opencode-ai-client-1.17.13-v2.tgz", @@ -863,7 +894,7 @@ }, "packages/slack": { "name": "@opencode-ai/slack", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@opencode-ai/sdk": "workspace:*", "@slack/bolt": "^3.17.1", @@ -876,7 +907,7 @@ }, "packages/stats/app": { "name": "@opencode-ai/stats-app", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@ibm/plex": "6.4.1", "@kobalte/core": "catalog:", @@ -903,9 +934,8 @@ }, "packages/stats/core": { "name": "@opencode-ai/stats-core", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { - "@aws-sdk/client-athena": "3.933.0", "@planetscale/database": "1.19.0", "drizzle-orm": "catalog:", "effect": "catalog:", @@ -922,9 +952,8 @@ }, "packages/stats/server": { "name": "@opencode-ai/stats-server", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { - "@aws-sdk/client-firehose": "3.933.0", "@effect/platform-node": "catalog:", "@opencode-ai/stats-core": "workspace:*", "effect": "catalog:", @@ -964,7 +993,7 @@ }, "packages/tui": { "name": "@opencode-ai/tui", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@opencode-ai/core": "workspace:*", "@opencode-ai/plugin": "workspace:*", @@ -990,7 +1019,7 @@ }, "packages/ui": { "name": "@opencode-ai/ui", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@kobalte/core": "catalog:", "@pierre/diffs": "catalog:", @@ -1041,7 +1070,7 @@ }, "packages/web": { "name": "@opencode-ai/web", - "version": "1.18.34", + "version": "1.19.5", "dependencies": { "@astrojs/cloudflare": "12.6.3", "@astrojs/markdown-remark": "6.3.1", @@ -1085,19 +1114,19 @@ "patchedDependencies": { "@pierre/trees@1.0.0-beta.4": "patches/@pierre%2Ftrees@1.0.0-beta.4.patch", "@tanstack/virtual-core@3.17.3": "patches/@tanstack%2Fvirtual-core@3.17.3.patch", - "@ai-sdk/xai@3.0.102": "patches/@ai-sdk%2Fxai@3.0.102.patch", "@modelcontextprotocol/sdk@1.29.0": "patches/@modelcontextprotocol%2Fsdk@1.29.0.patch", "gcp-metadata@8.1.2": "patches/gcp-metadata@8.1.2.patch", "@ai-sdk/openai@3.0.88": "patches/@ai-sdk%2Fopenai@3.0.88.patch", "@standard-community/standard-openapi@0.2.9": "patches/@standard-community%2Fstandard-openapi@0.2.9.patch", - "effect@4.0.0-beta.83": "patches/effect@4.0.0-beta.83.patch", "@ai-sdk/anthropic@3.0.111": "patches/@ai-sdk%2Fanthropic@3.0.111.patch", "@ai-sdk/mistral@3.0.51": "patches/@ai-sdk%2Fmistral@3.0.51.patch", "@silvia-odwyer/photon-node@0.3.4": "patches/@silvia-odwyer%2Fphoton-node@0.3.4.patch", - "solid-js@1.9.10": "patches/solid-js@1.9.10.patch", "@npmcli/agent@4.0.2": "patches/@npmcli%2Fagent@4.0.2.patch", + "solid-js@1.9.10": "patches/solid-js@1.9.10.patch", + "effect@4.0.0-beta.83": "patches/effect@4.0.0-beta.83.patch", "@ai-sdk/amazon-bedrock@4.0.166": "patches/@ai-sdk%2Famazon-bedrock@4.0.166.patch", "@ai-sdk/groq@3.0.31": "patches/@ai-sdk%2Fgroq@3.0.31.patch", + "@ai-sdk/xai@3.0.139": "patches/@ai-sdk%2Fxai@3.0.139.patch", "@ai-sdk/google@3.0.73": "patches/@ai-sdk%2Fgoogle@3.0.73.patch", "pacote@21.5.0": "patches/pacote@21.5.0.patch", "@dnd-kit/dom@0.5.0": "patches/@dnd-kit%2Fdom@0.5.0.patch", @@ -1110,6 +1139,8 @@ "@opentui/solid": "catalog:", "@types/bun": "catalog:", "@types/node": "catalog:", + "bun-types": "1.4.4", + "node-abi": "4.40.0", "open": "11.0.4", }, "catalog": { @@ -1141,7 +1172,7 @@ "@tanstack/solid-virtual": "3.13.32", "@tsconfig/bun": "1.0.9", "@tsconfig/node22": "22.0.2", - "@types/bun": "1.3.13", + "@types/bun": "1.4.3", "@types/cross-spawn": "6.0.6", "@types/luxon": "3.7.1", "@types/node": "24.12.2", @@ -1241,7 +1272,7 @@ "@ai-sdk/vercel": ["@ai-sdk/vercel@2.0.39", "", { "dependencies": { "@ai-sdk/openai-compatible": "2.0.37", "@ai-sdk/provider": "3.0.8", "@ai-sdk/provider-utils": "4.0.21" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-8eu3ljJpkCTP4ppcyYB+NcBrkcBoSOFthCSgk5VnjaxnDaOJFaxnPwfddM7wx3RwMk2CiK1O61Px/LlqNc7QkQ=="], - "@ai-sdk/xai": ["@ai-sdk/xai@3.0.102", "", { "dependencies": { "@ai-sdk/openai-compatible": "2.0.56", "@ai-sdk/provider": "3.0.13", "@ai-sdk/provider-utils": "4.0.35" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-NeQyOR7OCqDMgaLS4uNX/ep/HrwUzzFYLzXQSRoqLy2jsnqxAJhsgltRwAwf+ADjyPBIAKEOestWnIQA+LrLrQ=="], + "@ai-sdk/xai": ["@ai-sdk/xai@3.0.139", "", { "dependencies": { "@ai-sdk/openai-compatible": "2.0.81", "@ai-sdk/provider": "3.0.18", "@ai-sdk/provider-utils": "4.0.57" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-epoKIfuCcmQh6uVn90OESeWmr7mqPJ3YtXNXStdpRvXLVqPmo47pnDUW/AH1vyvZ+6gsKg9TbSGVvyGeFQyHlg=="], "@alloc/quick-lru": ["@alloc/quick-lru@5.2.0", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="], @@ -1293,12 +1324,8 @@ "@aws-crypto/util": ["@aws-crypto/util@5.2.0", "", { "dependencies": { "@aws-sdk/types": "^3.222.0", "@smithy/util-utf8": "^2.0.0", "tslib": "^2.6.2" } }, "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ=="], - "@aws-sdk/client-athena": ["@aws-sdk/client-athena@3.933.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.932.0", "@aws-sdk/credential-provider-node": "3.933.0", "@aws-sdk/middleware-host-header": "3.930.0", "@aws-sdk/middleware-logger": "3.930.0", "@aws-sdk/middleware-recursion-detection": "3.933.0", "@aws-sdk/middleware-user-agent": "3.932.0", "@aws-sdk/region-config-resolver": "3.930.0", "@aws-sdk/types": "3.930.0", "@aws-sdk/util-endpoints": "3.930.0", "@aws-sdk/util-user-agent-browser": "3.930.0", "@aws-sdk/util-user-agent-node": "3.932.0", "@smithy/config-resolver": "^4.4.3", "@smithy/core": "^3.18.2", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/hash-node": "^4.2.5", "@smithy/invalid-dependency": "^4.2.5", "@smithy/middleware-content-length": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.9", "@smithy/middleware-retry": "^4.4.9", "@smithy/middleware-serde": "^4.2.5", "@smithy/middleware-stack": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/node-http-handler": "^4.4.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.5", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.8", "@smithy/util-defaults-mode-node": "^4.2.11", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-9eMUCu1Ay3C9ojo+dJcynSdpbxuwDVtZUt/Xhce+c2+mgDsmvRzjww+wfLpZwRNWxBWmeauQQAZk52tCwQgXsQ=="], - "@aws-sdk/client-cognito-identity": ["@aws-sdk/client-cognito-identity@3.1057.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "^3.974.15", "@aws-sdk/credential-provider-node": "^3.972.47", "@aws-sdk/types": "^3.973.9", "@smithy/core": "^3.24.5", "@smithy/fetch-http-handler": "^5.4.5", "@smithy/node-http-handler": "^4.7.5", "@smithy/types": "^4.14.2", "tslib": "^2.6.2" } }, "sha512-5MliYkp2u0+2arTp5fZIaxl+xmm90LEKv/VeSxhfNQW4t0fvWJrNO429/jchWQenNoDRrOGE59VfbuZUfwFujg=="], - "@aws-sdk/client-firehose": ["@aws-sdk/client-firehose@3.933.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.932.0", "@aws-sdk/credential-provider-node": "3.933.0", "@aws-sdk/middleware-host-header": "3.930.0", "@aws-sdk/middleware-logger": "3.930.0", "@aws-sdk/middleware-recursion-detection": "3.933.0", "@aws-sdk/middleware-user-agent": "3.932.0", "@aws-sdk/region-config-resolver": "3.930.0", "@aws-sdk/types": "3.930.0", "@aws-sdk/util-endpoints": "3.930.0", "@aws-sdk/util-user-agent-browser": "3.930.0", "@aws-sdk/util-user-agent-node": "3.932.0", "@smithy/config-resolver": "^4.4.3", "@smithy/core": "^3.18.2", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/hash-node": "^4.2.5", "@smithy/invalid-dependency": "^4.2.5", "@smithy/middleware-content-length": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.9", "@smithy/middleware-retry": "^4.4.9", "@smithy/middleware-serde": "^4.2.5", "@smithy/middleware-stack": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/node-http-handler": "^4.4.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.5", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.8", "@smithy/util-defaults-mode-node": "^4.2.11", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/util-utf8": "^4.2.0", "tslib": "^2.6.2" } }, "sha512-tDrtgczN2lQsflLDPYu/wdOoyCZLVYtgzmWnYzSEOBWd/cp2AbuQ7D+FemSwUTzyoMTuhhIevyEJKzqsF+QYxA=="], - "@aws-sdk/client-lambda": ["@aws-sdk/client-lambda@3.1057.0", "", { "dependencies": { "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "^3.974.15", "@aws-sdk/credential-provider-node": "^3.972.47", "@aws-sdk/types": "^3.973.9", "@smithy/core": "^3.24.5", "@smithy/fetch-http-handler": "^5.4.5", "@smithy/node-http-handler": "^4.7.5", "@smithy/types": "^4.14.2", "tslib": "^2.6.2" } }, "sha512-JoaE3QNvPqOSHJtcAFfza7BRoGUNerIKlSVhsKCBsa1i54Vto1YWUS7itkUELK2rpvS8kNZMPliPxDdi/oV5dw=="], "@aws-sdk/client-s3": ["@aws-sdk/client-s3@3.933.0", "", { "dependencies": { "@aws-crypto/sha1-browser": "5.2.0", "@aws-crypto/sha256-browser": "5.2.0", "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/core": "3.932.0", "@aws-sdk/credential-provider-node": "3.933.0", "@aws-sdk/middleware-bucket-endpoint": "3.930.0", "@aws-sdk/middleware-expect-continue": "3.930.0", "@aws-sdk/middleware-flexible-checksums": "3.932.0", "@aws-sdk/middleware-host-header": "3.930.0", "@aws-sdk/middleware-location-constraint": "3.930.0", "@aws-sdk/middleware-logger": "3.930.0", "@aws-sdk/middleware-recursion-detection": "3.933.0", "@aws-sdk/middleware-sdk-s3": "3.932.0", "@aws-sdk/middleware-ssec": "3.930.0", "@aws-sdk/middleware-user-agent": "3.932.0", "@aws-sdk/region-config-resolver": "3.930.0", "@aws-sdk/signature-v4-multi-region": "3.932.0", "@aws-sdk/types": "3.930.0", "@aws-sdk/util-endpoints": "3.930.0", "@aws-sdk/util-user-agent-browser": "3.930.0", "@aws-sdk/util-user-agent-node": "3.932.0", "@smithy/config-resolver": "^4.4.3", "@smithy/core": "^3.18.2", "@smithy/eventstream-serde-browser": "^4.2.5", "@smithy/eventstream-serde-config-resolver": "^4.3.5", "@smithy/eventstream-serde-node": "^4.2.5", "@smithy/fetch-http-handler": "^5.3.6", "@smithy/hash-blob-browser": "^4.2.6", "@smithy/hash-node": "^4.2.5", "@smithy/hash-stream-node": "^4.2.5", "@smithy/invalid-dependency": "^4.2.5", "@smithy/md5-js": "^4.2.5", "@smithy/middleware-content-length": "^4.2.5", "@smithy/middleware-endpoint": "^4.3.9", "@smithy/middleware-retry": "^4.4.9", "@smithy/middleware-serde": "^4.2.5", "@smithy/middleware-stack": "^4.2.5", "@smithy/node-config-provider": "^4.3.5", "@smithy/node-http-handler": "^4.4.5", "@smithy/protocol-http": "^5.3.5", "@smithy/smithy-client": "^4.9.5", "@smithy/types": "^4.9.0", "@smithy/url-parser": "^4.2.5", "@smithy/util-base64": "^4.3.0", "@smithy/util-body-length-browser": "^4.2.0", "@smithy/util-body-length-node": "^4.2.1", "@smithy/util-defaults-mode-browser": "^4.3.8", "@smithy/util-defaults-mode-node": "^4.2.11", "@smithy/util-endpoints": "^3.2.5", "@smithy/util-middleware": "^4.2.5", "@smithy/util-retry": "^4.2.5", "@smithy/util-stream": "^4.5.6", "@smithy/util-utf8": "^4.2.0", "@smithy/util-waiter": "^4.2.5", "tslib": "^2.6.2" } }, "sha512-KxwZvdxdCeWK6o8mpnb+kk7Kgb8V+8AjTwSXUWH1UAD85B0tjdo1cSfE5zoR5fWGol4Ml5RLez12a6LPhsoTqA=="], @@ -1497,6 +1524,8 @@ "@cookiemonster/cm-browser": ["@cookiemonster/cm-browser@workspace:packages/cm-browser"], + "@cookiemonster/cm-v2": ["@cookiemonster/cm-v2@workspace:packages/cm-v2"], + "@cookiemonster/ui-prototype": ["@cookiemonster/ui-prototype@workspace:packages/cm-ui-prototype"], "@corvu/dialog": ["@corvu/dialog@0.2.4", "", { "dependencies": { "@corvu/utils": "~0.4.2", "solid-dismissible": "~0.1.1", "solid-focus-trap": "~0.1.8", "solid-presence": "~0.2.0", "solid-prevent-scroll": "~0.1.10" }, "peerDependencies": { "solid-js": "^1.8" } }, "sha512-n54vJq+fOy8GVrnYBdJpD6JXNuyx7LOeMrRxwzAvZnYGpW8+AA12tnb/P/2emJj/HjOO5otheGKb0breshdFlA=="], @@ -1529,11 +1558,11 @@ "@drizzle-team/brocli": ["@drizzle-team/brocli@0.11.0", "", {}, "sha512-hD3pekGiPg0WPCCGAZmusBBJsDqGUR66Y452YgQsZOnkdQ7ViEPKuyP4huUGEZQefp8g34RRodXYmJ2TbCH+tg=="], - "@effect/opentelemetry": ["@effect/opentelemetry@4.0.0-beta.83", "", { "peerDependencies": { "@opentelemetry/api": "^1.9", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": "^2.0.0", "@opentelemetry/sdk-trace-base": "^2.0.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "@opentelemetry/sdk-trace-web": "^2.0.0", "@opentelemetry/semantic-conventions": "^1.33.0", "effect": "^4.0.0-beta.83" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-cPfCfp/ghu0itbX6Dqjdr4N0rbjng5ON4sUpnLHV5JJySG8zZpWmuOZLWIrfrNKT2ctYR1BYmp1aYCgkItaJLw=="], + "@effect/opentelemetry": ["@effect/opentelemetry@4.0.6", "", { "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <2.0.0", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-node": ">=2.0.0 <3.0.0", "@opentelemetry/sdk-trace-web": ">=2.0.0 <3.0.0", "@opentelemetry/semantic-conventions": ">=1.33.0 <2.0.0", "effect": "^4.0.6" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-xhLR1EN4ZNaKM7Bx59SCFiRNduFzgH8LZXDrCpPN8MpQ93V0GQcFHTBah5T3EXO2v+5HTEacdTgetIA0Creqvw=="], - "@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + "@effect/platform-node": ["@effect/platform-node@4.0.6", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.6", "undici": "^8.12.2" }, "peerDependencies": { "effect": "^4.0.6", "redis": ">=5.0.0 <7.0.0" } }, "sha512-gXvGHAy0/8PZbWvMMguloDUyeSP+rzYEo3FSEqUuGduxo9ORcGioDxPI+GOLCIFfam7VuNkmSUxBOiRMIrMrBw=="], - "@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], + "@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.6", "", { "dependencies": { "@types/ws": "^8.18.2", "ws": "^8.22.0" }, "peerDependencies": { "effect": "^4.0.6" } }, "sha512-0PhyC4uG30xGtsajnxjkcBWfTjNRzUh4ZKl1Kvo/MNyCTb+W2O+fBzf7wCRCoqt+nLudiq4V7vX40Q8XIBuMaQ=="], "@effect/sql-sqlite-bun": ["@effect/sql-sqlite-bun@4.0.0-beta.83", "", { "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-6OaxLsWffxkh9pXYUSyj/AxjVb9URY2rG9U6atjxClWy30Jx77R9Pm3Rrc7cQ63kQurePavEw1bQbzQ/SILiQQ=="], @@ -1655,23 +1684,27 @@ "@fastify/rate-limit": ["@fastify/rate-limit@10.3.0", "", { "dependencies": { "@lukeed/ms": "^2.0.2", "fastify-plugin": "^5.0.0", "toad-cache": "^3.7.0" } }, "sha512-eIGkG9XKQs0nyynatApA3EVrojHOuq4l6fhB4eeCk4PIOeadvOJz9/4w3vGI44Go17uaXOWEcPkaD8kuKm7g6Q=="], - "@ff-labs/fff-bin-darwin-arm64": ["@ff-labs/fff-bin-darwin-arm64@0.9.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-xyivu2xB++O5xXDx5Qm50JsU2aXt8YgXlGVhH/HE7UMYDrE6L6f1RYdYs8Y0bn0D3D0+bFBrN5ELPszK9E4Wbw=="], + "@ff-labs/fff-bin-android-arm64": ["@ff-labs/fff-bin-android-arm64@0.10.5", "", { "os": "android", "cpu": "arm64" }, "sha512-idn1m9ycwv0Dzz6ih4H8e/X1WpGF6kglUxqP78oYgoC2sgAdPtLxD6hIAZK13p8isK7H8EMwrMze/4lynEDcKQ=="], + + "@ff-labs/fff-bin-darwin-arm64": ["@ff-labs/fff-bin-darwin-arm64@0.10.5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-tG0VSt6fs3C2/Y6NDp57YJVXGEnrJ4F/e5gDrFCbNeuwJe9LmcCKh6oHWUEZOaaymYT90kQmwuXZTvORP3G6Vw=="], - "@ff-labs/fff-bin-darwin-x64": ["@ff-labs/fff-bin-darwin-x64@0.9.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-xLooAhCnTDCipPSMMZz7kGF3lhRHx6aP5fb6DJ0Ipyw/w/UWJb+xITJFszUl/QnIBoJ/qjDc93/FZMo1dk6gVA=="], + "@ff-labs/fff-bin-darwin-x64": ["@ff-labs/fff-bin-darwin-x64@0.10.5", "", { "os": "darwin", "cpu": "x64" }, "sha512-pwdFJUB/oeO4S/SfmRDdE5ipbAMYoVtRMwTZ12Wn2H46PgNU5DWnSjHhUNTLuKmkQU/ZIJL5Sn9j/fzwuIzcoA=="], - "@ff-labs/fff-bin-linux-arm64-gnu": ["@ff-labs/fff-bin-linux-arm64-gnu@0.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-m5+8vA+1veaUUWonwva1WsU6m1HRm8CpYUzr06KDB65mewlmPbqz7+Fh7hjEfiD8C4mHVHe6RysULvAH1yhsdw=="], + "@ff-labs/fff-bin-linux-arm64-gnu": ["@ff-labs/fff-bin-linux-arm64-gnu@0.10.5", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-prbY72gR+VPoSxl1InglwSwVHM0kErYMjUOpdvjQhS8eRdXYL3hTuYQv9L7fiB0mqaDzcwFa339uMr3p8ujDrw=="], - "@ff-labs/fff-bin-linux-arm64-musl": ["@ff-labs/fff-bin-linux-arm64-musl@0.9.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-EMeWm7CSTVkizy4ZEzUkLDP024tVcbCUthduuIhekFQRDsiaAze0YboIylWb9HBHJCZlCCoZrWAl4nnJbsX7AA=="], + "@ff-labs/fff-bin-linux-arm64-musl": ["@ff-labs/fff-bin-linux-arm64-musl@0.10.5", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-MQN/CEKn4c4toooGCmZ6N8cP9mhgE4tnR6rr6a4k9JjH0xi05fYdG4+BabPkr+l/mDc01DsRpSKVNBmvoZ3IlQ=="], - "@ff-labs/fff-bin-linux-x64-gnu": ["@ff-labs/fff-bin-linux-x64-gnu@0.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-pglE0uLkhnlE6bStXqfgUjYTSj+2sVwXaPfoA0QksidAsQor6NRt8004mygzC9DPubgHq5B9QezPfEwigKaP9Q=="], + "@ff-labs/fff-bin-linux-x64-gnu": ["@ff-labs/fff-bin-linux-x64-gnu@0.10.5", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-8NzFGGyqrFaCtb+SPTFd0xQGUlHCJMf0KYGwuca46IP37nN4OtDT1wnyZ9oaPDZ+2qqyxox10hCnqGlmj3PJzQ=="], - "@ff-labs/fff-bin-linux-x64-musl": ["@ff-labs/fff-bin-linux-x64-musl@0.9.4", "", { "os": "linux", "cpu": "x64" }, "sha512-VNKxgl8qs3aTfXViX7lqRK1aLu311h8dtBFqG4Scv+9Oi7WprybUp5L7IZ8sxKERaDAaiJMXHodXa1c90QdK8w=="], + "@ff-labs/fff-bin-linux-x64-musl": ["@ff-labs/fff-bin-linux-x64-musl@0.10.5", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-mioRbn8aAW2Jmm4W0w3poePo65iSE+REfO+Jc0iqsjirImEy6pKt7dswj+7LSU6RPWwPsMb4POTMENwNLMlJww=="], - "@ff-labs/fff-bin-win32-arm64": ["@ff-labs/fff-bin-win32-arm64@0.9.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-uFEt0aNL54vQxq1ivjxRuo+thnhS4wLqa4INl4VXnXJUmwB42XXxD+gsj7vzhBLLx4cFf0aWgy/+TVDR8yjZtQ=="], + "@ff-labs/fff-bin-win32-arm64": ["@ff-labs/fff-bin-win32-arm64@0.10.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-GIZiea0AhuUDtJtXO2mGWs3wil1OR6lpLKOqXMW8EhHVHs8SB+xwzOgZ3Hg7YLEJm+Ui/2tFW/NLbqRuxpmtrQ=="], - "@ff-labs/fff-bin-win32-x64": ["@ff-labs/fff-bin-win32-x64@0.9.4", "", { "os": "win32", "cpu": "x64" }, "sha512-Yd2Eyxj+slWv+0QDW9/xBpu9FXq+hwD0rXQD5184/88d+xwWCLKhEP2w8I6OO9XCg+kLT79UJb+k0WwXUtBtMw=="], + "@ff-labs/fff-bin-win32-x64": ["@ff-labs/fff-bin-win32-x64@0.10.5", "", { "os": "win32", "cpu": "x64" }, "sha512-EvCWb7wLrtCvkziksAnTVxcGa0roaWNC978t4nG3ESKEty/Mvrj8kaLAzqWfuA2Xk+gTW+qisJYxa4FqFnqR0Q=="], - "@ff-labs/fff-bun": ["@ff-labs/fff-bun@0.9.4", "", { "optionalDependencies": { "@ff-labs/fff-bin-darwin-arm64": "0.9.4", "@ff-labs/fff-bin-darwin-x64": "0.9.4", "@ff-labs/fff-bin-linux-arm64-gnu": "0.9.4", "@ff-labs/fff-bin-linux-arm64-musl": "0.9.4", "@ff-labs/fff-bin-linux-x64-gnu": "0.9.4", "@ff-labs/fff-bin-linux-x64-musl": "0.9.4", "@ff-labs/fff-bin-win32-arm64": "0.9.4", "@ff-labs/fff-bin-win32-x64": "0.9.4" }, "os": [ "linux", "win32", "darwin", ], "cpu": [ "x64", "arm64", ] }, "sha512-7HUraaK/g5dStAnuKAuzsXVOQvqqX0ylo5G+DxYwsCjCDc42bjoEAAHqz/3Sn3raUNw97KMoz87XR9QyrLEfVw=="], + "@ff-labs/fff-bun": ["@ff-labs/fff-bun@0.10.5", "", { "optionalDependencies": { "@ff-labs/fff-bin-android-arm64": "0.10.5", "@ff-labs/fff-bin-darwin-arm64": "0.10.5", "@ff-labs/fff-bin-darwin-x64": "0.10.5", "@ff-labs/fff-bin-linux-arm64-gnu": "0.10.5", "@ff-labs/fff-bin-linux-arm64-musl": "0.10.5", "@ff-labs/fff-bin-linux-x64-gnu": "0.10.5", "@ff-labs/fff-bin-linux-x64-musl": "0.10.5", "@ff-labs/fff-bin-win32-arm64": "0.10.5", "@ff-labs/fff-bin-win32-x64": "0.10.5" }, "os": [ "!aix", "!sunos", "!freebsd", "!openbsd", ], "cpu": [ "x64", "arm64", ] }, "sha512-n4t5e4mzbEAXO6SyPHx8ajECGvfTZ/y4TNCqvKSwROpcTqfobaq2T+MdsfsKyA+j+B11NmpCVLjVhCTel8iB8Q=="], + + "@ff-labs/fff-node": ["@ff-labs/fff-node@0.10.5", "", { "dependencies": { "ffi-rs": "^1.0.0" }, "optionalDependencies": { "@ff-labs/fff-bin-android-arm64": "0.10.5", "@ff-labs/fff-bin-darwin-arm64": "0.10.5", "@ff-labs/fff-bin-darwin-x64": "0.10.5", "@ff-labs/fff-bin-linux-arm64-gnu": "0.10.5", "@ff-labs/fff-bin-linux-arm64-musl": "0.10.5", "@ff-labs/fff-bin-linux-x64-gnu": "0.10.5", "@ff-labs/fff-bin-linux-x64-musl": "0.10.5", "@ff-labs/fff-bin-win32-arm64": "0.10.5", "@ff-labs/fff-bin-win32-x64": "0.10.5" }, "os": [ "!aix", "!sunos", "!freebsd", "!openbsd", ], "cpu": [ "x64", "arm64", ] }, "sha512-O4KZoO9lZluTqdHUYgd23xpEX/u7G87qQTgUIgtJ4BFTh1x/p243/M6AU2HdSHYWK+vrMRAdDXDzeUW/9rjk3Q=="], "@floating-ui/core": ["@floating-ui/core@1.7.5", "", { "dependencies": { "@floating-ui/utils": "^0.2.11" } }, "sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ=="], @@ -1853,8 +1886,14 @@ "@mixmark-io/domino": ["@mixmark-io/domino@2.2.0", "", {}, "sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw=="], + "@modelcontextprotocol/client": ["@modelcontextprotocol/client@2.3.1", "", { "dependencies": { "@modelcontextprotocol/core": "2.3.1", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.8", "jose": "^6.1.3", "pkce-challenge": "^5.0.0", "zod": "^4.2.0" } }, "sha512-mIGZXpHsjnZ6lD+gD/WCMpR5k8yVQQ8nNFH1N0Srf7AvnwTUMYD6pvTY8ng2+He5FfV7YMZLmrjL7cLa/cc3dQ=="], + + "@modelcontextprotocol/core": ["@modelcontextprotocol/core@2.3.1", "", { "dependencies": { "zod": "^4.2.0" } }, "sha512-laVmIhPGpWi7rG9q+0UigblRN0Hws/Yjlb6qLFtVqryXVLkc4h+yN8z731POD2LnAGQlFe7/tXhUm7Bi0YB91g=="], + "@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.29.0", "", { "dependencies": { "@hono/node-server": "^1.19.9", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.2.1", "express-rate-limit": "^8.2.1", "hono": "^4.11.4", "jose": "^6.1.3", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.1" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1" }, "optionalPeers": ["@cfworker/json-schema"] }, "sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ=="], + "@modelcontextprotocol/server": ["@modelcontextprotocol/server@2.3.1", "", { "dependencies": { "@modelcontextprotocol/core": "2.3.1", "zod": "^4.2.0" } }, "sha512-e59MfWuSssj6DoQ96JCTqdW1AXT5/XtnTl0WWd6MU1Ka434fFUGGosCLJbGNySDhHGvxQWoRWK137FXYFkYNWw=="], + "@motionone/animation": ["@motionone/animation@10.18.0", "", { "dependencies": { "@motionone/easing": "^10.18.0", "@motionone/types": "^10.17.1", "@motionone/utils": "^10.18.0", "tslib": "^2.3.1" } }, "sha512-9z2p5GFGCm0gBsZbi8rVMOAJCtw1WqBTIPw3ozk06gDvZInBPIsQcHgYogEJ4yuHJ+akuW8g1SEIOpTOvYs8hw=="], "@motionone/dom": ["@motionone/dom@10.18.0", "", { "dependencies": { "@motionone/animation": "^10.18.0", "@motionone/generators": "^10.18.0", "@motionone/types": "^10.17.1", "@motionone/utils": "^10.18.0", "hey-listen": "^1.0.8", "tslib": "^2.3.1" } }, "sha512-bKLP7E0eyO4B2UaHBBN55tnppwRnaE3KFfh3Ps9HhnAkar3Cb69kUCJY9as8LrccVYKgHA+JY5dOQqJLOPhF5A=="], @@ -1945,11 +1984,11 @@ "@octokit/openapi-types": ["@octokit/openapi-types@25.1.0", "", {}, "sha512-idsIggNXUKkk0+BExUn1dQ92sfysJrje03Q0bv0e+KPLrvyqZF8MnBpFz8UNfYDwB3Ie7Z0TByjWfzxt7vseaA=="], - "@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@13.2.1", "", { "dependencies": { "@octokit/types": "^15.0.1" }, "peerDependencies": { "@octokit/core": ">=6" } }, "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw=="], + "@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@9.2.2", "", { "dependencies": { "@octokit/types": "^12.6.0" }, "peerDependencies": { "@octokit/core": "5" } }, "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ=="], "@octokit/plugin-request-log": ["@octokit/plugin-request-log@1.0.4", "", { "peerDependencies": { "@octokit/core": ">=3" } }, "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA=="], - "@octokit/plugin-rest-endpoint-methods": ["@octokit/plugin-rest-endpoint-methods@16.1.1", "", { "dependencies": { "@octokit/types": "^15.0.1" }, "peerDependencies": { "@octokit/core": ">=6" } }, "sha512-VztDkhM0ketQYSh5Im3IcKWFZl7VIrrsCaHbDINkdYeiiAsJzjhS2xRFCSJgfN6VOcsoW4laMtsmf3HcNqIimg=="], + "@octokit/plugin-rest-endpoint-methods": ["@octokit/plugin-rest-endpoint-methods@10.4.1", "", { "dependencies": { "@octokit/types": "^12.6.0" }, "peerDependencies": { "@octokit/core": "5" } }, "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg=="], "@octokit/plugin-retry": ["@octokit/plugin-retry@3.0.9", "", { "dependencies": { "@octokit/types": "^6.0.3", "bottleneck": "^2.15.3" } }, "sha512-r+fArdP5+TG6l1Rv/C9hVoty6tldw6cE2pRHNGmFPdyfrc696R6JjrQ3d7HdVqGwuzfyrcaLAKD7K8TX8aehUQ=="], @@ -2037,11 +2076,51 @@ "@opencode-ai/web": ["@opencode-ai/web@workspace:packages/web"], + "@opencode/ai": ["@opencode/ai@2.2.5", "", { "dependencies": { "@aws-sdk/credential-providers": "3.1057.0", "@opencode/schema": "2.2.5", "@smithy/eventstream-codec": "4.2.14", "@smithy/util-utf8": "4.2.2", "aws4fetch": "1.0.20", "effect": "4.0.6", "google-auth-library": "10.5.0" } }, "sha512-TolUvNR615vpkc6FPf2np5PbAbO7k1gaVlrtZ5Wx5tN7Y8K2uSer0BZEiajJ2uBsF6RXJFfjjX1GZbcf85GtGQ=="], + + "@opencode/client": ["@opencode/client@2.2.5", "", { "dependencies": { "@opencode/protocol": "2.2.5", "@opencode/schema": "2.2.5" }, "peerDependencies": { "effect": "4.0.6", "solid-js": ">=1.9.0" }, "optionalPeers": ["effect", "solid-js"] }, "sha512-EjYrFGWHURsIbjtmQdIsGSPmYZGaulxqwEfYxQH5t9838508BCIvDX9f7/ZsgNGHYXM0punA3W8hTt6GjxIEaw=="], + + "@opencode/codemode": ["@opencode/codemode@2.2.5", "", { "dependencies": { "acorn": "8.15.0", "effect": "4.0.6" } }, "sha512-oqZXynEO71nOpM9kOVacyRY6qOceYdk2p9Q0667kwSP4ZXgKSKtxV2HkI0iUBh3ci+TueO88BxIb2CgL1slpGw=="], + + "@opencode/core": ["@opencode/core@2.2.5", "", { "dependencies": { "@ai-sdk/provider": "3.0.19", "@ai-sdk/provider-utils": "4.0.62", "@ff-labs/fff-bun": "0.10.5", "@ff-labs/fff-node": "0.10.5", "@lydell/node-pty": "1.2.0-beta.12", "@modelcontextprotocol/client": "2.3.1", "@modelcontextprotocol/core": "2.3.1", "@modelcontextprotocol/server": "2.3.1", "@opencode/ai": "2.2.5", "@opencode/codemode": "2.2.5", "@opencode/plugin": "2.2.5", "@opencode/plugin-browser": "2.2.5", "@opencode/pty": "0.4.0", "@opencode/schema": "2.2.5", "@opencode/util": "2.2.5", "@parcel/watcher": "2.5.1", "@silvia-odwyer/photon-node": "0.3.4", "@standard-schema/spec": "1.1.0", "bun-pty": "0.4.11", "diff": "8.0.4", "drizzle-orm": "1.0.0-rc.5-169397b", "effect": "4.0.6", "fuzzysort": "3.1.0", "gitlab-ai-provider": "6.23.1", "gray-matter": "4.0.3", "htmlparser2": "8.0.2", "http-proxy-agent": "7.0.2", "https-proxy-agent": "7.0.6", "immer": "11.1.4", "jose": "6.0.11", "jsonc-parser": "3.3.1", "mime-types": "3.0.2", "which": "6.0.1", "zod": "4.6.7" }, "peerDependencies": { "@anthropic-ai/claude-agent-sdk": "0.3.301" }, "optionalPeers": ["@anthropic-ai/claude-agent-sdk"] }, "sha512-6osbW17TBHXdjFPHKun/vhBLFTamUwXQdBgfte7/fDaVjI/N9MuuWTQA/Uq9mzzJ8pxQCEUePBB3He2We0xfIw=="], + + "@opencode/plugin": ["@opencode/plugin@2.2.5", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@opencode/ai": "2.2.5", "@opencode/client": "2.2.5", "@opencode/protocol": "2.2.5", "@opencode/schema": "2.2.5", "@opencode/util": "2.2.5", "effect": "4.0.6" }, "peerDependencies": { "@opencode/theme": "2.2.5", "@opentui/core": ">=0.8.0", "@opentui/solid": ">=0.8.0", "electron": "*", "solid-js": ">=1.9.0", "vite": ">=6", "vite-plugin-solid": ">=2.11" }, "optionalPeers": ["@opencode/theme", "@opentui/core", "@opentui/solid", "electron", "solid-js", "vite", "vite-plugin-solid"] }, "sha512-DHtmC55UM5NbtZwyayLxI/ygTMt3n+6xXYYBkOdNxmZ+rLcIbpjmeJvySqdxFmT3K7Pk/2pHsuocxhquu6sysA=="], + + "@opencode/plugin-browser": ["@opencode/plugin-browser@2.2.5", "", { "dependencies": { "@opencode/plugin": "2.2.5", "@opencode/schema": "2.2.5", "effect": "4.0.6" } }, "sha512-kr3G+h1SYV7hFSkX+TKifvlmR4fka2hZlgyIlo4ysCJ1FFpsWP39WgdzDQDPXRIEL/E2M0J8/35tjl3EZM4Xqg=="], + + "@opencode/protocol": ["@opencode/protocol@2.2.5", "", { "dependencies": { "@opencode/schema": "2.2.5", "effect": "4.0.6" } }, "sha512-T3ET0kS1kj8sv7/d+c1T2he7TXoZ4Rki7zTqHuv8b0kWhg3Vk6o0t+T9KsEQdEat7PFksgH5haC2iSSdJOB7/w=="], + + "@opencode/pty": ["@opencode/pty@0.4.0", "", { "optionalDependencies": { "@opencode/pty-darwin-arm64": "0.4.0", "@opencode/pty-darwin-x64": "0.4.0", "@opencode/pty-linux-arm64-gnu": "0.4.0", "@opencode/pty-linux-arm64-musl": "0.4.0", "@opencode/pty-linux-x64-gnu": "0.4.0", "@opencode/pty-linux-x64-musl": "0.4.0", "@opencode/pty-win32-arm64": "0.4.0", "@opencode/pty-win32-x64": "0.4.0" }, "bin": { "opencode-pty": "bin/opencode-pty.js" } }, "sha512-v7cLT71yfoNM5FlyPGwMjeqIJbr0DneGq4NpoOY5iAKpsevzOIcsI2E0fiDWajuk5xAFRxwyv4CpGqow7cu79Q=="], + + "@opencode/pty-darwin-arm64": ["@opencode/pty-darwin-arm64@0.4.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-XzZZJcQeR42IRpxHbbPEo4AK7jdp9SpgPx234DZ6uLnl6yclXcixH70G2U88EhKtGAMyCPIXdBfvQf4OQTDvbQ=="], + + "@opencode/pty-darwin-x64": ["@opencode/pty-darwin-x64@0.4.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-NvQfygGcsGmDCIUJ/VHLcS6SduC93Y/qP2hrHjtBpiL2sSQyeCDcifNhLvqY/wxGFNNZ4GeZwwZqe7rMEuBJbQ=="], + + "@opencode/pty-linux-arm64-gnu": ["@opencode/pty-linux-arm64-gnu@0.4.0", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-VZXkYD+CT+zdodmTnKn9/VlmswksLPBLJryeBsG4IXUFXTsATr7+PVygJk96FxCh5nq68H3a/UJgyiIUMl1XCQ=="], + + "@opencode/pty-linux-arm64-musl": ["@opencode/pty-linux-arm64-musl@0.4.0", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-hCx25Hn9sALdnkx2Y4aPGVw3glTbX61XRiJs+XETPPIO9QTaav4OS4k2JR2uHC6/u161xKdN82iJ+OYfwcGUSg=="], + + "@opencode/pty-linux-x64-gnu": ["@opencode/pty-linux-x64-gnu@0.4.0", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-Xal/d0+xp6XE4iCGUAw4JTQ4uf5l8V0EIbeKq+e03cHJewOMKZk4fooQjxpZvQIToBHRtnCJAmd+EEhVxXiDDw=="], + + "@opencode/pty-linux-x64-musl": ["@opencode/pty-linux-x64-musl@0.4.0", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-dBVtKZoVKAN6/E+65GrJksgRKzPkPHUjWZBzf3mRANXt2adpdbV+/M1AMfPCZSju2mN1j9rNu8MCrxwr+ugEig=="], + + "@opencode/pty-win32-arm64": ["@opencode/pty-win32-arm64@0.4.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-IKJMUnS2aluWqRj13enMWomYtwbXq8rStcf/mUbxBoAGTDMtWR/ZrRmKb2ptR7KUqDjdSEa+8C8rczS7uGFl9g=="], + + "@opencode/pty-win32-x64": ["@opencode/pty-win32-x64@0.4.0", "", { "os": "win32", "cpu": "x64" }, "sha512-P1QJLUX918/y8he8VEBSYoiN5bYhUnJtEaEpiE5fxoYsDP9nqAHXqIrGxTNNnda5jOBcCalxxy0WhL8qgeKOqQ=="], + + "@opencode/schema": ["@opencode/schema@2.2.5", "", { "dependencies": { "@standard-schema/spec": "1.1.0", "effect": "4.0.6" } }, "sha512-hlKk6cX28BwvOMOVG3Mtt4tEHxwY68Z6Gz5/cL32N8qfZexykCKsZai49Jms4/2gD8BzvVuBERnnlLDbdLstUA=="], + + "@opencode/server": ["@opencode/server@2.2.5", "", { "dependencies": { "@effect/platform-node": "4.0.6", "@effect/platform-node-shared": "4.0.6", "@opencode/core": "2.2.5", "@opencode/protocol": "2.2.5", "@opencode/schema": "2.2.5", "@opencode/simulation": "2.2.5", "@opencode/util": "2.2.5", "effect": "4.0.6" } }, "sha512-cyHGsw0l2FwAYH7svE47yJKbh+M73zkO8JOeaWhnubH5hg1TanHBL66JXmYzgcITBXtZulLJEVEq/ojelwue+w=="], + + "@opencode/simulation": ["@opencode/simulation@2.2.5", "", { "dependencies": { "@opencode/ai": "2.2.5", "@opencode/core": "2.2.5", "@opencode/plugin": "2.2.5", "@opencode/protocol": "2.2.5", "@opencode/util": "2.2.5", "@opentui/core": "0.8.0", "effect": "4.0.6", "ws": "8.21.0" } }, "sha512-yw2K4DZ/AEEVKjByej7rCROAwOz7hIvMWXSvSbwmSLC29AVAwzeoqe1uVBSCkFxXDEFwFCvlnSONLP+0tPmGxA=="], + + "@opencode/util": ["@opencode/util@2.2.5", "", { "dependencies": { "@effect/opentelemetry": "4.0.6", "@effect/platform-node": "4.0.6", "@effect/platform-node-shared": "4.0.6", "@npmcli/arborist": "9.4.0", "@npmcli/config": "10.8.1", "@opentelemetry/api": "1.9.0", "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/context-async-hooks": "2.8.0", "@opentelemetry/exporter-trace-otlp-http": "0.219.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/sdk-logs": "0.219.0", "@opentelemetry/sdk-metrics": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0", "@opentelemetry/sdk-trace-node": "2.8.0", "cross-spawn": "7.0.6", "effect": "4.0.6", "glob": "13.0.5", "mime-types": "3.0.2", "minimatch": "10.2.5", "npm-package-arg": "13.0.2", "open": "11.0.4", "pacote": "21.5.1" } }, "sha512-RqbJ2EwxOs6oQMH1P4Yenkejit0oiAyxBTPXhzx4n6j4SOV0+Duz6lhftlJkAjTbq7Rw2b0Mzx4duOJUdw6s5A=="], + "@openrouter/ai-sdk-provider": ["@openrouter/ai-sdk-provider@2.9.0", "", { "peerDependencies": { "ai": "^6.0.0", "zod": "^3.25.0 || ^4.0.0" } }, "sha512-Seva+NCa0WUQnJIUE5GzHsUv1WTIeyqwz0ELl2VtS6NP+eF+77yCXGFVOMbvoCM7QMjlnhv7931e89R+8pJdcQ=="], "@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="], - "@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.214.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-40lSJeqYO8Uz2Yj7u94/SJWE/wONa7rmMKjI1ZcIjgf3MHNHv1OZUCrCETGuaRF62d5pQD1wKIW+L4lmSMTzZA=="], + "@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.219.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-FFx7YnaYJlIjqWW/AG/yAZ0L/NEY724PipXXXQLdtZPbLwBGbUMTGL1i/esI56TWfTUXxhLfpgrnWJCG8aUJyg=="], "@opentelemetry/context-async-hooks": ["@opentelemetry/context-async-hooks@2.6.1", "", { "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-XHzhwRNkBpeP8Fs/qjGrAf9r9PRv67wkJQ/7ZPaBQQ68DYlTBBx5MF9LvPx7mhuXcDessKK2b+DcxqwpgkcivQ=="], @@ -2053,11 +2132,11 @@ "@opentelemetry/otlp-transformer": ["@opentelemetry/otlp-transformer@0.214.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.214.0", "@opentelemetry/core": "2.6.1", "@opentelemetry/resources": "2.6.1", "@opentelemetry/sdk-logs": "0.214.0", "@opentelemetry/sdk-metrics": "2.6.1", "@opentelemetry/sdk-trace-base": "2.6.1", "protobufjs": "^7.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-DSaYcuBRh6uozfsWN3R8HsN0yDhCuWP7tOFdkUOVaWD1KVJg8m4qiLUsg/tNhTLS9HUYUcwNpwL2eroLtsZZ/w=="], - "@opentelemetry/resources": ["@opentelemetry/resources@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-lID/vxSuKWXM55XhAKNoYXu9Cutoq5hFdkbTdI/zDKQktXzcWBVhNsOkiZFTMU9UtEWuGRNe0HUgmsFldIdxVA=="], + "@opentelemetry/resources": ["@opentelemetry/resources@2.8.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-qmXQ27ilDbUK/vGMqwL8D4/rhn76C+sherM4wTbjlfknR8Nvfc/hCxjRJPhkzZzUsPiNg16SA31NxMabwttRjg=="], - "@opentelemetry/sdk-logs": ["@opentelemetry/sdk-logs@0.214.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.214.0", "@opentelemetry/core": "2.6.1", "@opentelemetry/resources": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, "sha512-zf6acnScjhsaBUU22zXZ/sLWim1dfhUAbGXdMmHmNG3LfBnQ3DKsOCITb2IZwoUsNNMTogqFKBnlIPPftUgGwA=="], + "@opentelemetry/sdk-logs": ["@opentelemetry/sdk-logs@0.219.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, "sha512-s6lTKRakaPClvKoWHRChxnXjDMkM/TQ30ff78jN6EBGf7MI7VzANE5PU3f4z9qDUudWjvZjOLHG0rBnBKYvoXA=="], - "@opentelemetry/sdk-metrics": ["@opentelemetry/sdk-metrics@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/resources": "2.6.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <1.10.0" } }, "sha512-9t9hJHX15meBy2NmTJxL+NJfXmnausR2xUDvE19XQce0Qi/GBtDGamU8nS1RMbdgDmhgpm3VaOu2+fiS/SfTpQ=="], + "@opentelemetry/sdk-metrics": ["@opentelemetry/sdk-metrics@2.8.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <1.10.0" } }, "sha512-UDBGaj6W0Rgy5rTTaoxs8gVGF/aGkAKyjurJv7se6wjRxJu7FoquTLT/vt54DZfo4crbprYfhX/SOK9+BPw1qg=="], "@opentelemetry/sdk-trace-base": ["@opentelemetry/sdk-trace-base@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/resources": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-r86ut4T1e8vNwB35CqCcKd45yzqH6/6Wzvpk2/cZB8PsPLlZFTvrh8yfOS3CYZYcUmAx4hHTZJ8AO8Dj8nrdhw=="], @@ -2451,6 +2530,16 @@ "@radix-ui/rect": ["@radix-ui/rect@1.0.1", "", { "dependencies": { "@babel/runtime": "^7.13.10" } }, "sha512-fyrgCaedtvMg9NK3en0pnOYJdtfwxUcNolezkNPUsoX57X8oQk+NkqcvzHXD2uKNij6GXmWU9NDru2IWjrO4BQ=="], + "@redis/bloom": ["@redis/bloom@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-dpF9j2yJDoPzSCaZn0MSB3xzmnXQVJeTSAWJcQVcgbmluwhpFeemmII0cF1t+WYfoVS+shEFq79+MmUItgzJLg=="], + + "@redis/client": ["@redis/client@6.3.1", "", { "peerDependencies": { "@node-rs/xxhash": "^1.1.0", "@opentelemetry/api": ">=1 <2" }, "optionalPeers": ["@node-rs/xxhash", "@opentelemetry/api"] }, "sha512-masbfVKULdoAofwddepZxRhWa4w6zvBHn6TRn90TRPrRkVIlGCur3pFqwWaCbMxtYI9twepkz63e/T/tEH8GjA=="], + + "@redis/json": ["@redis/json@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-fMz4kUwJzEftcU9EMaqsjZcUwzpTQLOYRqhQsAD6uKvZWeamblK13ZhgO5SzVSZVk31jmwLeTRpU5GAl5egfUw=="], + + "@redis/search": ["@redis/search@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-T67pvPUpW82VrZLvihO8O2DFMC7eY2oMAzMzapCbiPZn7mdWqHMEIlohYim12gIawT5kn6qT/Cvmm4WulKB+kQ=="], + + "@redis/time-series": ["@redis/time-series@6.3.1", "", { "peerDependencies": { "@redis/client": "^6.3.1" } }, "sha512-MNDgrm+i63M/1a+XA+HcDsScwt4uBh/fGGJ84swTQZTFK5K5wMmxdlTRa4ZgmNJzjxMaszW/ipPScMUGV3aAMg=="], + "@remix-run/node-fetch-server": ["@remix-run/node-fetch-server@0.8.1", "", {}, "sha512-J1dev372wtJqmqn9U/qbpbZxbJSQrogNN2+Qv1lKlpATpe/WQ9aCZfl/xSb9d2Rgh1IyLSvNxZAXPZxruO6Xig=="], "@remix-run/router": ["@remix-run/router@1.9.0", "", {}, "sha512-bV63itrKBC0zdT27qYm6SDZHlkXwFL1xMBuhkn+X7l0+IIhNaH5wuuvZKp6eKhCD4KFhujhfhCT1YxXW6esUIA=="], @@ -2855,7 +2944,7 @@ "@types/braces": ["@types/braces@3.0.5", "", {}, "sha512-SQFof9H+LXeWNz8wDe7oN5zu7ket0qwMu5vZubW4GCJ8Kkeh6nBWUz87+KTz/G3Kqsrp0j/W253XJb3KMEeg3w=="], - "@types/bun": ["@types/bun@1.3.13", "", { "dependencies": { "bun-types": "1.3.13" } }, "sha512-9fqXWk5YIHGGnUau9TEi+qdlTYDAnOj+xLCmSTwXfAIqXr2x4tytJb43E9uCvt09zJURKXwAtkoH4nLQfzeTXw=="], + "@types/bun": ["@types/bun@1.4.3", "", { "dependencies": { "bun-types": "1.4.3" } }, "sha512-N67Pqy8JXbAY/j0tNraS3V5mubGvc6rrrNDmDCtZLlFzccbUJPDb0tvgUBC5q4m8ybkP93Jcn1QB+RYQ6PvBhw=="], "@types/cacache": ["@types/cacache@20.0.1", "", { "dependencies": { "@types/node": "*", "minipass": "*" } }, "sha512-QlKW3AFoFr/hvPHwFHMIVUH/ZCYeetBNou3PCmxu5LaNDvrtBlPJtIA6uhmU9JRt9oxj7IYoqoLcpxtzpPiTcw=="], @@ -3053,6 +3142,28 @@ "@xmldom/xmldom": ["@xmldom/xmldom@0.8.13", "", {}, "sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw=="], + "@yuuang/ffi-rs-android-arm64": ["@yuuang/ffi-rs-android-arm64@1.3.7", "", { "os": "android", "cpu": "arm64" }, "sha512-t6Wx3Xll6c07Nuk0k3xnZsxKFxlshm92i0U/BiTHc6kQbvu+fMJF+gKsj4yEj886jH51CM3EqZT9Xdhq9CdUVw=="], + + "@yuuang/ffi-rs-darwin-arm64": ["@yuuang/ffi-rs-darwin-arm64@1.3.7", "", { "os": "darwin", "cpu": "arm64" }, "sha512-OueBlUFBT9IwD9pQnoYs0UszRBEySskfrEPXXfvKfGjL/DXnfn6kUheQ3oIP6sSmshVGNQUwrTCPo6feAa4QjA=="], + + "@yuuang/ffi-rs-darwin-x64": ["@yuuang/ffi-rs-darwin-x64@1.3.7", "", { "os": "darwin", "cpu": "x64" }, "sha512-x4mxXOKwSgwYx6OBAKrW+Ocp8um2KoPpUwaD0Z2tmR6EekoRvFGN7s/eEK1avqCxcsLN7/MzGOnCCFyGpOVfPA=="], + + "@yuuang/ffi-rs-linux-arm-gnueabihf": ["@yuuang/ffi-rs-linux-arm-gnueabihf@1.3.7", "", { "os": "linux", "cpu": "arm" }, "sha512-9r//Z022QYVoIAY458Dpk8HWkisk/y4NJC3d52RlkdsLD+9p0zn0cKKSoMF/xUsOWDFSmOf+cwU/Xadi/wxFMQ=="], + + "@yuuang/ffi-rs-linux-arm64-gnu": ["@yuuang/ffi-rs-linux-arm64-gnu@1.3.7", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-nrW4MlFlyQInfxTsI5wtcIpbV4KlHLWo2BCk4CHIETlUT+PUspNFqDg+Byy7My3hpCZlXp0WsMVP/3N0LlybNw=="], + + "@yuuang/ffi-rs-linux-arm64-musl": ["@yuuang/ffi-rs-linux-arm64-musl@1.3.7", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-eLLx4P8DzNnuPif19nAvKPaf88lSf6KFbDetH3nAIRZvI495h0jigN835Ayr7uAADssohGfO9MPMH33DXmFErA=="], + + "@yuuang/ffi-rs-linux-x64-gnu": ["@yuuang/ffi-rs-linux-x64-gnu@1.3.7", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-upEz1Q98T51x2In872fsjgHCJbE3e8r9JxhJD+5NvSMk6BpieYWRodTbsMxV6oKWmfl12loKwF2j4OBSWKl0lA=="], + + "@yuuang/ffi-rs-linux-x64-musl": ["@yuuang/ffi-rs-linux-x64-musl@1.3.7", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-YOcOkIwVvIhpwuGJ428h15vpE0KnT3teFG0g2J31FrBxrVh9IH4HeTGXjelI3l9SI5gyiZDnD4PQnQ1U6oqTcA=="], + + "@yuuang/ffi-rs-win32-arm64-msvc": ["@yuuang/ffi-rs-win32-arm64-msvc@1.3.7", "", { "os": "win32", "cpu": "arm64" }, "sha512-ZfYzLV1w7Mhzh9XRScEMpw9oazIEiwO+0+TYHHRL882d5oD0Q99YikmRhdifsoHCCQefKmWF/4BXCeFkzg8NFA=="], + + "@yuuang/ffi-rs-win32-ia32-msvc": ["@yuuang/ffi-rs-win32-ia32-msvc@1.3.7", "", { "os": "win32", "cpu": [ "x64", "ia32", ] }, "sha512-ifYz+f+giKpT39lKWDru+om6QnA9J7J953ns60xHgB46ESZvPd/Y2W5+PesRNC9U+vnFEiLZ9CNC+R3fBWC1pg=="], + + "@yuuang/ffi-rs-win32-x64-msvc": ["@yuuang/ffi-rs-win32-x64-msvc@1.3.7", "", { "os": "win32", "cpu": "x64" }, "sha512-H3s4wOLtZtKtmuPjUNE+bhnSKxxpXcuxG70jRC8dUMHqIm5iCvdoZ4XYDeq7/uUYlySerXFmRL4dAVCX/TUNTg=="], + "@zip.js/zip.js": ["@zip.js/zip.js@2.7.62", "", {}, "sha512-OaLvZ8j4gCkLn048ypkZu29KX30r8/OfFF2w4Jo5WXFr+J04J+lzJ5TKZBVgFXhlvSkqNFQdfnY1Q8TMTCyBVA=="], "abbrev": ["abbrev@4.0.0", "", {}, "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA=="], @@ -3083,8 +3194,6 @@ "ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="], - "ajv-keywords": ["ajv-keywords@3.5.2", "", { "peerDependencies": { "ajv": "^6.9.1" } }, "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ=="], - "ansi-align": ["ansi-align@3.0.1", "", { "dependencies": { "string-width": "^4.1.0" } }, "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w=="], "ansi-colors": ["ansi-colors@4.1.3", "", {}, "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw=="], @@ -3271,7 +3380,7 @@ "bun-pty": ["bun-pty@0.4.8", "", {}, "sha512-rO70Mrbr13+jxHHHu2YBkk2pNqrJE5cJn29WE++PUr+GFA0hq/VgtQPZANJ8dJo6d7XImvBk37Innt8GM7O28w=="], - "bun-types": ["bun-types@1.3.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-QXKeHLlOLqQX9LgYaHJfzdBaV21T63HhFJnvuRCcjZiaUDpbs5ED1MgxbMra71CsryN/1dAoXuJJJwIv/2drVA=="], + "bun-types": ["bun-types@1.4.4", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-yjrJh5oGX7mMPKGd19YXyIjmEuj4G4zNC30bs7PM9Az7NQ3ndF3j6hbeRdvJTRQEhJ/FYQwW0a2moweEi2hMxQ=="], "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], @@ -3583,7 +3692,7 @@ "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], - "effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "effect": ["effect@4.0.6", "", {}, "sha512-Tc3mkzuLR6t6P9dhLt0D2GrxYtmU5td4XEJEiXCmILz53IRIfJyHsKZWjTA3xEjiwpNTtXBgI4iqYPxMztBDrw=="], "ejs": ["ejs@3.1.10", "", { "dependencies": { "jake": "^10.8.5" }, "bin": { "ejs": "bin/cli.js" } }, "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA=="], @@ -3767,6 +3876,8 @@ "fetch-blob": ["fetch-blob@3.2.0", "", { "dependencies": { "node-domexception": "^1.0.0", "web-streams-polyfill": "^3.0.3" } }, "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ=="], + "ffi-rs": ["ffi-rs@1.3.7", "", { "optionalDependencies": { "@yuuang/ffi-rs-android-arm64": "1.3.7", "@yuuang/ffi-rs-darwin-arm64": "1.3.7", "@yuuang/ffi-rs-darwin-x64": "1.3.7", "@yuuang/ffi-rs-linux-arm-gnueabihf": "1.3.7", "@yuuang/ffi-rs-linux-arm64-gnu": "1.3.7", "@yuuang/ffi-rs-linux-arm64-musl": "1.3.7", "@yuuang/ffi-rs-linux-x64-gnu": "1.3.7", "@yuuang/ffi-rs-linux-x64-musl": "1.3.7", "@yuuang/ffi-rs-win32-arm64-msvc": "1.3.7", "@yuuang/ffi-rs-win32-ia32-msvc": "1.3.7", "@yuuang/ffi-rs-win32-x64-msvc": "1.3.7" } }, "sha512-5MMZQS2t/6f/ec3sx0f51gBcKGZPGfolPAW04lvLOSYnr7gmOKs8YzH1Rh+34WGO+VtcgcTuxaUUoJLcR4Tirg=="], + "filelist": ["filelist@1.0.6", "", { "dependencies": { "minimatch": "^5.0.1" } }, "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA=="], "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="], @@ -3861,7 +3972,7 @@ "github-slugger": ["github-slugger@2.0.0", "", {}, "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw=="], - "gitlab-ai-provider": ["gitlab-ai-provider@6.18.0", "", { "dependencies": { "@anthropic-ai/sdk": "^0.71.0", "@anycable/core": "^0.9.2", "graphql-request": "^6.1.0", "isomorphic-ws": "^5.0.0", "openai": "^6.16.0", "socket.io-client": "^4.8.1", "vscode-jsonrpc": "^8.2.1", "zod": "^3.25.76" }, "peerDependencies": { "@ai-sdk/provider": ">=3.0.0", "@ai-sdk/provider-utils": ">=4.0.0" } }, "sha512-dXTXkNt1SFCL7jGlqazHL6iUJEug21qq0tx2s+Tui7jWNUqIAHEzY9WY1+PnZlhxvB56jPPBcFAT0attpjnopg=="], + "gitlab-ai-provider": ["gitlab-ai-provider@6.23.1", "", { "dependencies": { "@anthropic-ai/sdk": "^0.71.0", "@anycable/core": "^0.9.2", "graphql-request": "^6.1.0", "isomorphic-ws": "^5.0.0", "openai": "^6.16.0", "proper-lockfile": "^4.1.2", "socket.io-client": "^4.8.1", "vscode-jsonrpc": "^8.2.1", "zod": "^3.25.76" }, "peerDependencies": { "@ai-sdk/provider": ">=3.0.0", "@ai-sdk/provider-utils": ">=4.0.0" } }, "sha512-qzmsGAcIdlTj8B/eZvqYmwy6CzIXw3Q6zoNEUEG+PErDFFklyFf4I2o7Hbp3lhSm6kOBoQLL9qbZrE96QhnG2Q=="], "glob": ["glob@13.0.5", "", { "dependencies": { "minimatch": "^10.2.1", "minipass": "^7.1.2", "path-scurry": "^2.0.0" } }, "sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw=="], @@ -4531,7 +4642,7 @@ "no-case": ["no-case@3.0.4", "", { "dependencies": { "lower-case": "^2.0.2", "tslib": "^2.0.3" } }, "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg=="], - "node-abi": ["node-abi@4.31.0", "", { "dependencies": { "semver": "^7.6.3" } }, "sha512-Erq5w/t3syw3s4sDsUaX4QttIdBPsGKTT1DTRsCkTonGggczhlDKm/wDX3o+HPJpQ41EjXCbcmXf0tgr5YZJXw=="], + "node-abi": ["node-abi@4.40.0", "", { "dependencies": { "semver": "^7.6.3" } }, "sha512-GuvqvtrOk+AC27RidBxBsMzVNkwNl7PjHgc4NXbmdvSVLgIUjpaqcG1FjNRYnt2Yn9Ytq+Ln37XsBaglUcte/w=="], "node-addon-api": ["node-addon-api@7.1.1", "", {}, "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ=="], @@ -4669,7 +4780,7 @@ "package-manager-detector": ["package-manager-detector@1.6.0", "", {}, "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA=="], - "pacote": ["pacote@21.5.0", "", { "dependencies": { "@gar/promise-retry": "^1.0.0", "@npmcli/git": "^7.0.0", "@npmcli/installed-package-contents": "^4.0.0", "@npmcli/package-json": "^7.0.0", "@npmcli/promise-spawn": "^9.0.0", "@npmcli/run-script": "^10.0.0", "cacache": "^20.0.0", "fs-minipass": "^3.0.0", "minipass": "^7.0.2", "npm-package-arg": "^13.0.0", "npm-packlist": "^10.0.1", "npm-pick-manifest": "^11.0.1", "npm-registry-fetch": "^19.0.0", "proc-log": "^6.0.0", "sigstore": "^4.0.0", "ssri": "^13.0.0", "tar": "^7.4.3" }, "bin": { "pacote": "bin/index.js" } }, "sha512-VtZ0SB8mb5Tzw3dXDfVAIjhyVKUHZkS/ZH9/5mpKenwC9sFOXNI0JI7kEF7IMkwOnsWMFrvAZHzx1T5fmrp9FQ=="], + "pacote": ["pacote@21.5.1", "", { "dependencies": { "@gar/promise-retry": "^1.0.0", "@npmcli/git": "^7.0.0", "@npmcli/installed-package-contents": "^4.0.0", "@npmcli/package-json": "^7.0.0", "@npmcli/promise-spawn": "^9.0.0", "@npmcli/run-script": "^10.0.0", "cacache": "^20.0.0", "fs-minipass": "^3.0.0", "minipass": "^7.0.2", "npm-package-arg": "^13.0.0", "npm-packlist": "^10.0.1", "npm-pick-manifest": "^11.0.1", "npm-registry-fetch": "^19.0.0", "proc-log": "^6.0.0", "sigstore": "^4.0.0", "ssri": "^13.0.0", "tar": "^7.4.3" }, "bin": { "pacote": "bin/index.js" } }, "sha512-KvcJ9iy3crysCsgqc4+PknH/w6jkrp8JN36mpZBPwNaDRwTfMZD37YzRazNstiZUOhuF5pno9f78n9mEJBavwg=="], "pagefind": ["pagefind@1.5.2", "", { "optionalDependencies": { "@pagefind/darwin-arm64": "1.5.2", "@pagefind/darwin-x64": "1.5.2", "@pagefind/freebsd-x64": "1.5.2", "@pagefind/linux-arm64": "1.5.2", "@pagefind/linux-x64": "1.5.2", "@pagefind/windows-arm64": "1.5.2", "@pagefind/windows-x64": "1.5.2" }, "bin": { "pagefind": "lib/runner/bin.cjs" } }, "sha512-XTUaK0hXMCu2jszWE584JGQT7y284TmMV9l/HX3rnG5uo3rHI/uHU56XTyyyPFjeWEBxECbAi0CaFDJOONtG0Q=="], @@ -4903,6 +5014,8 @@ "redent": ["redent@3.0.0", "", { "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" } }, "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg=="], + "redis": ["redis@6.3.1", "", { "dependencies": { "@redis/bloom": "6.3.1", "@redis/client": "6.3.1", "@redis/json": "6.3.1", "@redis/search": "6.3.1", "@redis/time-series": "6.3.1" } }, "sha512-mV96ZKxQ4CGn3SyEGaY0Lb9YA443mdVey3c+mdr0NAUaBxiOZGoYCWX8PoM55kictSOmxlJRtZJxIsmZm3jL+w=="], + "redis-errors": ["redis-errors@1.2.0", "", {}, "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w=="], "redis-parser": ["redis-parser@3.0.0", "", { "dependencies": { "redis-errors": "^1.0.0" } }, "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A=="], @@ -5081,7 +5194,7 @@ "siginfo": ["siginfo@2.0.0", "", {}, "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="], - "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + "signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="], "sigstore": ["sigstore@4.1.1", "", { "dependencies": { "@sigstore/bundle": "^4.0.0", "@sigstore/core": "^3.2.1", "@sigstore/protobuf-specs": "^0.5.0", "@sigstore/sign": "^4.1.1", "@sigstore/tuf": "^4.0.2", "@sigstore/verify": "^3.1.1" } }, "sha512-endqECJkfhozrXMK5ngu/UAA0xVcVEFdnHJCElGaExypjW+HK5i6zu3NteLoaX/iFbRUbC3+DjttQs0GARr+5w=="], @@ -5387,7 +5500,7 @@ "uncrypto": ["uncrypto@0.1.3", "", {}, "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q=="], - "undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], + "undici": ["undici@8.12.3", "", {}, "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw=="], "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], @@ -5615,8 +5728,6 @@ "zod-to-json-schema": ["zod-to-json-schema@3.25.2", "", { "peerDependencies": { "zod": "^3.25.28 || ^4" } }, "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA=="], - "zod-to-ts": ["zod-to-ts@1.2.0", "", { "peerDependencies": { "typescript": "^4.9.4 || ^5.0.2", "zod": "^3" } }, "sha512-x30XE43V+InwGpvTySRNz9kB7qFU8DlyEy7BsSTCHPH1R0QasMmHWZDCzYm6bVXtj/9NNJAZF3jW8rzFvH5OFA=="], - "zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="], "@actions/artifact/@actions/core": ["@actions/core@2.0.3", "", { "dependencies": { "@actions/exec": "^2.0.0", "@actions/http-client": "^3.0.2" } }, "sha512-Od9Thc3T1mQJYddvVPM4QGiLUewdh+3txmDYHHxoNdkqysR1MbCT+rFOtNUxYAz+7+6RIsqipVahY2GJqGPyxA=="], @@ -5625,10 +5736,6 @@ "@actions/github/@actions/http-client": ["@actions/http-client@2.2.3", "", { "dependencies": { "tunnel": "^0.0.6", "undici": "^5.25.4" } }, "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA=="], - "@actions/github/@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@9.2.2", "", { "dependencies": { "@octokit/types": "^12.6.0" }, "peerDependencies": { "@octokit/core": "5" } }, "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ=="], - - "@actions/github/@octokit/plugin-rest-endpoint-methods": ["@octokit/plugin-rest-endpoint-methods@10.4.1", "", { "dependencies": { "@octokit/types": "^12.6.0" }, "peerDependencies": { "@octokit/core": "5" } }, "sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg=="], - "@actions/github/undici": ["undici@5.29.0", "", { "dependencies": { "@fastify/busboy": "^2.0.0" } }, "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg=="], "@actions/http-client/undici": ["undici@6.26.0", "", {}, "sha512-4yqz8a3n5HmGTlsbADNtr/dJlhkh/55Rq798G6ibiULcXbDtaLpTl1pvdqcbFfeoj3iSi52lePFM7h9H21cw/A=="], @@ -5735,11 +5842,11 @@ "@ai-sdk/vercel/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.21", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.6" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-MtFUYI1/8mgDvRmaBDjbLJPFFrMG777AvSgyIFQtZHIMzm88R/12vYBBpnk7pfiWLFE1DSZzY4WDYzGbKAcmiw=="], - "@ai-sdk/xai/@ai-sdk/openai-compatible": ["@ai-sdk/openai-compatible@2.0.56", "", { "dependencies": { "@ai-sdk/provider": "3.0.13", "@ai-sdk/provider-utils": "4.0.35" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-cQrN6OUn/jvsY3OdsU6Wn+ss7vp1iwIcakZKSlSRMnYqShBfyT7Qht+eqmgxs7w9ttrw6FAG6o11AiBs+iEsTA=="], + "@ai-sdk/xai/@ai-sdk/openai-compatible": ["@ai-sdk/openai-compatible@2.0.81", "", { "dependencies": { "@ai-sdk/provider": "3.0.18", "@ai-sdk/provider-utils": "4.0.57" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-L14Jd0lAFKNM42l9TxlpwkNiyMlSvSvGySLc9GN4FB0qOo4/WmYOeLyn/CPhghIr0K4O6vH1y0nChxGljq2ccg=="], - "@ai-sdk/xai/@ai-sdk/provider": ["@ai-sdk/provider@3.0.13", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-ZPtVYt5QIJzOta1kdUiDuCx4HhFkvNPv/rvmZ2b1iXwybYjJsCnNYR4PAw4kW7rgVfDARvHXcU64efWuqNp6bw=="], + "@ai-sdk/xai/@ai-sdk/provider": ["@ai-sdk/provider@3.0.18", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-IpefF5ssZVOZCD4Wu7zxt6PwZoGT2HLVjxpJ10Bjx6EAmRfLYJPjyrfxb0RYDlwvXnDb9nkQ7Do/oJVDuRFzew=="], - "@ai-sdk/xai/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.35", "", { "dependencies": { "@ai-sdk/provider": "3.0.13", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.8" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-bjYld/2KGPLt78kpqbya+fD4LYS7BqVQJyUjE3qAHrYB0FR2Q90BaWEVIBZaguTWXf/A8L6uG1zO1v9TxVlGWg=="], + "@ai-sdk/xai/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.57", "", { "dependencies": { "@ai-sdk/provider": "3.0.18", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.8", "undici": "^6.28.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-89a7sPvZqXsP3PigcAQLWntu/duIVEcN/RyChAB+j6p3C7NwW767sVttvL8r0+BetTg63uAXQoYHCZZueQKBSw=="], "@astrojs/check/yargs": ["yargs@17.7.2", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="], @@ -5781,16 +5888,12 @@ "@aws-crypto/util/@smithy/util-utf8": ["@smithy/util-utf8@2.3.0", "", { "dependencies": { "@smithy/util-buffer-from": "^2.2.0", "tslib": "^2.6.2" } }, "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A=="], - "@aws-sdk/client-athena/@smithy/util-utf8": ["@smithy/util-utf8@4.2.2", "", { "dependencies": { "@smithy/util-buffer-from": "^4.2.2", "tslib": "^2.6.2" } }, "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw=="], - "@aws-sdk/client-cognito-identity/@aws-sdk/core": ["@aws-sdk/core@3.974.15", "", { "dependencies": { "@aws-sdk/types": "^3.973.9", "@aws-sdk/xml-builder": "^3.972.26", "@aws/lambda-invoke-store": "^0.2.2", "@smithy/core": "^3.24.5", "@smithy/signature-v4": "^5.4.5", "@smithy/types": "^4.14.2", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-UpA0rTGW/tHGITcCqHisbuuEPraYg9GG+mWmXjY5+RxZBMLGe6aL9oe0ix50LztwAcPIkGZLH0yWdMIkCM10hw=="], "@aws-sdk/client-cognito-identity/@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.47", "", { "dependencies": { "@aws-sdk/credential-provider-env": "^3.972.41", "@aws-sdk/credential-provider-http": "^3.972.43", "@aws-sdk/credential-provider-ini": "^3.972.46", "@aws-sdk/credential-provider-process": "^3.972.41", "@aws-sdk/credential-provider-sso": "^3.972.45", "@aws-sdk/credential-provider-web-identity": "^3.972.45", "@aws-sdk/types": "^3.973.9", "@smithy/core": "^3.24.5", "@smithy/credential-provider-imds": "^4.3.6", "@smithy/types": "^4.14.2", "tslib": "^2.6.2" } }, "sha512-HrId+C0DWA5qDIyLG64/kjUB2RNtPypxmABnIctK+TA1P1kHlOYoE/Wf5T5tKOMKgb08P7k/zNyhvfJ3lh5Oag=="], "@aws-sdk/client-cognito-identity/@aws-sdk/types": ["@aws-sdk/types@3.973.9", "", { "dependencies": { "@smithy/types": "^4.14.2", "tslib": "^2.6.2" } }, "sha512-kuBfgQVdcz5Bmapc4A13YbpVw/pXkesfhetcFYwbntqas8sF41OHyd4o28+/TG2ZQdHBsv90Lsu5y6oitvYCdg=="], - "@aws-sdk/client-firehose/@smithy/util-utf8": ["@smithy/util-utf8@4.2.2", "", { "dependencies": { "@smithy/util-buffer-from": "^4.2.2", "tslib": "^2.6.2" } }, "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw=="], - "@aws-sdk/client-lambda/@aws-sdk/core": ["@aws-sdk/core@3.974.15", "", { "dependencies": { "@aws-sdk/types": "^3.973.9", "@aws-sdk/xml-builder": "^3.972.26", "@aws/lambda-invoke-store": "^0.2.2", "@smithy/core": "^3.24.5", "@smithy/signature-v4": "^5.4.5", "@smithy/types": "^4.14.2", "bowser": "^2.11.0", "tslib": "^2.6.2" } }, "sha512-UpA0rTGW/tHGITcCqHisbuuEPraYg9GG+mWmXjY5+RxZBMLGe6aL9oe0ix50LztwAcPIkGZLH0yWdMIkCM10hw=="], "@aws-sdk/client-lambda/@aws-sdk/credential-provider-node": ["@aws-sdk/credential-provider-node@3.972.47", "", { "dependencies": { "@aws-sdk/credential-provider-env": "^3.972.41", "@aws-sdk/credential-provider-http": "^3.972.43", "@aws-sdk/credential-provider-ini": "^3.972.46", "@aws-sdk/credential-provider-process": "^3.972.41", "@aws-sdk/credential-provider-sso": "^3.972.45", "@aws-sdk/credential-provider-web-identity": "^3.972.45", "@aws-sdk/types": "^3.973.9", "@smithy/core": "^3.24.5", "@smithy/credential-provider-imds": "^4.3.6", "@smithy/types": "^4.14.2", "tslib": "^2.6.2" } }, "sha512-HrId+C0DWA5qDIyLG64/kjUB2RNtPypxmABnIctK+TA1P1kHlOYoE/Wf5T5tKOMKgb08P7k/zNyhvfJ3lh5Oag=="], @@ -5917,8 +6020,14 @@ "@develar/schema-utils/ajv": ["ajv@6.15.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw=="], + "@develar/schema-utils/ajv-keywords": ["ajv-keywords@3.5.2", "", { "peerDependencies": { "ajv": "^6.9.1" } }, "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ=="], + "@dot/log/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + "@effect/platform-node-shared/@types/ws": ["@types/ws@8.18.2", "", { "dependencies": { "@types/node": "*" } }, "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w=="], + + "@effect/platform-node-shared/ws": ["ws@8.22.1", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g=="], + "@electron/asar/commander": ["commander@5.1.0", "", {}, "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg=="], "@electron/asar/glob": ["glob@7.2.3", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="], @@ -5969,6 +6078,12 @@ "@mdx-js/mdx/source-map": ["source-map@0.7.6", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="], + "@modelcontextprotocol/client/jose": ["jose@6.2.3", "", {}, "sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw=="], + + "@modelcontextprotocol/client/zod": ["zod@4.4.3", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="], + + "@modelcontextprotocol/core/zod": ["zod@4.4.3", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="], + "@modelcontextprotocol/sdk/express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="], "@modelcontextprotocol/sdk/hono": ["hono@4.12.23", "", {}, "sha512-eIaZ9qDgu7XV0pxOCrg7/WhnQ6Ivm22UcxhXx/A3dcbqbbYgBEkc6e/J/s7j2tS96zoB0S9VBdLwQNCWwUo4LA=="], @@ -5979,10 +6094,16 @@ "@modelcontextprotocol/sdk/zod": ["zod@4.4.3", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="], + "@modelcontextprotocol/server/zod": ["zod@4.4.3", "", {}, "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ=="], + + "@npmcli/arborist/pacote": ["pacote@21.5.0", "", { "dependencies": { "@gar/promise-retry": "^1.0.0", "@npmcli/git": "^7.0.0", "@npmcli/installed-package-contents": "^4.0.0", "@npmcli/package-json": "^7.0.0", "@npmcli/promise-spawn": "^9.0.0", "@npmcli/run-script": "^10.0.0", "cacache": "^20.0.0", "fs-minipass": "^3.0.0", "minipass": "^7.0.2", "npm-package-arg": "^13.0.0", "npm-packlist": "^10.0.1", "npm-pick-manifest": "^11.0.1", "npm-registry-fetch": "^19.0.0", "proc-log": "^6.0.0", "sigstore": "^4.0.0", "ssri": "^13.0.0", "tar": "^7.4.3" }, "bin": { "pacote": "bin/index.js" } }, "sha512-VtZ0SB8mb5Tzw3dXDfVAIjhyVKUHZkS/ZH9/5mpKenwC9sFOXNI0JI7kEF7IMkwOnsWMFrvAZHzx1T5fmrp9FQ=="], + "@npmcli/config/ini": ["ini@6.0.0", "", {}, "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ=="], "@npmcli/git/ini": ["ini@6.0.0", "", {}, "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ=="], + "@npmcli/metavuln-calculator/pacote": ["pacote@21.5.0", "", { "dependencies": { "@gar/promise-retry": "^1.0.0", "@npmcli/git": "^7.0.0", "@npmcli/installed-package-contents": "^4.0.0", "@npmcli/package-json": "^7.0.0", "@npmcli/promise-spawn": "^9.0.0", "@npmcli/run-script": "^10.0.0", "cacache": "^20.0.0", "fs-minipass": "^3.0.0", "minipass": "^7.0.2", "npm-package-arg": "^13.0.0", "npm-packlist": "^10.0.1", "npm-pick-manifest": "^11.0.1", "npm-registry-fetch": "^19.0.0", "proc-log": "^6.0.0", "sigstore": "^4.0.0", "ssri": "^13.0.0", "tar": "^7.4.3" }, "bin": { "pacote": "bin/index.js" } }, "sha512-VtZ0SB8mb5Tzw3dXDfVAIjhyVKUHZkS/ZH9/5mpKenwC9sFOXNI0JI7kEF7IMkwOnsWMFrvAZHzx1T5fmrp9FQ=="], + "@npmcli/query/postcss-selector-parser": ["postcss-selector-parser@7.1.1", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg=="], "@octokit/auth-app/@octokit/request": ["@octokit/request@10.0.10", "", { "dependencies": { "@octokit/endpoint": "^11.0.3", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "content-type": "^2.0.0", "json-with-bigint": "^3.5.3", "universal-user-agent": "^7.0.2" } }, "sha512-KxNC2pTqqhszMNrf12ZRd4PonRgyJdsM4F/jySiddQK+DsRcfBtUvqn8t7UsyZhnRJHvX46OohDt5N3VqIWC2w=="], @@ -6021,13 +6142,9 @@ "@octokit/oauth-methods/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], - "@octokit/plugin-paginate-rest/@octokit/core": ["@octokit/core@7.0.6", "", { "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", "@octokit/request": "^10.0.6", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "before-after-hook": "^4.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q=="], - - "@octokit/plugin-paginate-rest/@octokit/types": ["@octokit/types@15.0.2", "", { "dependencies": { "@octokit/openapi-types": "^26.0.0" } }, "sha512-rR+5VRjhYSer7sC51krfCctQhVTmjyUMAaShfPB8mscVa8tSoLyon3coxQmXu0ahJoLVWl8dSGD/3OGZlFV44Q=="], - - "@octokit/plugin-rest-endpoint-methods/@octokit/core": ["@octokit/core@7.0.6", "", { "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", "@octokit/request": "^10.0.6", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "before-after-hook": "^4.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q=="], + "@octokit/plugin-paginate-rest/@octokit/types": ["@octokit/types@12.6.0", "", { "dependencies": { "@octokit/openapi-types": "^20.0.0" } }, "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/types": ["@octokit/types@15.0.2", "", { "dependencies": { "@octokit/openapi-types": "^26.0.0" } }, "sha512-rR+5VRjhYSer7sC51krfCctQhVTmjyUMAaShfPB8mscVa8tSoLyon3coxQmXu0ahJoLVWl8dSGD/3OGZlFV44Q=="], + "@octokit/plugin-rest-endpoint-methods/@octokit/types": ["@octokit/types@12.6.0", "", { "dependencies": { "@octokit/openapi-types": "^20.0.0" } }, "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw=="], "@octokit/plugin-retry/@octokit/types": ["@octokit/types@6.41.0", "", { "dependencies": { "@octokit/openapi-types": "^12.11.0" } }, "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg=="], @@ -6039,40 +6156,146 @@ "@octokit/rest/@octokit/core": ["@octokit/core@7.0.6", "", { "dependencies": { "@octokit/auth-token": "^6.0.0", "@octokit/graphql": "^9.0.3", "@octokit/request": "^10.0.6", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "before-after-hook": "^4.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q=="], + "@octokit/rest/@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@13.2.1", "", { "dependencies": { "@octokit/types": "^15.0.1" }, "peerDependencies": { "@octokit/core": ">=6" } }, "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw=="], + "@octokit/rest/@octokit/plugin-request-log": ["@octokit/plugin-request-log@6.0.0", "", { "peerDependencies": { "@octokit/core": ">=6" } }, "sha512-UkOzeEN3W91/eBq9sPZNQ7sUBvYCqYbrrD8gTbBuGtHEuycE4/awMXcYvx6sVYo7LypPhmQwwpUe4Yyu4QZN5Q=="], + "@octokit/rest/@octokit/plugin-rest-endpoint-methods": ["@octokit/plugin-rest-endpoint-methods@16.1.1", "", { "dependencies": { "@octokit/types": "^15.0.1" }, "peerDependencies": { "@octokit/core": ">=6" } }, "sha512-VztDkhM0ketQYSh5Im3IcKWFZl7VIrrsCaHbDINkdYeiiAsJzjhS2xRFCSJgfN6VOcsoW4laMtsmf3HcNqIimg=="], + "@openauthjs/openauth/@standard-schema/spec": ["@standard-schema/spec@1.0.0-beta.3", "", {}, "sha512-0ifF3BjA1E8SY9C+nUew8RefNOIq0cDlYALPty4rhUm8Rrl6tCM8hBT4bhGhx7I7iXD0uAgt50lgo8dD73ACMw=="], "@openauthjs/openauth/jose": ["jose@5.9.6", "", {}, "sha512-AMlnetc9+CV9asI19zHmrgS/WYsWUwCn2R7RzlbJWD7F9eWYUTGyBmU9o6PxngtLGOiDGPRu+Uc4fhKzbpteZQ=="], - "@opencode-ai/app/@opencode-ai/client": ["@opencode-ai/client@vendor/opencode-ai-client-1.17.13-v2.tgz", {}, "sha512-332kgNifvpQOF9e3UA+pIa5xPrMhLaQkUiNiO+meS0Ba9HjSE6hfsWnEojMkD0DPSLqPP6rCF1dDoF7U0Y0OCQ=="], + "@opencode-ai/app/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/cli/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + + "@opencode-ai/cli/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/client/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + + "@opencode-ai/client/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/codemode/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], "@opencode-ai/core/@ai-sdk/openai": ["@ai-sdk/openai@3.0.88", "", { "dependencies": { "@ai-sdk/provider": "3.0.14", "@ai-sdk/provider-utils": "4.0.40" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-6M4+bxK/UMijDYK2ia1hCKYma1iajFYxHDlhbinFUdhH2WbFsjoZRMpSjEMlTOBptqmh2J1JclKnprGulF8WwQ=="], "@opencode-ai/core/@ai-sdk/openai-compatible": ["@ai-sdk/openai-compatible@2.0.41", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@ai-sdk/provider-utils": "4.0.23" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-kNAGINk71AlOXx10Dq/PXw4t/9XjdK8uxfpVElRwtSFMdeSiLVt58p9TPx4/FJD+hxZuVhvxYj9r42osxWq79g=="], + "@opencode-ai/core/@effect/opentelemetry": ["@effect/opentelemetry@4.0.0-beta.83", "", { "peerDependencies": { "@opentelemetry/api": "^1.9", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": "^2.0.0", "@opentelemetry/sdk-trace-base": "^2.0.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "@opentelemetry/sdk-trace-web": "^2.0.0", "@opentelemetry/semantic-conventions": "^1.33.0", "effect": "^4.0.0-beta.83" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-cPfCfp/ghu0itbX6Dqjdr4N0rbjng5ON4sUpnLHV5JJySG8zZpWmuOZLWIrfrNKT2ctYR1BYmp1aYCgkItaJLw=="], + + "@opencode-ai/core/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + + "@opencode-ai/core/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@opencode-ai/core/semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], "@opencode-ai/desktop/@actions/artifact": ["@actions/artifact@4.0.0", "", { "dependencies": { "@actions/core": "^1.10.0", "@actions/github": "^6.0.1", "@actions/http-client": "^2.1.0", "@azure/core-http": "^3.0.5", "@azure/storage-blob": "^12.15.0", "@octokit/core": "^5.2.1", "@octokit/plugin-request-log": "^1.0.4", "@octokit/plugin-retry": "^3.0.9", "@octokit/request": "^8.4.1", "@octokit/request-error": "^5.1.1", "@protobuf-ts/plugin": "^2.2.3-alpha.1", "archiver": "^7.0.1", "jwt-decode": "^3.1.2", "unzip-stream": "^0.3.1" } }, "sha512-HCc2jMJRAfviGFAh0FsOR/jNfWhirxl7W6z8zDtttt0GltwxBLdEIjLiweOPFl9WbyJRW1VWnPUSAixJqcWUMQ=="], + "@opencode-ai/desktop/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@opencode-ai/desktop/typescript": ["typescript@5.6.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw=="], + "@opencode-ai/effect-drizzle-sqlite/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/effect-sqlite-node/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/http-recorder/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + + "@opencode-ai/http-recorder/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], + + "@opencode-ai/http-recorder/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/httpapi-codegen/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/llm/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + "@opencode-ai/llm/@smithy/eventstream-codec": ["@smithy/eventstream-codec@4.2.14", "", { "dependencies": { "@aws-crypto/crc32": "5.2.0", "@smithy/types": "^4.14.1", "@smithy/util-hex-encoding": "^4.2.2", "tslib": "^2.6.2" } }, "sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw=="], "@opencode-ai/llm/@smithy/util-utf8": ["@smithy/util-utf8@4.2.2", "", { "dependencies": { "@smithy/util-buffer-from": "^4.2.2", "tslib": "^2.6.2" } }, "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw=="], + "@opencode-ai/llm/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@opencode-ai/plugin/@ai-sdk/provider": ["@ai-sdk/provider@3.0.8", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ=="], + "@opencode-ai/plugin/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/protocol/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/schema/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@opencode-ai/script/semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], + "@opencode-ai/sdk-next/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/server/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@opencode-ai/session-ui/@opencode-ai/client": ["@opencode-ai/client@../app/vendor/opencode-ai-client-1.17.13-v2.tgz", {}, "sha512-332kgNifvpQOF9e3UA+pIa5xPrMhLaQkUiNiO+meS0Ba9HjSE6hfsWnEojMkD0DPSLqPP6rCF1dDoF7U0Y0OCQ=="], "@opencode-ai/session-ui/@solid-primitives/resize-observer": ["@solid-primitives/resize-observer@2.1.3", "", { "dependencies": { "@solid-primitives/event-listener": "^2.4.3", "@solid-primitives/rootless": "^1.5.2", "@solid-primitives/static-store": "^0.1.2", "@solid-primitives/utils": "^6.3.2" }, "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-zBLje5E06TgOg93S7rGPldmhDnouNGhvfZVKOp+oG2XU8snA+GoCSSCz1M+jpNAg5Ek2EakU5UVQqL152WmdXQ=="], + "@opencode-ai/stats-app/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/stats-core/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/stats-server/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + + "@opencode-ai/stats-server/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@opencode-ai/tui/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@opencode-ai/ui/@solid-primitives/resize-observer": ["@solid-primitives/resize-observer@2.1.3", "", { "dependencies": { "@solid-primitives/event-listener": "^2.4.3", "@solid-primitives/rootless": "^1.5.2", "@solid-primitives/static-store": "^0.1.2", "@solid-primitives/utils": "^6.3.2" }, "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-zBLje5E06TgOg93S7rGPldmhDnouNGhvfZVKOp+oG2XU8snA+GoCSSCz1M+jpNAg5Ek2EakU5UVQqL152WmdXQ=="], "@opencode-ai/web/@shikijs/transformers": ["@shikijs/transformers@3.20.0", "", { "dependencies": { "@shikijs/core": "3.20.0", "@shikijs/types": "3.20.0" } }, "sha512-PrHHMRr3Q5W1qB/42kJW6laqFyWdhrPF2hNR9qjOm1xcSiAO3hAHo7HaVyHE6pMyevmy3i51O8kuGGXC78uK3g=="], + "@opencode/ai/@smithy/eventstream-codec": ["@smithy/eventstream-codec@4.2.14", "", { "dependencies": { "@aws-crypto/crc32": "5.2.0", "@smithy/types": "^4.14.1", "@smithy/util-hex-encoding": "^4.2.2", "tslib": "^2.6.2" } }, "sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw=="], + + "@opencode/ai/@smithy/util-utf8": ["@smithy/util-utf8@4.2.2", "", { "dependencies": { "@smithy/util-buffer-from": "^4.2.2", "tslib": "^2.6.2" } }, "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw=="], + + "@opencode/core/@ai-sdk/provider": ["@ai-sdk/provider@3.0.19", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-5lWq7zSfRaU5ylDESn3sDQjgGl2AI1vjZKO/6JY3aFW70ct4zcP1kN+ZUYOuTXr28fVsYbyu2YFhddLdIgQFZQ=="], + + "@opencode/core/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.62", "", { "dependencies": { "@ai-sdk/provider": "3.0.19", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.8", "undici": "^6.28.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-+FXkZ2e169zASBHP5HAakP0Iai3Eoa8zgh7bnuZExsek3N9HgGt/c7l1Oibdxb79vvsn5Mrg2Sjam80mR6bL8A=="], + + "@opencode/core/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode/core/bun-pty": ["bun-pty@0.4.11", "", {}, "sha512-DpBfXCoWbcDziqL4gT3sFw/O6vfe2Gm1LmsnjfGjpqNhmsPjBcVorTrRv7OVATsy88PiXfn486vp0w4x3/Q84g=="], + + "@opencode/core/diff": ["diff@8.0.4", "", {}, "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw=="], + + "@opencode/core/drizzle-orm": ["drizzle-orm@1.0.0-rc.5-169397b", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@drizzle-team/minipg": ">=0.3.2", "@effect/sql-d1": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-libsql": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-mysql2": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-pg": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-pglite": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-bun": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-do": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-node": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-wasm": ">=4.0.0-beta.105 || >=4.0.0", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=17", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@sinclair/typebox": ">=0.34.8", "@sqlitecloud/drivers": ">=1.0.653", "@tidbcloud/serverless": "*", "@tursodatabase/database": ">=0.7.1", "@tursodatabase/database-common": ">=0.7.1", "@tursodatabase/database-wasm": ">=0.7.1", "@tursodatabase/serverless": ">=1.4.0", "@tursodatabase/sync": ">=0.7.1", "@types/better-sqlite3": "*", "@types/mssql": "^9.1.4", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "arktype": ">=2.0.0", "better-sqlite3": ">=9.3.0", "bun-types": "*", "effect": ">=4.0.0-beta.105 || >=4.0.0", "expo-sqlite": ">=14.0.0", "mssql": "^11.0.1", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "sql.js": ">=1", "sqlite3": ">=5", "typebox": ">=1.2.0", "valibot": ">=1.0.0-beta.7", "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@drizzle-team/minipg", "@effect/sql-d1", "@effect/sql-libsql", "@effect/sql-mysql2", "@effect/sql-pg", "@effect/sql-pglite", "@effect/sql-sqlite-bun", "@effect/sql-sqlite-do", "@effect/sql-sqlite-node", "@effect/sql-sqlite-wasm", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@sinclair/typebox", "@sqlitecloud/drivers", "@tidbcloud/serverless", "@tursodatabase/database", "@tursodatabase/database-common", "@tursodatabase/database-wasm", "@tursodatabase/serverless", "@tursodatabase/sync", "@types/better-sqlite3", "@types/mssql", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "arktype", "better-sqlite3", "bun-types", "effect", "expo-sqlite", "mssql", "mysql2", "pg", "postgres", "sql.js", "sqlite3", "typebox", "valibot", "zod"] }, "sha512-xf5TudQhFplMMzjwgmMY5f64Sqbv4iwXxdTHBHqvLMt+SHyY8rAYhzNLQchEkDxiqMclTS/txPEOg5pdQy0Tcw=="], + + "@opencode/core/zod": ["zod@4.6.7", "", {}, "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg=="], + + "@opencode/plugin/@ai-sdk/provider": ["@ai-sdk/provider@3.0.8", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ=="], + + "@opencode/schema/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode/util/@opentelemetry/context-async-hooks": ["@opentelemetry/context-async-hooks@2.8.0", "", { "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-/3FIraneMcng67SUJCxvyInk/oxzwsxyadufk0wwfOBLf5wqtAGX4MoQASwSbndBPeARzBryUM9Azr5kHIdWLw=="], + + "@opencode/util/@opentelemetry/exporter-trace-otlp-http": ["@opentelemetry/exporter-trace-otlp-http@0.219.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/otlp-exporter-base": "0.219.0", "@opentelemetry/otlp-transformer": "0.219.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-9t6SvBXXBEjOBcIzgozvBbd3jWrv3Gt3ngGhl1fhdZ/zRc7oZDVOFEqbi2zlBpW9BXhgDMKv422J0DL/3iQWfw=="], + + "@opencode/util/@opentelemetry/sdk-trace-base": ["@opentelemetry/sdk-trace-base@2.8.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-mhU4jp+vW0mGbFRd+GeXHvmfA4aDqWjBjLC3pE5XMpLs0IE2ryYb019Ts2AQrOq67gaTF25D91+fgvEHDZEnuQ=="], + + "@opencode/util/@opentelemetry/sdk-trace-node": ["@opentelemetry/sdk-trace-node@2.8.0", "", { "dependencies": { "@opentelemetry/context-async-hooks": "2.8.0", "@opentelemetry/core": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-nZt9OGufioAc3AfoLTqA9bsAeaMJAictYDdI2VcNQ+PmT+3rfKjAZDZvgPfd8VPX0O5Bw1hdQF6kDK8VSpZiWg=="], + + "@opentelemetry/exporter-trace-otlp-http/@opentelemetry/resources": ["@opentelemetry/resources@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-lID/vxSuKWXM55XhAKNoYXu9Cutoq5hFdkbTdI/zDKQktXzcWBVhNsOkiZFTMU9UtEWuGRNe0HUgmsFldIdxVA=="], + + "@opentelemetry/otlp-transformer/@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.214.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-40lSJeqYO8Uz2Yj7u94/SJWE/wONa7rmMKjI1ZcIjgf3MHNHv1OZUCrCETGuaRF62d5pQD1wKIW+L4lmSMTzZA=="], + + "@opentelemetry/otlp-transformer/@opentelemetry/resources": ["@opentelemetry/resources@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-lID/vxSuKWXM55XhAKNoYXu9Cutoq5hFdkbTdI/zDKQktXzcWBVhNsOkiZFTMU9UtEWuGRNe0HUgmsFldIdxVA=="], + + "@opentelemetry/otlp-transformer/@opentelemetry/sdk-logs": ["@opentelemetry/sdk-logs@0.214.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.214.0", "@opentelemetry/core": "2.6.1", "@opentelemetry/resources": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.4.0 <1.10.0" } }, "sha512-zf6acnScjhsaBUU22zXZ/sLWim1dfhUAbGXdMmHmNG3LfBnQ3DKsOCITb2IZwoUsNNMTogqFKBnlIPPftUgGwA=="], + + "@opentelemetry/otlp-transformer/@opentelemetry/sdk-metrics": ["@opentelemetry/sdk-metrics@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/resources": "2.6.1" }, "peerDependencies": { "@opentelemetry/api": ">=1.9.0 <1.10.0" } }, "sha512-9t9hJHX15meBy2NmTJxL+NJfXmnausR2xUDvE19XQce0Qi/GBtDGamU8nS1RMbdgDmhgpm3VaOu2+fiS/SfTpQ=="], + + "@opentelemetry/resources/@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + + "@opentelemetry/sdk-logs/@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + + "@opentelemetry/sdk-metrics/@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + + "@opentelemetry/sdk-trace-base/@opentelemetry/resources": ["@opentelemetry/resources@2.6.1", "", { "dependencies": { "@opentelemetry/core": "2.6.1", "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.3.0 <1.10.0" } }, "sha512-lID/vxSuKWXM55XhAKNoYXu9Cutoq5hFdkbTdI/zDKQktXzcWBVhNsOkiZFTMU9UtEWuGRNe0HUgmsFldIdxVA=="], + "@opentui/core/diff": ["diff@9.0.0", "", {}, "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw=="], "@opentui/core/marked": ["marked@17.0.1", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-boeBdiS0ghpWcSwoNm/jJBwdpFaMnZWRzjA6SkUMYb40SVaN1x7mmfGKp0jvexGcx+7y2La5zRZsYFZI6Qpypg=="], @@ -6141,6 +6364,10 @@ "@solidjs/start/vite": ["vite@7.1.10", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-CmuvUBzVJ/e3HGxhg6cYk88NGgTnBoOo7ogtfJJ0fefUWAxN/WDSUa50o+oVBxuIhO8FoEZW0j2eW7sfjs5EtA=="], + "@standard-community/standard-json/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + + "@standard-community/standard-openapi/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "@storybook/csf-plugin/unplugin": ["unplugin@2.3.11", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "acorn": "^8.15.0", "picomatch": "^4.0.3", "webpack-virtual-modules": "^0.6.2" } }, "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww=="], "@tailwindcss/oxide/detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], @@ -6205,9 +6432,9 @@ "ai-gateway-provider/@ai-sdk/perplexity": ["@ai-sdk/perplexity@3.0.53", "", { "dependencies": { "@ai-sdk/provider": "3.0.15", "@ai-sdk/provider-utils": "4.0.45" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-bL3SWrPltTuxVNg/bZ5APbJLVe0+BIU+BYAbT8Yo0eSAZ5eMTImN2murQHZa08Wi8lUMm8MNolaYBQkb0JDbFw=="], - "ai-gateway-provider/@openrouter/ai-sdk-provider": ["@openrouter/ai-sdk-provider@2.10.0", "", { "peerDependencies": { "ai": "^6.0.0", "zod": "^3.25.0 || ^4.0.0" } }, "sha512-FMsAEjLUt5pWuRE2LDC/LCvVrFjLlrEzUITH5+5SZtfq7KZ2wrOHjQVxzz92sju8S9ltpzW87CLW8/b0oBXVCw=="], + "ai-gateway-provider/@ai-sdk/xai": ["@ai-sdk/xai@3.0.102", "", { "dependencies": { "@ai-sdk/openai-compatible": "2.0.56", "@ai-sdk/provider": "3.0.13", "@ai-sdk/provider-utils": "4.0.35" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-NeQyOR7OCqDMgaLS4uNX/ep/HrwUzzFYLzXQSRoqLy2jsnqxAJhsgltRwAwf+ADjyPBIAKEOestWnIQA+LrLrQ=="], - "ajv-keywords/ajv": ["ajv@6.15.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw=="], + "ai-gateway-provider/@openrouter/ai-sdk-provider": ["@openrouter/ai-sdk-provider@2.10.0", "", { "peerDependencies": { "ai": "^6.0.0", "zod": "^3.25.0 || ^4.0.0" } }, "sha512-FMsAEjLUt5pWuRE2LDC/LCvVrFjLlrEzUITH5+5SZtfq7KZ2wrOHjQVxzz92sju8S9ltpzW87CLW8/b0oBXVCw=="], "ansi-align/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], @@ -6247,6 +6474,8 @@ "astro/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], + "astro/zod-to-ts": ["zod-to-ts@1.2.0", "", { "peerDependencies": { "typescript": "^4.9.4 || ^5.0.2", "zod": "^3" } }, "sha512-x30XE43V+InwGpvTySRNz9kB7qFU8DlyEy7BsSTCHPH1R0QasMmHWZDCzYm6bVXtj/9NNJAZF3jW8rzFvH5OFA=="], + "axios/https-proxy-agent": ["https-proxy-agent@5.0.1", "", { "dependencies": { "agent-base": "6", "debug": "4" } }, "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA=="], "babel-plugin-jsx-dom-expressions/@babel/helper-module-imports": ["@babel/helper-module-imports@7.18.6", "", { "dependencies": { "@babel/types": "^7.18.6" } }, "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA=="], @@ -6299,8 +6528,6 @@ "editorconfig/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="], - "effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], - "electron-builder/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], "electron-builder/yargs": ["yargs@17.7.2", "", { "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", "yargs-parser": "^21.1.1" } }, "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w=="], @@ -6333,6 +6560,8 @@ "execa/is-stream": ["is-stream@3.0.0", "", {}, "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA=="], + "execa/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + "express/cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="], "express/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], @@ -6345,6 +6574,8 @@ "finalhandler/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], + "foreground-child/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + "form-data/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], "fs-extra/jsonfile": ["jsonfile@6.2.1", "", { "dependencies": { "universalify": "^2.0.0" }, "optionalDependencies": { "graceful-fs": "^4.1.6" } }, "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q=="], @@ -6407,6 +6638,8 @@ "nitro/undici": ["undici@7.26.0", "", {}, "sha512-3O9Tf67pGhgOv9jM35AbhkXAKi13f3oy3aE4CSgr+TckGeY+/iu97ZXN+J7DpHPzLbVApFd1IFhcnBjREYXYcg=="], + "node-abi/semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], + "node-gyp/env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="], "node-gyp/undici": ["undici@6.26.0", "", {}, "sha512-4yqz8a3n5HmGTlsbADNtr/dJlhkh/55Rq798G6ibiULcXbDtaLpTl1pvdqcbFfeoj3iSi52lePFM7h9H21cw/A=="], @@ -6425,8 +6658,14 @@ "opencode/@ai-sdk/openai-compatible": ["@ai-sdk/openai-compatible@2.0.41", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@ai-sdk/provider-utils": "4.0.23" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-kNAGINk71AlOXx10Dq/PXw4t/9XjdK8uxfpVElRwtSFMdeSiLVt58p9TPx4/FJD+hxZuVhvxYj9r42osxWq79g=="], + "opencode/@effect/opentelemetry": ["@effect/opentelemetry@4.0.0-beta.83", "", { "peerDependencies": { "@opentelemetry/api": "^1.9", "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", "@opentelemetry/resources": "^2.0.0", "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", "@opentelemetry/sdk-metrics": "^2.0.0", "@opentelemetry/sdk-trace-base": "^2.0.0", "@opentelemetry/sdk-trace-node": "^2.0.0", "@opentelemetry/sdk-trace-web": "^2.0.0", "@opentelemetry/semantic-conventions": "^1.33.0", "effect": "^4.0.0-beta.83" }, "optionalPeers": ["@opentelemetry/api", "@opentelemetry/api-logs", "@opentelemetry/resources", "@opentelemetry/sdk-logs", "@opentelemetry/sdk-metrics", "@opentelemetry/sdk-trace-base", "@opentelemetry/sdk-trace-node", "@opentelemetry/sdk-trace-web"] }, "sha512-cPfCfp/ghu0itbX6Dqjdr4N0rbjng5ON4sUpnLHV5JJySG8zZpWmuOZLWIrfrNKT2ctYR1BYmp1aYCgkItaJLw=="], + + "opencode/@effect/platform-node": ["@effect/platform-node@4.0.0-beta.83", "", { "dependencies": { "@effect/platform-node-shared": "^4.0.0-beta.83", "mime": "^4.1.0", "undici": "^8.2.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83", "ioredis": "^5.7.0" } }, "sha512-RmpVGu/+X/Bif3/g1Rzj8oFzTOknoVB3yHCa0b179vytPpKe+Kj9ZwKNcAnKWqHUDkbSPBq1Ca60mvOHr2/+LQ=="], + "opencode/@solid-primitives/scheduled": ["@solid-primitives/scheduled@1.5.2", "", { "peerDependencies": { "solid-js": "^1.6.12" } }, "sha512-/j2igE0xyNaHhj6kMfcUQn5rAVSTLbAX+CDEBm25hSNBmNiHLu2lM7Usj2kJJ5j36D67bE8wR1hBNA8hjtvsQA=="], + "opencode/effect": ["effect@4.0.0-beta.83", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "fast-check": "^4.8.0", "find-my-way-ts": "^0.1.6", "ini": "^7.0.0", "kubernetes-types": "^1.30.0", "msgpackr": "^2.0.1", "multipasta": "^0.2.7", "toml": "^4.1.1", "uuid": "^14.0.0", "yaml": "^2.9.0" } }, "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w=="], + "opencode/semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="], "openid-client/jose": ["jose@4.15.9", "", {}, "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA=="], @@ -6465,8 +6704,6 @@ "prompts/kleur": ["kleur@3.0.3", "", {}, "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w=="], - "proper-lockfile/signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="], - "raw-body/iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="], "readdir-glob/minimatch": ["minimatch@5.1.9", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw=="], @@ -6571,6 +6808,8 @@ "wrap-ansi-cjs/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + "write-file-atomic/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + "wsl-utils/powershell-utils": ["powershell-utils@0.1.0", "", {}, "sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A=="], "yaml-language-server/request-light": ["request-light@0.5.8", "", {}, "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg=="], @@ -6579,16 +6818,10 @@ "yargs/yargs-parser": ["yargs-parser@22.0.0", "", {}, "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw=="], - "zod-to-ts/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], - "@actions/artifact/@actions/core/@actions/exec": ["@actions/exec@2.0.0", "", { "dependencies": { "@actions/io": "^2.0.0" } }, "sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw=="], "@actions/core/@actions/http-client/undici": ["undici@5.29.0", "", { "dependencies": { "@fastify/busboy": "^2.0.0" } }, "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg=="], - "@actions/github/@octokit/plugin-paginate-rest/@octokit/types": ["@octokit/types@12.6.0", "", { "dependencies": { "@octokit/openapi-types": "^20.0.0" } }, "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw=="], - - "@actions/github/@octokit/plugin-rest-endpoint-methods/@octokit/types": ["@octokit/types@12.6.0", "", { "dependencies": { "@octokit/openapi-types": "^20.0.0" } }, "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw=="], - "@ai-sdk/alibaba/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], "@ai-sdk/amazon-bedrock/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], @@ -6643,6 +6876,8 @@ "@ai-sdk/xai/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "@ai-sdk/xai/@ai-sdk/provider-utils/undici": ["undici@6.28.0", "", {}, "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA=="], + "@astrojs/check/yargs/cliui": ["cliui@8.0.1", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ=="], "@astrojs/check/yargs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], @@ -6889,51 +7124,47 @@ "@octokit/oauth-methods/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@27.0.0", "", {}, "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA=="], - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/auth-token": ["@octokit/auth-token@6.0.0", "", {}, "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="], + "@octokit/plugin-paginate-rest/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@20.0.0", "", {}, "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA=="], - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/graphql": ["@octokit/graphql@9.0.3", "", { "dependencies": { "@octokit/request": "^10.0.6", "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA=="], + "@octokit/plugin-rest-endpoint-methods/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@20.0.0", "", {}, "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA=="], - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/request": ["@octokit/request@10.0.10", "", { "dependencies": { "@octokit/endpoint": "^11.0.3", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "content-type": "^2.0.0", "json-with-bigint": "^3.5.3", "universal-user-agent": "^7.0.2" } }, "sha512-KxNC2pTqqhszMNrf12ZRd4PonRgyJdsM4F/jySiddQK+DsRcfBtUvqn8t7UsyZhnRJHvX46OohDt5N3VqIWC2w=="], + "@octokit/plugin-retry/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@12.11.0", "", {}, "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="], - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/request-error": ["@octokit/request-error@7.1.0", "", { "dependencies": { "@octokit/types": "^16.0.0" } }, "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw=="], + "@octokit/request-error/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@24.2.0", "", {}, "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg=="], - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], + "@octokit/request/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@24.2.0", "", {}, "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg=="], - "@octokit/plugin-paginate-rest/@octokit/core/before-after-hook": ["before-after-hook@4.0.0", "", {}, "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="], + "@octokit/rest/@octokit/core/@octokit/auth-token": ["@octokit/auth-token@6.0.0", "", {}, "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="], - "@octokit/plugin-paginate-rest/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@26.0.0", "", {}, "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA=="], + "@octokit/rest/@octokit/core/@octokit/graphql": ["@octokit/graphql@9.0.3", "", { "dependencies": { "@octokit/request": "^10.0.6", "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/auth-token": ["@octokit/auth-token@6.0.0", "", {}, "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="], + "@octokit/rest/@octokit/core/@octokit/request": ["@octokit/request@10.0.10", "", { "dependencies": { "@octokit/endpoint": "^11.0.3", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "content-type": "^2.0.0", "json-with-bigint": "^3.5.3", "universal-user-agent": "^7.0.2" } }, "sha512-KxNC2pTqqhszMNrf12ZRd4PonRgyJdsM4F/jySiddQK+DsRcfBtUvqn8t7UsyZhnRJHvX46OohDt5N3VqIWC2w=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/graphql": ["@octokit/graphql@9.0.3", "", { "dependencies": { "@octokit/request": "^10.0.6", "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA=="], + "@octokit/rest/@octokit/core/@octokit/request-error": ["@octokit/request-error@7.1.0", "", { "dependencies": { "@octokit/types": "^16.0.0" } }, "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/request": ["@octokit/request@10.0.10", "", { "dependencies": { "@octokit/endpoint": "^11.0.3", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "content-type": "^2.0.0", "json-with-bigint": "^3.5.3", "universal-user-agent": "^7.0.2" } }, "sha512-KxNC2pTqqhszMNrf12ZRd4PonRgyJdsM4F/jySiddQK+DsRcfBtUvqn8t7UsyZhnRJHvX46OohDt5N3VqIWC2w=="], + "@octokit/rest/@octokit/core/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/request-error": ["@octokit/request-error@7.1.0", "", { "dependencies": { "@octokit/types": "^16.0.0" } }, "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw=="], + "@octokit/rest/@octokit/core/before-after-hook": ["before-after-hook@4.0.0", "", {}, "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], + "@octokit/rest/@octokit/plugin-paginate-rest/@octokit/types": ["@octokit/types@15.0.2", "", { "dependencies": { "@octokit/openapi-types": "^26.0.0" } }, "sha512-rR+5VRjhYSer7sC51krfCctQhVTmjyUMAaShfPB8mscVa8tSoLyon3coxQmXu0ahJoLVWl8dSGD/3OGZlFV44Q=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/core/before-after-hook": ["before-after-hook@4.0.0", "", {}, "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="], + "@octokit/rest/@octokit/plugin-rest-endpoint-methods/@octokit/types": ["@octokit/types@15.0.2", "", { "dependencies": { "@octokit/openapi-types": "^26.0.0" } }, "sha512-rR+5VRjhYSer7sC51krfCctQhVTmjyUMAaShfPB8mscVa8tSoLyon3coxQmXu0ahJoLVWl8dSGD/3OGZlFV44Q=="], - "@octokit/plugin-rest-endpoint-methods/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@26.0.0", "", {}, "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA=="], + "@opencode-ai/app/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], - "@octokit/plugin-retry/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@12.11.0", "", {}, "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ=="], + "@opencode-ai/cli/@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], - "@octokit/request-error/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@24.2.0", "", {}, "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg=="], + "@opencode-ai/cli/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], - "@octokit/request/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@24.2.0", "", {}, "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg=="], + "@opencode-ai/cli/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], - "@octokit/rest/@octokit/core/@octokit/auth-token": ["@octokit/auth-token@6.0.0", "", {}, "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="], + "@opencode-ai/client/@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], - "@octokit/rest/@octokit/core/@octokit/graphql": ["@octokit/graphql@9.0.3", "", { "dependencies": { "@octokit/request": "^10.0.6", "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.0" } }, "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA=="], + "@opencode-ai/client/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], - "@octokit/rest/@octokit/core/@octokit/request": ["@octokit/request@10.0.10", "", { "dependencies": { "@octokit/endpoint": "^11.0.3", "@octokit/request-error": "^7.0.2", "@octokit/types": "^16.0.0", "content-type": "^2.0.0", "json-with-bigint": "^3.5.3", "universal-user-agent": "^7.0.2" } }, "sha512-KxNC2pTqqhszMNrf12ZRd4PonRgyJdsM4F/jySiddQK+DsRcfBtUvqn8t7UsyZhnRJHvX46OohDt5N3VqIWC2w=="], + "@opencode-ai/client/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], - "@octokit/rest/@octokit/core/@octokit/request-error": ["@octokit/request-error@7.1.0", "", { "dependencies": { "@octokit/types": "^16.0.0" } }, "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw=="], - - "@octokit/rest/@octokit/core/@octokit/types": ["@octokit/types@16.0.0", "", { "dependencies": { "@octokit/openapi-types": "^27.0.0" } }, "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg=="], - - "@octokit/rest/@octokit/core/before-after-hook": ["before-after-hook@4.0.0", "", {}, "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="], + "@opencode-ai/codemode/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], "@opencode-ai/core/@ai-sdk/openai/@ai-sdk/provider": ["@ai-sdk/provider@3.0.14", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-5X1k57JBJ4H7H1QjX7CnJYAB1I19r/trVZTMcSms7/kLNZ8RaU4Nt2agcwZzv82Hfx6Q7/TOLU7agAKeFfc8cA=="], @@ -6943,12 +7174,70 @@ "@opencode-ai/core/@ai-sdk/openai-compatible/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.23", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.6" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-z8GlDaCmRSDlqkMF2f4/RFgWxdarvIbyuk+m6WXT1LYgsnGiXRJGTD2Z1+SDl3LqtFuRtGX1aghYvQLoHL/9pg=="], + "@opencode-ai/core/@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], + + "@opencode-ai/core/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], + + "@opencode-ai/core/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "@opencode-ai/desktop/@actions/artifact/@actions/http-client": ["@actions/http-client@2.2.3", "", { "dependencies": { "tunnel": "^0.0.6", "undici": "^5.25.4" } }, "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA=="], + "@opencode-ai/desktop/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/effect-drizzle-sqlite/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/effect-sqlite-node/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/http-recorder/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], + + "@opencode-ai/http-recorder/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/httpapi-codegen/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/llm/@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], + + "@opencode-ai/llm/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], + + "@opencode-ai/llm/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/plugin/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/protocol/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/schema/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/sdk-next/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/server/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/stats-app/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/stats-core/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/stats-server/@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], + + "@opencode-ai/stats-server/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], + + "@opencode-ai/stats-server/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@opencode-ai/tui/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "@opencode-ai/web/@shikijs/transformers/@shikijs/core": ["@shikijs/core@3.20.0", "", { "dependencies": { "@shikijs/types": "3.20.0", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4", "hast-util-to-html": "^9.0.5" } }, "sha512-f2ED7HYV4JEk827mtMDwe/yQ25pRiXZmtHjWF8uzZKuKiEsJR7Ce1nuQ+HhV9FzDcbIo4ObBCD9GPTzNuy9S1g=="], "@opencode-ai/web/@shikijs/transformers/@shikijs/types": ["@shikijs/types@3.20.0", "", { "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "sha512-lhYAATn10nkZcBQ0BlzSbJA3wcmL5MXUUF8d2Zzon6saZDlToKaiRX60n2+ZaHJCmXEcZRWNzn+k9vplr8Jhsw=="], + "@opencode/core/@ai-sdk/provider-utils/undici": ["undici@6.28.0", "", {}, "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA=="], + + "@opencode/util/@opentelemetry/exporter-trace-otlp-http/@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + + "@opencode/util/@opentelemetry/exporter-trace-otlp-http/@opentelemetry/otlp-exporter-base": ["@opentelemetry/otlp-exporter-base@0.219.0", "", { "dependencies": { "@opentelemetry/core": "2.8.0", "@opentelemetry/otlp-transformer": "0.219.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-zvIxQX/AZUVKDU+hCuYx+7UkiP7GRdnk1ZbFQRYzHvYp47cAWR4j3IhoPhV9KaeXEv2xdGq3IA6PnpzDmLcmSA=="], + + "@opencode/util/@opentelemetry/exporter-trace-otlp-http/@opentelemetry/otlp-transformer": ["@opentelemetry/otlp-transformer@0.219.0", "", { "dependencies": { "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/core": "2.8.0", "@opentelemetry/resources": "2.8.0", "@opentelemetry/sdk-logs": "0.219.0", "@opentelemetry/sdk-metrics": "2.8.0", "@opentelemetry/sdk-trace-base": "2.8.0" }, "peerDependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-aaYKAyXhw9VchKZVGOopD3Gw/kPsyrX2c6IQ0AW32mTjqmZOh5Y6Gf5OYqTNqVktAeBjmFinhyFaCwW6GYK9YQ=="], + + "@opencode/util/@opentelemetry/sdk-trace-base/@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + + "@opencode/util/@opentelemetry/sdk-trace-node/@opentelemetry/core": ["@opentelemetry/core@2.8.0", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.29.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww=="], + "@opentui/solid/@babel/core/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], "@pierre/diffs/@shikijs/transformers/@shikijs/core": ["@shikijs/core@3.20.0", "", { "dependencies": { "@shikijs/types": "3.20.0", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4", "hast-util-to-html": "^9.0.5" } }, "sha512-f2ED7HYV4JEk827mtMDwe/yQ25pRiXZmtHjWF8uzZKuKiEsJR7Ce1nuQ+HhV9FzDcbIo4ObBCD9GPTzNuy9S1g=="], @@ -6985,6 +7274,10 @@ "@solidjs/start/shiki/@shikijs/types": ["@shikijs/types@1.29.2", "", { "dependencies": { "@shikijs/vscode-textmate": "^10.0.1", "@types/hast": "^3.0.4" } }, "sha512-VJjK0eIijTZf0QSTODEXCqinjBn0joAHQ+aPSBzrv4O2d/QSbsMw+ZeSRx03kV34Hy7NzUvV/7NqfYGRLrASmw=="], + "@standard-community/standard-json/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@standard-community/standard-openapi/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "@storybook/csf-plugin/unplugin/acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="], "@storybook/csf-plugin/unplugin/webpack-virtual-modules": ["webpack-virtual-modules@0.6.2", "", {}, "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ=="], @@ -7039,9 +7332,13 @@ "ai-gateway-provider/@ai-sdk/perplexity/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.45", "", { "dependencies": { "@ai-sdk/provider": "3.0.15", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.8", "undici": "^5.29.0" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-7u5B/E2uZmU65SlJhhQGFHZwRCN0xOz4HHtFc4sEGV9PHbX3fGiEiZBpc/SABay1dGeJgK3VD60rvLGoWdWPXA=="], - "ai/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "ai-gateway-provider/@ai-sdk/xai/@ai-sdk/openai-compatible": ["@ai-sdk/openai-compatible@2.0.56", "", { "dependencies": { "@ai-sdk/provider": "3.0.13", "@ai-sdk/provider-utils": "4.0.35" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-cQrN6OUn/jvsY3OdsU6Wn+ss7vp1iwIcakZKSlSRMnYqShBfyT7Qht+eqmgxs7w9ttrw6FAG6o11AiBs+iEsTA=="], + + "ai-gateway-provider/@ai-sdk/xai/@ai-sdk/provider": ["@ai-sdk/provider@3.0.13", "", { "dependencies": { "json-schema": "^0.4.0" } }, "sha512-ZPtVYt5QIJzOta1kdUiDuCx4HhFkvNPv/rvmZ2b1iXwybYjJsCnNYR4PAw4kW7rgVfDARvHXcU64efWuqNp6bw=="], - "ajv-keywords/ajv/json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="], + "ai-gateway-provider/@ai-sdk/xai/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.35", "", { "dependencies": { "@ai-sdk/provider": "3.0.13", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.8" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-bjYld/2KGPLt78kpqbya+fD4LYS7BqVQJyUjE3qAHrYB0FR2Q90BaWEVIBZaguTWXf/A8L6uG1zO1v9TxVlGWg=="], + + "ai/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], "ansi-align/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], @@ -7197,6 +7494,12 @@ "opencode/@ai-sdk/openai-compatible/@ai-sdk/provider-utils": ["@ai-sdk/provider-utils@4.0.23", "", { "dependencies": { "@ai-sdk/provider": "3.0.8", "@standard-schema/spec": "^1.1.0", "eventsource-parser": "^3.0.6" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-z8GlDaCmRSDlqkMF2f4/RFgWxdarvIbyuk+m6WXT1LYgsnGiXRJGTD2Z1+SDl3LqtFuRtGX1aghYvQLoHL/9pg=="], + "opencode/@effect/platform-node/@effect/platform-node-shared": ["@effect/platform-node-shared@4.0.0-beta.83", "", { "dependencies": { "@types/ws": "^8.18.1", "ws": "^8.20.0" }, "peerDependencies": { "effect": "^4.0.0-beta.83" } }, "sha512-+yr/+PJmKTgmJq1QOINSBPgLu7Cjc4CZcotBXnGjyDEizOmimFgTkN2B8PBJAKIKUWYWfobjXqC+58/VhhPKAw=="], + + "opencode/@effect/platform-node/undici": ["undici@8.3.0", "", {}, "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q=="], + + "opencode/effect/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "p-locate/p-limit/yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], "pkg-dir/find-up/locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], @@ -7293,10 +7596,6 @@ "@actions/artifact/@actions/core/@actions/exec/@actions/io": ["@actions/io@2.0.0", "", {}, "sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg=="], - "@actions/github/@octokit/plugin-paginate-rest/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@20.0.0", "", {}, "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA=="], - - "@actions/github/@octokit/plugin-rest-endpoint-methods/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@20.0.0", "", {}, "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA=="], - "@astrojs/check/yargs/cliui/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], "@astrojs/check/yargs/cliui/wrap-ansi": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], @@ -7425,24 +7724,16 @@ "@octokit/graphql/@octokit/request/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@27.0.0", "", {}, "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA=="], - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/request/@octokit/endpoint": ["@octokit/endpoint@11.0.3", "", { "dependencies": { "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-FWFlNxghg4HrXkD3ifYbS/IdL/mDHjh9QcsNyhQjN8dplUoZbejsdpmuqdA76nxj2xoWPs7p8uX2SNr9rYu0Ag=="], - - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/request/content-type": ["content-type@2.0.0", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="], - - "@octokit/plugin-paginate-rest/@octokit/core/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@27.0.0", "", {}, "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA=="], - - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/request/@octokit/endpoint": ["@octokit/endpoint@11.0.3", "", { "dependencies": { "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-FWFlNxghg4HrXkD3ifYbS/IdL/mDHjh9QcsNyhQjN8dplUoZbejsdpmuqdA76nxj2xoWPs7p8uX2SNr9rYu0Ag=="], - - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/request/content-type": ["content-type@2.0.0", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="], - - "@octokit/plugin-rest-endpoint-methods/@octokit/core/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@27.0.0", "", {}, "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA=="], - "@octokit/rest/@octokit/core/@octokit/request/@octokit/endpoint": ["@octokit/endpoint@11.0.3", "", { "dependencies": { "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.2" } }, "sha512-FWFlNxghg4HrXkD3ifYbS/IdL/mDHjh9QcsNyhQjN8dplUoZbejsdpmuqdA76nxj2xoWPs7p8uX2SNr9rYu0Ag=="], "@octokit/rest/@octokit/core/@octokit/request/content-type": ["content-type@2.0.0", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="], "@octokit/rest/@octokit/core/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@27.0.0", "", {}, "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA=="], + "@octokit/rest/@octokit/plugin-paginate-rest/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@26.0.0", "", {}, "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA=="], + + "@octokit/rest/@octokit/plugin-rest-endpoint-methods/@octokit/types/@octokit/openapi-types": ["@octokit/openapi-types@26.0.0", "", {}, "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA=="], + "@opencode-ai/core/@ai-sdk/openai-compatible/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], "@opencode-ai/core/@ai-sdk/openai/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], @@ -7487,6 +7778,8 @@ "ai-gateway-provider/@ai-sdk/perplexity/@ai-sdk/provider-utils/undici": ["undici@5.29.0", "", { "dependencies": { "@fastify/busboy": "^2.0.0" } }, "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg=="], + "ai-gateway-provider/@ai-sdk/xai/@ai-sdk/provider-utils/@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + "ansi-align/string-width/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], "app-builder-lib/@electron/get/fs-extra/universalify": ["universalify@0.1.2", "", {}, "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="], diff --git a/bunfig.toml b/bunfig.toml index c506ff57c4..c43b9f029b 100644 --- a/bunfig.toml +++ b/bunfig.toml @@ -2,7 +2,7 @@ exact = true # Only install newly resolved package versions published at least 3 days ago. minimumReleaseAge = 259200 -minimumReleaseAgeExcludes = ["@ai-sdk/amazon-bedrock", "@ai-sdk/anthropic", "@opentui/core", "@opentui/core-darwin-arm64", "@opentui/core-darwin-x64", "@opentui/core-linux-arm64", "@opentui/core-linux-arm64-musl", "@opentui/core-linux-x64", "@opentui/core-linux-x64-musl", "@opentui/core-win32-arm64", "@opentui/core-win32-x64", "@opentui/keymap", "@opentui/solid", "opentui-spinner", "gitlab-ai-provider", "opencode-gitlab-auth", "@ff-labs/fff-node", "@ff-labs/fff-bun", "@ff-labs/fff-bin-darwin-arm64", "@ff-labs/fff-bin-darwin-x64", "@ff-labs/fff-bin-linux-arm64-gnu", "@ff-labs/fff-bin-linux-arm64-musl", "@ff-labs/fff-bin-linux-x64-gnu", "@ff-labs/fff-bin-linux-x64-musl", "@ff-labs/fff-bin-win32-arm64", "@ff-labs/fff-bin-win32-x64", "@pierre/diffs", "@pierre/theming", "app-builder-lib", "dmg-builder", "electron-builder", "electron-publish"] +minimumReleaseAgeExcludes = ["@ai-sdk/amazon-bedrock", "@ai-sdk/anthropic", "@opentui/core", "@opentui/core-darwin-arm64", "@opentui/core-darwin-x64", "@opentui/core-linux-arm64", "@opentui/core-linux-arm64-musl", "@opentui/core-linux-x64", "@opentui/core-linux-x64-musl", "@opentui/core-win32-arm64", "@opentui/core-win32-x64", "@opentui/keymap", "@opentui/solid", "opentui-spinner", "gitlab-ai-provider", "opencode-gitlab-auth", "@ff-labs/fff-node", "@ff-labs/fff-bun", "@ff-labs/fff-bin-darwin-arm64", "@ff-labs/fff-bin-darwin-x64", "@ff-labs/fff-bin-linux-arm64-gnu", "@ff-labs/fff-bin-linux-arm64-musl", "@ff-labs/fff-bin-linux-x64-gnu", "@ff-labs/fff-bin-linux-x64-musl", "@ff-labs/fff-bin-win32-arm64", "@ff-labs/fff-bin-win32-x64", "@pierre/diffs", "@pierre/theming", "app-builder-lib", "dmg-builder", "electron-builder", "electron-publish", "bun-types"] [test] root = "./do-not-run-tests-from-root" diff --git a/docs/cookiemonster-system-cli-installers.md b/docs/cookiemonster-system-cli-installers.md index 99a5d38425..8c048e5ca7 100644 --- a/docs/cookiemonster-system-cli-installers.md +++ b/docs/cookiemonster-system-cli-installers.md @@ -58,10 +58,10 @@ CookieMonster must still be running when Open Design sends WPP-backed requests b Keep `resources/opencode-cli` and `resources/opencode-cli.exe` for the desktop sidecar. Add an installer-facing copy named as the public command: -| Platform | Packaged path | -| --- | --- | -| Windows | `resources/cli/opencode.exe` | -| macOS | `Contents/Resources/cli/opencode` | +| Platform | Packaged path | +| -------- | --------------------------------- | +| Windows | `resources/cli/opencode.exe` | +| macOS | `Contents/Resources/cli/opencode` | Both copies must come from the same downloaded artifact. Do not download the CLI twice. @@ -339,20 +339,20 @@ Update internal installation guidance: ## Expected file changes -| File | Change | -| --- | --- | -| `packages/desktop/scripts/utils.ts` | Produce internal and public CLI resource names from one download | -| `packages/desktop/scripts/prebuild.ts` | Require both CLI outputs in branded builds | -| `packages/desktop/electron-builder.config.ts` | Gate public resources, NSIS include, and PKG settings behind `CM_BRAND` | -| `packages/desktop/resources/windows/cli-install.nsh` | Register and unregister the Windows command | -| `packages/desktop/resources/macos/pkg-scripts/postinstall` | Register `/usr/local/bin/opencode` | -| `packages/desktop/scripts/uninstall-macos-cli.sh` | Remove only the CookieMonster-owned symlink | -| `packages/desktop/src/main/system-cli.ts` | Diagnostics and optional repair logic | -| `packages/desktop/src/main/ipc.ts` | Restore the `install-cli` repair handler | -| `packages/desktop/electron-builder.config.test.ts` | Assert branded and upstream package separation | -| `packages/desktop/src/main/system-cli.test.ts` | Test path and ownership decisions | -| `.github/workflows/cookiemonster-desktop.yml` | Build, smoke-test, upload, and release new artifacts | -| `AGENTS.md` | Update packaging commands and artifact guidance | +| File | Change | +| ---------------------------------------------------------- | ----------------------------------------------------------------------- | +| `packages/desktop/scripts/utils.ts` | Produce internal and public CLI resource names from one download | +| `packages/desktop/scripts/prebuild.ts` | Require both CLI outputs in branded builds | +| `packages/desktop/electron-builder.config.ts` | Gate public resources, NSIS include, and PKG settings behind `CM_BRAND` | +| `packages/desktop/resources/windows/cli-install.nsh` | Register and unregister the Windows command | +| `packages/desktop/resources/macos/pkg-scripts/postinstall` | Register `/usr/local/bin/opencode` | +| `packages/desktop/scripts/uninstall-macos-cli.sh` | Remove only the CookieMonster-owned symlink | +| `packages/desktop/src/main/system-cli.ts` | Diagnostics and optional repair logic | +| `packages/desktop/src/main/ipc.ts` | Restore the `install-cli` repair handler | +| `packages/desktop/electron-builder.config.test.ts` | Assert branded and upstream package separation | +| `packages/desktop/src/main/system-cli.test.ts` | Test path and ownership decisions | +| `.github/workflows/cookiemonster-desktop.yml` | Build, smoke-test, upload, and release new artifacts | +| `AGENTS.md` | Update packaging commands and artifact guidance | ## Implementation order diff --git a/docs/research/assets/cm-v2-selection.png b/docs/research/assets/cm-v2-selection.png new file mode 100644 index 0000000000..504ab4e641 Binary files /dev/null and b/docs/research/assets/cm-v2-selection.png differ diff --git a/docs/research/assets/cm-v2-split.png b/docs/research/assets/cm-v2-split.png new file mode 100644 index 0000000000..d3879aee77 Binary files /dev/null and b/docs/research/assets/cm-v2-split.png differ diff --git a/docs/research/t3-sidebar-behavior.md b/docs/research/t3-sidebar-behavior.md new file mode 100644 index 0000000000..45c04516cd --- /dev/null +++ b/docs/research/t3-sidebar-behavior.md @@ -0,0 +1,152 @@ +# T3 sidebar behavior study + +Study date: 2026-11-07. Target: the left thread sidebar, especially Working, Snoozed, and Settled. + +## Status and evidence boundary + +This is a source-backed study of the installed T3 Code 0.1.7 build, commit `322f6544dfad`, plus controlled live prompt experiments through the T3 connector. **Live state transitions were tested; visual sidebar observation remains blocked.** Do not treat this document as UX acceptance or evidence that CookieMonster matches T3. + +The running application listens on port 3773. Opening its web interface through T3 preview reached `/pair`. Snapshot and evaluation calls each timed out after 15 seconds. The alternate browser host reported unavailable. No pairing credentials, application restart, or changes to existing chats were attempted. + +The user authorized two dedicated test chats. Five prompts were sent across them; existing user chats were not used as test targets. The unrelated, already reviewed CookieMonster feature changes remain untouched by this study. + +Evidence labels used below: + +- **Installed source:** behavior read from the JavaScript shipped in the running application, rather than from a screenshot or a live interaction. +- **Live experiment:** controlled prompts and organization actions, followed by connector reads. These establish API-visible transitions, not row positions, animations, or button behavior. +- **Pending experiment:** a behavior still requiring a prompt or UI interaction. + +## Main finding + +T3's sidebar is an attention inbox with supporting sections. **Working is not the default category for all unsettled chats.** Working accepts an active or idle runtime, subject to specific exclusions; it does not require background tasks for an idle runtime. Pending approvals, user input, and subagent requests exclude a chat from Working, but pending guest messages alone do not. Settled and Snoozed have distinct purposes and coexist with pinned chats and the inbox. + +The installed user's client settings have `sidebarWorkingShelfEnabled: true`, `boringSidebarEnabled: false`, and `legacySidebarEnabled: false`. This identifies the relevant configuration; the resulting screen could not be inspected. T3 also exposes alternate layouts, so descriptions of the normal Working section should not be generalized to every layout. + +## Placement and transitions + +| Condition | Source-backed behavior | Evidence | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | +| Ordinary unsettled chat without an eligible runtime | Active inbox rather than Working | `main` function `NV`; `usageLimits` functions `S` and `je` | +| Preparing, queued, starting, running, or waiting runtime | Eligible for Working when enabled and connected, subject to attention checks and higher-priority placement | `usageLimits.S`, `usageLimits.je`; imported active-runtime predicate `utils.eXe/nXe` | +| Idle runtime, including monitoring/background work | Eligible for Working even without background tasks, subject to the same exclusions | `usageLimits.S`; runtime projection `utils.iXe` | +| Approval, user input, or a pending subagent request | Not classified as Working by its predicate | `usageLimits.S` | +| Actionable proposed plan after the run ends | Not classified as Working | `usageLimits.S` | +| Normal work finishes | Working observer has a 2,000 ms grace period before returning the row; attention, failure, or placement changes bypass that grace | `usageLimits.ve` | +| Return from Working | Inbox ordering considers the recorded return time, alongside run and placement timestamps | `usageLimits.he`, called by `main.NV` | +| Snoozed until a future time | Snoozed section while the snooze remains effective | `session-logic.pe`; `main.NV` | +| Snooze deadline passes | Snooze is no longer effective | `session-logic.pe` | +| Snoozed chat gets an approval, input request, pending runtime/subagent request, guest request, or newer failure | Attention overrides the effective snooze | `session-logic.ue`, `pe`, and `me` | +| Explicit settled override | Settled section | `usageLimits.ke`; `main.NV` | +| Pinned chat without effective snooze or settled override | Pinned section, before the ordinary inbox | `usageLimits.ke`; `main.NV` | + +The placement selector gives effective snooze precedence over settled, then pinned, then active/Working. Working is a derived section, not another durable organization override. Its routing also checks connectivity. The exact Working predicate requires a runtime in preparing, queued, starting, running, waiting, or idle; rejects pending approvals, user input, or a subagent request; and rejects an actionable plan when plan mode has a terminal latest run not owned by the runtime. A pending guest message is not an exclusion in this predicate, even though it affects labels and snooze. Eligibility and the row's visible status label are separate decisions. + +The live connector sample contained running/unsettled and completed/settled records, and also idle/settled records. This confirms that execution status and settled state are separate fields. That initial sample alone did not prove lifecycle behavior; the controlled experiments below establish completion and new-prompt behavior. Opening a chat in the UI remains untested. + +## What the sidebar communicates + +Installed-source row labels include Pending Approval, Awaiting Input, Guest Request, Working, Connecting, Waiting, and Failed. Approval and input checks precede ordinary execution labels. Working and Connecting have pulsing indicators; Waiting has a quiet indicator. These are code-defined labels/styles, not visually verified appearances. + +Section order is pinned, active inbox, Working, Snoozed, Settled. Working and Snoozed headers appear when they contain threads. The implementation keeps independent expansion state for Working, Snoozed, and Settled. Those settings default collapsed in the inspected component. + +**The selected chat survives collapse.** When a section is collapsed, the helper returns its currently routed chat if present, rather than hiding every row. This preserves a navigation anchor while reducing clutter. + +Settled initially exposes ten entries when expanded, with increments of 25 and an older-thread loading path. Snoozed entries sort by wake time, soonest first. Settled ordering prefers settlement time; Working uses user-authored send recency. Inbox ordering changes with the selected layout and Working setting, so it should not be described as a universal last-update sort. + +Sources: `main.bV`, `NV`, `yV`; `threadSort.t`, `n`, `h`; `usageLimits.ge`, `he`, `dt`; `olderSettledShelf`. + +## Actions and safeguards + +- The context menu exposes Settle thread / Un-settle thread, Snooze / Wake thread, pin/unpin, and Mark unread when supported. +- Snooze presets include an expected return label. Custom snooze supports a future date/time or a positive duration. Presets are configurable; the settings describe them as sorted soonest first. Do not assume a fixed universal list. +- The UI disables snooze for pending approvals/input/runtime requests, pending subagent requests, guest requests, and prompt-start conditions. It is not a blanket prohibition on all running chats. +- Settle and snooze actions have Undo toasts. Some row actions are exposed on hover. Exact discoverability and hit areas are unverified. +- Dragging can pin, settle, or move a thread back into the active section. Working and Snoozed are not accepted as direct drop destinations in the inspected section-target logic. Pin and active ordering have separate handling. +- Settings expose inactivity-based auto-settle, auto-settle on PR merge, per-thread opt-out, and protection for threads with PRs. These are separate from the explicit Settle action. Their configured server values and live triggers have not been tested. + +Sources: `main` context-menu builder around lines 19700–19805, action handlers around 19060–19230, custom snooze component `uP`; `usageLimits.Pe`, `Fe`, `ze`; `session-logic.fe`, `le`; `SettingsPanels` auto-settle and snooze settings. + +The connector contract says settling the **current** thread applies at turn end, and a failed turn or queued message leaves it active. The experiment below separately tests self-settlement and settling another running thread. Failure and queued-message exceptions remain contract-only. + +## Live prompt observations + +Two dedicated top-level chats used `codex / gpt-6.1-sol`, high effort, in the existing project. All times below are UTC on 2026-11-07. Each started idle, unsettled, unsnoozed, with no runs. The prompts prohibited file changes, network access, and delegation; only harmless delays, the actual input-request tool, and self-settlement were permitted where required. + +Test A: + +Test B: + +| Experiment | Action and observed result | Limit | +| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | +| Concurrent runs | At 14:46:24, sent A “Reply exactly READY” and B a 30-second delay then “DONE.” Both were read as running with distinct active run IDs. A completed at 14:46:30; B at 14:47:03. Both remained unsettled. | Confirms concurrent execution and no immediate automatic settlement, not visible Working placement. | +| Settle completed chat | At 14:46:48, settled A. A subsequent read reported `settled: true`; its transcript remained available. | Reading through the connector is not opening the chat in the UI. | +| Prompt wakes settled chat | Sent A “Reply exactly AGAIN.” Subsequent reads reported `settled: false`, `settledAt: null`; the response was AGAIN. | Connector send, not a composer click. | +| Settle another running chat | Tried settling B during its first run. The API rejected it: “is still running. Stop it before settling.” B stayed running and unsettled, then completed normally. | This must not be conflated with the current-thread deferred-settle API. | +| Snooze expiry | At 14:47:17, snoozed completed B until 14:48:02.893. A pre-deadline read reported `snoozed: true`. A post-deadline read reported false and a null deadline without a new prompt. | These are API-visible fields; no claim about durable storage cleanup or row return timing. | +| Attention overrides snooze | Started A's third run with a 30-second delay followed by a real input-request tool. Snoozed A until 14:57:36.421 while running with zero pending requests. Before the question appeared, reads confirmed `snoozed: true`. At about 14:48:21, a real pending question existed (`pendingRequestCount: 1`), and the API reported `snoozed: false`, deadline null. No second prompt was sent before that observation. | Isolates attention from new-prompt and deadline wake. Visual inbox placement is still source-backed. | +| Self-settle at turn end | B called its own settle action at 14:48:44; the recorded tool result was `settlesWhenTurnEnds: true`. A subsequent running-state read still had `settled: false`. B replied SELF_SETTLED, completed at 14:49:06.148, and its settlement timestamp was 14:49:06.443. | Confirms the successful current-thread path; failure and queued-message exceptions were not exercised. | +| Resolve attention | Read the actual question “Sidebar test: choose alpha or beta”; answered Alpha through the pending-request API. A returned ACK, completed at 14:48:39, with zero pending requests. | The coordinator answered the harmless test question. | +| Prompt wakes snoozed chat | At 14:48:29, snoozed B until 14:58:29.847 and confirmed true. At 14:48:35, sent the self-settlement test prompt. During the new run, B reported unsnoozed, deadline null, and unsettled. | Distinct from the no-new-prompt attention experiment above. | + +Both test chats are now completed, settled, unsnoozed, and have zero pending requests. Their transcripts were retained. + +The input question's generated ID was `0`; the request API supplied the actual ID and choices before the coordinator answered. A prose clarification question would not establish pending input and was not used as evidence. + +Raw timestamped responses, exact prompts, thread/run IDs, and final cleanup reads are saved in `/tmp/t3-panel-study/live-results.json`. The table preserves the useful results if temporary evidence is removed. + +## Remaining visual and exception checks + +Browser automation could not inspect the actual sidebar. Still unverified: Working entry and its two-second exit grace in the rendered UI; row ordering and counts during concurrent completion; opening a settled chat; selected-row retention after collapse; drag targets and feedback; hover discoverability, keyboard behavior, and screenshots. These source-backed behaviors are not UX acceptance. + +Failure, queued-input, pending-approval, monitoring, and automatic PR/inactivity settlement exceptions were not exercised. Do not manufacture a risky permission request merely to test attention; the harmless actual-input experiment already covers one attention path. + +## Differences found before the implementation follow-up + +This records the comparison at study time, before the user requested the implementation follow-up below: + +1. CookieMonster currently has three mutually exclusive filters: Working, Snoozed, Settled. Every unclassified chat is Working. T3 has a separate active inbox and derived Working section. +2. CookieMonster's timed snooze persists through ordinary activity. Its current state selector does not model T3's attention-based snooze override. +3. Outside search, CookieMonster's filters hide other states; a nonempty search bypasses the workflow filter. T3 keeps section headers/counts together and preserves the selected chat inside a collapsed section. +4. CookieMonster's current settlement uses a pending flag and session update timestamps. T3 live tests establish new-message wake and reject externally settling an active run; equivalence with CookieMonster remains unproven. + +The earlier Sol loop approved correctness of the implemented CookieMonster feature against its stated scope. It did not establish that its sidebar interaction model reproduces T3. + +## CookieMonster implementation follow-up + +The requested follow-up implements the four identified gaps in the shared app UI: + +- Project chat lists now contain Pinned, Inbox, Working, Snoozed, and Settled sections. Idle chats default to Inbox; busy/retry execution without attention is Working. Normal completion has a two-second return grace, while permission requests, questions, and errors bypass it. A return timestamp promotes the chat within its project's Inbox. +- Section expansion persists by server, project, and section. Working, Snoozed, and Settled start collapsed, retaining the selected chat. Search reveals matches across states. Snoozes order by wake time; settlements by settlement time; Working by available user-message recency. Settled pages start at ten and grow by 25. Pin changes reveal the destination and reserve enough page space for both the moved chat and the retained selected chat. +- New user messages and attention wake snoozed chats. Saved workflow entries reconcile their prompt history after reload, including chats outside the two prefetched histories; failed reads can retry after index refresh or resumed session events. New entries store a backend-timestamp prompt watermark so client clock skew does not prevent wake-up. Attention also reopens settled chats. Clearing an attention request does not restore the old snooze. Mere metadata updates, including rename, no longer reopen a settled chat. +- Sidebar settlement is unavailable while execution is active or its initial status is unknown, matching the observed external-settle boundary. Older persisted pending-settlement requests still wait for initialized idle status and reconciled prompt history, and cancel on new input or attention. This is migration compatibility, not a new current-thread settlement API. + +This uses CookieMonster's existing execution, question, permission, notification, and message data. T3-specific idle monitoring runtimes, guest requests, proposed-plan flags, PR/inactivity auto-settlement, configurable/custom snooze presets, Undo toasts, and section-drop organization are outside this follow-up. Existing project navigation and Recent sessions shortcuts are retained. The Claude-style split-chat interactions remain unchanged. + +Implementation review: **APPROVE**, three rounds with gpt-6.1-sol on high effort. All four findings are resolved: persisted-history reconciliation (S1), unpin focus with selected-row retention (S2), backend-domain prompt comparisons (S3), and retry after failed reconciliation (S4). No findings were declined. Review scope grew from 1,160 additions / 64 deletions to 1,420 additions / 69 deletions across ten files, including existing split work and added regression fixtures. Usage was not exposed; nothing was committed or pushed. + +Validation evidence is recorded in `/tmp/cm-sidebar-parity/ledger.json`. All 32 focused unit tests, 34 final browser cases, app/e2e typechecks, and scoped lint pass. The new regressions fail against the corresponding reviewed builds and pass with the fixes. Sol independently reran the unit tests and scoped whitespace check, and reviewed the browser/typecheck/lint evidence. The earlier wider browser run passed 77 of 87 cases; fixes and targeted reruns covered all ten failures, but the full wider suite was not rerun after the final fixes. + +The production navigation benchmark passed before and after (stable selection 261 ms and 245 ms; one run each, not statistically significant). Browser checks use production CookieMonster builds with mocked backend data. This approval covers implementation correctness within the stated follow-up scope; it does not establish full T3 feature or visual parity, or live macOS Electron/WPP behavior. The study approval below remains separate. + +## Requested sidebar layout follow-up + +The user requested one T3-style sidebar: chats needing attention or review at the top, with Working, Snoozed, and Settled collapsed at the bottom. The shared app now has one server-wide Pinned/Inbox list and three bottom workflow sections, above Help and Settings. There are no duplicate per-project or Recent session rows. Project selection, editing, pinning, and opening remain under a compact Projects disclosure; open chat tabs remain in the top title bar for drag-to-split. + +The bottom headers remain visible even when empty, default collapsed, and retain the selected chat as established in the study. Their scroll area is bounded so expanded history cannot consume the whole sidebar. Expansion state is now keyed by server and workflow section, independently of older per-project expansion preferences. Search reveals matching rows across all sections. Existing Settle/Snooze actions, wake-up safeguards, history reconciliation, focus restoration, and split behavior remain. + +Attention requests promote older chats above ordinary Inbox rows. Normal completion returns a chat to the top of the ordinary Inbox after the existing two-second grace; questions, approvals, and failures return immediately. The request does not add the other T3-only runtime, auto-settlement, Undo, or organization-drag capabilities listed above. + +Validation and a fresh Sol review for this layout change are recorded separately under `/tmp/cm-sidebar-layout/`. The first 40 wider browser cases passed; the remaining 50 cases passed after the mobile draft-navigation test was changed to use the sidebar. Sol round 1 correctly identified that this test change masked a real compact-tab selection/Close overlap (L1), and that global drafts lacked project labels (L2). The follow-up separates compact selection and Close targets, restores direct mobile tab selection coverage, and renders the project beneath every draft title. Dedicated LTR/RTL compact-tab and two-project draft regressions fail against the reviewed build and pass with the fixes. The round-2 run passed 42 of 43 cases; its remaining assertion used the wrong fixture project name. After correcting that expectation, all seven affected navigation cases passed, including the restored direct mobile tab flow. **Sol round 2: APPROVE**, with L1 and L2 resolved and no new material findings. The layout loop used gpt-6.1-sol on high effort in two rounds; no findings were declined and usage was not exposed. All 32 focused unit tests and both typechecks pass; the changed sidebar/controller files are lint-clean, while the titlebar retains pre-existing warnings outside the edited lines. Production navigation benchmarks pass before and after. This layout approval is separate from the earlier sidebar behavior approval. The reviewer inspected the source, compiled CSS, and regression logs and independently checked whitespace; it did not rerun the browser tests. Nothing was committed or pushed. Screenshot evidence uses production app builds with test chats; live macOS/WPP remains unverified. + +## Reproducibility + +The installed archive was read without changing it. Relevant assets were copied under `/tmp/t3-panel-study/bundle/apps/server/dist/client/assets/`; formatted reading copies are under `/tmp/t3-panel-study/readable/`. Function names below are minified export names in this exact build, not stable upstream APIs. Temporary evidence paths may disappear after cleanup. + +| Asset | SHA-256 | +| --------------------------- | ------------------------------------------------------------------ | +| `main-sk5g_Jie.js` | `1cc2d181b7f1cab17909638e767f7046c3849af0a0fdd94bed1b52e9e3ff5a26` | +| `usageLimits-DPef9zw7.js` | `f93d1ed5a087e3d30204f2c2471708367634dcf88b1c2ddd478495ce9fc1ea7d` | +| `session-logic-B7KSdKlx.js` | `e029c3ed7f96d170fac142468da5927fc3fead68161ed96cc629b98f69223339` | +| `threadSort-DAijm5mR.js` | `db3727bd043808b24c931ed221b562cc4882c7356fa9c4ce73e0e6975283add7` | + +Review status: round 1 requested changes D1–D3. Corrected the exact Working predicate, isolated the attention experiment using a real input request, and qualified CookieMonster filtering outside search. Round 2: APPROVE, all D1–D3 resolved and no new material findings. Reviewed with gpt-6.1-sol on high effort in two rounds. Approval covers source/live-state accuracy only; visual acceptance remains outstanding. The study grew from 110 to 125 lines with live evidence; no findings were declined, usage was not exposed, and nothing was pushed. diff --git a/docs/training/cookiemonster/lesson-01-node-and-the-coding-harness.html b/docs/training/cookiemonster/lesson-01-node-and-the-coding-harness.html index 45d90be9d9..aa6ed3ba1b 100644 --- a/docs/training/cookiemonster/lesson-01-node-and-the-coding-harness.html +++ b/docs/training/cookiemonster/lesson-01-node-and-the-coding-harness.html @@ -3,7 +3,10 @@ - + CookieMonster Foundations — Node and the Coding Harness @@ -159,7 +565,10 @@
CookieMonster foundations · Lesson 01

The machine behind the magic.

-

Node, Bun, models, tools, and coding harnesses—explained for people who already understand timelines, renders, briefs, and production.

+

+ Node, Bun, models, tools, and coding harnesses—explained for people who already understand timelines, renders, + briefs, and production. +

No coding required 60 minutes @@ -173,7 +582,10 @@

The machine behind the magic.

01 · CODE NEEDS SOMETHING TO RUN IT

Instructions are not the machine.

-

A JavaScript file is a set of instructions. On its own it does nothing. A runtime reads those instructions, carries them out, and talks to the surrounding computer.

+

+ A JavaScript file is a set of instructions. On its own it does nothing. A runtime reads those instructions, + carries them out, and talks to the surrounding computer. +

Instructions @@ -184,10 +596,17 @@

Instructions are not the machine.

Executor A runtime -

The program that interprets the instructions and provides abilities such as files, timers, and networking.

+

+ The program that interprets the instructions and provides abilities such as files, timers, and + networking. +

-
Motion analogy: an After Effects expression is instructions; After Effects is the environment that executes it. Likewise, JavaScript is instructions; Node.js or Bun can execute them outside a browser.
+
+ Motion analogy: an After Effects expression is instructions; After Effects is the + environment that executes it. Likewise, JavaScript is instructions; Node.js or Bun can execute them outside + a browser. +
@@ -195,30 +614,48 @@

Instructions are not the machine.

02 · FOUR THINGS PEOPLE OFTEN CALL “NODE”

Separate the language, runtime, terminal, and packages.

-

When these are blurred together, errors feel supernatural. When they are separate, most messages tell you which layer needs attention.

+

+ When these are blurred together, errors feel supernatural. When they are separate, most messages tell you + which layer needs attention. +

Runtime

Node.js

-

Runs JavaScript outside a browser. A Node process may read files, make network requests, run a server, then exit—or stay alive waiting for work.

+

+ Runs JavaScript outside a browser. A Node process may read files, make network requests, run a server, + then exit—or stay alive waiting for work. +

CookieMonster uses

Bun

-

A Node.js-compatible runtime and toolkit. In this project, many commands begin with bun.

+

+ A Node.js-compatible runtime and toolkit. In this project, many commands begin with bun. +

Controller

Terminal

-

A text interface that starts programs. It can launch Node or Bun, but it is not itself a JavaScript runtime.

+

+ A text interface that starts programs. It can launch Node or Bun, but it is not itself a JavaScript + runtime. +

Reusable parts

Packages

-

Other people’s or teams’ reusable code. The project manifest declares which packages and named commands belong to the job.

+

+ Other people’s or teams’ reusable code. The project manifest declares which packages and named commands + belong to the job. +

-
Production analogy: package.json is part call sheet, part equipment list. node_modules is the local equipment cage. npm or Bun is the runner who acquires what the list calls for.
+
+ Production analogy: package.json is part call sheet, part equipment list. + node_modules is the local equipment cage. npm or Bun is the runner who acquires what the list + calls for. +
@@ -226,16 +663,47 @@

Packages

03 · A MODEL IS NOT A CODING HARNESS

The brain needs a working environment.

-

A model can propose a next step in text. A coding harness turns that proposal into a controlled workflow around real files and real tools.

+

+ A model can propose a next step in text. A coding harness turns that proposal into a controlled workflow + around real files and real tools. +

-
01

You

Set the objective, boundaries, references, and definition of done.

-
02

Harness

Builds context, applies rules, exposes tools, and records the session.

-
03

Model

Reasons over the context and chooses a next action or answer.

-
04

Tools

Read, search, edit, run commands, browse, or inspect outputs.

-
05

Project

The selected folder: source material, instructions, and changed files.

-
06

Evidence

Tool output returns to the harness so the model and user can assess it.

+
+ 01 +

You

+

Set the objective, boundaries, references, and definition of done.

+
+
+ 02 +

Harness

+

Builds context, applies rules, exposes tools, and records the session.

+
+
+ 03 +

Model

+

Reasons over the context and chooses a next action or answer.

+
+
+ 04 +

Tools

+

Read, search, edit, run commands, browse, or inspect outputs.

+
+
+ 05 +

Project

+

The selected folder: source material, instructions, and changed files.

+
+
+ 06 +

Evidence

+

Tool output returns to the harness so the model and user can assess it.

+
+
+
+ Studio analogy: the model is a creative problem-solver; the harness is the producer and + production desk; the project folder is the job; tools are departments; permissions are approvals; tests, + diffs, and previews are QC.
-
Studio analogy: the model is a creative problem-solver; the harness is the producer and production desk; the project folder is the job; tools are departments; permissions are approvals; tests, diffs, and previews are QC.
@@ -243,19 +711,40 @@

The brain needs a working environment.

04 · COOKIE MONSTER, LAYER BY LAYER

One product, several jobs.

-

The important question is not “Is CookieMonster intelligent?” It is “Which layer is responsible for this part of the work?”

+

+ The important question is not “Is CookieMonster intelligent?” It is “Which layer is responsible for this + part of the work?” +

-
Desktop shell

Electron presents the windows, project picker, conversations, approvals, and results.

-
Harness

OpenCode manages sessions, project context, rules, agents, tools, and the action loop.

-
Model route

CookieMonster sends model work through the authenticated WPP Open bridge.

-
Local execution

Tools inspect or change the selected project. Bun runs much of CookieMonster’s JavaScript and TypeScript tooling.

+
+ Desktop shell +

Electron presents the windows, project picker, conversations, approvals, and results.

+
+
+ Harness +

OpenCode manages sessions, project context, rules, agents, tools, and the action loop.

+
+
+ Model route +

CookieMonster sends model work through the authenticated WPP Open bridge.

+
+
+ Local execution +

+ Tools inspect or change the selected project. Bun runs much of CookieMonster’s JavaScript and + TypeScript tooling. +

+
@@ -265,11 +754,22 @@

CookieMonster is not simply “the AI.”

05 · HOW A TURN ACTUALLY WORKS

It is a loop, not one magic answer.

-

A useful agent repeatedly gathers evidence and adjusts. The harness carries information between the model and the tools at each step.

+

+ A useful agent repeatedly gathers evidence and adjusts. The harness carries information between the model + and the tools at each step. +

-
Observe
Decide
Act
Inspect
Report or repeat
+
Observe
+
Decide
+
Act
+
Inspect
+
Report or repeat
+
+
+ Motion analogy: brief → first pass → RAM preview → notes → revision → final check. You + would not approve a film because an editor said “export complete”; you inspect the file. Treat agent output + the same way.
-
Motion analogy: brief → first pass → RAM preview → notes → revision → final check. You would not approve a film because an editor said “export complete”; you inspect the file. Treat agent output the same way.
@@ -277,14 +777,19 @@

It is a loop, not one magic answer.

06 · PRACTICE THE BOUNDARY

Drive a simulated harness.

-

Choose Plan or Build, inspect the sample folder, and send a request. The goal is to notice that mode, tools, scope, and evidence—not eloquence—determine what happens.

+

+ Choose Plan or Build, inspect the sample folder, and send a request. The goal is to notice that mode, tools, + scope, and evidence—not eloquence—determine what happens. +

PROJECT · PITCH-SIZZLE -

Select a file to preview its role.

+

+ Select a file to preview its role. +

@@ -292,10 +797,16 @@

Drive a simulated harness.

-
The folder is selected. I know only the filenames until I use a tool to read them.
+
+ The folder is selected. I know only the filenames until I use a tool to read them. +
- +
@@ -309,12 +820,36 @@

Drive a simulated harness.

Safe use is a production habit.

These checks matter more than clever prompting.

-
01

Open the right folder

The selected project defines the practical boundary of the job.

-
02

State the outcome

Describe the deliverable, not merely a vague activity.

-
03

Set boundaries

Name what may change, what must not change, and any client-data constraints.

-
04

Choose the mode

Explore uncertain work in Plan. Use Build when an edit is intentionally required.

-
05

Read approvals

An approval is a real action boundary, not a nuisance dialog.

-
06

Demand evidence

Review the file, diff, preview, test, or exported artifact—not only the final prose.

+
+
01
+

Open the right folder

+

The selected project defines the practical boundary of the job.

+
+
+
02
+

State the outcome

+

Describe the deliverable, not merely a vague activity.

+
+
+
03
+

Set boundaries

+

Name what may change, what must not change, and any client-data constraints.

+
+
+
04
+

Choose the mode

+

Explore uncertain work in Plan. Use Build when an edit is intentionally required.

+
+
+
05
+

Read approvals

+

An approval is a real action boundary, not a nuisance dialog.

+
+
+
06
+

Demand evidence

+

Review the file, diff, preview, test, or exported artifact—not only the final prose.

+
@@ -325,12 +860,56 @@

Safe use is a production habit.

Can you see the machinery?

Choose an answer. Feedback is immediate; reset and discuss any disagreement.

-

1. Which statement is accurate?

-

2. In this CookieMonster repository, which command-line toolkit is used most often?

-

3. What turns a model into an agent that can work with project files?

-

4. You want to understand an unfamiliar folder but do not want edits. What is the best opening move?

-

5. CookieMonster reports “done.” What proves a requested file edit succeeded?

-

6. Before a task, which three questions matter most?

+
+

1. Which statement is accurate?

+
+ +
+ +
+
+

2. In this CookieMonster repository, which command-line toolkit is used most often?

+
+ +
+
+

3. What turns a model into an agent that can work with project files?

+
+ +
+ +
+
+

+ 4. You want to understand an unfamiliar folder but do not want edits. What is the best opening move? +

+
+ +
+ +
+
+

5. CookieMonster reports “done.” What proves a requested file edit succeeded?

+
+ +
+ +
+
+

6. Before a task, which three questions matter most?

+
+ +
+ +
Score: 0 / 6 · Answer each question once.
@@ -339,8 +918,16 @@

Can you see the machinery?

CookieMonster is a controlled production loop, not an all-seeing chat box.
-

Before every task: choose the folder, bound the tools, and define the evidence.

-
Grounded in the official Node.js introduction, Bun documentation, and upstream OpenCode documentation for tools and agents. CookieMonster-specific layering is based on this repository’s live manifest and desktop architecture.
+

+ Before every task: choose the folder, bound the tools, and define the evidence. +

+
+ Grounded in the official + Node.js introduction, + Bun documentation, and upstream OpenCode documentation for + tools and agents. + CookieMonster-specific layering is based on this repository’s live manifest and desktop architecture. +
diff --git a/flake.lock b/flake.lock index 1c8e62bd82..021f274baa 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1776683584, - "narHash": "sha256-NuTLMrr10Tng72hurYG8jYQ4XKK8wnpJmOGcPiis96g=", + "lastModified": 1790510107, + "narHash": "sha256-EVMNYv7hYDDD9TGVT/hIyTYgpiXA8y3m5xIEIxuGNU0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9dd5558b06dbdacbf635a3dd36dce1b1a7ee3a89", + "rev": "3181085bfd08663b6b9e60bc7a8395c2aaa741bd", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 8737c3b542..e96ac2344c 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,6 @@ "aarch64-linux" "x86_64-linux" "aarch64-darwin" - "x86_64-darwin" ]; forEachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system}); rev = self.shortRev or self.dirtyShortRev or "dirty"; @@ -22,7 +21,7 @@ default = pkgs.mkShell { packages = with pkgs; [ bun - nodejs_20 + nodejs pkg-config openssl git diff --git a/github/action.yml b/github/action.yml index 3d983a1609..2ed8fd6f97 100644 --- a/github/action.yml +++ b/github/action.yml @@ -14,7 +14,7 @@ inputs: required: false share: - description: "Share the opencode session (defaults to true for public repos)" + description: "Deprecated and ignored: session sharing was discontinued" required: false prompt: @@ -71,7 +71,6 @@ runs: env: MODEL: ${{ inputs.model }} AGENT: ${{ inputs.agent }} - SHARE: ${{ inputs.share }} PROMPT: ${{ inputs.prompt }} USE_GITHUB_TOKEN: ${{ inputs.use_github_token }} MENTIONS: ${{ inputs.mentions }} diff --git a/infra/console.ts b/infra/console.ts index 630bb56fec..9b94afe90d 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -1,9 +1,7 @@ -import { deployAws, domain } from "./stage" +import { domain } from "./stage" import { EMAILOCTOPUS_API_KEY } from "./app" import { SECRET } from "./secret" -const lake = deployAws ? await import("./lake") : undefined - //////////////// // DATABASE //////////////// @@ -253,7 +251,7 @@ const SALESFORCE_INSTANCE_URL = new sst.Secret("SALESFORCE_INSTANCE_URL") const logProcessor = new sst.cloudflare.Worker("LogProcessor", { handler: "packages/console/function/src/log-processor.ts", - link: [SECRET.HoneycombApiKey, ...(lake?.lakeIngest ? [lake.lakeIngest] : [])], + link: [SECRET.HoneycombApiKey], }) new sst.cloudflare.x.SolidStart("Console", { @@ -297,6 +295,7 @@ new sst.cloudflare.x.SolidStart("Console", { //VITE_API_URL: gateway.url.apply((url) => url!), VITE_AUTH_URL: auth.url.apply((url) => url!), VITE_STRIPE_PUBLISHABLE_KEY: STRIPE_PUBLISHABLE_KEY.value, + VITE_CONSOLE_MARKETING_ENABLED: $app.stage === "dev" ? "true" : "false", }, transform: { server: { diff --git a/infra/lake.ts b/infra/lake.ts deleted file mode 100644 index d4e46168e3..0000000000 --- a/infra/lake.ts +++ /dev/null @@ -1,331 +0,0 @@ -import { domain } from "./stage" - -const current = aws.getCallerIdentityOutput({}) -const partition = aws.getPartitionOutput({}) -const region = aws.getRegionOutput({}) - -const tableBucketName = `opencode-${$app.stage}-lake` -const glueCatalogName = "s3tablescatalog" -const glueCatalogArn = $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:catalog` -const glueS3TablesCatalogArn = $interpolate`${glueCatalogArn}/${glueCatalogName}` -const glueS3TablesChildCatalogArn = $interpolate`${glueS3TablesCatalogArn}/${tableBucketName}` -const glueS3TablesDatabaseWildcardArn = $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:database/${glueCatalogName}/${tableBucketName}/*` -const glueS3TablesTableWildcardArn = $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:table/${glueCatalogName}/${tableBucketName}/*/*` -const s3TablesBucketWildcardArn = $interpolate`arn:${partition.partition}:s3tables:${region.region}:${current.accountId}:bucket/*` - -export const tableBucket = new aws.s3tables.TableBucket("LakeTableBucket", { - name: tableBucketName, - forceDestroy: $app.stage !== "production", -}) - -const s3TablesCatalog = new aws.cloudcontrol.Resource( - "LakeS3TablesCatalog", - { - typeName: "AWS::Glue::Catalog", - desiredState: $jsonStringify({ - Name: glueCatalogName, - Description: "Federated catalog for S3 Tables", - FederatedCatalog: { - Identifier: s3TablesBucketWildcardArn, - ConnectionName: "aws:s3tables", - }, - CreateDatabaseDefaultPermissions: [ - { - Principal: { - DataLakePrincipalIdentifier: "IAM_ALLOWED_PRINCIPALS", - }, - Permissions: ["ALL"], - }, - ], - CreateTableDefaultPermissions: [ - { - Principal: { - DataLakePrincipalIdentifier: "IAM_ALLOWED_PRINCIPALS", - }, - Permissions: ["ALL"], - }, - ], - AllowFullTableExternalDataAccess: "True", - }), - }, - { dependsOn: [tableBucket] }, -) - -const athenaResultsBucket = new aws.s3.Bucket("LakeAthenaResults", { - bucket: `opencode-${$app.stage}-lake-athena-results`, - forceDestroy: $app.stage !== "production", -}) - -const firehoseErrorBucket = new aws.s3.Bucket("LakeFirehoseErrors", { - bucket: `opencode-${$app.stage}-lake-firehose-errors`, - forceDestroy: $app.stage !== "production", -}) - -const athenaWorkgroup = new aws.athena.Workgroup("LakeAthenaWorkgroup", { - name: `opencode-${$app.stage}-lake-workgroup`, - forceDestroy: $app.stage !== "production", - configuration: { - enforceWorkgroupConfiguration: true, - publishCloudwatchMetricsEnabled: true, - // Athena bills $5/TB scanned; kill any query that would scan more than 2 TB - // so a regression cannot silently burn money. Stats sync full passes scan - // ~250 GB as of 2026-07. - bytesScannedCutoffPerQuery: 2 * 1024 ** 4, - resultConfiguration: { - outputLocation: $interpolate`s3://${athenaResultsBucket.bucket}/`, - }, - }, -}) - -const firehoseRole = new aws.iam.Role("LakeFirehoseRole", { - assumeRolePolicy: aws.iam.getPolicyDocumentOutput({ - statements: [ - { - effect: "Allow", - actions: ["sts:AssumeRole"], - principals: [ - { - type: "Service", - identifiers: ["firehose.amazonaws.com"], - }, - ], - }, - ], - }).json, -}) - -const firehosePolicy = new aws.iam.RolePolicy("LakeFirehosePolicy", { - role: firehoseRole.id, - policy: aws.iam.getPolicyDocumentOutput({ - statements: [ - { - effect: "Allow", - actions: [ - "s3tables:ListTableBuckets", - "s3tables:GetTableBucket", - "s3tables:GetNamespace", - "s3tables:GetTable", - "s3tables:GetTableData", - "s3tables:GetTableMetadataLocation", - "s3tables:ListNamespaces", - "s3tables:ListTables", - "s3tables:PutTableData", - "s3tables:UpdateTableMetadataLocation", - ], - resources: ["*"], - }, - { - effect: "Allow", - actions: [ - "glue:GetCatalog", - "glue:GetCatalogs", - "glue:GetDatabase", - "glue:GetDatabases", - "glue:GetTable", - "glue:GetTables", - "glue:UpdateTable", - ], - resources: [ - glueCatalogArn, - glueS3TablesCatalogArn, - $interpolate`${glueS3TablesCatalogArn}/*`, - glueS3TablesDatabaseWildcardArn, - glueS3TablesTableWildcardArn, - $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:database/*`, - $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:table/*/*`, - $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:table/${glueCatalogName}/*`, - ], - }, - { - effect: "Allow", - actions: [ - "s3:AbortMultipartUpload", - "s3:GetBucketLocation", - "s3:GetObject", - "s3:ListBucket", - "s3:ListBucketMultipartUploads", - "s3:PutObject", - ], - resources: [firehoseErrorBucket.arn, $interpolate`${firehoseErrorBucket.arn}/*`], - }, - { - effect: "Allow", - actions: ["lakeformation:GetDataAccess"], - resources: ["*"], - }, - ], - }).json, -}) - -const firehose = new aws.kinesis.FirehoseDeliveryStream( - "LakeFirehose", - { - name: `opencode-${$app.stage}-lake-ingest`, - destination: "iceberg", - icebergConfiguration: { - appendOnly: true, - bufferingInterval: 60, - bufferingSize: 1, - catalogArn: glueS3TablesChildCatalogArn, - processingConfiguration: { - enabled: true, - processors: [ - { - type: "MetadataExtraction", - parameters: [ - { parameterName: "JsonParsingEngine", parameterValue: "JQ-1.6" }, - { - parameterName: "MetadataExtractionQuery", - parameterValue: - '{destinationDatabaseName:._lake_database,destinationTableName:._lake_table,operation:(._lake_operation // "insert")}', - }, - ], - }, - ], - }, - roleArn: firehoseRole.arn, - s3BackupMode: "FailedDataOnly", - s3Configuration: { - roleArn: firehoseRole.arn, - bucketArn: firehoseErrorBucket.arn, - errorOutputPrefix: "errors/!{firehose:error-output-type}/", - }, - }, - }, - { dependsOn: [s3TablesCatalog, firehosePolicy] }, -) - -export const lakeVpc = new sst.aws.Vpc("LakeVpc") -export const lakeCluster = new sst.aws.Cluster("LakeCluster", { vpc: lakeVpc }) -export const lakeRegion = region.region -export const lakeCatalog = $interpolate`${glueCatalogName}/${tableBucket.name}` -export const lakeAthenaWorkgroup = athenaWorkgroup - -const ingestSecret = new random.RandomPassword("LakeIngestSecret", { length: 32 }) -export const ingestSecretSsm = new aws.ssm.Parameter("LakeIngestSecretSsm", { - name: $interpolate`/${$app.name}/${$app.stage}/lake/ingest/secret`, - type: "SecureString", - value: ingestSecret.result, -}) - -const ingestConfig = new sst.Linkable("LakeIngestConfig", { - properties: { - streamName: firehose.name, - secret: ingestSecret.result, - }, -}) - -const ingestService = new sst.aws.Service("LakeIngestService", { - cluster: lakeCluster, - architecture: "arm64", - cpu: "1 vCPU", - memory: "4 GB", - image: { - context: ".", - dockerfile: "packages/stats/server/Dockerfile", - }, - link: [ingestConfig], - permissions: [ - { - actions: ["firehose:PutRecord", "firehose:PutRecordBatch"], - resources: [firehose.arn], - }, - ], - scaling: { - min: $app.stage === "production" ? 2 : 1, - max: $app.stage === "production" ? 32 : 4, - cpuUtilization: 60, - memoryUtilization: 70, - }, - loadBalancer: { - domain: { - name: `lake.${domain}`, - dns: sst.cloudflare.dns(), - }, - rules: [ - { listen: "80/http", redirect: "443/https" }, - { listen: "443/https", forward: "3000/http" }, - ], - health: { - "3000/http": { - path: "/ready", - successCodes: "200-299", - }, - }, - }, - health: { - command: [ - "CMD-SHELL", - "bun --eval \"fetch('http://localhost:3000/health').then((r) => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))\"", - ], - interval: "30 seconds", - retries: 3, - startPeriod: "30 seconds", - timeout: "5 seconds", - }, - dev: { - command: "bun run start", - directory: "packages/stats/server", - url: "http://localhost:3000", - }, - wait: $app.stage === "production", -}) - -export const lakeIngest = new sst.Linkable("LakeIngest", { - properties: { - url: ingestService.url, - secret: ingestSecret.result, - }, -}) - -export const lakeQueryPermissions = [ - { - actions: ["athena:StartQueryExecution", "athena:GetQueryExecution", "athena:GetQueryResults"], - resources: [athenaWorkgroup.arn], - }, - { - actions: [ - "glue:GetCatalog", - "glue:GetCatalogs", - "glue:GetDatabase", - "glue:GetDatabases", - "glue:GetTable", - "glue:GetTables", - "glue:GetPartitions", - ], - resources: [ - glueCatalogArn, - glueS3TablesCatalogArn, - $interpolate`${glueS3TablesCatalogArn}/*`, - glueS3TablesDatabaseWildcardArn, - glueS3TablesTableWildcardArn, - $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:database/*`, - $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:table/*/*`, - $interpolate`arn:${partition.partition}:glue:${region.region}:${current.accountId}:table/${glueCatalogName}/*`, - ], - }, - { - actions: ["s3:GetBucketLocation", "s3:ListBucket"], - resources: [athenaResultsBucket.arn], - }, - { - actions: ["s3:GetObject", "s3:PutObject", "s3:AbortMultipartUpload", "s3:ListBucketMultipartUploads"], - resources: [$interpolate`${athenaResultsBucket.arn}/*`], - }, - { - actions: [ - "s3tables:GetTableBucket", - "s3tables:GetNamespace", - "s3tables:GetTable", - "s3tables:GetTableData", - "s3tables:GetTableMetadataLocation", - "s3tables:ListNamespaces", - "s3tables:ListTables", - ], - resources: ["*"], - }, - { - actions: ["lakeformation:GetDataAccess"], - resources: ["*"], - }, -] diff --git a/infra/stats.ts b/infra/stats.ts index 29c9537daf..6bd9d55eea 100644 --- a/infra/stats.ts +++ b/infra/stats.ts @@ -1,104 +1,10 @@ -import { lakeAthenaWorkgroup, lakeCatalog, lakeCluster, lakeQueryPermissions, lakeRegion, tableBucket } from "./lake" import { EMAILOCTOPUS_API_KEY } from "./app" import { domain } from "./stage" -//////////////// -// LAKE -//////////////// - -const inferenceNamespace = new aws.s3tables.Namespace("LakeInferenceNamespace", { - namespace: "inference", - tableBucketArn: tableBucket.arn, -}) - -const inferenceEventTable = new aws.s3tables.Table( - "LakeInferenceEventTable", - { - name: "event", - namespace: inferenceNamespace.namespace, - tableBucketArn: inferenceNamespace.tableBucketArn, - format: "ICEBERG", - metadata: { - iceberg: { - schema: { - fields: [ - { name: "event_timestamp", type: "string", required: false }, - { name: "event_date", type: "string", required: false }, - { name: "event_type", type: "string", required: false }, - { name: "dataset", type: "string", required: false }, - { name: "cf_continent", type: "string", required: false }, - { name: "cf_country", type: "string", required: false }, - { name: "cf_city", type: "string", required: false }, - { name: "cf_region", type: "string", required: false }, - { name: "cf_latitude", type: "double", required: false }, - { name: "cf_longitude", type: "double", required: false }, - { name: "cf_timezone", type: "string", required: false }, - { name: "duration", type: "double", required: false }, - { name: "request_length", type: "long", required: false }, - { name: "status", type: "int", required: false }, - { name: "ip", type: "string", required: false }, - { name: "is_stream", type: "boolean", required: false }, - { name: "session", type: "string", required: false }, - { name: "request", type: "string", required: false }, - { name: "client", type: "string", required: false }, - { name: "user_agent", type: "string", required: false }, - { name: "model", type: "string", required: false }, - { name: "model_tier", type: "string", required: false }, - { name: "model_variant", type: "string", required: false }, - { name: "source", type: "string", required: false }, - { name: "provider", type: "string", required: false }, - { name: "provider_model", type: "string", required: false }, - { name: "llm_error_code", type: "int", required: false }, - { name: "llm_error_message", type: "string", required: false }, - { name: "error_response", type: "string", required: false }, - { name: "error_type", type: "string", required: false }, - { name: "error_message", type: "string", required: false }, - { name: "error_cause", type: "string", required: false }, - { name: "error_cause2", type: "string", required: false }, - { name: "api_key", type: "string", required: false }, - { name: "workspace", type: "string", required: false }, - { name: "user_id", type: "string", required: false }, - { name: "is_subscription", type: "boolean", required: false }, - { name: "subscription", type: "string", required: false }, - { name: "response_length", type: "long", required: false }, - { name: "time_to_first_byte", type: "long", required: false }, - { name: "timestamp_first_byte", type: "long", required: false }, - { name: "timestamp_last_byte", type: "long", required: false }, - { name: "tokens_input", type: "long", required: false }, - { name: "tokens_output", type: "long", required: false }, - { name: "tokens_reasoning", type: "long", required: false }, - { name: "tokens_cache_read", type: "long", required: false }, - { name: "tokens_cache_write_5m", type: "long", required: false }, - { name: "tokens_cache_write_1h", type: "long", required: false }, - { name: "cost_input_microcents", type: "long", required: false }, - { name: "cost_output_microcents", type: "long", required: false }, - { name: "cost_cache_read_microcents", type: "long", required: false }, - { name: "cost_cache_write_microcents", type: "long", required: false }, - { name: "cost_total_microcents", type: "long", required: false }, - { name: "cost_input", type: "long", required: false }, - { name: "cost_output", type: "long", required: false }, - { name: "cost_cache_read", type: "long", required: false }, - { name: "cost_cache_write_5m", type: "long", required: false }, - { name: "cost_cache_write_1h", type: "long", required: false }, - { name: "cost_total", type: "long", required: false }, - ], - }, - }, - }, - }, - { deleteBeforeReplace: $app.stage !== "production", ignoreChanges: ["metadata"] }, -) - -export const inferenceEvent = new sst.Linkable("InferenceEvent", { - properties: { - region: lakeRegion, - catalog: lakeCatalog, - database: inferenceNamespace.namespace, - table: inferenceEventTable.name, - tableBucket: tableBucket.name, - workgroup: lakeAthenaWorkgroup.name, - }, -}) +// Keep the deployed names and arguments: the R2 stats sync still uses this VPC +// and cluster after the legacy lake is removed. +const lakeVpc = new sst.aws.Vpc("LakeVpc") +const lakeCluster = new sst.aws.Cluster("LakeCluster", { vpc: lakeVpc }) //////////////// // DATABASE @@ -181,6 +87,10 @@ const statsSyncConfig = new sst.Linkable("StatsSyncConfig", { }, }) +// Comma-separated model IDs kept off the public stats site. A secret, so excluding +// an unreleased model does not publish its name in git. +const statsHiddenModels = new sst.Secret("StatsHiddenModels", "") + const r2SqlAuthToken = new sst.Secret("R2SqlAuthToken") const r2Sql = new sst.Linkable("R2Sql", { properties: { @@ -203,10 +113,7 @@ export const statSync = new sst.aws.Service("StatsSyncService", { dockerfile: "packages/stats/server/Dockerfile", }, command: ["bun", "src/stat-sync.ts"], - // Keep the legacy Athena link and IAM permissions during the first R2-backed - // release so reverting the application code remains a one-deploy rollback. - link: [database, inferenceEvent, r2Sql, r2SqlAuthToken, statsSyncConfig], - permissions: lakeQueryPermissions, + link: [database, r2Sql, r2SqlAuthToken, statsHiddenModels, statsSyncConfig], scaling: { min: 1, max: 1, diff --git a/install b/install index b0716d5320..1f21325b48 100755 --- a/install +++ b/install @@ -65,6 +65,18 @@ while [[ $# -gt 0 ]]; do esac done +requested_version="${requested_version#v}" + +# This installer only installs OpenCode 1. OpenCode 1 clients run it with VERSION set when upgrading, +# so refusing 2.x also keeps older clients from replacing themselves with OpenCode 2 by accident. +if [[ "$requested_version" =~ ^([0-9]+)\. ]] && [ "${BASH_REMATCH[1]}" -ge 2 ]; then + echo -e "${RED}Error: OpenCode ${requested_version} is not an OpenCode 1 release, so this installer can't install it.${NC}" + echo -e "${MUTED}To install OpenCode 2, run: ${NC}curl -fsSL https://opencode.ai/v2/install | bash" + echo -e "${MUTED}To upgrade an existing OpenCode 1 install, run: ${NC}opencode upgrade --major" + echo -e "${MUTED}Docs: https://opencode.ai/v2/docs${NC}" + exit 1 +fi + INSTALL_DIR=$HOME/.opencode/bin mkdir -p "$INSTALL_DIR" @@ -181,23 +193,35 @@ else fi if [ -z "$requested_version" ]; then - url="https://github.com/anomalyco/opencode/releases/latest/download/$filename" - specific_version=$(curl -s https://api.github.com/repos/anomalyco/opencode/releases/latest | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p') + # The opencode-ai npm package only contains OpenCode 1 (OpenCode 2 ships as @opencode/cli). npm is + # published before the GitHub release, so fall back to the newest v1 entry in GitHub's release list + # until its assets exist. GitHub's Latest release may be OpenCode 2, so it's never used. + specific_version=$(curl -fsSL --max-time 10 "https://registry.npmjs.org/opencode-ai/latest" 2>/dev/null | grep -o '"version": *"[^"]*"' | head -n 1 | sed 's/.*"\([^"]*\)"$/\1/' || true) + if [[ "$specific_version" =~ ^1\.[0-9]+\.[0-9]+$ ]]; then + asset_status=$(curl -sIL --max-time 10 -o /dev/null -w "%{http_code}" "https://github.com/anomalyco/opencode/releases/download/v${specific_version}/$filename" || true) + if [ "$asset_status" != "200" ]; then + specific_version="" + fi + else + specific_version="" + fi + if [ -z "$specific_version" ]; then + specific_version=$(curl -fsSL --max-time 30 "https://api.github.com/repos/anomalyco/opencode/releases?per_page=100" 2>/dev/null | grep -o '"tag_name": *"v1\.[0-9]*\.[0-9]*"' | head -n 1 | sed 's/.*"v\([^"]*\)"$/\1/' || true) + fi - if [[ $? -ne 0 || -z "$specific_version" ]]; then + if [[ -z "$specific_version" ]]; then echo -e "${RED}Failed to fetch version information${NC}" exit 1 fi + url="https://github.com/anomalyco/opencode/releases/download/v${specific_version}/$filename" else - # Strip leading 'v' if present - requested_version="${requested_version#v}" url="https://github.com/anomalyco/opencode/releases/download/v${requested_version}/$filename" specific_version=$requested_version - # Verify the release exists before downloading - http_status=$(curl -sI -o /dev/null -w "%{http_code}" "https://github.com/anomalyco/opencode/releases/tag/v${requested_version}") + # Verify the release asset exists before downloading. A release that is still publishing has none yet. + http_status=$(curl -sIL -o /dev/null -w "%{http_code}" "$url" || true) if [ "$http_status" = "404" ]; then - echo -e "${RED}Error: Release v${requested_version} not found${NC}" + echo -e "${RED}Error: Release v${requested_version} not found. If it was just released, try again in a few minutes.${NC}" echo -e "${MUTED}Available releases: https://github.com/anomalyco/opencode/releases${NC}" exit 1 fi diff --git a/issue49-after/metrics.json b/issue49-after/metrics.json index 1a0a699f59..29b76b819b 100644 --- a/issue49-after/metrics.json +++ b/issue49-after/metrics.json @@ -1035,4 +1035,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue58-native/issue58-native.ts b/issue58-native/issue58-native.ts index 3b357620c7..66c7ef8453 100644 --- a/issue58-native/issue58-native.ts +++ b/issue58-native/issue58-native.ts @@ -5,7 +5,7 @@ import { join } from "node:path" import { readFile, writeFile, mkdir } from "node:fs/promises" import { browserCommand, browserViewport, registerBrowserOwner } from "../../packages/desktop/src/main/browser/tabs" -console.log('Corner entry started') +console.log("Corner entry started") const directory = process.env.CM_BROWSER_SMOKE_PROFILE! const output = process.env.CM_CORNER_OUTPUT! assert(directory && output, "Requires an isolated profile and output path") @@ -16,59 +16,89 @@ app.commandLine.appendSwitch("force-device-scale-factor", process.env.CM_CORNER_ app.commandLine.appendSwitch("disable-features", "CalculateNativeWinOcclusion") app.on("window-all-closed", () => {}) async function run() { -await app.whenReady() -console.log('Corner Electron ready') -await mkdir(output, { recursive: true }) -const server = createServer(async (request, response) => { - if (request.url === "/page") { - response.writeHead(200, { "content-type": "text/html" }) - response.end('

Native page — corner review

') - return - } - if (request.url === "/") { - response.writeHead(200, { "content-type": "text/html" }) - response.end('') - return - } - const name = new URL(request.url!, "http://localhost").pathname - const bytes = await readFile(join(output, name.slice(1))).catch(() => undefined) - response.writeHead(bytes ? 200 : 404, { "content-type": name.endsWith(".css") ? "text/css" : name.endsWith(".mjs") ? "text/javascript" : "application/octet-stream" }) - response.end(bytes) -}) -await new Promise(resolve => server.listen(0, "127.0.0.1", resolve)) -const address = server.address() -assert(address && typeof address !== "string") -const win = new BrowserWindow({ width: 940, height: 780, frame: false, show: false, title: "CM Browser #58 — isolated corner review" }) -const owner = registerBrowserOwner(win) -const results: unknown[] = [] -const failures: unknown[] = [] -const wait = async (check: () => boolean | Promise) => { - for (let attempt = 0; attempt < 150; attempt++) { - if (await check()) return - await new Promise(resolve => setTimeout(resolve, 20)) - } - console.log('timeout state', owner.viewport, await win.webContents.executeJavaScript("({dimensions:[innerWidth,innerHeight],bounds:window.reviewBounds,host:document.getElementById('review-panel').getBoundingClientRect().toJSON(),active:document.activeElement?.outerHTML,overlays:[...document.querySelectorAll('[role=tooltip],[role=menu],[role=listbox]')].map(el=>el.outerHTML)})")) - throw Error("Corner fixture timed out") -} -try { - await win.loadURL(`http://127.0.0.1:${address.port}/`) - console.log('Corner renderer loaded') - win.showInactive() - await wait(() => win.webContents.executeJavaScript("!!window.reviewPlatform")) - console.log('Corner panel mounted') - const state = await browserCommand(owner, "review", { op: "new" }) - const tab = owner.groups.get("review")!.tabs.find(tab => tab.id === state.activeID)! - await browserCommand(owner, "review", { op: "navigate", tabID: tab.id, url: `http://127.0.0.1:${address.port}/page` }) - await wait(() => !tab.contents.isLoading()) - win.webContents.debugger.attach("1.3") - await win.webContents.debugger.sendCommand("Runtime.enable") - await win.webContents.debugger.sendCommand("Runtime.addBinding", { name: "cornerViewport" }) - win.webContents.debugger.on("message", (_event, method, params) => { - if (method !== "Runtime.bindingCalled" || params.name !== "cornerViewport") return - const input = JSON.parse(params.payload) - try { browserViewport(owner, input) } catch(error) { failures.push(String(error)) } + await app.whenReady() + console.log("Corner Electron ready") + await mkdir(output, { recursive: true }) + const server = createServer(async (request, response) => { + if (request.url === "/page") { + response.writeHead(200, { "content-type": "text/html" }) + response.end( + '

Native page — corner review

', + ) + return + } + if (request.url === "/") { + response.writeHead(200, { "content-type": "text/html" }) + response.end( + '', + ) + return + } + const name = new URL(request.url!, "http://localhost").pathname + const bytes = await readFile(join(output, name.slice(1))).catch(() => undefined) + response.writeHead(bytes ? 200 : 404, { + "content-type": name.endsWith(".css") + ? "text/css" + : name.endsWith(".mjs") + ? "text/javascript" + : "application/octet-stream", + }) + response.end(bytes) + }) + await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve)) + const address = server.address() + assert(address && typeof address !== "string") + const win = new BrowserWindow({ + width: 940, + height: 780, + frame: false, + show: false, + title: "CM Browser #58 — isolated corner review", }) - await win.webContents.executeJavaScript(` + const owner = registerBrowserOwner(win) + const results: unknown[] = [] + const failures: unknown[] = [] + const wait = async (check: () => boolean | Promise) => { + for (let attempt = 0; attempt < 150; attempt++) { + if (await check()) return + await new Promise((resolve) => setTimeout(resolve, 20)) + } + console.log( + "timeout state", + owner.viewport, + await win.webContents.executeJavaScript( + "({dimensions:[innerWidth,innerHeight],bounds:window.reviewBounds,host:document.getElementById('review-panel').getBoundingClientRect().toJSON(),active:document.activeElement?.outerHTML,overlays:[...document.querySelectorAll('[role=tooltip],[role=menu],[role=listbox]')].map(el=>el.outerHTML)})", + ), + ) + throw Error("Corner fixture timed out") + } + try { + await win.loadURL(`http://127.0.0.1:${address.port}/`) + console.log("Corner renderer loaded") + win.showInactive() + await wait(() => win.webContents.executeJavaScript("!!window.reviewPlatform")) + console.log("Corner panel mounted") + const state = await browserCommand(owner, "review", { op: "new" }) + const tab = owner.groups.get("review")!.tabs.find((tab) => tab.id === state.activeID)! + await browserCommand(owner, "review", { + op: "navigate", + tabID: tab.id, + url: `http://127.0.0.1:${address.port}/page`, + }) + await wait(() => !tab.contents.isLoading()) + win.webContents.debugger.attach("1.3") + await win.webContents.debugger.sendCommand("Runtime.enable") + await win.webContents.debugger.sendCommand("Runtime.addBinding", { name: "cornerViewport" }) + win.webContents.debugger.on("message", (_event, method, params) => { + if (method !== "Runtime.bindingCalled" || params.name !== "cornerViewport") return + const input = JSON.parse(params.payload) + try { + browserViewport(owner, input) + } catch (error) { + failures.push(String(error)) + } + }) + await win.webContents.executeJavaScript(` window.reviewPlatform.browserPanel.viewport = async input => { window.reviewBounds=input.bounds; window.cornerViewport(JSON.stringify(input)); }; document.body.style.background='#e000e0'; document.activeElement?.blur(); @@ -77,70 +107,114 @@ try { host.id='review-panel'; window.reviewState(${JSON.stringify(await browserCommand(owner, "review", { op: "state" }))}); true `) - for (const layout of ["classic", "new"]) for (const direction of ["ltr", "rtl"]) for (const zoom of [0.8, 1, 1.25]) for (const width of [940, 620, 390]) { - console.log('Checking',layout,direction,zoom,width) - win.setContentSize(width, 700) - win.webContents.setZoomFactor(zoom) - await win.webContents.executeJavaScript(` + for (const layout of ["classic", "new"]) + for (const direction of ["ltr", "rtl"]) + for (const zoom of [0.8, 1, 1.25]) + for (const width of [940, 620, 390]) { + console.log("Checking", layout, direction, zoom, width) + win.setContentSize(width, 700) + win.webContents.setZoomFactor(zoom) + await win.webContents.executeJavaScript(` document.body.toggleAttribute('data-new-layout',${layout === "new"}); document.documentElement.dir=${JSON.stringify(direction)}; document.getElementById('review-panel').className=${JSON.stringify("relative min-w-0 flex overflow-hidden h-full " + (layout === "new" ? "bg-v2-background-bg-base rounded-[10px] shadow-[var(--v2-elevation-raised)]" : "bg-background-base"))}; document.activeElement?.blur(); true `) - await browserCommand(owner, "review", { op: "zoom", tabID: tab.id, factor: zoom }) - await wait(() => owner.attached === tab) - await new Promise(resolve => setTimeout(resolve, 100)) - const metrics = await win.webContents.executeJavaScript(`(() => { + await browserCommand(owner, "review", { op: "zoom", tabID: tab.id, factor: zoom }) + await wait(() => owner.attached === tab) + await new Promise((resolve) => setTimeout(resolve, 100)) + const metrics = await win.webContents.executeJavaScript(`(() => { const host=document.getElementById('review-panel'), css=getComputedStyle(host); return {host:host.getBoundingClientRect().toJSON(), radius:parseFloat(css.borderBottomLeftRadius), viewport:window.reviewBounds, dpr:devicePixelRatio, zoom:visualViewport.scale}; })()`) - const native = tab.view.getBounds() - const bottom = (metrics.host.bottom - metrics.radius) * zoom - assert(native.y + native.height <= Math.ceil(bottom) + 1, "Native page intersects the bottom corner band") - assert(native.x >= Math.floor(metrics.host.left * zoom), "Native page crosses host left edge") - assert(native.x + native.width <= Math.ceil(metrics.host.right * zoom) + 1, "Native page crosses host right edge") - results.push({ layout, direction, zoom, width, display: screen.getDisplayMatching(win.getBounds()).scaleFactor, metrics, native }) - if ((zoom === 1 && width === 940) || (zoom === 1.25 && width === 390)) { - // Window capture must include native child pixels; DOM-only capture is not evidence for this issue. - const sources = await desktopCapturer.getSources({ types: ["window"], thumbnailSize: { width: 1880, height: 1400 } }) - const source = sources.find(source => source.id === win.getMediaSourceId()) - assert(source && !source.thumbnail.isEmpty(), "Owned native window capture unavailable") - const bitmap = source.thumbnail.toBitmap() - const green = Array.from({ length: Math.floor(bitmap.length / 4) }, (_, i) => i * 4).some(i => Math.abs(bitmap[i] - 80) < 5 && Math.abs(bitmap[i+1] - 180) < 5 && Math.abs(bitmap[i+2] - 40) < 5) - assert(green, "Capture omitted the native green page") - const name = `native-${layout}-${direction}-scale-${process.env.CM_CORNER_SCALE}${width === 390 ? '-narrow-zoom' : ''}.png` - await writeFile(join(output, name), source.thumbnail.toPNG()) - if(width === 940) { - const size=source.thumbnail.getSize() - const factor=size.width/width - const y=Math.max(0,Math.floor((metrics.host.bottom-24)*zoom*factor)) - const height=Math.min(64,size.height-y) - await writeFile(join(output,name.replace('.png','-corners.png')),source.thumbnail.crop({x:Math.floor(metrics.host.left*zoom*factor),y,width:Math.floor(metrics.host.width*zoom*factor),height}).resize({width:1880}).toPNG()) - } - console.log("Captured", name, source.thumbnail.getSize()) - } - } - assert.deepEqual(failures, []) - const control = await win.webContents.executeJavaScript("document.getElementById('review-panel').style.borderRadius='24px'; document.getElementById('review-panel').getBoundingClientRect().toJSON()") - assert(tab.view.getBounds().y + tab.view.getBounds().height > (control.bottom - 24) * win.webContents.getZoomFactor(), "Detector must reject a host radius larger than its inset") - await writeFile(join(output, `native-scale-${process.env.CM_CORNER_SCALE}.json`), JSON.stringify({ results, failures }, null, 2)) - console.log("PASS", results.length, "native corner geometry cases") - if(process.env.CM_CORNER_HOLD==='1') { - win.setContentSize(940,700) - win.webContents.setZoomFactor(1) - tab.contents.setZoomFactor(1) - await win.webContents.debugger.sendCommand('Runtime.addBinding',{name:'cornerControl'}) - win.webContents.debugger.on('message',(_event,method,params)=>{ - if(method!=='Runtime.bindingCalled'||params.name!=='cornerControl')return - const value=JSON.parse(params.payload) - if(value.close){win.close();return} - void (async()=>{ - win.setContentSize(value.width,700) - win.webContents.setZoomFactor(value.zoom) - tab.contents.setZoomFactor(value.zoom) - await win.webContents.executeJavaScript(`document.body.toggleAttribute('data-new-layout',${value.layout==='new'});document.documentElement.dir=${JSON.stringify(value.direction)};document.getElementById('review-panel').className=${JSON.stringify('relative min-w-0 flex overflow-hidden '+(value.layout==='new'?'bg-v2-background-bg-base rounded-[10px] shadow-[var(--v2-elevation-raised)]':'bg-background-base'))}; document.activeElement?.blur();true`) - })().catch(error=>console.error(error)) - }) - await win.webContents.executeJavaScript(` + const native = tab.view.getBounds() + const bottom = (metrics.host.bottom - metrics.radius) * zoom + assert(native.y + native.height <= Math.ceil(bottom) + 1, "Native page intersects the bottom corner band") + assert(native.x >= Math.floor(metrics.host.left * zoom), "Native page crosses host left edge") + assert( + native.x + native.width <= Math.ceil(metrics.host.right * zoom) + 1, + "Native page crosses host right edge", + ) + results.push({ + layout, + direction, + zoom, + width, + display: screen.getDisplayMatching(win.getBounds()).scaleFactor, + metrics, + native, + }) + if ((zoom === 1 && width === 940) || (zoom === 1.25 && width === 390)) { + // Window capture must include native child pixels; DOM-only capture is not evidence for this issue. + const sources = await desktopCapturer.getSources({ + types: ["window"], + thumbnailSize: { width: 1880, height: 1400 }, + }) + const source = sources.find((source) => source.id === win.getMediaSourceId()) + assert(source && !source.thumbnail.isEmpty(), "Owned native window capture unavailable") + const bitmap = source.thumbnail.toBitmap() + const green = Array.from({ length: Math.floor(bitmap.length / 4) }, (_, i) => i * 4).some( + (i) => + Math.abs(bitmap[i] - 80) < 5 && Math.abs(bitmap[i + 1] - 180) < 5 && Math.abs(bitmap[i + 2] - 40) < 5, + ) + assert(green, "Capture omitted the native green page") + const name = `native-${layout}-${direction}-scale-${process.env.CM_CORNER_SCALE}${width === 390 ? "-narrow-zoom" : ""}.png` + await writeFile(join(output, name), source.thumbnail.toPNG()) + if (width === 940) { + const size = source.thumbnail.getSize() + const factor = size.width / width + const y = Math.max(0, Math.floor((metrics.host.bottom - 24) * zoom * factor)) + const height = Math.min(64, size.height - y) + await writeFile( + join(output, name.replace(".png", "-corners.png")), + source.thumbnail + .crop({ + x: Math.floor(metrics.host.left * zoom * factor), + y, + width: Math.floor(metrics.host.width * zoom * factor), + height, + }) + .resize({ width: 1880 }) + .toPNG(), + ) + } + console.log("Captured", name, source.thumbnail.getSize()) + } + } + assert.deepEqual(failures, []) + const control = await win.webContents.executeJavaScript( + "document.getElementById('review-panel').style.borderRadius='24px'; document.getElementById('review-panel').getBoundingClientRect().toJSON()", + ) + assert( + tab.view.getBounds().y + tab.view.getBounds().height > (control.bottom - 24) * win.webContents.getZoomFactor(), + "Detector must reject a host radius larger than its inset", + ) + await writeFile( + join(output, `native-scale-${process.env.CM_CORNER_SCALE}.json`), + JSON.stringify({ results, failures }, null, 2), + ) + console.log("PASS", results.length, "native corner geometry cases") + if (process.env.CM_CORNER_HOLD === "1") { + win.setContentSize(940, 700) + win.webContents.setZoomFactor(1) + tab.contents.setZoomFactor(1) + await win.webContents.debugger.sendCommand("Runtime.addBinding", { name: "cornerControl" }) + win.webContents.debugger.on("message", (_event, method, params) => { + if (method !== "Runtime.bindingCalled" || params.name !== "cornerControl") return + const value = JSON.parse(params.payload) + if (value.close) { + win.close() + return + } + void (async () => { + win.setContentSize(value.width, 700) + win.webContents.setZoomFactor(value.zoom) + tab.contents.setZoomFactor(value.zoom) + await win.webContents.executeJavaScript( + `document.body.toggleAttribute('data-new-layout',${value.layout === "new"});document.documentElement.dir=${JSON.stringify(value.direction)};document.getElementById('review-panel').className=${JSON.stringify("relative min-w-0 flex overflow-hidden " + (value.layout === "new" ? "bg-v2-background-bg-base rounded-[10px] shadow-[var(--v2-elevation-raised)]" : "bg-background-base"))}; document.activeElement?.blur();true`, + ) + })().catch((error) => console.error(error)) + }) + await win.webContents.executeJavaScript(` document.getElementById('review-panel').style.borderRadius=''; document.getElementById('review-panel').style.top='56px'; document.getElementById('review-panel').style.height='calc(100vh - 80px)'; @@ -150,13 +224,19 @@ try { controls.addEventListener('change',()=>window.cornerControl(JSON.stringify({layout:document.getElementById('corner-layout').value,direction:document.getElementById('corner-dir').value,width:Number(document.getElementById('corner-width').value),zoom:Number(document.getElementById('corner-zoom').value)}))); document.body.append(controls);document.getElementById('corner-close').onclick=()=>window.cornerControl(JSON.stringify({close:true}));true `) - console.log('READY HUMAN REVIEW — isolated native dev fixture with layout, direction, width and zoom controls') - await new Promise(resolve=>win.once('closed',()=>resolve())) + console.log("READY HUMAN REVIEW — isolated native dev fixture with layout, direction, width and zoom controls") + await new Promise((resolve) => win.once("closed", () => resolve())) + } + } finally { + if (!win.isDestroyed()) win.destroy() + await new Promise((resolve) => server.close(() => resolve())) + app.quit() } -} finally { - if(!win.isDestroyed())win.destroy() - await new Promise(resolve => server.close(() => resolve())) - app.quit() -} } -run().then(() => app.exit(0), error => { console.error(error); app.exit(1) }) +run().then( + () => app.exit(0), + (error) => { + console.error(error) + app.exit(1) + }, +) diff --git a/issue58-native/native-scale-1.25.json b/issue58-native/native-scale-1.25.json index 0a3e1b3f30..a4c4343239 100644 --- a/issue58-native/native-scale-1.25.json +++ b/issue58-native/native-scale-1.25.json @@ -1226,4 +1226,4 @@ } ], "failures": [] -} \ No newline at end of file +} diff --git a/issue58-native/native-scale-1.json b/issue58-native/native-scale-1.json index adfbf3b1b8..fc2d204328 100644 --- a/issue58-native/native-scale-1.json +++ b/issue58-native/native-scale-1.json @@ -1226,4 +1226,4 @@ } ], "failures": [] -} \ No newline at end of file +} diff --git a/issue58-native/native-scale-2.json b/issue58-native/native-scale-2.json index c5cabe9a26..1f2b6fcad2 100644 --- a/issue58-native/native-scale-2.json +++ b/issue58-native/native-scale-2.json @@ -1226,4 +1226,4 @@ } ], "failures": [] -} \ No newline at end of file +} diff --git a/issue58-native/run-issue58.ts b/issue58-native/run-issue58.ts index 0da2870088..c88a89d675 100644 --- a/issue58-native/run-issue58.ts +++ b/issue58-native/run-issue58.ts @@ -3,18 +3,29 @@ import { tmpdir } from "node:os" import { join, resolve } from "node:path" import electron from "../../packages/desktop/node_modules/electron" const output = resolve("node_modules/.cache/cm-browser-native-ui/root-review/issue58-native") -const build = await Bun.build({entrypoints:["tmp/browser-implementation/issue58-native.ts"],target:"node",format:"cjs",external:["electron"]}) -if(!build.success) throw Error(build.logs.join("\n")) -for(const scale of process.argv.slice(2).length ? process.argv.slice(2) : ["1","1.25","2"]) { - const directory=await realpath(await mkdtemp(join(tmpdir(),"cm-browser-corners-"))) - const entry=join(directory,"corners.cjs") - await Bun.write(entry,build.outputs[0]) - const env={...process.env,CM_BROWSER_STATE_DIR:directory,CM_BROWSER_SMOKE_PROFILE:directory,CM_CORNER_OUTPUT:output,CM_CORNER_SCALE:scale} +const build = await Bun.build({ + entrypoints: ["tmp/browser-implementation/issue58-native.ts"], + target: "node", + format: "cjs", + external: ["electron"], +}) +if (!build.success) throw Error(build.logs.join("\n")) +for (const scale of process.argv.slice(2).length ? process.argv.slice(2) : ["1", "1.25", "2"]) { + const directory = await realpath(await mkdtemp(join(tmpdir(), "cm-browser-corners-"))) + const entry = join(directory, "corners.cjs") + await Bun.write(entry, build.outputs[0]) + const env = { + ...process.env, + CM_BROWSER_STATE_DIR: directory, + CM_BROWSER_SMOKE_PROFILE: directory, + CM_CORNER_OUTPUT: output, + CM_CORNER_SCALE: scale, + } delete env.ELECTRON_RUN_AS_NODE - const child=Bun.spawn([electron,entry],{env,stdout:"inherit",stderr:"inherit"}) - const timeout=process.env.CM_CORNER_HOLD==='1' ? undefined : setTimeout(()=>child.kill(),90000) - const code=await child.exited - if(timeout)clearTimeout(timeout) - console.log("Owned fixture",directory,"exited",code) - if(code!==0)throw Error("Native corner review failed") + const child = Bun.spawn([electron, entry], { env, stdout: "inherit", stderr: "inherit" }) + const timeout = process.env.CM_CORNER_HOLD === "1" ? undefined : setTimeout(() => child.kill(), 90000) + const code = await child.exited + if (timeout) clearTimeout(timeout) + console.log("Owned fixture", directory, "exited", code) + if (code !== 0) throw Error("Native corner review failed") } diff --git a/issue62-after/classic-comparison.json b/issue62-after/classic-comparison.json index 886677239f..28d9473b42 100644 --- a/issue62-after/classic-comparison.json +++ b/issue62-after/classic-comparison.json @@ -2,4 +2,4 @@ "compared": 76, "changed": [], "intentional": "RTL menus now align left at the user request" -} \ No newline at end of file +} diff --git a/issue62-after/interaction-verification.json b/issue62-after/interaction-verification.json index 6eddb5441d..f17d088492 100644 --- a/issue62-after/interaction-verification.json +++ b/issue62-after/interaction-verification.json @@ -3234,4 +3234,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-after/menu-verification.json b/issue62-after/menu-verification.json index 3530f2ac6e..90b3fc51d1 100644 --- a/issue62-after/menu-verification.json +++ b/issue62-after/menu-verification.json @@ -1218,4 +1218,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-after/metrics.json b/issue62-after/metrics.json index d309164ec0..57642ff9ac 100644 --- a/issue62-after/metrics.json +++ b/issue62-after/metrics.json @@ -4395,4 +4395,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-after/records-review.json b/issue62-after/records-review.json index 38f91b48e8..38024698e9 100644 --- a/issue62-after/records-review.json +++ b/issue62-after/records-review.json @@ -3634,4 +3634,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-after/tooltip-verification.json b/issue62-after/tooltip-verification.json index 295d5f350b..963ca62176 100644 --- a/issue62-after/tooltip-verification.json +++ b/issue62-after/tooltip-verification.json @@ -3866,4 +3866,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-before/menu-verification.json b/issue62-before/menu-verification.json index 3530f2ac6e..90b3fc51d1 100644 --- a/issue62-before/menu-verification.json +++ b/issue62-before/menu-verification.json @@ -1218,4 +1218,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-before/metrics.json b/issue62-before/metrics.json index ad21fb7683..34c0b0c446 100644 --- a/issue62-before/metrics.json +++ b/issue62-before/metrics.json @@ -4395,4 +4395,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/issue62-before/records-review.json b/issue62-before/records-review.json index 4f8fdb66ee..13ca4d5fb8 100644 --- a/issue62-before/records-review.json +++ b/issue62-before/records-review.json @@ -3634,4 +3634,4 @@ } ], "errors": [] -} \ No newline at end of file +} diff --git a/nix/hashes.json b/nix/hashes.json index 3672243020..618c7dc5f2 100644 --- a/nix/hashes.json +++ b/nix/hashes.json @@ -1,8 +1,7 @@ { "nodeModules": { - "x86_64-linux": "sha256-RIzpvDBR6GOfU2vjrtgP3LJ/j+gLxkMnJ9VE5Y65Pfo=", - "aarch64-linux": "sha256-seE7v8AqxWCiyxNARMiLJNB1MZv15OwEf6r21k68xqg=", - "aarch64-darwin": "sha256-rbyK+3qz9bGOxg3HlGW6yh3qeazCaxFcuPfdGbXHsIY=", - "x86_64-darwin": "sha256-chSE5WtSQ+qdbj5vTvGmr4rn9gk8eVp3pVeow4gVqYI=" + "x86_64-linux": "sha256-zg2CZvnRiM18TwjU8KHGHaQ5yXcBib3r01tsRF/Bkuo=", + "aarch64-linux": "sha256-JSnQrQqBFYoVo8o0LSLhcrIRmMypxR/rSD4jID84ybw=", + "aarch64-darwin": "sha256-UX9Yz/QkyF16hbXPmKVfWoXn83HRmA8GeszB5BQUUAo=" } } diff --git a/nix/node_modules.nix b/nix/node_modules.nix index e10e85d2fe..36cd8f23e8 100644 --- a/nix/node_modules.nix +++ b/nix/node_modules.nix @@ -80,6 +80,5 @@ stdenvNoCC.mkDerivation { "aarch64-linux" "x86_64-linux" "aarch64-darwin" - "x86_64-darwin" ]; } diff --git a/package.json b/package.json index 9f5750b5ca..f195e4f11c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "AI-powered development tool", "private": true, "type": "module", - "packageManager": "bun@1.3.14", + "packageManager": "bun@1.4.4", "scripts": { "dev": "bun run --cwd packages/opencode src/index.ts", "dev:desktop": "bun --cwd packages/desktop dev", @@ -35,7 +35,7 @@ "@effect/platform-node": "4.0.0-beta.83", "@effect/sql-sqlite-bun": "4.0.0-beta.83", "@npmcli/arborist": "9.4.0", - "@types/bun": "1.3.13", + "@types/bun": "1.4.3", "@types/cross-spawn": "6.0.6", "@octokit/rest": "22.0.0", "@hono/standard-validator": "0.2.0", @@ -137,12 +137,14 @@ "electron" ], "overrides": { + "node-abi": "4.40.0", "@ai-sdk/anthropic": "3.0.111", "@opentui/core": "catalog:", "@opentui/keymap": "catalog:", "@opentui/solid": "catalog:", "@types/bun": "catalog:", "@types/node": "catalog:", + "bun-types": "1.4.4", "open": "11.0.4" }, "patchedDependencies": { @@ -151,7 +153,7 @@ "@silvia-odwyer/photon-node@0.3.4": "patches/@silvia-odwyer%2Fphoton-node@0.3.4.patch", "@standard-community/standard-openapi@0.2.9": "patches/@standard-community%2Fstandard-openapi@0.2.9.patch", "solid-js@1.9.10": "patches/solid-js@1.9.10.patch", - "@ai-sdk/xai@3.0.102": "patches/@ai-sdk%2Fxai@3.0.102.patch", + "@ai-sdk/xai@3.0.139": "patches/@ai-sdk%2Fxai@3.0.139.patch", "@ai-sdk/mistral@3.0.51": "patches/@ai-sdk%2Fmistral@3.0.51.patch", "gcp-metadata@8.1.2": "patches/gcp-metadata@8.1.2.patch", "pacote@21.5.0": "patches/pacote@21.5.0.patch", diff --git a/packages/app/cookie-loader-prototype.html b/packages/app/cookie-loader-prototype.html index d7f688b688..dd51d063eb 100644 --- a/packages/app/cookie-loader-prototype.html +++ b/packages/app/cookie-loader-prototype.html @@ -16,93 +16,357 @@ --cookie: #edc38a; --duration: 4.4s; } - * { box-sizing: border-box; } - body { margin: 0; min-height: 100svh; } - main { width: min(880px, 100%); margin-inline: auto; padding: 36px 24px; } - header, footer, .controls, .details { display: flex; align-items: center; justify-content: space-between; gap: 20px; } - header { padding-block-end: 24px; border-block-end: 1px solid var(--line); } - .brand { font-size: 14px; font-weight: 650; letter-spacing: -.02em; } - .eyebrow, footer, .details { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); } - .eyebrow { letter-spacing: .08em; text-transform: uppercase; } - h1 { margin: 40px 0 8px; font-size: clamp(28px, 5vw, 40px); font-weight: 500; letter-spacing: -.05em; } - .intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; } - .stage { display: grid; place-items: center; min-height: 330px; overflow: hidden; } - .loading { display: flex; flex-direction: column; align-items: center; gap: 10px; } - .loader { display: block; width: 240px; height: 160px; overflow: hidden; color: var(--cookie); } - .loading-label { font-size: 13px; color: var(--muted); } - .details { padding-block: 16px; border-block: 1px solid var(--line); flex-wrap: wrap; } - .controls { padding-block: 24px; flex-wrap: wrap; } - .buttons, label { display: flex; align-items: center; gap: 10px; } - button, select { - font: inherit; font-size: 12px; color: inherit; background: transparent; - border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; cursor: pointer; - } - button:hover, select:hover { border-color: var(--muted); } - button:focus-visible, select:focus-visible { outline: 2px solid var(--cookie); outline-offset: 4px; } - label { font-size: 12px; color: var(--muted); } - #toggle { background: #f4eee5; color: #17191b; border-color: #f4eee5; min-width: 88px; } - footer { padding-block-start: 24px; line-height: 1.7; align-items: flex-start; } - .inline-example { display: flex; align-items: center; gap: 8px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 12px; } - .inline-example .loader { width: 42px; height: 28px; } - .cookie { transform-origin: 128px 128px; animation: munch var(--duration) linear infinite; } - .bite { opacity: 0; animation: bite var(--duration) steps(1, end) infinite; } - .bite-1 { animation-name: bite-one; } - .bite-2 { animation-name: bite-two; } - .bite-3 { animation-name: bite-three; } - .bite-4 { animation-name: bite-four; } - .crumbs { opacity: 0; animation: crumbs-one var(--duration) linear infinite; } - .crumbs-2 { animation-name: crumbs-two; } - .crumbs-3 { animation-name: crumbs-three; } - .crumbs-4 { animation-name: crumbs-four; } + * { + box-sizing: border-box; + } + body { + margin: 0; + min-height: 100svh; + } + main { + width: min(880px, 100%); + margin-inline: auto; + padding: 36px 24px; + } + header, + footer, + .controls, + .details { + display: flex; + align-items: center; + justify-content: space-between; + gap: 20px; + } + header { + padding-block-end: 24px; + border-block-end: 1px solid var(--line); + } + .brand { + font-size: 14px; + font-weight: 650; + letter-spacing: -0.02em; + } + .eyebrow, + footer, + .details { + font-family: ui-monospace, monospace; + font-size: 11px; + color: var(--muted); + } + .eyebrow { + letter-spacing: 0.08em; + text-transform: uppercase; + } + h1 { + margin: 40px 0 8px; + font-size: clamp(28px, 5vw, 40px); + font-weight: 500; + letter-spacing: -0.05em; + } + .intro { + margin: 0; + color: var(--muted); + font-size: 14px; + line-height: 1.6; + } + .stage { + display: grid; + place-items: center; + min-height: 330px; + overflow: hidden; + } + .loading { + display: flex; + flex-direction: column; + align-items: center; + gap: 10px; + } + .loader { + display: block; + width: 240px; + height: 160px; + overflow: hidden; + color: var(--cookie); + } + .loading-label { + font-size: 13px; + color: var(--muted); + } + .details { + padding-block: 16px; + border-block: 1px solid var(--line); + flex-wrap: wrap; + } + .controls { + padding-block: 24px; + flex-wrap: wrap; + } + .buttons, + label { + display: flex; + align-items: center; + gap: 10px; + } + button, + select { + font: inherit; + font-size: 12px; + color: inherit; + background: transparent; + border: 1px solid var(--line); + border-radius: 7px; + padding: 10px 14px; + cursor: pointer; + } + button:hover, + select:hover { + border-color: var(--muted); + } + button:focus-visible, + select:focus-visible { + outline: 2px solid var(--cookie); + outline-offset: 4px; + } + label { + font-size: 12px; + color: var(--muted); + } + #toggle { + background: #f4eee5; + color: #17191b; + border-color: #f4eee5; + min-width: 88px; + } + footer { + padding-block-start: 24px; + line-height: 1.7; + align-items: flex-start; + } + .inline-example { + display: flex; + align-items: center; + gap: 8px; + font-family: ui-sans-serif, system-ui, sans-serif; + font-size: 12px; + } + .inline-example .loader { + width: 42px; + height: 28px; + } + .cookie { + transform-origin: 128px 128px; + animation: munch var(--duration) linear infinite; + } + .bite { + opacity: 0; + animation: bite var(--duration) steps(1, end) infinite; + } + .bite-1 { + animation-name: bite-one; + } + .bite-2 { + animation-name: bite-two; + } + .bite-3 { + animation-name: bite-three; + } + .bite-4 { + animation-name: bite-four; + } + .crumbs { + opacity: 0; + animation: crumbs-one var(--duration) linear infinite; + } + .crumbs-2 { + animation-name: crumbs-two; + } + .crumbs-3 { + animation-name: crumbs-three; + } + .crumbs-4 { + animation-name: crumbs-four; + } @keyframes munch { - 0% { transform: translateX(290px) rotate(28deg); opacity: 0; } - 2% { opacity: 1; } - 12% { transform: translateX(-7px) rotate(-4deg); } - 17%, 23.9% { transform: translateX(0) rotate(0); opacity: 1; } - 24% { transform: translate(-5px, 3px) rotate(-6deg) scale(.94, 1.04); } - 29%, 39.9% { transform: translate(0) rotate(0); } - 40% { transform: translate(4px, 4px) rotate(5deg) scale(.95, 1.03); } - 45%, 55.9% { transform: translate(0) rotate(0); } - 56% { transform: translate(4px, -3px) rotate(7deg) scale(.94, 1.04); } - 61%, 71.9% { transform: translate(0) rotate(0); opacity: 1; } - 72%, 100% { transform: translate(0) rotate(0); opacity: 0; } - } - @keyframes bite-one { 0% { opacity: 0; } 24%, 100% { opacity: 1; } } - @keyframes bite-two { 0% { opacity: 0; } 40%, 100% { opacity: 1; } } - @keyframes bite-three { 0% { opacity: 0; } 56%, 100% { opacity: 1; } } - @keyframes bite-four { 0% { opacity: 0; } 72%, 100% { opacity: 1; } } + 0% { + transform: translateX(290px) rotate(28deg); + opacity: 0; + } + 2% { + opacity: 1; + } + 12% { + transform: translateX(-7px) rotate(-4deg); + } + 17%, + 23.9% { + transform: translateX(0) rotate(0); + opacity: 1; + } + 24% { + transform: translate(-5px, 3px) rotate(-6deg) scale(0.94, 1.04); + } + 29%, + 39.9% { + transform: translate(0) rotate(0); + } + 40% { + transform: translate(4px, 4px) rotate(5deg) scale(0.95, 1.03); + } + 45%, + 55.9% { + transform: translate(0) rotate(0); + } + 56% { + transform: translate(4px, -3px) rotate(7deg) scale(0.94, 1.04); + } + 61%, + 71.9% { + transform: translate(0) rotate(0); + opacity: 1; + } + 72%, + 100% { + transform: translate(0) rotate(0); + opacity: 0; + } + } + @keyframes bite-one { + 0% { + opacity: 0; + } + 24%, + 100% { + opacity: 1; + } + } + @keyframes bite-two { + 0% { + opacity: 0; + } + 40%, + 100% { + opacity: 1; + } + } + @keyframes bite-three { + 0% { + opacity: 0; + } + 56%, + 100% { + opacity: 1; + } + } + @keyframes bite-four { + 0% { + opacity: 0; + } + 72%, + 100% { + opacity: 1; + } + } @keyframes crumbs-one { - 0%, 23.99% { opacity: 0; transform: translate(0, 0); } - 24% { opacity: 1; transform: translate(0, 0); } - 29% { opacity: .9; transform: translate(13px, -8px); } - 38%, 100% { opacity: 0; transform: translate(27px, 42px); } + 0%, + 23.99% { + opacity: 0; + transform: translate(0, 0); + } + 24% { + opacity: 1; + transform: translate(0, 0); + } + 29% { + opacity: 0.9; + transform: translate(13px, -8px); + } + 38%, + 100% { + opacity: 0; + transform: translate(27px, 42px); + } } @keyframes crumbs-two { - 0%, 39.99% { opacity: 0; transform: translate(0, 0); } - 40% { opacity: 1; transform: translate(0, 0); } - 45% { opacity: .9; transform: translate(-12px, -14px); } - 54%, 100% { opacity: 0; transform: translate(-25px, 32px); } + 0%, + 39.99% { + opacity: 0; + transform: translate(0, 0); + } + 40% { + opacity: 1; + transform: translate(0, 0); + } + 45% { + opacity: 0.9; + transform: translate(-12px, -14px); + } + 54%, + 100% { + opacity: 0; + transform: translate(-25px, 32px); + } } @keyframes crumbs-three { - 0%, 55.99% { opacity: 0; transform: translate(0, 0); } - 56% { opacity: 1; transform: translate(0, 0); } - 61% { opacity: .9; transform: translate(-16px, -5px); } - 70%, 100% { opacity: 0; transform: translate(-28px, 43px); } + 0%, + 55.99% { + opacity: 0; + transform: translate(0, 0); + } + 56% { + opacity: 1; + transform: translate(0, 0); + } + 61% { + opacity: 0.9; + transform: translate(-16px, -5px); + } + 70%, + 100% { + opacity: 0; + transform: translate(-28px, 43px); + } } @keyframes crumbs-four { - 0%, 71.99% { opacity: 0; transform: translate(0, 0); } - 72% { opacity: 1; transform: translate(0, 0); } - 77% { opacity: .9; transform: translate(8px, -12px); } - 88%, 100% { opacity: 0; transform: translate(18px, 44px); } + 0%, + 71.99% { + opacity: 0; + transform: translate(0, 0); + } + 72% { + opacity: 1; + transform: translate(0, 0); + } + 77% { + opacity: 0.9; + transform: translate(8px, -12px); + } + 88%, + 100% { + opacity: 0; + transform: translate(18px, 44px); + } } @media (max-width: 480px) { - main { padding: 24px 20px; } - .stage { min-height: 290px; } - footer { flex-direction: column; } + main { + padding: 24px 20px; + } + .stage { + min-height: 290px; + } + footer { + flex-direction: column; + } } @media (prefers-reduced-motion: reduce) { - .cookie, .bite, .crumbs { animation: none; } - .cookie { transform: none; opacity: 1; } + .cookie, + .bite, + .crumbs { + animation: none; + } + .cookie { + transform: none; + opacity: 1; + } } @@ -118,7 +382,15 @@

One more cookie.

One more cookie.

- + - - - - + + + + + + + + + + + + + + + + + + + + + Loading... @@ -164,13 +456,24 @@

One more cookie.

-
- Standalone prototype. App loaders are unchanged.
SVG masks + CSS animation. No dependencies.
-
Working...
+ Standalone prototype. App loaders are unchanged.
SVG masks + CSS animation. No dependencies.
+
+ Working... +
-`; +` } diff --git a/packages/desktop/src/main/wpp-bridge/proxy/streamAdapter.mjs b/packages/desktop/src/main/wpp-bridge/proxy/streamAdapter.mjs index 0f106d127a..44d2ff79aa 100644 --- a/packages/desktop/src/main/wpp-bridge/proxy/streamAdapter.mjs +++ b/packages/desktop/src/main/wpp-bridge/proxy/streamAdapter.mjs @@ -1,17 +1,17 @@ -import { estimateTokens } from "./tokenEstimate.mjs"; +import { estimateTokens } from "./tokenEstimate.mjs" export function createChatCompletionResponse({ id, model, created, message, finishReason, usage }) { const choice = { index: 0, message: { role: "assistant", - content: message.content + content: message.content, }, - finish_reason: finishReason - }; + finish_reason: finishReason, + } if (message.tool_calls) { - choice.message.tool_calls = message.tool_calls; + choice.message.tool_calls = message.tool_calls } return { @@ -20,60 +20,60 @@ export function createChatCompletionResponse({ id, model, created, message, fini created, model, choices: [choice], - usage: normalizeUsage(usage, message) - }; + usage: normalizeUsage(usage, message), + } } -export function openChatCompletionStream(response, { - id, - model, - created -}) { +export function openChatCompletionStream(response, { id, model, created }) { response.writeHead(200, { "content-type": "text/event-stream; charset=utf-8", "cache-control": "no-cache, no-transform", connection: "keep-alive", - "x-accel-buffering": "no" - }); + "x-accel-buffering": "no", + }) - const base = { id, object: "chat.completion.chunk", created, model }; + const base = { id, object: "chat.completion.chunk", created, model } - response.write(formatSse({ - ...base, - choices: [{ index: 0, delta: { role: "assistant" }, finish_reason: null }] - })); + response.write( + formatSse({ + ...base, + choices: [{ index: 0, delta: { role: "assistant" }, finish_reason: null }], + }), + ) - return base; + return base } // Build the per-chunk envelope shared by every SSE frame for a single completion stream. export function streamChunkBase({ id, model, created }) { - return { id, object: "chat.completion.chunk", created, model }; + return { id, object: "chat.completion.chunk", created, model } } // Write a single content delta chunk verbatim (no word-splitting). Used by the live streaming // path, which already receives incremental prose slices from the StreamGate. Empty deltas are // skipped so we never emit a no-op chunk. Returns the number of chars written. export function writeContentDelta(response, base, text) { - const delta = typeof text === "string" ? text : ""; + const delta = typeof text === "string" ? text : "" if (!delta) { - return 0; + return 0 } - response.write(formatSse({ - ...base, - choices: [{ index: 0, delta: { content: delta }, finish_reason: null }] - })); + response.write( + formatSse({ + ...base, + choices: [{ index: 0, delta: { content: delta }, finish_reason: null }], + }), + ) - return delta.length; + return delta.length } // Emit a content body by word-splitting it into multiple deltas (the legacy non-live path used // for title/error/fallback turns where the full text is already known). export function writeContentBody(response, base, content) { for (const chunk of splitForStreaming(content || "")) { - writeContentDelta(response, base, chunk); + writeContentDelta(response, base, chunk) } } @@ -81,96 +81,104 @@ export function writeContentBody(response, base, content) { // then streamed argument chunks per call. export function writeToolCallChunks(response, base, tool_calls) { if (!Array.isArray(tool_calls) || tool_calls.length === 0) { - return; + return } for (const [i, tc] of tool_calls.entries()) { - response.write(formatSse({ - ...base, - choices: [{ - index: 0, - delta: { - tool_calls: [{ - index: i, - id: tc.id, - type: "function", - function: { name: tc.function.name, arguments: "" } - }] - }, - finish_reason: null - }] - })); + response.write( + formatSse({ + ...base, + choices: [ + { + index: 0, + delta: { + tool_calls: [ + { + index: i, + id: tc.id, + type: "function", + function: { name: tc.function.name, arguments: "" }, + }, + ], + }, + finish_reason: null, + }, + ], + }), + ) } for (const [i, tc] of tool_calls.entries()) { for (const chunk of splitForStreaming(tc.function.arguments || "{}")) { - response.write(formatSse({ - ...base, - choices: [{ - index: 0, - delta: { tool_calls: [{ index: i, function: { arguments: chunk } }] }, - finish_reason: null - }] - })); + response.write( + formatSse({ + ...base, + choices: [ + { + index: 0, + delta: { tool_calls: [{ index: i, function: { arguments: chunk } }] }, + finish_reason: null, + }, + ], + }), + ) } } } // Write the terminal frames of a completion stream: the finish_reason chunk, an optional usage // chunk, the [DONE] sentinel, and end the response. Safe to call exactly once per stream. -export function finishChatCompletion(response, base, { - finishReason, - usage, - includeUsage = false, - content, - tool_calls -}) { - response.write(formatSse({ - ...base, - choices: [{ index: 0, delta: {}, finish_reason: finishReason }] - })); +export function finishChatCompletion( + response, + base, + { finishReason, usage, includeUsage = false, content, tool_calls }, +) { + response.write( + formatSse({ + ...base, + choices: [{ index: 0, delta: {}, finish_reason: finishReason }], + }), + ) if (includeUsage) { - response.write(formatSse({ - ...base, - choices: [], - usage: normalizeUsage(usage, { content, tool_calls }) - })); + response.write( + formatSse({ + ...base, + choices: [], + usage: normalizeUsage(usage, { content, tool_calls }), + }), + ) } - response.write("data: [DONE]\n\n"); - response.end(); + response.write("data: [DONE]\n\n") + response.end() } export function writeChatCompletionError(response, error) { - const type = error?.type || "o1_code_proxy_error"; - response.write(formatSse({ - error: { - message: error?.message || "CookieMonster bridge request failed.", - type, - code: type - } - })); - response.write("data: [DONE]\n\n"); - response.end(); + const type = error?.type || "o1_code_proxy_error" + response.write( + formatSse({ + error: { + message: error?.message || "CookieMonster bridge request failed.", + type, + code: type, + }, + }), + ) + response.write("data: [DONE]\n\n") + response.end() } -export function writeChatCompletionBody(response, { - id, - model, - created, - content, - tool_calls, - finishReason, - usage, - includeUsage = false -}) { - const base = streamChunkBase({ id, model, created }); +export function writeChatCompletionBody( + response, + { id, model, created, content, tool_calls, finishReason, usage, includeUsage = false }, +) { + const base = streamChunkBase({ id, model, created }) if (Array.isArray(tool_calls) && tool_calls.length > 0) { - writeToolCallChunks(response, base, tool_calls); + writeToolCallChunks(response, base, tool_calls) } else { - writeContentBody(response, base, content); + writeContentBody(response, base, content) } finishChatCompletion(response, base, { @@ -178,55 +186,55 @@ export function writeChatCompletionBody(response, { usage, includeUsage, content, - tool_calls - }); + tool_calls, + }) } export async function writeChatCompletionStream(response, options) { - openChatCompletionStream(response, options); - writeChatCompletionBody(response, options); + openChatCompletionStream(response, options) + writeChatCompletionBody(response, options) } function splitForStreaming(text) { - const matches = text.match(/\S+\s*/g); - return matches || (text ? [text] : []); + const matches = text.match(/\S+\s*/g) + return matches || (text ? [text] : []) } function formatSse(payload) { - return `data: ${JSON.stringify(payload)}\n\n`; + return `data: ${JSON.stringify(payload)}\n\n` } function normalizeUsage(usage, message = {}) { if (usage && Number.isFinite(usage.prompt_tokens) && Number.isFinite(usage.completion_tokens)) { - const promptTokens = Math.max(0, Math.ceil(usage.prompt_tokens)); - const completionTokens = Math.max(0, Math.ceil(usage.completion_tokens)); + const promptTokens = Math.max(0, Math.ceil(usage.prompt_tokens)) + const completionTokens = Math.max(0, Math.ceil(usage.completion_tokens)) const normalized = { prompt_tokens: promptTokens, completion_tokens: completionTokens, - total_tokens: promptTokens + completionTokens - }; - const cachedTokens = usage.prompt_tokens_details?.cached_tokens; - const reasoningTokens = usage.completion_tokens_details?.reasoning_tokens; + total_tokens: promptTokens + completionTokens, + } + const cachedTokens = usage.prompt_tokens_details?.cached_tokens + const reasoningTokens = usage.completion_tokens_details?.reasoning_tokens if (Number.isFinite(cachedTokens) && cachedTokens >= 0) { - normalized.prompt_tokens_details = { cached_tokens: Math.min(Math.ceil(cachedTokens), promptTokens) }; + normalized.prompt_tokens_details = { cached_tokens: Math.min(Math.ceil(cachedTokens), promptTokens) } } if (Number.isFinite(reasoningTokens) && reasoningTokens >= 0) { normalized.completion_tokens_details = { - reasoning_tokens: Math.min(Math.ceil(reasoningTokens), completionTokens) - }; + reasoning_tokens: Math.min(Math.ceil(reasoningTokens), completionTokens), + } } - return normalized; + return normalized } - const completionTokens = estimateTokens(message.content || toolCallsForUsage(message.tool_calls)); + const completionTokens = estimateTokens(message.content || toolCallsForUsage(message.tool_calls)) return { prompt_tokens: 0, completion_tokens: completionTokens, - total_tokens: completionTokens - }; + total_tokens: completionTokens, + } } function toolCallsForUsage(toolCalls) { - return Array.isArray(toolCalls) && toolCalls.length > 0 ? JSON.stringify(toolCalls) : ""; + return Array.isArray(toolCalls) && toolCalls.length > 0 ? JSON.stringify(toolCalls) : "" } diff --git a/packages/desktop/src/main/wpp-bridge/proxy/streamGate.mjs b/packages/desktop/src/main/wpp-bridge/proxy/streamGate.mjs index 50b85f4fd4..8ef6f59085 100644 --- a/packages/desktop/src/main/wpp-bridge/proxy/streamGate.mjs +++ b/packages/desktop/src/main/wpp-bridge/proxy/streamGate.mjs @@ -22,36 +22,36 @@ // finalize). This is the only added latency on a prose turn: the first ~24 non-whitespace chars // are buffered before prose starts flowing. Large enough to contain a leading "" // (16 chars) or " this.#emittedLength ? content.slice(this.#emittedLength) : ""; + const content = typeof finalContent === "string" ? finalContent : "" + return content.length > this.#emittedLength ? content.slice(this.#emittedLength) : "" } #decide(text) { - this.state = leadingLooksLikeToolCall(text) ? "suppressed" : "prose"; + this.state = leadingLooksLikeToolCall(text) ? "suppressed" : "prose" } #takeProseDelta() { if (this.state !== "prose") { - return ""; + return "" } // A turn can lead with prose and THEN emit a tool call ("I'll search…" → {"type":"tool_call"} // → trailing refusal). The leading check can't catch that, so cap live prose at the first // tool-call marker and suppress everything after it — the call is delivered structurally at // finalize, never as raw text. - const markerIndex = firstToolCallMarker(this.cumulative); + const markerIndex = firstToolCallMarker(this.cumulative) // Otherwise stop short of a trailing fragment that could be the start of a marker split across // frames (e.g. cumulative ending in "{\"ty" or "= 0 - ? markerIndex - : this.cumulative.length - trailingMarkerPrefixLength(this.cumulative); + let emitEnd = markerIndex >= 0 ? markerIndex : this.cumulative.length - trailingMarkerPrefixLength(this.cumulative) // Tool-bearing turns need one reversible sentence so a terminal no-tool answer can be discarded // after the final structural check without flashing in the UI. Release prose only once the next // sentence begins; trailingDiff() flushes the final held sentence for an ordinary response. if (this.sentenceQuarantine) { - emitEnd = sentenceReleaseEnd(this.cumulative, emitEnd); + emitEnd = sentenceReleaseEnd(this.cumulative, emitEnd) } - if (emitEnd <= this.#emittedLength) { if (markerIndex >= 0) { - this.state = "suppressed"; + this.state = "suppressed" } - return ""; + return "" } - const delta = this.cumulative.slice(this.#emittedLength, emitEnd); - this.#emittedLength = emitEnd; + const delta = this.cumulative.slice(this.#emittedLength, emitEnd) + this.#emittedLength = emitEnd if (markerIndex >= 0) { - this.state = "suppressed"; + this.state = "suppressed" } - return delta; + return delta } } // Return the end of the latest completed sentence that is followed by non-whitespace content. // The current sentence, including a terminal sentence with only trailing whitespace, remains held. function sentenceReleaseEnd(text, maxEnd) { - const value = String(text || ""); - const limit = Math.max(0, maxEnd); - const boundary = /(?:[.!?](?:["')\]]*)?|[\r\n]+)[ \t\r\n]+(?=\S)/g; - let releaseEnd = 0; - let match; + const value = String(text || "") + const limit = Math.max(0, maxEnd) + const boundary = /(?:[.!?](?:["')\]]*)?|[\r\n]+)[ \t\r\n]+(?=\S)/g + let releaseEnd = 0 + let match while ((match = boundary.exec(value)) !== null) { - const end = match.index + match[0].length; - if (end > limit) break; - releaseEnd = end; + const end = match.index + match[0].length + if (end > limit) break + releaseEnd = end } - return releaseEnd; + return releaseEnd } // Literal prefixes the tool-call markers begin with, used both to locate a complete marker and to // hold back a partial one at a frame boundary. Kept in one place so the live gate and // leadingLooksLikeToolCall can't drift apart on what counts as a tool call. -const TOOL_CALL_MARKER_PREFIXES = [" 0; k -= 1) { if (value.endsWith(prefix.slice(0, k))) { - longest = Math.max(longest, k); - break; + longest = Math.max(longest, k) + break } } } - return longest; + return longest } // True when the LEADING non-whitespace content looks like the start of a tool call. Mirrors the @@ -180,50 +177,50 @@ function trailingMarkerPrefixLength(text) { // a potential tool call — prose almost never starts with a brace, and if it turns out to be // content the finalize path still emits it as a trailing diff (just not streamed live). export function leadingLooksLikeToolCall(text) { - const trimmed = String(text || "").trimStart(); + const trimmed = String(text || "").trimStart() if (!trimmed) { - return false; + return false } - const candidate = stripLeadingCodeFence(trimmed).trimStart(); + const candidate = stripLeadingCodeFence(trimmed).trimStart() if (!candidate) { // Nothing but an opening code fence so far — undecidable; treat as potential tool call so we // don't stream a fence that may wrap tool-call XML. Resolves once more text arrives. - return true; + return true } if (/^ { expect(gate.update("I am checking the workspace.").delta).toBe("") expect(gate.update("I am checking the workspace. The diff").delta).toBe("I am checking the workspace. ") expect(gate.update("I am checking the workspace. The diff is ready. Summary").delta).toBe("The diff is ready. ") - expect(gate.trailingDiff("I am checking the workspace. The diff is ready. Summary follows.")).toBe("Summary follows.") + expect(gate.trailingDiff("I am checking the workspace. The diff is ready. Summary follows.")).toBe( + "Summary follows.", + ) }) - test("continues to suppress a raw tool call after streamed commentary", () => { const gate = new StreamGate({ sentenceQuarantine: true }) - const text = "I will inspect the tree.\n" + const text = 'I will inspect the tree.\n' expect(gate.update(text).delta).toBe("I will inspect the tree.\n") expect(gate.state).toBe("suppressed") diff --git a/packages/desktop/src/main/wpp-bridge/proxy/tokenEstimate.mjs b/packages/desktop/src/main/wpp-bridge/proxy/tokenEstimate.mjs index 1c8addeaf9..3c22f4dd7e 100644 --- a/packages/desktop/src/main/wpp-bridge/proxy/tokenEstimate.mjs +++ b/packages/desktop/src/main/wpp-bridge/proxy/tokenEstimate.mjs @@ -16,12 +16,12 @@ // NOTE: effort/reasoning level (High/Medium/Low) and prior-turn thinking blocks are OUTPUT-side // concerns and are intentionally NOT modeled here — they don't change how the input text // tokenizes, and the context-window gauge only cares about input size. -export const CHARS_PER_TOKEN = 3; +export const CHARS_PER_TOKEN = 3 // Flat per-image FALLBACK cost, used only when we can't read an image's pixel dimensions from // its header bytes (see src/imageDimensions.mjs). When dimensions ARE available we compute the // real visual-token cost instead (see below). Kept near a typical full-size image's cost. -export const IMAGE_TOKEN_COST = 1500; +export const IMAGE_TOKEN_COST = 1500 // Anthropic counts images in "visual tokens": one per 28x28 px patch, after resizing the image // to fit the model's native resolution. Opus 4.8 (the only model O1-Code serves today) is in @@ -29,65 +29,67 @@ export const IMAGE_TOKEN_COST = 1500; // tokens per image. These constants + the resize/patch math below mirror Anthropic's published // reference implementation in the vision docs. To add another model era later, thread different // limits through resizedImageSize/estimateImageTokensFromDimensions. -const IMAGE_PATCH_SIZE = 28; -const IMAGE_MAX_EDGE = 2576; -const IMAGE_MAX_TOKENS = 4784; +const IMAGE_PATCH_SIZE = 28 +const IMAGE_MAX_EDGE = 2576 +const IMAGE_MAX_TOKENS = 4784 export function estimateTokens(value) { - return Math.ceil(String(value || "").length / CHARS_PER_TOKEN); + return Math.ceil(String(value || "").length / CHARS_PER_TOKEN) } // Visual-token cost of an image at a given pixel size: one token per 28x28 patch. export function countImageTokens(width, height) { - return Math.ceil(width / IMAGE_PATCH_SIZE) * Math.ceil(height / IMAGE_PATCH_SIZE); + return Math.ceil(width / IMAGE_PATCH_SIZE) * Math.ceil(height / IMAGE_PATCH_SIZE) } function imageFits(width, height, maxEdge, maxTokens) { - return Math.ceil(width / IMAGE_PATCH_SIZE) * IMAGE_PATCH_SIZE <= maxEdge - && Math.ceil(height / IMAGE_PATCH_SIZE) * IMAGE_PATCH_SIZE <= maxEdge - && countImageTokens(width, height) <= maxTokens; + return ( + Math.ceil(width / IMAGE_PATCH_SIZE) * IMAGE_PATCH_SIZE <= maxEdge && + Math.ceil(height / IMAGE_PATCH_SIZE) * IMAGE_PATCH_SIZE <= maxEdge && + countImageTokens(width, height) <= maxTokens + ) } // The size Claude resizes an image to before padding: the largest aspect-preserving size that // satisfies both the edge limit and the visual-token budget. Mirrors the docs' binary search. export function resizedImageSize(width, height, maxEdge = IMAGE_MAX_EDGE, maxTokens = IMAGE_MAX_TOKENS) { if (imageFits(width, height, maxEdge, maxTokens)) { - return { width, height }; + return { width, height } } if (height > width) { - const swapped = resizedImageSize(height, width, maxEdge, maxTokens); - return { width: swapped.height, height: swapped.width }; + const swapped = resizedImageSize(height, width, maxEdge, maxTokens) + return { width: swapped.height, height: swapped.width } } - const aspectRatio = width / height; - let lo = 1; // always fits - let hi = width; // never fits + const aspectRatio = width / height + let lo = 1 // always fits + let hi = width // never fits while (lo + 1 < hi) { - const mid = Math.floor((lo + hi) / 2); + const mid = Math.floor((lo + hi) / 2) if (imageFits(mid, Math.max(Math.round(mid / aspectRatio), 1), maxEdge, maxTokens)) { - lo = mid; + lo = mid } else { - hi = mid; + hi = mid } } - return { width: lo, height: Math.max(Math.round(lo / aspectRatio), 1) }; + return { width: lo, height: Math.max(Math.round(lo / aspectRatio), 1) } } // Accurate per-image visual-token cost from pixel dimensions, or null when dimensions are // missing/invalid (caller falls back to IMAGE_TOKEN_COST). export function estimateImageTokensFromDimensions(width, height) { - const w = Number(width); - const h = Number(height); + const w = Number(width) + const h = Number(height) if (!Number.isFinite(w) || !Number.isFinite(h) || w <= 0 || h <= 0) { - return null; + return null } - const resized = resizedImageSize(w, h); - return countImageTokens(resized.width, resized.height); + const resized = resizedImageSize(w, h) + return countImageTokens(resized.width, resized.height) } // Sum the visual-token cost across image inputs. Each image uses its real dimension-derived cost @@ -95,13 +97,13 @@ export function estimateImageTokensFromDimensions(width, height) { // array of image objects ({ width, height }); a bare number is treated as a dimensionless count. export function estimateImageTokens(images = []) { if (typeof images === "number") { - return Math.max(0, images) * IMAGE_TOKEN_COST; + return Math.max(0, images) * IMAGE_TOKEN_COST } - const list = Array.isArray(images) ? images : []; + const list = Array.isArray(images) ? images : [] return list.reduce((total, image) => { - const fromDimensions = estimateImageTokensFromDimensions(image?.width, image?.height); - return total + (fromDimensions == null ? IMAGE_TOKEN_COST : fromDimensions); - }, 0); + const fromDimensions = estimateImageTokensFromDimensions(image?.width, image?.height) + return total + (fromDimensions == null ? IMAGE_TOKEN_COST : fromDimensions) + }, 0) } diff --git a/packages/desktop/src/main/wpp-bridge/proxy/toolArguments.mjs b/packages/desktop/src/main/wpp-bridge/proxy/toolArguments.mjs index 7d30b3ee19..a0db495e4a 100644 --- a/packages/desktop/src/main/wpp-bridge/proxy/toolArguments.mjs +++ b/packages/desktop/src/main/wpp-bridge/proxy/toolArguments.mjs @@ -5,20 +5,20 @@ export function parseToolArguments(argumentsValue) { if (typeof argumentsValue === "string") { if (!argumentsValue.trim()) { - return {}; + return {} } try { - const parsed = JSON.parse(argumentsValue); - return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {}; + const parsed = JSON.parse(argumentsValue) + return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {} } catch { - return {}; + return {} } } if (argumentsValue && typeof argumentsValue === "object" && !Array.isArray(argumentsValue)) { - return argumentsValue; + return argumentsValue } - return {}; + return {} } diff --git a/packages/desktop/src/main/wpp-bridge/proxy/toolCallNormalizer.mjs b/packages/desktop/src/main/wpp-bridge/proxy/toolCallNormalizer.mjs index 1096d36ecd..ffdc273964 100644 --- a/packages/desktop/src/main/wpp-bridge/proxy/toolCallNormalizer.mjs +++ b/packages/desktop/src/main/wpp-bridge/proxy/toolCallNormalizer.mjs @@ -1,33 +1,33 @@ -import { looksLikeIncompleteAnthropicToolCall } from "./anthropicToolFormat.mjs"; +import { looksLikeIncompleteAnthropicToolCall } from "./anthropicToolFormat.mjs" export function chooseAssistantResponse(finalText, toolCallParts, alternateAssistantTexts = []) { - const fromText = normalizeAssistantMessage(finalText); - const fromParts = normalizeFromToolCallParts(toolCallParts); + const fromText = normalizeAssistantMessage(finalText) + const fromParts = normalizeFromToolCallParts(toolCallParts) if (fromText?.finish_reason === "tool_calls" && fromText.tool_calls?.length) { - return fromText; + return fromText } if (fromParts?.tool_calls?.length) { - return withPreamble(fromParts, finalText); + return withPreamble(fromParts, finalText) } const fromAlternate = alternateAssistantTexts .map((content) => normalizeAssistantMessage(content)) - .find((response) => response?.finish_reason === "tool_calls" && response.tool_calls?.length); + .find((response) => response?.finish_reason === "tool_calls" && response.tool_calls?.length) if (fromAlternate) { - return withPreamble(fromAlternate, finalText); + return withPreamble(fromAlternate, finalText) } - return fromText; + return fromText } export function normalizeFromToolCallParts(toolCallParts) { - const parts = Object.values(toolCallParts || {}).filter((p) => p?.name); + const parts = Object.values(toolCallParts || {}).filter((p) => p?.name) if (parts.length === 0) { - return null; + return null } const tool_calls = parts.map((part) => ({ @@ -35,40 +35,38 @@ export function normalizeFromToolCallParts(toolCallParts) { type: "function", function: { name: part.name, - arguments: part.arguments || "{}" - } - })); + arguments: part.arguments || "{}", + }, + })) return { content: null, tool_calls, - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } export function normalizeAssistantMessage(content) { - const unwrappedContent = unwrapSingleCodeFence(content); - const extractionContent = unwrappedContent === content - ? removeCodeFencedBlocks(content) - : unwrappedContent; + const unwrappedContent = unwrapSingleCodeFence(content) + const extractionContent = unwrappedContent === content ? removeCodeFencedBlocks(content) : unwrappedContent // A real XML tool call is emitted bare (the system prompt forbids fencing it), so parse it from // the RAW text starting at the first UNFENCED /. This keeps code fences // INSIDE a parameter value intact — stripping them (removeCodeFencedBlocks) decapitates the // closing when the model writes a markdown/code file, dropping the `content` arg. // A fenced *example* has its marker inside a fence, so it isn't found here and stays inert. - let xmlCalls = null; - let xmlPreamble = null; - let incompleteXml = false; + let xmlCalls = null + let xmlPreamble = null + let incompleteXml = false if (unwrappedContent !== content) { - xmlCalls = parseAnthropicXmlToolCalls(unwrappedContent); + xmlCalls = parseAnthropicXmlToolCalls(unwrappedContent) } else { - const start = unfencedToolCallStart(content); + const start = unfencedToolCallStart(content) if (start >= 0) { - const xmlContent = content.slice(start); - xmlCalls = parseAnthropicXmlToolCalls(xmlContent); - xmlPreamble = content.slice(0, start).trimEnd() || null; - incompleteXml = !xmlCalls && looksLikeIncompleteAnthropicToolCall(xmlContent); + const xmlContent = content.slice(start) + xmlCalls = parseAnthropicXmlToolCalls(xmlContent) + xmlPreamble = content.slice(0, start).trimEnd() || null + incompleteXml = !xmlCalls && looksLikeIncompleteAnthropicToolCall(xmlContent) } } @@ -80,79 +78,78 @@ export function normalizeAssistantMessage(content) { type: "function", function: { name: call.name, - arguments: JSON.stringify(call.args || {}) - } + arguments: JSON.stringify(call.args || {}), + }, })), - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } if (incompleteXml) { - const error = new Error("The WPP agent returned an incomplete XML tool call."); - error.statusCode = 502; - error.type = "o1_code_incomplete_tool_call"; - throw error; + const error = new Error("The WPP agent returned an incomplete XML tool call.") + error.statusCode = 502 + error.type = "o1_code_incomplete_tool_call" + throw error } - const jsonToolCalls = parseTrailingToolCallJsons(extractionContent); + const jsonToolCalls = parseTrailingToolCallJsons(extractionContent) if (jsonToolCalls?.length) { return { content: null, tool_calls: toolCallsFromJsonCalls(dedupeToolCalls(jsonToolCalls)), - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } // A model may emit several calls as one trailing JSON array ([{...},{...}]) rather than // back-to-back objects; accept that shape too. - const arrayToolCalls = parseTrailingToolCallArray(extractionContent); + const arrayToolCalls = parseTrailingToolCallArray(extractionContent) if (arrayToolCalls?.length) { return { content: null, tool_calls: toolCallsFromJsonCalls(dedupeToolCalls(arrayToolCalls)), - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } - const leadingJsonToolCall = parseLeadingToolCallJson(extractionContent); + const leadingJsonToolCall = parseLeadingToolCallJson(extractionContent) if (leadingJsonToolCall) { return { content: null, tool_calls: toolCallsFromJsonCalls([leadingJsonToolCall]), - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } - const embeddedJsonToolCalls = parseEmbeddedToolCallJsons(extractionContent); + const embeddedJsonToolCalls = parseEmbeddedToolCallJsons(extractionContent) if (embeddedJsonToolCalls?.length) { return { content: null, tool_calls: toolCallsFromJsonCalls(dedupeToolCalls(embeddedJsonToolCalls)), - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } - const parsed = parseDelegatedAgentJson(extractionContent) - || parseStrictJson(unwrappedContent); + const parsed = parseDelegatedAgentJson(extractionContent) || parseStrictJson(unwrappedContent) if (!parsed) { return { content, tool_calls: undefined, - finish_reason: "stop" - }; + finish_reason: "stop", + } } if (parsed.type === "final") { return { content: parsed.message || "", tool_calls: undefined, - finish_reason: "stop" - }; + finish_reason: "stop", + } } if (parsed.type === "tool_call" && parsed.tool) { @@ -164,29 +161,29 @@ export function normalizeAssistantMessage(content) { type: "function", function: { name: parsed.tool, - arguments: JSON.stringify(parsed.args || {}) - } - } + arguments: JSON.stringify(parsed.args || {}), + }, + }, ], - finish_reason: "tool_calls" - }; + finish_reason: "tool_calls", + } } return { content, tool_calls: undefined, - finish_reason: "stop" - }; + finish_reason: "stop", + } } function withPreamble(message, content) { - const text = typeof content === "string" ? content.trimEnd() : ""; + const text = typeof content === "string" ? content.trimEnd() : "" if (!text || normalizeAssistantMessage(text).tool_calls?.length) { - return message; + return message } - return { ...message, content: text }; + return { ...message, content: text } } // Index of the first / marker that is NOT inside a ``` fenced block, or @@ -195,60 +192,60 @@ function withPreamble(message, content) { // inside a span and is skipped. function unfencedToolCallStart(content) { if (typeof content !== "string") { - return -1; + return -1 } - const ticks = []; - const fence = /```/g; - let f; + const ticks = [] + const fence = /```/g + let f while ((f = fence.exec(content)) !== null) { - ticks.push(f.index); + ticks.push(f.index) } - const spans = []; + const spans = [] for (let i = 0; i + 1 < ticks.length; i += 2) { - spans.push([ticks[i], ticks[i + 1] + 3]); + spans.push([ticks[i], ticks[i + 1] + 3]) } - const marker = / m.index >= start && m.index < end)) { - return m.index; + return m.index } } - return -1; + return -1 } export function parseAnthropicXmlToolCalls(content) { if (typeof content !== "string" || !content.includes("]*)>([\s\S]*?)<\/invoke>/gi; - let match; + const calls = [] + const invokeRegex = /]*)>([\s\S]*?)<\/invoke>/gi + let match while ((match = invokeRegex.exec(content)) !== null) { - const attributes = parseXmlAttributes(match[1]); - const name = attributes.name; - if (!name) continue; - const body = match[2]; - calls.push(normalizeAnthropicInvoke({ id: attributes.id || "", name, args: extractInvokeParameters(body, name) })); + const attributes = parseXmlAttributes(match[1]) + const name = attributes.name + if (!name) continue + const body = match[2] + calls.push(normalizeAnthropicInvoke({ id: attributes.id || "", name, args: extractInvokeParameters(body, name) })) } - return calls.length > 0 ? calls : null; + return calls.length > 0 ? calls : null } function parseXmlAttributes(text) { - const attributes = {}; - const attributeRegex = /([:\w-]+)\s*=\s*(["'])(.*?)\2/g; - let match; + const attributes = {} + const attributeRegex = /([:\w-]+)\s*=\s*(["'])(.*?)\2/g + let match while ((match = attributeRegex.exec(String(text || ""))) !== null) { - attributes[match[1].toLowerCase()] = decodeXmlEntities(match[3]); + attributes[match[1].toLowerCase()] = decodeXmlEntities(match[3]) } - return attributes; + return attributes } // Extract values from an invoke body. Each value runs from its opening tag to @@ -257,47 +254,47 @@ function parseXmlAttributes(text) { // tolerates the common Opus failure mode of closing the final/large parameter with the wrong tag or // omitting it entirely, which otherwise drops the argument (observed: `write` losing `content`). function extractInvokeParameters(body, toolName) { - const args = {}; - const openRegex = //gi; - const opens = []; - let open; + const args = {} + const openRegex = //gi + const opens = [] + let open while ((open = openRegex.exec(body)) !== null) { - opens.push({ name: open[2], valueStart: openRegex.lastIndex, openStart: open.index }); + opens.push({ name: open[2], valueStart: openRegex.lastIndex, openStart: open.index }) } for (let i = 0; i < opens.length; i += 1) { - const { name, valueStart } = opens[i]; - const hardEnd = i + 1 < opens.length ? opens[i + 1].openStart : body.length; - const slice = body.slice(valueStart, hardEnd); - const raw = decodeXmlEntities(trimParameterClose(slice, name)); + const { name, valueStart } = opens[i] + const hardEnd = i + 1 < opens.length ? opens[i + 1].openStart : body.length + const slice = body.slice(valueStart, hardEnd) + const raw = decodeXmlEntities(trimParameterClose(slice, name)) // Site-tool arguments are JSON text, not a nested transport object. - args[name] = toolName === "browser_execute_site_tool" && name === "arguments" ? raw : coerceParameterValue(raw); + args[name] = toolName === "browser_execute_site_tool" && name === "arguments" ? raw : coerceParameterValue(raw) } - return args; + return args } function trimParameterClose(value, name) { - const ends = []; - const standard = value.indexOf(""); + const ends = [] + const standard = value.indexOf("") if (standard >= 0) { - ends.push(standard); + ends.push(standard) } - const named = value.search(new RegExp(``, "i")); + const named = value.search(new RegExp(``, "i")) if (named >= 0) { - ends.push(named); + ends.push(named) } - return ends.length > 0 ? value.slice(0, Math.min(...ends)) : value; + return ends.length > 0 ? value.slice(0, Math.min(...ends)) : value } function escapeRegExp(text) { - return String(text).replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); + return String(text).replace(/[.*+?^${}()|[\]\\]/g, "\\$&") } function normalizeAnthropicInvoke(call) { - const name = String(call.name || "").trim(); + const name = String(call.name || "").trim() if (isSubagentName(name) && typeof call.args?.prompt === "string") { return { @@ -306,181 +303,178 @@ function normalizeAnthropicInvoke(call) { args: { subagent_type: name.toLowerCase(), prompt: call.args.prompt, - description: typeof call.args.description === "string" - ? call.args.description - : summarizeTaskDescription(call.args.prompt) - } - }; + description: + typeof call.args.description === "string" + ? call.args.description + : summarizeTaskDescription(call.args.prompt), + }, + } } - return call; + return call } function decodeXmlEntities(text) { return text .replace(/</g, "<") .replace(/>/g, ">") - .replace(/"/g, "\"") + .replace(/"/g, '"') .replace(/'/g, "'") .replace(/&#(\d+);/g, (_, code) => String.fromCharCode(Number(code))) - .replace(/&/g, "&"); + .replace(/&/g, "&") } function coerceParameterValue(raw) { - const trimmed = raw.trim(); + const trimmed = raw.trim() if (trimmed === "") { - return raw; + return raw } - if (trimmed === "true") return true; - if (trimmed === "false") return false; - if (trimmed === "null") return null; + if (trimmed === "true") return true + if (trimmed === "false") return false + if (trimmed === "null") return null - if ((trimmed.startsWith("{") && trimmed.endsWith("}")) || - (trimmed.startsWith("[") && trimmed.endsWith("]"))) { + if ((trimmed.startsWith("{") && trimmed.endsWith("}")) || (trimmed.startsWith("[") && trimmed.endsWith("]"))) { try { - return parseJsonWithRawWindowsPathRepair(trimmed); + return parseJsonWithRawWindowsPathRepair(trimmed) } catch { - return raw; + return raw } } if (/^-?\d+$/.test(trimmed)) { - const n = Number(trimmed); - if (Number.isSafeInteger(n)) return n; + const n = Number(trimmed) + if (Number.isSafeInteger(n)) return n } if (/^-?\d+\.\d+$/.test(trimmed)) { - return Number(trimmed); + return Number(trimmed) } - return raw; + return raw } function unwrapSingleCodeFence(content) { if (typeof content !== "string") { - return content; + return content } - const match = content.trim().match(/^```(?:json|xml)?\s*\n?([\s\S]*?)\n?```$/); + const match = content.trim().match(/^```(?:json|xml)?\s*\n?([\s\S]*?)\n?```$/) - return match ? match[1] : content; + return match ? match[1] : content } function removeCodeFencedBlocks(content) { if (typeof content !== "string") { - return content; + return content } - return content.replace(/```[\s\S]*?```/g, ""); + return content.replace(/```[\s\S]*?```/g, "") } function parseStrictJson(content) { if (typeof content !== "string") { - return null; + return null } - const trimmed = content.trim(); + const trimmed = content.trim() if (!trimmed.startsWith("{") || !trimmed.endsWith("}")) { - return null; + return null } try { - return parseJsonWithRawWindowsPathRepair(trimmed); + return parseJsonWithRawWindowsPathRepair(trimmed) } catch { - return null; + return null } } function parseJsonWithRawWindowsPathRepair(content) { - const repaired = repairRawWindowsBackslashesInJsonStrings(content); + const repaired = repairRawWindowsBackslashesInJsonStrings(content) if (repaired !== content) { try { - return JSON.parse(repaired); + return JSON.parse(repaired) } catch { // Fall through to the original parse so callers keep their existing behavior. } } - return JSON.parse(content); + return JSON.parse(content) } function repairRawWindowsBackslashesInJsonStrings(content) { if (typeof content !== "string" || !/[A-Za-z]:\\/.test(content)) { - return content; + return content } - let output = ""; - let index = 0; + let output = "" + let index = 0 while (index < content.length) { - if (content[index] !== "\"") { - output += content[index]; - index += 1; - continue; + if (content[index] !== '"') { + output += content[index] + index += 1 + continue } - const start = index; - index += 1; - const valueStart = index; - let slashCount = 0; + const start = index + index += 1 + const valueStart = index + let slashCount = 0 while (index < content.length) { - const char = content[index]; + const char = content[index] - if (char === "\"" && slashCount % 2 === 0) { - break; + if (char === '"' && slashCount % 2 === 0) { + break } if (char === "\\") { - slashCount += 1; + slashCount += 1 } else { - slashCount = 0; + slashCount = 0 } - index += 1; + index += 1 } - const rawValue = content.slice(valueStart, index); - const value = hasRawWindowsBackslash(rawValue) - ? rawValue.replace(/(^|[^\\])\\(?!\\)/g, "$1\\\\") - : rawValue; + const rawValue = content.slice(valueStart, index) + const value = hasRawWindowsBackslash(rawValue) ? rawValue.replace(/(^|[^\\])\\(?!\\)/g, "$1\\\\") : rawValue - output += content[start] + value; + output += content[start] + value if (index < content.length) { - output += content[index]; - index += 1; + output += content[index] + index += 1 } } - return output; + return output } function hasRawWindowsBackslash(value) { - return /[A-Za-z]:/.test(value) - && /(^|[^\\])\\(?!\\)/.test(value); + return /[A-Za-z]:/.test(value) && /(^|[^\\])\\(?!\\)/.test(value) } function parseDelegatedAgentJson(content) { if (typeof content !== "string") { - return null; + return null } for (const candidate of extractJsonObjects(content).reverse()) { try { - const parsed = JSON.parse(candidate); - const name = typeof parsed?.name === "string" ? parsed.name.trim() : ""; + const parsed = JSON.parse(candidate) + const name = typeof parsed?.name === "string" ? parsed.name.trim() : "" if (!name || parsed?.type === "tool_call") { - continue; + continue } - const args = { ...parsed }; - delete args.name; + const args = { ...parsed } + delete args.name if (isSubagentName(name) && typeof args.prompt === "string") { return { @@ -489,39 +483,40 @@ function parseDelegatedAgentJson(content) { args: { subagent_type: name.toLowerCase(), prompt: args.prompt, - description: typeof args.description === "string" - ? args.description - : summarizeTaskDescription(args.prompt) - } - }; + description: + typeof args.description === "string" ? args.description : summarizeTaskDescription(args.prompt), + }, + } } return { type: "tool_call", tool: name, - args - }; + args, + } } catch { - continue; + continue } } - return null; + return null } function isSubagentName(name) { - return ["explore", "general", "scout", "search"].includes(String(name).toLowerCase()); + return ["explore", "general", "scout", "search"].includes(String(name).toLowerCase()) } function summarizeTaskDescription(prompt) { - const text = String(prompt || "").trim().replace(/\s+/g, " "); + const text = String(prompt || "") + .trim() + .replace(/\s+/g, " ") if (!text) { - return "Run subagent task"; + return "Run subagent task" } - const words = text.split(" ").slice(0, 5).join(" "); - return words.length > 48 ? `${words.slice(0, 45)}...` : words; + const words = text.split(" ").slice(0, 5).join(" ") + return words.length > 48 ? `${words.slice(0, 45)}...` : words } function toolCallsFromJsonCalls(calls) { @@ -530,109 +525,108 @@ function toolCallsFromJsonCalls(calls) { type: "function", function: { name: call.tool, - arguments: JSON.stringify(call.args || {}) - } - })); + arguments: JSON.stringify(call.args || {}), + }, + })) } // Accept a trailing JSON array whose elements are all tool_call objects, e.g. // [{"type":"tool_call","tool":"a","args":{}},{"type":"tool_call","tool":"b","args":{}}]. function parseTrailingToolCallArray(content) { if (typeof content !== "string") { - return null; + return null } - const arrays = extractJsonArraysWithPositions(content); + const arrays = extractJsonArraysWithPositions(content) if (arrays.length === 0) { - return null; + return null } - const last = arrays[arrays.length - 1]; + const last = arrays[arrays.length - 1] if (content.slice(last.end).trim()) { - return null; + return null } - let parsed; + let parsed try { - parsed = parseJsonWithRawWindowsPathRepair(last.text); + parsed = parseJsonWithRawWindowsPathRepair(last.text) } catch { - return null; + return null } if (!Array.isArray(parsed) || parsed.length === 0) { - return null; + return null } if (!parsed.every((call) => call?.type === "tool_call" && call.tool)) { - return null; + return null } - return parsed; + return parsed } function parseTrailingToolCallJsons(content) { if (typeof content !== "string") { - return null; + return null } - const objects = extractJsonObjectsWithPositions(content); - const calls = []; - let cursor = content.length; + const objects = extractJsonObjectsWithPositions(content) + const calls = [] + let cursor = content.length for (let index = objects.length - 1; index >= 0; index -= 1) { - const candidate = objects[index]; + const candidate = objects[index] if (content.slice(candidate.end, cursor).trim()) { - break; + break } - let parsed; + let parsed try { - parsed = parseJsonWithRawWindowsPathRepair(candidate.text); + parsed = parseJsonWithRawWindowsPathRepair(candidate.text) } catch (err) { - process.stderr.write(`[toolCallNormalizer] JSON parse failed: ${err.message}\n`); - break; + process.stderr.write(`[toolCallNormalizer] JSON parse failed: ${err.message}\n`) + break } if (!(parsed?.type === "tool_call" && parsed.tool)) { - break; + break } - calls.unshift(parsed); - cursor = candidate.start; + calls.unshift(parsed) + cursor = candidate.start } - return calls.length > 0 ? calls : null; + return calls.length > 0 ? calls : null } function parseLeadingToolCallJson(content) { if (typeof content !== "string") { - return null; + return null } - const trimmedStart = content.search(/\S/u); + const trimmedStart = content.search(/\S/u) if (trimmedStart < 0) { - return null; + return null } - const firstObject = extractJsonObjectsWithPositions(content) - .find((object) => object.start === trimmedStart); + const firstObject = extractJsonObjectsWithPositions(content).find((object) => object.start === trimmedStart) if (!firstObject) { - return null; + return null } try { - const parsed = parseJsonWithRawWindowsPathRepair(firstObject.text); + const parsed = parseJsonWithRawWindowsPathRepair(firstObject.text) - return parsed?.type === "tool_call" && parsed.tool ? parsed : null; + return parsed?.type === "tool_call" && parsed.tool ? parsed : null } catch { - return null; + return null } } @@ -643,156 +637,156 @@ function parseLeadingToolCallJson(content) { // tool-call JSON ("I'll do X… {tool_call} …then Y"). Operates on the same fence-stripped // extraction content as the XML scan, so fenced examples stay inert (XML parity). function parseEmbeddedToolCallJsons(content) { - if (typeof content !== "string" || !content.includes("\"tool_call\"")) { - return null; + if (typeof content !== "string" || !content.includes('"tool_call"')) { + return null } - const calls = []; + const calls = [] for (const candidate of extractJsonObjectsWithPositions(content)) { - let parsed; + let parsed try { - parsed = parseJsonWithRawWindowsPathRepair(candidate.text); + parsed = parseJsonWithRawWindowsPathRepair(candidate.text) } catch { - continue; + continue } if (parsed?.type === "tool_call" && parsed.tool) { - calls.push(parsed); + calls.push(parsed) } } - return calls.length > 0 ? calls : null; + return calls.length > 0 ? calls : null } function dedupeToolCalls(calls) { - const seen = new Set(); - const result = []; + const seen = new Set() + const result = [] for (const call of calls) { const key = JSON.stringify({ tool: call.tool, - args: call.args || {} - }); + args: call.args || {}, + }) if (seen.has(key)) { - continue; + continue } - seen.add(key); - result.push(call); + seen.add(key) + result.push(call) } - return result; + return result } function extractJsonObjects(content) { - return extractJsonObjectsWithPositions(content).map((object) => object.text); + return extractJsonObjectsWithPositions(content).map((object) => object.text) } // Like extractJsonObjectsWithPositions but for top-level [...] arrays, with the same // string/escape awareness so brackets inside string literals are ignored. function extractJsonArraysWithPositions(content) { - const arrays = []; - let start = -1; - let depth = 0; - let inString = false; - let escaped = false; + const arrays = [] + let start = -1 + let depth = 0 + let inString = false + let escaped = false for (let i = 0; i < content.length; i++) { - const char = content[i]; + const char = content[i] if (inString) { if (escaped) { - escaped = false; + escaped = false } else if (char === "\\") { - escaped = true; - } else if (char === "\"") { - inString = false; + escaped = true + } else if (char === '"') { + inString = false } - continue; + continue } - if (char === "\"") { - inString = true; - continue; + if (char === '"') { + inString = true + continue } if (char === "[") { if (depth === 0) { - start = i; + start = i } - depth += 1; - continue; + depth += 1 + continue } if (char === "]" && depth > 0) { - depth -= 1; + depth -= 1 if (depth === 0 && start !== -1) { arrays.push({ text: content.slice(start, i + 1), start, - end: i + 1 - }); - start = -1; + end: i + 1, + }) + start = -1 } } } - return arrays; + return arrays } function extractJsonObjectsWithPositions(content) { - const objects = []; - let start = -1; - let depth = 0; - let inString = false; - let escaped = false; + const objects = [] + let start = -1 + let depth = 0 + let inString = false + let escaped = false for (let i = 0; i < content.length; i++) { - const char = content[i]; + const char = content[i] if (inString) { if (escaped) { - escaped = false; + escaped = false } else if (char === "\\") { - escaped = true; - } else if (char === "\"") { - inString = false; + escaped = true + } else if (char === '"') { + inString = false } - continue; + continue } - if (char === "\"") { - inString = true; - continue; + if (char === '"') { + inString = true + continue } if (char === "{") { if (depth === 0) { - start = i; + start = i } - depth += 1; - continue; + depth += 1 + continue } if (char === "}" && depth > 0) { - depth -= 1; + depth -= 1 if (depth === 0 && start !== -1) { objects.push({ text: content.slice(start, i + 1), start, - end: i + 1 - }); - start = -1; + end: i + 1, + }) + start = -1 } } } - return objects; + return objects } -export { looksLikeIncompleteAnthropicToolCall }; +export { looksLikeIncompleteAnthropicToolCall } diff --git a/packages/desktop/src/main/wpp-bridge/proxy/toolCallReminder.mjs b/packages/desktop/src/main/wpp-bridge/proxy/toolCallReminder.mjs index d73512bfb8..7ea87b0992 100644 --- a/packages/desktop/src/main/wpp-bridge/proxy/toolCallReminder.mjs +++ b/packages/desktop/src/main/wpp-bridge/proxy/toolCallReminder.mjs @@ -13,7 +13,7 @@ Rules: - One value per . For object or array arguments, put JSON inside the parameter, e.g. [{"old":"a","new":"b"}]. - To run independent tools at once, emit several blocks inside one . Otherwise wait for each tool result before the next call. - Prior assistant tool calls in this thread already use this same XML format; the harness parses that same format back from you. -- When finished with no further tools, answer in plain text only (no tool-call XML).`; +- When finished with no further tools, answer in plain text only (no tool-call XML).` export const TOOL_CALL_SYSTEM_REMINDER_JSON = `When you need a local harness tool, request it with a tool call as a single JSON object on its own, at the very end of your message (no markdown code fences around it): @@ -23,14 +23,15 @@ Rules: - Use exact tool and parameter names from the Tools block below. Put every argument inside "args" with its natural JSON type (strings, numbers, booleans, objects, arrays). - To run independent tools at once, emit several such JSON objects back-to-back at the end of the message. Otherwise wait for each tool result before the next call. - Prior assistant tool calls in this thread already use this same JSON format; the harness parses that same format back from you. -- When finished with no further tools, answer in plain text only (no tool-call JSON).`; +- When finished with no further tools, answer in plain text only (no tool-call JSON).` -export const TOOL_CALL_SYSTEM_REMINDER_PHASED = TOOL_CALL_SYSTEM_REMINDER - .replace("in this XML format:", "in this XML format, with no Markdown fence:") - .replace( - "Prior assistant tool calls in this thread already use this same XML format; the harness parses that same format back from you.", - "Prior assistant tool calls are represented structurally in messages[].toolCalls; do not copy them as new calls.", - ) +export const TOOL_CALL_SYSTEM_REMINDER_PHASED = TOOL_CALL_SYSTEM_REMINDER.replace( + "in this XML format:", + "in this XML format, with no Markdown fence:", +).replace( + "Prior assistant tool calls in this thread already use this same XML format; the harness parses that same format back from you.", + "Prior assistant tool calls are represented structurally in messages[].toolCalls; do not copy them as new calls.", +) export const TASK_COMPLETION_SYSTEM_REMINDER = `Task completion contract: - Keep working until the latest user request is fully resolved. A plan, progress update, initial inspection, or partial result is not complete. @@ -40,11 +41,12 @@ export const TASK_COMPLETION_SYSTEM_REMINDER = `Task completion contract: - Do not claim local tool execution is unavailable unless an attempted tool call returned an error.` export function toolCallInstructions(toolFormat, { commentaryPhase = false } = {}) { - const toolReminder = toolFormat === "json" - ? TOOL_CALL_SYSTEM_REMINDER_JSON - : commentaryPhase - ? TOOL_CALL_SYSTEM_REMINDER_PHASED - : TOOL_CALL_SYSTEM_REMINDER + const toolReminder = + toolFormat === "json" + ? TOOL_CALL_SYSTEM_REMINDER_JSON + : commentaryPhase + ? TOOL_CALL_SYSTEM_REMINDER_PHASED + : TOOL_CALL_SYSTEM_REMINDER return `${toolReminder}\n\n${TASK_COMPLETION_SYSTEM_REMINDER}` } diff --git a/packages/desktop/src/main/wpp-bridge/recorder-injection.ts b/packages/desktop/src/main/wpp-bridge/recorder-injection.ts index b66a1389ce..0cb1cb20ab 100644 --- a/packages/desktop/src/main/wpp-bridge/recorder-injection.ts +++ b/packages/desktop/src/main/wpp-bridge/recorder-injection.ts @@ -44,10 +44,7 @@ export type RecorderEvent = { type: string; status?: string | null; runId?: stri // Register the probe + recorder scripts with the shared target hub. Caller must armTargetAttach // after all installers are registered (and before loadURL) so child iframes stay paused until // these scripts land. Events arrive asynchronously via onEvent as the page loads. -export async function installRecorder( - contents: WebContents, - onEvent?: (event: RecorderEvent) => void, -): Promise { +export async function installRecorder(contents: WebContents, onEvent?: (event: RecorderEvent) => void): Promise { await waitForInitialDocument(contents) const dbg = contents.debugger @@ -68,18 +65,30 @@ export async function installRecorder( await dbg.sendCommand("Page.enable", {}, sessionId) // Probe before recorder so the relay listener exists when the recorder posts its first frame. // runImmediately covers the case where a document already exists when we attach. - await dbg.sendCommand("Page.addScriptToEvaluateOnNewDocument", { - source: PROBE_SOURCE, - runImmediately: true, - }, sessionId) - await dbg.sendCommand("Page.addScriptToEvaluateOnNewDocument", { - source: MODEL_REQUEST_FILTER_SOURCE, - runImmediately: true, - }, sessionId) - await dbg.sendCommand("Page.addScriptToEvaluateOnNewDocument", { - source: recorderSource, - runImmediately: true, - }, sessionId) + await dbg.sendCommand( + "Page.addScriptToEvaluateOnNewDocument", + { + source: PROBE_SOURCE, + runImmediately: true, + }, + sessionId, + ) + await dbg.sendCommand( + "Page.addScriptToEvaluateOnNewDocument", + { + source: MODEL_REQUEST_FILTER_SOURCE, + runImmediately: true, + }, + sessionId, + ) + await dbg.sendCommand( + "Page.addScriptToEvaluateOnNewDocument", + { + source: recorderSource, + runImmediately: true, + }, + sessionId, + ) }) } diff --git a/packages/effect-drizzle-sqlite/package.json b/packages/effect-drizzle-sqlite/package.json index e0b611e0c4..1c5947f6fd 100644 --- a/packages/effect-drizzle-sqlite/package.json +++ b/packages/effect-drizzle-sqlite/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "1.18.34", + "version": "1.19.5", "name": "@opencode-ai/effect-drizzle-sqlite", "type": "module", "license": "MIT", diff --git a/packages/effect-sqlite-node/package.json b/packages/effect-sqlite-node/package.json index a0a8709b7b..f09c38d369 100644 --- a/packages/effect-sqlite-node/package.json +++ b/packages/effect-sqlite-node/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "1.18.34", + "version": "1.19.5", "name": "@opencode-ai/effect-sqlite-node", "type": "module", "license": "MIT", diff --git a/packages/enterprise/package.json b/packages/enterprise/package.json index adca0844c0..0d79b3a00c 100644 --- a/packages/enterprise/package.json +++ b/packages/enterprise/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/enterprise", - "version": "1.18.34", + "version": "1.19.5", "private": true, "type": "module", "license": "MIT", diff --git a/packages/function/package.json b/packages/function/package.json index dd58cbc6ec..6d53b7ea39 100644 --- a/packages/function/package.json +++ b/packages/function/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/function", - "version": "1.18.34", + "version": "1.19.5", "$schema": "https://json.schemastore.org/package.json", "private": true, "type": "module", diff --git a/packages/http-recorder/package.json b/packages/http-recorder/package.json index 3ce2feefbc..f004531a6a 100644 --- a/packages/http-recorder/package.json +++ b/packages/http-recorder/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "1.18.34", + "version": "1.19.5", "name": "@opencode-ai/http-recorder", "description": "Record and replay Effect HTTP client traffic with deterministic cassettes", "type": "module", diff --git a/packages/llm/package.json b/packages/llm/package.json index 98dec95565..ec51ca5fed 100644 --- a/packages/llm/package.json +++ b/packages/llm/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "1.18.34", + "version": "1.19.5", "name": "@opencode-ai/llm", "type": "module", "license": "MIT", diff --git a/packages/opencode/package.json b/packages/opencode/package.json index e8973f1e1b..512ef3625c 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -1,6 +1,6 @@ { "$schema": "https://json.schemastore.org/package.json", - "version": "1.18.34", + "version": "1.19.5", "name": "opencode", "type": "module", "license": "MIT", @@ -73,12 +73,12 @@ "@ai-sdk/provider": "3.0.16", "@ai-sdk/togetherai": "2.0.68", "@ai-sdk/vercel": "2.0.39", - "@ai-sdk/xai": "3.0.102", + "@ai-sdk/xai": "3.0.139", "@aws-sdk/credential-providers": "3.1057.0", "@clack/prompts": "1.0.0-alpha.1", "@effect/opentelemetry": "catalog:", "@effect/platform-node": "catalog:", - "@ff-labs/fff-bun": "0.9.4", + "@ff-labs/fff-bun": "0.10.5", "@gitlab/opencode-gitlab-auth": "1.3.3", "@modelcontextprotocol/sdk": "1.29.0", "@octokit/graphql": "9.0.2", @@ -120,7 +120,7 @@ "drizzle-orm": "catalog:", "effect": "catalog:", "fuzzysort": "3.1.0", - "gitlab-ai-provider": "6.18.0", + "gitlab-ai-provider": "6.23.1", "glob": "13.0.5", "google-auth-library": "10.5.0", "gray-matter": "4.0.3", diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index b71391103c..60a674a4f8 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -138,9 +138,10 @@ await $`rm -rf dist` const binaries: Record = {} if (!skipInstall) { - await $`bun install --os="*" --cpu="*" @opentui/core@${pkg.dependencies["@opentui/core"]}` - await $`bun install --os="*" --cpu="*" @parcel/watcher@${pkg.dependencies["@parcel/watcher"]}` - await $`bun install --os="*" --cpu="*" @ff-labs/fff-bun@${pkg.dependencies["@ff-labs/fff-bun"]}` + // Bun 1.4.4 skips native packages for the other libc by default, but the musl targets need them. + await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]}` + await $`bun install --os="*" --cpu="*" --libc="*" @parcel/watcher@${pkg.dependencies["@parcel/watcher"]}` + await $`bun install --os="*" --cpu="*" --libc="*" @ff-labs/fff-bun@${pkg.dependencies["@ff-labs/fff-bun"]}` } for (const item of targets) { const name = [ diff --git a/packages/opencode/script/publish.ts b/packages/opencode/script/publish.ts index ac1cafff56..293d5eed01 100755 --- a/packages/opencode/script/publish.ts +++ b/packages/opencode/script/publish.ts @@ -196,18 +196,29 @@ if (!Script.preview) { "", ].join("\n") - const token = process.env.GITHUB_TOKEN - if (!token) { - console.error("GITHUB_TOKEN is required to update homebrew tap") + const key = process.env.HOMEBREW_TAP_DEPLOY_KEY + if (!key) { + console.error("HOMEBREW_TAP_DEPLOY_KEY is required to update homebrew tap") process.exit(1) } - const tap = `https://x-access-token:${token}@github.com/anomalyco/homebrew-tap.git` + const ssh = `${process.env.RUNNER_TEMP ?? "/tmp"}/homebrew-tap-ssh` + await $`mkdir -p ${ssh}` + await Bun.write(`${ssh}/key`, key.trim() + "\n") + await $`chmod 600 ${ssh}/key` + await Bun.write( + `${ssh}/known_hosts`, + "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl\n", + ) + const env = { + ...process.env, + GIT_SSH_COMMAND: `ssh -i ${ssh}/key -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=${ssh}/known_hosts`, + } await $`rm -rf ./dist/homebrew-tap` - await $`git clone ${tap} ./dist/homebrew-tap` + await $`git clone git@github.com:anomalyco/homebrew-tap.git ./dist/homebrew-tap`.env(env) await Bun.file("./dist/homebrew-tap/opencode.rb").write(homebrewFormula) await $`cd ./dist/homebrew-tap && git add opencode.rb` if ((await $`cd ./dist/homebrew-tap && git diff --cached --quiet`.nothrow()).exitCode !== 0) { await $`cd ./dist/homebrew-tap && git commit -m "Update to v${Script.version}"` - await $`cd ./dist/homebrew-tap && git push` + await $`cd ./dist/homebrew-tap && git push`.env(env) } } diff --git a/packages/opencode/src/account/account.ts b/packages/opencode/src/account/account.ts index fb21f878f8..3c2fcd9830 100644 --- a/packages/opencode/src/account/account.ts +++ b/packages/opencode/src/account/account.ts @@ -2,13 +2,7 @@ import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { httpClient } from "@opencode-ai/core/effect/app-node-platform" import { Cache, Clock, Duration, Effect, Layer, Option, Schema, SchemaGetter, Context } from "effect" import { serviceUse } from "@opencode-ai/core/effect/service-use" -import { - FetchHttpClient, - HttpClient, - HttpClientError, - HttpClientRequest, - HttpClientResponse, -} from "effect/unstable/http" +import { HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse } from "effect/unstable/http" import { withTransientReadRetry } from "@/util/effect-http-client" import { AccountRepo, type AccountRow } from "./repo" diff --git a/packages/opencode/src/cli/cmd/debug/agent.handler.ts b/packages/opencode/src/cli/cmd/debug/agent.handler.ts index b9d9ff49c8..610afe5b20 100644 --- a/packages/opencode/src/cli/cmd/debug/agent.handler.ts +++ b/packages/opencode/src/cli/cmd/debug/agent.handler.ts @@ -6,7 +6,6 @@ import { Cause, Effect } from "effect" import { Agent } from "../../../agent/agent" import { Provider } from "@/provider/provider" import { Session } from "@/session/session" -import type { MessageV2 } from "../../../session/message-v2" import { MessageID, PartID } from "../../../session/schema" import { ToolRegistry } from "@/tool/registry" import { Permission } from "../../../permission" diff --git a/packages/opencode/src/cli/cmd/github.handler.ts b/packages/opencode/src/cli/cmd/github.handler.ts index fcf44279ce..e990a3c1fe 100644 --- a/packages/opencode/src/cli/cmd/github.handler.ts +++ b/packages/opencode/src/cli/cmd/github.handler.ts @@ -19,7 +19,6 @@ import type { import { UI } from "../ui" import { ModelsDev } from "@opencode-ai/core/models-dev" import { InstanceRef } from "@/effect/instance-ref" -import { SessionShare } from "@/share/session" import { Session } from "@/session/session" import type { SessionID } from "../../session/schema" import { MessageID, PartID } from "../../session/schema" @@ -380,7 +379,6 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: if (!ctx) return yield* Effect.die("InstanceRef not provided") const gitSvc = yield* Git.Service const sessionSvc = yield* Session.Service - const sessionShare = yield* SessionShare.Service const sessionPrompt = yield* SessionPrompt.Service const events = yield* EventV2Bridge.Service const runLocalEffect = (effect: Effect.Effect) => @@ -407,7 +405,6 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: const { providerID, modelID } = normalizeModel() const variant = process.env["VARIANT"] || undefined const runId = normalizeRunId() - const share = normalizeShare() const oidcBaseUrl = normalizeOidcBaseUrl() const { owner, repo } = context.repo // For repo events (schedule, workflow_dispatch), payload has no issue/comment data @@ -428,14 +425,12 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: ? (payload as IssueCommentEvent | IssuesEvent).issue.number : (payload as PullRequestEvent | PullRequestReviewCommentEvent).pull_request.number const runUrl = `/${owner}/${repo}/actions/runs/${runId}` - const shareBaseUrl = isMock ? "https://dev.opencode.ai" : "https://opencode.ai" let appToken: string let octoRest: Octokit let octoGraph: typeof graphql let gitConfig: string let session: { id: SessionID; title: string; version: string } - let shareId: string | undefined let exitCode = 0 let githubClientReady = false type PromptFiles = Awaited>["promptFiles"] @@ -512,12 +507,6 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: }), ) await subscribeSessionEvents() - shareId = await (async () => { - if (share === false) return - if (!share && repoData.data.private) return - await runLocalEffect(sessionShare.share(session.id)) - return session.id.slice(-8) - })() console.log("opencode session", session.id) // Handle event types: @@ -547,7 +536,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: repoData.data.default_branch, branch, summary, - `${response}\n\nTriggered by ${triggerType}${footer({ image: true })}`, + `${response}\n\nTriggered by ${triggerType}${footer()}`, ) if (pr) { console.log(`Created PR #${pr}`) @@ -576,8 +565,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: const summary = await summarize(response) await pushToLocalBranch(summary, uncommittedChanges) } - const hasShared = prData.comments.nodes.some((c) => c.body.includes(`${shareBaseUrl}/s/${shareId}`)) - await createComment(`${response}${footer({ image: !hasShared })}`) + await createComment(`${response}${footer()}`) await removeReaction(commentType) } // Fork PR @@ -594,8 +582,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: const summary = await summarize(response) await pushToForkBranch(summary, prData, uncommittedChanges) } - const hasShared = prData.comments.nodes.some((c) => c.body.includes(`${shareBaseUrl}/s/${shareId}`)) - await createComment(`${response}${footer({ image: !hasShared })}`) + await createComment(`${response}${footer()}`) await removeReaction(commentType) } } @@ -610,7 +597,7 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: if (switched) { // Agent switched branches (likely created its own branch/PR). // Don't push the stale infrastructure branch — just comment. - await createComment(`${response}${footer({ image: true })}`) + await createComment(`${response}${footer()}`) await removeReaction(commentType) } else if (dirty) { const summary = await summarize(response) @@ -619,16 +606,16 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: repoData.data.default_branch, branch, summary, - `${response}\n\nCloses #${issueId}${footer({ image: true })}`, + `${response}\n\nCloses #${issueId}${footer()}`, ) if (pr) { - await createComment(`Created PR #${pr}${footer({ image: true })}`) + await createComment(`Created PR #${pr}${footer()}`) } else { - await createComment(`${response}${footer({ image: true })}`) + await createComment(`${response}${footer()}`) } await removeReaction(commentType) } else { - await createComment(`${response}${footer({ image: true })}`) + await createComment(`${response}${footer()}`) await removeReaction(commentType) } } @@ -677,14 +664,6 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: return value } - function normalizeShare() { - const value = process.env["SHARE"] - if (!value) return undefined - if (value === "true") return true - if (value === "false") return false - throw new Error(`Invalid share value: ${value}. Share must be a boolean.`) - } - function normalizeUseGithubToken() { const value = process.env["USE_GITHUB_TOKEN"] if (!value) return false @@ -1351,18 +1330,8 @@ export const githubRun = Effect.fn("Cli.github.run")(function* (args: { event?: } } - function footer(opts?: { image?: boolean }) { - const image = (() => { - if (!shareId) return "" - if (!opts?.image) return "" - - const titleAlt = encodeURIComponent(session.title.substring(0, 50)) - const title64 = Buffer.from(session.title.substring(0, 700), "utf8").toString("base64") - - return `${titleAlt}\n` - })() - const shareUrl = shareId ? `[opencode session](${shareBaseUrl}/s/${shareId})  |  ` : "" - return `\n\n${image}${shareUrl}[github run](${runUrl})` + function footer() { + return `\n\n[github run](${runUrl})` } async function fetchRepo() { diff --git a/packages/opencode/src/cli/cmd/import.ts b/packages/opencode/src/cli/cmd/import.ts index 1b7350f744..ace560368d 100644 --- a/packages/opencode/src/cli/cmd/import.ts +++ b/packages/opencode/src/cli/cmd/import.ts @@ -2,11 +2,10 @@ import type { Session as SDKSession, Message, Part } from "@opencode-ai/sdk/v2" import { SessionV1 } from "@opencode-ai/core/v1/session" import { Session } from "@/session/session" import { MessageV2 } from "../../session/message-v2" -import { CliError, effectCmd } from "../effect-cmd" +import { CliError, effectCmd, fail } from "../effect-cmd" import { Database } from "@opencode-ai/core/database/database" import { SessionTable, MessageTable, PartTable } from "@opencode-ai/core/session/sql" import { InstanceRef } from "@/effect/instance-ref" -import { ShareNext } from "@/share/share-next" import { EOL } from "os" import path from "path" import { FSUtil } from "@opencode-ai/core/fs-util" @@ -16,28 +15,6 @@ import type { InstanceContext } from "@/project/instance-context" const decodeMessageInfo = Schema.decodeUnknownSync(SessionV1.Info) const decodePart = Schema.decodeUnknownSync(SessionV1.Part) -/** Discriminated union returned by the ShareNext API (GET /api/shares/:id/data) */ -export type ShareData = - | { type: "session"; data: SDKSession } - | { type: "message"; data: Message } - | { type: "part"; data: Part } - | { type: "session_diff"; data: unknown } - | { type: "model"; data: unknown } - -/** Extract share ID from a share URL like https://opncd.ai/share/abc123 */ -export function parseShareUrl(url: string): string | null { - const match = url.match(/^https?:\/\/[^/]+\/share\/([a-zA-Z0-9_-]+)$/) - return match ? match[1] : null -} - -export function shouldAttachShareAuthHeaders(shareUrl: string, accountBaseUrl: string): boolean { - try { - return new URL(shareUrl).origin === new URL(accountBaseUrl).origin - } catch { - return false - } -} - export function formatImportFileError(file: string, error: FSUtil.Error) { if (error._tag === "PlatformError") { if (error.reason._tag === "NotFound") return `File not found: ${file}` @@ -49,54 +26,14 @@ export function formatImportFileError(file: string, error: FSUtil.Error) { return `Invalid JSON in ${file}: ${detail}` } -/** - * Transform ShareNext API response (flat array) into the nested structure for local file storage. - * - * The API returns a flat array: [session, message, message, part, part, ...] - * Local storage expects: { info: session, messages: [{ info: message, parts: [part, ...] }, ...] } - * - * This groups parts by their messageID to reconstruct the hierarchy before writing to disk. - */ -export function transformShareData(shareData: ShareData[]): { - info: SDKSession - messages: Array<{ info: Message; parts: Part[] }> -} | null { - const sessionItem = shareData.find((d) => d.type === "session") - if (!sessionItem) return null - - const messageMap = new Map() - const partMap = new Map() - - for (const item of shareData) { - if (item.type === "message") { - messageMap.set(item.data.id, item.data) - } else if (item.type === "part") { - if (!partMap.has(item.data.messageID)) { - partMap.set(item.data.messageID, []) - } - partMap.get(item.data.messageID)!.push(item.data) - } - } - - if (messageMap.size === 0) return null - - return { - info: sessionItem.data, - messages: Array.from(messageMap.values()).map((msg) => ({ - info: msg, - parts: partMap.get(msg.id) ?? [], - })), - } -} - type ExportData = { info: SDKSession; messages: Array<{ info: Message; parts: Part[] }> } export const ImportCommand = effectCmd({ command: "import ", - describe: "import session data from JSON file or URL", + describe: "import session data from JSON file", builder: (yargs) => yargs.positional("file", { - describe: "path to JSON file or share URL", + describe: "path to JSON file", type: "string", demandOption: true, }), @@ -108,67 +45,15 @@ export const ImportCommand = effectCmd({ }) const runImport = Effect.fn("Cli.import.body")(function* (file: string, ctx: InstanceContext) { - const share = yield* ShareNext.Service const fs = yield* FSUtil.Service const { db } = yield* Database.Service - let exportData: ExportData | undefined - - const isUrl = file.startsWith("http://") || file.startsWith("https://") + if (file.startsWith("http://") || file.startsWith("https://")) + return yield* fail("Importing from share URLs is no longer supported: session sharing has been discontinued") - if (isUrl) { - const slug = parseShareUrl(file) - if (!slug) { - const baseUrl = yield* Effect.orDie(share.url()) - process.stdout.write(`Invalid URL format. Expected: ${baseUrl}/share/`) - process.stdout.write(EOL) - return - } - - const baseUrl = new URL(file).origin - const req = yield* Effect.orDie(share.request()) - const headers = shouldAttachShareAuthHeaders(file, req.baseUrl) ? req.headers : {} - - const tryFetch = (url: string) => - Effect.tryPromise({ - try: () => fetch(url, { headers }), - catch: (e) => - new CliError({ - message: `Failed to fetch share data: ${e instanceof Error ? e.message : String(e)}`, - }), - }) - - const dataPath = req.api.data(slug) - let response = yield* tryFetch(`${baseUrl}${dataPath}`) - - if (!response.ok && dataPath !== `/api/share/${slug}/data`) { - response = yield* tryFetch(`${baseUrl}/api/share/${slug}/data`) - } - - if (!response.ok) { - process.stdout.write(`Failed to fetch share data: ${response.statusText}`) - process.stdout.write(EOL) - return - } - - const shareData = yield* Effect.tryPromise({ - try: () => response.json() as Promise, - catch: () => new CliError({ message: "Share data was not valid JSON" }), - }) - const transformed = transformShareData(shareData) - - if (!transformed) { - process.stdout.write(`Share not found or empty: ${slug}`) - process.stdout.write(EOL) - return - } - - exportData = transformed - } else { - exportData = (yield* fs - .readJson(file) - .pipe(Effect.mapError((error) => new CliError({ message: formatImportFileError(file, error) })))) as ExportData - } + const exportData = (yield* fs + .readJson(file) + .pipe(Effect.mapError((error) => new CliError({ message: formatImportFileError(file, error) })))) as ExportData if (!exportData) { process.stdout.write(`Failed to read session data`) diff --git a/packages/opencode/src/cli/cmd/pr.ts b/packages/opencode/src/cli/cmd/pr.ts index 4209722357..6bab3286c5 100644 --- a/packages/opencode/src/cli/cmd/pr.ts +++ b/packages/opencode/src/cli/cmd/pr.ts @@ -43,14 +43,12 @@ export const PrCommand = effectCmd({ "view", `${prNumber}`, "--json", - "headRepository,headRepositoryOwner,isCrossRepository,headRefName,body", + "headRepository,headRepositoryOwner,isCrossRepository,headRefName", ], { nothrow: true }, ), ) - let sessionId: string | undefined - if (prInfoResult.code === 0 && prInfoResult.text.trim()) { const prInfo = JSON.parse(prInfoResult.text) @@ -71,26 +69,6 @@ export const PrCommand = effectCmd({ cwd: worktree, }) } - - if (prInfo?.body) { - const sessionMatch = prInfo.body.match(/https:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/) - if (sessionMatch) { - const sessionUrl = sessionMatch[0] - UI.println(`Found opencode session: ${sessionUrl}`) - UI.println(`Importing session...`) - - const importResult = yield* Effect.promise(() => - Process.text(["opencode", "import", sessionUrl], { nothrow: true }), - ) - if (importResult.code === 0) { - const sessionIdMatch = importResult.text.trim().match(/Imported session: ([a-zA-Z0-9_-]+)/) - if (sessionIdMatch) { - sessionId = sessionIdMatch[1] - UI.println(`Session imported: ${sessionId}`) - } - } - } - } } UI.println(`Successfully checked out PR #${prNumber} as branch '${localBranchName}'`) @@ -98,10 +76,9 @@ export const PrCommand = effectCmd({ UI.println("Starting opencode...") UI.println() - const opencodeArgs = sessionId ? ["-s", sessionId] : [] const code = yield* Effect.promise( () => - Process.spawn(["opencode", ...opencodeArgs], { + Process.spawn(["opencode"], { stdin: "inherit", stdout: "inherit", stderr: "inherit", diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index cccc255017..944aec17ab 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -160,7 +160,8 @@ export const RunCommand = effectCmd({ }) .option("share", { type: "boolean", - describe: "share the session", + describe: "deprecated: session sharing was discontinued", + hidden: true, }) .option("model", { type: "string", @@ -532,19 +533,8 @@ export const RunCommand = effectCmd({ } } - async function share(sdk: OpencodeClient, sessionID: string) { - const cfg = await sdk.config.get() - if (!cfg.data) return - if (cfg.data.share !== "auto" && !flags.autoShare && !args.share) return - const res = await sdk.session.share({ sessionID }).catch((error) => { - if (error instanceof Error && error.message.includes("disabled")) { - UI.println(UI.Style.TEXT_DANGER_BOLD + "! " + error.message) - } - return { error } - }) - if (!res.error && "data" in res && res.data?.share?.url) { - UI.println(UI.Style.TEXT_INFO_BOLD + "~ " + res.data.share.url) - } + async function share(_sdk: OpencodeClient, _sessionID: string) { + if (args.share) UI.println(UI.Style.TEXT_DANGER_BOLD + "! Session sharing has been discontinued") } async function createFreshSession( diff --git a/packages/opencode/src/cli/cmd/tui.ts b/packages/opencode/src/cli/cmd/tui.ts index d5fa46bfb1..3a837ba31b 100644 --- a/packages/opencode/src/cli/cmd/tui.ts +++ b/packages/opencode/src/cli/cmd/tui.ts @@ -10,6 +10,8 @@ import { withNetworkOptions, resolveNetworkOptionsNoConfig, hasArg } from "@/cli import { Filesystem } from "@/util/filesystem" import type { GlobalEvent } from "@opencode-ai/sdk/v2" import type { EventSource } from "@opencode-ai/tui/context/sdk" +import type { UpdateNotice, UpdateSource } from "@opencode-ai/tui" +import { InstallationVersion } from "@opencode-ai/core/installation/version" import { writeHeapSnapshot } from "v8" import { ServerAuth } from "@/server/auth" import { validateSession } from "../tui/validate-session" @@ -49,6 +51,43 @@ function createEventSource(client: RpcClient): EventSource { } } +// Mirrors the V2 CLI updater: the TUI process checks every 10 minutes and installs on this machine, +// but only when the user picks an option in the /update dialog. +function createUpdater(latest: () => Promise): UpdateSource { + const listeners = new Set<(notice: UpdateNotice) => void>() + let current: UpdateNotice | undefined + const check = () => + latest() + .then((notice) => { + if (!notice || JSON.stringify(notice) === JSON.stringify(current)) return + current = notice + listeners.forEach((notify) => notify(notice)) + }) + .catch(() => {}) + setTimeout(check, 1000).unref?.() + setInterval(check, 10 * 60 * 1000).unref?.() + return { + subscribe: (notify) => { + if (current) notify(current) + listeners.add(notify) + return () => listeners.delete(notify) + }, + check: async () => { + const { Installation } = await import("@/installation") + // A failed check leaves latest unset, which /update reports as "Couldn't check for updates." + const latest = await Installation.latest(await Installation.method()).catch(() => undefined) + return { current: InstallationVersion, latest } + }, + apply: async (target) => { + const { Installation } = await import("@/installation") + const method = await Installation.method() + if (method === "unknown") throw new Error("Installation method not found") + if (target.type === "major") return Installation.upgradeMajor(method) + return Installation.upgrade(method, target.version) + }, + } +} + async function target() { if (typeof OPENCODE_WORKER_PATH !== "undefined") return OPENCODE_WORKER_PATH const dist = new URL("./cli/tui/worker.js", import.meta.url) @@ -262,9 +301,7 @@ export const TuiThreadCommand = cmd({ return } - setTimeout(() => { - client.call("checkUpgrade", { directory: cwd }).catch(() => {}) - }, 1000).unref?.() + const updater = createUpdater(async () => await client.call("checkUpgrade", { directory: cwd })) try { const { Effect } = await import("effect") @@ -284,6 +321,7 @@ export const TuiThreadCommand = cmd({ fetch: transport.fetch, headers: transport.headers, events: transport.events, + updater, args: { continue: args.continue, sessionID: args.session, diff --git a/packages/opencode/src/cli/cmd/upgrade.ts b/packages/opencode/src/cli/cmd/upgrade.ts index 3c1604a0b8..b329317f70 100644 --- a/packages/opencode/src/cli/cmd/upgrade.ts +++ b/packages/opencode/src/cli/cmd/upgrade.ts @@ -19,8 +19,12 @@ export const UpgradeCommand = { type: "string", choices: ["curl", "npm", "pnpm", "bun", "brew", "choco", "scoop"], }) + .option("major", { + describe: "upgrade to OpenCode 2 and remove OpenCode 1", + type: "boolean", + }) }, - handler: async (args: { target?: string; method?: string }) => { + handler: async (args: { target?: string; method?: string; major?: boolean }) => { UI.empty() UI.println(UI.logo(" ")) UI.empty() @@ -43,10 +47,36 @@ export const UpgradeCommand = { } } prompts.log.info("Using method: " + method) - const target = args.target ? args.target.replace(/^v/, "") : await Installation.latest() + + if (args.major) { + prompts.log.info(`From ${InstallationVersion} → OpenCode 2`) + const spinner = prompts.spinner() + spinner.start("Installing OpenCode 2...") + const err = await Installation.upgradeMajor(method).catch((err) => err) + if (err) { + spinner.stop("Upgrade failed", 1) + if (err instanceof Error) prompts.log.error(err.message) + prompts.log.info(`To install OpenCode 2 manually, see ${Installation.MAJOR_INSTRUCTIONS}`) + prompts.outro("Done") + return + } + spinner.stop("OpenCode 2 installed") + prompts.outro("Done") + return + } + + const target = args.target + ? args.target.replace(/^v/, "") + : await Installation.latest(method).catch(() => undefined) + if (!target) { + prompts.log.error("Couldn't check for updates") + prompts.outro("Done") + return + } if (InstallationVersion === target) { prompts.log.warn(`opencode upgrade skipped: ${target} is already installed`) + prompts.log.info("OpenCode 2 is available. Upgrade with `opencode upgrade --major`") prompts.outro("Done") return } @@ -69,6 +99,7 @@ export const UpgradeCommand = { return } spinner.stop("Upgrade complete") + prompts.log.info("OpenCode 2 is available. Upgrade with `opencode upgrade --major`") prompts.outro("Done") }, } diff --git a/packages/opencode/src/cli/network.ts b/packages/opencode/src/cli/network.ts index 22040ed410..18550abb85 100644 --- a/packages/opencode/src/cli/network.ts +++ b/packages/opencode/src/cli/network.ts @@ -1,6 +1,5 @@ import type { Argv, InferredOptionTypes } from "yargs" import { ConfigV1 } from "@opencode-ai/core/v1/config/config" -import type { Config } from "@/config/config" import { Effect } from "effect" const options = { diff --git a/packages/opencode/src/cli/tui/worker.ts b/packages/opencode/src/cli/tui/worker.ts index 4cf6b2d446..e6aa5163c2 100644 --- a/packages/opencode/src/cli/tui/worker.ts +++ b/packages/opencode/src/cli/tui/worker.ts @@ -58,7 +58,7 @@ export const rpc = { }, async checkUpgrade(input: { directory: string }) { await InstanceRuntime.load({ directory: input.directory }) - await upgrade().catch(() => {}) + return upgrade().catch(() => undefined) }, async reload() { await AppRuntime.runPromise( diff --git a/packages/opencode/src/cli/upgrade.ts b/packages/opencode/src/cli/upgrade.ts index 62b230a633..579de526ba 100644 --- a/packages/opencode/src/cli/upgrade.ts +++ b/packages/opencode/src/cli/upgrade.ts @@ -3,51 +3,35 @@ import { AppRuntime } from "@/effect/app-runtime" import { Flag } from "@opencode-ai/core/flag/flag" import { Installation } from "@/installation" import { InstallationVersion } from "@opencode-ai/core/installation/version" -import { GlobalBus } from "@/bus/global" +// Checking never installs anything. Updates only happen when the user runs `/update` or `opencode upgrade`. +export function shouldNotify(input: { + autoupdate: boolean | "notify" | undefined + disabled: boolean + always: boolean + current: string + latest: string +}) { + if (input.autoupdate === false || input.disabled) return false + if (input.always) return true + return Installation.isUpdate(input.current, input.latest) +} + +// Returns undefined when checks are disabled or fail, so the TUI only suggests OpenCode 2 after a successful check. export async function upgrade() { const config = await AppRuntime.runPromise(Config.Service.use((cfg) => cfg.getGlobal())) if (config.autoupdate === false || Flag.OPENCODE_DISABLE_AUTOUPDATE) return - const method = await Installation.method() - const latest = await Installation.latest(method).catch(() => {}) + const latest = await Installation.latest(await Installation.method()).catch(() => {}) if (!latest) return - - if (Flag.OPENCODE_ALWAYS_NOTIFY_UPDATE) { - GlobalBus.emit("event", { - directory: "global", - payload: { - type: Installation.Event.UpdateAvailable.type, - properties: { version: latest }, - }, - }) - return - } - - if (InstallationVersion === latest) return - - const kind = Installation.getReleaseType(InstallationVersion, latest) - - if (config.autoupdate === "notify" || kind !== "patch") { - GlobalBus.emit("event", { - directory: "global", - payload: { - type: Installation.Event.UpdateAvailable.type, - properties: { version: latest }, - }, + if ( + shouldNotify({ + autoupdate: config.autoupdate, + disabled: Flag.OPENCODE_DISABLE_AUTOUPDATE, + always: Flag.OPENCODE_ALWAYS_NOTIFY_UPDATE, + current: InstallationVersion, + latest, }) - return - } - - if (method === "unknown") return - await Installation.upgrade(method, latest) - .then(() => - GlobalBus.emit("event", { - directory: "global", - payload: { - type: Installation.Event.Updated.type, - properties: { version: latest }, - }, - }), - ) - .catch(() => {}) + ) + return { type: "available" as const, version: latest } + return { type: "major" as const } } diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts index 9e10b67fe7..d24ca22d80 100644 --- a/packages/opencode/src/config/config.ts +++ b/packages/opencode/src/config/config.ts @@ -19,7 +19,7 @@ import type { ConsoleState } from "@opencode-ai/core/v1/config/console-state" import { FSUtil } from "@opencode-ai/core/fs-util" import { InstanceState } from "@/effect/instance-state" import { Context, Duration, Effect, Exit, Fiber, Layer, Option, Schema } from "effect" -import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http" +import { HttpClient, HttpClientRequest } from "effect/unstable/http" import { EffectFlock } from "@opencode-ai/core/util/effect-flock" import { containsPath, type InstanceContext } from "../project/instance-context" import { ConfigV1 } from "@opencode-ai/core/v1/config/config" diff --git a/packages/opencode/src/config/markdown.ts b/packages/opencode/src/config/markdown.ts index 297db9cc82..f2efe96ffa 100644 --- a/packages/opencode/src/config/markdown.ts +++ b/packages/opencode/src/config/markdown.ts @@ -13,10 +13,6 @@ export function shell(template: string) { return Array.from(template.matchAll(SHELL_REGEX)) } -// other coding agents like claude code allow invalid yaml in their -// frontmatter, we need to fallback to a more permissive parser for those cases -export const fallbackSanitization = ConfigMarkdownCore.sanitize - export async function parse(filePath: string) { const template = await Filesystem.readText(filePath) diff --git a/packages/opencode/src/control-plane/workspace.ts b/packages/opencode/src/control-plane/workspace.ts index 188cd383bb..73b3812360 100644 --- a/packages/opencode/src/control-plane/workspace.ts +++ b/packages/opencode/src/control-plane/workspace.ts @@ -2,7 +2,7 @@ import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { httpClient } from "@opencode-ai/core/effect/app-node-platform" import { Context, Effect, FiberMap, Iterable, Layer, Schema, Stream } from "effect" import { serviceUse } from "@opencode-ai/core/effect/service-use" -import { FetchHttpClient, HttpBody, HttpClient, HttpClientError, HttpClientRequest } from "effect/unstable/http" +import { HttpBody, HttpClient, HttpClientError, HttpClientRequest } from "effect/unstable/http" import { Database } from "@opencode-ai/core/database/database" import { asc } from "drizzle-orm" import { eq } from "drizzle-orm" diff --git a/packages/opencode/src/effect/app-runtime.ts b/packages/opencode/src/effect/app-runtime.ts index d17326966f..d010eb8039 100644 --- a/packages/opencode/src/effect/app-runtime.ts +++ b/packages/opencode/src/effect/app-runtime.ts @@ -44,7 +44,6 @@ import { Vcs } from "@/project/vcs" import { Workspace } from "@/control-plane/workspace" import { Worktree } from "@/worktree" import { Installation } from "@/installation" -import { ShareNext } from "@/share/share-next" import { SessionShare } from "@/share/session" import { Npm } from "@opencode-ai/core/npm" import { memoMap } from "@opencode-ai/core/effect/memo-map" @@ -103,7 +102,6 @@ export const AppLayer = AppNodeBuilderV1.build( Workspace.node, Worktree.node, Installation.node, - ShareNext.node, SessionShare.node, ]), ).pipe(Layer.provideMerge(AppNodeBuilderV1.build(Ripgrep.node)), Layer.provideMerge(Observability.layer)) diff --git a/packages/opencode/src/effect/bootstrap-runtime.ts b/packages/opencode/src/effect/bootstrap-runtime.ts deleted file mode 100644 index 57fe43b46e..0000000000 --- a/packages/opencode/src/effect/bootstrap-runtime.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Layer, ManagedRuntime } from "effect" -import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder" -import { LayerNode } from "@opencode-ai/core/effect/layer-node" - -import { Plugin } from "@/plugin" -import { LSP } from "@/lsp/lsp" -import { Format } from "@/format" -import { ShareNext } from "@/share/share-next" -import { Vcs } from "@/project/vcs" -import { Snapshot } from "@/snapshot" -import { Config } from "@/config/config" -import * as Observability from "@opencode-ai/core/observability" -import { memoMap } from "@opencode-ai/core/effect/memo-map" - -export const BootstrapLayer = AppNodeBuilder.build( - LayerNode.group([Config.node, Plugin.node, ShareNext.node, Format.node, LSP.node, Vcs.node, Snapshot.node]), -).pipe(Layer.provide(Observability.layer)) - -export const BootstrapRuntime = ManagedRuntime.make(BootstrapLayer, { memoMap }) diff --git a/packages/opencode/src/image/image.ts b/packages/opencode/src/image/image.ts index 744bd3fc95..454c11843e 100644 --- a/packages/opencode/src/image/image.ts +++ b/packages/opencode/src/image/image.ts @@ -1,7 +1,6 @@ import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { Config } from "@/config/config" import { SessionV1 } from "@opencode-ai/core/v1/session" -import type { MessageV2 } from "@/session/message-v2" import photonWasm from "@silvia-odwyer/photon-node/photon_rs_bg.wasm" with { type: "file" } import { Context, Effect, Layer, Schema } from "effect" import path from "node:path" diff --git a/packages/opencode/src/installation/index.ts b/packages/opencode/src/installation/index.ts index 4300220255..c8d7fd2c0a 100644 --- a/packages/opencode/src/installation/index.ts +++ b/packages/opencode/src/installation/index.ts @@ -17,21 +17,8 @@ import { InstallationEvent } from "@opencode-ai/schema/installation-event" export type Method = "curl" | "npm" | "yarn" | "pnpm" | "bun" | "brew" | "scoop" | "choco" | "unknown" -export type ReleaseType = "patch" | "minor" | "major" - export const Event = InstallationEvent -export function getReleaseType(current: string, latest: string): ReleaseType { - const currMajor = semver.major(current) - const currMinor = semver.minor(current) - const newMajor = semver.major(latest) - const newMinor = semver.minor(latest) - - if (newMajor > currMajor) return "major" - if (newMinor > currMinor) return "minor" - return "patch" -} - export const Info = Schema.Struct({ version: Schema.String, latest: Schema.String, @@ -44,10 +31,6 @@ export function userAgent(client = "cli") { export const USER_AGENT = userAgent() -export function isPreview() { - return InstallationChannel !== "latest" -} - export function isLocal() { return InstallationChannel === "local" } @@ -60,25 +43,63 @@ export class UpgradeFailedError extends Schema.TaggedErrorClass Effect.Effect readonly method: () => Effect.Effect readonly latest: (method?: Method) => Effect.Effect readonly upgrade: (method: Method, target: string) => Effect.Effect + readonly upgradeMajor: (method: Method) => Effect.Effect } +// OpenCode 2 ships under different package names but the same `opencode` binary, so package +// manager installs remove V1 first and restore it if the V2 install fails. +const MAJOR_INSTALL: Partial> = { + npm: { + remove: ["npm", "uninstall", "-g", "opencode-ai"], + install: ["npm", "install", "-g", "@opencode/cli"], + restore: ["npm", "install", "-g", `opencode-ai@${InstallationVersion}`], + }, + pnpm: { + remove: ["pnpm", "remove", "-g", "opencode-ai"], + install: ["pnpm", "add", "-g", "--allow-build=@opencode/cli", "@opencode/cli"], + restore: ["pnpm", "add", "-g", `opencode-ai@${InstallationVersion}`], + }, + bun: { + remove: ["bun", "remove", "-g", "opencode-ai"], + install: ["bun", "install", "-g", "--trust", "@opencode/cli"], + restore: ["bun", "install", "-g", `opencode-ai@${InstallationVersion}`], + }, + yarn: { + remove: ["yarn", "global", "remove", "opencode-ai"], + install: ["yarn", "global", "add", "@opencode/cli"], + restore: ["yarn", "global", "add", `opencode-ai@${InstallationVersion}`], + }, +} + +export const MAJOR_INSTRUCTIONS = "https://opencode.ai/v2/docs" + export class Service extends Context.Service()("@opencode/Installation") {} export const use = serviceUse(Service) @@ -164,6 +185,70 @@ const layer: Layer.Layer new UpgradeFailedError({ stderr: upgradeFailure("curl") })), ) + const majorUpgrade = Effect.fnUntraced(function* (m: Method) { + if (m === "curl") { + // The V2 installer writes to the same ~/.opencode/bin/opencode path, replacing V1 in place. + const response = yield* httpOk + .execute(HttpClientRequest.get("https://opencode.ai/v2/install")) + .pipe(Effect.mapError(() => new UpgradeFailedError({ stderr: upgradeFailure("curl") }))) + const body = yield* response.text.pipe( + Effect.mapError(() => new UpgradeFailedError({ stderr: upgradeFailure("curl") })), + ) + return yield* run([yield* upgradeScriptShell(), "-c", body]) + } + + if (m === "brew") { + const formula = yield* getBrewFormula() + const env = { HOMEBREW_NO_AUTO_UPDATE: "1" } + const removed = yield* run(["brew", "uninstall", formula], { env }) + if (removed.code !== 0) return removed + const installed = yield* run(["brew", "install", "anomalyco/tap/opencode-v2"], { env }) + if (installed.code !== 0) yield* run(["brew", "install", formula], { env }) + return installed + } + + const steps = MAJOR_INSTALL[m] + if (!steps) + return yield* new UpgradeFailedError({ + stderr: `OpenCode 2 can't be installed automatically with ${m}. See ${MAJOR_INSTRUCTIONS}`, + }) + const removed = yield* run(steps.remove) + if (removed.code !== 0) return removed + const installed = yield* run(steps.install) + if (installed.code !== 0) yield* run(steps.restore) + return installed + }) + + const npmLatest = Effect.fnUntraced(function* () { + const response = yield* httpOk.execute( + HttpClientRequest.get(`${yield* NpmConfig.registry(process.cwd())}/opencode-ai/${NPM_TAG}`).pipe( + HttpClientRequest.acceptJson, + ), + ) + const data = yield* HttpClientResponse.schemaBodyJson(NpmPackage)(response) + return data.version + }) + + // Chocolatey can only install versions its moderated community feed has published. + const chocoHas = Effect.fnUntraced(function* (version: string) { + const response = yield* httpOk.execute( + HttpClientRequest.get( + `https://community.chocolatey.org/api/v2/Packages?$filter=Id%20eq%20%27opencode%27%20and%20Version%20eq%20%27${encodeURIComponent(version)}%27&$select=Version`, + ).pipe(HttpClientRequest.setHeaders({ Accept: "application/json;odata=verbose" })), + ) + const data = yield* HttpClientResponse.schemaBodyJson(ChocoPackage)(response) + return data.d.results.length > 0 + }) + + const tapVersion = Effect.fnUntraced( + function* (formula: string) { + const infoJson = yield* text(["brew", "info", "--json=v2", formula]) + const info = yield* Schema.decodeUnknownEffect(Schema.fromJsonString(BrewInfoV2))(infoJson) + return info.formulae[0].versions.stable + }, + Effect.orElseSucceed(() => undefined), + ) + const result: Interface = { info: Effect.fn("Installation.info")(function* () { return { @@ -205,64 +290,24 @@ const layer: Layer.Layer= 2) + return yield* new UpgradeFailedError({ + stderr: `OpenCode ${target} is OpenCode 2. Upgrade with \`opencode upgrade --major\` or see ${MAJOR_INSTRUCTIONS}`, + }) let upgradeResult: { code: number; stdout: string; stderr: string } | undefined switch (m) { case "curl": @@ -277,25 +322,36 @@ const layer: Layer.Layer) => runPromise((s) => s.latest(...args)) export const method = () => runPromise((s) => s.method()) export const upgrade = (...args: Parameters) => runPromise((s) => s.upgrade(...args)) +export const upgradeMajor = (...args: Parameters) => + runPromise((s) => s.upgradeMajor(...args)) export * as Installation from "." diff --git a/packages/opencode/src/lsp/client.ts b/packages/opencode/src/lsp/client.ts index 08d8a53d9b..c1d3da9537 100644 --- a/packages/opencode/src/lsp/client.ts +++ b/packages/opencode/src/lsp/client.ts @@ -4,7 +4,7 @@ import { createMessageConnection, StreamMessageReader, StreamMessageWriter } fro import type { Diagnostic as VSCodeDiagnostic } from "vscode-languageserver-types" import { Process } from "@/util/process" import { LANGUAGE_EXTENSIONS } from "./language" -import { Effect, Schema } from "effect" +import { Schema } from "effect" import type * as LSPServer from "./server" import { withTimeout } from "../util/timeout" import { Filesystem } from "@/util/filesystem" diff --git a/packages/opencode/src/project/bootstrap.ts b/packages/opencode/src/project/bootstrap.ts index acf0caed3c..d11e4e8e62 100644 --- a/packages/opencode/src/project/bootstrap.ts +++ b/packages/opencode/src/project/bootstrap.ts @@ -6,7 +6,6 @@ import { Snapshot } from "../snapshot" import * as Project from "./project" import * as Vcs from "./vcs" import { InstanceState } from "@/effect/instance-state" -import { ShareNext } from "@/share/share-next" import { Effect, Layer } from "effect" import { Config } from "@/config/config" import { Service } from "./bootstrap-service" @@ -25,7 +24,6 @@ const layer = Layer.effect( const lsp = yield* LSP.Service const plugin = yield* Plugin.Service const project = yield* Project.Service - const shareNext = yield* ShareNext.Service const snapshot = yield* Snapshot.Service const vcs = yield* Vcs.Service @@ -39,7 +37,7 @@ const layer = Layer.effect( // Each service self-manages its own slow work via Effect.forkScoped against // its per-instance state scope. We just await materialization here. yield* Effect.forEach( - [lsp, shareNext, format, vcs, snapshot, project], + [lsp, format, vcs, snapshot, project], (s) => s.init().pipe(Effect.catchCause((cause) => Effect.logWarning("init failed", { cause }))), { concurrency: "unbounded", discard: true }, ).pipe(Effect.withSpan("InstanceBootstrap.init")) @@ -52,7 +50,7 @@ const layer = Layer.effect( export const node = makeGlobalNode({ service: Service, layer: layer, - deps: [Config.node, Format.node, LSP.node, Plugin.node, Project.node, ShareNext.node, Snapshot.node, Vcs.node], + deps: [Config.node, Format.node, LSP.node, Plugin.node, Project.node, Snapshot.node, Vcs.node], }) export * as InstanceBootstrap from "./bootstrap" diff --git a/packages/opencode/src/provider/provider.ts b/packages/opencode/src/provider/provider.ts index 0c66f6597d..3da8d1181b 100644 --- a/packages/opencode/src/provider/provider.ts +++ b/packages/opencode/src/provider/provider.ts @@ -1616,10 +1616,13 @@ const layer = Layer.effect( release_date: model.release_date ?? existingModel?.release_date ?? "", variants: {}, } + // Configured reasoning options replace the catalog variants; configured variants still apply on top. const variants = - existingModel?.api.npm === parsedModel.api.npm - ? (existingModel.variants ?? ProviderTransform.variants(parsedModel)) - : ProviderTransform.variants(parsedModel) + model.reasoning_options !== undefined + ? (ProviderTransform.reasoningVariants(model, parsedModel) ?? ProviderTransform.variants(parsedModel)) + : existingModel?.api.npm === parsedModel.api.npm + ? (existingModel.variants ?? ProviderTransform.variants(parsedModel)) + : ProviderTransform.variants(parsedModel) const merged = mergeDeep(variants, model.variants ?? {}) parsedModel.variants = mapValues( pickBy(merged, (v) => !v.disabled), diff --git a/packages/opencode/src/provider/transform.ts b/packages/opencode/src/provider/transform.ts index 8ae8b4d9f1..117eb4b9c2 100644 --- a/packages/opencode/src/provider/transform.ts +++ b/packages/opencode/src/provider/transform.ts @@ -1714,7 +1714,10 @@ export function schema(model: Provider.Model, schema: JSONSchema7): JSONSchema7 return schema } -export function reasoningVariants(model: ModelsDev.Model, target: Provider.Model): Provider.Model["variants"] { +export function reasoningVariants( + model: Pick, + target: Provider.Model, +): Provider.Model["variants"] { const options = model.reasoning_options if (options === undefined) return if (options.length === 0) return {} diff --git a/packages/opencode/src/server/routes/instance/httpapi/groups/pty.ts b/packages/opencode/src/server/routes/instance/httpapi/groups/pty.ts index 9d49009a5c..25884ede2c 100644 --- a/packages/opencode/src/server/routes/instance/httpapi/groups/pty.ts +++ b/packages/opencode/src/server/routes/instance/httpapi/groups/pty.ts @@ -1,7 +1,7 @@ import { Pty } from "@opencode-ai/core/pty" import { PtyTicket } from "@opencode-ai/core/pty/ticket" import { PtyID } from "@opencode-ai/core/pty/schema" -import { PTY_CONNECT_TICKET_QUERY } from "@/server/shared/pty-ticket" +import { PTY_CONNECT_PATH, PTY_CONNECT_TICKET_QUERY } from "@/server/shared/pty-ticket" import { Schema } from "effect" import { HttpApi, HttpApiEndpoint, HttpApiError, HttpApiGroup, OpenApi } from "effect/unstable/httpapi" import { Authorization, PtyConnectAuthorization } from "../middleware/authorization" @@ -34,7 +34,7 @@ export const PtyPaths = { update: `${root}/:ptyID`, remove: `${root}/:ptyID`, connectToken: `${root}/:ptyID/connect-token`, - connect: `${root}/:ptyID/connect`, + connect: PTY_CONNECT_PATH, } as const export const PtyApi = HttpApi.make("pty") diff --git a/packages/opencode/src/server/routes/instance/httpapi/handlers/pty.ts b/packages/opencode/src/server/routes/instance/httpapi/handlers/pty.ts index 6446c9d28b..8949e68131 100644 --- a/packages/opencode/src/server/routes/instance/httpapi/handlers/pty.ts +++ b/packages/opencode/src/server/routes/instance/httpapi/handlers/pty.ts @@ -184,6 +184,12 @@ export const ptyConnectHandlers = HttpApiBuilder.group(PtyConnectApi, "pty-conne params: { ptyID: PtyID } request: HttpServerRequest.HttpServerRequest }) { + if (!validOrigin(ctx.request, cors)) return HttpServerResponse.empty({ status: 403 }) + + const ticket = new URL(ctx.request.url, "http://localhost").searchParams.get(PTY_CONNECT_TICKET_QUERY) + if (ticket && !(yield* tickets.consume({ ticket, ptyID: ctx.params.ptyID, ...(yield* ticketScope) }))) + return HttpServerResponse.empty({ status: 403 }) + const exists = yield* pty(Pty.Service.use((service) => service.get(ctx.params.ptyID))).pipe( Effect.map((info) => info.status === "running"), Effect.catchTag("Pty.NotFoundError", () => Effect.succeed(false)), @@ -192,13 +198,6 @@ export const ptyConnectHandlers = HttpApiBuilder.group(PtyConnectApi, "pty-conne const query = Schema.decodeUnknownOption(CursorQuery)(yield* HttpServerRequest.ParsedSearchParams) if (Option.isNone(query)) return HttpServerResponse.empty({ status: 400 }) - const ticket = new URL(ctx.request.url, "http://localhost").searchParams.get(PTY_CONNECT_TICKET_QUERY) - if (ticket) { - const valid = validOrigin(ctx.request, cors) - ? yield* tickets.consume({ ticket, ptyID: ctx.params.ptyID, ...(yield* ticketScope) }) - : false - if (!valid) return HttpServerResponse.empty({ status: 403 }) - } const parsedCursor = query.value.cursor === undefined ? undefined : Number(query.value.cursor) const cursor = parsedCursor !== undefined && Number.isSafeInteger(parsedCursor) && parsedCursor >= -1 diff --git a/packages/opencode/src/server/routes/instance/httpapi/middleware/authorization.ts b/packages/opencode/src/server/routes/instance/httpapi/middleware/authorization.ts index 61ce39ad39..10f50a4bd2 100644 --- a/packages/opencode/src/server/routes/instance/httpapi/middleware/authorization.ts +++ b/packages/opencode/src/server/routes/instance/httpapi/middleware/authorization.ts @@ -2,7 +2,7 @@ import { ServerAuth } from "@/server/auth" import { Effect, Encoding, Layer, Redacted } from "effect" import { HttpEffect, HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http" import { HttpApiError, HttpApiMiddleware } from "effect/unstable/httpapi" -import { hasPtyConnectTicketURL } from "@/server/shared/pty-ticket" +import { PTY_CONNECT_PATH, PTY_CONNECT_TICKET_QUERY } from "@/server/shared/pty-ticket" import { isPublicUIPath } from "@/server/shared/public-ui" export { Authorization as ServerAuthorization, @@ -139,8 +139,11 @@ export const ptyConnectAuthorizationLayer = Layer.effect( return PtyConnectAuthorization.of((effect) => Effect.gen(function* () { const request = yield* HttpServerRequest.HttpServerRequest + const route = yield* HttpRouter.RouteContext + // Use the route selected by Effect so authorization and dispatch cannot disagree about the request path. const url = new URL(request.url, "http://localhost") - if (hasPtyConnectTicketURL(url)) return yield* effect + if (route.route.path === PTY_CONNECT_PATH && !!url.searchParams.get(PTY_CONNECT_TICKET_QUERY)) + return yield* effect return yield* credentialFromURL(url, request).pipe( Effect.flatMap((credential) => validateCredential(effect, credential, config)), ) diff --git a/packages/opencode/src/server/routes/instance/httpapi/server.ts b/packages/opencode/src/server/routes/instance/httpapi/server.ts index 20320e10b4..5cc5865e53 100644 --- a/packages/opencode/src/server/routes/instance/httpapi/server.ts +++ b/packages/opencode/src/server/routes/instance/httpapi/server.ts @@ -40,7 +40,6 @@ import { SessionStatus } from "@/session/status" import { SessionSummary } from "@/session/summary" import { Todo } from "@/session/todo" import { SessionShare } from "@/share/session" -import { ShareNext } from "@/share/share-next" import { Skill } from "@/skill" import { Discovery } from "@/skill/discovery" import { Snapshot } from "@/snapshot" @@ -264,7 +263,6 @@ const app = LayerNode.group([ Workspace.node, Worktree.node, Installation.node, - ShareNext.node, SessionShare.node, InstanceStore.node, httpClient, diff --git a/packages/opencode/src/server/shared/pty-ticket.ts b/packages/opencode/src/server/shared/pty-ticket.ts index 0efd06e6a7..53008f2444 100644 --- a/packages/opencode/src/server/shared/pty-ticket.ts +++ b/packages/opencode/src/server/shared/pty-ticket.ts @@ -1,15 +1,4 @@ export const PTY_CONNECT_TICKET_QUERY = "ticket" export const PTY_CONNECT_TOKEN_HEADER = "x-opencode-ticket" export const PTY_CONNECT_TOKEN_HEADER_VALUE = "1" - -const PTY_CONNECT_PATH = /^\/pty\/[^/]+\/connect$/ - -// Auth middleware skips Basic Auth when this matches; the PTY connect handler -// is then responsible for validating the ticket. -export function isPtyConnectPath(pathname: string) { - return PTY_CONNECT_PATH.test(pathname) -} - -export function hasPtyConnectTicketURL(url: URL) { - return isPtyConnectPath(url.pathname) && !!url.searchParams.get(PTY_CONNECT_TICKET_QUERY) -} +export const PTY_CONNECT_PATH = "/pty/:ptyID/connect" diff --git a/packages/opencode/src/server/shared/ui.ts b/packages/opencode/src/server/shared/ui.ts index d3f2c45113..e0e3371846 100644 --- a/packages/opencode/src/server/shared/ui.ts +++ b/packages/opencode/src/server/shared/ui.ts @@ -10,7 +10,6 @@ export const UI_UPSTREAM = new URL("https://app.opencode.ai") export const csp = (hash = "") => `default-src 'self'; script-src 'self' 'wasm-unsafe-eval'${hash ? ` 'sha256-${hash}'` : ""}; style-src 'self' 'unsafe-inline'; img-src 'self' data: https: blob:; font-src 'self' data:; media-src 'self' data:; connect-src * data: blob:` -export const DEFAULT_CSP = csp() export function themePreloadHash(body: string) { return body.match(/]*\bsrc\s*=)[^>]*\bid=(['"])oc-theme-preload-script\1[^>]*>([\s\S]*?)<\/script>/i) diff --git a/packages/opencode/src/session/instruction.ts b/packages/opencode/src/session/instruction.ts index 7f593550d4..6b9c09403b 100644 --- a/packages/opencode/src/session/instruction.ts +++ b/packages/opencode/src/session/instruction.ts @@ -3,7 +3,7 @@ import { httpClient } from "@opencode-ai/core/effect/app-node-platform" import path from "path" import { SessionV1 } from "@opencode-ai/core/v1/session" import { Effect, Layer, Context } from "effect" -import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http" +import { HttpClient, HttpClientRequest } from "effect/unstable/http" import { Config } from "@/config/config" import { InstanceState } from "@/effect/instance-state" import { RuntimeFlags } from "@/effect/runtime-flags" @@ -11,7 +11,6 @@ import { Flag } from "@opencode-ai/core/flag/flag" import { FSUtil } from "@opencode-ai/core/fs-util" import { withTransientReadRetry } from "@/util/effect-http-client" import { Global } from "@opencode-ai/core/global" -import type { MessageV2 } from "./message-v2" import type { MessageID } from "./schema" function extract(messages: SessionV1.WithParts[]) { diff --git a/packages/opencode/src/session/llm.ts b/packages/opencode/src/session/llm.ts index a99f8acff2..05e6a41ecc 100644 --- a/packages/opencode/src/session/llm.ts +++ b/packages/opencode/src/session/llm.ts @@ -14,7 +14,6 @@ import { GitLabWorkflowLanguageModel } from "gitlab-ai-provider" import { ProviderTransform } from "@/provider/transform" import { Config } from "@/config/config" import type { Agent } from "@/agent/agent" -import type { MessageV2 } from "./message-v2" import { Plugin } from "@/plugin" import { Permission } from "@/permission" import { EventV2Bridge } from "@/event-v2-bridge" diff --git a/packages/opencode/src/session/llm/request.ts b/packages/opencode/src/session/llm/request.ts index 8de5318c64..62ac866d12 100644 --- a/packages/opencode/src/session/llm/request.ts +++ b/packages/opencode/src/session/llm/request.ts @@ -6,7 +6,6 @@ import type { RuntimeFlags } from "@/effect/runtime-flags" import { InstanceState } from "@/effect/instance-state" import { Permission } from "@/permission" import type { Agent } from "@/agent/agent" -import type { MessageV2 } from "../message-v2" import type { Provider } from "@/provider/provider" import { ProviderTransform } from "@/provider/transform" import { SystemPrompt } from "../system" diff --git a/packages/opencode/src/session/message-v2.ts b/packages/opencode/src/session/message-v2.ts index 2bd0e51715..75f2d89379 100644 --- a/packages/opencode/src/session/message-v2.ts +++ b/packages/opencode/src/session/message-v2.ts @@ -162,6 +162,12 @@ export const toModelMessagesEffect = Effect.fnUntraced(function* ( return false } + // xAI rejects any other image format (e.g. GIF) with invalid_image, failing the whole request. + const rejectedByProvider = (attachment: { mime: string }) => + model.api.npm === "@ai-sdk/xai" && + attachment.mime.startsWith("image/") && + !["image/png", "image/jpeg", "image/webp"].includes(attachment.mime) + const toModelOutput = (options: { toolCallId: string; input: unknown; output: unknown }) => { const output = options.output if (typeof output === "string") { @@ -297,7 +303,10 @@ export const toModelMessagesEffect = Effect.fnUntraced(function* ( const outputText = part.state.time.compacted ? "[Old tool result content cleared]" : truncateToolOutput(part.state.output, options?.toolOutputMaxChars) - const attachments = part.state.time.compacted || options?.stripMedia ? [] : (part.state.attachments ?? []) + const attachments = + part.state.time.compacted || options?.stripMedia + ? [] + : (part.state.attachments ?? []).filter((a) => !rejectedByProvider(a)) // For providers that don't support media in tool results, extract media files // (images, PDFs) to be sent as a separate user message diff --git a/packages/opencode/src/session/overflow.ts b/packages/opencode/src/session/overflow.ts index 3374d1c9f8..1327b9bb6e 100644 --- a/packages/opencode/src/session/overflow.ts +++ b/packages/opencode/src/session/overflow.ts @@ -1,9 +1,7 @@ -import type { Config } from "@/config/config" import { ConfigV1 } from "@opencode-ai/core/v1/config/config" import { SessionV1 } from "@opencode-ai/core/v1/session" import type { Provider } from "@/provider/provider" import { ProviderTransform } from "@/provider/transform" -import type { MessageV2 } from "./message-v2" const COMPACTION_BUFFER = 20_000 diff --git a/packages/opencode/src/session/prompt/copilot-gpt-5.txt b/packages/opencode/src/session/prompt/copilot-gpt-5.txt deleted file mode 100644 index d8da6d2017..0000000000 --- a/packages/opencode/src/session/prompt/copilot-gpt-5.txt +++ /dev/null @@ -1,143 +0,0 @@ -You are an expert AI programming assistant -Your name is opencode -Keep your answers short and impersonal. - -You are a highly sophisticated coding agent with expert-level knowledge across programming languages and frameworks. -You are an agent - you must keep going until the user's query is completely resolved, before ending your turn and yielding back to the user. -Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough. -You MUST iterate and keep going until the problem is solved. -You have everything you need to resolve this problem. I want you to fully solve this autonomously before coming back to me. -Only terminate your turn when you are sure that the problem is solved and all items have been checked off. Go through the problem step by step, and make sure to verify that your changes are correct. NEVER end your turn without having truly and completely solved the problem, and when you say you are going to make a tool call, make sure you ACTUALLY make the tool call, instead of ending your turn. -Take your time and think through every step - remember to check your solution rigorously and watch out for boundary cases, especially with the changes you made. Your solution must be perfect. If not, continue working on it. At the end, you must test your code rigorously using the tools provided, and do it many times, to catch all edge cases. If it is not robust, iterate more and make it perfect. Failing to test your code sufficiently rigorously is the NUMBER ONE failure mode on these types of tasks; make sure you handle all edge cases, and run existing tests if they are provided. -You MUST plan extensively before each function call, and reflect extensively on the outcomes of the previous function calls. DO NOT do this entire process by making function calls only, as this can impair your ability to solve the problem and think insightfully. -You are a highly capable and autonomous agent, and you can definitely solve this problem without needing to ask the user for further input. -You will be given some context and attachments along with the user prompt. You can use them if they are relevant to the task, and ignore them if not. -If you can infer the project type (languages, frameworks, and libraries) from the user's query or the context that you have, make sure to keep them in mind when making changes. -Use multiple tools as needed, and do not give up until the task is complete or impossible. -NEVER print codeblocks for file changes or terminal commands unless explicitly requested - use the appropriate tool. -Do not repeat yourself after tool calls; continue from where you left off. -You must use webfetch tool to recursively gather all information from URL's provided to you by the user, as well as any links you find in the content of those pages. - - -# Workflow -1. Understand the problem deeply. Carefully read the issue and think critically about what is required. -2. Investigate the codebase. Explore relevant files, search for key functions, and gather context. -3. Develop a clear, step-by-step plan. Break down the fix into manageable, -incremental steps - use the todo tool to track your progress. -4. Implement the fix incrementally. Make small, testable code changes. -5. Debug as needed. Use debugging techniques to isolate and resolve issues. -6. Test frequently. Run tests after each change to verify correctness. -7. Iterate until the root cause is fixed and all tests pass. -8. Reflect and validate comprehensively. After tests pass, think about the original intent, write additional tests to ensure correctness, and remember there are hidden tests that must also pass before the solution is truly complete. -**CRITICAL - Before ending your turn:** -- Review and update the todo list, marking completed, skipped (with explanations), or blocked items. - -## 1. Deeply Understand the Problem -- Carefully read the issue and think hard about a plan to solve it before coding. -- Break down the problem into manageable parts. Consider the following: -- What is the expected behavior? -- What are the edge cases? -- What are the potential pitfalls? -- How does this fit into the larger context of the codebase? -- What are the dependencies and interactions with other parts of the code - -## 2. Codebase Investigation -- Explore relevant files and directories. -- Search for key functions, classes, or variables related to the issue. -- Read and understand relevant code snippets. -- Identify the root cause of the problem. -- Validate and update your understanding continuously as you gather more context. - -## 3. Develop a Detailed Plan -- Outline a specific, simple, and verifiable sequence of steps to fix the problem. -- Create a todo list to track your progress. -- Each time you check off a step, update the todo list. -- Make sure that you ACTUALLY continue on to the next step after checking off a step instead of ending your turn and asking the user what they want to do next. - -## 4. Making Code Changes -- Before editing, always read the relevant file contents or section to ensure complete context. -- Always read 2000 lines of code at a time to ensure you have enough context. -- If a patch is not applied correctly, attempt to reapply it. -- Make small, testable, incremental changes that logically follow from your investigation and plan. -- Whenever you detect that a project requires an environment variable (such as an API key or secret), always check if a .env file exists in the project root. If it does not exist, automatically create a .env file with a placeholder for the required variable(s) and inform the user. Do this proactively, without waiting for the user to request it. - -## 5. Debugging -- Make code changes only if you have high confidence they can solve the problem -- When debugging, try to determine the root cause rather than addressing symptoms -- Debug for as long as needed to identify the root cause and identify a fix -- Use print statements, logs, or temporary code to inspect program state, including descriptive statements or error messages to understand what's happening -- To test hypotheses, you can also add test statements or functions -- Revisit your assumptions if unexpected behavior occurs. - - - -Always communicate clearly and concisely in a warm and friendly yet professional tone. Use upbeat language and sprinkle in light, witty humor where appropriate. -If the user corrects you, do not immediately assume they are right. Think deeply about their feedback and how you can incorporate it into your solution. Stand your ground if you have the evidence to support your conclusion. - - - -These instructions only apply when the question is about the user's workspace. -First, analyze the developer's request to determine how complicated their task is. Leverage any of the tools available to you to gather the context needed to provided a complete and accurate response. Keep your search focused on the developer's request, and don't run extra tools if the developer's request clearly can be satisfied by just one. -If the developer wants to implement a feature and they have not specified the relevant files, first break down the developer's request into smaller concepts and think about the kinds of files you need to grasp each concept. -If you aren't sure which tool is relevant, you can call multiple tools. You can call tools repeatedly to take actions or gather as much context as needed. -Don't make assumptions about the situation. Gather enough context to address the developer's request without going overboard. -Think step by step: -1. Read the provided relevant workspace information (code excerpts, file names, and symbols) to understand the user's workspace. -2. Consider how to answer the user's prompt based on the provided information and your specialized coding knowledge. Always assume that the user is asking about the code in their workspace instead of asking a general programming question. Prefer using variables, functions, types, and classes from the workspace over those from the standard library. -3. Generate a response that clearly and accurately answers the user's question. In your response, add fully qualified links for referenced symbols (example: [`namespace.VariableName`](path/to/file.ts)) and links for files (example: [path/to/file](path/to/file.ts)) so that the user can open them. -Remember that you MUST add links for all referenced symbols from the workspace and fully qualify the symbol name in the link, for example: [`namespace.functionName`](path/to/util.ts). -Remember that you MUST add links for all workspace files, for example: [path/to/file.js](path/to/file.js) - - - -These instructions only apply when the question is about the user's workspace. -Unless it is clear that the user's question relates to the current workspace, you should avoid using workspace search tools and instead prefer to answer the user's question directly. -Remember that you can call multiple tools in one response. -Use semantic_search to search for high level concepts or descriptions of functionality in the user's question. This is the best place to start if you don't know where to look or the exact strings found in the codebase. -Prefer search_workspace_symbols over grep_search when you have precise code identifiers to search for. -Prefer grep_search over semantic_search when you have precise keywords to search for. -The tools file_search, grep_search, and get_changed_files are deterministic and comprehensive, so do not repeatedly invoke them with the same arguments. - - -When suggesting code changes or new content, use Markdown code blocks. -To start a code block, use 4 backticks. -After the backticks, add the programming language name. -If the code modifies an existing file or should be placed at a specific location, add a line comment with 'filepath:' and the file path. -If you want the user to decide where to place the code, do not add the file path comment. -In the code block, use a line comment with '...existing code...' to indicate code that is already present in the file. -````languageId -// filepath: /path/to/file -// ...existing code... -{ changed code } -// ...existing code... -{ changed code } -// ...existing code... -```` - -If the user is requesting a code sample, you can answer it directly without using any tools. -When using a tool, follow the JSON schema very carefully and make sure to include ALL required properties. -No need to ask permission before using a tool. -NEVER say the name of a tool to a user. For example, instead of saying that you'll use the run_in_terminal tool, say "I'll run the command in a terminal". -If you think running multiple tools can answer the user's question, prefer calling them in parallel whenever possible, but do not call semantic_search in parallel. -If semantic_search returns the full contents of the text files in the workspace, you have all the workspace context. -You can use the grep_search to get an overview of a file by searching for a string within that one file, instead of using read_file many times. -If you don't know exactly the string or filename pattern you're looking for, use semantic_search to do a semantic search across the workspace. -When invoking a tool that takes a file path, always use the absolute file path. -Tools can be disabled by the user. You may see tools used previously in the conversation that are not currently available. Be careful to only use the tools that are currently available to you. - - - -Use proper Markdown formatting in your answers. When referring to a filename or symbol in the user's workspace, wrap it in backticks. -When sharing setup or run steps for the user to execute, render commands in fenced code blocks with an appropriate language tag (`bash`, `sh`, `powershell`, `python`, etc.). Keep one command per line; avoid prose-only representations of commands. -Keep responses conversational and fun—use a brief, friendly preamble that acknowledges the goal and states what you're about to do next. Avoid literal scaffold labels like "Plan:", "Task receipt:", or "Actions:"; instead, use short paragraphs and, when helpful, concise bullet lists. Do not start with filler acknowledgements (e.g., "Sounds good", "Great", "Okay, I will…"). For multistep tasks, maintain a lightweight checklist implicitly and weave progress into your narration. -For section headers in your response, use level-2 Markdown headings (`##`) for top-level sections and level-3 (`###`) for subsections. Choose titles dynamically to match the task and content. Do not hard-code fixed section names; create only the sections that make sense and only when they have non-empty content. Keep headings short and descriptive (e.g., "actions taken", "files changed", "how to run", "performance", "notes"), and order them naturally (actions > artifacts > how to run > performance > notes) when applicable. You may add a tasteful emoji to a heading when it improves scannability; keep it minimal and professional. Headings must start at the beginning of the line with `## ` or `### `, have a blank line before and after, and must not be inside lists, block quotes, or code fences. -When listing files created/edited, include a one-line purpose for each file when helpful. In performance sections, base any metrics on actual runs from this session; note the hardware/OS context and mark estimates clearly—never fabricate numbers. In "Try it" sections, keep commands copyable; comments starting with `#` are okay, but put each command on its own line. -If platform-specific acceleration applies, include an optional speed-up fenced block with commands. Close with a concise completion summary describing what changed and how it was verified (build/tests/linters), plus any follow-ups. - -The class `Person` is in `src/models/person.ts`. - -Use KaTeX for math equations in your answers. -Wrap inline math equations in $. -Wrap more complex blocks of math equations in $$. - - diff --git a/packages/opencode/src/session/prompt/plan-reminder-anthropic.txt b/packages/opencode/src/session/prompt/plan-reminder-anthropic.txt deleted file mode 100644 index 28f1e629db..0000000000 --- a/packages/opencode/src/session/prompt/plan-reminder-anthropic.txt +++ /dev/null @@ -1,67 +0,0 @@ - -# Plan Mode - System Reminder - -Plan mode is active. The user indicated that they do not want you to execute yet -- you MUST NOT make any edits (with the exception of the plan file mentioned below), run any non-readonly tools (including changing configs or making commits), or otherwise make any changes to the system. This supersedes any other instructions you have received. - ---- - -## Plan File Info - -No plan file exists yet. You should create your plan at `/Users/aidencline/.claude/plans/happy-waddling-feigenbaum.md` using the Write tool. - -You should build your plan incrementally by writing to or editing this file. NOTE that this is the only file you are allowed to edit - other than this you are only allowed to take READ-ONLY actions. - -**Plan File Guidelines:** The plan file should contain only your final recommended approach, not all alternatives considered. Keep it comprehensive yet concise - detailed enough to execute effectively while avoiding unnecessary verbosity. - ---- - -## Enhanced Planning Workflow - -### Phase 1: Initial Understanding - -**Goal:** Gain a comprehensive understanding of the user's request by reading through code and asking them questions. Critical: In this phase you should only use the Explore subagent type. - -1. Understand the user's request thoroughly - -2. **Launch up to 3 Explore agents IN PARALLEL** (single message, multiple tool calls) to efficiently explore the codebase. Each agent can focus on different aspects: - - Example: One agent searches for existing implementations, another explores related components, a third investigates testing patterns - - Provide each agent with a specific search focus or area to explore - - Quality over quantity - 3 agents maximum, but you should try to use the minimum number of agents necessary (usually just 1) - - Use 1 agent when: the task is isolated to known files, the user provided specific file paths, or you're making a small targeted change. Use multiple agents when: the scope is uncertain, multiple areas of the codebase are involved, or you need to understand existing patterns before planning. - - Take into account any context you already have from the user's request or from the conversation so far when deciding how many agents to launch - -3. Use AskUserQuestion tool to clarify ambiguities in the user request up front. - -### Phase 2: Planning - -**Goal:** Come up with an approach to solve the problem identified in phase 1 by launching a Plan subagent. - -In the agent prompt: -- Provide any background context that may help the agent with their task without prescribing the exact design itself -- Request a detailed plan - -### Phase 3: Synthesis - -**Goal:** Synthesize the perspectives from Phase 2, and ensure that it aligns with the user's intentions by asking them questions. - -1. Collect all agent responses -2. Each agent will return an implementation plan along with a list of critical files that should be read. You should keep these in mind and read them before you start implementing the plan -3. Use AskUserQuestion to ask the users questions about trade offs. - -### Phase 4: Final Plan - -Once you have all the information you need, ensure that the plan file has been updated with your synthesized recommendation including: -- Recommended approach with rationale -- Key insights from different perspectives -- Critical files that need modification - -### Phase 5: Call ExitPlanMode - -At the very end of your turn, once you have asked the user questions and are happy with your final plan file - you should always call ExitPlanMode to indicate to the user that you are done planning. - -This is critical - your turn should only end with either asking the user a question or calling ExitPlanMode. Do not stop unless it's for these 2 reasons. - ---- - -**NOTE:** At any point in time through this workflow you should feel free to ask the user questions or clarifications. Don't make large assumptions about user intent. The goal is to present a well researched plan to the user, and tie any loose ends before implementation begins. - diff --git a/packages/opencode/src/share/session.ts b/packages/opencode/src/share/session.ts index a4ef77fbfd..7634aea18e 100644 --- a/packages/opencode/src/share/session.ts +++ b/packages/opencode/src/share/session.ts @@ -1,10 +1,7 @@ import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { Session } from "@/session/session" import { SessionID } from "@/session/schema" -import { Effect, Layer, Scope, Context } from "effect" -import { Config } from "@/config/config" -import { RuntimeFlags } from "@/effect/runtime-flags" -import { ShareNext } from "./share-next" +import { Effect, Layer, Context } from "effect" export interface Interface { readonly create: (input?: Session.CreateInput) => Effect.Effect @@ -17,32 +14,20 @@ export class Service extends Context.Service()("@opencode/Se const layer = Layer.effect( Service, Effect.gen(function* () { - const cfg = yield* Config.Service const session = yield* Session.Service - const shareNext = yield* ShareNext.Service - const scope = yield* Scope.Scope - const flags = yield* RuntimeFlags.Service - - const share = Effect.fn("SessionShare.share")(function* (sessionID: SessionID) { - const conf = yield* cfg.get() - if (conf.share === "disabled") throw new Error("Sharing is disabled in configuration") - const result = yield* shareNext.create(sessionID) - yield* session.setShare({ sessionID, share: { url: result.url } }) - return result + + // Session sharing was discontinued. The share endpoints stay for API compatibility: share fails and unshare only + // clears the local link. + const share = Effect.fn("SessionShare.share")(function* (_sessionID: SessionID) { + return yield* Effect.fail(new Error("Session sharing has been discontinued")) }) const unshare = Effect.fn("SessionShare.unshare")(function* (sessionID: SessionID) { - yield* shareNext.remove(sessionID) yield* session.setShare({ sessionID, share: undefined }) }) const create = Effect.fn("SessionShare.create")(function* (input?: Session.CreateInput) { - const result = yield* session.create(input) - if (result.parentID) return result - const conf = yield* cfg.get() - if (!(flags.autoShare || conf.share === "auto")) return result - yield* share(result.id).pipe(Effect.ignore, Effect.forkIn(scope)) - return result + return yield* session.create(input) }) return Service.of({ create, share, unshare }) @@ -52,7 +37,7 @@ const layer = Layer.effect( export const node = LayerNode.make({ service: Service, layer: layer, - deps: [Config.node, Session.node, ShareNext.node, RuntimeFlags.node], + deps: [Session.node], }) export * as SessionShare from "./session" diff --git a/packages/opencode/src/share/share-next.ts b/packages/opencode/src/share/share-next.ts deleted file mode 100644 index 60112e10d9..0000000000 --- a/packages/opencode/src/share/share-next.ts +++ /dev/null @@ -1,371 +0,0 @@ -import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { httpClient } from "@opencode-ai/core/effect/app-node-platform" -import type * as SDK from "@opencode-ai/sdk/v2" -import { serviceUse } from "@opencode-ai/core/effect/service-use" -import { Effect, Exit, Layer, Option, Schema, Scope, Context, Stream } from "effect" -import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http" -import { Account } from "@/account/account" -import { EventV2Bridge } from "@/event-v2-bridge" -import { InstanceState } from "@/effect/instance-state" -import { Provider } from "@/provider/provider" - -import { Session } from "@/session/session" -import { MessageV2 } from "@/session/message-v2" -import type { SessionID } from "@/session/schema" -import { Database } from "@opencode-ai/core/database/database" -import { eq } from "drizzle-orm" -import { Config } from "@/config/config" -import { SessionShareTable } from "@opencode-ai/core/share/sql" -import { ProviderV2 } from "@opencode-ai/core/provider" -import { ModelV2 } from "@opencode-ai/core/model" -import { EventV2 } from "@opencode-ai/core/event" - -const disabled = process.env["OPENCODE_DISABLE_SHARE"] === "true" || process.env["OPENCODE_DISABLE_SHARE"] === "1" - -export type Api = { - create: string - sync: (shareID: string) => string - remove: (shareID: string) => string - data: (shareID: string) => string -} - -export type Req = { - headers: Record - api: Api - baseUrl: string -} - -const ShareSchema = Schema.Struct({ - id: Schema.String, - url: Schema.String, - secret: Schema.String, -}) -export type Share = typeof ShareSchema.Type - -type State = { - queue: Map> - scope: Scope.Closeable - shared: Map -} - -type Data = - | { - type: "session" - data: SDK.Session - } - | { - type: "message" - data: SDK.Message - } - | { - type: "part" - data: SDK.Part - } - | { - type: "session_diff" - data: SDK.SnapshotFileDiff[] - } - | { - type: "model" - data: SDK.Model[] - } - -export interface Interface { - readonly init: () => Effect.Effect - readonly url: () => Effect.Effect - readonly request: () => Effect.Effect - readonly create: (sessionID: SessionID) => Effect.Effect - readonly remove: (sessionID: SessionID) => Effect.Effect -} - -export class Service extends Context.Service()("@opencode/ShareNext") {} - -export const use = serviceUse(Service) - -function api(resource: string): Api { - return { - create: `/api/${resource}`, - sync: (shareID) => `/api/${resource}/${shareID}/sync`, - remove: (shareID) => `/api/${resource}/${shareID}`, - data: (shareID) => `/api/${resource}/${shareID}/data`, - } -} - -const legacyApi = api("share") -const consoleApi = api("shares") - -function key(item: Data) { - switch (item.type) { - case "session": - return "session" - case "message": - return `message/${item.data.id}` - case "part": - return `part/${item.data.messageID}/${item.data.id}` - case "session_diff": - return "session_diff" - case "model": - return "model" - } -} - -const layer = Layer.effect( - Service, - Effect.gen(function* () { - const account = yield* Account.Service - const events = yield* EventV2Bridge.Service - const cfg = yield* Config.Service - const { db } = yield* Database.Service - const http = yield* HttpClient.HttpClient - const httpOk = HttpClient.filterStatusOk(http) - const provider = yield* Provider.Service - const session = yield* Session.Service - - function sync(sessionID: SessionID, data: Data[]) { - return Effect.gen(function* () { - if (disabled) return - const share = yield* getCached(sessionID) - if (!share) return - - const s = yield* InstanceState.get(state) - const existing = s.queue.get(sessionID) - if (existing) { - for (const item of data) { - existing.set(key(item), item) - } - return - } - - const next = new Map(data.map((item) => [key(item), item])) - s.queue.set(sessionID, next) - yield* flush(sessionID).pipe( - Effect.delay(1000), - Effect.catchCause((cause) => Effect.logError("share flush failed", { sessionID: sessionID, cause: cause })), - Effect.forkIn(s.scope), - ) - }) - } - - const state: InstanceState.InstanceState = yield* InstanceState.make( - Effect.fn("ShareNext.state")(function* (_ctx) { - const cache: State = { queue: new Map(), scope: yield* Scope.make(), shared: new Map() } - - yield* Effect.addFinalizer(() => - Scope.close(cache.scope, Exit.void).pipe( - Effect.andThen( - Effect.sync(() => { - cache.queue.clear() - cache.shared.clear() - }), - ), - ), - ) - - if (disabled) return cache - - const watch = ( - def: D, - fn: (data: EventV2.Data) => Effect.Effect, - ) => - events.listen((event) => { - if (event.type !== def.type || event.location?.directory !== _ctx.directory) return Effect.void - return fn(event.data as EventV2.Data).pipe( - Effect.catchCause((cause) => - Effect.logError("share subscriber failed", { type: def.type, cause: cause }), - ), - ) - }) - - yield* watch(Session.Event.Updated, (data) => - Effect.gen(function* () { - const info = data.info - yield* sync(info.id, [{ type: "session", data: structuredClone(info) as SDK.Session }]) - }), - ) - yield* watch(MessageV2.Event.Updated, (data) => - Effect.gen(function* () { - const info = data.info - yield* sync(info.sessionID, [{ type: "message", data: structuredClone(info) as SDK.Message }]) - if (info.role !== "user") return - const model = yield* provider.getModel(info.model.providerID, info.model.modelID) - yield* sync(info.sessionID, [{ type: "model", data: [model] }]) - }), - ) - yield* watch(MessageV2.Event.PartUpdated, (data) => - sync(data.part.sessionID, [{ type: "part", data: structuredClone(data.part) as SDK.Part }]), - ) - yield* watch(Session.Event.Diff, (data) => - sync(data.sessionID, [{ type: "session_diff", data: structuredClone(data.diff) as SDK.SnapshotFileDiff[] }]), - ) - yield* watch(Session.Event.Deleted, (data) => remove(data.sessionID)) - - return cache - }), - ) - - const request = Effect.fn("ShareNext.request")(function* () { - const headers: Record = {} - const active = yield* account.active() - if (Option.isNone(active) || !active.value.active_org_id) { - const baseUrl = (yield* cfg.get()).enterprise?.url ?? "https://opncd.ai" - return { headers, api: legacyApi, baseUrl } satisfies Req - } - - const token = yield* account.token(active.value.id) - if (Option.isNone(token)) { - throw new Error("No active account token available for sharing") - } - - headers.authorization = `Bearer ${token.value}` - headers["x-org-id"] = active.value.active_org_id - return { headers, api: consoleApi, baseUrl: active.value.url } satisfies Req - }) - - const get = Effect.fnUntraced(function* (sessionID: SessionID) { - const row = yield* db - .select() - .from(SessionShareTable) - .where(eq(SessionShareTable.session_id, sessionID)) - .get() - .pipe(Effect.orDie) - if (!row) return - return { id: row.id, secret: row.secret, url: row.url } satisfies Share - }) - - const getCached = Effect.fnUntraced(function* (sessionID: SessionID) { - const s = yield* InstanceState.get(state) - if (s.shared.has(sessionID)) { - const cached = s.shared.get(sessionID) - return cached === null ? undefined : cached - } - - const share = yield* get(sessionID) - s.shared.set(sessionID, share ?? null) - return share - }) - - const flush = Effect.fn("ShareNext.flush")(function* (sessionID: SessionID) { - if (disabled) return - const s = yield* InstanceState.get(state) - const queued = s.queue.get(sessionID) - if (!queued) return - - s.queue.delete(sessionID) - - const share = yield* getCached(sessionID) - if (!share) return - - const req = yield* request() - const res = yield* HttpClientRequest.post(`${req.baseUrl}${req.api.sync(share.id)}`).pipe( - HttpClientRequest.setHeaders(req.headers), - HttpClientRequest.bodyJson({ secret: share.secret, data: Array.from(queued.values()) }), - Effect.flatMap((r) => http.execute(r)), - ) - - if (res.status >= 400) { - yield* Effect.logWarning("failed to sync share", { - sessionID: sessionID, - shareID: share.id, - status: res.status, - }) - } - }) - - const full = Effect.fn("ShareNext.full")(function* (sessionID: SessionID) { - yield* Effect.logInfo("full sync", { sessionID: sessionID }) - const info = yield* session.get(sessionID) - const diffs = yield* session.diff(sessionID) - const messages = yield* session.messages({ sessionID }) - const models = yield* Effect.forEach( - Array.from( - new Map( - messages - .filter((msg) => msg.info.role === "user") - .map((msg) => (msg.info as SDK.UserMessage).model) - .map((item) => [`${item.providerID}/${item.modelID}`, item] as const), - ).values(), - ), - (item) => provider.getModel(ProviderV2.ID.make(item.providerID), ModelV2.ID.make(item.modelID)), - { concurrency: 8 }, - ) - - yield* sync(sessionID, [ - { type: "session", data: info }, - ...messages.map((item) => ({ type: "message" as const, data: item.info })), - ...messages.flatMap((item) => item.parts.map((part) => ({ type: "part" as const, data: part }))), - { type: "session_diff", data: diffs }, - { type: "model", data: models }, - ]) - }) - - const init = Effect.fn("ShareNext.init")(function* () { - if (disabled) return - yield* InstanceState.get(state) - }) - - const url = Effect.fn("ShareNext.url")(function* () { - return (yield* request()).baseUrl - }) - - const create = Effect.fn("ShareNext.create")(function* (sessionID: SessionID) { - if (disabled) return { id: "", url: "", secret: "" } - yield* Effect.logInfo("creating share", { sessionID: sessionID }) - const req = yield* request() - const result = yield* HttpClientRequest.post(`${req.baseUrl}${req.api.create}`).pipe( - HttpClientRequest.setHeaders(req.headers), - HttpClientRequest.bodyJson({ sessionID }), - Effect.flatMap((r) => httpOk.execute(r)), - Effect.flatMap(HttpClientResponse.schemaBodyJson(ShareSchema)), - ) - yield* db - .insert(SessionShareTable) - .values({ session_id: sessionID, id: result.id, secret: result.secret, url: result.url }) - .onConflictDoUpdate({ - target: SessionShareTable.session_id, - set: { id: result.id, secret: result.secret, url: result.url }, - }) - .run() - .pipe(Effect.orDie) - const s = yield* InstanceState.get(state) - s.shared.set(sessionID, result) - yield* full(sessionID).pipe( - Effect.catchCause((cause) => Effect.logError("share full sync failed", { sessionID: sessionID, cause: cause })), - Effect.forkIn(s.scope), - ) - return result - }) - - const remove = Effect.fn("ShareNext.remove")(function* (sessionID: SessionID) { - if (disabled) return - yield* Effect.logInfo("removing share", { sessionID: sessionID }) - const s = yield* InstanceState.get(state) - const share = yield* getCached(sessionID) - if (!share) { - s.shared.delete(sessionID) - s.queue.delete(sessionID) - return - } - - const req = yield* request() - yield* HttpClientRequest.delete(`${req.baseUrl}${req.api.remove(share.id)}`).pipe( - HttpClientRequest.setHeaders(req.headers), - HttpClientRequest.bodyJson({ secret: share.secret }), - Effect.flatMap((r) => httpOk.execute(r)), - ) - - yield* db.delete(SessionShareTable).where(eq(SessionShareTable.session_id, sessionID)).run().pipe(Effect.orDie) - s.shared.delete(sessionID) - s.queue.delete(sessionID) - }) - - return Service.of({ init, url, request, create, remove }) - }), -) - -export const node = LayerNode.make({ - service: Service, - layer: layer, - deps: [Account.node, EventV2Bridge.node, Config.node, Database.node, httpClient, Provider.node, Session.node], -}) - -export * as ShareNext from "./share-next" diff --git a/packages/opencode/src/skill/discovery.ts b/packages/opencode/src/skill/discovery.ts index b56a67610f..dc41bc4a66 100644 --- a/packages/opencode/src/skill/discovery.ts +++ b/packages/opencode/src/skill/discovery.ts @@ -2,7 +2,7 @@ import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { httpClient, path } from "@opencode-ai/core/effect/app-node-platform" import { NodePath } from "@effect/platform-node" import { Effect, Layer, Path, Schema, Context } from "effect" -import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http" +import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http" import { withTransientReadRetry } from "@/util/effect-http-client" import { FSUtil } from "@opencode-ai/core/fs-util" import { Global } from "@opencode-ai/core/global" diff --git a/packages/opencode/src/storage/schema.ts b/packages/opencode/src/storage/schema.ts deleted file mode 100644 index 06d095f06d..0000000000 --- a/packages/opencode/src/storage/schema.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { AccountTable, AccountStateTable, ControlAccountTable } from "@opencode-ai/core/account/sql" -export { ProjectTable } from "@opencode-ai/core/project/sql" -export { SessionTable, MessageTable, PartTable, TodoTable } from "@opencode-ai/core/session/sql" -export { SessionShareTable } from "@opencode-ai/core/share/sql" -export { WorkspaceTable } from "@opencode-ai/core/control-plane/workspace.sql" diff --git a/packages/opencode/src/sync/schema.ts b/packages/opencode/src/sync/schema.ts deleted file mode 100644 index 39b9b92b45..0000000000 --- a/packages/opencode/src/sync/schema.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Schema } from "effect" - -import { Identifier } from "@/id/id" -import { statics } from "@opencode-ai/core/schema" - -export const EventID = Schema.String.check(Schema.isStartsWith("evt")).pipe( - Schema.brand("EventID"), - statics((s) => ({ - ascending: (id?: string) => s.make(Identifier.ascending("event", id)), - })), -) diff --git a/packages/opencode/src/tool/plan-enter.txt b/packages/opencode/src/tool/plan-enter.txt deleted file mode 100644 index 2e6a69f1f5..0000000000 --- a/packages/opencode/src/tool/plan-enter.txt +++ /dev/null @@ -1,14 +0,0 @@ -Use this tool to suggest switching to plan agent when the user's request would benefit from planning before implementation. - -If they explicitly mention wanting to create a plan ALWAYS call this tool first. - -This tool will ask the user if they want to switch to plan agent. - -Call this tool when: -- The user's request is complex and would benefit from planning first -- You want to research and design before making changes -- The task involves multiple files or significant architectural decisions - -Do NOT call this tool: -- For simple, straightforward tasks -- When the user explicitly wants immediate implementation diff --git a/packages/opencode/src/util/defer.ts b/packages/opencode/src/util/defer.ts deleted file mode 100644 index 33eb4d74d2..0000000000 --- a/packages/opencode/src/util/defer.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function defer(fn: () => void | Promise): AsyncDisposable & Disposable { - return { - [Symbol.dispose]() { - void fn() - }, - [Symbol.asyncDispose]() { - return Promise.resolve(fn()) - }, - } -} diff --git a/packages/opencode/src/util/filesystem.ts b/packages/opencode/src/util/filesystem.ts index 78a8917414..829176422b 100644 --- a/packages/opencode/src/util/filesystem.ts +++ b/packages/opencode/src/util/filesystem.ts @@ -49,11 +49,6 @@ export async function readBytes(p: string): Promise { return readFile(p) } -export async function readArrayBuffer(p: string): Promise { - const buf = await readFile(p) - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength) as ArrayBuffer -} - function isEnoent(e: unknown): e is { code: "ENOENT" } { return typeof e === "object" && e !== null && "code" in e && (e as { code: string }).code === "ENOENT" } diff --git a/packages/opencode/src/util/repository.ts b/packages/opencode/src/util/repository.ts index dfeee4322a..0cfec82cb1 100644 --- a/packages/opencode/src/util/repository.ts +++ b/packages/opencode/src/util/repository.ts @@ -48,19 +48,6 @@ export class InvalidRepositoryBranchError extends Schema.TaggedErrorClass any } @@ -5,13 +7,22 @@ type Definition = { export function listen(rpc: Definition) { onmessage = async (evt) => { const parsed = JSON.parse(evt.data) - if (parsed.type === "rpc.request") { - const result = await rpc[parsed.method](parsed.input) - postMessage(JSON.stringify({ type: "rpc.result", result, id: parsed.id })) - } + if (parsed.type !== "rpc.request") return + // A request that throws must still be answered, or its caller waits forever. + const reply = await Promise.resolve() + .then(() => rpc[parsed.method](parsed.input)) + .then((result) => JSON.stringify({ type: "rpc.result", result, id: parsed.id })) + .catch((error) => JSON.stringify({ type: "rpc.result", error: failureMessage(error), id: parsed.id })) + postMessage(reply) } } +// Some failures keep their text on the cause: a taken --port rejects with an empty ServeError. +function failureMessage(error: unknown): string { + if (error instanceof Error && !error.message && error.cause) return failureMessage(error.cause) + return errorMessage(error) +} + export function emit(event: string, data: unknown) { postMessage(JSON.stringify({ type: "rpc.event", event, data })) } @@ -20,17 +31,17 @@ export function client(target: { postMessage: (data: string) => void | null onmessage: ((this: Worker, ev: MessageEvent) => any) | null }) { - const pending = new Map void>() + const pending = new Map void; reject: (error: Error) => void }>() const listeners = new Map void>>() let id = 0 target.onmessage = async (evt) => { const parsed = JSON.parse(evt.data) if (parsed.type === "rpc.result") { - const resolve = pending.get(parsed.id) - if (resolve) { - resolve(parsed.result) - pending.delete(parsed.id) - } + const request = pending.get(parsed.id) + if (!request) return + pending.delete(parsed.id) + if (typeof parsed.error === "string") return request.reject(new Error(parsed.error)) + return request.resolve(parsed.result) } if (parsed.type === "rpc.event") { const handlers = listeners.get(parsed.event) @@ -44,8 +55,8 @@ export function client(target: { return { call(method: Method, input: Parameters[0]): Promise> { const requestId = id++ - return new Promise((resolve) => { - pending.set(requestId, resolve) + return new Promise((resolve, reject) => { + pending.set(requestId, { resolve, reject }) target.postMessage(JSON.stringify({ type: "rpc.request", method, input, id: requestId })) }) }, diff --git a/packages/opencode/src/util/signal.ts b/packages/opencode/src/util/signal.ts deleted file mode 100644 index bc633ecc60..0000000000 --- a/packages/opencode/src/util/signal.ts +++ /dev/null @@ -1,12 +0,0 @@ -export function signal() { - let resolve: any - const promise = new Promise((r) => (resolve = r)) - return { - trigger() { - return resolve() - }, - wait() { - return promise - }, - } -} diff --git a/packages/opencode/test/agent/agent.test.ts b/packages/opencode/test/agent/agent.test.ts index efeaf408a2..628dd78a6e 100644 --- a/packages/opencode/test/agent/agent.test.ts +++ b/packages/opencode/test/agent/agent.test.ts @@ -1,6 +1,6 @@ import { afterEach, expect } from "bun:test" import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { Cause, Effect, Exit, Layer } from "effect" +import { Cause, Effect, Exit } from "effect" import path from "path" import { disposeAllInstances, TestInstance } from "../fixture/fixture" import { testEffect } from "../lib/effect" diff --git a/packages/opencode/test/cli/github-action.test.ts b/packages/opencode/test/cli/github-action.test.ts index 57567d8c9b..564ee697c3 100644 --- a/packages/opencode/test/cli/github-action.test.ts +++ b/packages/opencode/test/cli/github-action.test.ts @@ -1,7 +1,6 @@ import { test, expect, describe } from "bun:test" import { SessionV1 } from "@opencode-ai/core/v1/session" import { extractResponseText, formatPromptTooLargeError } from "../../src/cli/cmd/github" -import type { MessageV2 } from "../../src/session/message-v2" import { SessionID, MessageID, PartID } from "../../src/session/schema" // Helper to create minimal valid parts diff --git a/packages/opencode/test/cli/help/__snapshots__/help-snapshots.test.ts.snap b/packages/opencode/test/cli/help/__snapshots__/help-snapshots.test.ts.snap index e9d3ad2338..f9d9ea70ba 100644 --- a/packages/opencode/test/cli/help/__snapshots__/help-snapshots.test.ts.snap +++ b/packages/opencode/test/cli/help/__snapshots__/help-snapshots.test.ts.snap @@ -85,7 +85,6 @@ Options: -c, --continue continue the last session [boolean] -s, --session session id to continue [string] --fork fork the session before continuing (requires --continue or --session) [boolean] - --share share the session [boolean] -m, --model model to use in the format of provider/model [string] --agent agent to use [string] --format format: default (formatted) or json (raw JSON events) @@ -185,7 +184,8 @@ Options: --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"] --pure run without external plugins [boolean] -m, --method installation method to use - [string] [choices: "curl", "npm", "pnpm", "bun", "brew", "choco", "scoop"]" + [string] [choices: "curl", "npm", "pnpm", "bun", "brew", "choco", "scoop"] + --major upgrade to OpenCode 2 and remove OpenCode 1 [boolean]" `; exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode uninstall --help 1`] = ` @@ -301,10 +301,10 @@ Options: exports[`opencode CLI help-text snapshots every documented command emits stable help text: opencode import --help 1`] = ` "opencode import -import session data from JSON file or URL +import session data from JSON file Positionals: - file path to JSON file or share URL [string] [required] + file path to JSON file [string] [required] Options: -h, --help show help [boolean] diff --git a/packages/opencode/test/cli/import.test.ts b/packages/opencode/test/cli/import.test.ts index 59824c3efc..f3abdd5618 100644 --- a/packages/opencode/test/cli/import.test.ts +++ b/packages/opencode/test/cli/import.test.ts @@ -1,11 +1,5 @@ import { test, expect } from "bun:test" -import { - formatImportFileError, - parseShareUrl, - shouldAttachShareAuthHeaders, - transformShareData, - type ShareData, -} from "../../src/cli/cmd/import" +import { formatImportFileError } from "../../src/cli/cmd/import" import { FSUtil } from "@opencode-ai/core/fs-util" import { PlatformError } from "effect" @@ -41,50 +35,3 @@ test("formats import file errors", () => { ), ).toBe("Invalid JSON in test.json: Unexpected token") }) - -// parseShareUrl tests -test("parses valid share URLs", () => { - expect(parseShareUrl("https://opncd.ai/share/Jsj3hNIW")).toBe("Jsj3hNIW") - expect(parseShareUrl("https://custom.example.com/share/abc123")).toBe("abc123") - expect(parseShareUrl("http://localhost:3000/share/test_id-123")).toBe("test_id-123") -}) - -test("rejects invalid URLs", () => { - expect(parseShareUrl("https://opncd.ai/s/Jsj3hNIW")).toBeNull() // legacy format - expect(parseShareUrl("https://opncd.ai/share/")).toBeNull() - expect(parseShareUrl("https://opncd.ai/share/id/extra")).toBeNull() - expect(parseShareUrl("not-a-url")).toBeNull() -}) - -test("only attaches share auth headers for same-origin URLs", () => { - expect(shouldAttachShareAuthHeaders("https://control.example.com/share/abc", "https://control.example.com")).toBe( - true, - ) - expect(shouldAttachShareAuthHeaders("https://other.example.com/share/abc", "https://control.example.com")).toBe(false) - expect(shouldAttachShareAuthHeaders("https://control.example.com:443/share/abc", "https://control.example.com")).toBe( - true, - ) - expect(shouldAttachShareAuthHeaders("not-a-url", "https://control.example.com")).toBe(false) -}) - -// transformShareData tests -test("transforms share data to storage format", () => { - const data: ShareData[] = [ - { type: "session", data: { id: "sess-1", title: "Test" } as any }, - { type: "message", data: { id: "msg-1", sessionID: "sess-1" } as any }, - { type: "part", data: { id: "part-1", messageID: "msg-1" } as any }, - { type: "part", data: { id: "part-2", messageID: "msg-1" } as any }, - ] - - const result = transformShareData(data)! - - expect(result.info.id).toBe("sess-1") - expect(result.messages).toHaveLength(1) - expect(result.messages[0].parts).toHaveLength(2) -}) - -test("returns null for invalid share data", () => { - expect(transformShareData([])).toBeNull() - expect(transformShareData([{ type: "message", data: {} as any }])).toBeNull() - expect(transformShareData([{ type: "session", data: { id: "s" } as any }])).toBeNull() // no messages -}) diff --git a/packages/opencode/test/cli/run/run-process.test.ts b/packages/opencode/test/cli/run/run-process.test.ts index d2d4bae879..c6ccdc80cd 100644 --- a/packages/opencode/test/cli/run/run-process.test.ts +++ b/packages/opencode/test/cli/run/run-process.test.ts @@ -67,7 +67,8 @@ describe("opencode run (non-interactive subprocess)", () => { // makes the SDK call surface an error promptly so the process exits nonzero. // We assert nonzero exit AND wall-clock under the harness timeout — a hang // would expire the timeout and produce a different (signal-killed) failure. - cliIt.concurrent( + // Keep competing CLI startups out of this wall-clock assertion on busy CI runners. + cliIt.live( "exits nonzero promptly when the model is unknown (regression for #27371)", ({ opencode }) => Effect.gen(function* () { diff --git a/packages/opencode/test/cli/upgrade.test.ts b/packages/opencode/test/cli/upgrade.test.ts new file mode 100644 index 0000000000..2543d2abcd --- /dev/null +++ b/packages/opencode/test/cli/upgrade.test.ts @@ -0,0 +1,34 @@ +import { describe, expect, test } from "bun:test" +import { shouldNotify } from "../../src/cli/upgrade" + +const base = { autoupdate: undefined, disabled: false, always: false, current: "1.4.0", latest: "1.4.1" } + +describe("upgrade check", () => { + test("notifies about every newer OpenCode 1 release, including patches", () => { + expect(shouldNotify(base)).toBe(true) + expect(shouldNotify({ ...base, latest: "1.10.0" })).toBe(true) + }) + + test("does not treat OpenCode 2 or older releases as updates", () => { + expect(shouldNotify({ ...base, latest: "2.0.0" })).toBe(false) + expect(shouldNotify({ ...base, latest: "1.3.9" })).toBe(false) + }) + + test("treats true and notify the same", () => { + expect(shouldNotify({ ...base, autoupdate: true })).toBe(true) + expect(shouldNotify({ ...base, autoupdate: "notify" })).toBe(true) + }) + + test("does not notify when already on the latest version", () => { + expect(shouldNotify({ ...base, latest: "1.4.0" })).toBe(false) + }) + + test("never notifies when update checks are disabled", () => { + expect(shouldNotify({ ...base, autoupdate: false })).toBe(false) + expect(shouldNotify({ ...base, disabled: true, always: true })).toBe(false) + }) + + test("always-notify flag forces a notice for the current version", () => { + expect(shouldNotify({ ...base, latest: "1.4.0", always: true })).toBe(true) + }) +}) diff --git a/packages/opencode/test/event-manifest.test.ts b/packages/opencode/test/event-manifest.test.ts index da0f80cee5..86f690e5aa 100644 --- a/packages/opencode/test/event-manifest.test.ts +++ b/packages/opencode/test/event-manifest.test.ts @@ -9,7 +9,7 @@ describe("public event manifest", () => { expect(EventManifest.Definitions).toBe(SchemaEventManifest.Definitions) expect(EventManifest.Latest).toBe(SchemaEventManifest.Latest) expect(EventManifest.Durable).toBe(SchemaEventManifest.Durable) - expect(EventManifest.Latest.size).toBe(88) + expect(EventManifest.Latest.size).toBe(89) expect(EventManifest.Latest.get("session.next.step.ended")).toBe(SessionEvent.Step.Ended) expect(EventManifest.Latest.get("todo.updated")).toBe(Todo.Event.Updated) expect(EventManifest.Latest.has("ide.installed")).toBe(false) diff --git a/packages/opencode/test/fixture/fixture.ts b/packages/opencode/test/fixture/fixture.ts index 53e3142cdf..43937648ff 100644 --- a/packages/opencode/test/fixture/fixture.ts +++ b/packages/opencode/test/fixture/fixture.ts @@ -9,7 +9,6 @@ import type * as Scope from "effect/Scope" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder" import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process" -import type { Config } from "@/config/config" import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { InstanceRef } from "../../src/effect/instance-ref" import { InstanceBootstrap } from "../../src/project/bootstrap-service" diff --git a/packages/opencode/test/installation/installation.test.ts b/packages/opencode/test/installation/installation.test.ts index 3d4b4cba31..6154d364fa 100644 --- a/packages/opencode/test/installation/installation.test.ts +++ b/packages/opencode/test/installation/installation.test.ts @@ -1,19 +1,24 @@ -import { describe, expect } from "bun:test" +import { describe, expect, test } from "bun:test" import { makeGlobalNode } from "@opencode-ai/core/effect/app-node" import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { httpClient } from "@opencode-ai/core/effect/app-node-platform" -import { Effect, Layer, Stream } from "effect" +import { Effect, Exit, Fiber, Layer, Stream } from "effect" +import * as TestClock from "effect/testing/TestClock" import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http" import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process" import { Installation } from "../../src/installation" -import { InstallationChannel } from "@opencode-ai/core/installation/version" +import { InstallationVersion } from "@opencode-ai/core/installation/version" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" import { testEffect } from "../lib/effect" const encoder = new TextEncoder() -function mockHttpClient(handler: (request: HttpClientRequest.HttpClientRequest) => Response) { - const client = HttpClient.make((request) => Effect.succeed(HttpClientResponse.fromWeb(request, handler(request)))) +// A handler that returns undefined never responds. +function mockHttpClient(handler: (request: HttpClientRequest.HttpClientRequest) => Response | undefined) { + const client = HttpClient.make((request) => { + const response = handler(request) + return response ? Effect.succeed(HttpClientResponse.fromWeb(request, response)) : Effect.never + }) return Layer.succeed(HttpClient.HttpClient, client) } @@ -52,7 +57,7 @@ function jsonResponse(body: unknown) { } function testLayer( - httpHandler: (request: HttpClientRequest.HttpClientRequest) => Response, + httpHandler: (request: HttpClientRequest.HttpClientRequest) => Response | undefined, spawnHandler?: (cmd: string, args: readonly string[]) => string | { code: number; stdout?: string; stderr?: string }, ) { const spawnerNode = makeGlobalNode({ @@ -67,116 +72,126 @@ function testLayer( } describe("installation", () => { + describe("isUpdate", () => { + test("only counts newer releases in the installed major version", () => { + expect(Installation.isUpdate("1.19.0", "1.19.1")).toBe(true) + expect(Installation.isUpdate("1.19.0", "1.20.0")).toBe(true) + expect(Installation.isUpdate("1.19.0", "1.19.0")).toBe(false) + expect(Installation.isUpdate("1.19.0", "1.18.35")).toBe(false) + expect(Installation.isUpdate("1.19.0", "2.0.0")).toBe(false) + expect(Installation.isUpdate("1.9.0", "1.10.0")).toBe(true) + }) + + test("compares preview builds within their channel", () => { + expect(Installation.isUpdate("0.0.0-dev-202610110139", "0.0.0-dev-202610120000")).toBe(true) + expect(Installation.isUpdate("0.0.0-dev-202610120000", "0.0.0-dev-202610110139")).toBe(false) + }) + + test("source builds only accept OpenCode 1 releases", () => { + expect(Installation.isUpdate("local", "1.19.0")).toBe(true) + expect(Installation.isUpdate("local", "2.0.0")).toBe(false) + expect(Installation.isUpdate("1.19.0", "not-a-version")).toBe(false) + }) + }) + describe("latest", () => { - testEffect(testLayer(() => jsonResponse({ tag_name: "v1.2.3" }))).effect( - "reads release version from GitHub releases", - () => + const npm = "https://registry.npmjs.org/opencode-ai/latest" + const choco = "https://community.chocolatey.org/api/v2/Packages" + const tap = (cmd: string, args: readonly string[]) => + cmd === "brew" && args.join(" ") === "list --formula anomalyco/tap/opencode" ? "opencode" : "" + const core = (cmd: string, args: readonly string[]) => + cmd === "brew" && args.join(" ") === "list --formula opencode" ? "opencode" : "" + const registry = (version: string, calls: string[], feed: string[] = [version]) => + testLayer((request) => { + calls.push(request.url) + if (request.url.startsWith(choco)) + return jsonResponse({ + d: { results: feed.filter((v) => request.url.includes(`%27${v}%27`)).map((Version) => ({ Version })) }, + }) + return jsonResponse({ version }) + }) + + const methods = ["curl", "yarn", "unknown", "npm", "bun", "pnpm", "scoop", "choco"] as const + for (const method of methods) { + const calls: string[] = [] + testEffect(registry("1.19.2", calls)).effect(`reads ${method} versions from the opencode-ai npm package`, () => Effect.gen(function* () { - const result = yield* Installation.use.latest("unknown") - expect(result).toBe("1.2.3") + calls.length = 0 + expect(yield* Installation.use.latest(method)).toBe("1.19.2") + expect(calls[0]).toBe(npm) + expect(calls.slice(1).every((url) => url.startsWith(choco))).toBe(true) }), - ) + ) - testEffect(testLayer(() => jsonResponse({ tag_name: "v4.0.0-beta.1" }))).effect( - "strips v prefix from GitHub release tag", - () => + testEffect(registry("2.0.27", [])).effect(`ignores OpenCode 2 versions for ${method}`, () => Effect.gen(function* () { - const result = yield* Installation.use.latest("curl") - expect(result).toBe("4.0.0-beta.1") + expect(yield* Installation.use.latest(method)).toBe(InstallationVersion) }), - ) + ) + } - const npmCalls: string[] = [] + const tapCalls: string[] = [] testEffect( testLayer((request) => { - npmCalls.push(request.url) - return jsonResponse({ version: "1.5.0" }) - }), - ).effect("reads npm versions via registry", () => + tapCalls.push(request.url) + return jsonResponse({ version: "1.19.2" }) + }, tap), + ).effect("reads Homebrew tap versions from the opencode-ai npm package", () => Effect.gen(function* () { - const result = yield* Installation.use.latest("npm") - expect(result).toBe("1.5.0") - expect(npmCalls).toContain(`https://registry.npmjs.org/opencode-ai/${InstallationChannel}`) + tapCalls.length = 0 + expect(yield* Installation.use.latest("brew")).toBe("1.19.2") + expect(tapCalls).toEqual([npm]) }), ) - const bunCalls: string[] = [] + const coreCalls: string[] = [] testEffect( testLayer((request) => { - bunCalls.push(request.url) - return jsonResponse({ version: "1.6.0" }) - }), - ).effect("reads bun versions via registry", () => + coreCalls.push(request.url) + return jsonResponse({ version: "1.19.2" }) + }, core), + ).effect("never offers an OpenCode 1 update Homebrew Core can't install", () => Effect.gen(function* () { - const result = yield* Installation.use.latest("bun") - expect(result).toBe("1.6.0") - expect(bunCalls).toContain(`https://registry.npmjs.org/opencode-ai/${InstallationChannel}`) + coreCalls.length = 0 + expect(yield* Installation.use.latest("brew")).toBe(InstallationVersion) + expect(coreCalls).toEqual([]) }), ) - const pnpmCalls: string[] = [] - testEffect( - testLayer((request) => { - pnpmCalls.push(request.url) - return jsonResponse({ version: "1.7.0" }) - }), - ).effect("reads pnpm versions via registry", () => + testEffect(registry("1.19.2", [], ["1.19.1"])).effect("waits until Chocolatey has published the npm version", () => Effect.gen(function* () { - const result = yield* Installation.use.latest("pnpm") - expect(result).toBe("1.7.0") - expect(pnpmCalls).toContain(`https://registry.npmjs.org/opencode-ai/${InstallationChannel}`) + expect(yield* Installation.use.latest("choco")).toBe(InstallationVersion) }), ) - testEffect(testLayer(() => jsonResponse({ version: "2.3.4" }))).effect("reads scoop manifest versions", () => + const errorCalls: string[] = [] + testEffect( + testLayer((request) => { + errorCalls.push(request.url) + return new Response("unavailable", { status: 503 }) + }), + ).live("fails when the npm registry fails, without consulting GitHub", () => Effect.gen(function* () { - const result = yield* Installation.use.latest("scoop") - expect(result).toBe("2.3.4") + errorCalls.length = 0 + expect(Exit.isFailure(yield* Installation.use.latest("curl").pipe(Effect.exit))).toBe(true) + expect(errorCalls.length).toBeGreaterThan(0) + expect(errorCalls.every((url) => url === npm)).toBe(true) }), ) - testEffect(testLayer(() => jsonResponse({ d: { results: [{ Version: "3.4.5" }] } }))).effect( - "reads chocolatey feed versions", + testEffect(testLayer(() => jsonResponse({ name: "opencode-ai" }))).effect( + "fails when the npm registry returns no version", () => Effect.gen(function* () { - const result = yield* Installation.use.latest("choco") - expect(result).toBe("3.4.5") + expect(Exit.isFailure(yield* Installation.use.latest("npm").pipe(Effect.exit))).toBe(true) }), ) - testEffect( - testLayer( - () => jsonResponse({ versions: { stable: "2.0.0" } }), - (cmd, args) => { - // getBrewFormula: return core formula (no tap) - if (cmd === "brew" && args.includes("--formula") && args.includes("anomalyco/tap/opencode")) return "" - if (cmd === "brew" && args.includes("--formula") && args.includes("opencode")) return "opencode" - return "" - }, - ), - ).effect("reads brew formulae API versions", () => - Effect.gen(function* () { - const result = yield* Installation.use.latest("brew") - expect(result).toBe("2.0.0") - }), - ) - - const brewInfoJson = JSON.stringify({ - formulae: [{ versions: { stable: "2.1.0" } }], - }) - testEffect( - testLayer( - () => jsonResponse({}), // HTTP not used for tap formula - (cmd, args) => { - if (cmd === "brew" && args.includes("anomalyco/tap/opencode") && args.includes("--formula")) return "opencode" - if (cmd === "brew" && args.includes("--json=v2")) return brewInfoJson - return "" - }, - ), - ).effect("reads brew tap info JSON via CLI", () => + testEffect(testLayer(() => undefined)).effect("gives up when the npm registry doesn't answer in time", () => Effect.gen(function* () { - const result = yield* Installation.use.latest("brew") - expect(result).toBe("2.1.0") + const fiber = yield* Installation.use.latest("curl").pipe(Effect.exit, Effect.forkChild) + yield* TestClock.adjust("10 seconds") + expect(Exit.isFailure(yield* Fiber.join(fiber))).toBe(true) }), ) }) @@ -192,7 +207,7 @@ describe("installation", () => { ), ).effect("returns sanitized typed errors for failed package upgrades", () => Effect.gen(function* () { - const error = yield* Effect.flip(Installation.use.upgrade("npm", "9.9.9")) + const error = yield* Effect.flip(Installation.use.upgrade("npm", "1.99.9")) expect(error).toBeInstanceOf(Installation.UpgradeFailedError) expect(error.stderr).toBe("Upgrade failed for npm (exit code 1).") expect(error.message).toBe(error.stderr) @@ -212,7 +227,7 @@ describe("installation", () => { ), ).effect("returns sanitized typed errors when the curl install script fails", () => Effect.gen(function* () { - const error = yield* Effect.flip(Installation.use.upgrade("curl", "9.9.9")) + const error = yield* Effect.flip(Installation.use.upgrade("curl", "1.99.9")) expect(error).toBeInstanceOf(Installation.UpgradeFailedError) expect(error.stderr).toBe("Upgrade failed for curl (exit code 1).") expect(error.message).toBe(error.stderr) @@ -233,7 +248,199 @@ describe("installation", () => { ), ).effect("falls back to sh when bash is unavailable during curl upgrade", () => Effect.gen(function* () { - yield* Installation.use.upgrade("curl", "9.9.9") + yield* Installation.use.upgrade("curl", "1.99.9") + }), + ) + }) + + describe("upgrade per method", () => { + const packageCalls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd, args) => { + packageCalls.push([cmd, ...args].join(" ")) + return "" + }, + ), + ).effect("installs the OpenCode 1 package with each package manager", () => + Effect.gen(function* () { + for (const method of ["npm", "pnpm", "bun", "yarn"] as const) { + packageCalls.length = 0 + yield* Installation.use.upgrade(method, "1.19.2") + expect(packageCalls[0]).toContain("opencode-ai@1.19.2") + } + }), + ) + + const majorCalls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd, args) => { + majorCalls.push([cmd, ...args].join(" ")) + return "" + }, + ), + ).effect("refuses OpenCode 2 targets for every method", () => + Effect.gen(function* () { + for (const method of ["curl", "npm", "pnpm", "bun", "yarn", "brew", "choco", "scoop"] as const) { + majorCalls.length = 0 + const error = yield* Effect.flip(Installation.use.upgrade(method, "2.0.27")) + expect(error.stderr).toContain("opencode upgrade --major") + expect(majorCalls).toEqual([]) + } + }), + ) + + const coreCalls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd, args) => { + coreCalls.push([cmd, ...args].join(" ")) + if (args.join(" ") === "list --formula opencode") return "opencode" + return "" + }, + ), + ).effect("never runs brew upgrade for Homebrew Core, whose formula is OpenCode 2", () => + Effect.gen(function* () { + coreCalls.length = 0 + const error = yield* Effect.flip(Installation.use.upgrade("brew", "1.19.2")) + expect(error.stderr).toContain("Homebrew Core") + expect(coreCalls.some((call) => call.startsWith("brew upgrade"))).toBe(false) + }), + ) + + const tap = (stable: string, calls: string[]) => + testLayer( + () => jsonResponse({}), + (cmd, args) => { + calls.push([cmd, ...args].join(" ")) + if (args.join(" ") === "list --formula anomalyco/tap/opencode") return "opencode" + if (args.join(" ") === "--repo anomalyco/tap") return "/tmp/opencode-test-tap" + if (args.includes("--json=v2")) return JSON.stringify({ formulae: [{ versions: { stable } }] }) + return "" + }, + ) + + const tapCalls: string[] = [] + testEffect(tap("1.19.2", tapCalls)).effect("upgrades the Homebrew tap once it has the version", () => + Effect.gen(function* () { + tapCalls.length = 0 + yield* Installation.use.upgrade("brew", "1.19.2") + expect(tapCalls).toContain("git pull --ff-only") + expect(tapCalls).toContain("brew upgrade anomalyco/tap/opencode") + }), + ) + + for (const stable of ["1.19.1", "2.0.0"]) { + const calls: string[] = [] + testEffect(tap(stable, calls)).effect(`asks to retry when the Homebrew tap is at ${stable}`, () => + Effect.gen(function* () { + calls.length = 0 + const error = yield* Effect.flip(Installation.use.upgrade("brew", "1.19.2")) + expect(error.stderr).toContain("Try again in a few minutes") + expect(calls.some((call) => call.startsWith("brew upgrade"))).toBe(false) + }), + ) + } + }) + + describe("upgradeMajor", () => { + const calls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd, args) => { + calls.push([cmd, ...args].join(" ")) + return "" + }, + ), + ).effect("replaces the npm package with OpenCode 2", () => + Effect.gen(function* () { + calls.length = 0 + yield* Installation.use.upgradeMajor("npm") + expect(calls.slice(0, 2)).toEqual(["npm uninstall -g opencode-ai", "npm install -g @opencode/cli"]) + }), + ) + + const restoreCalls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd, args) => { + restoreCalls.push([cmd, ...args].join(" ")) + if (args.includes("@opencode/cli")) return { code: 1, stderr: "install failed" } + return "" + }, + ), + ).effect("restores OpenCode 1 when the OpenCode 2 install fails", () => + Effect.gen(function* () { + restoreCalls.length = 0 + const error = yield* Effect.flip(Installation.use.upgradeMajor("npm")) + expect(error.stderr).toBe("Upgrade failed for npm (exit code 1).") + expect(restoreCalls[2]).toMatch(/^npm install -g opencode-ai@/) + }), + ) + + const brewCalls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd, args) => { + brewCalls.push([cmd, ...args].join(" ")) + if (args.join(" ") === "list --formula anomalyco/tap/opencode") return "opencode" + return "" + }, + ), + ).effect("replaces the brew formula with the OpenCode 2 formula", () => + Effect.gen(function* () { + brewCalls.length = 0 + yield* Installation.use.upgradeMajor("brew") + expect(brewCalls).toContain("brew uninstall anomalyco/tap/opencode") + expect(brewCalls).toContain("brew install anomalyco/tap/opencode-v2") + }), + ) + + const curlCalls: string[] = [] + const curlUrls: string[] = [] + testEffect( + testLayer( + (request) => { + curlUrls.push(request.url) + return new Response("echo v2", { status: 200 }) + }, + (cmd, args) => { + curlCalls.push(cmd) + if (cmd === "bash" && args[0] === "--version") return "GNU bash" + return "" + }, + ), + ).effect("runs the OpenCode 2 install script for curl installs", () => + Effect.gen(function* () { + curlUrls.length = 0 + yield* Installation.use.upgradeMajor("curl") + expect(curlUrls).toEqual(["https://opencode.ai/v2/install"]) + expect(curlCalls).toContain("bash") + }), + ) + + const chocoCalls: string[] = [] + testEffect( + testLayer( + () => jsonResponse({}), + (cmd) => { + chocoCalls.push(cmd) + return "" + }, + ), + ).effect("leaves package managers without OpenCode 2 untouched", () => + Effect.gen(function* () { + chocoCalls.length = 0 + const error = yield* Effect.flip(Installation.use.upgradeMajor("choco")) + expect(error.stderr).toContain(Installation.MAJOR_INSTRUCTIONS) + expect(chocoCalls).toEqual([]) }), ) }) diff --git a/packages/opencode/test/lib/effect.ts b/packages/opencode/test/lib/effect.ts index 255d4b3947..a64d352234 100644 --- a/packages/opencode/test/lib/effect.ts +++ b/packages/opencode/test/lib/effect.ts @@ -5,7 +5,6 @@ import * as Scope from "effect/Scope" import * as TestClock from "effect/testing/TestClock" import * as TestConsole from "effect/testing/TestConsole" import { memoMap } from "@opencode-ai/core/effect/memo-map" -import type { Config } from "@/config/config" import { TestInstance, withTmpdirInstance } from "../fixture/fixture" import { InstanceStore } from "@/project/instance-store" diff --git a/packages/opencode/test/plugin/openai-ws.test.ts b/packages/opencode/test/plugin/openai-ws.test.ts index e88d0620f5..92e3cbd42c 100644 --- a/packages/opencode/test/plugin/openai-ws.test.ts +++ b/packages/opencode/test/plugin/openai-ws.test.ts @@ -53,7 +53,7 @@ describe("plugin.openai.ws", () => { url: server.wsUrl, headers: {}, }), - ).rejects.toThrow("Expected 101 status code") + ).rejects.toThrow("Unexpected server response: 401") }) test("enforces websocket send idle timeout", async () => { diff --git a/packages/opencode/test/provider/openai.test.ts b/packages/opencode/test/provider/openai.test.ts new file mode 100644 index 0000000000..a72f0e5858 --- /dev/null +++ b/packages/opencode/test/provider/openai.test.ts @@ -0,0 +1,32 @@ +import { expect, test } from "bun:test" +import { createOpenAI, type OpenAILanguageModelResponsesOptions } from "@ai-sdk/openai" + +test("OpenAI Responses forwards the ultrafast service tier", async () => { + const requests: unknown[] = [] + const stop = new Error("request captured") + const provider = createOpenAI({ + apiKey: "test-key", + fetch: Object.assign( + async (url: RequestInfo | URL, init?: RequestInit) => { + requests.push(await new Request(url, init).json()) + throw stop + }, + { preconnect: () => undefined }, + ), + }) + + expect( + await provider + .responses("gpt-6-astra") + .doStream({ + prompt: [{ role: "user", content: [{ type: "text", text: "hello" }] }], + providerOptions: { + openai: { serviceTier: "ultrafast" } satisfies OpenAILanguageModelResponsesOptions, + }, + }) + .then(undefined, (error: unknown) => error), + ).toBe(stop) + + expect(requests).toHaveLength(1) + expect(requests[0]).toMatchObject({ model: "gpt-6-astra", service_tier: "ultrafast" }) +}) diff --git a/packages/opencode/test/provider/provider.test.ts b/packages/opencode/test/provider/provider.test.ts index bf28fc9266..6f3938bfba 100644 --- a/packages/opencode/test/provider/provider.test.ts +++ b/packages/opencode/test/provider/provider.test.ts @@ -3,7 +3,7 @@ import { mkdir, unlink } from "fs/promises" import path from "path" import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder" -import { Effect, Layer } from "effect" +import { Effect } from "effect" import { ModelsDev } from "@opencode-ai/core/models-dev" import { FSUtil } from "@opencode-ai/core/fs-util" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" @@ -382,7 +382,7 @@ it.instance( npm: "@ai-sdk/openai-compatible", env: [], models: { - "CM_GPT6_Astra_Max": { name: "Astra Max" }, + CM_GPT6_Astra_Max: { name: "Astra Max" }, "CM_GPT-5.6 Sol - Medium": { name: "Sol Medium" }, "CM_GPT-5.6-Sol_High": { name: "Sol High" }, }, @@ -610,6 +610,33 @@ it.instance( }, ) +it.instance( + "model config reasoning options replace catalog variants under configured variants", + Effect.gen(function* () { + yield* set("ANTHROPIC_API_KEY", "test-api-key") + const providers = yield* list + const models = providers[ProviderV2.ID.anthropic].models + expect(Object.keys(models["claude-sonnet-4-6"].variants ?? {})).toEqual(["low", "high"]) + expect(models["claude-sonnet-4-6"].variants?.high).toMatchObject({ effort: "high", extra: true }) + expect(models["claude-fixed"].variants).toEqual({}) + }), + { + config: { + provider: { + anthropic: { + models: { + "claude-sonnet-4-6": { + reasoning_options: [{ type: "effort", values: ["low", "high"] }], + variants: { high: { extra: true } }, + }, + "claude-fixed": { id: "claude-sonnet-4-6", reasoning: true, reasoning_options: [] }, + }, + }, + }, + }, + }, +) + it.instance( "model config regenerates variants when overriding the provider package", Effect.gen(function* () { diff --git a/packages/opencode/test/server/global-session-list.test.ts b/packages/opencode/test/server/global-session-list.test.ts index 7a13553af6..c77ca48e29 100644 --- a/packages/opencode/test/server/global-session-list.test.ts +++ b/packages/opencode/test/server/global-session-list.test.ts @@ -1,7 +1,7 @@ import { describe, expect } from "bun:test" import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { SessionProjector } from "@opencode-ai/core/session/projector" -import { Deferred, Effect, Layer } from "effect" +import { Deferred, Effect } from "effect" import { Project } from "@/project/project" import { Session as SessionNs } from "@/session/session" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" diff --git a/packages/opencode/test/server/httpapi-event.test.ts b/packages/opencode/test/server/httpapi-event.test.ts index 2b6be2ab6a..010136c93e 100644 --- a/packages/opencode/test/server/httpapi-event.test.ts +++ b/packages/opencode/test/server/httpapi-event.test.ts @@ -1,5 +1,5 @@ import { afterEach, describe, expect } from "bun:test" -import { Effect, Layer, Queue, Schema, Stream } from "effect" +import { Effect, Queue, Schema, Stream } from "effect" import { EventPaths } from "../../src/server/routes/instance/httpapi/groups/event" import { resetDatabase } from "../fixture/db" import { disposeAllInstances, TestInstance } from "../fixture/fixture" diff --git a/packages/opencode/test/server/httpapi-exercise/index.ts b/packages/opencode/test/server/httpapi-exercise/index.ts index c8e11ea845..8de3d2fccd 100644 --- a/packages/opencode/test/server/httpapi-exercise/index.ts +++ b/packages/opencode/test/server/httpapi-exercise/index.ts @@ -57,6 +57,29 @@ function locationData(validate: (value: any) => void) { } } +const skillDraft = { + name: "httpapi-review-skill", + description: "HTTP API exerciser skill", + instructions: "Do nothing.", + scope: "workspace", +} + +function skillDestination(directory: string | undefined) { + check(directory !== undefined, "skill scenarios need a project directory") + return path.join(directory, ".opencode", "skills", skillDraft.name, "SKILL.md") +} + +function skillError(body: unknown) { + object(body) + check(body.name === "SkillError", "skill routes should fail with SkillError") +} + +function schedulingUnavailable(body: unknown) { + object(body) + check(body._tag === "ServiceUnavailableError", "scheduling should report unavailable") + check(body.service === "scheduling", "unavailable error should name the scheduling service") +} + const scenarios: Scenario[] = [ http.protected .get("/global/health", "global.health") @@ -142,6 +165,70 @@ const scenarios: Scenario[] = [ http.protected.get("/command", "command.list").json(200, array, "status"), http.protected.get("/agent", "app.agents").json(200, array, "status"), http.protected.get("/skill", "app.skills").json(200, array, "status"), + http.protected.get("/skill/catalog", "skill.catalog").json( + 200, + (body) => { + array(body) + for (const item of body) { + object(item) + check( + [item.name, item.source, item.revision].every((value) => typeof value === "string"), + "catalog entries should carry a name, source and revision", + ) + } + }, + "status", + ), + http.protected + .post("/skill/validate", "skill.validate.missing") + .at((ctx) => ({ + path: "/skill/validate", + headers: ctx.headers(), + body: { name: "httpapi-missing-skill", source: "missing", revision: "missing" }, + })) + .json(400, skillError, "status"), + http.protected + .post("/skill/manage", "skill.manage.missing") + .at((ctx) => ({ + path: "/skill/manage", + headers: ctx.headers(), + body: { action: "read", selected: { name: "httpapi-missing-skill", source: "missing", revision: "missing" } }, + })) + .json(400, skillError, "status"), + // Review only issues an in-memory token; workspace scope keeps the destination inside the scenario project. + http.protected + .post("/skill/review", "skill.review") + .at((ctx) => ({ path: "/skill/review", headers: ctx.headers(), body: skillDraft })) + .json( + 200, + (body, ctx) => { + object(body) + check(typeof body.token === "string" && body.token.length > 0, "review should issue a token") + check(typeof body.digest === "string", "review should return a digest") + check(body.scope === "workspace", "review should echo the draft scope") + check( + body.destination === skillDestination(ctx.directory), + "workspace review should target the scenario project", + ) + }, + "status", + ), + // An unreviewed token must be rejected before anything is written. + http.protected + .post("/skill/create", "skill.create.unreviewed") + .at((ctx) => ({ path: "/skill/create", headers: ctx.headers(), body: { ...skillDraft, token: "unreviewed" } })) + .jsonEffect(400, (body, ctx) => + Effect.promise(async () => { + skillError(body) + check(!(await Bun.file(skillDestination(ctx.directory)).exists()), "rejected create should not write the skill") + }), + ), + // The exerciser is not a desktop sidecar, so the scheduler is never started here. + http.protected.get("/schedule", "schedule.list.unavailable").json(503, schedulingUnavailable, "status"), + http.protected + .post("/schedule", "schedule.manage.unavailable") + .at((ctx) => ({ path: "/schedule", headers: ctx.headers(), body: { action: "delete", id: "httpapi-missing" } })) + .json(503, schedulingUnavailable, "status"), http.protected.get("/lsp", "lsp.status").json(200, array), http.protected.get("/formatter", "formatter.status").json(200, array), http.protected.get("/config", "config.get").json(200, undefined, "status"), @@ -981,6 +1068,23 @@ const scenarios: Scenario[] = [ headers: ctx.headers(), })) .json(200, data(object)), + http.protected + .post("/api/session/{sessionID}/archive", "v2.session.archive") + .seeded((ctx) => ctx.session({ title: "Archive" })) + .at((ctx) => ({ + path: route("/api/session/{sessionID}/archive", { sessionID: ctx.state.id }), + headers: ctx.headers(), + })) + .status( + 204, + (ctx) => + Effect.gen(function* () { + const info: unknown = yield* ctx.sessionGet(ctx.state.id) + check(isRecord(info), "archived session should remain in storage") + check(isRecord(info.time) && typeof info.time.archived === "number", "session should be marked archived") + }), + "none", + ), http.protected .post("/api/session/{sessionID}/agent", "v2.session.switchAgent") .seeded((ctx) => ctx.session({ title: "Switch agent" })) @@ -1656,14 +1760,7 @@ const scenarios: Scenario[] = [ .mutating() .seeded((ctx) => ctx.session({ title: "Share session" })) .at((ctx) => ({ path: route("/session/{sessionID}/share", { sessionID: ctx.state.id }), headers: ctx.headers() })) - .json( - 200, - (body, ctx) => { - object(body) - check(body.id === ctx.state.id, "share should return the session") - }, - "status", - ), + .json(500, object, "status"), http.protected .delete("/session/{sessionID}/share", "session.unshare") .mutating() diff --git a/packages/opencode/test/server/httpapi-exercise/runner.ts b/packages/opencode/test/server/httpapi-exercise/runner.ts index b7ad6d6208..a452064911 100644 --- a/packages/opencode/test/server/httpapi-exercise/runner.ts +++ b/packages/opencode/test/server/httpapi-exercise/runner.ts @@ -3,9 +3,7 @@ import { ConfigV1 } from "@opencode-ai/core/v1/config/config" import { SessionV1 } from "@opencode-ai/core/v1/session" import { Cause, Duration, Effect, Layer, Scope } from "effect" import { TestLLMServer } from "../../lib/llm-server" -import type { Config } from "../../../src/config/config" -import type { MessageV2 } from "../../../src/session/message-v2" import { MessageID, PartID } from "../../../src/session/schema" import { call, callAuthProbe, disposeApps } from "./backend" import { original } from "./environment" diff --git a/packages/opencode/test/server/httpapi-exercise/types.ts b/packages/opencode/test/server/httpapi-exercise/types.ts index acc1898e32..2175adb3cc 100644 --- a/packages/opencode/test/server/httpapi-exercise/types.ts +++ b/packages/opencode/test/server/httpapi-exercise/types.ts @@ -1,10 +1,8 @@ import type { Duration, Effect } from "effect" import { ConfigV1 } from "@opencode-ai/core/v1/config/config" import { SessionV1 } from "@opencode-ai/core/v1/session" -import type { Config } from "../../../src/config/config" import type { Project } from "../../../src/project/project" import type { Worktree } from "../../../src/worktree" -import type { MessageV2 } from "../../../src/session/message-v2" import type { SessionID } from "../../../src/session/schema" export const OpenApiMethods = ["get", "post", "put", "delete", "patch"] as const diff --git a/packages/opencode/test/server/httpapi-sdk.test.ts b/packages/opencode/test/server/httpapi-sdk.test.ts index c81b3b771b..7c15766e22 100644 --- a/packages/opencode/test/server/httpapi-sdk.test.ts +++ b/packages/opencode/test/server/httpapi-sdk.test.ts @@ -17,7 +17,6 @@ import { InstanceStore } from "../../src/project/instance-store" import { MessageID, PartID, SessionID } from "../../src/session/schema" import { MessageV2 } from "../../src/session/message-v2" -import type { Config } from "@/config/config" import { Session as SessionNs } from "@/session/session" import { errorMessage } from "../../src/util/error" import { TestLLMServer } from "../lib/llm-server" diff --git a/packages/opencode/test/session/instruction.test.ts b/packages/opencode/test/session/instruction.test.ts index cdbc6e66d7..3485d56668 100644 --- a/packages/opencode/test/session/instruction.test.ts +++ b/packages/opencode/test/session/instruction.test.ts @@ -5,7 +5,6 @@ import { Effect, FileSystem, Layer } from "effect" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" import { Instruction } from "../../src/session/instruction" -import type { MessageV2 } from "../../src/session/message-v2" import { MessageID, PartID, SessionID } from "../../src/session/schema" import { Global } from "@opencode-ai/core/global" import { RuntimeFlags } from "../../src/effect/runtime-flags" diff --git a/packages/opencode/test/session/message-v2.test.ts b/packages/opencode/test/session/message-v2.test.ts index 734a30e424..5ee876210e 100644 --- a/packages/opencode/test/session/message-v2.test.ts +++ b/packages/opencode/test/session/message-v2.test.ts @@ -1,6 +1,7 @@ import { describe, expect, test } from "bun:test" import { SessionV1 } from "@opencode-ai/core/v1/session" -import { APICallError } from "ai" +import { createXai } from "@ai-sdk/xai" +import { APICallError, generateText } from "ai" import { MessageV2 } from "../../src/session/message-v2" import { ProviderTransform } from "@/provider/transform" import type { Provider } from "@/provider/provider" @@ -494,6 +495,195 @@ describe("session.message-v2.toModelMessage", () => { }) }) + test("sends tool-result images to xai responses as input_image", async () => { + const xaiModel: Provider.Model = { + ...model, + id: ModelV2.ID.make("grok-4.7"), + providerID: ProviderV2.ID.make("xai"), + api: { + id: "grok-4.7", + url: "https://api.x.ai/v1", + npm: "@ai-sdk/xai", + }, + capabilities: { + ...model.capabilities, + attachment: true, + input: { + ...model.capabilities.input, + image: true, + }, + }, + } + const png = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]).toString("base64") + const userID = "m-user-xai" + const assistantID = "m-assistant-xai" + const input: SessionV1.WithParts[] = [ + { + info: userInfo(userID), + parts: [ + { + ...basePart(userID, "u1-xai"), + type: "text", + text: "describe the diagram", + }, + ] as SessionV1.Part[], + }, + { + info: assistantInfo(assistantID, userID), + parts: [ + { + ...basePart(assistantID, "a1-xai"), + type: "tool", + callID: "call-xai-1", + tool: "read", + state: { + status: "completed", + input: { filePath: "/tmp/diagram.png" }, + output: "Image read successfully", + title: "Read", + metadata: {}, + time: { start: 0, end: 1 }, + attachments: [ + { + ...basePart(assistantID, "file-xai-1"), + type: "file", + mime: "image/png", + filename: "diagram.png", + url: `data:image/png;base64,${png}`, + }, + ], + }, + }, + ] as SessionV1.Part[], + }, + ] + + const bodies: Record[] = [] + const xai = createXai({ + apiKey: "test", + fetch: Object.assign( + async (url: RequestInfo | URL, init?: RequestInit) => { + bodies.push(await new Request(url, init).json()) + return new Response("{}", { status: 400 }) + }, + { preconnect: globalThis.fetch.preconnect }, + ), + }) + await generateText({ + model: xai.responses(xaiModel.api.id), + messages: ProviderTransform.message(await MessageV2.toModelMessages(input, xaiModel), xaiModel, {}), + providerOptions: { xai: { promptCacheKey: "session", reasoningEffort: "xhigh" } }, + maxRetries: 0, + }).catch(() => undefined) + + expect(bodies).toHaveLength(1) + expect(bodies[0].prompt_cache_key).toBe("session") + expect(bodies[0].reasoning).toEqual({ effort: "xhigh" }) + expect(bodies[0].input).toContainEqual({ + type: "function_call_output", + call_id: "call-xai-1", + output: [ + { type: "input_text", text: "Image read successfully" }, + { type: "input_image", image_url: `data:image/png;base64,${png}` }, + ], + }) + }) + + test("drops tool-result images xai rejects but keeps png and webp", async () => { + const xaiModel: Provider.Model = { + ...model, + id: ModelV2.ID.make("grok-4.7"), + providerID: ProviderV2.ID.make("xai"), + api: { + id: "grok-4.7", + url: "https://api.x.ai/v1", + npm: "@ai-sdk/xai", + }, + capabilities: { + ...model.capabilities, + attachment: true, + input: { + ...model.capabilities.input, + image: true, + }, + }, + } + const images = [ + { mime: "image/png", data: Buffer.from([0x89, 0x50, 0x4e, 0x47]).toString("base64") }, + { mime: "image/gif", data: Buffer.from("GIF89a").toString("base64") }, + { mime: "image/webp", data: Buffer.from("RIFFWEBP").toString("base64") }, + ] + const userID = "m-user-xai-gif" + const assistantID = "m-assistant-xai-gif" + const input: SessionV1.WithParts[] = [ + { + info: userInfo(userID), + parts: [ + { + ...basePart(userID, "u1-xai-gif"), + type: "text", + text: "describe the images", + }, + ] as SessionV1.Part[], + }, + { + info: assistantInfo(assistantID, userID), + parts: [ + { + ...basePart(assistantID, "a1-xai-gif"), + type: "tool", + callID: "call-xai-gif", + tool: "read", + state: { + status: "completed", + input: { filePath: "/tmp/images" }, + output: "Images read successfully", + title: "Read", + metadata: {}, + time: { start: 0, end: 1 }, + attachments: images.map((image, index) => ({ + ...basePart(assistantID, `file-xai-gif-${index}`), + type: "file" as const, + mime: image.mime, + filename: `image-${index}`, + url: `data:${image.mime};base64,${image.data}`, + })), + }, + }, + ] as SessionV1.Part[], + }, + ] + + const bodies: Record[] = [] + const xai = createXai({ + apiKey: "test", + fetch: Object.assign( + async (url: RequestInfo | URL, init?: RequestInit) => { + bodies.push(await new Request(url, init).json()) + return new Response("{}", { status: 400 }) + }, + { preconnect: globalThis.fetch.preconnect }, + ), + }) + await generateText({ + model: xai.responses(xaiModel.api.id), + messages: ProviderTransform.message(await MessageV2.toModelMessages(input, xaiModel), xaiModel, {}), + maxRetries: 0, + }).catch(() => undefined) + + expect(bodies).toHaveLength(1) + expect(bodies[0].input).toContainEqual({ + type: "function_call_output", + call_id: "call-xai-gif", + output: [ + { type: "input_text", text: "Images read successfully" }, + { type: "input_image", image_url: `data:image/png;base64,${images[0].data}` }, + { type: "input_image", image_url: `data:image/webp;base64,${images[2].data}` }, + ], + }) + expect(JSON.stringify(bodies[0])).not.toContain("image/gif") + }) + test("moves bedrock pdf tool-result media into a separate user message", async () => { const bedrockModel: Provider.Model = { ...model, diff --git a/packages/opencode/test/share/share-next.test.ts b/packages/opencode/test/share/share-next.test.ts deleted file mode 100644 index fe036be8c9..0000000000 --- a/packages/opencode/test/share/share-next.test.ts +++ /dev/null @@ -1,324 +0,0 @@ -import { beforeEach, describe, expect } from "bun:test" -import { Effect, Exit, Layer, Option } from "effect" -import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http" -import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { httpClient } from "@opencode-ai/core/effect/app-node-platform" -import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" -import { SessionProjector } from "@opencode-ai/core/session/projector" - -import { AccessToken, AccountID, OrgID, RefreshToken } from "../../src/account/schema" -import { AccountRepo } from "../../src/account/repo" -import { EventV2Bridge } from "../../src/event-v2-bridge" -import { Session } from "@/session/session" -import type { SessionID } from "../../src/session/schema" -import { ShareNext } from "@/share/share-next" -import { SessionShareTable } from "@opencode-ai/core/share/sql" -import { Database } from "@opencode-ai/core/database/database" -import { eq } from "drizzle-orm" -import { provideTmpdirInstance } from "../fixture/fixture" -import { resetDatabase } from "../fixture/db" -import { pollWithTimeout, testEffect } from "../lib/effect" - -const env = LayerNode.compile(LayerNode.group([CrossSpawnSpawner.node])) -const it = testEffect(env) - -const json = (req: Parameters[0], body: unknown, status = 200) => - HttpClientResponse.fromWeb( - req, - new Response(JSON.stringify(body), { - status, - headers: { "content-type": "application/json" }, - }), - ) - -const none = HttpClient.make(() => Effect.die("unexpected http call")) - -function requestLayer(client: HttpClient.HttpClient) { - const replacement = [httpClient, Layer.succeed(HttpClient.HttpClient, client)] as const - return LayerNode.compile(LayerNode.group([ShareNext.node, AccountRepo.node]), [replacement]) -} - -function integrationLayer(client: HttpClient.HttpClient) { - const replacement = [httpClient, Layer.succeed(HttpClient.HttpClient, client)] as const - return LayerNode.compile( - LayerNode.group([ - ShareNext.node, - EventV2Bridge.node, - Session.node, - SessionProjector.node, - AccountRepo.node, - Database.node, - ]), - [replacement], - ) -} - -const share = (id: SessionID) => - Effect.gen(function* () { - const { db } = yield* Database.Service - return yield* db - .select() - .from(SessionShareTable) - .where(eq(SessionShareTable.session_id, id)) - .get() - .pipe(Effect.orDie) - }) - -const seed = (url: string, org?: string) => - AccountRepo.Service.use((repo) => - repo.persistAccount({ - id: AccountID.make("account-1"), - email: "user@example.com", - url, - accessToken: AccessToken.make("st_test_token"), - refreshToken: RefreshToken.make("rt_test_token"), - expiry: Date.now() + 10 * 60_000, - orgID: org ? Option.some(OrgID.make(org)) : Option.none(), - }), - ) - -beforeEach(async () => { - await resetDatabase() -}) - -describe("ShareNext", () => { - it.live("request uses legacy share API without active org account", () => - provideTmpdirInstance( - () => - ShareNext.Service.use((svc) => - Effect.gen(function* () { - const req = yield* svc.request() - - expect(req.api.create).toBe("/api/share") - expect(req.api.sync("shr_123")).toBe("/api/share/shr_123/sync") - expect(req.api.remove("shr_123")).toBe("/api/share/shr_123") - expect(req.api.data("shr_123")).toBe("/api/share/shr_123/data") - expect(req.baseUrl).toBe("https://legacy-share.example.com") - expect(req.headers).toEqual({}) - }), - ).pipe(Effect.provide(requestLayer(none))), - { config: { enterprise: { url: "https://legacy-share.example.com" } } }, - ), - ) - - it.live("request uses default URL when no enterprise config", () => - provideTmpdirInstance(() => - ShareNext.Service.use((svc) => - Effect.gen(function* () { - const req = yield* svc.request() - - expect(req.baseUrl).toBe("https://opncd.ai") - expect(req.api.create).toBe("/api/share") - expect(req.headers).toEqual({}) - }), - ).pipe(Effect.provide(requestLayer(none))), - ), - ) - - it.live("request uses org share API with auth headers when account is active", () => - provideTmpdirInstance(() => - Effect.gen(function* () { - yield* seed("https://control.example.com", "org-1") - - const req = yield* ShareNext.use.request() - - expect(req.api.create).toBe("/api/shares") - expect(req.api.sync("shr_123")).toBe("/api/shares/shr_123/sync") - expect(req.api.remove("shr_123")).toBe("/api/shares/shr_123") - expect(req.api.data("shr_123")).toBe("/api/shares/shr_123/data") - expect(req.baseUrl).toBe("https://control.example.com") - expect(req.headers).toEqual({ - authorization: "Bearer st_test_token", - "x-org-id": "org-1", - }) - }).pipe(Effect.provide(requestLayer(none))), - ), - ) - - it.live("create posts share, persists it, and returns the result", () => - provideTmpdirInstance( - () => { - const createRequests: HttpClientRequest.HttpClientRequest[] = [] - const client = HttpClient.make((req) => { - if (req.url.endsWith("/api/share")) { - createRequests.push(req) - return Effect.succeed( - json(req, { - id: "shr_abc", - url: "https://legacy-share.example.com/share/abc", - secret: "sec_123", - }), - ) - } - return Effect.succeed(json(req, { ok: true })) - }) - return Effect.gen(function* () { - const session = yield* (yield* Session.Service).create({ title: "test" }) - - const result = yield* (yield* ShareNext.Service).create(session.id) - - expect(result.id).toBe("shr_abc") - expect(result.url).toBe("https://legacy-share.example.com/share/abc") - expect(result.secret).toBe("sec_123") - - const row = yield* share(session.id) - expect(row?.id).toBe("shr_abc") - expect(row?.url).toBe("https://legacy-share.example.com/share/abc") - expect(row?.secret).toBe("sec_123") - - expect(createRequests).toHaveLength(1) - expect(createRequests[0].method).toBe("POST") - expect(createRequests[0].url).toBe("https://legacy-share.example.com/api/share") - }).pipe(Effect.provide(integrationLayer(client))) - }, - { config: { enterprise: { url: "https://legacy-share.example.com" } } }, - ), - ) - - it.live("remove deletes the persisted share and calls the delete endpoint", () => - provideTmpdirInstance( - () => { - const seen: HttpClientRequest.HttpClientRequest[] = [] - const client = HttpClient.make((req) => { - seen.push(req) - if (req.method === "POST") { - return Effect.succeed( - json(req, { - id: "shr_abc", - url: "https://legacy-share.example.com/share/abc", - secret: "sec_123", - }), - ) - } - return Effect.succeed(HttpClientResponse.fromWeb(req, new Response(null, { status: 200 }))) - }) - return Effect.gen(function* () { - const session = yield* (yield* Session.Service).create({ title: "test" }) - const service = yield* ShareNext.Service - - yield* service.create(session.id) - yield* service.remove(session.id) - - expect(yield* share(session.id)).toBeUndefined() - expect(seen.map((req) => [req.method, req.url])).toEqual([ - ["POST", "https://legacy-share.example.com/api/share"], - ["DELETE", "https://legacy-share.example.com/api/share/shr_abc"], - ]) - }).pipe(Effect.provide(integrationLayer(client))) - }, - { config: { enterprise: { url: "https://legacy-share.example.com" } } }, - ), - ) - - it.live("create fails on a non-ok response and does not persist a share", () => - provideTmpdirInstance(() => { - const client = HttpClient.make((req) => Effect.succeed(json(req, { error: "bad" }, 500))) - return Effect.gen(function* () { - const session = yield* (yield* Session.Service).create({ title: "test" }) - - const exit = yield* ShareNext.Service.use((svc) => Effect.exit(svc.create(session.id))) - - expect(Exit.isFailure(exit)).toBe(true) - expect(yield* share(session.id)).toBeUndefined() - }).pipe(Effect.provide(integrationLayer(client))) - }), - ) - - it.live("ShareNext coalesces rapid diff events into one delayed sync with latest data", () => - provideTmpdirInstance( - () => { - const seen: Array<{ url: string; body: string }> = [] - const client = HttpClient.make((req) => { - if (req.url.endsWith("/sync") && req.body._tag === "Uint8Array") { - seen.push({ url: req.url, body: new TextDecoder().decode(req.body.body) }) - } - return Effect.succeed(json(req, { ok: true })) - }) - - return Effect.gen(function* () { - const events = yield* EventV2Bridge.Service - const share = yield* ShareNext.Service - const session = yield* Session.Service - - const info = yield* session.create({ title: "first" }) - yield* share.init() - yield* Effect.sleep(50) - const { db } = yield* Database.Service - yield* db - .insert(SessionShareTable) - .values({ - session_id: info.id, - id: "shr_abc", - url: "https://legacy-share.example.com/share/abc", - secret: "sec_123", - }) - .run() - .pipe(Effect.orDie) - - yield* events.publish(Session.Event.Diff, { - sessionID: info.id, - diff: [ - { - file: "a.ts", - patch: - "Index: a.ts\n===================================================================\n--- a.ts\t\n+++ a.ts\t\n@@ -1,1 +1,1 @@\n-one\n\\ No newline at end of file\n+two\n\\ No newline at end of file\n", - additions: 1, - deletions: 1, - status: "modified", - }, - ], - }) - yield* events.publish(Session.Event.Diff, { - sessionID: info.id, - diff: [ - { - file: "b.ts", - patch: - "Index: b.ts\n===================================================================\n--- b.ts\t\n+++ b.ts\t\n@@ -1,1 +1,1 @@\n-old\n\\ No newline at end of file\n+new\n\\ No newline at end of file\n", - additions: 2, - deletions: 0, - status: "modified", - }, - ], - }) - yield* pollWithTimeout( - Effect.sync(() => (seen.length === 1 ? true : undefined)), - "timed out waiting for share sync", - "5 seconds", - ) - - expect(seen).toHaveLength(1) - expect(seen[0].url).toBe("https://legacy-share.example.com/api/share/shr_abc/sync") - - const body = JSON.parse(seen[0].body) as { - secret: string - data: Array<{ - type: string - data: Array<{ - file: string - patch: string - additions: number - deletions: number - status?: string - }> - }> - } - expect(body.secret).toBe("sec_123") - expect(body.data).toHaveLength(1) - expect(body.data[0].type).toBe("session_diff") - expect(body.data[0].data).toEqual([ - { - file: "b.ts", - patch: - "Index: b.ts\n===================================================================\n--- b.ts\t\n+++ b.ts\t\n@@ -1,1 +1,1 @@\n-old\n\\ No newline at end of file\n+new\n\\ No newline at end of file\n", - additions: 2, - deletions: 0, - status: "modified", - }, - ]) - }).pipe(Effect.provide(integrationLayer(client))) - }, - { config: { enterprise: { url: "https://legacy-share.example.com" } } }, - ), - ) -}) diff --git a/packages/opencode/test/tool/__snapshots__/parameters.test.ts.snap b/packages/opencode/test/tool/__snapshots__/parameters.test.ts.snap index 51ff867ea4..4114719ae0 100644 --- a/packages/opencode/test/tool/__snapshots__/parameters.test.ts.snap +++ b/packages/opencode/test/tool/__snapshots__/parameters.test.ts.snap @@ -305,6 +305,17 @@ exports[`tool parameters JSON Schema (wire shape) task 1`] = ` "description": "Run the agent in the background. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress", "type": "boolean", }, + "browser_tab_ids": { + "description": "Explicit browser tab IDs to delegate to a NEW foreground child task. Cannot be used with task_id or background=true.", + "items": { + "pattern": "^[A-Za-z0-9_-]{1,128}$", + "type": "string", + }, + "maxItems": 16, + "minItems": 1, + "type": "array", + "uniqueItems": true, + }, "command": { "description": "The command that triggered this task", "type": "string", diff --git a/packages/opencode/test/tool/apply_patch.test.ts b/packages/opencode/test/tool/apply_patch.test.ts index 742036154b..142cef52f8 100644 --- a/packages/opencode/test/tool/apply_patch.test.ts +++ b/packages/opencode/test/tool/apply_patch.test.ts @@ -3,7 +3,7 @@ import path from "path" import * as fs from "fs/promises" import { PermissionV1 } from "@opencode-ai/core/v1/permission" import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { Cause, Effect, Exit, Layer, Schema } from "effect" +import { Cause, Effect, Exit, Schema } from "effect" import { ApplyPatchTool } from "../../src/tool/apply_patch" import { LSP } from "@/lsp/lsp" import { FSUtil } from "@opencode-ai/core/fs-util" diff --git a/packages/opencode/test/tool/edit.test.ts b/packages/opencode/test/tool/edit.test.ts index 46155a5091..0cdfa715e3 100644 --- a/packages/opencode/test/tool/edit.test.ts +++ b/packages/opencode/test/tool/edit.test.ts @@ -2,7 +2,7 @@ import { afterEach, describe, expect } from "bun:test" import path from "path" import fs from "fs/promises" import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { Cause, Deferred, Effect, Exit, Fiber, Layer } from "effect" +import { Cause, Deferred, Effect, Exit, Fiber } from "effect" import { EditTool } from "../../src/tool/edit" import { disposeAllInstances, TestInstance } from "../fixture/fixture" import { LSP } from "@/lsp/lsp" diff --git a/packages/opencode/test/tool/external-directory.test.ts b/packages/opencode/test/tool/external-directory.test.ts index d43accfb70..9834d5f109 100644 --- a/packages/opencode/test/tool/external-directory.test.ts +++ b/packages/opencode/test/tool/external-directory.test.ts @@ -8,7 +8,6 @@ import type { Tool } from "@/tool/tool" import { assertExternalDirectoryEffect } from "../../src/tool/external-directory" import { Filesystem } from "@/util/filesystem" import { TestInstance, tmpdirScoped } from "../fixture/fixture" -import type { Permission } from "../../src/permission" import { SessionID, MessageID } from "../../src/session/schema" import { testEffect } from "../lib/effect" diff --git a/packages/opencode/test/tool/glob.test.ts b/packages/opencode/test/tool/glob.test.ts index 018b1a0b9a..1bdbe67d48 100644 --- a/packages/opencode/test/tool/glob.test.ts +++ b/packages/opencode/test/tool/glob.test.ts @@ -2,7 +2,7 @@ import { PermissionV1 } from "@opencode-ai/core/v1/permission" import { describe, expect } from "bun:test" import path from "path" import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { Cause, Effect, Exit, Layer } from "effect" +import { Cause, Effect, Exit } from "effect" import { GlobTool } from "../../src/tool/glob" import { SessionID, MessageID } from "../../src/session/schema" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" @@ -11,7 +11,7 @@ import { FSUtil } from "@opencode-ai/core/fs-util" import { Global } from "@opencode-ai/core/global" import { Truncate } from "@/tool/truncate" import { Agent } from "../../src/agent/agent" -import { TestInstance, tmpdirScoped } from "../fixture/fixture" +import { TestInstance } from "../fixture/fixture" import { testEffect } from "../lib/effect" import { Config } from "@/config/config" import { RuntimeFlags } from "@/effect/runtime-flags" diff --git a/packages/opencode/test/tool/grep.test.ts b/packages/opencode/test/tool/grep.test.ts index 13858f9f92..6622e72ce3 100644 --- a/packages/opencode/test/tool/grep.test.ts +++ b/packages/opencode/test/tool/grep.test.ts @@ -6,7 +6,7 @@ import path from "path" import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { Effect, Layer } from "effect" import { GrepTool } from "../../src/tool/grep" -import { provideInstance, testInstanceStoreLayer, TestInstance, tmpdirScoped } from "../fixture/fixture" +import { provideInstance, testInstanceStoreLayer, TestInstance } from "../fixture/fixture" import { SessionID, MessageID } from "../../src/session/schema" import { CrossSpawnSpawner } from "@opencode-ai/core/cross-spawn-spawner" import { Global } from "@opencode-ai/core/global" diff --git a/packages/opencode/test/tool/shell.test.ts b/packages/opencode/test/tool/shell.test.ts index a970f85d46..02c31ad815 100644 --- a/packages/opencode/test/tool/shell.test.ts +++ b/packages/opencode/test/tool/shell.test.ts @@ -10,7 +10,6 @@ import { Shell } from "@opencode-ai/core/shell" import { ShellTool } from "../../src/tool/shell" import { Filesystem } from "@/util/filesystem" import { provideInstance, testInstanceStoreLayer, tmpdirScoped } from "../fixture/fixture" -import type { Permission } from "../../src/permission" import { Agent } from "../../src/agent/agent" import { Truncate } from "@/tool/truncate" import { SessionID, MessageID } from "../../src/session/schema" diff --git a/packages/opencode/test/tool/task.test.ts b/packages/opencode/test/tool/task.test.ts index f48c1d6ba7..1a32827aee 100644 --- a/packages/opencode/test/tool/task.test.ts +++ b/packages/opencode/test/tool/task.test.ts @@ -4,7 +4,7 @@ import { Database } from "@opencode-ai/core/database/database" import { LayerNode } from "@opencode-ai/core/effect/layer-node" import { SessionProjector } from "@opencode-ai/core/session/projector" import path from "path" -import { Cause, Deferred, Effect, Exit, Fiber, Layer } from "effect" +import { Cause, Deferred, Effect, Exit, Fiber } from "effect" import { Agent } from "../../src/agent/agent" import { BackgroundJob } from "@/background/job" import { EventV2Bridge } from "@/event-v2-bridge" diff --git a/packages/opencode/test/tool/write.test.ts b/packages/opencode/test/tool/write.test.ts index 4f897dc875..61d9fd277a 100644 --- a/packages/opencode/test/tool/write.test.ts +++ b/packages/opencode/test/tool/write.test.ts @@ -1,6 +1,6 @@ import { afterEach, describe, expect } from "bun:test" import { LayerNode } from "@opencode-ai/core/effect/layer-node" -import { Effect, Layer } from "effect" +import { Effect } from "effect" import path from "path" import fs from "fs/promises" import { WriteTool } from "../../src/tool/write" diff --git a/packages/plugin/package.json b/packages/plugin/package.json index e9a654d58e..5b17c2ecd7 100644 --- a/packages/plugin/package.json +++ b/packages/plugin/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/plugin", - "version": "1.18.34", + "version": "1.19.5", "type": "module", "license": "MIT", "scripts": { diff --git a/packages/protocol/src/groups/pty.ts b/packages/protocol/src/groups/pty.ts index a40b6c4b53..501baaae48 100644 --- a/packages/protocol/src/groups/pty.ts +++ b/packages/protocol/src/groups/pty.ts @@ -9,14 +9,7 @@ import { LocationQuery, locationQueryOpenApi } from "./location" export const PTY_CONNECT_TICKET_QUERY = "ticket" export const PTY_CONNECT_TOKEN_HEADER = "x-opencode-ticket" export const PTY_CONNECT_TOKEN_HEADER_VALUE = "1" - -const PTY_CONNECT_PATH = /^\/api\/pty\/[^/]+\/connect$/ - -// Authorization middleware skips credential checks when this matches; the PTY connect handler -// is then responsible for consuming and validating the ticket. -export function hasPtyConnectTicketURL(url: URL) { - return PTY_CONNECT_PATH.test(url.pathname) && !!url.searchParams.get(PTY_CONNECT_TICKET_QUERY) -} +export const PTY_CONNECT_PATH = "/api/pty/:ptyID/connect" export const PtyGroup = HttpApiGroup.make("server.pty") .add( @@ -116,7 +109,7 @@ export const PtyGroup = HttpApiGroup.make("server.pty") .add( // Query fields are decoded in the raw handler after the existence check so a missing // session responds with an empty 404 before any upgrade work. - HttpApiEndpoint.get("pty.connect", "/api/pty/:ptyID/connect", { + HttpApiEndpoint.get("pty.connect", PTY_CONNECT_PATH, { params: { ptyID: Pty.ID }, success: Schema.Boolean, error: [ForbiddenError, PtyNotFoundError], diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json index bdbdf4ec8f..2934585388 100644 --- a/packages/sdk/js/package.json +++ b/packages/sdk/js/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/sdk", - "version": "1.18.34", + "version": "1.19.5", "type": "module", "license": "MIT", "scripts": { diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index fad9940189..3363976a88 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -1784,6 +1784,23 @@ export type ProviderConfig = { release_date?: string attachment?: boolean reasoning?: boolean + /** + * Reasoning controls the model accepts, used to build its variants + */ + reasoning_options?: Array< + | { + type: "effort" + values: Array + } + | { + type: "toggle" + } + | { + type: "budget_tokens" + min?: number + max?: number + } + > temperature?: boolean tool_call?: boolean interleaved?: @@ -1944,7 +1961,7 @@ export type Config = { share?: "manual" | "auto" | "disabled" autoshare?: boolean /** - * Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications + * Check for new versions and show an update notice. Updates are never installed automatically; run /update or `opencode upgrade`. Set to false to disable update checks. true and 'notify' behave the same */ autoupdate?: boolean | "notify" disabled_providers?: Array diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index e66d140505..9ad996b608 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -6,6 +6,157 @@ "description": "opencode api" }, "paths": { + "/schedule": { + "get": { + "tags": ["schedule"], + "operationId": "schedule.list", + "parameters": [], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "version": { + "type": "number", + "enum": [1] + }, + "schedules": { + "type": "array" + }, + "occurrences": { + "type": "array" + }, + "totalOccurrences": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "string", + "enum": ["NaN"] + }, + { + "type": "string", + "enum": ["Infinity"] + }, + { + "type": "string", + "enum": ["-Infinity"] + }, + { + "type": "string", + "enum": ["Infinity", "-Infinity", "NaN"] + } + ] + } + }, + "required": ["version", "schedules", "occurrences", "totalOccurrences"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestError" + } + } + } + }, + "503": { + "description": "ServiceUnavailableError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableError" + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.schedule.list({\n ...\n})" + } + ] + }, + "post": { + "tags": ["schedule"], + "operationId": "schedule.manage", + "parameters": [], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": {} + } + } + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/InvalidRequestError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + }, + "503": { + "description": "ServiceUnavailableError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ServiceUnavailableError" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": ["create", "update", "pause", "resume", "delete", "acknowledge"] + }, + "id": { + "type": "string" + }, + "definition": {} + }, + "required": ["action"], + "additionalProperties": false + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.schedule.manage({\n ...\n})" + } + ] + } + }, "/auth/{providerID}": { "put": { "tags": ["control"], @@ -2850,6 +3001,566 @@ ] } }, + "/skill/catalog": { + "get": { + "tags": ["instance"], + "operationId": "instance.skillCatalog", + "parameters": [ + { + "name": "directory", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "workspace", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "revision": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": ["name", "source", "revision"], + "additionalProperties": false + } + } + } + } + }, + "400": { + "description": "SkillError | InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SkillError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.instance.skillCatalog({\n ...\n})" + } + ] + } + }, + "/skill/validate": { + "post": { + "tags": ["instance"], + "operationId": "instance.skillValidate", + "parameters": [ + { + "name": "directory", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "workspace", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "revision": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": ["name", "source", "revision"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "SkillError | InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SkillError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "revision": { + "type": "string" + } + }, + "required": ["name", "source", "revision"], + "additionalProperties": false + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.instance.skillValidate({\n ...\n})" + } + ] + } + }, + "/skill/manage": { + "post": { + "tags": ["instance"], + "operationId": "instance.skillManage", + "parameters": [ + { + "name": "directory", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "workspace", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "revision": { + "type": "string" + }, + "description": { + "type": "string" + }, + "content": { + "type": "string" + }, + "document": { + "type": "string" + }, + "location": { + "type": "string" + }, + "editable": { + "type": "boolean" + }, + "scope": { + "type": "string", + "enum": ["workspace", "global", "external"] + }, + "token": { + "type": "string" + }, + "digest": { + "type": "string" + }, + "backup": { + "type": "string" + }, + "deleted": { + "type": "boolean" + } + }, + "required": ["name", "source", "revision", "content", "document", "location", "editable", "scope"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "SkillError | InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SkillError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": ["read", "review", "apply"] + }, + "selected": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "revision": { + "type": "string" + } + }, + "required": ["name", "source", "revision"], + "additionalProperties": false + }, + "operation": { + "type": "string", + "enum": ["edit", "delete"] + }, + "draft": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "instructions": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": ["workspace", "global"] + } + }, + "required": ["name", "description", "instructions", "scope"], + "additionalProperties": false + }, + "token": { + "type": "string" + } + }, + "required": ["action", "selected"], + "additionalProperties": false + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.instance.skillManage({\n ...\n})" + } + ] + } + }, + "/skill/review": { + "post": { + "tags": ["instance"], + "operationId": "instance.skillReview", + "parameters": [ + { + "name": "directory", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "workspace", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "digest": { + "type": "string" + }, + "directory": { + "type": "string" + }, + "destination": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": ["workspace", "global"] + } + }, + "required": ["token", "digest", "directory", "destination", "scope"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "SkillError | InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SkillError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "instructions": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": ["workspace", "global"] + } + }, + "required": ["name", "description", "instructions", "scope"], + "additionalProperties": false + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.instance.skillReview({\n ...\n})" + } + ] + } + }, + "/skill/create": { + "post": { + "tags": ["instance"], + "operationId": "instance.skillCreate", + "parameters": [ + { + "name": "directory", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "workspace", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "revision": { + "type": "string" + }, + "description": { + "type": "string" + }, + "directory": { + "type": "string" + }, + "destination": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": ["workspace", "global"] + }, + "digest": { + "type": "string" + } + }, + "required": ["name", "source", "revision", "directory", "destination", "scope", "digest"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "SkillError | InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/SkillError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "instructions": { + "type": "string" + }, + "scope": { + "type": "string", + "enum": ["workspace", "global"] + }, + "token": { + "type": "string" + } + }, + "required": ["name", "description", "instructions", "scope", "token"], + "additionalProperties": false + } + } + } + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.instance.skillCreate({\n ...\n})" + } + ] + } + }, "/lsp": { "get": { "tags": ["instance"], @@ -9971,287 +10682,369 @@ } } } - } - }, - "description": "Retrieve currently registered agents.", - "summary": "List agents", - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.agent.list({\n ...\n})" - } - ] - } - }, - "/api/session": { - "get": { - "tags": ["sessions"], - "operationId": "v2.session.list", - "parameters": [ - { - "name": "workspace", - "in": "query", - "schema": { - "type": "string", - "pattern": "^wrk" - }, - "required": false - }, - { - "name": "limit", - "in": "query", - "schema": { - "type": "number" - }, - "required": false + } + }, + "description": "Retrieve currently registered agents.", + "summary": "List agents", + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.agent.list({\n ...\n})" + } + ] + } + }, + "/api/session": { + "get": { + "tags": ["sessions"], + "operationId": "v2.session.list", + "parameters": [ + { + "name": "workspace", + "in": "query", + "schema": { + "type": "string", + "pattern": "^wrk" + }, + "required": false + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "number" + }, + "required": false + }, + { + "name": "order", + "in": "query", + "schema": { + "type": "string", + "enum": ["asc", "desc"] + }, + "required": false + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "directory", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "project", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "subpath", + "in": "query", + "schema": { + "type": "string" + }, + "required": false + }, + { + "name": "cursor", + "in": "query", + "schema": { + "type": "string", + "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response." + }, + "required": false + } + ], + "security": [], + "responses": { + "200": { + "description": "SessionsResponse", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SessionsResponse" + } + } + } + }, + "400": { + "description": "InvalidCursorError | InvalidRequestError", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/InvalidCursorError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + }, + { + "$ref": "#/components/schemas/InvalidRequestError" + } + ] + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + } + }, + "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.", + "summary": "List sessions", + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.list({\n ...\n})" + } + ] + }, + "post": { + "tags": ["sessions"], + "operationId": "v2.session.create", + "parameters": [], + "security": [], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/SessionV2Info" + } + }, + "required": ["data"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidRequestError" + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + } + }, + "description": "Create a session at the requested location.", + "summary": "Create session", + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^ses" + }, + "agent": { + "type": "string" + }, + "model": { + "$ref": "#/components/schemas/ModelRef" + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + } + }, + "additionalProperties": false + } + } + }, + "required": true + }, + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.create({\n ...\n})" + } + ] + } + }, + "/api/session/active": { + "get": { + "tags": ["sessions"], + "operationId": "v2.session.active", + "parameters": [], + "security": [], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "object", + "patternProperties": { + "^ses": { + "$ref": "#/components/schemas/SessionActive" + } + } + } + }, + "required": ["data"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidRequestError" + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + } + }, + "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.", + "summary": "List active sessions", + "x-codeSamples": [ + { + "lang": "js", + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.active({\n ...\n})" + } + ] + } + }, + "/api/session/{sessionID}": { + "get": { + "tags": ["sessions"], + "operationId": "v2.session.get", + "parameters": [ + { + "name": "sessionID", + "in": "path", + "schema": { + "type": "string", + "pattern": "^ses" + }, + "required": true + } + ], + "security": [], + "responses": { + "200": { + "description": "Success", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/SessionV2Info" + } + }, + "required": ["data"], + "additionalProperties": false + } + } + } + }, + "400": { + "description": "InvalidRequestError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvalidRequestError" + } + } + } + }, + "401": { + "description": "UnauthorizedError", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } }, - { - "name": "order", - "in": "query", - "schema": { - "type": "string", - "enum": ["asc", "desc"] - }, - "required": false - }, - { - "name": "search", - "in": "query", - "schema": { - "type": "string" - }, - "required": false - }, - { - "name": "directory", - "in": "query", - "schema": { - "type": "string" - }, - "required": false - }, - { - "name": "project", - "in": "query", - "schema": { - "type": "string" - }, - "required": false - }, - { - "name": "subpath", - "in": "query", - "schema": { - "type": "string" - }, - "required": false - }, - { - "name": "cursor", - "in": "query", - "schema": { - "type": "string", - "description": "Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response." - }, - "required": false - } - ], - "security": [], - "responses": { - "200": { - "description": "SessionsResponse", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SessionsResponse" - } - } - } - }, - "400": { - "description": "InvalidCursorError | InvalidRequestError", + "404": { + "description": "SessionNotFoundError", "content": { "application/json": { "schema": { "anyOf": [ { - "$ref": "#/components/schemas/InvalidCursorError" - }, - { - "$ref": "#/components/schemas/InvalidRequestError" + "$ref": "#/components/schemas/SessionNotFoundError" }, { - "$ref": "#/components/schemas/InvalidRequestError" + "$ref": "#/components/schemas/SessionNotFoundError" } ] } } } - }, - "401": { - "description": "UnauthorizedError", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UnauthorizedError" - } - } - } } }, - "description": "Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.", - "summary": "List sessions", - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.list({\n ...\n})" - } - ] - }, - "post": { - "tags": ["sessions"], - "operationId": "v2.session.create", - "parameters": [], - "security": [], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/SessionV2Info" - } - }, - "required": ["data"], - "additionalProperties": false - } - } - } - }, - "400": { - "description": "InvalidRequestError", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InvalidRequestError" - } - } - } - }, - "401": { - "description": "UnauthorizedError", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UnauthorizedError" - } - } - } - } - }, - "description": "Create a session at the requested location.", - "summary": "Create session", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "id": { - "type": "string", - "pattern": "^ses" - }, - "agent": { - "type": "string" - }, - "model": { - "$ref": "#/components/schemas/ModelRef" - }, - "location": { - "$ref": "#/components/schemas/LocationRef" - } - }, - "additionalProperties": false - } - } - }, - "required": true - }, - "x-codeSamples": [ - { - "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.create({\n ...\n})" - } - ] - } - }, - "/api/session/active": { - "get": { - "tags": ["sessions"], - "operationId": "v2.session.active", - "parameters": [], - "security": [], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "type": "object", - "patternProperties": { - "^ses": { - "$ref": "#/components/schemas/SessionActive" - } - } - } - }, - "required": ["data"], - "additionalProperties": false - } - } - } - }, - "400": { - "description": "InvalidRequestError", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InvalidRequestError" - } - } - } - }, - "401": { - "description": "UnauthorizedError", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UnauthorizedError" - } - } - } - } - }, - "description": "Retrieve foreground Session drains currently owned by this OpenCode process. Sessions absent from the result are inactive.", - "summary": "List active sessions", + "description": "Retrieve a session by ID.", + "summary": "Get session", "x-codeSamples": [ { "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.active({\n ...\n})" + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.get({\n ...\n})" } ] } }, - "/api/session/{sessionID}": { - "get": { + "/api/session/{sessionID}/archive": { + "post": { "tags": ["sessions"], - "operationId": "v2.session.get", + "operationId": "v2.session.archive", "parameters": [ { "name": "sessionID", @@ -10265,22 +11058,8 @@ ], "security": [], "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/SessionV2Info" - } - }, - "required": ["data"], - "additionalProperties": false - } - } - } + "204": { + "description": "" }, "400": { "description": "InvalidRequestError", @@ -10320,12 +11099,12 @@ } } }, - "description": "Retrieve a session by ID.", - "summary": "Get session", + "description": "Archive a session while preserving its messages and durable history.", + "summary": "Archive session", "x-codeSamples": [ { "lang": "js", - "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.get({\n ...\n})" + "source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.v2.session.archive({\n ...\n})" } ] } @@ -15302,6 +16081,9 @@ { "$ref": "#/components/schemas/EventSessionNextMoved" }, + { + "$ref": "#/components/schemas/EventSessionNextArchived" + }, { "$ref": "#/components/schemas/EventSessionNextPrompted" }, @@ -15565,6 +16347,43 @@ "required": ["sessionID", "requestID"], "additionalProperties": false }, + "ServiceUnavailableError": { + "type": "object", + "properties": { + "_tag": { + "type": "string", + "enum": ["ServiceUnavailableError"] + }, + "message": { + "type": "string" + }, + "service": { + "type": "string" + } + }, + "required": ["_tag", "message"], + "additionalProperties": false + }, + "InvalidRequestError": { + "type": "object", + "properties": { + "_tag": { + "type": "string", + "enum": ["InvalidRequestError"] + }, + "message": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "field": { + "type": "string" + } + }, + "required": ["_tag", "message"], + "additionalProperties": false + }, "OAuth": { "type": "object", "properties": { @@ -15653,26 +16472,6 @@ "required": ["_tag"], "additionalProperties": false }, - "InvalidRequestError": { - "type": "object", - "properties": { - "_tag": { - "type": "string", - "enum": ["InvalidRequestError"] - }, - "message": { - "type": "string" - }, - "kind": { - "type": "string" - }, - "field": { - "type": "string" - } - }, - "required": ["_tag", "message"], - "additionalProperties": false - }, "MoveSessionError": { "type": "object", "properties": { @@ -17815,6 +18614,35 @@ "required": ["id", "type", "properties"], "additionalProperties": false }, + { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "type": { + "type": "string", + "enum": ["session.next.archived"] + }, + "properties": { + "type": "object", + "properties": { + "timestamp": { + "type": "number" + }, + "sessionID": { + "type": "string", + "pattern": "^ses" + } + }, + "required": ["timestamp", "sessionID"], + "additionalProperties": false + } + }, + "required": ["id", "type", "properties"], + "additionalProperties": false + }, { "type": "object", "properties": { @@ -20449,6 +21277,9 @@ { "$ref": "#/components/schemas/SyncEventSessionNextMoved" }, + { + "$ref": "#/components/schemas/SyncEventSessionNextArchived" + }, { "$ref": "#/components/schemas/SyncEventSessionNextPrompted" }, @@ -20821,6 +21652,59 @@ "reasoning": { "type": "boolean" }, + "reasoning_options": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["effort"] + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": ["type", "values"], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["toggle"] + } + }, + "required": ["type"], + "additionalProperties": false + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["budget_tokens"] + }, + "min": { + "type": "number" + }, + "max": { + "type": "number" + } + }, + "required": ["type"], + "additionalProperties": false + } + ] + }, + "description": "Reasoning controls the model accepts, used to build its variants" + }, "temperature": { "type": "boolean" }, @@ -21019,6 +21903,9 @@ "McpOAuthConfig": { "type": "object", "properties": { + "clientName": { + "type": "string" + }, "clientId": { "type": "string" }, @@ -21263,7 +22150,7 @@ "enum": ["notify"] } ], - "description": "Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications" + "description": "Check for new versions and show an update notice. Updates are never installed automatically; run /update or `opencode upgrade`. Set to false to disable update checks. true and 'notify' behave the same" }, "disabled_providers": { "type": "array", @@ -22577,6 +23464,27 @@ "required": ["name", "mode", "permission", "options"], "additionalProperties": false }, + "SkillError": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": ["SkillError"] + }, + "data": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": ["message"], + "additionalProperties": false + } + }, + "required": ["name", "data"], + "additionalProperties": false + }, "LSPStatus": { "type": "object", "properties": { @@ -23609,23 +24517,6 @@ "required": ["_tag", "message"], "additionalProperties": false }, - "ServiceUnavailableError": { - "type": "object", - "properties": { - "_tag": { - "type": "string", - "enum": ["ServiceUnavailableError"] - }, - "message": { - "type": "string" - }, - "service": { - "type": "string" - } - }, - "required": ["_tag", "message"], - "additionalProperties": false - }, "MessageNotFoundError": { "type": "object", "properties": { @@ -23674,6 +24565,9 @@ { "$ref": "#/components/schemas/SessionNextMoved" }, + { + "$ref": "#/components/schemas/SessionNextArchived" + }, { "$ref": "#/components/schemas/SessionNextPrompted" }, @@ -24054,6 +24948,9 @@ { "$ref": "#/components/schemas/SessionNextMoved" }, + { + "$ref": "#/components/schemas/SessionNextArchived" + }, { "$ref": "#/components/schemas/SessionNextPrompted" }, @@ -25448,6 +26345,56 @@ "required": ["type", "id", "syncEvent"], "additionalProperties": false }, + "SyncEventSessionNextArchived": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["sync"] + }, + "id": { + "type": "string", + "pattern": "^evt_" + }, + "syncEvent": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["session.next.archived.1"] + }, + "id": { + "type": "string", + "pattern": "^evt_" + }, + "seq": { + "type": "number" + }, + "aggregateID": { + "type": "string" + }, + "data": { + "type": "object", + "properties": { + "timestamp": { + "type": "number" + }, + "sessionID": { + "type": "string", + "pattern": "^ses" + } + }, + "required": ["timestamp", "sessionID"], + "additionalProperties": false + } + }, + "required": ["type", "id", "seq", "aggregateID", "data"], + "additionalProperties": false + } + }, + "required": ["type", "id", "syncEvent"], + "additionalProperties": false + }, "SyncEventSessionNextPrompted": { "type": "object", "properties": { @@ -28157,6 +29104,57 @@ "required": ["id", "type", "data"], "additionalProperties": false }, + "SessionNextArchived": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "metadata": { + "type": "object" + }, + "type": { + "type": "string", + "enum": ["session.next.archived"] + }, + "durable": { + "type": "object", + "properties": { + "aggregateID": { + "type": "string" + }, + "seq": { + "type": "integer" + }, + "version": { + "type": "integer" + } + }, + "required": ["aggregateID", "seq", "version"], + "additionalProperties": false + }, + "location": { + "$ref": "#/components/schemas/LocationRef" + }, + "data": { + "type": "object", + "properties": { + "timestamp": { + "type": "number" + }, + "sessionID": { + "type": "string", + "pattern": "^ses" + } + }, + "required": ["timestamp", "sessionID"], + "additionalProperties": false + } + }, + "required": ["id", "type", "data"], + "additionalProperties": false + }, "SessionNextPrompted": { "type": "object", "properties": { @@ -34235,6 +35233,35 @@ "required": ["id", "type", "properties"], "additionalProperties": false }, + "EventSessionNextArchived": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^evt_" + }, + "type": { + "type": "string", + "enum": ["session.next.archived"] + }, + "properties": { + "type": "object", + "properties": { + "timestamp": { + "type": "number" + }, + "sessionID": { + "type": "string", + "pattern": "^ses" + } + }, + "required": ["timestamp", "sessionID"], + "additionalProperties": false + } + }, + "required": ["id", "type", "properties"], + "additionalProperties": false + }, "EventSessionNextPrompted": { "type": "object", "properties": { @@ -36803,6 +37830,9 @@ }, "security": [], "tags": [ + { + "name": "schedule" + }, { "name": "control", "description": "Control plane routes." diff --git a/packages/server/package.json b/packages/server/package.json index ce326a94ea..584085d6b5 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/server", - "version": "1.18.34", + "version": "1.19.5", "private": true, "type": "module", "license": "MIT", diff --git a/packages/server/src/handlers/pty.ts b/packages/server/src/handlers/pty.ts index cda2cf43e9..1b83264ad1 100644 --- a/packages/server/src/handlers/pty.ts +++ b/packages/server/src/handlers/pty.ts @@ -140,6 +140,14 @@ export const PtyHandler = HttpApiBuilder.group(Api, "server.pty", (handlers) => .handleRaw( "pty.connect", Effect.fn("PtyHandler.connect")(function* (ctx) { + if (!isAllowedRequestOrigin(ctx.request.headers.origin, ctx.request.headers.host, cors)) + return HttpServerResponse.empty({ status: 403 }) + + const url = new URL(ctx.request.url, "http://localhost") + const ticket = url.searchParams.get(PTY_CONNECT_TICKET_QUERY) + if (ticket && !(yield* tickets.consume({ ticket, ptyID: ctx.params.ptyID, ...(yield* ticketScope) }))) + return HttpServerResponse.empty({ status: 403 }) + const pty = yield* Pty.Service const exists = yield* pty.get(ctx.params.ptyID).pipe( Effect.as(true), @@ -147,14 +155,6 @@ export const PtyHandler = HttpApiBuilder.group(Api, "server.pty", (handlers) => ) if (!exists) return HttpServerResponse.empty({ status: 404 }) - const url = new URL(ctx.request.url, "http://localhost") - const ticket = url.searchParams.get(PTY_CONNECT_TICKET_QUERY) - if (ticket) { - const valid = isAllowedRequestOrigin(ctx.request.headers.origin, ctx.request.headers.host, cors) - ? yield* tickets.consume({ ticket, ptyID: ctx.params.ptyID, ...(yield* ticketScope) }) - : false - if (!valid) return HttpServerResponse.empty({ status: 403 }) - } const parsedCursor = url.searchParams.get("cursor") const cursorNumber = parsedCursor === null ? undefined : Number(parsedCursor) const cursor = diff --git a/packages/server/src/middleware/authorization.ts b/packages/server/src/middleware/authorization.ts index cc785ee247..bfa4c0a632 100644 --- a/packages/server/src/middleware/authorization.ts +++ b/packages/server/src/middleware/authorization.ts @@ -2,9 +2,9 @@ import { ServerAuth } from "../auth" import { UnauthorizedError } from "@opencode-ai/protocol/errors" import { Authorization } from "@opencode-ai/protocol/middleware/authorization" export { Authorization } from "@opencode-ai/protocol/middleware/authorization" -import { hasPtyConnectTicketURL } from "@opencode-ai/protocol/groups/pty" +import { PTY_CONNECT_PATH, PTY_CONNECT_TICKET_QUERY } from "@opencode-ai/protocol/groups/pty" import { Effect, Encoding, Layer, Redacted } from "effect" -import { HttpEffect, HttpServerRequest, HttpServerResponse } from "effect/unstable/http" +import { HttpEffect, HttpRouter, HttpServerRequest, HttpServerResponse } from "effect/unstable/http" const AUTH_TOKEN_QUERY = "auth_token" const WWW_AUTHENTICATE = 'Basic realm="Secure Area"' @@ -43,9 +43,13 @@ export const authorizationLayer = Layer.effect( return Authorization.of((effect) => Effect.gen(function* () { const request = yield* HttpServerRequest.HttpServerRequest + const route = yield* HttpRouter.RouteContext // Browsers cannot set headers on WebSocket upgrades, so a ticketed PTY connect skips - // credential checks here; the connect handler consumes and validates the ticket. - if (hasPtyConnectTicketURL(new URL(request.url, "http://localhost"))) return yield* effect + // credential checks here; the connect handler consumes and validates the ticket. Use the + // route selected by Effect so authorization and dispatch cannot disagree about the request path. + const url = new URL(request.url, "http://localhost") + if (route.route.path === PTY_CONNECT_PATH && !!url.searchParams.get(PTY_CONNECT_TICKET_QUERY)) + return yield* effect const credential = yield* credentialFromRequest(request) if (ServerAuth.authorized(credential, config)) return yield* effect yield* HttpEffect.appendPreResponseHandler((_request, response) => diff --git a/packages/session-ui/package.json b/packages/session-ui/package.json index b734702fca..6c86f668d2 100644 --- a/packages/session-ui/package.json +++ b/packages/session-ui/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/session-ui", - "version": "1.18.34", + "version": "1.19.5", "private": true, "type": "module", "license": "MIT", diff --git a/packages/session-ui/src/components/timeline-playground.stories.tsx b/packages/session-ui/src/components/timeline-playground.stories.tsx index d56fc55c4d..c42f218f97 100644 --- a/packages/session-ui/src/components/timeline-playground.stories.tsx +++ b/packages/session-ui/src/components/timeline-playground.stories.tsx @@ -318,7 +318,7 @@ const TOOL_SAMPLES = { tool: "bash", input: { command: "bun test --filter session" }, output: - "bun test v1.3.14\n\n✓ session-turn.test.tsx (3 tests) 45ms\n✓ message-part.test.tsx (7 tests) 120ms\n\nTest Suites: 2 passed, 2 total\nTests: 10 passed, 10 total\nTime: 0.89s", + "bun test v1.4.4\n\n✓ session-turn.test.tsx (3 tests) 45ms\n✓ message-part.test.tsx (7 tests) 120ms\n\nTest Suites: 2 passed, 2 total\nTests: 10 passed, 10 total\nTime: 0.89s", title: "bun test --filter session", metadata: { command: "bun test --filter session" }, }, diff --git a/packages/session-ui/src/v2/components/prompt-input/attachments.ts b/packages/session-ui/src/v2/components/prompt-input/attachments.ts index 89f38ec4a3..169e8f53f2 100644 --- a/packages/session-ui/src/v2/components/prompt-input/attachments.ts +++ b/packages/session-ui/src/v2/components/prompt-input/attachments.ts @@ -72,6 +72,7 @@ export type PromptInputV2AttachmentConfig = { onFile: (file: File) => Promise, ) => Promise directory: () => string + dropTarget?: () => HTMLElement | undefined isDialogActive: () => boolean warn: () => void duplicate: () => void @@ -191,16 +192,18 @@ export function createPromptInputV2Attachments( } onMount(() => { - makeEventListener(document, "dragover", (event) => { + const target = input.dropTarget?.() ?? document + makeEventListener(target, "dragover", (event) => { if (input.isDialogActive()) return event.preventDefault() if (event.dataTransfer?.types.includes("Files")) input.setDraggingType("image") else if (event.dataTransfer?.types.includes("text/plain")) input.setDraggingType("@mention") }) - makeEventListener(document, "dragleave", (event) => { - if (!input.isDialogActive() && !event.relatedTarget) input.setDraggingType(null) + makeEventListener(target, "dragleave", (event) => { + if (!input.isDialogActive() && (!(event.relatedTarget instanceof Node) || !target.contains(event.relatedTarget))) + input.setDraggingType(null) }) - makeEventListener(document, "drop", handleDrop) + makeEventListener(target, "drop", handleDrop) }) return { diff --git a/packages/slack/package.json b/packages/slack/package.json index 61b6eb4fc5..a3bad90656 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@opencode-ai/slack", - "version": "1.18.34", + "version": "1.19.5", "type": "module", "license": "MIT", "scripts": { diff --git a/packages/stats/app/package.json b/packages/stats/app/package.json index b54591d0ed..4d4800bf0f 100644 --- a/packages/stats/app/package.json +++ b/packages/stats/app/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/stats-app", - "version": "1.18.34", + "version": "1.19.5", "private": true, "type": "module", "license": "MIT", diff --git a/packages/stats/app/src/component/agent-meta.tsx b/packages/stats/app/src/component/agent-meta.tsx new file mode 100644 index 0000000000..39bf6bf94c --- /dev/null +++ b/packages/stats/app/src/component/agent-meta.tsx @@ -0,0 +1,40 @@ +import { Link } from "@solidjs/meta" +import { Show } from "solid-js" +import { getRequestEvent } from "solid-js/web" +import { jsonUrl, markdownUrl } from "../lib/language" + +export function JsonLd(props: { data: object }) { + // Escape "<" so values from the catalog can never close the script element. + return + model.catalog || model.stats)} + fallback={} + > + 2 ? "noindex,follow" : "index,follow"} /> + + + + + + + + + + + +

model.name).join(", ")}`}> - Compare - - AI models + Compare AI models + : {props.models.map((model) => model.name).join(" vs ")}

+ [point.date, props.formatValue(props.value(point))])} + /> ) @@ -1023,17 +1047,23 @@ function MetricCard(props: { label: string; value: string; detail?: string; stat } function PeerRow(props: { peer: ModelPeerEntry; active: boolean; catalogLabs: readonly string[] }) { + const i18n = useI18n() const language = useLanguage() const hasProvider = () => isKnownCatalogLab(props.peer.provider, props.catalogLabs) return (
  • - {String(props.peer.rank).padStart(2, "0")} + {String(props.peer.rank).padStart(2, "0")}} + > + {String(props.peer.rank).padStart(2, "0")} + @@ -1043,10 +1073,13 @@ function PeerRow(props: { peer: ModelPeerEntry; active: boolean; catalogLabs: re {props.peer.model} - {props.peer.author} + {formatCatalogLabName(props.peer.provider)} - {formatTokens(props.peer.tokens)} + + {formatTokens(props.peer.tokens)} + {i18n.t("format.tokens")} +
  • ) diff --git a/packages/stats/app/src/routes/[lab]/index.tsx b/packages/stats/app/src/routes/[lab]/index.tsx index f79f5c21f4..1a52f40be8 100644 --- a/packages/stats/app/src/routes/[lab]/index.tsx +++ b/packages/stats/app/src/routes/[lab]/index.tsx @@ -1,8 +1,6 @@ import { Meta, Title } from "@solidjs/meta" import { ProviderIcon } from "@opencode-ai/ui/provider-icon" import { - getStatsLabData, - getStatsHomeData, type LabUsageModelEntry, type MarketDay, type ModelUsagePoint, @@ -11,20 +9,24 @@ import { import { createAsync, query, useParams } from "@solidjs/router" import { createMemo, createSignal, createUniqueId, For, onMount, Show, type JSX } from "solid-js" import { getRequestEvent } from "solid-js/web" +import { breadcrumbList, FormatLinks, JsonLd, LastModified } from "../../component/agent-meta" +import { ChartDataTable } from "../../component/chart-data-table" import { LocaleLinks } from "../../component/locale-links" +import { NotFoundMeta } from "../../component/not-found-meta" import { useI18n } from "../../context/i18n" import { useLanguage } from "../../context/language" +import { fromFirstUsage } from "../../lib/format" import { localizedUrl } from "../../lib/language" +import { loadLabPage, type LabPageData } from "../../lib/page-data" +import { labSummary } from "../../lib/summaries" import { + catalogModelPath, catalogSlug, - findModelCatalogLab, formatCatalogLabName, - loadModelCatalog, type ModelCatalogEntry, type ModelCatalogLab, } from "../model-catalog" import { SectionHeading } from "../section-heading" -import { runStatsEffect } from "../../stats-runtime" import { setStatsPageCacheHeaders } from "../stats-cache" import { ComparisonCardsSection, modelRefFromCatalog, uniqueComparisonPairs } from "../compare-cards" import { BreadcrumbSelect } from "../breadcrumb-select" @@ -42,32 +44,11 @@ import { const statsUnfurlPath = "banner.png" -type RelatedCatalogLab = Pick & { - models: Pick[] -} - -type LabPageData = { - lab: ModelCatalogLab | null - labs: RelatedCatalogLab[] - market: MarketDay[] - stats: StatsLabData | null -} +type RelatedCatalogLab = LabPageData["labs"][number] const getLabPageData = query(async (labParam: string) => { "use server" - const [catalog, home] = await Promise.all([loadModelCatalog(), runStatsEffect(getStatsHomeData())]) - const lab = findModelCatalogLab(catalog, labParam) ?? null - return { - lab, - labs: catalog.labs.map((entry) => ({ - id: entry.id, - name: entry.name, - description: entry.description, - models: entry.models.map((model) => ({ name: model.name })), - })), - market: home.market["2M"], - stats: lab ? await runStatsEffect(getStatsLabData(lab.id)) : null, - } satisfies LabPageData + return loadLabPage(labParam) }, "getStatsLabPageData") type LabModelTooltipState = { @@ -88,11 +69,16 @@ export default function StatsLab() { const page = createAsync(() => getLabPageData(labParam())) const lab = createMemo(() => page()?.lab) const stats = createMemo(() => page()?.stats) + const modelPaths = createMemo(() => page()?.modelPaths ?? {}) const githubStars = createAsync(() => getGitHubStars()) const [themePreference, setThemePreference] = createSignal("system") const labName = createMemo(() => lab()?.name ?? formatCatalogLabName(labParam())) const labTitle = createMemo(() => i18n.t("lab.title", { lab: labName() })) const labDescription = createMemo(() => i18n.t("lab.description", { lab: labName() })) + const labMetaDescription = createMemo(() => { + const data = page() + return (data && labSummary(language.locale(), data)) ?? labDescription() + }) const labPath = createMemo(() => `/data/${lab()?.id ?? labParam()}`) const labUrl = createMemo(() => localizedUrl(language.locale(), labPath())) const statsUnfurlUrl = new URL(statsUnfurlPath, localizedUrl("en", "/data/")).toString() @@ -106,6 +92,7 @@ export default function StatsLab() { { href: `${import.meta.env.BASE_URL}#top-models`, label: i18n.t("nav.topModels") }, { href: `${import.meta.env.BASE_URL}#market-share`, label: i18n.t("nav.marketShare") }, { href: `${import.meta.env.BASE_URL}#geo-breakdown`, label: i18n.t("nav.geoBreakdown") }, + { href: `${import.meta.env.BASE_URL}#methodology`, label: i18n.t("methodology.title") }, ]) const updateThemePreference = (preference: ThemePreference) => { applyThemePreference(preference) @@ -124,24 +111,62 @@ export default function StatsLab() { return (
    - {labTitle()} - - - - - - - - - - - - - - - - - + {/* Server-rendered head tags are never removed, so render them once data has loaded. */} + + {labTitle()} + + }> + {(data) => ( + <> + + + + + + + + + + + + + + + + + + + modelPaths()[model.id] === catalogModelPath(model)) + .map((model, index) => ({ + "@type": "ListItem", + position: index + 1, + name: model.name, + url: localizedUrl(language.locale(), catalogModelPath(model)), + })), + }, + }} + /> + + )} + +
    - +
    + [ + point.date, + formatTokens(point.tokens), + formatUsers(point.users), + ])} + /> ) } -function LabModelsSection(props: { lab: ModelCatalogLab; usage: LabUsageModelEntry[] }) { +function LabModelsSection(props: { + lab: ModelCatalogLab + usage: LabUsageModelEntry[] + paths: LabPageData["modelPaths"] +}) { const i18n = useI18n() const [activeTooltip, setActiveTooltip] = createSignal() const usageBySlug = createMemo(() => new Map(props.usage.map((item) => [item.slug, item]))) @@ -522,38 +560,47 @@ function LabModelsSection(props: { lab: ModelCatalogLab; usage: LabUsageModelEnt