Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(phase0): stop the bleeding — repair seed, agents, compose, ws, ship doctor
Beenu Arorabd8e7d5cb477
diff --git a/README.md b/README.mdindex cf07ce06c..1604137a4 100644--- a/README.md+++ b/README.md@@ -289,7 +289,15 @@ First start takes ~60s while datastores warm up.pnpm seed:demo # generates cases, alerts, IOCs, attack paths, UEBA anomalies```-### 5 · Open+### 5 · Verify++```bash+pnpm aisoc:doctor # one-shot health check: ports, containers, demo data, API + WS+```++If anything is red, the doctor tells you exactly what to fix before you log in.++### 6 · Open| Surface | URL | Notes ||---|---|---|diff --git a/docker-compose.yml b/docker-compose.ymlindex dd43be830..3e60d72aa 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -351,7 +351,7 @@ services:redis:condition: service_healthyports:- - "8006:8003"+ - "8088:8003"profiles:- connectorsenvironment:@@ -398,6 +398,74 @@ services:- aisocrestart: unless-stopped+ ueba:+ build:+ context: ./services/ueba+ dockerfile: Dockerfile+ container_name: aisoc-ueba+ depends_on:+ postgres:+ condition: service_healthy+ redis:+ condition: service_healthy+ kafka:+ condition: service_healthy+ ports:+ - "8007:8004"+ environment:+ DATABASE_URL: postgresql+asyncpg://aisoc:aisoc_dev_secret@postgres:5432/aisoc+ REDIS_URL: redis://:redis_dev_secret@redis:6379/8+ KAFKA_BOOTSTRAP_SERVERS: kafka:29092+ CLICKHOUSE_URL: http://aisoc:clickhouse_dev_secret@clickhouse:8123/aisoc+ CORE_API_URL: http://api:8000+ networks:+ - aisoc+ restart: unless-stopped++ honeytokens:+ build:+ context: ./services/honeytokens+ dockerfile: Dockerfile+ container_name: aisoc-honeytokens+ depends_on:+ postgres:+ condition: service_healthy+ redis:+ condition: service_healthy+ kafka:+ condition: service_healthy+ ports:+ - "8008:8005"+ environment:+ DATABASE_URL: postgresql+asyncpg://aisoc:aisoc_dev_secret@postgres:5432/aisoc+ REDIS_URL: redis://:redis_dev_secret@redis:6379/9+ KAFKA_BOOTSTRAP_SERVERS: kafka:29092+ CORE_API_URL: http://api:8000+ networks:+ - aisoc+ restart: unless-stopped++ purple-team:+ build:+ context: ./services/purple-team+ dockerfile: Dockerfile+ container_name: aisoc-purple-team+ depends_on:+ postgres:+ condition: service_healthy+ redis:+ condition: service_healthy+ ports:+ - "8006:8006"+ environment:+ DATABASE_URL: postgresql+asyncpg://aisoc:aisoc_dev_secret@postgres:5432/aisoc+ REDIS_URL: redis://:redis_dev_secret@redis:6379/10+ CORE_API_URL: http://api:8000+ ATTCK_DATA_PATH: /app/data/enterprise-attack.json+ networks:+ - aisoc+ restart: unless-stopped+realtime:build:context: ./services/realtime@@ -431,7 +499,7 @@ services:- "3000:3000"environment:NEXT_PUBLIC_API_URL: http://localhost:8000- NEXT_PUBLIC_WS_URL: ws://localhost:4000+ NEXT_PUBLIC_WS_URL: ws://localhost:8086NODE_ENV: productionnetworks:- aisocdiff --git a/package.json b/package.jsonindex ba040b04c..12ca2c7d6 100644--- a/package.json+++ b/package.json@@ -19,18 +19,20 @@"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","infra:plan": "cd infra/terraform && terraform plan","infra:apply": "cd infra/terraform && terraform apply",- "docker:dev": "docker compose -f docker-compose.dev.yml up -d",- "docker:down": "docker compose -f docker-compose.dev.yml down",- "seed:demo": "docker compose -f docker-compose.dev.yml exec api python -m app.scripts.seed_demo",+ "docker:dev": "docker compose up -d",+ "docker:down": "docker compose down",+ "seed:demo": "docker compose exec api python -m app.scripts.seed_demo","demo:produce": "go run ./services/demo-producer","demo:produce:fast": "go run ./services/demo-producer --rate 8 --batch 10","detections:validate": "python3 scripts/validate_detections.py","marketplace:sync": "cp marketplace/index.json apps/web/public/marketplace/index.json && echo 'marketplace/index.json synced to apps/web/public/'",- "aisoc:lab": "bash scripts/lab.sh"+ "aisoc:lab": "bash scripts/lab.sh",+ "aisoc:doctor": "tsx scripts/aisoc-doctor.ts"},"devDependencies": {"@types/node": "^20.11.0","prettier": "^3.2.4",+ "tsx": "^4.21.0","turbo": "^1.12.4","typescript": "^5.3.3"},diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 311dc0720..333cd85b2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -14,6 +14,9 @@ importers:prettier:specifier: ^3.2.4version: 3.8.3+ tsx:+ specifier: ^4.21.0+ version: 4.21.0turbo:specifier: ^1.12.4version: 1.13.4@@ -135,7 +138,7 @@ importers:version: 8.5.13tailwindcss:specifier: ^3.4.1- version: 3.4.19+ version: 3.4.19([email protected])typescript:specifier: ^5.3.3version: 5.9.3@@ -146,11 +149,33 @@ importers:specifier: ^5.3.3version: 5.9.3+ packages/sdk-ts:+ dependencies:+ openapi-fetch:+ specifier: ^0.12.0+ version: 0.12.5+ devDependencies:+ '@types/node':+ specifier: ^20.0.0+ version: 20.19.39+ openapi-typescript:+ specifier: ^7.0.0+ version: 7.13.0([email protected])+ tsup:+ specifier: ^8.0.0+ version: 8.5.1([email protected])([email protected])+ typescript:+ specifier: ^5.4.0+ version: 5.9.3+ vitest:+ specifier: ^2.0.0+ version: 2.1.9(@types/[email protected])+packages/types:devDependencies:tsup:specifier: ^8.0.1- version: 8.5.1([email protected])+ version: 8.5.1([email protected])([email protected])typescript:specifier: ^5.3.3version: 5.9.3@@ -401,7 +426,6 @@ packages:'@babel/helper-validator-identifier': 7.28.5js-tokens: 4.0.0picocolors: 1.1.1- dev: false/@babel/[email protected]:resolution: {integrity: sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==}@@ -423,7 +447,7 @@ packages:'@babel/types': 7.29.0'@jridgewell/remapping': 2.3.5convert-source-map: 2.0.0- debug: 4.4.3+ debug: 4.4.3([email protected])gensync: 1.0.0-beta.2json5: 2.2.3semver: 6.3.1@@ -498,7 +522,7 @@ packages:'@babel/core': 7.29.0'@babel/helper-compilation-targets': 7.28.6'@babel/helper-plugin-utils': 7.28.6- debug: 4.4.3+ debug: 4.4.3([email protected])lodash.debounce: 4.0.8resolve: 1.22.12transitivePeerDependencies:@@ -602,7 +626,6 @@ packages:/@babel/[email protected]:resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}engines: {node: '>=6.9.0'}- dev: false/@babel/[email protected]:resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}@@ -1607,7 +1630,7 @@ packages:'@babel/parser': 7.29.3'@babel/template': 7.28.6'@babel/types': 7.29.0- debug: 4.4.3+ debug: 4.4.3([email protected])transitivePeerDependencies:- supports-colordev: false@@ -3140,6 +3163,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [aix]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==}engines: {node: '>=18'}@@ -3149,6 +3181,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [android]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==}engines: {node: '>=18'}@@ -3158,6 +3199,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [android]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==}engines: {node: '>=18'}@@ -3167,6 +3217,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [android]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==}engines: {node: '>=18'}@@ -3176,6 +3235,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [darwin]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==}engines: {node: '>=18'}@@ -3185,6 +3253,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [darwin]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==}engines: {node: '>=18'}@@ -3194,6 +3271,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [freebsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==}engines: {node: '>=18'}@@ -3203,6 +3289,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [freebsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==}engines: {node: '>=18'}@@ -3212,6 +3307,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==}engines: {node: '>=18'}@@ -3221,6 +3325,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==}engines: {node: '>=18'}@@ -3230,6 +3343,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==}engines: {node: '>=18'}@@ -3239,6 +3361,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==}+ engines: {node: '>=12'}+ cpu: [loong64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==}engines: {node: '>=18'}@@ -3248,6 +3379,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==}+ engines: {node: '>=12'}+ cpu: [mips64el]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==}engines: {node: '>=18'}@@ -3257,6 +3397,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==}engines: {node: '>=18'}@@ -3266,6 +3415,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==}+ engines: {node: '>=12'}+ cpu: [riscv64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==}engines: {node: '>=18'}@@ -3275,6 +3433,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==}+ engines: {node: '>=12'}+ cpu: [s390x]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==}engines: {node: '>=18'}@@ -3284,6 +3451,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [linux]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==}engines: {node: '>=18'}@@ -3302,6 +3478,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [netbsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==}engines: {node: '>=18'}@@ -3320,6 +3505,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [openbsd]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==}engines: {node: '>=18'}@@ -3338,6 +3532,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [sunos]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==}engines: {node: '>=18'}@@ -3347,6 +3550,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [win32]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==}engines: {node: '>=18'}@@ -3356,6 +3568,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [win32]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==}engines: {node: '>=18'}@@ -3365,6 +3586,15 @@ packages:dev: trueoptional: true+ /@esbuild/[email protected]:+ resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [win32]+ requiresBuild: true+ dev: true+ optional: true+/@esbuild/[email protected]:resolution: {integrity: sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==}engines: {node: '>=18'}@@ -3394,7 +3624,7 @@ packages:engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dependencies:ajv: 6.15.0- debug: 4.4.3+ debug: 4.4.3([email protected])espree: 9.6.1globals: 13.24.0ignore: 5.3.2@@ -3425,7 +3655,7 @@ packages:deprecated: Use @eslint/config-array insteaddependencies:'@humanwhocodes/object-schema': 2.0.3- debug: 4.4.3+ debug: 4.4.3([email protected])minimatch: 3.1.5transitivePeerDependencies:- supports-color@@ -4261,6 +4491,36 @@ packages:react: 18.3.1dev: false+ /@redocly/[email protected]:+ resolution: {integrity: sha512-io1JpnwtIcvojV7QKDUSIuMN/ikdOUd1ReEnUnMKGfDVridQZ31J0MmIuqwuRjWDZfmvr+Q0MqCcfHM2gTivOg==}+ dependencies:+ fast-deep-equal: 3.1.3+ json-schema-traverse: 1.0.0+ require-from-string: 2.0.2+ uri-js-replace: 1.0.1+ dev: true++ /@redocly/[email protected]:+ resolution: {integrity: sha512-gAy93Ddo01Z3bHuVdPWfCwzgfaYgMdaZPcfL7JZ7hWJoK9V0lXDbigTWkhiPFAaLWzbOJ+kbUQG1+XwIm0KRGQ==}+ dev: true++ /@redocly/[email protected]([email protected]):+ resolution: {integrity: sha512-y+xFx+Zz54Xhr8jUdnLENYnt7Y7GEDL6Q03ga7rTtX8DVwefX9H+hQEPgJp1nda7vdH+wJ9/HBVvyfBuW9x6rA==}+ engines: {node: '>=18.17.0', npm: '>=9.5.0'}+ dependencies:+ '@redocly/ajv': 8.11.2+ '@redocly/config': 0.22.0+ colorette: 1.4.0+ https-proxy-agent: 7.0.6([email protected])+ js-levenshtein: 1.1.6+ js-yaml: 4.1.1+ minimatch: 5.1.9+ pluralize: 8.0.0+ yaml-ast-parser: 0.0.43+ transitivePeerDependencies:+ - supports-color+ dev: true+/@rollup/[email protected]:resolution: {integrity: sha512-dnlp69efPPg6Uaw2dVqzWRfAWRnYVb1XJ8CyyhIbZeaq4CA5/mLeZ1IEt9QqQxmbdvagjLIm2ZL8BxXv5lH4Yw==}cpu: [arm]@@ -5055,7 +5315,7 @@ packages:'@typescript-eslint/types': 6.21.0'@typescript-eslint/typescript-estree': 6.21.0([email protected])'@typescript-eslint/visitor-keys': 6.21.0- debug: 4.4.3+ debug: 4.4.3([email protected])eslint: 8.57.1typescript: 5.9.3transitivePeerDependencies:@@ -5086,7 +5346,7 @@ packages:dependencies:'@typescript-eslint/types': 6.21.0'@typescript-eslint/visitor-keys': 6.21.0- debug: 4.4.3+ debug: 4.4.3([email protected])globby: 11.1.0is-glob: 4.0.3minimatch: 9.0.3@@ -5262,6 +5522,67 @@ packages:dev: trueoptional: true+ /@vitest/[email protected]:+ resolution: {integrity: sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==}+ dependencies:+ '@vitest/spy': 2.1.9+ '@vitest/utils': 2.1.9+ chai: 5.3.3+ tinyrainbow: 1.2.0+ dev: true++ /@vitest/[email protected]([email protected]):+ resolution: {integrity: sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==}+ peerDependencies:+ msw: ^2.4.9+ vite: ^5.0.0+ peerDependenciesMeta:+ msw:+ optional: true+ vite:+ optional: true+ dependencies:+ '@vitest/spy': 2.1.9+ estree-walker: 3.0.3+ magic-string: 0.30.21+ vite: 5.4.21(@types/[email protected])+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==}+ dependencies:+ tinyrainbow: 1.2.0+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==}+ dependencies:+ '@vitest/utils': 2.1.9+ pathe: 1.1.2+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==}+ dependencies:+ '@vitest/pretty-format': 2.1.9+ magic-string: 0.30.21+ pathe: 1.1.2+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==}+ dependencies:+ tinyspy: 3.0.2+ dev: true++ /@vitest/[email protected]:+ resolution: {integrity: sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==}+ dependencies:+ '@vitest/pretty-format': 2.1.9+ loupe: 3.2.1+ tinyrainbow: 1.2.0+ dev: true+/@webassemblyjs/[email protected]:resolution: {integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==}dependencies:@@ -5429,6 +5750,11 @@ packages:engines: {node: '>= 10.0.0'}dev: false+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}+ engines: {node: '>= 14'}+ dev: true+resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}engines: {node: '>=8'}@@ -5514,6 +5840,11 @@ packages:string-width: 4.2.3dev: false+ resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==}+ engines: {node: '>=6'}+ dev: true+resolution: {integrity: sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==}engines: {'0': node >= 0.8.0}@@ -5686,6 +6017,11 @@ packages:tslib: 2.8.1dev: false+ resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}+ engines: {node: '>=12'}+ dev: true+resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}dev: true@@ -6037,6 +6373,17 @@ packages:resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}+ resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}+ engines: {node: '>=18'}+ dependencies:+ assertion-error: 2.0.1+ check-error: 2.1.3+ deep-eql: 5.0.2+ loupe: 3.2.1+ pathval: 2.0.1+ dev: true+resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}engines: {node: '>=10'}@@ -6049,6 +6396,10 @@ packages:engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}dev: false+ resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==}+ dev: true+resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==}engines: {node: '>=10'}@@ -6066,6 +6417,11 @@ packages:resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}+ resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==}+ engines: {node: '>= 16'}+ dev: true+resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}dependencies:@@ -6196,6 +6552,10 @@ packages:resolution: {integrity: sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==}dev: false+ resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==}+ dev: true+resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}dev: false@@ -6818,7 +7178,7 @@ packages:ms: 2.1.3dev: trueresolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}engines: {node: '>=6.0'}peerDependencies:@@ -6828,6 +7188,7 @@ packages:optional: truedependencies:ms: 2.1.3+ supports-color: 10.2.2resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==}@@ -6845,6 +7206,11 @@ packages:mimic-response: 3.1.0dev: false+ resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}+ engines: {node: '>=6'}+ dev: true+resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}engines: {node: '>=4.0.0'}@@ -6936,7 +7302,7 @@ packages:hasBin: truedependencies:address: 1.2.2- debug: 4.4.3+ debug: 4.4.3([email protected])transitivePeerDependencies:- supports-colordev: false@@ -7227,6 +7593,10 @@ packages:math-intrinsics: 1.1.0dev: true+ resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}+ dev: true+resolution: {integrity: sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==}@@ -7278,6 +7648,37 @@ packages:esast-util-from-estree: 2.0.0vfile-message: 4.0.3+ resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==}+ engines: {node: '>=12'}+ hasBin: true+ requiresBuild: true+ optionalDependencies:+ '@esbuild/aix-ppc64': 0.21.5+ '@esbuild/android-arm': 0.21.5+ '@esbuild/android-arm64': 0.21.5+ '@esbuild/android-x64': 0.21.5+ '@esbuild/darwin-arm64': 0.21.5+ '@esbuild/darwin-x64': 0.21.5+ '@esbuild/freebsd-arm64': 0.21.5+ '@esbuild/freebsd-x64': 0.21.5+ '@esbuild/linux-arm': 0.21.5+ '@esbuild/linux-arm64': 0.21.5+ '@esbuild/linux-ia32': 0.21.5+ '@esbuild/linux-loong64': 0.21.5+ '@esbuild/linux-mips64el': 0.21.5+ '@esbuild/linux-ppc64': 0.21.5+ '@esbuild/linux-riscv64': 0.21.5+ '@esbuild/linux-s390x': 0.21.5+ '@esbuild/linux-x64': 0.21.5+ '@esbuild/netbsd-x64': 0.21.5+ '@esbuild/openbsd-x64': 0.21.5+ '@esbuild/sunos-x64': 0.21.5+ '@esbuild/win32-arm64': 0.21.5+ '@esbuild/win32-ia32': 0.21.5+ '@esbuild/win32-x64': 0.21.5+ dev: true+resolution: {integrity: sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==}engines: {node: '>=18'}@@ -7384,7 +7785,7 @@ packages:optional: truedependencies:'@nolyfill/is-core-module': 1.0.39- debug: 4.4.3+ debug: 4.4.3([email protected])eslint: 8.57.1eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected])([email protected])([email protected])get-tsconfig: 4.14.0@@ -7560,7 +7961,7 @@ packages:ajv: 6.15.0chalk: 4.1.2cross-spawn: 7.0.6- debug: 4.4.3+ debug: 4.4.3([email protected])doctrine: 3.0.0escape-string-regexp: 4.0.0eslint-scope: 7.2.2@@ -7718,6 +8119,11 @@ packages:strip-final-newline: 2.0.0dev: false+ resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}+ engines: {node: '>=12.0.0'}+ dev: true+resolution: {integrity: sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==}engines: {node: '>= 0.10.0'}@@ -8579,6 +8985,16 @@ packages:resolve-alpn: 1.2.1dev: false+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}+ engines: {node: '>= 14'}+ dependencies:+ agent-base: 7.1.4+ debug: 4.4.3([email protected])+ transitivePeerDependencies:+ - supports-color+ dev: true+resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}engines: {node: '>=10.17.0'}@@ -8636,6 +9052,11 @@ packages:engines: {node: '>=8'}dev: false+ resolution: {integrity: sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==}+ engines: {node: '>=18'}+ dev: true+resolution: {integrity: sha512-uyH0zfr1erU1OohLk0fT4Rrb94AOhguWNOcD9uGrSpRvNB+6gZXUoJX5J0NtvzBO10YZ9PgvA4NFgt+fYg8ojw==}engines: {node: '>=12'}@@ -9107,6 +9528,11 @@ packages:engines: {node: '>=10'}dev: true+ resolution: {integrity: sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==}+ engines: {node: '>=0.10.0'}+ dev: true+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -9302,6 +9728,10 @@ packages:dependencies:js-tokens: 4.0.0+ resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}+ dev: true+resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}dependencies:@@ -9950,7 +10380,7 @@ packages:resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==}dependencies:'@types/debug': 4.1.13- debug: 4.4.3+ debug: 4.4.3([email protected])decode-named-character-reference: 1.3.0devlop: 1.1.0micromark-core-commonmark: 2.0.3@@ -10052,6 +10482,13 @@ packages:dependencies:brace-expansion: 1.1.14+ resolution: {integrity: sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==}+ engines: {node: '>=10'}+ dependencies:+ brace-expansion: 2.1.0+ dev: true+resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}engines: {node: '>=16 || 14 >=14.17'}@@ -10378,6 +10815,31 @@ packages:is-wsl: 2.2.0dev: false+ resolution: {integrity: sha512-FnAMWLt0MNL6ComcL4q/YbB1tUgyz5YnYtwA1+zlJ5xcucmK5RlWsgH1ynxmEeu8fGJkYjm8armU/HVpORc9lw==}+ dependencies:+ openapi-typescript-helpers: 0.0.15+ dev: false++ resolution: {integrity: sha512-opyTPaunsklCBpTK8JGef6mfPhLSnyy5a0IN9vKtx3+4aExf+KxEqYwIy3hqkedXIB97u357uLMJsOnm3GVjsw==}+ dev: false++ resolution: {integrity: sha512-EFP392gcqXS7ntPvbhBzbF8TyBA+baIYEm791Hy5YkjDYKTnk/Tn5OQeKm5BIZvJihpp8Zzr4hzx0Irde1LNGQ==}+ hasBin: true+ peerDependencies:+ typescript: ^5.x+ dependencies:+ '@redocly/openapi-core': 1.34.14([email protected])+ ansi-colors: 4.1.3+ change-case: 5.4.4+ parse-json: 8.3.0+ supports-color: 10.2.2+ typescript: 5.9.3+ yargs-parser: 21.1.1+ dev: true+resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==}hasBin: true@@ -10517,6 +10979,15 @@ packages:lines-and-columns: 1.2.4dev: false+ resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==}+ engines: {node: '>=18'}+ dependencies:+ '@babel/code-frame': 7.29.0+ index-to-position: 1.2.0+ type-fest: 4.41.0+ dev: true+resolution: {integrity: sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==}dev: false@@ -10598,10 +11069,19 @@ packages:resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}+ resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}+ dev: true+resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}dev: true+ resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}+ engines: {node: '>= 14.16'}+ dev: true+resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}@@ -10651,6 +11131,11 @@ packages:tslib: 2.8.1dev: false+ resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}+ engines: {node: '>=4'}+ dev: true+resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}engines: {node: '>= 0.4'}@@ -10939,7 +11424,7 @@ packages:postcss: 8.5.13dev: falseresolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}engines: {node: '>= 18'}peerDependencies:@@ -10960,6 +11445,7 @@ packages:jiti: 1.21.7lilconfig: 3.1.3postcss: 8.5.13+ tsx: 4.21.0dev: true@@ -12511,6 +12997,10 @@ packages:side-channel-map: 1.0.1side-channel-weakmap: 1.0.2+ resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}+ dev: true+resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}dev: false@@ -12604,7 +13094,7 @@ packages:resolution: {integrity: sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==}dependencies:- debug: 4.4.3+ debug: 4.4.3([email protected])detect-node: 2.1.0hpack.js: 2.1.6obuf: 1.1.2@@ -12618,7 +13108,7 @@ packages:resolution: {integrity: sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==}engines: {node: '>=6.0.0'}dependencies:- debug: 4.4.3+ debug: 4.4.3([email protected])handle-thing: 2.0.1http-deceiver: 1.2.7select-hose: 2.0.0@@ -12640,6 +13130,10 @@ packages:resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==}dev: true+ resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}+ dev: true+resolution: {integrity: sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==}dev: false@@ -12656,7 +13150,6 @@ packages:resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}- dev: falseresolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}@@ -12869,6 +13362,10 @@ packages:ts-interface-checker: 0.1.13dev: true+ resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}engines: {node: '>=8'}@@ -12913,7 +13410,7 @@ packages:use-sync-external-store: 1.6.0([email protected])dev: falseresolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==}engines: {node: '>=14.0.0'}hasBin: true@@ -12935,7 +13432,7 @@ packages:postcss: 8.5.13postcss-import: 15.1.0([email protected])postcss-js: 4.1.0([email protected])- postcss-load-config: 6.0.1([email protected])([email protected])postcss-nested: 6.2.0([email protected])postcss-selector-parser: 6.1.2resolve: 1.22.12@@ -13019,6 +13516,10 @@ packages:resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==}dev: false+ resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}+ dev: true+resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}dev: true@@ -13034,7 +13535,16 @@ packages:resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}engines: {node: ^18.0.0 || >=20.0.0}- dev: false++ resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==}+ engines: {node: '>=14.0.0'}+ dev: true++ resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==}+ engines: {node: '>=14.0.0'}+ dev: trueresolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}@@ -13101,7 +13611,7 @@ packages:resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}resolution: {integrity: sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==}engines: {node: '>=18'}hasBin: true@@ -13124,12 +13634,12 @@ packages:cac: 6.7.14chokidar: 4.0.3consola: 3.4.2- debug: 4.4.3+ debug: 4.4.3([email protected])esbuild: 0.27.7fix-dts-default-cjs-exports: 1.0.1joycon: 3.1.1picocolors: 1.1.1- postcss-load-config: 6.0.1([email protected])([email protected])resolve-from: 5.0.0rollup: 4.60.2source-map: 0.7.6@@ -13145,6 +13655,17 @@ packages:- yamldev: true+ resolution: {integrity: sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==}+ engines: {node: '>=18.0.0'}+ hasBin: true+ dependencies:+ esbuild: 0.27.7+ get-tsconfig: 4.14.0+ optionalDependencies:+ fsevents: 2.3.3+ dev: true+resolution: {integrity: sha512-axr3IdNuVIxnaK5XGEUFTu3YmAQ6lllgrvqfEoR16g/HGnYY/6We4oWENtAnzK6/LpJ2ur9PAb80RBt7/U4ugw==}engines: {node: '>= 6.0.0'}@@ -13234,6 +13755,11 @@ packages:engines: {node: '>=12.20'}dev: false+ resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==}+ engines: {node: '>=16'}+ dev: true+resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}engines: {node: '>= 0.6'}@@ -13461,6 +13987,10 @@ packages:xdg-basedir: 5.1.0dev: false+ resolution: {integrity: sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==}+ dev: true+resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}dependencies:@@ -13591,6 +14121,125 @@ packages:d3-timer: 3.0.1dev: false+ /[email protected](@types/[email protected]):+ resolution: {integrity: sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==}+ engines: {node: ^18.0.0 || >=20.0.0}+ hasBin: true+ dependencies:+ cac: 6.7.14+ debug: 4.4.3([email protected])+ es-module-lexer: 1.7.0+ pathe: 1.1.2+ vite: 5.4.21(@types/[email protected])+ transitivePeerDependencies:+ - '@types/node'+ - less+ - lightningcss+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ dev: true++ /[email protected](@types/[email protected]):+ resolution: {integrity: sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==}+ engines: {node: ^18.0.0 || >=20.0.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^18.0.0 || >=20.0.0+ less: '*'+ lightningcss: ^1.21.0+ sass: '*'+ sass-embedded: '*'+ stylus: '*'+ sugarss: '*'+ terser: ^5.4.0+ peerDependenciesMeta:+ '@types/node':+ optional: true+ less:+ optional: true+ lightningcss:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ dependencies:+ '@types/node': 20.19.39+ esbuild: 0.21.5+ postcss: 8.5.13+ rollup: 4.60.2+ optionalDependencies:+ fsevents: 2.3.3+ dev: true++ /[email protected](@types/[email protected]):+ resolution: {integrity: sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==}+ engines: {node: ^18.0.0 || >=20.0.0}+ hasBin: true+ peerDependencies:+ '@edge-runtime/vm': '*'+ '@types/node': ^18.0.0 || >=20.0.0+ '@vitest/browser': 2.1.9+ '@vitest/ui': 2.1.9+ happy-dom: '*'+ jsdom: '*'+ peerDependenciesMeta:+ '@edge-runtime/vm':+ optional: true+ '@types/node':+ optional: true+ '@vitest/browser':+ optional: true+ '@vitest/ui':+ optional: true+ happy-dom:+ optional: true+ jsdom:+ optional: true+ dependencies:+ '@types/node': 20.19.39+ '@vitest/expect': 2.1.9+ '@vitest/mocker': 2.1.9([email protected])+ '@vitest/pretty-format': 2.1.9+ '@vitest/runner': 2.1.9+ '@vitest/snapshot': 2.1.9+ '@vitest/spy': 2.1.9+ '@vitest/utils': 2.1.9+ chai: 5.3.3+ debug: 4.4.3([email protected])+ expect-type: 1.3.0+ magic-string: 0.30.21+ pathe: 1.1.2+ std-env: 3.10.0+ tinybench: 2.9.0+ tinyexec: 0.3.2+ tinypool: 1.1.1+ tinyrainbow: 1.2.0+ vite: 5.4.21(@types/[email protected])+ vite-node: 2.1.9(@types/[email protected])+ why-is-node-running: 2.3.0+ transitivePeerDependencies:+ - less+ - lightningcss+ - msw+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - supports-color+ - terser+ dev: true+resolution: {integrity: sha512-Zn5uXdcFNIA1+1Ei5McRd+iRzfhENPCe7LeABkJtNulSxjma+l7ltNx55BWZkRlwRnpOgHqxnjyaDgJnNXnqzg==}engines: {node: '>=10.13.0'}@@ -13853,6 +14502,15 @@ packages:dependencies:isexe: 2.0.0+ resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}+ engines: {node: '>=8'}+ hasBin: true+ dependencies:+ siginfo: 2.0.0+ stackback: 0.0.2+ dev: true+resolution: {integrity: sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==}engines: {node: '>=12'}@@ -13947,6 +14605,15 @@ packages:resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}dev: false+ resolution: {integrity: sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==}+ dev: true++ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}+ engines: {node: '>=12'}+ dev: true+resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}engines: {node: '>=10'}diff --git a/scripts/aisoc-doctor.ts b/scripts/aisoc-doctor.tsnew file mode 100644index 000000000..618e6ef07--- /dev/null+++ b/scripts/aisoc-doctor.ts@@ -0,0 +1,288 @@+#!/usr/bin/env tsx+/**+ * aisoc:doctor — health-check for an AiSOC dev environment.+ *+ * Verifies:+ * 1. Required ports are free or owned by the expected service+ * 2. Required env vars (.env) are present+ * 3. Docker compose containers are healthy+ * 4. Demo data is seeded (alerts > 0)+ * 5. WebSocket realtime is reachable+ *+ * Usage: pnpm aisoc:doctor+ *+ * Exit code 0 = OK, 1 = at least one FAIL.+ */+import { execSync } from "node:child_process";+import { existsSync, readFileSync } from "node:fs";+import { createConnection } from "node:net";+import { join } from "node:path";++type Status = "OK" | "WARN" | "FAIL";++interface Check {+ name: string;+ status: Status;+ detail?: string;+}++const ROOT = join(__dirname, "..");+const checks: Check[] = [];++const c = {+ green: (s: string) => `\x1b[32m${s}\x1b[0m`,+ yellow: (s: string) => `\x1b[33m${s}\x1b[0m`,+ red: (s: string) => `\x1b[31m${s}\x1b[0m`,+ bold: (s: string) => `\x1b[1m${s}\x1b[0m`,+ dim: (s: string) => `\x1b[2m${s}\x1b[0m`,+};++function statusIcon(s: Status): string {+ if (s === "OK") return c.green("✓ PASS");+ if (s === "WARN") return c.yellow("⚠ WARN");+ return c.red("✗ FAIL");+}++function record(name: string, status: Status, detail?: string) {+ checks.push({ name, status, detail });+ console.log(` ${statusIcon(status)} ${name}${detail ? c.dim(` — ${detail}`) : ""}`);+}++function run(cmd: string): string {+ return execSync(cmd, { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim();+}++function tryRun(cmd: string): string | null {+ try {+ return run(cmd);+ } catch {+ return null;+ }+}++async function probePort(host: string, port: number, timeoutMs = 1500): Promise<boolean> {+ return new Promise((resolve) => {+ const sock = createConnection({ host, port });+ const timer = setTimeout(() => {+ sock.destroy();+ resolve(false);+ }, timeoutMs);+ sock.once("connect", () => {+ clearTimeout(timer);+ sock.end();+ resolve(true);+ });+ sock.once("error", () => {+ clearTimeout(timer);+ resolve(false);+ });+ });+}++async function fetchJson(url: string, timeoutMs = 5000): Promise<any | null> {+ const ctrl = new AbortController();+ const t = setTimeout(() => ctrl.abort(), timeoutMs);+ try {+ const res = await fetch(url, { signal: ctrl.signal });+ if (!res.ok) return null;+ return await res.json();+ } catch {+ return null;+ } finally {+ clearTimeout(t);+ }+}++// ---------- Section 1: Env file ----------+async function checkEnv() {+ console.log(c.bold("\nEnvironment"));+ const envPath = join(ROOT, ".env");+ if (!existsSync(envPath)) {+ record(".env file present", "WARN", "no .env found; copy from .env.example for non-default secrets");+ return;+ }+ const env = readFileSync(envPath, "utf8");+ const requiredKeys = [+ "DATABASE_URL",+ "REDIS_URL",+ "KAFKA_BOOTSTRAP_SERVERS",+ ];+ for (const k of requiredKeys) {+ const re = new RegExp(`^${k}\\s*=`, "m");+ record(+ `env var ${k}`,+ re.test(env) ? "OK" : "WARN",+ re.test(env) ? undefined : "missing from .env"+ );+ }+}++// ---------- Section 2: Docker compose ----------+async function checkDocker() {+ console.log(c.bold("\nDocker"));+ const docker = tryRun("docker --version");+ if (!docker) {+ record("docker available", "FAIL", "docker is not installed or not on PATH");+ return;+ }+ record("docker available", "OK", docker);++ const compose = tryRun("docker compose version");+ if (!compose) {+ record("docker compose v2", "FAIL", "docker compose plugin not installed");+ return;+ }+ record("docker compose v2", "OK", compose);++ const ps = tryRun("docker compose ps --format json");+ if (!ps) {+ record(+ "containers running",+ "WARN",+ 'no compose stack running — run `docker compose up -d`'+ );+ return;+ }++ // docker compose ps --format json prints ndjson on Compose v2+ const lines = ps.split("\n").filter((l) => l.trim());+ const services = lines+ .map((l) => {+ try {+ return JSON.parse(l);+ } catch {+ return null;+ }+ })+ .filter(Boolean);++ if (services.length === 0) {+ record("containers running", "WARN", "no services up");+ return;+ }++ const expectedServices = [+ "aisoc-api",+ "aisoc-agents",+ "aisoc-web",+ "aisoc-postgres",+ "aisoc-redis",+ "aisoc-realtime",+ ];+ for (const svc of expectedServices) {+ const found = services.find((s: any) => s.Name === svc);+ if (!found) {+ record(`container ${svc}`, "FAIL", "not running");+ continue;+ }+ const healthy =+ found.Health === "healthy" ||+ found.Health === "" /* no healthcheck */ ||+ found.State === "running";+ record(+ `container ${svc}`,+ healthy ? "OK" : "FAIL",+ `state=${found.State}${found.Health ? ` health=${found.Health}` : ""}`+ );+ }+}++// ---------- Section 3: Ports ----------+async function checkPorts() {+ console.log(c.bold("\nPorts"));+ const ports: Array<[string, number]> = [+ ["api", 8000],+ ["agents", 8001],+ ["web", 3000],+ ["postgres", 5432],+ ["redis", 6379],+ ["realtime ws", 8086],+ ];+ for (const [label, port] of ports) {+ const open = await probePort("127.0.0.1", port);+ record(`${label} :${port}`, open ? "OK" : "FAIL", open ? "reachable" : "no listener");+ }+}++// ---------- Section 4: API health ----------+async function checkApi() {+ console.log(c.bold("\nAPI health"));+ const health = await fetchJson("http://localhost:8000/health");+ if (!health) {+ record("GET /health", "FAIL", "no response from api");+ return;+ }+ record("GET /health", "OK", JSON.stringify(health).slice(0, 80));++ // Demo data: at least one alert+ const alerts = await fetchJson("http://localhost:8000/v1/alerts?limit=1");+ if (!alerts) {+ record(+ "demo data seeded",+ "WARN",+ "could not query alerts (auth required?) — try `pnpm seed:demo`"+ );+ return;+ }+ const count = Array.isArray(alerts)+ ? alerts.length+ : Array.isArray(alerts?.items)+ ? alerts.items.length+ : 0;+ record(+ "demo data seeded",+ count > 0 ? "OK" : "WARN",+ count > 0 ? `${count} alert(s) found` : "no alerts — run `pnpm seed:demo`"+ );+}++// ---------- Section 5: Web reachable ----------+async function checkWeb() {+ console.log(c.bold("\nWeb console"));+ try {+ const res = await fetch("http://localhost:3000", { signal: AbortSignal.timeout(3000) });+ record("GET /", res.ok ? "OK" : "FAIL", `status ${res.status}`);+ } catch (e: any) {+ record("GET /", "FAIL", e?.message ?? "no response");+ }+}++// ---------- Run ----------+async function main() {+ console.log(c.bold("AiSOC Doctor") + c.dim(" — pre-flight check"));+ await checkEnv();+ await checkDocker();+ await checkPorts();+ await checkApi();+ await checkWeb();++ // Summary+ const fails = checks.filter((c) => c.status === "FAIL").length;+ const warns = checks.filter((c) => c.status === "WARN").length;+ const oks = checks.filter((c) => c.status === "OK").length;++ console.log(c.bold("\nSummary"));+ console.log(+ ` ${c.green(`${oks} pass`)} ${warns > 0 ? c.yellow(`${warns} warn`) : `${warns} warn`} ${fails > 0 ? c.red(`${fails} fail`) : `${fails} fail`}`+ );++ if (fails > 0) {+ console.log(+ c.red("\n ✗ AiSOC is not healthy. ") ++ "See the failing checks above. " ++ c.dim("Quickstart: https://github.com/cybeleinc/AiSOC#quickstart")+ );+ process.exit(1);+ }+ if (warns > 0) {+ console.log(c.yellow("\n ⚠ AiSOC is up but missing demo data or non-critical config."));+ process.exit(0);+ }+ console.log(c.green("\n ✓ AiSOC is healthy and ready to investigate."));+ process.exit(0);+}++main().catch((e) => {+ console.error(c.red("doctor crashed:"), e);+ process.exit(2);+});diff --git a/services/agents/app/investigator/orchestrator.py b/services/agents/app/investigator/orchestrator.pyindex 7a6648ff6..6009dbb96 100644--- a/services/agents/app/investigator/orchestrator.py+++ b/services/agents/app/investigator/orchestrator.py@@ -189,7 +189,9 @@ class InvestigatorOrchestrator:"summary": entry.summary,"node": node_name,"case_id": case_id,- "ts": entry.ts.isoformat() if hasattr(entry.ts, "isoformat") else str(entry.ts),+ "ts": entry.timestamp.isoformat()+ if hasattr(entry.timestamp, "isoformat")+ else str(entry.timestamp),}# Emit the final "done" event with the complete state payloaddiff --git a/services/agents/app/investigator/state.py b/services/agents/app/investigator/state.pyindex a573542a0..7c95d81b1 100644--- a/services/agents/app/investigator/state.py+++ b/services/agents/app/investigator/state.py@@ -19,8 +19,14 @@ class StepKind(str, Enum):FORENSIC = "forensic"RESPONDER = "responder"REPORTER = "reporter"+ REPORT = "report"+ ERROR = "error"TOOL_CALL = "tool_call"LLM_CALL = "llm_call"+ LLM_PROMPT = "llm_prompt"+ LLM_RESPONSE = "llm_response"+ EVIDENCE_CITED = "evidence_cited"+ DECISION_REASON = "decision_reason"class AuditEntry(BaseModel):