Files
loki/package.json
T
xandClaude Opus 4.8 7bd4fd22ec chore(devops): kill three recurring deploy footguns
Tier-1 DevX fixes for pains hit repeatedly in practice:

1. ci-gate: cancelled != failed. CI runs with cancel-in-progress, so a
   follow-up push cancels the earlier commit's run; the gate counted that
   as a failure and printed "CI FAILED", blocking a deploy that never
   should have run. Now a cancelled run on a SUPERSEDED (non-tip) commit
   exits 3 → the hook skips it quietly (the newer commit deploys); only
   genuine failure/timeout/action_required block.

2. Per-SHA deploy logs. Every deploy wrote to one shared
   /tmp/push-deploy-fleetcrown.log, so completion-greps matched stale
   lines from prior deploys (false PROBLEM/DEPLOYED). Each deploy now
   writes /tmp/push-deploy-fleetcrown-<sha>.log (+ a -latest symlink),
   and `npm run deploy:status` shows live SHA vs origin/main, health,
   in-flight deploy, and the last log's verdict — no more curl|grep.

3. `npm run db:apply-box <file.sql>` applies box DDL AS THE APP ROLE, so
   objects are owned by `fleetcrown` and visible to the app. Applying as
   `postgres` (the reflex) left tables invisible to the app role — the
   drift-check false-failed and rolled back twice. Verified: a table it
   creates is owned by the app role.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 12:41:27 +02:00

131 lines
5.6 KiB
JSON

