{
"version": "2.0.0",
"tasks": [
{
"label": "create-data-dir",
"type": "shell",
"command": "powershell",
"args": [
"-Command",
"if (-not (Test-Path -Path '${workspaceFolder}/data')) { New-Item -ItemType Directory -Path '${workspaceFolder}/data' -Force | Out-Null }"
],
"windows": {
"command": "powershell"
},
"problemMatcher": []
},
{
"label": "tauri:dev",
"type": "shell",
"command": "powershell",
"args": [
"-Command",
"$ws='${workspaceFolder}'; $env:DB_PATH=\"$ws\\data\\vector.db\"; $env:LLAMA_CPP_MODEL_PATH=\"$ws\\models\\embeddinggemma-300m-q4_0.gguf\"; bun run dev"
],
"isBackground": true,
"runOptions": {
"runOn": "default"
},
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": {
"owner": "rust",
"fileLocation": [
"relative",
"${workspaceFolder}/src/backend"
],
"pattern": [
{
"regexp": "^(warning|error): (.*)$",
"kind": 1,
"message": 2
},
{
"regexp": "^[ ]*--> (.*):(\\d+):(\\d+)$",
"file": 1,
"line": 2,
"column": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "^\\s*(Compiling|Building)",
"endsPattern": "^\\s*(Finished|Running)"
}
}
},
{
"label": "tauri:build",
"type": "shell",
"command": "bun",
"args": [
"run",
"build"
],
"options": {
"cwd": "${workspaceFolder}",
"env": {
"DB_PATH": "${workspaceFolder}/data/vector.db",
"LLAMA_CPP_MODEL_PATH": "${workspaceFolder}/models/embeddinggemma-300m-q4_0.gguf"
}
}
},
{
"label": "create-data-dir",
"type": "shell",
"command": "powershell",
"args": [
"-Command",
"if (-not (Test-Path -Path '${workspaceFolder}/data')) { New-Item -ItemType Directory -Path '${workspaceFolder}/data' -Force | Out-Null }"
],
"group": "build"
},
{
"label": "create-data-dir",
"type": "shell",
"command": "powershell",
"args": [
"-Command",
"if (-not (Test-Path -Path 'data')) { New-Item -ItemType Directory -Path 'data' -Force | Out-Null }"
],
"group": "build"
},
{
"label": "create-data-dir",
"type": "shell",
"command": "powershell",
"args": [
"-Command",
"if (-not (Test-Path -Path 'data')) { New-Item -ItemType Directory -Path 'data' -Force | Out-Null }"
]
}
]
}