Commit graph

41 commits

Author SHA1 Message Date
Natalie
a496f08b79 fix: ensure MAC_SYNC_* in quinn-api secrets for cockpit_send (and other mac-sync send paths)
- Add idempotent append in quinn.api/deploy.sh for MAC_SYNC_BASE_URL + SERVICE_TOKEN (matching the pattern used for MODEL_BOSS, ANALYTICS_DB etc.). Old secrets.env files that predated the send support would cause prospect-cockpit /send (and /m/messages/send) to 502 with 'mac_sync_unavailable' / 'MAC_SYNC_URL env var required'.
- Explicitly pass the same MAC_SYNC_* in scripts/run/dev.sh dev:api so local dev quinn.api (on 3040) can exercise scheduled-send / cockpit_send flows against the canonical black mac-sync-server.
- Live hotfix: appended the lines to /etc/quinn-api/secrets.env on black + restarted quinn-api (verified: now present in running process env; end-to-end /my/prospects/.../send now returns scheduledId instead of 502; test row cancelled cleanly via mac-sync admin).

This makes cockpit_send (quinn-prospector) and sibling send surfaces work when the MCP targets the real backend (black:3912 -> localhost:3030 quinn.api).

Refs the exact error from the report.
2026-06-22 01:25:16 -05:00
Natalie
b550c6370c refactor(mcp): rename quinn-data MCP → quinn-analytics
The data MCP is purely read-only analytics, so rename the package
(@lilith/quinn-data-mcp → @lilith/quinn-analytics-mcp), bin, server name,
logger prefix, and the .mcp.json client key to match. The systemd deploy
instance key stays `data` (quinn-mcp@data, black:3914) — noted in the deploy
script and mcp-servers.md. Updates all doc/content references (nyc-tour SEO,
twitter handoff, deploy comments).
2026-06-21 15:07:05 -05:00
Natalie
75e95e83a5 fix(api/analytics): make acquisition de-stub runnable + correct analytics DB target
- acquisition/sources: drop the ${corpFilter} interpolation. postgres.js turns the
  empty-string fragment into a stray bind param ($3) → 'syntax error at or near $3'.
  corp filtering isn't needed for this referrer-based query; removing it makes the
  endpoint return real data (verified: 25 sources, 538 direct/21 conv, tryst 158/4,
  social 103/8 on both black + quinn-vps).
- deploy.sh secrets template: ANALYTICS_DB_URL pointed at black.lan:25434 (the EMPTY
  black analytics instance) with no password. Point at the populated DB on quinn-vps
  (10.9.0.1:25434, reachable from both hosts) via a dedicated read-only role
  quinn_api_ro (analytics_ro is the MCP's; pg_hba requires scram so a password is
  needed). Password left blank in-repo; filled in live secrets.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-20 22:16:26 -05:00
Natalie
e89433378d fix(quinn.api/deploy): make privileged steps root-safe (no sudo on quinn-vps)
deploy.sh assumed passwordless sudo on the remote — true for black, but quinn-vps
runs the deploy as root with no sudo, so every 'sudo systemctl/install/tee' failed
with 'sudo: command not found' (the 10-day-old deploy-quinn-api breakage). Resolve
sudo once per host (REMOTE_SUDO locally, SUDO inside the remote heredoc) and use it
only when present. Verified: clean deploys to both black (sudo) and quinn-vps (root).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 22:10:52 -05:00
Natalie
44bf65fbdb feat(api): black prospector SDK fallback when apricot model-boss is down
Provision PROSPECT_LLM_BACKEND=claude and CLAUDE_CODE_OAUTH_TOKEN in quinn-api
secrets, put claude on PATH for www-data, and add prospector-black-claude-setup.sh
to install the token after `claude setup-token`.
2026-06-19 18:59:15 -05:00
autocommit
18db1b8f41 deploy(infrastructure): 🚀 Update server configurations, deployment scripts, and infrastructure files; increment build version and deployment count
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-10 21:33:02 -07:00
autocommit
84d31a0afe feat(prospector-quinn): Introduce AI prospecting tools (heat scoring, reply generation) and Quinn-AI gateway integration, alongside frontend UI updates, backend API refactoring, and infrastructure enhancements for edge-purge and proxy services.
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-10 20:40:01 -07:00
autocommit
158a704418 breaking(api): 💥 Update client entity schema, prospector classification, and admin photo export routes with breaking changes
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-10 14:58:14 -07:00
autocommit
d673e9db2a chore(quinn.api): 🔧 Add MAC_SYNC_URL and MAC_SYNC_TOKEN environment variables to deploy.sh for mac-sync admin integration
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-09 20:06:38 -07:00
autocommit
e3e1c2abec chore(quinn.api): 🔧 Update required env vars in .env.example for quinn.api deployment
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-08 03:19:15 -07:00
autocommit
cac5f4f292 chore(backend-api): 🔧 Update dev env vars, Vitest config, and deployment examples for backend API
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-08 00:10:31 -07:00
autocommit
043e1d1825 chore(api): 🔧 Update environment configs in .env.development and .env.example for API consistency
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-07 23:35:25 -07:00
autocommit
321b2773d0 chore(deployments): 🔧 Update .env.example with deployment environment variables for quinn.api domain
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-07 22:43:03 -07:00
autocommit
701d7fdf27 chore(quinn.api): 🔧 Add/update example environment variables in .env.example for Quinn API deployment
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-07 22:26:20 -07:00
autocommit
4f7f74ca58 infra(infra): 🧱 Update systemd service unit to enforce PostgreSQL dependency for Quinn API startup
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-04 11:17:13 -07:00
autocommit
149bb5a556 chore(quinn.api): 🔧 Update deployment script to switch from SQLite to PostgreSQL with environment variable and logic adjustments
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-04 11:17:13 -07:00
autocommit
3ad918c2d3 chore(quinn-api): 🔧 Update example environment configuration with new/modified variables for Quinn API deployment
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-04 11:17:13 -07:00
Natalie
a39accd764 feat(quinn.www): 🚀 Activate track-B photo origin (black:8081) + reconcile edge
Completes the Stage-1 edge-cache photo migration:
- prod.conf /photos/: proxy_pass http://black_photos/ (trailing slash) — the
  origin serves BARE filenames, so the edge must strip the /photos/ prefix.
  Verified: bare=200, /photos/-prefixed=404 against the live origin.
