{
  // Doubles as the resolution facade for vite-tsconfig-paths (vitest configs
  // point here). NEVER add include/files to this file: it would leak into
  // every extending package project and narrow the facade's match-all scope.
  "compilerOptions": {
    "target": "es2024",
    "module": "esnext",
    "moduleResolution": "bundler",
    "declaration": true,
    "sourceMap": true,
    "declarationMap": true,
    "composite": true,
    "incremental": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowImportingTsExtensions": true,
    "rewriteRelativeImportExtensions": true,
    "verbatimModuleSyntax": false,
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "exactOptionalPropertyTypes": true,
    "noImplicitOverride": true,
    "noFallthroughCasesInSwitch": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "types": ["node"],
    // Source-level resolution for every repo-local graph. Project references,
    // not declaration path aliases, keep each package/vendor source compiled
    // under its own tsconfig boundary.
    "paths": {
      "cordis": ["./vendor/cordis/src"],
      "cosmokit": ["./vendor/cosmokit/src"],
      "schemastery": ["./vendor/schemastery/src"],
      "@cordisjs/plugin-loader": ["./vendor/loader/src"],
      "@cordisjs/plugin-loader/repository": ["./vendor/loader/src/repository.ts"],
      "@cordisjs/plugin-include": ["./vendor/include/src"],
      "@cordisjs/plugin-group": ["./vendor/group/src"],
      "@cordisjs/plugin-timer": ["./vendor/timer/src"],
      "@cordisjs/plugin-hmr": ["./vendor/hmr/src"],
      "@cordisjs/plugin-logger-console": ["./vendor/logger-console/src"],
      "@deepseek-ai/dsh-invariants": ["./packages/support/invariants/src/index.ts"],
      "@deepseek-ai/dsh-typert-registry": ["./packages/typert/registry/src/index.ts"],
      "@deepseek-ai/dsh-typert-loader": ["./packages/typert/loader/src/index.ts"],
      "@deepseek-ai/dsh-session/invariant": ["./packages/core/session/src/invariant.ts"],
      "@deepseek-ai/dsh-typert-registry/types": ["./packages/typert/registry/src/types.ts"],
      "@deepseek-ai/dsh-typert-generator": ["./packages/typert/generator/src/index.ts"],
      "@deepseek-ai/dsh-session/types": ["./packages/core/session/src/types.ts"],
      "@deepseek-ai/dsh-session/surface": ["./packages/core/session/src/surface.ts"],
      "@deepseek-ai/dsh-session-projection/types": ["./packages/session-projection/session-projection/src/types.ts"],
      "@deepseek-ai/dsh-tool-todo/types": ["./packages/todo/tool-todo/src/types.ts"],
      "@deepseek-ai/dsh-tool-todo/client": ["./packages/todo/tool-todo/src/client.ts"],
      "@deepseek-ai/dsh-session-title/types": ["./packages/session-title/session-title/src/types.ts"],
      "@deepseek-ai/dsh-session-title/client": ["./packages/session-title/session-title/src/client.ts"],
      "@deepseek-ai/dsh-plan-mode/types": ["./packages/plan/plan-mode/src/types.ts"],
      "@deepseek-ai/dsh-plan-mode/client": ["./packages/plan/plan-mode/src/client.ts"],
      "@deepseek-ai/dsh-goal/types": ["./packages/goal/goal/src/types.ts"],
      "@deepseek-ai/dsh-goal/client": ["./packages/goal/goal/src/client.ts"],
      "@deepseek-ai/dsh-llm/types": ["./packages/llm/llm/src/types.ts"],
      "@deepseek-ai/dsh-llm/brand": ["./packages/llm/llm/src/brand.ts"],
      "@deepseek-ai/dsh-llm-retry/types": ["./packages/llm/llm-retry/src/types.ts"],
      "@deepseek-ai/dsh-llm/message": ["./packages/llm/llm/src/message.ts"],
      "@deepseek-ai/dsh-commands/brand": ["./packages/ui/commands/src/brand.ts"],
      "@deepseek-ai/dsh-compact/checkpoint": ["./packages/compact/compact/src/checkpoint.ts"],
      "@deepseek-ai/dsh-tui/prompt": ["./packages/ui/tui/src/prompt.ts"],
      "@deepseek-ai/dsh-tools/presentation": ["./packages/core/tools/src/presentation.ts"],
      "@deepseek-ai/dsh-tool-subagent-control/list-agents": ["./packages/subagent/tool-subagent-control/src/list-agents.ts"],
      "@deepseek-ai/dsh-user-approval/types": ["./packages/ui/user-approval/src/types.ts"],
      "@deepseek-ai/dsh-user-interaction/types": ["./packages/ui/user-interaction/src/types.ts"],
      "@deepseek-ai/dsh-agent/brand": ["./packages/core/agent/src/brand.ts"],
      "@deepseek-ai/dsh-agent/invariant": ["./packages/core/agent/src/invariant.ts"],
      "@deepseek-ai/dsh-scope/invariant": ["./packages/core/scope/src/invariant.ts"],
      "@deepseek-ai/dsh-agent-loop/invariant": ["./packages/core/agent-loop/src/invariant.ts"],
      "@deepseek-ai/dsh-*/invariant": [
        "./packages/core/*/src/invariant.ts",
        "./packages/prompt/*/src/invariant.ts",
        "./packages/llm/*/src/invariant.ts",
        "./packages/bash/*/src/invariant.ts",
        "./packages/subprocess/*/src/invariant.ts",
        "./packages/code-runtime/*/src/invariant.ts",
        "./packages/fs/*/src/invariant.ts",
        "./packages/skill/*/src/invariant.ts",
        "./packages/compact/*/src/invariant.ts",
        "./packages/context/*/src/invariant.ts",
        "./packages/goal/*/src/invariant.ts",
        "./packages/guard/*/src/invariant.ts",
        "./packages/plan/*/src/invariant.ts",
        "./packages/subagent/*/src/invariant.ts",
        "./packages/tasks/*/src/invariant.ts",
        "./packages/workflow/*/src/invariant.ts",
        "./packages/web/*/src/invariant.ts",
        "./packages/spill/*/src/invariant.ts",
        "./packages/timeout/*/src/invariant.ts",
        "./packages/todo/*/src/invariant.ts",
        "./packages/cordis/*/src/invariant.ts",
        "./packages/sandbox/*/src/invariant.ts",
        "./packages/hooks/*/src/invariant.ts",
        "./packages/session-persistence/*/src/invariant.ts",
        "./packages/session-projection/*/src/invariant.ts",
        "./packages/session-title/*/src/invariant.ts",
        "./packages/session-query/*/src/invariant.ts",
        "./packages/settings/*/src/invariant.ts",
        "./packages/credentials/*/src/invariant.ts",
        "./packages/telemetry/*/src/invariant.ts",
        "./packages/acp/*/src/invariant.ts",
        "./packages/storage/*/src/invariant.ts",
        "./packages/workspace/*/src/invariant.ts",
        "./packages/sdk/*/src/invariant.ts",
        "./packages/ui/*/src/invariant.ts",
        "./packages/examples/*/src/invariant.ts",
        "./packages/util/*/src/invariant.ts",
        "./packages/mcp/*/src/invariant.ts",
        "./packages/support/*/src/invariant.ts"
      ],
      // host/client package names prefix the group dir (dsh-client-<dir>), so
      // the generic dsh-*/invariant list above cannot map them; strip the
      // group prefix with a dedicated wildcard per group instead.
      "@deepseek-ai/dsh-host-*/invariant": ["./packages/host/*/src/invariant.ts"],
      "@deepseek-ai/dsh-client-*/invariant": ["./packages/client/*/src/invariant.ts"],
      "@deepseek-ai/dsh-client-*/client": ["./packages/client/*/src/client"],
       // One wildcard maps every @deepseek-ai/dsh-<name> to its source. Package
      // dir names are unique across groups, so first-on-disk-wins resolution is
      // unambiguous; adding a package under an existing group needs no edit
      // here. The aggregates' project references (tsconfig.host.json /
      // tsconfig.client.json) stay explicit — TS project references have no
      // wildcard form.
      "@deepseek-ai/dsh-host-apiproxy": ["./packages/host/apiproxy/src"],
      "@deepseek-ai/dsh-host-directory-picker": ["./packages/host/directory-picker/src"],
      "@deepseek-ai/dsh-host-directory-picker/*": ["./packages/host/directory-picker/src/*"],
      "@deepseek-ai/dsh-host-directory-picker-browse": ["./packages/host/directory-picker-browse/src"],
      "@deepseek-ai/dsh-host-directory-picker-browse/*": ["./packages/host/directory-picker-browse/src/*"],
      "@deepseek-ai/dsh-host-directory-picker-native": ["./packages/host/directory-picker-native/src"],
      "@deepseek-ai/dsh-host-directory-picker-native/*": ["./packages/host/directory-picker-native/src/*"],
      "@deepseek-ai/dsh-host-directory-picker-auto": ["./packages/host/directory-picker-auto/src"],
      "@deepseek-ai/dsh-host-directory-picker-auto/*": ["./packages/host/directory-picker-auto/src/*"],
      "@deepseek-ai/dsh-host-apiproxy/client": ["./packages/host/apiproxy/src/fetch/client.ts"],
      "@deepseek-ai/dsh-host-apiproxy/*": ["./packages/host/apiproxy/src/*"],
      "@deepseek-ai/dsh-host-webserver": ["./packages/host/webserver/src"],
      "@deepseek-ai/dsh-client-ui-slots": ["./packages/client/ui-slots/src"],
      "@deepseek-ai/dsh-client-ui-primitives": ["./packages/client/ui-primitives/src"],
      "@deepseek-ai/dsh-client-schema-form": ["./packages/client/schema-form/src"],
      "@deepseek-ai/dsh-client-schema-form/invariant": ["./packages/client/schema-form/src/invariant.ts"],
      "@deepseek-ai/dsh-client-web-react": ["./packages/client/web-react/src"],
      "@deepseek-ai/dsh-client-connection": ["./packages/client/connection/src"],
      "@deepseek-ai/dsh-client-hmr": ["./packages/client/hmr/src"],
      "@deepseek-ai/dsh-client-modules": ["./packages/client/modules/src"],
      "@deepseek-ai/dsh-client-runtime": ["./packages/client/runtime/src"],
      "@deepseek-ai/dsh-client-runtime/client": ["./packages/client/runtime/src/client"],
      "@deepseek-ai/dsh-client-test-runtime": ["./packages/client/test-runtime/src"],
      "@deepseek-ai/dsh-client-ui-layout": ["./packages/client/ui-layout/src"],
      "@deepseek-ai/dsh-client-ui-sidebar": ["./packages/client/ui-sidebar/src"],
      "@deepseek-ai/dsh-client-ui-conversation": ["./packages/client/ui-conversation/src"],
      "@deepseek-ai/dsh-client-ui-slash": ["./packages/client/ui-slash/src"],
      "@deepseek-ai/dsh-client-ui-command": ["./packages/client/ui-command/src"],
      "@deepseek-ai/dsh-client-ui-model": ["./packages/client/ui-model/src"],
      "@deepseek-ai/dsh-client-ui-goal": ["./packages/client/ui-goal/src"],
      "@deepseek-ai/dsh-client-ui-permission": ["./packages/client/ui-permission/src"],
      "@deepseek-ai/dsh-client-ui-skill": ["./packages/client/ui-skill/src"],
      "@deepseek-ai/dsh-client-ui-subagent": ["./packages/client/ui-subagent/src"],
      "@deepseek-ai/dsh-client-ui-plan": ["./packages/client/ui-plan/src"],
      "@deepseek-ai/dsh-client-ui-question": ["./packages/client/ui-question/src"],
      "@deepseek-ai/dsh-client-ui-trajectory": ["./packages/client/ui-trajectory/src"],
      "@deepseek-ai/dsh-client-ui-workspace": ["./packages/client/ui-workspace/src"],
      "@deepseek-ai/dsh-client-ui-theme": ["./packages/client/ui-theme/src"],
      "@deepseek-ai/dsh-client-ui-settings": ["./packages/client/ui-settings/src"],
      "@deepseek-ai/dsh-client-ui-settings-general": ["./packages/client/ui-settings-general/src"],
      "@deepseek-ai/dsh-client-ui-models": ["./packages/client/ui-models/src"],
      "@deepseek-ai/dsh-client-locale": ["./packages/client/locale/src"],
      "@deepseek-ai/dsh-client-web": ["./packages/client/web/src"],
      "@deepseek-ai/dsh-*": [
        "./packages/core/*/src",
        "./packages/prompt/*/src",
        "./packages/llm/*/src",
        "./packages/bash/*/src",
        "./packages/pty/*/src",
        "./packages/subprocess/*/src",
        "./packages/code-runtime/*/src",
        "./packages/fs/*/src",
        "./packages/lsp/*/src",
        "./packages/skill/*/src",
        "./packages/compact/*/src",
        "./packages/context/*/src",
        "./packages/goal/*/src",
        "./packages/guard/*/src",
        "./packages/plan/*/src",
        "./packages/subagent/*/src",
        "./packages/tasks/*/src",
        "./packages/workflow/*/src",
        "./packages/web/*/src",
        "./packages/spill/*/src",
        "./packages/timeout/*/src",
        "./packages/todo/*/src",
        "./packages/cordis/*/src",
        "./packages/sandbox/*/src",
        "./packages/hooks/*/src",
        "./packages/session-persistence/*/src",
        "./packages/session-projection/*/src",
        "./packages/session-query/*/src",
        "./packages/session-title/*/src",
        "./packages/settings/*/src",
        "./packages/credentials/*/src",
        "./packages/telemetry/*/src",
        "./packages/acp/*/src",
        "./packages/storage/*/src",
        "./packages/workspace/*/src",
        "./packages/sdk/*/src",
        "./packages/ui/*/src",
        "./packages/examples/*/src",
        "./packages/util/*/src",
        "./packages/mcp/*/src",
        "./packages/support/*/src",
        "./packages/host/*/src",
        "./packages/client/*/src"
      ]
    }
  }
}
