{ "name": "droboticflow", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "concurrently -k -n api,web \"npm:dev:api\" \"npm:dev:web\"", "dev:full": "concurrently -k -n api,worker,web \"npm:dev:api\" \"npm:dev:worker\" \"npm:dev:web\"", "dev:api": "go run ./cmd/api", "dev:worker": "go run ./cmd/worker", "dev:drosync-coordinator": "go run ./cmd/drosync-coordinator", "dev:web": "vite", "prepare": "node scripts/check-git-hooks.mjs --install", "build": "npm run build:web && npm run build:go", "build:web": "vite build", "build:go": "mkdir -p build && go build -o build/droboticflow-api ./cmd/api && go build -o build/droboticflow-worker ./cmd/worker && go build -o build/drosync-coordinator ./cmd/drosync-coordinator", "build:drosync": "cargo build --release --workspace --manifest-path tools/drosync/Cargo.toml", "start": "./build/droboticflow-api", "start:api": "./build/droboticflow-api", "start:worker": "./build/droboticflow-worker", "start:drosync-coordinator": "./build/drosync-coordinator", "start:operator-runner": "python3 backend/operator-runner/main.py", "preview": "vite preview", "clean": "rm -rf dist build", "lint": "npm run lint:web && npm run lint:go && npm run lint:scripts", "lint:web": "tsc --noEmit && npm run lint:architecture", "lint:architecture": "node scripts/check-frontend-architecture.mjs && node --test tests/frontend/frontend-architecture.test.mjs", "lint:go": "bash -lc 'test -z \"$(gofmt -l cmd internal)\"'", "lint:scripts": "bash -n scripts/*.sh scripts/lib/*.sh scripts/deploy-envs/*.env && node --check scripts/*.mjs scripts/lib/*.mjs && python3 -m py_compile scripts/*.py scripts/lib/*.py", "format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"src/services/api/*.js\" \"tests/frontend/**/*.mjs\"", "format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"src/services/api/*.js\" \"tests/frontend/**/*.mjs\"", "test": "go test ./...", "test:python": "python3 -m pytest backend/operator-runner tests/backend", "test:frontend": "node --test tests/frontend/*.test.mjs", "test:frontend:gate": "node scripts/check-test-baseline.mjs frontend", "test:go:gate": "node scripts/check-test-baseline.mjs go", "test:drosync": "cargo test --workspace --manifest-path tools/drosync/Cargo.toml", "lint:drosync": "cargo fmt --all --manifest-path tools/drosync/Cargo.toml -- --check && cargo clippy --workspace --all-targets --manifest-path tools/drosync/Cargo.toml -- -D warnings", "generate:drosync-contract": "python3 scripts/generate_drosync_contract.py", "generate:drosync-contract:check": "python3 scripts/generate_drosync_contract.py --check", "operators:repos": "python3 scripts/generate_operator_repositories.py --write", "operators:repos:check": "python3 scripts/generate_operator_repositories.py --check", "operators:manifests": "npm run operators:repos && python3 scripts/generate_operator_repository_manifests.py --write", "operators:manifests:check": "npm run operators:repos:check && python3 scripts/generate_operator_repository_manifests.py --check", "operators:images": "npm run operators:repos && python3 scripts/generate_operator_images.py --write", "operators:images:check": "npm run operators:repos:check && python3 scripts/generate_operator_images.py --check", "audit:moderate": "./scripts/npm-audit-retry.sh --audit-level=moderate", "verify:local": "npm run lint && npm run format:check && npm test && npm run test:python && npm run test:frontend && npm run build && npm run k8s:validate", "verify:security": "npm run audit:moderate", "verify": "npm run verify:local && npm run verify:security", "docker:build:api": "docker build -f Dockerfile.api -t droboticflow-api:local .", "docker:build:worker": "docker build -f Dockerfile.worker -t droboticflow-worker:local .", "docker:build:drosync-coordinator": "docker build -f Dockerfile.drosync-coordinator -t drosync-coordinator:local .", "docker:build:operator-runner": "docker build -f Dockerfile.operator-runner -t droboticflow-operator-runner:local .", "images:poc-kaniko": "./scripts/build-poc-images-kaniko.sh", "k8s:render": "./scripts/render-manifests.sh", "k8s:render:drosync-observability": "./scripts/render-drosync-observability.sh", "k8s:validate": "API_IMAGE=droboticflow-api:validate WORKER_IMAGE=droboticflow-worker:validate DROSYNC_COORDINATOR_IMAGE=drosync-coordinator:validate OPERATOR_RUNNER_IMAGE=droboticflow-operator-runner:validate ./scripts/render-manifests.sh | kubectl create --dry-run=client --validate=false -f -", "k8s:validate:drosync-observability": "./scripts/render-drosync-observability.sh | python3 -c 'import sys,yaml; docs=list(yaml.safe_load_all(sys.stdin)); assert len(docs) == 2'", "k8s:deploy": "./scripts/deploy-k8s.sh", "k8s:cleanup-jobs": "./scripts/cleanup-operator-jobs.sh", "acceptance:gpu": "./scripts/gpu-acceptance-test.sh", "acceptance:workflow": "./scripts/live-workflow-acceptance.sh", "reconcile:data": "./scripts/reconcile-system-data.sh", "acceptance:operators-preview": "node scripts/playwright-preview-operators-check.mjs", "acceptance:poc-strict": "./scripts/poc-strict-full-acceptance.sh", "acceptance:poc-operators": "./scripts/poc-operator-full-acceptance.sh", "acceptance:poc-import-verify": "python3 scripts/verify_poc_acceptance_import.py", "acceptance:poc-readiness": "./scripts/poc-acceptance-readiness.sh", "acceptance:poc-gpu-capacity": "./scripts/poc-gpu-capacity-acceptance.sh", "acceptance:poc-gpu-workflow": "./scripts/poc-gpu-workflow-blocked-acceptance.sh", "acceptance:poc-fixtures": "./scripts/configure-poc-acceptance-fixtures.sh", "acceptance:poc-fixtures:discover": "./scripts/poc-acceptance-fixture-discovery.sh", "acceptance:object-storage": "node scripts/object-storage-acceptance.mjs", "acceptance:drosync-poc": "python3 scripts/drosync-poc-acceptance.py", "acceptance:drosync-capacity": "python3 scripts/drosync-capacity-acceptance.py", "acceptance:xplatform": "python3 scripts/xplatform-live-acceptance.py", "acceptance:poc-operator-workflows": "./scripts/poc-operator-workflow-acceptance.sh", "hooks:check": "node scripts/check-git-hooks.mjs", "hooks:install": "node scripts/check-git-hooks.mjs --install", "dev:status": "node scripts/local/check-dev-stack.mjs", "dev:api:replica": "bash scripts/local/start-replica-api.sh", "test:browser:editing": "node tests/browser/run-editing-regression.mjs", "test:browser:review-permissions": "node tests/browser/review-authoring-permissions.mjs", "test:production:boot": "node tests/browser/run-production-boot.mjs", "test:browser:annotation-output": "node tests/browser/annotation-output-replica.mjs", "test:browser:dashboard": "node scripts/test-dashboard-presentation.mjs", "test:browser:slice-input": "node tests/browser/slice-edit-input.mjs", "test:annotation:persistence": "node --test tests/frontend/annotation-persistence.test.mjs tests/frontend/slice-edit-session.test.mjs tests/frontend/annotation-authoritative-mutation.test.mjs", "test:browser:annotation-persistence": "REWORK_BOUNDARY_BROWSER_TEST=1 go test ./internal/api -run '^TestReworkBoundaryBrowserReplica$' -count=1 -v", "test:annotation:pools": "node --test tests/frontend/annotation-project-loading.test.mjs tests/frontend/annotation-pool-loading.test.mjs tests/frontend/annotation-pool-pagination.test.mjs tests/frontend/review-pool-preview.test.mjs", "test:browser:annotation-pools": "ADMIN_POOL_BROWSER_TEST=1 go test ./internal/api -run '^TestAdminAnnotationPoolBrowserReplica$' -count=1 -v", "test:review:decisions": "node --test tests/frontend/review-decision-controller.test.mjs tests/frontend/review-decision-completion.test.mjs tests/frontend/rework-resubmission.test.mjs", "test:browser:review-decisions": "REVIEW_DECISION_BROWSER_TEST=1 go test ./internal/api -run '^TestReviewDecisionControllerBrowserReplica$' -count=1 -v && node tests/browser/review-decision-failure.mjs && node tests/browser/review-decision-start-race.mjs", "test:review:drafts": "node --test tests/frontend/review-draft-persistence.test.mjs tests/frontend/rework-verdict-keys.test.mjs tests/frontend/review-draft-autosave.test.mjs tests/frontend/acceptance-legacy-compat.test.mjs", "test:browser:review-drafts": "REVIEW_DRAFT_BROWSER_TEST=1 go test ./internal/api -run '^TestReviewDraftPersistenceBrowserReplica$' -count=1 -v", "verify:plan": "python3 scripts/verify-change.py --plan", "verify:quick": "python3 scripts/verify-change.py --mode quick", "verify:task": "python3 scripts/verify-change.py --mode task", "verify:integration": "python3 scripts/verify-change.py --mode integration", "test:verification": "python3 -m unittest discover -s tests/tooling -p test_verification.py", "predev": "npm run hooks:install", "predev:full": "npm run hooks:install", "predev:api": "npm run hooks:install", "predev:web": "npm run hooks:install", "predev:worker": "npm run hooks:install", "predev:api:replica": "npm run hooks:install" }, "dependencies": { "@tailwindcss/vite": "^4.1.14", "@types/dagre": "^0.7.54", "@vitejs/plugin-react": "^5.0.4", "clsx": "^2.1.1", "dagre": "^0.8.5", "lucide-react": "^0.546.0", "motion": "^12.23.24", "react": "^19.0.0", "react-dom": "^19.0.0", "react-router-dom": "^7.14.0", "reactflow": "^11.11.4", "recharts": "^3.8.1", "tailwind-merge": "^3.5.0", "three": "^0.185.1", "zod": "^4.1.11" }, "devDependencies": { "@types/node": "^22.14.0", "autoprefixer": "^10.4.21", "concurrently": "^10.0.3", "husky": "^9.1.7", "lint-staged": "^15.2.11", "playwright": "^1.59.1", "prettier": "^3.8.4", "tailwindcss": "^4.1.14", "typescript": "~5.8.2", "vite": "^8.0.16" } }