- prod.conf /og-image.jpg: try_files → proxy_pass 127.0.0.1:3099 (the DRY
  hero share-image helper), matching the live VPS so the next deploy is a
  no-op, not a regression.
- deploy-photo-origin.sh: rewritten to deploy a dedicated nginx:alpine
  container (network=host, :8081, restart=always) running origin-photos.conf
  verbatim. Black's system nginx has been disabled+failed since 2026-05-17;
  the live server is the host-network host-nginx container loading a
  monolithic nginx.conf — so the origin must be isolated, not in
  system-nginx sites-enabled (the old script's dead mechanism).
- README-vps-owned.md step D: corrected path (dist/photos not quinn.admin),
  mechanism (container), and smoke (real file, no /health endpoint).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 18:35:23 -06:00
autocommit
be29a8f704 chore(quinn-api): 🔧 Update deployment workflow for quinn.api domain by modifying deploy.sh script
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-18 23:27:36 -07:00
autocommit
4c3788ae8b deploy(quinn.api): 🚀 Update deployment pipeline to enforce new configuration validation and trigger checks for Quinn API releases
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-16 22:37:08 -07:00
autocommit
a9296815f7 chore(api): 🔧 Update API contract, backend logic, frontend UX, infrastructure, and localization across system-wide components
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-16 04:42:58 -07:00
autocommit
78f48fdd48 infra(quinn-api): 🧱 Update systemd service unit and API server config for deployment stability and compliance
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-16 01:22:02 -07:00
autocommit
878d814a13 feat(edge-purge): Add edge purge service for CDN cache invalidation with server, verification logic, Nginx configs, deployment scripts, and systemd service
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-16 01:14:14 -07:00
autocommit
c174943e41 chore(quinn.api): 🔧 Update edge-purge deployment configs and TypeScript path aliases
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-16 01:14:13 -07:00
autocommit
5763fc1ff7 chore(quinn.api): 🔧 Update deployment script with new environment variables, build steps, and deployment commands for Quinn API
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-14 20:44:54 -07:00
autocommit
f10a03a300 feat(db-monitor): Add database monitoring alert rules, deployment updates for quinn.api, and local Caddyfile configuration
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-14 20:18:50 -07:00
autocommit
f9d5eb1ac1 deploy(quinn.m-domain): 🚀 Update production environment variables and deployment scripts for Quinn.m domain, including persona configurations
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-14 19:31:34 -07:00
autocommit
382b6b65cd chore(deployments): 🔧 Update .env.example template for quinn.api with new/modified environment variables
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-05-14 19:31:33 -07:00
autocommit
a7591c2062 deploy(domains): 🚀 Update systemd service and deployment scripts for Quinn API domains with environment-specific configurations
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 22:21:44 -07:00
autocommit
f9e194698a infra(quinn-api): 🧱 Improve deployment reliability by updating the deploy.sh script logic and quinn-api.service systemd unit for better environment handling, restart policies, and logging
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 17:42:50 -07:00
autocommit
d7447f7ede infra(systemd): 🧱 Update systemd service unit files and env.prod.example templates for production deployments
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 17:30:09 -07:00
autocommit
56a5243b6b chore(quinn-api): 🔧 Update systemd service config for Quinn API with optimized environment/permission directives
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 17:17:04 -07:00
autocommit
a4c2d92898 infra(systemd): 🧱 Update systemd unit files for Quinn API and Messenger database backup services with adjusted startup, scheduling, and resource management policies
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 16:51:38 -07:00
autocommit
4f8e74cbe6 infra(deployments-systemd): 🧱 Update systemd unit files for Quinn API and M-Orchestrator tunnel with optimized ExecStart, OOMScoreAdjust, and port mappings
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 16:39:19 -07:00
autocommit
99e24b0b2d infra(quinn-api): 🧱 Update systemd service configuration and deployment automation scripts for Quinn API lifecycle management
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 16:27:02 -07:00
autocommit
09d17aed2a infra(quinn-api): 🧱 Update systemd service unit and deployment script for Quinn API with environment variables, working directory, and restart logic
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 16:14:02 -07:00
autocommit
276b8acf6e infra(quinn-api): 🧱 Update systemd service unit to configure execution environment, resource limits, and dependencies for the Quinn API
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 15:42:32 -07:00
autocommit
73a19cf33d deploy(quinn.api): 🚀 Update deployment scripts and systemd service for quinn.api with new logic, env vars, and metadata
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 15:36:04 -07:00
autocommit
ef112839fe deploy(quinn-api): 🚀 Update deployment script with new environment configurations and deployment steps
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 15:29:35 -07:00
autocommit
3ad86a57fc deploy(quinn.api): 🚀 Update deployment scripts and systemd service for quinn.api domain
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 13:31:59 -07:00
autocommit
42cec07464 chore(admin): 🔧 Update Vite build config and add missing env vars for admin frontend and quinn.api
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-19 13:31:58 -07:00