diff --git a/.github/actions/prepare-native-runtime/action.yml b/.github/actions/prepare-native-runtime/action.yml index 8b9891fed5c..86549f5d2a2 100644 --- a/.github/actions/prepare-native-runtime/action.yml +++ b/.github/actions/prepare-native-runtime/action.yml @@ -54,7 +54,7 @@ runs: env: NATIVE_RUNTIME: ${{ inputs.native-runtime }} NODE_VERSION: ${{ inputs.node-version }} - NATIVE_SOURCE_HASH: ${{ hashFiles('.npmrc', 'config/pnpmfile.cjs', '.github/actions/prepare-native-runtime/action.yml', 'config/scripts/native-build/node-addons/ensure-native-runtime.mjs', 'config/scripts/native-build/windows/initialize-windows-native-toolchain.mjs', 'config/scripts/native-build/windows/capture-windows-native-environment.cmd', 'config/scripts/native-build/node-addons/rebuild-native-deps.mjs', 'config/scripts/native-build/node-addons/node-pty-job-ownership.cjs', 'config/scripts/native-build/windows/windows-pe-machine.cjs', 'config/scripts/native-build/windows/windows-process-tree-gyp-rebuild.mjs', 'config/scripts/native-build/windows/windows-process-tree-creation-time.cjs', 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs', 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs', 'config/scripts/zip-extractor-command.mjs', 'src/shared/zip-extractor-command.ts', 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs', 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs', 'config/scripts/artifact-storage/atomic-publication/shared-tree-publish.mjs', 'config/scripts/native-build/node-addons/native-build-entry.cjs', 'config/scripts/native-build/node-addons/native-build-entry-probe.cjs', 'config/scripts/native-build/node-addons/shared-native-build.mjs', 'config/scripts/orcad-distribution/prebuilds/orcad-prebuild-node-gyp.mjs', 'config/scripts/native-build/windows/msbuild-file-tracking.mjs', 'config/scripts/native-build/node-addons/native-dependency-lock-digest.mjs', 'config/patches/node-pty@1.1.0.patch', 'config/patches/@vscode__windows-process-tree@0.8.0.patch', 'native/windows-notifications/src/addon.cc', 'native/windows-notifications/binding.gyp', 'native/windows-notifications/package.json', 'native/windows-notifications/index.js', 'native/windows-registry/src/addon.cc', 'native/windows-registry/binding.gyp', 'native/windows-registry/package.json', 'native/windows-registry/index.js', 'native/windows-security/src/addon.cc', 'native/windows-security/src/isolated-spawn.cc', 'native/windows-security/src/isolated-spawn.h', 'native/windows-security/binding.gyp', 'native/windows-security/package.json', 'native/windows-security/index.js') }} + NATIVE_SOURCE_HASH: ${{ hashFiles('.npmrc', 'config/pnpmfile.cjs', '.github/actions/prepare-native-runtime/action.yml', 'config/scripts/native-build/node-addons/ensure-native-runtime.mjs', 'config/scripts/native-build/windows/initialize-windows-native-toolchain.mjs', 'config/scripts/native-build/windows/capture-windows-native-environment.cmd', 'config/scripts/native-build/node-addons/rebuild-native-deps.mjs', 'config/scripts/native-build/node-addons/node-pty-job-ownership.cjs', 'config/scripts/native-build/windows/windows-pe-machine.cjs', 'config/scripts/native-build/windows/windows-process-tree-gyp-rebuild.mjs', 'config/scripts/native-build/windows/windows-process-tree-creation-time.cjs', 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs', 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs', 'config/scripts/zip-extractor-command.mjs', 'src/shared/archives/zip-extractor-command.ts', 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs', 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs', 'config/scripts/artifact-storage/atomic-publication/shared-tree-publish.mjs', 'config/scripts/native-build/node-addons/native-build-entry.cjs', 'config/scripts/native-build/node-addons/native-build-entry-probe.cjs', 'config/scripts/native-build/node-addons/shared-native-build.mjs', 'config/scripts/orcad-distribution/prebuilds/orcad-prebuild-node-gyp.mjs', 'config/scripts/native-build/windows/msbuild-file-tracking.mjs', 'config/scripts/native-build/node-addons/native-dependency-lock-digest.mjs', 'config/patches/node-pty@1.1.0.patch', 'config/patches/@vscode__windows-process-tree@0.8.0.patch', 'native/windows-notifications/src/addon.cc', 'native/windows-notifications/binding.gyp', 'native/windows-notifications/package.json', 'native/windows-notifications/index.js', 'native/windows-registry/src/addon.cc', 'native/windows-registry/binding.gyp', 'native/windows-registry/package.json', 'native/windows-registry/index.js', 'native/windows-security/src/addon.cc', 'native/windows-security/src/isolated-spawn.cc', 'native/windows-security/src/isolated-spawn.h', 'native/windows-security/binding.gyp', 'native/windows-security/package.json', 'native/windows-security/index.js') }} run: | scope="${ImageOS:-$RUNNER_OS}" if [ -r /etc/os-release ]; then diff --git a/.github/workflows/ci-cache-warmup-platforms.yml b/.github/workflows/ci-cache-warmup-platforms.yml index 376eab01ae4..a8dabb1c3e1 100644 --- a/.github/workflows/ci-cache-warmup-platforms.yml +++ b/.github/workflows/ci-cache-warmup-platforms.yml @@ -51,7 +51,7 @@ on: - 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs' - 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs' - 'config/scripts/zip-extractor-command.mjs' - - 'src/shared/zip-extractor-command.ts' + - 'src/shared/archives/zip-extractor-command.ts' - 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs' - 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs' - 'config/patches/**' diff --git a/.github/workflows/ci-cache-warmup.yml b/.github/workflows/ci-cache-warmup.yml index 0c43fc28574..c000196aeb8 100644 --- a/.github/workflows/ci-cache-warmup.yml +++ b/.github/workflows/ci-cache-warmup.yml @@ -41,7 +41,7 @@ on: - 'config/scripts/electron-installation/platform-layout/install-electron-package-binary.mjs' - 'config/scripts/electron-installation/platform-layout/electron-platform-path.mjs' - 'config/scripts/zip-extractor-command.mjs' - - 'src/shared/zip-extractor-command.ts' + - 'src/shared/archives/zip-extractor-command.ts' - 'config/scripts/electron-installation/shared-dist-cache/shared-electron-dist-cache.mjs' - 'config/scripts/artifact-storage/reflink-copy/space-sharing-copy.mjs' - 'config/patches/**' diff --git a/.github/workflows/computer-e2e.yml b/.github/workflows/computer-e2e.yml index 25ca3cd84ba..cc788c80770 100644 --- a/.github/workflows/computer-e2e.yml +++ b/.github/workflows/computer-e2e.yml @@ -14,10 +14,8 @@ on: - 'config/scripts/native-build/windows/windows-rust-executable-build.mjs' - 'config/scripts/native-build/windows/build-windows-cli-launcher.test.mjs' - 'config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-benchmark.mjs' - - 'config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-group-recovery.test.mjs' - 'config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-metrics.mjs' - 'config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-processes.mjs' - - 'config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-processes.test.mjs' - 'config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-trial-cleanup.mjs' - 'config/scripts/runtime-verification/daemon-lifecycle/daemon-boot-smoke.mjs' - 'config/scripts/runtime-verification/daemon-lifecycle/daemon-endpoint-handover-smoke.mjs' @@ -49,7 +47,7 @@ on: - 'src/main/runtime/rpc/dispatcher.ts' - 'src/main/runtime/rpc/responses/rpc-response.ts' - 'src/main/runtime/rpc/methods/computer/computer*.ts' - - 'src/shared/computer-use-*.ts' + - 'src/shared/computer/computer-use-*.ts' - 'tests/e2e/computer-linux.e2e.ts' - 'tests/e2e/computer-windows.e2e.ts' - 'tests/e2e/computer-windows-background.e2e.ts' @@ -91,8 +89,6 @@ jobs: # Use shared Vitest config: bare invocation misses config/ and its timeout/Windows worker cap, breaking real csc.exe tests. - run: >- pnpm vitest run --config config/vitest.config.ts - config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-group-recovery.test.mjs - config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-processes.test.mjs src/main/computer/sidecar-transport/sidecar-client.test.ts src/main/computer/macos-native/macos-native-provider-client.test.ts src/main/providers/shell-launch/windows/shell-preflight-runtime.windows.test.ts diff --git a/.github/workflows/computer-macos-native.yml b/.github/workflows/computer-macos-native.yml index 1ab53b1011a..0858a5396ce 100644 --- a/.github/workflows/computer-macos-native.yml +++ b/.github/workflows/computer-macos-native.yml @@ -20,7 +20,7 @@ on: - 'native/computer-use-windows/**' - 'skills/orca-computer-use/SKILL.md' - 'src/main/computer/**' - - 'src/shared/computer-use-*.ts' + - 'src/shared/computer/computer-use-*.ts' workflow_dispatch: schedule: - cron: '0 6 * * *' @@ -50,11 +50,6 @@ jobs: - uses: ./.github/actions/install-node-dependencies with: native-runtime: electron - - name: Owner-loss benchmark process cleanup - run: >- - pnpm vitest run - config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-group-recovery.test.mjs - config/scripts/performance/macos-computer-owner/macos-computer-helper-owner-loss-processes.test.mjs # Why: the parallel launcher's cancellation tests are darwin-only and no # other PR job runs on macOS. - name: Parallel native build launcher cancellation diff --git a/.github/workflows/macos-updater-tests.yml b/.github/workflows/macos-updater-tests.yml index 22c01e524ac..01747e576fa 100644 --- a/.github/workflows/macos-updater-tests.yml +++ b/.github/workflows/macos-updater-tests.yml @@ -57,8 +57,3 @@ jobs: src/main/updater/mac-install/updater-mac-quit-guard.test.ts src/main/startup/quit/main-process-quit-update-veto.test.ts src/main/window/main-window/main-window-state-lifecycle.test.ts - - name: Prove login-backed terminal writer census on the disposable runner - env: - ORCA_MACOS_LOGIN_CENSUS_CI: '1' - ORCA_BACKGROUND_LAUNCH: '1' - run: pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/agent-session/lifecycle/structured-agent-cli-writers.test.ts diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 54e61b5d512..1f5a26dff7f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -422,7 +422,7 @@ jobs: src/shared/remote-runtime/ephemeral-vm-store/ephemeral-vm-runtime-rollback-projection.ts \ src/shared/remote-runtime/ephemeral-vm-store/ephemeral-vm-runtimes.ts \ src/shared/remote-runtime/ephemeral-vm-recipes/ephemeral-vm-recipes.ts \ - src/shared/orca-yaml-hook-types.ts \ + src/shared/workspace-setup/orca-yaml-hook-types.ts \ config/scripts/runtime-verification/ephemeral-store/run-ephemeral-vm-runtime-store-rollback-repro.mjs \ config/scripts/runtime-verification/ephemeral-store/ephemeral-vm-runtime-store-cross-version.test.ts \ src/main/ephemeral-vm/runtime-service.ts \ @@ -858,9 +858,7 @@ jobs: src/renderer/src/components/terminal-pane/pty-connection/emulation/fish-color-scheme-child-stdin.node-pty.test.ts \ src/shared/shell/wsl/fish-wsl-cwd-report.node-pty.test.ts \ src/main/wsl/filesystem/wsl-sh-cwd-report.node-pty.test.ts \ - src/shared/terminal/pty/ingress/pty-reply-echo-shapes.node-pty.test.ts \ - src/shared/shell/launch/startup-shell-portability.live-shell.test.ts \ - src/shared/shell/command-resolution/posix-command-path-lookup.test.ts + src/shared/terminal/pty/ingress/pty-reply-echo-shapes.node-pty.test.ts # Shards wait only for the plan, not preflight, which moves them about two minutes earlier. unit_plan: diff --git a/.github/workflows/preflight-cli-platforms.yml b/.github/workflows/preflight-cli-platforms.yml index 7d7fc9743bd..ada37bd1889 100644 --- a/.github/workflows/preflight-cli-platforms.yml +++ b/.github/workflows/preflight-cli-platforms.yml @@ -46,8 +46,6 @@ jobs: pnpm exec vitest run --config config/vitest.config.ts --maxWorkers=2 src/main/ipc/preflight-runnable-local-cli.test.ts src/main/ipc/preflight-wsl-agent-detection.test.ts - src/main/ipc/preflight-windows-path-refresh.repro.test.ts - src/main/startup/shell-environment/login-shell-environment.test.ts src/packages/process-host/src/process-tree-termination.test.ts src/packages/process-host/src/run-process.test.ts src/packages/process-host/src/run-process-termination-failure.test.ts diff --git a/.github/workflows/zcode-transcript-contract.yml b/.github/workflows/zcode-transcript-contract.yml index eacd35634f8..a048c925e00 100644 --- a/.github/workflows/zcode-transcript-contract.yml +++ b/.github/workflows/zcode-transcript-contract.yml @@ -40,4 +40,4 @@ jobs: bun-version-file: config/.bun-version no-cache: true - name: Verify SQLite ordering, legacy readers, and host routing - run: pnpm test src/main/native-chat/transcript-history/opencode/transcript-zcode.test.ts src/main/native-chat/transcript-history/opencode/transcript-opencode-sqlite-query.test.ts src/main/ai-vault/scanners/zcode/session-scanner-zcode.test.ts src/main/ai-vault/scanners/opencode/reader-transport/opencode-wsl-runtime-preparation.test.ts src/shared/native-chat/transcript/native-chat-transcript-projection.test.ts src/renderer/src/components/native-chat/conversation/projection/structured-agent-session-transcript-order.test.ts + run: pnpm test src/main/native-chat/transcript-history/opencode/transcript-zcode.test.ts src/main/native-chat/transcript-history/opencode/transcript-opencode-sqlite-query.test.ts src/main/ai-vault/scanners/zcode/session-scanner-zcode.test.ts src/main/ai-vault/scanners/opencode/reader-transport/opencode-wsl-runtime-preparation.test.ts src/shared/native-chat/transcript/native-chat-transcript-projection.test.ts