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
chore(deps-dev): bump vitest from 2.1.9 to 4.1.6 (#179)
dependabot[bot]be1545e6021b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 37b6adbb4..c4b29752b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,82 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Bump `vitest` 2.1.9 → 4.1.6 across the workspace++Dev-only dependency upgrade (PR [#179](https://github.com/beenuar/AiSOC/pull/179))+across `apps/web`, `packages/sdk-ts`, and `services/mcp`. Vitest v3 and v4+introduced two breaking changes that surfaced in our suite:++* **`vitest/config` no longer exports `UserConfig`.** `apps/web/vitest.config.ts`+ used `import('vitest/config').UserConfig['plugins']` to bridge the vitest@2+ (vite@5 types) ↔ `@vitejs/plugin-react@4` (vite@7 types) version mismatch. In+ vitest@4 both packages target vite@7, so the bridging cast is gone and+ `react()` is consumed directly.+* **`global` is no longer in the default DOM lib in `@vitest/runner`'s typing.**+ `packages/sdk-ts/src/client.test.ts` referenced the Node global namespace via+ `(global.fetch as ...)`; it now uses `globalThis.fetch`, which is the+ cross-runtime idiom and was already what every other test in the SDK suite+ used. No runtime behaviour change — `global === globalThis` in Node.++Verified locally: SDK 9/9 tests pass, web 349/349 tests pass, web lint stays at+0 errors (warning count unchanged from PR #193's baseline). No production code+touched, no behavioural change to the published `@aisoc/sdk` package or to the+shipped web bundle.++### Wire `DetectAgent.process` to `FusionEngine` via cross-service HTTP (Issue #190)++Closes [#190](https://github.com/beenuar/AiSOC/issues/190).++Closes the missing edge in the four-agent façade: `DetectAgent` previously+self-described as the public detection surface but had no synchronous entry+point into the fusion pipeline — callers either had to enqueue onto Kafka and+wait, or reach into `services/fusion` internals directly. This change adds the+last mile so a raw alert from any caller (LLM tool calls, ad-hoc CLI, the API+gateway) runs through the same `FusionEngine` instance that backs the Kafka+consumer path — dedup, correlation, ML scoring, confidence labelling, and RBA+all apply identically regardless of how the alert arrived.++Three additive pieces, no behavioural changes to existing paths:++* **`POST /process` on the fusion service**+ (`services/fusion/app/api/router.py`). Accepts a `RawAlert`, returns a+ `FusedAlert`, and is wired to the already-running `FusionWorker`'s engine+ instance via the module-level `_worker_ref` the worker registers on startup.+ Returns `503` when the worker hasn't finished booting (Kafka consumer not+ yet attached) so callers fail loudly instead of getting a half-initialised+ pipeline. Lives at the root path — the router is mounted with no prefix in+ `services/fusion/app/main.py`.+* **`services/agents/app/tools/fusion.py`** — thin async HTTP client used by+ the agents service. Posts to `{FUSION_SERVICE_URL}/process` (defaults to+ `http://fusion:8003/process` inside the docker-compose network), forwards+ an optional bearer token, and **raises** on any non-2xx or transport error.+ This is a deliberate contrast with `app.tools.graph`, which degrades+ gracefully for investigation queries: fusion is the primary detection+ plane, so a silent fallback here would lose alerts.+* **`DetectAgent.process(raw_alert, *, api_token=None)`**+ (`services/agents/app/agents/__init__.py`). Classmethod delegate over the+ HTTP client — keeps `DetectAgent` import-light (no engine instantiation in+ the agents process) and preserves the existing back-compat aliases.++Tests lock the contract on both sides. `services/fusion/tests/test_process_endpoint.py`+exercises the endpoint against an `ASGITransport` + `AsyncClient`: novel+alerts return a `NEW_INCIDENT` envelope, replays return `DUPLICATE`, an+unwired worker yields `503`, a worker without an engine yields `503`,+malformed and bad-severity payloads return `422`, and a regression guard+asserts the endpoint and worker share the same `FusionEngine` instance.+`services/agents/tests/test_fusion_client.py` uses `respx` to lock the+client wiring: it must post to `/process` (not `/api/fusion/process` — that+mismatch was caught and fixed during initial wiring), the Authorization+header is set if and only if a token is supplied, `httpx.HTTPStatusError`+propagates on 503/422, and `httpx.HTTPError` propagates on transport+failures. A final trio of tests pins `DetectAgent.process` as a faithful+delegate to the client (args pass through unchanged, errors propagate, no+swallowed exceptions).++No feature flag and no env gate: the wiring is purely additive — no existing+caller of the fusion service or the agents service changes shape, and the new+endpoint/method only fire when something explicitly invokes them.+### Cross-tenant RBAC regression suite (F013, security)Closes [#159](https://github.com/beenuar/AiSOC/issues/159).@@ -24,9 +100,9 @@ contract is testable in milliseconds and survives ORM churn:read/write/queue/claim path on `/alerts` binds `tenant_id` into thecompiled SQL or forwards it to the service layer(`build_queue` / `claim_alert`).-- `services/api/tests/test_llm_credentials_tenant_isolation.py` — BYOK- credential GET/PUT/DELETE scope by `tenant_id`, new rows bind the- caller's tenant, and `emit_audit` is invoked with the caller's+- `services/api/tests/test_llm_credentials_tenant_isolation.py` —+ BYOK credential GET/PUT/DELETE scope by `tenant_id`, new rows bind+ the caller's tenant, and `emit_audit` is invoked with the caller'stenant + actor (`CredentialVault` is stubbed so the assertions areon the persistence boundary, not crypto).@@ -43,270 +119,6 @@ tenant boundary regression shows up as the first nightly signal) andon-demand via `workflow_dispatch`. On failure it uploads a JUnitreport and opens a `security`-labelled tracking issue.-### Fix MCP tool count in docs and landing copy (Issue #36)--Closes the documentation-vs-reality drift on the MCP server's tool surface.-`services/mcp/src/tools/index.ts` registers **13** tools — five discovery-(`aisoc_list_alerts`, `aisoc_list_cases`, `aisoc_query_detections`,-`aisoc_list_investigations`, `aisoc_lake_schema`), four deep-dive-(`aisoc_get_alert`, `aisoc_get_case`, `aisoc_get_detection_rule`,-`aisoc_get_investigation`), one warm-tier lake query-(`aisoc_lake_query`, gated server-side by the `lake:query` permission),-and three action/replay (`aisoc_run_investigation`, `aisoc_replay_decision`,-`aisoc_explain_step`) — but eight public-facing surfaces still claimed-"11 tools" and most tables omitted both lake tools entirely.--Fixed in this PR:--* `README.md` — both the MCP section copy and the services table now say- 13 tools and call out the lake query pair.-* `services/mcp/README.md` — count corrected; `aisoc_lake_schema` and- `aisoc_lake_query` added to the tool table with the same wording the- registry uses (discovery-before-query ordering).-* `apps/docs/docs/integrations/mcp.md` — count corrected; the Mermaid- graph gained a `Lake query` subgraph wired `aisoc_lake_schema →- aisoc_lake_query` so the recommended call order is visible at a glance.-* `apps/docs/docs/intro.md`, `apps/docs/docs/architecture.md` (two- references), `docs/architecture/SYSTEM_DESIGN.md`,- `docs/design/landing-page-brief.md` — all updated.-* `apps/web/src/components/landing/sections/FeatureGrid.tsx` — the- marketing card "Use AiSOC from Claude, Cursor, Continue, Cody — 11- tools." now reads "13 tools." This is the landing-page surface most- visitors actually see.--No tool implementation changed — the count and tables in-`services/mcp/src/tools/index.ts` were already correct. This is a-documentation-only fix so analysts and self-hosters don't see a smaller-surface area than the server actually exposes, and so the lake query-governance story is discoverable from every doc that lists tools.--### Wire `DetectAgent.process` to `FusionEngine` via cross-service HTTP (Issue #190)--Closes [#190](https://github.com/beenuar/AiSOC/issues/190).--Closes the missing edge in the four-agent façade: `DetectAgent` previously-self-described as the public detection surface but had no synchronous entry-point into the fusion pipeline. Existing callers had to push to Kafka and wait-for the consumer path to run dedup → correlation → ML scoring → confidence-labelling → RBA, which is fine for the streaming case but unusable for-interactive use (e.g. an investigation that needs to fuse one ad-hoc alert).--Three changes, all purely additive:--* `services/fusion/app/api/router.py` exposes `POST /process`, which accepts a- `RawAlert`, runs it through the live `FusionEngine` instance owned by the- fusion worker, and returns the `FusedAlert` envelope. Returns `503` if the- worker has not finished bootstrapping its engine — better to fail loudly than- to invent a synthetic verdict. Schema validation is delegated to FastAPI /- Pydantic, so a malformed payload still fails with `422`.-* `services/agents/app/tools/fusion.py` is a thin async `httpx` client that- posts to `{FUSION_SERVICE_URL}/process` (default- `http://fusion:8003/process` inside the docker-compose network — fusion- mounts its router at the root path, *not* under `/api/fusion`). The client- forwards an optional bearer token and **raises** on any non-2xx or transport- failure. The module docstring contrasts this with `app.tools.graph`, which- intentionally degrades gracefully: fusion is the primary detection path, and- swallowing its errors would make alerts disappear silently.-* `DetectAgent.process(raw_alert, api_token=None)` now delegates to the client- with no transformation. The class docstring is updated to point at the- correct endpoint. The same `FusionEngine` instance services both the Kafka- consumer and the new HTTP path, so behaviour is identical regardless of how- an alert arrives.--Tests (`services/fusion/tests/test_process_endpoint.py`,-`services/agents/tests/test_fusion_client.py`) cover the happy path-(new-incident envelope), the duplicate path, both 503 modes (no worker,-no engine), 422 on malformed and on invalid severity, and that the endpoint-uses the same engine instance as the worker (no fresh `FusionEngine()` per-request). Client-side tests pin the URL to `/process` (regression guard-against the `/api/fusion/process` path mismatch we caught during initial-wiring), assert bearer-token forwarding, confirm `httpx.HTTPStatusError`-propagates on 503/422, and `httpx.HTTPError` propagates on transport-failures. A final trio of tests pins `DetectAgent.process` as a faithful-delegate to the client (args pass through unchanged, errors propagate, no-swallowed exceptions).--No feature flag and no env gate: the wiring is purely additive — no existing-caller of the fusion service or the agents service changes shape, and the new-endpoint/method only fire when something explicitly invokes them.--### Real ES|QL runner for saved-hunt scheduler (T3.4, v8.0)--Replaces the `_execute_hunt` stub in `services/api/app/workers/hunt_scheduler.py`-with a real Elasticsearch query path. The shared logic now lives in-`services/api/app/services/esql_runner.py` — a small async module that exposes-`run_esql_query()`, `resolve_es_credentials()`, and the `ESQLResult` /-`ESQLExecutionError` / `ESQLNotConfigured` types. Both the request-scoped-`/nl-query/execute` endpoint and the out-of-band saved-hunt scheduler now-share one code path for the outbound POST, the SSRF guard (validates the-target host against the configured `ES_URL`/`ELASTICSEARCH_URL`/`OPENSEARCH_URL`-and reconstructs the URL from validated components only — no user path/query-ever reaches the network), and the air-gap policy-(`enforce_airgap_for_url` is invoked unconditionally so an operator who-flipped `AISOC_AIRGAPPED=true` can't accidentally leak a saved hunt to a-public host). The scheduler reads the stored `translated_query["esql"]`-(no re-translation in the background — that's the endpoint's job),-appends a `LIMIT` clause when the translator didn't supply one-(capped by `HUNT_SCHEDULER_MAX_ROWS`, default 500), and returns-`len(rows)` so `run_once` can decide whether to open a case via the-existing `_open_case_for_hits` hook. Missing translated ES|QL or missing-ES credentials are logged at `info` and skip the run with zero hits —-self-hosted dev installs without ES wired up stay quiet instead of-spamming `exception`. Real transport / air-gap / SSRF errors propagate-back to `run_once`, which records them via `logger.exception` and skips-the `last_run_at` bump so the hunt retries on the next sweep instead of-being silently marked "ran". `nl_query.py` was refactored at the same-time to call the shared runner (deleting its private `_validate_es_url`-copy), so the two execution surfaces can't drift on the security guards.-Test coverage: 22 unit tests in `tests/test_esql_runner.py` (URL-validation, credential resolution, air-gap propagation, LIMIT-enforcement, error wrapping) plus 9 dedicated `_execute_hunt` tests in-`tests/test_hunt_scheduler_execute.py` (all four skip paths, happy path-with row count, three error-propagation paths). The existing-saved-hunts endpoint + tenant isolation suites (47 tests) continue to-pass unmodified.-### LLM input contract — raw-HTTP wrapper + remaining call sites (T2.3, v8.0)--Closes the last LLM-input-contract gap in `services/agents`. Every LangChain-chat-model path already routed through `safe_ainvoke` / `safe_astream` (or a-`make_safe_chat_model` wrap), but two call sites talked to OpenAI directly-over `httpx` and so could ship un-validated prompts on the wire: the Copilot-endpoint (`app/api/copilot.py::_get_openai_reply`) and the NL→query-translator's optional LLM enhancement (`app/nl_query/translator.py::enhance_with_llm`).-Both now go through a new `safe_chat_completions_request()` helper in-`app/llm/contract.py` that calls `LLMInputContract.validate()` **before** the-network request — a contract violation never leaves the process. The helper-exposes the same surface as the existing OpenAI-compatible `POST`-(`api_key`, `model`, `messages`, plus pass-through `response_format`,-`temperature`, `max_tokens`, custom `url`, extra headers), surfaces-`httpx.HTTPStatusError` so callers can fall back to deterministic behaviour,-and refuses to run with an empty API key.--Embedding calls in `app/tools/mitre_full.py` (`openai.AsyncOpenAI.embeddings`)-are intentionally unchanged: they embed curated MITRE technique descriptions,-not user input, so the contract does not apply.-### `/investigate` endpoint swap behind feature flag (T2.2, v8.0)--`services/agents/app/api/investigate.py` now picks an orchestrator per call-based on the `AISOC_INVESTIGATE_USE_ROUTER` environment flag (default off).-When unset, the endpoint behaves exactly as before and routes through-`InvestigatorOrchestrator.stream()`. When set to a truthy value-(`1` / `true` / `yes` / `on` / `enabled`, case-insensitive, whitespace-tolerated), the same case streams through the four-agent-`RouterOrchestrator` via the new `stream_kwargs()` adapter. The flag is-read at call time, not import time, so operators can cut traffic over-gradually — or roll back — without bouncing the agents service. Both the-HTTP POST path (`_run_and_store`) and the WebSocket path-(`stream_investigation`) share the same dispatcher, so case storage and-live streaming stay in lockstep.--`RouterOrchestrator` grew an investigator-compatible adapter:-`stream_kwargs(case_id, alert_summary, raw_alert, tenant_id, run_id=None)`.-It coerces string case / tenant / run IDs into UUIDs deterministically-(`uuid5` against a fixed namespace, so the same `case_id` always maps to-the same UUID across processes), constructs an `InvestigationState`, and-proxies to `stream()`. The adapter normalises three event-shape gaps so-the existing consumer code in `app.api.investigate` doesn't have to-branch on orchestrator type: `step` events are enriched with the-case / run IDs, `kind`, `node`, and `ts` fields the investigator path-emits; a `done` event whose `state.status == FAILED` is rewritten as an-explicit `{"type": "error"}` event (and the original `done` is-suppressed) so endpoint error handling fires identically to the-investigator path; and a stray `alert_text=` typo in the original draft-was caught and fixed — the internal state is now populated via-`alert_summary=`, matching the field actually defined on-`InvestigationState`.--Coverage: `services/agents/tests/test_investigate_router_flag.py` (27-tests) pins the dispatcher — flag parsing including case/whitespace-edge cases, orchestrator selection per call, parameter pass-through,-flag-read-at-call-time semantics (so flipping the env var mid-process-takes effect on the next call), module-singleton stability, and-defensive guards around `run_id` being `None` vs. `UUID`.-`services/agents/tests/test_orchestrator_router_stream_kwargs.py`-covers the adapter end-to-end: event-shape parity with the-investigator (`step` enrichment with `case_id` / `run_id` / `kind` /-`node` / `ts`), error synthesis from failed `done` events, ID-coercion determinism, and that `alert_summary` actually lands on-the inner state. Combined with the existing router and report-suites, all 55 router-adjacent tests stay green.--### Router orchestrator gains streaming + ledger + report (T2.2, v8.0)--`RouterOrchestrator` (`services/agents/app/orchestrator/router.py`) now matches-the surface of the legacy `InvestigatorOrchestrator` on three axes — streamed-progress events, ledger persistence, and a deterministic Markdown / HTML-report on the `done` event — so the `/investigate` endpoint can be swapped-over to the router without losing operator-visible behaviour. The existing-`run()` entry point is unchanged; the new `stream(state, *, topology=...)`-async generator yields `step` events at each stage boundary (auto-triage,-signal classification, sub-agent dispatch, per-sub-agent completion in-`as_completed` order, join, responder summary) and a single terminal `done`-event carrying the full state plus the report. Step `seq` numbers are-monotonic across both parallel and sequential topologies. Auto-close paths-short-circuit after auto-triage with a single step and a `done` event so the-UI doesn't paint a half-empty timeline.--Ledger writes are best-effort: every `step` becomes a `record_event` row,-the final state becomes a `record_artifact` (Markdown + HTML), and-`complete_run` closes the row with verdict / confidence / latency / cost. A-ledger outage (missing `asyncpg`, dropped connection, write failure)-downgrades to a `warn`-level structured log and the stream still completes-end-to-end — the persistence layer is observability, not a hard dependency.--Report synthesis lives in the new `services/agents/app/orchestrator/report.py`-module. `render_router_report(state)` returns `(report_md, report_html)`-without any extra LLM call: it walks `InvestigationState` (verdict,-confidence, sub-agent findings, attack chain, responder recovery steps) and-renders deterministic templates. HTML conversion falls back to a `<pre>`-block if the optional `markdown` package isn't installed, so the worker-image stays slim.--Coverage: `services/agents/tests/test_orchestrator_router_stream.py` (8-tests) asserts the event contract — step ordering, monotonic `seq`,-parallel vs sequential paths, auto-close short-circuit, `done` payload-shape, ledger call ordering, and graceful degradation when ledger writes-fail. `services/agents/tests/test_router_report.py` covers the-deterministic renderer. Together with the existing parallel-topology-suite all 34 router-adjacent tests pass clean.--### LangGraph parallel topology — HTTP surface (T2.2, v8.0)--`RouterOrchestrator` (the parallel fan-out / Join LangGraph topology landed-earlier in `services/agents/app/orchestrator/router.py`) is now reachable-over HTTP. New endpoints in `services/agents/app/api/triage.py`:--- `POST /api/v1/cases/{case_id}/triage` — launches a one-shot triage run on- the parallel topology and returns `{run_id, status, topology}`. The- request body (`TriageRequest`) accepts an optional `tenant_id`,- `incident_id`, `signals[]`, and a per-run `topology` override- (`"parallel" | "sequential"`). When `topology` is omitted, the resolved- topology follows the `AISOC_AGENT_PARALLEL_TOPOLOGY` env flag (parallel- when truthy, sequential otherwise) so existing deployments stay on the- safe default. String `tenant_id` / `incident_id` values are coerced to- deterministic UUIDs via `uuid.uuid5` against a project-scoped namespace,- so the same string always maps to the same `InvestigationState`.-- `GET /api/v1/triage/{run_id}` — polls the run, returning- `{run_id, status, topology, signals, auto_closed, wall_clock_ms,- finding_ids, mitre_techniques, error?}`. Errors during the background- task are captured on the run record so the polling endpoint never 500s- on agent failure.--Run state is kept in an in-process `_triage_runs` dict for now (same-pattern as the existing `/investigate` endpoint's `_runs`). The legacy-linear `/investigate` path on `InvestigatorOrchestrator` is **unchanged**-— this is a new, additive surface that can be flag-flipped per request-without touching the streaming investigation flow demos depend on.--8 new integration tests (`services/agents/tests/test_triage_endpoint.py`)-cover env-flag flip, body override, end-to-end fan-out through the-parallel topology, the auto-close short-circuit when classifier signals-are empty, 404 on unknown `run_id`, and minimal-body coercion. They shim-the sub-agent runners + `_emit_event` via `monkeypatch` (same pattern as-`test_orchestrator_parallel.py`) so the tests are hermetic — no Kafka,-no LLM, no graph. Existing `test_orchestrator_parallel.py` (17 tests) is-unchanged and still green.-### Attack-chain timeline UI (T3.3, v8.0)`/cases/{id}` now ships an **Attack Chain** tab that visualises the ranked@@ -379,16 +191,12 @@ rather than silently ignored.### LLM input contract — CI tests (T2.3, v8.0)`services/agents/tests/test_llm_contract.py` exercises `classify_message` /-`LLMInputContract.validate` / `validate_messages` (raw OCSF-shaped JSON in a-user message fails closed when `AISOC_AGENTS_LLM_CONTRACT_ENFORCED=1`,-default; prose plus `summarize_structure_for_llm` output passes; tests use-`{"role", "content"}` dict messages so they run without importing-`langchain_core` — the contract coerces LangChain `BaseMessage` and dicts the-same way). New `services/agents/tests/test_llm_contract_http.py` covers the-HTTP wrapper end-to-end: happy path with body/header forwarding, contract-rejection of OCSF-shaped payloads with **no** network call, empty-API-key-guard, `HTTPStatusError` propagation on non-2xx, extra-body (`response_format`,-`temperature`) forwarding, extra-header merging, and custom-URL override.+`LLMInputContract.validate` / `validate_messages`: raw OCSF-shaped JSON in a+user message fails closed when `AISOC_AGENTS_LLM_CONTRACT_ENFORCED=1`+(default), and prose plus `summarize_structure_for_llm` output passes. Tests+use `{"role", "content"}` dict messages so they run without importing+`langchain_core` (the contract already coerces LangChain `BaseMessage` and+dicts the same way).### Real-time graph-update WebSocket (T1.4, v8.0)diff --git a/apps/web/package.json b/apps/web/package.jsonindex cb107320b..d53d4d0ce 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -55,7 +55,7 @@"postcss": "^8.5.15","tailwindcss": "^4.3.0","typescript": "^6.0.3",- "vitest": "^2.0.0",+ "vitest": "^4.1.6","vitest-axe": "^0.1.0"}}diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.tsindex b8ab6a703..d86be825a 100644--- a/apps/web/vitest.config.ts+++ b/apps/web/vitest.config.ts@@ -6,9 +6,10 @@ import path from 'node:path';// (jsdom) — no SSR, no Next.js server runtime. Anything that requires the// full Next.js stack should live in an e2e suite (Playwright) instead.export default defineConfig({- // react() returns vite@7 Plugin types; vitest@2 expects vite@5 Plugin types.- // Cast through unknown to bridge the version gap without changing the runtime.- plugins: [react() as unknown as import('vitest/config').UserConfig['plugins']],+ // vitest@4 ships against vite@7, which is also what `@vitejs/plugin-react`+ // targets, so the legacy vitest@2 / vite@5 type-bridging cast is no longer+ // needed — `react()` plugs in directly.+ plugins: [react()],test: {environment: 'jsdom',globals: true,diff --git a/packages/sdk-ts/package.json b/packages/sdk-ts/package.jsonindex e989541fc..84d9bca4c 100644--- a/packages/sdk-ts/package.json+++ b/packages/sdk-ts/package.json@@ -29,7 +29,7 @@"openapi-typescript": "^7.0.0","tsup": "^8.0.0","typescript": "^6.0.3",- "vitest": "^2.0.0"+ "vitest": "^4.1.6"},"peerDependencies": {"typescript": ">=5.0.0"diff --git a/packages/sdk-ts/src/client.test.ts b/packages/sdk-ts/src/client.test.tsindex ef52cd2d7..0d88ef0e5 100644--- a/packages/sdk-ts/src/client.test.ts+++ b/packages/sdk-ts/src/client.test.ts@@ -60,7 +60,7 @@ describe("alerts", () => {mockFetch({ items: [], total: 0, page: 1, pageSize: 20 });const client = makeClient();await client.alerts.list({ severity: "critical", status: "open", page: 2 });- const [url] = (global.fetch as ReturnType<typeof vi.fn>).mock.calls[0] as [string];+ const [url] = (globalThis.fetch as ReturnType<typeof vi.fn>).mock.calls[0] as [string];expect(url).toContain("severity=critical");expect(url).toContain("status=open");expect(url).toContain("page=2");diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 4efc45fc3..a0969682b 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -176,11 +176,11 @@ importers:specifier: ^6.0.3version: 6.0.3vitest:- specifier: ^2.0.0- version: 2.1.9(@types/[email protected])([email protected])+ specifier: ^4.1.6vitest-axe:specifier: ^0.1.0- version: 0.1.0([email protected])+ version: 0.1.0([email protected])packages/ocsf:devDependencies:@@ -207,8 +207,8 @@ importers:specifier: ^6.0.3version: 6.0.3vitest:- specifier: ^2.0.0- version: 2.1.9(@types/[email protected])([email protected])+ specifier: ^4.1.6packages/types:devDependencies:@@ -263,8 +263,8 @@ importers:specifier: ^6.0.3version: 6.0.3vitest:- specifier: ^2.0.0- version: 2.1.9(@types/[email protected])([email protected])+ specifier: ^4.1.6packages:@@ -3273,15 +3273,6 @@ 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'}@@ -3300,15 +3291,6 @@ 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'}@@ -3327,15 +3309,6 @@ 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'}@@ -3354,15 +3327,6 @@ 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'}@@ -3381,15 +3345,6 @@ 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'}@@ -3408,15 +3363,6 @@ 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'}@@ -3435,15 +3381,6 @@ 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'}@@ -3462,15 +3399,6 @@ 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'}@@ -3489,15 +3417,6 @@ 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'}@@ -3516,15 +3435,6 @@ 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'}@@ -3543,15 +3453,6 @@ 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'}@@ -3570,15 +3471,6 @@ 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'}@@ -3597,15 +3489,6 @@ 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'}@@ -3624,15 +3507,6 @@ 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'}@@ -3651,15 +3525,6 @@ 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'}@@ -3678,15 +3543,6 @@ 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'}@@ -3705,15 +3561,6 @@ 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'}@@ -3750,15 +3597,6 @@ 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'}@@ -3795,15 +3633,6 @@ 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'}@@ -3840,15 +3669,6 @@ 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'}@@ -3867,15 +3687,6 @@ 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'}@@ -3894,15 +3705,6 @@ 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'}@@ -3921,15 +3723,6 @@ 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'}@@ -5791,6 +5584,10 @@ packages:micromark-util-symbol: 1.1.0dev: false+ /@standard-schema/[email protected]:+ resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}+ dev: true+/@svgr/[email protected](@babel/[email protected]):resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==}engines: {node: '>=14'}@@ -6282,6 +6079,13 @@ packages:'@types/node': 20.19.39dev: false+ /@types/[email protected]:+ resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}+ dependencies:+ '@types/deep-eql': 4.0.2+ assertion-error: 2.0.1+ dev: true+/@types/[email protected]:resolution: {integrity: sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw==}dependencies:@@ -6372,6 +6176,10 @@ packages:dependencies:'@types/ms': 2.1.0+ /@types/[email protected]:+ resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}+ dev: true+/@types/[email protected]:resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}dependencies:@@ -6955,65 +6763,66 @@ packages:- supports-colordev: true- /@vitest/[email protected]:- resolution: {integrity: sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==}+ /@vitest/[email protected]:+ resolution: {integrity: sha512-7EHDquPthALSV0jhhjgEW8FXaviMx7rSqu8W6oqCoAuOhKov814P99QDV1pxMA3QPv21YudvJngIhjrNI4opLg==}dependencies:- '@vitest/spy': 2.1.9- '@vitest/utils': 2.1.9- chai: 5.3.3- tinyrainbow: 1.2.0+ '@standard-schema/spec': 1.1.0+ '@types/chai': 5.2.3+ '@vitest/spy': 4.1.6+ '@vitest/utils': 4.1.6+ chai: 6.2.2+ tinyrainbow: 3.1.0dev: true- /@vitest/[email protected]([email protected]):- resolution: {integrity: sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==}+ /@vitest/[email protected]([email protected]):+ resolution: {integrity: sha512-MCFc63czMjEInOlcY2cpQCvCN+KgbAn+60xu9cMgP4sKaLC5JNAKw7JH8QdAnoAC88hW1IiSNZ+GgVXlN1UcMQ==}peerDependencies:msw: ^2.4.9- vite: ^5.0.0+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0peerDependenciesMeta:msw:optional: truevite:optional: truedependencies:- '@vitest/spy': 2.1.9+ '@vitest/spy': 4.1.6estree-walker: 3.0.3magic-string: 0.30.21- vite: 5.4.21(@types/[email protected])+ vite: 7.3.3(@types/[email protected])([email protected])dev: true- /@vitest/[email protected]:- resolution: {integrity: sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==}+ /@vitest/[email protected]:+ resolution: {integrity: sha512-h5SxD/IzNhZYnrSZRsUZQIC+vD0GY8cUvq0iwsmkFKixRCKLLWqCXa/FIQ4S1R+sI+PGoojkHsdNrbZiM9Qpgw==}dependencies:- tinyrainbow: 1.2.0+ tinyrainbow: 3.1.0dev: true- /@vitest/[email protected]:- resolution: {integrity: sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==}+ /@vitest/[email protected]:+ resolution: {integrity: sha512-nOPCmn2+yD0ZNmKdsXGv/UxMMWbMuKeD6GyYncNwdkYDxpQvrPSKYj2rWuDjC2Y4b6w6hjip5dBKFzEUuZe3vA==}dependencies:- '@vitest/utils': 2.1.9- pathe: 1.1.2+ '@vitest/utils': 4.1.6+ pathe: 2.0.3dev: true- /@vitest/[email protected]:- resolution: {integrity: sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==}+ /@vitest/[email protected]:+ resolution: {integrity: sha512-YhsdE6xAVfTDmzjxL2ZDUvjj+ZsgyOKe+TdQzqkD72wIOmHka8NuGQ6NpTNZv9D2Z63fbwWKJPeVpEw4EQgYxw==}dependencies:- '@vitest/pretty-format': 2.1.9+ '@vitest/pretty-format': 4.1.6+ '@vitest/utils': 4.1.6magic-string: 0.30.21- pathe: 1.1.2+ pathe: 2.0.3dev: true- /@vitest/[email protected]:- resolution: {integrity: sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==}- dependencies:- tinyspy: 3.0.2+ /@vitest/[email protected]:+ resolution: {integrity: sha512-JFKxMx6udhwKh/Ldo270e17QX710vgunMkuPAvXjHSvC6oqLWAHhVhjg/I71q0u0CBSErIODV1Kjv0FQNSWjdg==}dev: true- /@vitest/[email protected]:- resolution: {integrity: sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==}+ /@vitest/[email protected]:+ resolution: {integrity: sha512-FxIY+U81R3LGKCxaHHFRQ5+g6/iRgGLmeHWdp2Amj4ljQRrEIWHmZyDfDYBRZlpyqA7qKxtS9DD1dhk8RnRIVQ==}dependencies:- '@vitest/pretty-format': 2.1.9- loupe: 3.2.1- tinyrainbow: 1.2.0+ '@vitest/pretty-format': 4.1.6+ convert-source-map: 2.0.0+ tinyrainbow: 3.1.0dev: true/@webassemblyjs/[email protected]:@@ -7877,15 +7686,9 @@ packages:resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}- resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}+ resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}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.1dev: true@@ -7920,11 +7723,6 @@ 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:@@ -8768,11 +8566,6 @@ packages:mimic-response: 3.1.0dev: false- resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}- engines: {node: '>=6'}- dev: true-resolution: {integrity: sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==}engines: {node: '>= 0.4'}@@ -9198,10 +8991,6 @@ packages:math-intrinsics: 1.1.0dev: true- resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}- dev: true-resolution: {integrity: sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==}@@ -9253,37 +9042,6 @@ 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'}@@ -11753,10 +11511,6 @@ packages:dependencies:js-tokens: 4.0.0- resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}- dev: true-resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}dependencies:@@ -12837,6 +12591,10 @@ packages:resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==}dev: false+ resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}+ dev: true+resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}engines: {node: '>= 0.8'}@@ -13126,19 +12884,10 @@ packages:engines: {node: '>=8'}dev: false- 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==}@@ -15352,6 +15101,11 @@ packages:resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}+ dev: false++ resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==}+ dev: trueresolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}@@ -15713,6 +15467,11 @@ packages:resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}dev: true+ resolution: {integrity: sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==}+ engines: {node: '>=18'}+ dev: true+resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}engines: {node: '>=12.0.0'}@@ -15724,14 +15483,10 @@ 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==}+ resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==}engines: {node: '>=14.0.0'}dev: true@@ -16327,67 +16082,6 @@ 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.15- rollup: 4.60.2- optionalDependencies:- fsevents: 2.3.3- dev: true-resolution: {integrity: sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -16440,7 +16134,7 @@ packages:fsevents: 2.3.3dev: trueresolution: {integrity: sha512-jvtXxeQPg8R/2ANTY8QicA5pvvdRP4F0FsVUAHANJ46YCDASie/cuhlSzu0DGcLmZvGBSBNsNuK3HqfaeknyvA==}peerDependencies:vitest: '>=0.16.0'@@ -16451,26 +16145,42 @@ packages:dom-accessibility-api: 0.5.16lodash-es: 4.18.1redent: 3.0.0- vitest: 2.1.9(@types/[email protected])([email protected])dev: true- resolution: {integrity: sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==}- engines: {node: ^18.0.0 || >=20.0.0}+ resolution: {integrity: sha512-6lvjbS3p9b4CrdCmguzbh2/4uoXhGE2q71R4OX5sqF9R1bo9Xd6fGrMAfvp5wnCzlBnFVdCOp6onuTQVbo8iUQ==}+ engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}hasBin: truepeerDependencies:'@edge-runtime/vm': '*'- '@types/node': ^18.0.0 || >=20.0.0- '@vitest/browser': 2.1.9- '@vitest/ui': 2.1.9+ '@opentelemetry/api': ^1.9.0+ '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0+ '@vitest/browser-playwright': 4.1.6+ '@vitest/browser-preview': 4.1.6+ '@vitest/browser-webdriverio': 4.1.6+ '@vitest/coverage-istanbul': 4.1.6+ '@vitest/coverage-v8': 4.1.6+ '@vitest/ui': 4.1.6happy-dom: '*'jsdom: '*'+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0peerDependenciesMeta:'@edge-runtime/vm':optional: true+ '@opentelemetry/api':+ optional: true'@types/node':optional: true- '@vitest/browser':+ '@vitest/browser-playwright':+ optional: true+ '@vitest/browser-preview':+ optional: true+ '@vitest/browser-webdriverio':+ optional: true+ '@vitest/coverage-istanbul':+ optional: true+ '@vitest/coverage-v8':optional: true'@vitest/ui':optional: true@@ -16480,37 +16190,29 @@ packages:optional: truedependencies:'@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])+ '@vitest/expect': 4.1.6+ '@vitest/mocker': 4.1.6([email protected])+ '@vitest/pretty-format': 4.1.6+ '@vitest/runner': 4.1.6+ '@vitest/snapshot': 4.1.6+ '@vitest/spy': 4.1.6+ '@vitest/utils': 4.1.6+ es-module-lexer: 2.1.0expect-type: 1.3.0jsdom: 24.1.3magic-string: 0.30.21- pathe: 1.1.2- std-env: 3.10.0+ obug: 2.1.1+ pathe: 2.0.3+ picomatch: 4.0.4+ std-env: 4.1.0tinybench: 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])+ tinyexec: 1.1.2+ tinyglobby: 0.2.16+ tinyrainbow: 3.1.0+ vite: 7.3.3(@types/[email protected])([email protected])why-is-node-running: 2.3.0transitivePeerDependencies:- - less- - lightningcss- msw- - sass- - sass-embedded- - stylus- - sugarss- - supports-color- - terserdev: truediff --git a/services/mcp/package.json b/services/mcp/package.jsonindex 2ff1a285c..02ee50f14 100644--- a/services/mcp/package.json+++ b/services/mcp/package.json@@ -57,7 +57,7 @@"@types/node": "^20.11.5","tsx": "^4.22.1","typescript": "^6.0.3",- "vitest": "^2.0.0"+ "vitest": "^4.1.6"},"engines": {"node": ">=18.17"