mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* fix(hooks): run worktree setup only when its content matches the approved script Clients may send approvedSetupHash with a create. After git worktree add the host hashes the created branch's shared setup and default-tab commands with the prompt's function; on a difference it skips them and returns setupTrustMismatch with the branch content. Creates without a hash (older clients, CLI, mobile, orchestration) and older hosts behave as before. * fix(hooks): send the approved setup hash and re-prompt on a changed branch The composer and direct work-item creates send the hash of the setup content the user approved (empty content included; none under repo-wide trust or local-only policy). When the host reports different branch content, show a setup-skipped toast and the existing trust prompt with that content. * test(hooks): hash the prompt's and the host's orca.yaml from the same fixture Covers CRLF and BOM primary checkouts, the plain-HTTP digest, the hash a runtime host reports to remote and mobile clients, run-both and local-only policies, creates without a hash, and pins the digest so a format change is deliberate. * style(worktrees): keep the creation flow under the line limit
49 lines
2.4 KiB
JSON
49 lines
2.4 KiB
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
|
|
"include": [
|
|
"../electron.vite.config.*",
|
|
"./vitest.config.ts",
|
|
"./build-plugins/**/*",
|
|
"./scripts/test-runtime/environment/vitest-host-ports-setup.ts",
|
|
"./scripts/test-runtime/environment/vitest-caller-identity-env-setup.ts",
|
|
"./scripts/test-runtime/environment/vitest-inherited-git-env-setup.ts",
|
|
"./scripts/test-runtime/environment/vitest-real-agent-home-write-guard.ts",
|
|
"./scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts",
|
|
"./scripts/test-runtime/environment/vitest-bun-node-builtins.ts",
|
|
"./scripts/test-runtime/dom/vitest-dom-setup.ts",
|
|
"./scripts/test-runtime/dom/happy-dom-offscreen-canvas.ts",
|
|
"./scripts/test-runtime/dom/happy-dom-mutation-observer-retention.ts",
|
|
"./scripts/test-runtime/dom/happy-dom-animation-cancel.ts",
|
|
"./scripts/test-runtime/node-worker/vitest-node-runtime-pool.ts",
|
|
"./scripts/test-runtime/module-cache/vitest-module-cache-resolution-key.ts",
|
|
"../src/main/**/*",
|
|
"../src/cli/runtime/transport.ts",
|
|
"../src/cli/runtime/envelope-schema.ts",
|
|
"../src/cli/runtime/types.ts",
|
|
"../src/cli/runtime/runtime-access-denied.ts",
|
|
"../src/cli/runtime/runtime-pid-liveness.ts",
|
|
"../src/renderer/src/store/slices/worktrees/create/worktree-create-payload.ts",
|
|
"../src/renderer/src/lib/orca-hook-trust.ts",
|
|
"../src/renderer/src/lib/sha256.ts",
|
|
"../src/renderer/src/components/native-chat/native-chat-resolution-receipt.ts",
|
|
"../src/renderer/src/components/native-chat/structured-agent-question-projection.ts",
|
|
"../src/renderer/src/components/native-chat/native-chat-subagent-delegation.ts",
|
|
"../src/renderer/src/components/native-chat/structured-agent-session-pending-sends.ts",
|
|
"../src/renderer/src/components/native-chat/structured-agent-session-queue-request.ts",
|
|
"../src/renderer/src/components/native-chat/native-chat-composer-primary-action.ts",
|
|
"../src/renderer/src/components/terminal-pane/legacy-relay-bridge-panes.ts",
|
|
"../src/preload/**/*",
|
|
"../src/shared/**/*",
|
|
"../src/packages/process-host/src/__fixtures__/**/*",
|
|
"../src/wsl-guest/**/*",
|
|
"../src/types/**/*"
|
|
],
|
|
"exclude": [
|
|
"../src/main/runtime/orchestration/terminal-authority/structured-sessions/structured-chat-coordinator-mail.test.ts"
|
|
],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"types": ["electron-vite/node"]
|
|
}
|
|
}
|