Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "lokalise.i18n-ally", "esbenp.prettier-vscode"]
"recommendations": ["dbaeumer.vscode-eslint", "lokalise.i18n-ally", "esbenp.prettier-vscode", "TypeScriptTeam.native-preview"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"format": "prettier --cache --write .",
"lint": "oxlint .",
"typecheck:node": "tsgo --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"typecheck:web": "vue-tsgo --project tsconfig.app.tsgo.json",
"typecheck": "pnpm run typecheck:node && pnpm run typecheck:web",
"start": "electron-vite preview",
"dev": "cross-env VITE_ENABLE_PLAYGROUND=true electron-vite dev --watch",
Expand Down Expand Up @@ -180,7 +180,7 @@
"vue-i18n": "^11.2.7",
"vue-router": "4",
"vue-sonner": "^2.0.9",
"vue-tsc": "^2.2.12",
"vue-tsgo": "0.0.1-yggdrasill.11",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

vue-tsgo npm package version 0.0.1-yggdrasill.11 TypeScript compatibility

💡 Result:

I couldn’t find any publicly indexed npm package/version matching vue-tsgo@0.0.1-yggdrasill.11 (no npm/unpkg results for that exact name+version), so I can’t verify its TypeScript compatibility from authoritative metadata (e.g., peerDependencies).

To determine compatibility, check the published manifest directly from your environment:

npm view vue-tsgo@0.0.1-yggdrasill.11 peerDependencies
npm view vue-tsgo@0.0.1-yggdrasill.11 engines
npm view vue-tsgo@0.0.1-yggdrasill.11 dependencies

If it’s actually vue-tsc (the common Vue typecheck CLI), current releases declare peerDependencies.typescript as >=5.0.0. (app.unpkg.com)

Citations:


🌐 Web query:

vue-tsgo latest version TypeScript 5.8 compatibility

💡 Result:

  • “vue-tsgo”: there doesn’t appear to be an official Vue tool by that name; the Vue CLI type-checker is vue-tsc (part of vuejs/language-tools). [4]
  • Latest vue-tsc: v3.2.4 (released 2026-01-26). [1] (Also reflected by Snyk as “latest version 3.2.4”.) [2]
  • TypeScript 5.8 compatibility: vue-tsc declares a peer dependency of typescript >= 5.0.0, so TypeScript 5.8.x is compatible. [3]
  • TypeScript “tsgo” (native preview) compatibility: not a drop-in replacement for vue-tsctsgo is a separate executable provided by @typescript/native-preview and Vue tooling currently targets the normal typescript (tsc/tsserver) ecosystem rather than tsgo. [5]

Sources: [1] [2] [3] [4] [5]


🏁 Script executed:

cat package.json | head -50

Repository: ThinkInAIXYZ/deepchat

Length of output: 3835


🏁 Script executed:

rg "vue-tsgo|vue-tsc" --type json

Repository: ThinkInAIXYZ/deepchat

Length of output: 195


🏁 Script executed:

git ls-files | grep -E "(package\.json|\.npmrc|pnpm-workspace|lerna)" | head -20

Repository: ThinkInAIXYZ/deepchat

Length of output: 97


🏁 Script executed:

cat pnpm-workspace.yaml

Repository: ThinkInAIXYZ/deepchat

Length of output: 129


🏁 Script executed:

fd vue-tsgo

Repository: ThinkInAIXYZ/deepchat

Length of output: 47


🏁 Script executed:

find . -name "tsconfig.app.tsgo.json" -o -name "tsconfig*" | head -20

Repository: ThinkInAIXYZ/deepchat

Length of output: 153


🏁 Script executed:

cat tsconfig.app.tsgo.json

Repository: ThinkInAIXYZ/deepchat

Length of output: 1222


🏁 Script executed:

cat package.json | sed -n '183,185p'

Repository: ThinkInAIXYZ/deepchat

Length of output: 178


🏁 Script executed:

rg "typecheck:web" -A 2 -B 2

Repository: ThinkInAIXYZ/deepchat

Length of output: 1512


Remove or replace "vue-tsgo"—this package does not exist in any public registry.

The package vue-tsgo@0.0.1-yggdrasill.11 is not found on npm or any public package registry. This will fail during pnpm install and break the pnpm run typecheck:web script.

Replace it with the official Vue type-checker vue-tsc (latest v3.2.4, compatible with TypeScript ≥5.0.0), or if using TypeScript's native preview tool tsgo directly, add @typescript/native-preview instead.

🤖 Prompt for AI Agents
In `@package.json` at line 183, The dependency "vue-tsgo": "0.0.1-yggdrasill.11"
in package.json is invalid and will break pnpm install/typecheck; replace that
entry with the official Vue type-checker "vue-tsc" (e.g., "vue-tsc": "3.2.4")
or, if you intend to use TypeScript's native preview, replace it with
"@typescript/native-preview" instead, and update any scripts (e.g., the
typecheck:web script) to call the chosen binary name ("vue-tsc" or
"@typescript/native-preview"/"tsgo") so pnpm run typecheck:web resolves
correctly.

"vue-virtual-scroller": "^2.0.0-beta.8",
"vuedraggable": "^4.1.0",
"yaml": "^2.8.2",
Expand Down
16 changes: 9 additions & 7 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,24 @@
"src/renderer/settings/**/*.vue"
],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"module": "esnext",
"composite": false,
"declaration": false,
"emitDeclarationOnly": false,
"noEmit": true,
Comment on lines +27 to +30
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# Check for project references in tsconfig files
find . -name "tsconfig*.json" -type f | head -20

