tooling: install script, workspace file, and dev-restart helper
- install.py — idempotent setup script (venv, systemd service, linger, auth checks); supports --check for read-only status inspection - .stignore — exclude .venv and runtime dirs from Syncthing so each host maintains its own machine-local venv - Cortex_and_Inara.code-workspace — VS Code workspace (service, personas, docs folders; launch config for uvicorn --reload) - dev-restart.sh — SSH wrapper to restart Cortex on the gaming laptop and tail logs; supports restart / logs / status subcommands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
75
Cortex_and_Inara.code-workspace
Normal file
75
Cortex_and_Inara.code-workspace
Normal file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"name": "cortex (service)",
|
||||
"path": "cortex"
|
||||
},
|
||||
{
|
||||
"name": "home (personas)",
|
||||
"path": "home"
|
||||
},
|
||||
{
|
||||
"name": "documentation",
|
||||
"path": "documentation"
|
||||
},
|
||||
{
|
||||
"name": "docs (integrations)",
|
||||
"path": "docs"
|
||||
},
|
||||
{
|
||||
"name": "project root",
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"files.exclude": {
|
||||
"**/__pycache__": true,
|
||||
"**/*.pyc": true,
|
||||
"cortex/.venv": true,
|
||||
"cortex/data": true
|
||||
},
|
||||
"search.exclude": {
|
||||
"**/__pycache__": true,
|
||||
"cortex/.venv": true,
|
||||
"cortex/data": true,
|
||||
"home/**/sessions": true,
|
||||
"home/**/session_data": true
|
||||
},
|
||||
"[python]": {
|
||||
"editor.formatOnSave": false
|
||||
},
|
||||
"editor.rulers": [100],
|
||||
"files.associations": {
|
||||
"*.env": "dotenv",
|
||||
"*.env.default": "dotenv"
|
||||
}
|
||||
},
|
||||
"extensions": {
|
||||
"recommendations": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"humao.rest-client",
|
||||
"tamasfe.even-better-toml"
|
||||
]
|
||||
},
|
||||
"launch": {
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Cortex (uvicorn dev)",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"module": "uvicorn",
|
||||
"args": [
|
||||
"main:app",
|
||||
"--host", "0.0.0.0",
|
||||
"--port", "8000",
|
||||
"--reload"
|
||||
],
|
||||
"cwd": "${workspaceFolder:cortex (service)}",
|
||||
"envFile": "${workspaceFolder:cortex (service)}/.env",
|
||||
"justMyCode": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user