droboticflow/package.json
eust-w f1d71164ae 🐛 Render assistant Markdown and validated topology diagrams
Replace plain-text replies with react-markdown and GFM tables, lists,
code and safe links. Recognize complete topology fences, JSON fences and
standalone graph data in source order without promoting ordinary JSON.
Render escaped SVG elements with cycle-safe layouts, zoom, node details
and accessible data tables; show incomplete graphs as recoverable errors.

Preserve finish_reason=length, prevent truncated tool calls from executing,
and give concise topology replies a 4096-token budget. Tighten the prompt
to return bounded, closed diagrams rather than an exhaustive node dump.

Add parser, model-completion and isolated browser regression coverage.
Fix existing frontend type declarations exposed by the React types now
provided with react-markdown, without changing workflow execution.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-04 21:19:41 +08:00

113 lines
7.1 KiB
JSON

{
"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",
"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 && go build -o build/droctl ./cmd/droctl",
"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",
"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: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",
"generate:ops-catalog": "python3 scripts/generate_ops_catalog.py --write",
"generate:ops-catalog:check": "python3 scripts/generate_ops_catalog.py --check",
"droctl": "go run ./cmd/droctl",
"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",
"operators:releases:record": "python3 scripts/record_operator_releases.py",
"operators:digests:verify": "python3 scripts/verify_operator_image_digests.py",
"operators:live:sync": "python3 scripts/sync_live_builtin_operator_images.py",
"audit:moderate": "./scripts/npm-audit-retry.sh --audit-level=moderate",
"verify:local": "npm run lint && npm run format:check && npm run generate:ops-catalog: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"
},
"dependencies": {
"@noble/hashes": "2.0.1",
"@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-markdown": "10.1.0",
"react-router-dom": "^7.14.0",
"reactflow": "^11.11.4",
"recharts": "^3.8.1",
"remark-gfm": "4.0.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",
"playwright": "^1.59.1",
"prettier": "^3.8.4",
"tailwindcss": "^4.1.14",
"typescript": "~5.8.2",
"vite": "^8.0.16"
}
}