Repository: ThinkInAIXYZ/deepchat

Length of output: 146


🏁 Script executed:

# Search for "references" in tsconfig files
rg -n "\"references\"" --type json

# Search for tsconfig.app.json references in build-related files
rg -n "tsconfig\.app\.json" --type json --type json5

# Check package.json for build scripts using tsc or related tools
rg -n "tsc|vue-tsc|tsgo" package.json

Repository: ThinkInAIXYZ/deepchat

Length of output: 387


🏁 Script executed:

# Read the tsconfig.app.json file to see full config including extends
cat -n tsconfig.app.json

Repository: ThinkInAIXYZ/deepchat

Length of output: 1544


🏁 Script executed:

# Read tsconfig.json to see the references array
sed -n '1,20p' tsconfig.json

Repository: ThinkInAIXYZ/deepchat

Length of output: 324


🏁 Script executed:

# Look for any other references to tsconfig.app.json in the codebase
rg -n "tsconfig\.app\.json" --type json --type ts --type js

Repository: ThinkInAIXYZ/deepchat

Length of output: 116


Remove tsconfig.app.json from project references or set composite: true.

This config is in the root tsconfig.json references array (line 8) but has composite: false and noEmit: true. With composite: false, it won't be built by tsc --build, so it shouldn't remain in project references. Either remove it from the references array if it's type-checking only, or set composite: true if it should be a proper project reference for the build process.

🤖 Prompt for AI Agents
In `@tsconfig.app.json` around lines 27 - 30, The tsconfig.app.json is listed in
the root tsconfig.json project references but has "composite": false and
"noEmit": true, which prevents it from being built by tsc --build; either remove
tsconfig.app.json from the root tsconfig.json references array if it is intended
only for type-checking, or make it a proper composite project by setting
"composite": true (and adjusting/delete "noEmit": true/"declaration":
false/"emitDeclarationOnly" as appropriate so it can emit artefacts) to ensure
tsc --build includes it.

