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:
Scott Idem
2026-04-08 19:11:27 -04:00
parent a6e404c143
commit 8ba5247ef5
4 changed files with 407 additions and 0 deletions

View 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
}
]
}
}