{
"name": "fleetcrown",
"version": "0.1.0",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"dev": "next dev",
"prebuild": "npx tsx scripts/generate-bash-state-vocab.ts && npm run build:widget",
"build:widget": "esbuild widget/main.ts --bundle --minify --format=iife --outfile=public/widget.js --log-level=warning",
"build": "next build",
"postbuild": "bash scripts/deploy-local.sh",
"start": "next start",
"install-app": "bash scripts/install-fleetcrown-app.sh",
"migrate": "drizzle-kit push",
"check:schema": "npx tsx scripts/check-schema-drift.ts",
"lint": "eslint src/ home/",
"check:design": "bash scripts/check-design-system.sh",
"smoke": "bash scripts/smoke.sh",
"test:home": "bash scripts/test-home.sh",
"test:executor": "npx tsx scripts/test/executor.ts",
"test:sandbox-executor": "npx tsx scripts/test/sandbox-executor.ts",
"test:control-presenter": "npx tsx scripts/test/control-presenter.ts",
"test:agent-resolution": "npx tsx scripts/test/agent-resolution.ts",
"test:auto-reroute": "npx tsx scripts/test/auto-reroute.ts",
"test:dod-gate": "npx tsx scripts/test/dod-gate.ts",
"test:project-session": "npx tsx scripts/test/project-session.ts",
"test:autopilot-defaults": "npx tsx scripts/test/autopilot-defaults.ts",
"test:fleet-kick": "npx tsx scripts/test/fleet-kick.ts",
"test:push-notifications": "npx tsx scripts/test/push-notifications.ts",
"test:onboarding": "npx tsx scripts/test/onboarding.ts",
"test:onboarding-heal": "npx tsx scripts/test/onboarding-heal.ts",
"test:db-url": "npx tsx scripts/test/db-url.ts",
"test:brand-sync": "npx tsx scripts/test/brand-sync.ts",
"test:orchestration-summary": "npx tsx scripts/test/orchestration-summary.ts",
"test:dispatch-gates": "npx tsx scripts/test/dispatch-gates.ts",
"test:prompt-history": "npx tsx scripts/test/prompt-history.ts",
"test:desktop-command-validator": "npx tsx scripts/test/desktop-command-validator.ts",
"test:tab-match": "npx tsx scripts/test/tab-match.ts",
"test:agent-comms": "npx tsx scripts/test/agent-comms.ts",
"test:unit": "npx tsx scripts/test-unit.ts",
"test:activity-ssot": "node scripts/activity-ssot-check.mjs",
"dogfood:loki": "node scripts/loki-dogfood.mjs",
"dogfood:loki:ci": "FLEETCROWN_SESSION_TOKEN=$(npx tsx scripts/test/print-session-token.ts) HEADLESS=1 node scripts/loki-dogfood.mjs",
"dogfood:ui-flows:ci": "FLEETCROWN_SESSION_TOKEN=$(npx tsx scripts/test/print-session-token.ts) HEADLESS=1 node scripts/ui-flow-dogfood.mjs",
"dogfood:machine:ci": "FLEETCROWN_SESSION_TOKEN=$(npx tsx scripts/test/print-session-token.ts) HEADLESS=1 node scripts/machine-dogfood.mjs",
"dogfood:self": "node scripts/fleetcrown-self-dogfood.mjs",
"test:dispatch-status": "npx tsx scripts/test/dispatch-status.ts",
"test:fleet-context": "npx tsx scripts/test/fleet-context.ts",
"test:execution-access": "npx tsx scripts/test/execution-access.ts",
"test:workspace-access": "npx tsx scripts/test/workspace-access.ts",
"test:authenticated-smoke": "npx tsx scripts/test/authenticated-smoke.ts",
"test:pre-push-prod-dogfood": "bash scripts/test/pre-push-prod-dogfood.sh",
"test:loop-ssot": "npx tsx scripts/test/loop-ssot.ts",
"test:auth-a11y": "npx tsx scripts/test/auth-a11y.ts",
"test:loki-prefetch": "npx tsx scripts/test/loki-prefetch.ts",
"test:digest": "npx tsx scripts/test/digest.ts",
"test:auth": "npx tsx scripts/test/auth.ts",
"generate:brand": "npx tsx scripts/generate-brand.mjs",
"generate:agent-prompts": "npx tsx scripts/generate-agent-prompts.ts",
"ingest:history": "npx tsx scripts/ingest-claude-code-history.ts",
"desktop:dev": "cd desktop && npm run dev",
"desktop:build": "cd desktop && npm run build",
"desktop:preview": "cd desktop && npm run preview",
"db:dump": "bash scripts/db/dump.sh",
"db:restore": "bash scripts/db/restore.sh",
"db:apply-box": "bash scripts/db/apply-box.sh",
"deploy": "bash scripts/deploy-hetzner.sh",
"deploy:status": "bash scripts/deploy-status.sh",
"ship": "git push origin main",
"prepare": "husky"
},
"dependencies": {
"@auth/drizzle-adapter": "^1.11.2",
"@base-ui/react": "^1.3.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@orangecat/sdk": "file:vendor/orangecat-sdk-0.2.0.tgz",
"@sentry/nextjs": "^10.66.0",
"@types/ws": "^8.18.1",
"@xterm/addon-fit": "^0.11.0",
"@xterm/addon-web-links": "^0.12.0",
"@xterm/xterm": "^6.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"drizzle-orm": "^0.45.2",
"geist": "^1.7.2",
"lucide-react": "^1.7.0",
"mermaid": "^11.15.0",
"next": "16.2.6",
"next-auth": "^5.0.0-beta.31",
"next-themes": "^0.4.6",
"node-pty": "^1.1.0",
"postgres": "^3.4.8",
"react": "19.2.4",
"react-dom": "19.2.4",
"resend": "^6.12.3",
"shadcn": "^4.1.2",
"stripe": "^22.1.1",
"tailwind-merge": "^3.5.0",
"tw-animate-css": "^1.4.0",
"web-push": "^3.6.7",
"ws": "^8.21.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/better-sqlite3": "^7.6.13",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/web-push": "^3.6.4",
"better-sqlite3": "^12.8.0",
"drizzle-kit": "^0.31.10",
"esbuild": "^0.28.1",
"eslint": "^9",
"eslint-config-next": "16.2.6",
"husky": "^9.1.7",
"playwright": "^1.61.1",
"tailwindcss": "^4",
"tsx": "^4.21.0",
"typescript": "^5"
},
"overrides": {
"fast-uri": "3.1.2"
}
}