"paths": {
"@/*": [
"src/renderer/src/*"
"./src/renderer/src/*"
],
"@shell/*": [
"src/renderer/shell/*"
"./src/renderer/shell/*"
],
"@shared/*": [
"src/shared/*"
"./src/shared/*"
],
"@shadcn/*": [
"src/shadcn/*"
"./src/shadcn/*"
]
Comment on lines 31 to 43
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# Find all tsconfig files in the repo
find . -name 'tsconfig*.json' -type f | head -20

Repository: ThinkInAIXYZ/deepchat

Length of output: 146


🏁 Script executed:

# Check the content of tsconfig.app.json to see extends and baseUrl
cat -n tsconfig.app.json 2>/dev/null || echo "File not found at root"

Repository: ThinkInAIXYZ/deepchat

Length of output: 1544


🏁 Script executed:

# Check in common directories
fd 'tsconfig.*\.json$' | xargs -I {} sh -c 'echo "=== {} ===" && head -20 {}'

Repository: ThinkInAIXYZ/deepchat

Length of output: 2168


🏁 Script executed:

# Check if node_modules has the package
find . -path "*/node_modules/@electron-toolkit/tsconfig/tsconfig.web.json" 2>/dev/null | head -5

Repository: ThinkInAIXYZ/deepchat

Length of output: 47


🏁 Script executed:

# Check package.json for the electron-toolkit version
cat package.json | grep -A 5 -B 5 "@electron-toolkit" || echo "Not found in package.json"

Repository: ThinkInAIXYZ/deepchat

Length of output: 908


🏁 Script executed:

# Search for any documentation or README about baseUrl usage
rg "baseUrl" --type json | head -20

Repository: ThinkInAIXYZ/deepchat

Length of output: 1891


🏁 Script executed:

# Let me check if there's documentation or if we can find the external package online
# First, check if tsconfig validation would fail
npm ls `@electron-toolkit/tsconfig` 2>&1 | head -20

Repository: ThinkInAIXYZ/deepchat

Length of output: 118


🏁 Script executed:

# Check the Prettier formatting of tsconfig.app.json
cat tsconfig.app.json | python3 -m json.tool > /dev/null 2>&1 && echo "Valid JSON"

Repository: ThinkInAIXYZ/deepchat

Length of output: 75


🌐 Web query:

@electron-toolkit/tsconfig tsconfig.web.json baseUrl configuration

💡 Result:

@electron-toolkit/tsconfig/tsconfig.web.json does not set compilerOptions.baseUrl. It only extends the package’s base tsconfig.json and adds DOM libs. (app.unpkg.com)

So if you want baseUrl (and typically paths) you add/override it in your renderer tsconfig:

{
  "extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/renderer/src/*"]
    }
  }
}

TypeScript resolves paths relative to baseUrl, so pick a baseUrl that matches how you want to write imports (commonly "." at repo root, or the renderer source folder).

Citations:


🏁 Script executed:

# Check if tsconfig.app.json conforms to Prettier formatting
cat tsconfig.app.json | python3 << 'EOF'
import json
import sys

with open('tsconfig.app.json', 'r') as f:
    config = json.load(f)

# Output with Prettier-like formatting (2 spaces)
formatted = json.dumps(config, indent=2)
print(formatted)
EOF

Repository: ThinkInAIXYZ/deepchat

Length of output: 1222


🏁 Script executed:

# Verify the file is being used as the renderer tsconfig (check vite config or build setup)
rg "tsconfig.app" --type js --type ts | head -10

Repository: ThinkInAIXYZ/deepchat

Length of output: 47


Add baseUrl to enable path alias resolution.

The extended config @electron-toolkit/tsconfig/tsconfig.web.json does not define baseUrl, which is required by TypeScript for compilerOptions.paths to resolve. Without it, the path aliases (@/*, @shell/*, etc.) will not work.

Required fix
  "compilerOptions": {
+   "baseUrl": ".",
    "module": "esnext",
🤖 Prompt for AI Agents
In `@tsconfig.app.json` around lines 31 - 43, The tsconfig's compilerOptions.paths
(aliases like "@/*", "@shell/*", "@shared/*", "@shadcn/*") won't be resolved
because compilerOptions.baseUrl is missing; add a "baseUrl" entry under
compilerOptions (e.g., "baseUrl": "./") in the same tsconfig (next to "paths")
so TypeScript can resolve those aliases.

}
}
}
}
46 changes: 46 additions & 0 deletions tsconfig.app.tsgo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
"include": [
"src/renderer/src/env.d.ts",
"src/renderer/src/**/*",
"src/renderer/src/**/*.vue",
"src/renderer/src/assets/**/*",
"src/renderer/shell/env.d.ts",
"src/renderer/shell/**/*",
"src/renderer/shell/**/*.vue",
"src/renderer/shell/assets/**/*",
"src/renderer/floating/env.d.ts",
"src/renderer/floating/**/*",
"src/renderer/floating/**/*.vue",
"src/renderer/floating/assets/**/*",
"src/renderer/splash/**/*",
"src/renderer/splash/**/*.vue",
"src/renderer/splash/assets/**/*",
"src/preload/*.d.ts",
"src/shared/**/*",
"src/shadcn/**/*",
"src/renderer/settings/**/*",
"src/renderer/settings/**/*.vue"
],
"compilerOptions": {
"module": "esnext",
"composite": false,
"declaration": false,
"emitDeclarationOnly": false,
"noEmit": true,
"paths": {
"@/*": [
"./src/renderer/src/*"
],
"@shell/*": [
"./src/renderer/shell/*"
],
"@shared/*": [
"./src/shared/*"
],
"@shadcn/*": [
"./src/shadcn/*"
]
}
}
}