diff --git a/.github/workflows/mantis-assistant-ci.yml b/.github/workflows/mantis-assistant-ci.yml new file mode 100644 index 000000000..fc7d33c11 --- /dev/null +++ b/.github/workflows/mantis-assistant-ci.yml @@ -0,0 +1,73 @@ +name: mantis-assistant CI + +on: + push: + branches: [feat/mantis-biomemetics-lab] + paths: + - 'projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/**' + - 'projects/biomemetics/labs/mantis/assistant/evals/**' + - 'projects/biomemetics/labs/mantis/assistant/fixtures/**' + - '.github/workflows/mantis-assistant-ci.yml' + pull_request: + branches: [feat/mantis-biomemetics-lab] + paths: + - 'projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/**' + - 'projects/biomemetics/labs/mantis/assistant/evals/**' + - 'projects/biomemetics/labs/mantis/assistant/fixtures/**' + - '.github/workflows/mantis-assistant-ci.yml' + +permissions: + contents: read + +env: + WORKING_DIR: projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant + +jobs: + unit: + name: Unit + runs-on: ubuntu-latest + timeout-minutes: 10 + defaults: + run: + working-directory: ${{ env.WORKING_DIR }} + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22.18.0' + cache: npm + cache-dependency-path: ${{ env.WORKING_DIR }}/package-lock.json + + - name: Install + run: npm ci + + - name: Typecheck + run: npm run typecheck + + - name: Unit + run: npm run test:unit + + prove: + name: OpenRouter DeepSeek prove + runs-on: ubuntu-latest + timeout-minutes: 20 + defaults: + run: + working-directory: ${{ env.WORKING_DIR }} + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22.18.0' + cache: npm + cache-dependency-path: ${{ env.WORKING_DIR }}/package-lock.json + + - name: Install + run: npm ci + + - name: Prove + env: + OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} + run: npm run test:live diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/actuation-command.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/actuation-command.schema.json new file mode 100644 index 000000000..0bbbd5fa9 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/actuation-command.schema.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-command:v1", + "title": "Mantis actuation command", + "description": "Executable local-edge command. Distinct from ActuationIntent. Never produced by an LLM, CopilotKit action, replay, or recovered durable run. v1 live actuation remains disabled.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "commandId", + "intentId", + "issuedAt", + "expiresAt", + "action", + "executable", + "issuer", + "liveActuation" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "ActuationCommand" }, + "commandId": { + "type": "string", + "pattern": "^cmd\\.[a-z][a-z0-9.-]*$" + }, + "intentId": { + "type": "string", + "pattern": "^intent\\.[a-z][a-z0-9.-]*$" + }, + "issuedAt": { "type": "string", "format": "date-time" }, + "expiresAt": { "type": "string", "format": "date-time" }, + "action": { "type": "string", "minLength": 1 }, + "executable": { "const": true }, + "liveActuation": { "const": false }, + "issuer": { + "enum": ["edge-supervisor", "human-local-service"], + "description": "Commands may be issued only by the local edge or a human/local service. The assistant is excluded." + }, + "nonce": { "type": "string", "minLength": 1 } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/actuation-intent.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/actuation-intent.schema.json new file mode 100644 index 000000000..fec996df7 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/actuation-intent.schema.json @@ -0,0 +1,38 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-intent:v1", + "title": "Mantis actuation intent", + "description": "Non-executable proposed action emitted by the assistant. Distinct from ActuationCommand. Live actuation is disabled in v1.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "intentId", + "proposedAt", + "capabilityClass", + "action", + "executable", + "expiresAt" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "ActuationIntent" }, + "intentId": { + "type": "string", + "pattern": "^intent\\.[a-z][a-z0-9.-]*$" + }, + "runId": { + "type": "string", + "pattern": "^run\\.[a-z][a-z0-9.-]*$" + }, + "proposedAt": { "type": "string", "format": "date-time" }, + "expiresAt": { "type": "string", "format": "date-time" }, + "capabilityClass": { "enum": ["P3", "P4", "P5"] }, + "action": { "type": "string", "minLength": 1 }, + "executable": { "const": false }, + "rationale": { "type": "string" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/actuation-receipt.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/actuation-receipt.schema.json new file mode 100644 index 000000000..49209819b --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/actuation-receipt.schema.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-receipt:v1", + "title": "Mantis actuation receipt", + "description": "Result of an ActuationCommand. Distinct from intent and command. Absence of a receipt is not success.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "receiptId", + "commandId", + "recordedAt", + "disposition" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "ActuationReceipt" }, + "receiptId": { + "type": "string", + "pattern": "^rcpt\\.[a-z][a-z0-9.-]*$" + }, + "commandId": { + "type": "string", + "pattern": "^cmd\\.[a-z][a-z0-9.-]*$" + }, + "intentId": { + "type": "string", + "pattern": "^intent\\.[a-z][a-z0-9.-]*$" + }, + "recordedAt": { "type": "string", "format": "date-time" }, + "disposition": { + "enum": ["accepted", "rejected", "expired", "faulted", "not-run"] + }, + "detail": { "type": "string" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/assistant-run.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/assistant-run.schema.json new file mode 100644 index 000000000..abe066493 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/assistant-run.schema.json @@ -0,0 +1,90 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:assistant-run:v1", + "title": "Mantis assistant run receipt", + "description": "Pinned package, model, config, tool, memory, and workflow versions for one assistant run. Observational memory on this receipt is assistant-memory, never observation or evidence.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "runId", + "startedAt", + "mode", + "resourceId", + "threadId", + "versions", + "memoryRecordClass" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "AssistantRun" }, + "runId": { + "type": "string", + "pattern": "^run\\.[a-z][a-z0-9.-]*$" + }, + "traceId": { "type": "string", "minLength": 1 }, + "startedAt": { "type": "string", "format": "date-time" }, + "endedAt": { "type": "string", "format": "date-time" }, + "mode": { + "enum": [ + "care", + "observe", + "research", + "terrarium-read", + "review", + "service-sim" + ] + }, + "resourceId": { "type": "string", "minLength": 1 }, + "threadId": { + "type": "string", + "pattern": "^care:[a-z][a-z0-9.-]*:[a-z][a-z0-9.-]*$" + }, + "careSubjectId": { + "type": "string", + "pattern": "^care\\.[a-z][a-z0-9.-]*$" + }, + "agentId": { "type": "string", "minLength": 1 }, + "workflowId": { "type": "string", "minLength": 1 }, + "memoryRecordClass": { "const": "assistant-memory" }, + "versions": { + "type": "object", + "additionalProperties": false, + "required": [ + "mastraCore", + "copilotkitRuntime", + "aguiMastra", + "effect", + "typescript", + "model", + "controllerConfig", + "tools", + "memory", + "workflow" + ], + "properties": { + "mastraCore": { "type": "string", "minLength": 1 }, + "copilotkitRuntime": { "type": "string", "minLength": 1 }, + "aguiMastra": { "type": "string", "minLength": 1 }, + "effect": { "type": "string", "minLength": 1 }, + "typescript": { "type": "string", "minLength": 1 }, + "model": { "type": "string", "minLength": 1 }, + "controllerConfig": { "type": "string", "minLength": 1 }, + "tools": { "type": "string", "minLength": 1 }, + "memory": { "type": "string", "minLength": 1 }, + "workflow": { "type": "string", "minLength": 1 } + } + }, + "cost": { + "type": "object", + "additionalProperties": false, + "properties": { + "inputTokens": { "type": "integer", "minimum": 0 }, + "outputTokens": { "type": "integer", "minimum": 0 } + } + } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/care-advice.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/care-advice.schema.json new file mode 100644 index 000000000..1734acbfe --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/care-advice.schema.json @@ -0,0 +1,92 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-advice:v1", + "title": "Mantis care advice", + "description": "Non-executable sourced guidance. Numerical prescriptions require a reviewed source and applicability, otherwise they are withheld.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "adviceId", + "careSubjectId", + "issuedAt", + "expiresAt", + "capabilityClass", + "statements", + "confidence", + "executable" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "CareAdvice" }, + "adviceId": { + "type": "string", + "pattern": "^advice\\.[a-z][a-z0-9.-]*$" + }, + "careSubjectId": { + "type": "string", + "pattern": "^care\\.[a-z][a-z0-9.-]*$" + }, + "runId": { + "type": "string", + "pattern": "^run\\.[a-z][a-z0-9.-]*$" + }, + "issuedAt": { "type": "string", "format": "date-time" }, + "expiresAt": { "type": "string", "format": "date-time" }, + "capabilityClass": { "enum": ["P0", "P1", "P2"] }, + "executable": { "const": false }, + "confidence": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "statements": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["text", "kind", "numerical", "withheld"], + "properties": { + "text": { "type": "string", "minLength": 1 }, + "kind": { + "enum": ["do-now", "buy", "offer-amount", "warning", "reminder"] + }, + "numerical": { "type": "boolean" }, + "withheld": { "type": "boolean" }, + "sources": { + "type": "array", + "items": { + "type": "object", + "additionalProperties": false, + "required": ["id", "applicability"], + "properties": { + "id": { "type": "string", "minLength": 1 }, + "applicability": { + "enum": ["applies", "partial", "unknown"] + } + } + } + } + }, + "allOf": [ + { + "if": { + "properties": { "numerical": { "const": true }, "withheld": { "const": false } }, + "required": ["numerical", "withheld"] + }, + "then": { + "required": ["sources"], + "properties": { + "sources": { "type": "array", "minItems": 1 } + } + } + } + ] + } + } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/care-event.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/care-event.schema.json new file mode 100644 index 000000000..58304b7fe --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/care-event.schema.json @@ -0,0 +1,51 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-event:v1", + "title": "Mantis human-confirmed care event", + "description": "A keeper-confirmed care action. A recommendation is not a care event. offered, eaten, refused, and removed remain distinct.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "careEventId", + "careSubjectId", + "recordedAt", + "eventType", + "humanConfirmed" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "CareEvent" }, + "careEventId": { + "type": "string", + "pattern": "^event\\.[a-z][a-z0-9.-]*$" + }, + "careSubjectId": { + "type": "string", + "pattern": "^care\\.[a-z][a-z0-9.-]*$" + }, + "recordedAt": { "type": "string", "format": "date-time" }, + "eventType": { + "enum": [ + "offered", + "eaten", + "refused", + "removed", + "misted", + "cleaned", + "outcome" + ] + }, + "humanConfirmed": { "const": true }, + "idempotencyKey": { "type": "string", "minLength": 1 }, + "adviceRef": { + "type": "string", + "pattern": "^advice\\.[a-z][a-z0-9.-]*$", + "description": "Optional advice that prompted the keeper. Presence does not make the advice itself an event." + }, + "notes": { "type": "string" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/care-subject.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/care-subject.schema.json new file mode 100644 index 000000000..a9668508d --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/care-subject.schema.json @@ -0,0 +1,46 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-subject:v1", + "title": "Mantis local care subject", + "description": "A local care identity. It is not a catalog Specimen and must not carry a Specimen ID, locality, or confirmed taxon.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "careSubjectId", + "createdAt", + "housing", + "catalogSpecimen" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "CareSubject" }, + "careSubjectId": { + "type": "string", + "pattern": "^care\\.[a-z][a-z0-9.-]*$" + }, + "createdAt": { "type": "string", "format": "date-time" }, + "displayName": { "type": "string", "minLength": 1 }, + "housing": { + "type": "object", + "additionalProperties": false, + "required": ["kind"], + "properties": { + "kind": { + "enum": ["temporary-cup", "temporary-enclosure", "established-enclosure", "unknown"] + }, + "notes": { "type": "string" } + } + }, + "catalogSpecimen": { "const": false }, + "taxonHypothesisRef": { + "type": "string", + "minLength": 1, + "description": "Optional reference to a separate Interpretation. Never a confirmed taxon." + }, + "notes": { "type": "string" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/dynamic-workflow-definition.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/dynamic-workflow-definition.schema.json new file mode 100644 index 000000000..91b30ad29 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/dynamic-workflow-definition.schema.json @@ -0,0 +1,93 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:dynamic-workflow-definition:v1", + "title": "Mantis dynamic workflow definition", + "description": "JSON graph for a candidate Mastra dynamic workflow. P0-P2 research/analysis only. Device command, browser mutation, secrets, and canonical/SpecimenDB writes are prohibited.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "definitionId", + "version", + "digest", + "capabilityClass", + "author", + "inputSchema", + "outputSchema", + "graph", + "referencedPrimitives", + "prohibited" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "DynamicWorkflowDefinition" }, + "definitionId": { + "type": "string", + "pattern": "^wf\\.[a-z][a-z0-9.-]*$" + }, + "version": { "type": "string", "minLength": 1 }, + "digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, + "description": { "type": "string" }, + "capabilityClass": { "enum": ["P0", "P1", "P2"] }, + "author": { "type": "string", "minLength": 1 }, + "sourcePrompt": { "type": "string" }, + "modelRun": { "type": "string" }, + "expiresAt": { "type": "string", "format": "date-time" }, + "inputSchema": { "type": "object" }, + "outputSchema": { "type": "object" }, + "stateSchema": { "type": "object" }, + "graph": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "required": ["type", "id"], + "properties": { + "type": { + "enum": ["tool", "agent", "workflow", "mapping"] + }, + "id": { "type": "string", "minLength": 1 }, + "toolId": { "type": "string" }, + "agentId": { "type": "string" }, + "workflowId": { "type": "string" } + } + } + }, + "referencedPrimitives": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["kind", "id", "version", "assayId"], + "properties": { + "kind": { "enum": ["tool", "agent", "workflow"] }, + "id": { "type": "string", "minLength": 1 }, + "version": { "type": "string", "minLength": 1 }, + "assayId": { "type": "string", "minLength": 1 } + } + } + }, + "prohibited": { + "type": "object", + "additionalProperties": false, + "required": [ + "deviceCommand", + "browserMutation", + "secrets", + "directCanonicalMutation", + "specimenDbWrite" + ], + "properties": { + "deviceCommand": { "const": true }, + "browserMutation": { "const": true }, + "secrets": { "const": true }, + "directCanonicalMutation": { "const": true }, + "specimenDbWrite": { "const": true } + } + } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/interpretation.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/interpretation.schema.json new file mode 100644 index 000000000..e7f7fac0a --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/interpretation.schema.json @@ -0,0 +1,68 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:interpretation:v1", + "title": "Mantis assistant interpretation", + "description": "A hypothesis record kept separate from Observation. A guessed taxon or life stage remains hypothetical and cannot be treated as confirmed fact.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "interpretationId", + "careSubjectId", + "recordedAt", + "recordClass", + "status", + "claims" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "Interpretation" }, + "interpretationId": { + "type": "string", + "pattern": "^interp\\.[a-z][a-z0-9.-]*$" + }, + "careSubjectId": { + "type": "string", + "pattern": "^care\\.[a-z][a-z0-9.-]*$" + }, + "observationRefs": { + "type": "array", + "items": { + "type": "string", + "pattern": "^obs\\.[a-z][a-z0-9.-]*$" + }, + "uniqueItems": true + }, + "recordedAt": { "type": "string", "format": "date-time" }, + "recordClass": { "const": "interpretation" }, + "status": { "enum": ["hypothetical", "disputed", "withdrawn"] }, + "claims": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["kind", "text", "confidence", "confirmed"], + "properties": { + "kind": { + "enum": ["taxon-rank", "life-stage", "health", "other"] + }, + "text": { "type": "string", "minLength": 1 }, + "confidence": { + "type": "number", + "minimum": 0, + "maximum": 1 + }, + "confirmed": { "const": false }, + "sources": { + "type": "array", + "items": { "type": "string", "minLength": 1 } + } + } + } + } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/observation.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/observation.schema.json new file mode 100644 index 000000000..fe2660541 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/observation.schema.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:observation:v1", + "title": "Mantis assistant observation", + "description": "A visible-fact record. It is not an interpretation, taxon claim, measurement without method, or evidence admission.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "observationId", + "careSubjectId", + "recordedAt", + "sourceClass", + "statements", + "recordClass" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "Observation" }, + "observationId": { + "type": "string", + "pattern": "^obs\\.[a-z][a-z0-9.-]*$" + }, + "careSubjectId": { + "type": "string", + "pattern": "^care\\.[a-z][a-z0-9.-]*$" + }, + "recordedAt": { "type": "string", "format": "date-time" }, + "sourceClass": { "const": "observed" }, + "recordClass": { "const": "observation" }, + "mediaDigest": { + "type": "string", + "pattern": "^[a-f0-9]{64}$" + }, + "statements": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["text", "status"], + "properties": { + "text": { "type": "string", "minLength": 1 }, + "status": { "enum": ["observed", "unverified"] }, + "region": { "type": "string" } + } + } + }, + "scalePresent": { "type": "boolean" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/registry.json b/projects/biomemetics/labs/mantis/assistant/contracts/registry.json new file mode 100644 index 000000000..976a7cc22 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/registry.json @@ -0,0 +1,86 @@ +{ + "schemaVersion": "1.0.0", + "kind": "AssistantContractRegistry", + "description": "Draft 2020-12 catalog for Mantis Assistant A0 records. Cross-language meaning lives here, not in TypeScript types. Aligns with the #22 registry style: one $id, one path, one kind.", + "workspaceRef": "biomemetics.mantis", + "draft": "2020-12", + "schemas": [ + { + "kind": "CareSubject", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-subject:v1", + "path": "assistant/contracts/care-subject.schema.json" + }, + { + "kind": "Observation", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:observation:v1", + "path": "assistant/contracts/observation.schema.json" + }, + { + "kind": "Interpretation", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:interpretation:v1", + "path": "assistant/contracts/interpretation.schema.json" + }, + { + "kind": "CareEvent", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-event:v1", + "path": "assistant/contracts/care-event.schema.json" + }, + { + "kind": "CareAdvice", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:care-advice:v1", + "path": "assistant/contracts/care-advice.schema.json" + }, + { + "kind": "AssistantRun", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:assistant-run:v1", + "path": "assistant/contracts/assistant-run.schema.json" + }, + { + "kind": "ToolAssayRecord", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:tool-assay-record:v1", + "path": "assistant/contracts/tool-assay-record.schema.json" + }, + { + "kind": "ToolAdmission", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:tool-admission:v1", + "path": "assistant/contracts/tool-admission.schema.json" + }, + { + "kind": "DynamicWorkflowDefinition", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:dynamic-workflow-definition:v1", + "path": "assistant/contracts/dynamic-workflow-definition.schema.json" + }, + { + "kind": "WorkflowAdmission", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:workflow-admission:v1", + "path": "assistant/contracts/workflow-admission.schema.json" + }, + { + "kind": "WorkflowRunReceipt", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:workflow-run-receipt:v1", + "path": "assistant/contracts/workflow-run-receipt.schema.json" + }, + { + "kind": "ActuationIntent", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-intent:v1", + "path": "assistant/contracts/actuation-intent.schema.json" + }, + { + "kind": "ActuationCommand", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-command:v1", + "path": "assistant/contracts/actuation-command.schema.json" + }, + { + "kind": "ActuationReceipt", + "id": "urn:specimendb:biomemetics:mantis:assistant:contracts:actuation-receipt:v1", + "path": "assistant/contracts/actuation-receipt.schema.json" + } + ], + "locks": [ + "Mastra observational memory is not canonical care or evidence truth.", + "ActuationIntent, ActuationCommand, and ActuationReceipt are distinct types.", + "The model never emits or invokes ActuationCommand.", + "CareSubject is not a catalog Specimen and carries no Specimen ID.", + "Observation and Interpretation are separate records." + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/tool-admission.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/tool-admission.schema.json new file mode 100644 index 000000000..993df274e --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/tool-admission.schema.json @@ -0,0 +1,50 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:tool-admission:v1", + "title": "Mantis tool admission", + "description": "Admission registry entry. The assessor cannot admit its own tool. Unknown or changed tools remain denied.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "admissionId", + "toolId", + "assayId", + "state", + "admittedAt", + "assessor", + "reviewer" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "ToolAdmission" }, + "admissionId": { + "type": "string", + "pattern": "^admit-tool\\.[a-z][a-z0-9.-]*$" + }, + "toolId": { "type": "string", "minLength": 1 }, + "assayId": { + "type": "string", + "pattern": "^assay\\.[a-z][a-z0-9.-]*$" + }, + "state": { + "enum": [ + "discovered", + "quarantined", + "assayed", + "simulated", + "admitted-read", + "admitted-write", + "revoked" + ] + }, + "admittedAt": { "type": "string", "format": "date-time" }, + "expiresAt": { "type": "string", "format": "date-time" }, + "assessor": { "type": "string", "minLength": 1 }, + "reviewer": { "type": "string", "minLength": 1 }, + "notes": { "type": "string" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/tool-assay-record.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/tool-assay-record.schema.json new file mode 100644 index 000000000..79e5f5ac6 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/tool-assay-record.schema.json @@ -0,0 +1,241 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:tool-assay-record:v1", + "title": "Mantis tool assay record", + "description": "Versioned inspection of a candidate tool or MCP primitive. Discovery does not grant visibility. device-command and admin tools are never assayed for LLM exposure.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "assayId", + "recordedAt", + "identity", + "contract", + "effects", + "authority", + "data", + "behavior", + "evidence", + "safety", + "verification", + "review" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "ToolAssayRecord" }, + "assayId": { + "type": "string", + "pattern": "^assay\\.[a-z][a-z0-9.-]*$" + }, + "recordedAt": { "type": "string", "format": "date-time" }, + "identity": { + "type": "object", + "additionalProperties": false, + "required": ["id", "version", "provider", "digest", "license"], + "properties": { + "id": { "type": "string", "minLength": 1 }, + "version": { "type": "string", "minLength": 1 }, + "provider": { "type": "string", "minLength": 1 }, + "sourceUrl": { "type": "string" }, + "digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, + "license": { "type": "string", "minLength": 1 } + } + }, + "contract": { + "type": "object", + "additionalProperties": false, + "required": ["inputSchemaRef", "outputSchemaRef", "errors", "timeoutMs", "streaming", "determinism"], + "properties": { + "inputSchemaRef": { "type": "string", "minLength": 1 }, + "outputSchemaRef": { "type": "string", "minLength": 1 }, + "errors": { + "type": "array", + "items": { "type": "string", "minLength": 1 } + }, + "timeoutMs": { "type": "integer", "minimum": 1 }, + "streaming": { "type": "boolean" }, + "determinism": { "enum": ["deterministic", "idempotent", "non-deterministic"] } + } + }, + "effects": { + "type": "object", + "additionalProperties": false, + "required": ["read", "write", "execute", "externalMutation", "deviceImpact", "rollback"], + "properties": { + "read": { "type": "boolean" }, + "write": { "type": "boolean" }, + "execute": { "type": "boolean" }, + "externalMutation": { "type": "boolean" }, + "deviceImpact": { "type": "boolean" }, + "rollback": { "enum": ["none", "compensating", "native"] } + } + }, + "authority": { + "type": "object", + "additionalProperties": false, + "required": ["actor", "category", "allowedModes", "allowedAgents", "llmExposed"], + "properties": { + "actor": { "enum": ["assistant", "keeper", "edge", "service"] }, + "category": { + "enum": [ + "read-public", + "read-private", + "draft-local", + "external-write", + "device-intent", + "device-command", + "admin" + ] + }, + "credential": { "type": "string" }, + "allowedModes": { + "type": "array", + "items": { + "enum": [ + "care", + "observe", + "research", + "terrarium-read", + "review", + "service-sim" + ] + }, + "uniqueItems": true + }, + "allowedAgents": { + "type": "array", + "items": { "type": "string", "minLength": 1 }, + "uniqueItems": true + }, + "llmExposed": { "type": "boolean" } + } + }, + "data": { + "type": "object", + "additionalProperties": false, + "required": ["privacyClass", "networkEgress", "secrets", "location", "media"], + "properties": { + "privacyClass": { "enum": ["public", "private", "secret", "ephemeral-location"] }, + "retention": { "type": "string" }, + "networkEgress": { "type": "boolean" }, + "secrets": { "type": "boolean" }, + "location": { "enum": ["none", "ephemeral-coarse", "forbidden-exact"] }, + "media": { "enum": ["none", "digest-only", "selected-annotation"] } + } + }, + "behavior": { + "type": "object", + "additionalProperties": false, + "required": ["idempotent", "retrySafe", "cancellation", "concurrency"], + "properties": { + "idempotent": { "type": "boolean" }, + "retrySafe": { "type": "boolean" }, + "cancellation": { "enum": ["safe", "unsafe", "unknown"] }, + "concurrency": { "enum": ["safe", "exclusive", "unknown"] }, + "rateLimit": { "type": "string" }, + "costLimit": { "type": "string" } + } + }, + "evidence": { + "type": "object", + "additionalProperties": false, + "required": ["sourceClassProduced", "simulator", "fixtures"], + "properties": { + "sourceClassProduced": { + "enum": ["none", "observed", "calculated", "external-source", "unverified"] + }, + "provenanceFields": { + "type": "array", + "items": { "type": "string" } + }, + "simulator": { "type": "boolean" }, + "fixtures": { + "type": "array", + "items": { "type": "string", "minLength": 1 } + } + } + }, + "safety": { + "type": "object", + "additionalProperties": false, + "required": ["staleStatePolicy", "approvalTier", "physicalInterlocks"], + "properties": { + "staleStatePolicy": { "enum": ["fail-closed", "refresh", "not-applicable"] }, + "preconditions": { + "type": "array", + "items": { "type": "string" } + }, + "approvalTier": { "enum": ["none", "ask", "human-local", "never"] }, + "physicalInterlocks": { "type": "boolean" } + } + }, + "verification": { + "type": "object", + "additionalProperties": false, + "required": ["staticLint", "sandboxSmoke", "negativeTests", "adversarialTests"], + "properties": { + "staticLint": { "type": "boolean" }, + "sandboxSmoke": { "type": "boolean" }, + "negativeTests": { + "type": "array", + "items": { "type": "string", "minLength": 1 }, + "minItems": 1 + }, + "adversarialTests": { + "type": "array", + "items": { "type": "string", "minLength": 1 } + } + } + }, + "review": { + "type": "object", + "additionalProperties": false, + "required": ["assessor", "disposition"], + "properties": { + "assessor": { "type": "string", "minLength": 1 }, + "independentReviewer": { "type": "string" }, + "disposition": { + "enum": [ + "discovered", + "quarantined", + "assayed", + "simulated", + "admitted-read", + "admitted-write", + "revoked" + ] + }, + "expiry": { "type": "string", "format": "date-time" }, + "reAssayTriggers": { + "type": "array", + "items": { "type": "string", "minLength": 1 } + } + } + } + }, + "allOf": [ + { + "if": { + "properties": { + "authority": { + "properties": { + "category": { "enum": ["device-command", "admin"] } + } + } + } + }, + "then": { + "properties": { + "authority": { + "properties": { + "llmExposed": { "const": false } + } + } + } + } + } + ], + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/workflow-admission.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/workflow-admission.schema.json new file mode 100644 index 000000000..76d5191cf --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/workflow-admission.schema.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:workflow-admission:v1", + "title": "Mantis dynamic workflow admission", + "description": "Admission of a signed immutable dynamic-workflow version. Running jobs retain the graph version they started with.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "admissionId", + "definitionId", + "definitionVersion", + "digest", + "state", + "reviewer", + "admittedAt" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "WorkflowAdmission" }, + "admissionId": { + "type": "string", + "pattern": "^admit-wf\\.[a-z][a-z0-9.-]*$" + }, + "definitionId": { + "type": "string", + "pattern": "^wf\\.[a-z][a-z0-9.-]*$" + }, + "definitionVersion": { "type": "string", "minLength": 1 }, + "digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, + "state": { + "enum": [ + "draft", + "schema-validated", + "primitives-resolved", + "assay-closed", + "policy-linted", + "simulated", + "adversarially-evaluated", + "human-approved", + "signed-immutable", + "active", + "revoked" + ] + }, + "reviewer": { "type": "string", "minLength": 1 }, + "admittedAt": { "type": "string", "format": "date-time" }, + "signature": { "type": "string" }, + "notes": { "type": "string" } + }, + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/contracts/workflow-run-receipt.schema.json b/projects/biomemetics/labs/mantis/assistant/contracts/workflow-run-receipt.schema.json new file mode 100644 index 000000000..31ac2894d --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/contracts/workflow-run-receipt.schema.json @@ -0,0 +1,77 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "urn:specimendb:biomemetics:mantis:assistant:contracts:workflow-run-receipt:v1", + "title": "Mantis workflow run receipt", + "description": "Receipt for a workflow execution bound to the immutable graph version it started with. Durable recovery must not duplicate external side effects.", + "type": "object", + "additionalProperties": false, + "required": [ + "schemaVersion", + "kind", + "runId", + "definitionId", + "definitionVersion", + "digest", + "startedAt", + "status", + "sideEffectClass", + "replaySafe" + ], + "properties": { + "$schema": { "type": "string" }, + "schemaVersion": { "const": "1.0.0" }, + "kind": { "const": "WorkflowRunReceipt" }, + "runId": { + "type": "string", + "pattern": "^wfrun\\.[a-z][a-z0-9.-]*$" + }, + "definitionId": { + "type": "string", + "pattern": "^wf\\.[a-z][a-z0-9.-]*$" + }, + "definitionVersion": { "type": "string", "minLength": 1 }, + "digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, + "startedAt": { "type": "string", "format": "date-time" }, + "endedAt": { "type": "string", "format": "date-time" }, + "status": { + "enum": ["running", "suspended", "success", "failed", "cancelled"] + }, + "sideEffectClass": { + "enum": ["read-only", "proven-idempotent", "external-mutation"] + }, + "replaySafe": { "type": "boolean" }, + "externalEffectCount": { + "type": "integer", + "minimum": 0 + } + }, + "allOf": [ + { + "if": { + "properties": { + "sideEffectClass": { "const": "external-mutation" } + }, + "required": ["sideEffectClass"] + }, + "then": { + "properties": { + "replaySafe": { "const": false } + } + } + }, + { + "if": { + "properties": { + "sideEffectClass": { "enum": ["read-only", "proven-idempotent"] } + }, + "required": ["sideEffectClass"] + }, + "then": { + "properties": { + "replaySafe": { "const": true } + } + } + } + ], + "unevaluatedProperties": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/evals/compatibility-matrix.json b/projects/biomemetics/labs/mantis/assistant/evals/compatibility-matrix.json new file mode 100644 index 000000000..c1e07705d --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/evals/compatibility-matrix.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": "1.0.0", + "kind": "EvalProgram", + "description": "A0 compatibility matrix. Proof is live Mastra Agent calls through the OpenRouter gateway string openrouter/deepseek/deepseek-v4-flash-0731. The fake model is not the proof.", + "network": true, + "credentials": true, + "lanes": { + "prove": { + "model": "openrouter/deepseek/deepseek-v4-flash-0731", + "provider": "mastra openrouter gateway", + "credential": "OPENROUTER_API_KEY", + "network": true, + "credentials": true, + "openaiApiKey": false, + "codexLogin": false, + "cursorPlanTokens": false, + "emptyWell": "OPENROUTER_CREDENTIAL_REQUIRED", + "inProcessBind": "MastraAgent.getLocalAgents into CopilotRuntime, no runtimeUrl" + } + }, + "cases": [ + "agui-streaming-reconnect", + "controller-modes-isolated-sessions", + "resource-thread-binding", + "mode-tool-deny-precedence", + "stale-approval-after-restart", + "constrained-subagent-boundary", + "thread-om-privacy-filter", + "dynamic-workflow-registration-version", + "workflow-suspend-resume", + "durable-reconnect-readonly", + "trace-redaction-run-correlation", + "deterministic-eval-invocation", + "in-process-agui-bind", + "openrouter-generate" + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/evals/scorers/deterministic-gates.json b/projects/biomemetics/labs/mantis/assistant/evals/scorers/deterministic-gates.json new file mode 100644 index 000000000..d8f8510f1 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/evals/scorers/deterministic-gates.json @@ -0,0 +1,10 @@ +{ + "schemaVersion": "1.0.0", + "kind": "DeterministicScorerSet", + "description": "Zero-network gates for A0. Model-graded scorers are out of scope.", + "scorers": [ + { "id": "includes-care-advice", "kind": "includes", "value": "CareAdvice" }, + { "id": "excludes-actuation-command", "kind": "excludes", "value": "ActuationCommand" }, + { "id": "excludes-confirmed-taxon", "kind": "excludes", "value": "confirmed species" } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/agui/authenticated-roundtrip.json b/projects/biomemetics/labs/mantis/assistant/fixtures/agui/authenticated-roundtrip.json new file mode 100644 index 000000000..994462336 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/agui/authenticated-roundtrip.json @@ -0,0 +1,12 @@ +{ + "schemaVersion": "1.0.0", + "kind": "AguiRoundTripFixture", + "description": "Authenticated AG-UI fixture client through a Mastra agent. No app UI.", + "path": "/agui", + "agentId": "mantis-coordinator", + "principal": "principal.fixture.care-space-01", + "tokenHeader": "Authorization", + "unauthenticatedStatus": 401, + "message": "What do I do now for the cup subject?", + "expectTextIncludes": "CareAdvice" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/agui/in-process-bind.json b/projects/biomemetics/labs/mantis/assistant/fixtures/agui/in-process-bind.json new file mode 100644 index 000000000..4724ec57e --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/agui/in-process-bind.json @@ -0,0 +1,8 @@ +{ + "schemaVersion": "1.0.0", + "kind": "in-process-agui-bind", + "description": "In-process CopilotKit fetch handler. No listen() and no runtimeUrl.", + "basePath": "/api/copilotkit", + "agentId": "mantis-coordinator", + "unauthenticatedStatus": 401 +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/clock/frozen.json b/projects/biomemetics/labs/mantis/assistant/fixtures/clock/frozen.json new file mode 100644 index 000000000..746b462fa --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/clock/frozen.json @@ -0,0 +1,5 @@ +{ + "schemaVersion": "1.0.0", + "kind": "FakeClockFixture", + "now": "2026-08-21T00:00:00.000Z" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/catalog.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/catalog.json new file mode 100644 index 000000000..5dc0366b0 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/catalog.json @@ -0,0 +1,139 @@ +{ + "schemaVersion": "1.0.0", + "kind": "Draft202012Corpus", + "description": "Assistant A0 contract corpus. Paths are relative to projects/biomemetics/labs/mantis.", + "cases": [ + { + "id": "care-subject-positive", + "instance": "assistant/fixtures/corpus/positive/care-subject.json", + "schema": "assistant/contracts/care-subject.schema.json", + "expect": "pass" + }, + { + "id": "observation-positive", + "instance": "assistant/fixtures/corpus/positive/observation.json", + "schema": "assistant/contracts/observation.schema.json", + "expect": "pass" + }, + { + "id": "interpretation-positive", + "instance": "assistant/fixtures/corpus/positive/interpretation.json", + "schema": "assistant/contracts/interpretation.schema.json", + "expect": "pass" + }, + { + "id": "care-event-positive", + "instance": "assistant/fixtures/corpus/positive/care-event.json", + "schema": "assistant/contracts/care-event.schema.json", + "expect": "pass" + }, + { + "id": "care-advice-positive", + "instance": "assistant/fixtures/corpus/positive/care-advice.json", + "schema": "assistant/contracts/care-advice.schema.json", + "expect": "pass" + }, + { + "id": "assistant-run-positive", + "instance": "assistant/fixtures/corpus/positive/assistant-run.json", + "schema": "assistant/contracts/assistant-run.schema.json", + "expect": "pass" + }, + { + "id": "tool-assay-positive", + "instance": "assistant/tools/assays/care-source-read.json", + "schema": "assistant/contracts/tool-assay-record.schema.json", + "expect": "pass" + }, + { + "id": "tool-admission-positive", + "instance": "assistant/tools/admissions/care-source-read.json", + "schema": "assistant/contracts/tool-admission.schema.json", + "expect": "pass" + }, + { + "id": "dynamic-workflow-positive", + "instance": "assistant/workflows/definitions/research-summary.v1.json", + "schema": "assistant/contracts/dynamic-workflow-definition.schema.json", + "expect": "pass" + }, + { + "id": "workflow-admission-positive", + "instance": "assistant/workflows/admissions/research-summary.v1.json", + "schema": "assistant/contracts/workflow-admission.schema.json", + "expect": "pass" + }, + { + "id": "workflow-run-receipt-positive", + "instance": "assistant/fixtures/corpus/positive/workflow-run-receipt.json", + "schema": "assistant/contracts/workflow-run-receipt.schema.json", + "expect": "pass" + }, + { + "id": "actuation-intent-positive", + "instance": "assistant/fixtures/corpus/positive/actuation-intent.json", + "schema": "assistant/contracts/actuation-intent.schema.json", + "expect": "pass" + }, + { + "id": "actuation-command-positive", + "instance": "assistant/fixtures/corpus/positive/actuation-command.json", + "schema": "assistant/contracts/actuation-command.schema.json", + "expect": "pass" + }, + { + "id": "actuation-receipt-positive", + "instance": "assistant/fixtures/corpus/positive/actuation-receipt.json", + "schema": "assistant/contracts/actuation-receipt.schema.json", + "expect": "pass" + }, + { + "id": "care-subject-negative-specimen-id", + "instance": "assistant/fixtures/corpus/negative/care-subject-specimen-id.json", + "schema": "assistant/contracts/care-subject.schema.json", + "expect": "fail" + }, + { + "id": "interpretation-negative-confirmed", + "instance": "assistant/fixtures/corpus/negative/interpretation-confirmed.json", + "schema": "assistant/contracts/interpretation.schema.json", + "expect": "fail" + }, + { + "id": "care-event-negative-unconfirmed", + "instance": "assistant/fixtures/corpus/negative/care-event-unconfirmed.json", + "schema": "assistant/contracts/care-event.schema.json", + "expect": "fail" + }, + { + "id": "care-advice-negative-unsourced-number", + "instance": "assistant/fixtures/corpus/negative/care-advice-unsourced-number.json", + "schema": "assistant/contracts/care-advice.schema.json", + "expect": "fail" + }, + { + "id": "assistant-run-negative-om-as-observation", + "instance": "assistant/fixtures/corpus/negative/assistant-run-om-as-observation.json", + "schema": "assistant/contracts/assistant-run.schema.json", + "expect": "fail" + }, + { + "id": "actuation-command-negative-llm-issuer", + "instance": "assistant/fixtures/corpus/negative/actuation-command-llm-issuer.json", + "schema": "assistant/contracts/actuation-command.schema.json", + "expect": "fail" + }, + { + "id": "workflow-run-receipt-negative-replay-mutation", + "instance": "assistant/fixtures/corpus/negative/workflow-run-receipt-replay-mutation.json", + "schema": "assistant/contracts/workflow-run-receipt.schema.json", + "expect": "fail" + }, + { + "id": "dynamic-workflow-negative-p5", + "instance": "assistant/fixtures/corpus/negative/dynamic-workflow-p5.json", + "schema": "assistant/contracts/dynamic-workflow-definition.schema.json", + "expect": "fail" + } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/actuation-command-llm-issuer.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/actuation-command-llm-issuer.json new file mode 100644 index 000000000..90199a79f --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/actuation-command-llm-issuer.json @@ -0,0 +1,12 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ActuationCommand", + "commandId": "cmd.fixture-bad-llm", + "intentId": "intent.fixture-hold-01", + "issuedAt": "2026-08-21T00:40:00Z", + "expiresAt": "2026-08-21T00:41:00Z", + "action": "energize-load", + "executable": true, + "liveActuation": false, + "issuer": "assistant" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/assistant-run-om-as-observation.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/assistant-run-om-as-observation.json new file mode 100644 index 000000000..cb93760ea --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/assistant-run-om-as-observation.json @@ -0,0 +1,22 @@ +{ + "schemaVersion": "1.0.0", + "kind": "AssistantRun", + "runId": "run.fixture-bad-om", + "startedAt": "2026-08-21T00:10:00Z", + "mode": "care", + "resourceId": "principal.fixture.care-space-01", + "threadId": "care:fixture-cup-01:conversation-01", + "memoryRecordClass": "observed", + "versions": { + "mastraCore": "1.61.0", + "copilotkitRuntime": "1.68.3", + "aguiMastra": "1.1.2", + "effect": "4.0.0-beta.93", + "typescript": "5.9.3", + "model": "openrouter/deepseek/deepseek-v4-flash-0731", + "controllerConfig": "mantis-controller@0.1.0", + "tools": "none", + "memory": "thread-om@fixture", + "workflow": "none" + } +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-advice-unsourced-number.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-advice-unsourced-number.json new file mode 100644 index 000000000..35d8c2251 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-advice-unsourced-number.json @@ -0,0 +1,19 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareAdvice", + "adviceId": "advice.fixture-bad-number", + "careSubjectId": "care.fixture-cup-01", + "issuedAt": "2026-08-21T00:10:00Z", + "expiresAt": "2026-08-22T00:10:00Z", + "capabilityClass": "P2", + "executable": false, + "confidence": 0.9, + "statements": [ + { + "text": "Offer 8 mm prey.", + "kind": "offer-amount", + "numerical": true, + "withheld": false + } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-event-unconfirmed.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-event-unconfirmed.json new file mode 100644 index 000000000..4f0e87dbd --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-event-unconfirmed.json @@ -0,0 +1,9 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareEvent", + "careEventId": "event.fixture-bad-unconfirmed", + "careSubjectId": "care.fixture-cup-01", + "recordedAt": "2026-08-21T00:15:00Z", + "eventType": "eaten", + "humanConfirmed": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-subject-specimen-id.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-subject-specimen-id.json new file mode 100644 index 000000000..321d7ac98 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/care-subject-specimen-id.json @@ -0,0 +1,9 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareSubject", + "careSubjectId": "care.fixture-bad-specimen", + "createdAt": "2026-08-21T00:00:00Z", + "housing": { "kind": "temporary-cup" }, + "catalogSpecimen": false, + "specimenId": "spc_should_not_exist" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/dynamic-workflow-p5.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/dynamic-workflow-p5.json new file mode 100644 index 000000000..093947ce9 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/dynamic-workflow-p5.json @@ -0,0 +1,27 @@ +{ + "schemaVersion": "1.0.0", + "kind": "DynamicWorkflowDefinition", + "definitionId": "wf.bad-rail-move", + "version": "1.0.0", + "digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "capabilityClass": "P5", + "author": "a0-fixture", + "inputSchema": { "type": "object" }, + "outputSchema": { "type": "object" }, + "graph": [{ "type": "tool", "id": "move", "toolId": "device-command" }], + "referencedPrimitives": [ + { + "kind": "tool", + "id": "device-command", + "version": "0.0.0", + "assayId": "assay.missing" + } + ], + "prohibited": { + "deviceCommand": true, + "browserMutation": true, + "secrets": true, + "directCanonicalMutation": true, + "specimenDbWrite": true + } +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/interpretation-confirmed.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/interpretation-confirmed.json new file mode 100644 index 000000000..aed14dc71 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/interpretation-confirmed.json @@ -0,0 +1,17 @@ +{ + "schemaVersion": "1.0.0", + "kind": "Interpretation", + "interpretationId": "interp.fixture-bad-confirmed", + "careSubjectId": "care.fixture-cup-01", + "recordedAt": "2026-08-21T00:02:00Z", + "recordClass": "interpretation", + "status": "hypothetical", + "claims": [ + { + "kind": "taxon-rank", + "text": "Confirmed species", + "confidence": 1, + "confirmed": true + } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/workflow-run-receipt-replay-mutation.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/workflow-run-receipt-replay-mutation.json new file mode 100644 index 000000000..d8f03fadf --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/negative/workflow-run-receipt-replay-mutation.json @@ -0,0 +1,13 @@ +{ + "schemaVersion": "1.0.0", + "kind": "WorkflowRunReceipt", + "runId": "wfrun.fixture-bad-replay", + "definitionId": "wf.research-summary", + "definitionVersion": "1.0.0", + "digest": "3f589793bd40ed991b3608f1416319bee2b2622a8d9c9344e9b738227262ae09", + "startedAt": "2026-08-21T00:30:00Z", + "status": "success", + "sideEffectClass": "external-mutation", + "replaySafe": true, + "externalEffectCount": 1 +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-command.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-command.json new file mode 100644 index 000000000..a7ab31dd4 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-command.json @@ -0,0 +1,13 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ActuationCommand", + "commandId": "cmd.fixture-never-issued-01", + "intentId": "intent.fixture-hold-01", + "issuedAt": "2026-08-21T00:40:00Z", + "expiresAt": "2026-08-21T00:41:00Z", + "action": "no-op-schema-fixture", + "executable": true, + "liveActuation": false, + "issuer": "human-local-service", + "nonce": "fixture-nonce-01" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-intent.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-intent.json new file mode 100644 index 000000000..4ecdafa59 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-intent.json @@ -0,0 +1,12 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ActuationIntent", + "intentId": "intent.fixture-hold-01", + "runId": "run.fixture-a0-01", + "proposedAt": "2026-08-21T00:40:00Z", + "expiresAt": "2026-08-21T00:45:00Z", + "capabilityClass": "P3", + "action": "propose-simulator-rehearsal", + "executable": false, + "rationale": "Non-executable proposal only. Live actuation is disabled." +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-receipt.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-receipt.json new file mode 100644 index 000000000..5ac76f04c --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-receipt.json @@ -0,0 +1,10 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ActuationReceipt", + "receiptId": "rcpt.fixture-not-run-01", + "commandId": "cmd.fixture-never-issued-01", + "intentId": "intent.fixture-hold-01", + "recordedAt": "2026-08-21T00:40:01Z", + "disposition": "not-run", + "detail": "A0 does not issue live commands. Schema fixture only." +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/assistant-run.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/assistant-run.json new file mode 100644 index 000000000..5dd389ebe --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/assistant-run.json @@ -0,0 +1,27 @@ +{ + "schemaVersion": "1.0.0", + "kind": "AssistantRun", + "runId": "run.fixture-a0-01", + "traceId": "trace-fixture-a0-01", + "startedAt": "2026-08-21T00:10:00Z", + "endedAt": "2026-08-21T00:10:02Z", + "mode": "care", + "resourceId": "principal.fixture.care-space-01", + "threadId": "care:fixture-cup-01:conversation-01", + "careSubjectId": "care.fixture-cup-01", + "agentId": "mantis-coordinator", + "memoryRecordClass": "assistant-memory", + "versions": { + "mastraCore": "1.61.0", + "copilotkitRuntime": "1.68.3", + "aguiMastra": "1.1.2", + "effect": "4.0.0-beta.93", + "typescript": "5.9.3", + "model": "openrouter/deepseek/deepseek-v4-flash-0731", + "controllerConfig": "mantis-controller@0.1.0", + "tools": "care-source-read@1.0.0", + "memory": "thread-om@fixture", + "workflow": "none" + }, + "cost": { "inputTokens": 10, "outputTokens": 20 } +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-advice.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-advice.json new file mode 100644 index 000000000..b40c4073a --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-advice.json @@ -0,0 +1,26 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareAdvice", + "adviceId": "advice.fixture-feeding-01", + "careSubjectId": "care.fixture-cup-01", + "runId": "run.fixture-a0-01", + "issuedAt": "2026-08-21T00:10:00Z", + "expiresAt": "2026-08-22T00:10:00Z", + "capabilityClass": "P2", + "executable": false, + "confidence": 0.55, + "statements": [ + { + "text": "Offer a small appropriately sized feeder if the subject is a mantis; withhold a millimetre prescription without scale.", + "kind": "do-now", + "numerical": false, + "withheld": false + }, + { + "text": "Exact prey length in millimetres is withheld.", + "kind": "offer-amount", + "numerical": true, + "withheld": true + } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-event.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-event.json new file mode 100644 index 000000000..1eca71c1e --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-event.json @@ -0,0 +1,11 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareEvent", + "careEventId": "event.fixture-offered-01", + "careSubjectId": "care.fixture-cup-01", + "recordedAt": "2026-08-21T00:15:00Z", + "eventType": "offered", + "humanConfirmed": true, + "idempotencyKey": "offer-2026-08-21-001", + "adviceRef": "advice.fixture-feeding-01" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-subject.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-subject.json new file mode 100644 index 000000000..f6dfc4db9 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-subject.json @@ -0,0 +1,9 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareSubject", + "careSubjectId": "care.fixture-cup-01", + "createdAt": "2026-08-21T00:00:00Z", + "displayName": "temporary-cup subject", + "housing": { "kind": "temporary-cup", "notes": "unfamiliar juvenile in a cup" }, + "catalogSpecimen": false +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/interpretation.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/interpretation.json new file mode 100644 index 000000000..ff7393381 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/interpretation.json @@ -0,0 +1,18 @@ +{ + "schemaVersion": "1.0.0", + "kind": "Interpretation", + "interpretationId": "interp.fixture-cup-01", + "careSubjectId": "care.fixture-cup-01", + "observationRefs": ["obs.fixture-cup-01"], + "recordedAt": "2026-08-21T00:02:00Z", + "recordClass": "interpretation", + "status": "hypothetical", + "claims": [ + { + "kind": "taxon-rank", + "text": "Possibly a mantis nymph; rank remains unset.", + "confidence": 0.4, + "confirmed": false + } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/observation.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/observation.json new file mode 100644 index 000000000..51d540d9b --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/observation.json @@ -0,0 +1,15 @@ +{ + "schemaVersion": "1.0.0", + "kind": "Observation", + "observationId": "obs.fixture-cup-01", + "careSubjectId": "care.fixture-cup-01", + "recordedAt": "2026-08-21T00:01:00Z", + "sourceClass": "observed", + "recordClass": "observation", + "mediaDigest": "0ae71fd0b68e22b367ec2c28e1242cceb094977f8d70e0ec8f121e4c78489cdb", + "scalePresent": false, + "statements": [ + { "text": "Small green insect in a clear cup.", "status": "observed" }, + { "text": "No scale object is visible in the frame.", "status": "observed" } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/workflow-run-receipt.json b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/workflow-run-receipt.json new file mode 100644 index 000000000..f53b6025a --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/workflow-run-receipt.json @@ -0,0 +1,14 @@ +{ + "schemaVersion": "1.0.0", + "kind": "WorkflowRunReceipt", + "runId": "wfrun.fixture-summary-01", + "definitionId": "wf.research-summary", + "definitionVersion": "1.0.0", + "digest": "3f589793bd40ed991b3608f1416319bee2b2622a8d9c9344e9b738227262ae09", + "startedAt": "2026-08-21T00:30:00Z", + "endedAt": "2026-08-21T00:30:01Z", + "status": "success", + "sideEffectClass": "read-only", + "replaySafe": true, + "externalEffectCount": 0 +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/durable/read-only-replay.json b/projects/biomemetics/labs/mantis/assistant/fixtures/durable/read-only-replay.json new file mode 100644 index 000000000..8daaa2eb9 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/durable/read-only-replay.json @@ -0,0 +1,9 @@ +{ + "schemaVersion": "1.0.0", + "kind": "DurableReplayFixture", + "description": "Read-only durable reconnect. Replay must not increment externalEffectCount.", + "toolId": "care-source-read", + "sideEffectClass": "read-only", + "replaySafe": true, + "externalEffectCountAfterReconnect": 0 +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/privacy/address-exif.json b/projects/biomemetics/labs/mantis/assistant/fixtures/privacy/address-exif.json new file mode 100644 index 000000000..7f8ad98f5 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/privacy/address-exif.json @@ -0,0 +1,22 @@ +{ + "schemaVersion": "1.0.0", + "kind": "PrivacyRedactionFixture", + "description": "Inputs that must not survive observation or trace export.", + "input": { + "text": "Ship feeders to 123 Maple Street, Apt 4B. GPS from EXIF is 37.7749,-122.4194. Token sk-live-fixture-not-a-secret.", + "exif": { + "gpsLatitude": 37.7749, + "gpsLongitude": -122.4194 + }, + "credentials": { + "authorization": "Bearer fixture-token" + } + }, + "mustNotAppearAfterRedaction": [ + "123 Maple Street", + "37.7749", + "-122.4194", + "sk-live-fixture-not-a-secret", + "Bearer fixture-token" + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/tools/care-source-read.json b/projects/biomemetics/labs/mantis/assistant/fixtures/tools/care-source-read.json new file mode 100644 index 000000000..cd2c8f030 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/tools/care-source-read.json @@ -0,0 +1,8 @@ +{ + "schemaVersion": "1.0.0", + "kind": "CareSourceReadFixture", + "sourceId": "source.fixture-husbandry-general", + "retrievedAt": "2026-08-21T00:00:00Z", + "text": "Keep temporary housing ventilated and avoid unsourced millimetre feeding prescriptions when scale is absent.", + "applicability": "partial" +} diff --git a/projects/biomemetics/labs/mantis/assistant/fixtures/tools/supply-transit-read.json b/projects/biomemetics/labs/mantis/assistant/fixtures/tools/supply-transit-read.json new file mode 100644 index 000000000..3cf73241b --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/fixtures/tools/supply-transit-read.json @@ -0,0 +1,10 @@ +{ + "schemaVersion": "1.0.0", + "kind": "SupplyTransitReadFixture", + "retrievedAt": "2026-08-21T00:00:00Z", + "freshness": "fixture", + "coarseLocationToken": "ephemeral.purpose.supply-transit", + "supplies": ["flightless fruit flies"], + "transit": ["walk"], + "exactAddress": null +} diff --git a/projects/biomemetics/labs/mantis/assistant/policies/mode-authority.json b/projects/biomemetics/labs/mantis/assistant/policies/mode-authority.json new file mode 100644 index 000000000..2ec3e75c1 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/policies/mode-authority.json @@ -0,0 +1,20 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ModeAuthorityPolicy", + "description": "The client cannot choose an arbitrary resource, mode, agent, or tool. Mode switching cannot elevate authority without host policy.", + "modes": { + "care": { "rank": 1, "initialAuthority": "read-draft-remind" }, + "observe": { "rank": 1, "initialAuthority": "selected-media-read-draft" }, + "research": { "rank": 2, "initialAuthority": "read-reviewable-drafts" }, + "terrarium-read": { "rank": 1, "initialAuthority": "fresh-read-only" }, + "review": { "rank": 2, "initialAuthority": "validate-draft-disposition" }, + "service-sim": { "rank": 0, "initialAuthority": "simulator-only", "isolatedSession": true } + }, + "elevation": "host-policy-only", + "clientMaySelect": { + "resource": false, + "mode": false, + "agent": false, + "tool": false + } +} diff --git a/projects/biomemetics/labs/mantis/assistant/policies/privacy.json b/projects/biomemetics/labs/mantis/assistant/policies/privacy.json new file mode 100644 index 000000000..d97944df1 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/policies/privacy.json @@ -0,0 +1,21 @@ +{ + "schemaVersion": "1.0.0", + "kind": "PrivacyPolicy", + "description": "Exact address, EXIF location, credentials, and raw tokens are excluded before observational memory and before trace export. OM records are assistant-memory.", + "stripBeforeObservation": [ + "exact-address", + "exif-location", + "credentials", + "raw-tokens" + ], + "stripBeforeTraceExport": [ + "exact-address", + "exif-location", + "credentials", + "raw-tokens", + "private-media-bytes" + ], + "memoryRecordClass": "assistant-memory", + "resourceScopedOm": "off", + "threadScopedOm": "on" +} diff --git a/projects/biomemetics/labs/mantis/assistant/policies/subagent-constraints.json b/projects/biomemetics/labs/mantis/assistant/policies/subagent-constraints.json new file mode 100644 index 000000000..d6a2155f8 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/policies/subagent-constraints.json @@ -0,0 +1,28 @@ +{ + "schemaVersion": "1.0.0", + "kind": "SubagentConstraintPolicy", + "description": "Domain and safety specialists use normal constrained subagents. forked:true is prohibited where the child definition's tool or instruction boundary matters.", + "coordinator": "mantis-coordinator", + "specialists": [ + "care-source", + "observation-extractor", + "taxon-hypothesis", + "supply-transit", + "terrarium-diagnostician", + "evidence-curator", + "workflow-composer", + "tool-assessor", + "adversarial-reviewer" + ], + "forked": { + "domainRoles": "prohibit", + "safetyRoles": "prohibit" + }, + "delegation": { + "stripExactLocation": true, + "stripSecrets": true, + "stripUnrelatedMedia": true, + "capSteps": true, + "blockPrivilegeEscalation": true + } +} diff --git a/projects/biomemetics/labs/mantis/assistant/policies/tool-category-mode.json b/projects/biomemetics/labs/mantis/assistant/policies/tool-category-mode.json new file mode 100644 index 000000000..d768d531a --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/policies/tool-category-mode.json @@ -0,0 +1,56 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ToolCategoryModePolicy", + "description": "Deny is absolute. Unknown tools deny. Session approvals do not survive restart and never widen a mode allowlist. device-command and admin are never LLM-visible.", + "unknownTool": "deny", + "categories": [ + "read-public", + "read-private", + "draft-local", + "external-write", + "device-intent", + "device-command", + "admin" + ], + "modes": { + "care": { + "allow": ["read-public", "read-private", "draft-local"], + "ask": ["external-write"], + "deny": ["device-intent", "device-command", "admin"] + }, + "observe": { + "allow": ["read-public", "draft-local"], + "ask": ["read-private"], + "deny": ["external-write", "device-intent", "device-command", "admin"] + }, + "research": { + "allow": ["read-public", "read-private", "draft-local"], + "ask": ["external-write"], + "deny": ["device-intent", "device-command", "admin"] + }, + "terrarium-read": { + "allow": ["read-public"], + "ask": ["read-private"], + "deny": ["draft-local", "external-write", "device-intent", "device-command", "admin"] + }, + "review": { + "allow": ["read-public", "read-private", "draft-local"], + "ask": [], + "deny": ["external-write", "device-intent", "device-command", "admin"] + }, + "service-sim": { + "allow": ["read-public", "draft-local"], + "ask": ["read-private"], + "deny": ["external-write", "device-intent", "device-command", "admin"] + } + }, + "absoluteDenyCategories": ["device-command", "admin"], + "absoluteDenyToolIds": [ + "device-command", + "admin", + "specimen-db-write", + "live-catalog-write", + "browser-mutate" + ], + "precedence": ["absolute-deny", "per-tool-deny", "unknown-deny", "mode-deny", "mode-ask", "mode-allow"] +} diff --git a/projects/biomemetics/labs/mantis/assistant/tools/admissions/care-source-read.json b/projects/biomemetics/labs/mantis/assistant/tools/admissions/care-source-read.json new file mode 100644 index 000000000..a3b1783b4 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/tools/admissions/care-source-read.json @@ -0,0 +1,13 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ToolAdmission", + "admissionId": "admit-tool.care-source-read.v1", + "toolId": "care-source-read", + "assayId": "assay.care-source-read.v1", + "state": "admitted-read", + "admittedAt": "2026-08-21T00:10:00Z", + "expiresAt": "2027-08-21T00:00:00Z", + "assessor": "tool-assessor-fixture", + "reviewer": "independent-reviewer-fixture", + "notes": "Read-only reviewed-source fixture. Assessor did not admit this record." +} diff --git a/projects/biomemetics/labs/mantis/assistant/tools/admissions/supply-transit-read.json b/projects/biomemetics/labs/mantis/assistant/tools/admissions/supply-transit-read.json new file mode 100644 index 000000000..6e7132001 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/tools/admissions/supply-transit-read.json @@ -0,0 +1,13 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ToolAdmission", + "admissionId": "admit-tool.supply-transit-read.v1", + "toolId": "supply-transit-read", + "assayId": "assay.supply-transit-read.v1", + "state": "admitted-read", + "admittedAt": "2026-08-21T00:10:00Z", + "expiresAt": "2027-08-21T00:00:00Z", + "assessor": "tool-assessor-fixture", + "reviewer": "independent-reviewer-fixture", + "notes": "Ephemeral coarse-location fixture. Exact address must not be retained." +} diff --git a/projects/biomemetics/labs/mantis/assistant/tools/assays/care-source-read.json b/projects/biomemetics/labs/mantis/assistant/tools/assays/care-source-read.json new file mode 100644 index 000000000..746177444 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/tools/assays/care-source-read.json @@ -0,0 +1,74 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ToolAssayRecord", + "assayId": "assay.care-source-read.v1", + "recordedAt": "2026-08-21T00:00:00Z", + "identity": { + "id": "care-source-read", + "version": "1.0.0", + "provider": "mantis-assistant-fixture", + "digest": "1b50f71d448dbd18f6d19ac675e09f6d36a834b920edc19fa0898d5f32b46e20", + "license": "UNLICENSED-fixture" + }, + "contract": { + "inputSchemaRef": "assistant/tools/assays/care-source-read.input.json", + "outputSchemaRef": "assistant/tools/assays/care-source-read.output.json", + "errors": ["not-found", "timeout"], + "timeoutMs": 2000, + "streaming": false, + "determinism": "deterministic" + }, + "effects": { + "read": true, + "write": false, + "execute": false, + "externalMutation": false, + "deviceImpact": false, + "rollback": "none" + }, + "authority": { + "actor": "assistant", + "category": "read-public", + "allowedModes": ["care", "research", "review"], + "allowedAgents": ["care-source", "mantis-coordinator"], + "llmExposed": true + }, + "data": { + "privacyClass": "public", + "retention": "run-scoped", + "networkEgress": false, + "secrets": false, + "location": "none", + "media": "none" + }, + "behavior": { + "idempotent": true, + "retrySafe": true, + "cancellation": "safe", + "concurrency": "safe" + }, + "evidence": { + "sourceClassProduced": "external-source", + "provenanceFields": ["sourceId", "retrievedAt"], + "simulator": true, + "fixtures": ["assistant/fixtures/tools/care-source-read.json"] + }, + "safety": { + "staleStatePolicy": "not-applicable", + "approvalTier": "none", + "physicalInterlocks": false + }, + "verification": { + "staticLint": true, + "sandboxSmoke": true, + "negativeTests": ["unknown-source-id-denied"], + "adversarialTests": ["prompt-injection-ignored"] + }, + "review": { + "assessor": "tool-assessor-fixture", + "independentReviewer": "adversarial-reviewer-fixture", + "disposition": "assayed", + "expiry": "2027-08-21T00:00:00Z", + "reAssayTriggers": ["schema-change", "provider-version-change"] + } +} diff --git a/projects/biomemetics/labs/mantis/assistant/tools/assays/supply-transit-read.json b/projects/biomemetics/labs/mantis/assistant/tools/assays/supply-transit-read.json new file mode 100644 index 000000000..f4261e05a --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/tools/assays/supply-transit-read.json @@ -0,0 +1,74 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ToolAssayRecord", + "assayId": "assay.supply-transit-read.v1", + "recordedAt": "2026-08-21T00:00:00Z", + "identity": { + "id": "supply-transit-read", + "version": "1.0.0", + "provider": "mantis-assistant-fixture", + "digest": "940782223134602c58bb195a8600799d0e9778865a4b0b9ea5e348a8e2e70c26", + "license": "UNLICENSED-fixture" + }, + "contract": { + "inputSchemaRef": "assistant/tools/assays/supply-transit-read.input.json", + "outputSchemaRef": "assistant/tools/assays/supply-transit-read.output.json", + "errors": ["location-expired", "timeout"], + "timeoutMs": 3000, + "streaming": false, + "determinism": "idempotent" + }, + "effects": { + "read": true, + "write": false, + "execute": false, + "externalMutation": false, + "deviceImpact": false, + "rollback": "none" + }, + "authority": { + "actor": "assistant", + "category": "read-private", + "allowedModes": ["care", "research"], + "allowedAgents": ["supply-transit"], + "llmExposed": true + }, + "data": { + "privacyClass": "ephemeral-location", + "retention": "per-use", + "networkEgress": false, + "secrets": false, + "location": "ephemeral-coarse", + "media": "none" + }, + "behavior": { + "idempotent": true, + "retrySafe": true, + "cancellation": "safe", + "concurrency": "safe" + }, + "evidence": { + "sourceClassProduced": "external-source", + "provenanceFields": ["retrievedAt", "freshness"], + "simulator": true, + "fixtures": ["assistant/fixtures/tools/supply-transit-read.json"] + }, + "safety": { + "staleStatePolicy": "fail-closed", + "approvalTier": "ask", + "physicalInterlocks": false + }, + "verification": { + "staticLint": true, + "sandboxSmoke": true, + "negativeTests": ["exact-address-stripped", "expired-token-denied"], + "adversarialTests": ["retain-address-forbidden"] + }, + "review": { + "assessor": "tool-assessor-fixture", + "independentReviewer": "adversarial-reviewer-fixture", + "disposition": "assayed", + "expiry": "2027-08-21T00:00:00Z", + "reAssayTriggers": ["credential-scope-change"] + } +} diff --git a/projects/biomemetics/labs/mantis/assistant/tools/forbidden.json b/projects/biomemetics/labs/mantis/assistant/tools/forbidden.json new file mode 100644 index 000000000..5b770f347 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/tools/forbidden.json @@ -0,0 +1,37 @@ +{ + "schemaVersion": "1.0.0", + "kind": "ForbiddenToolCatalog", + "description": "Tools that must remain invisible to the model. They are not assayed for LLM exposure and default to deny.", + "tools": [ + { + "id": "device-command", + "category": "device-command", + "llmExposed": false, + "reason": "Live actuation is disabled. The model never receives a command tool." + }, + { + "id": "admin", + "category": "admin", + "llmExposed": false, + "reason": "Administrative authority is host-only." + }, + { + "id": "specimen-db-write", + "category": "admin", + "llmExposed": false, + "reason": "Direct SpecimenDB writes are prohibited. A1/A5 own any governed preview later." + }, + { + "id": "live-catalog-write", + "category": "admin", + "llmExposed": false, + "reason": "Live catalog mutation is outside A0." + }, + { + "id": "browser-mutate", + "category": "external-write", + "llmExposed": false, + "reason": "Browser mutation is quarantined." + } + ] +} diff --git a/projects/biomemetics/labs/mantis/assistant/workflows/admissions/research-summary.v1.json b/projects/biomemetics/labs/mantis/assistant/workflows/admissions/research-summary.v1.json new file mode 100644 index 000000000..891f6b746 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/workflows/admissions/research-summary.v1.json @@ -0,0 +1,12 @@ +{ + "schemaVersion": "1.0.0", + "kind": "WorkflowAdmission", + "admissionId": "admit-wf.research-summary.v1", + "definitionId": "wf.research-summary", + "definitionVersion": "1.0.0", + "digest": "3f589793bd40ed991b3608f1416319bee2b2622a8d9c9344e9b738227262ae09", + "state": "active", + "reviewer": "independent-reviewer-fixture", + "admittedAt": "2026-08-21T00:20:00Z", + "notes": "Fixture admission for the read-only research-summary graph. Immutable version 1.0.0." +} diff --git a/projects/biomemetics/labs/mantis/assistant/workflows/definitions/research-summary.v1.json b/projects/biomemetics/labs/mantis/assistant/workflows/definitions/research-summary.v1.json new file mode 100644 index 000000000..018a29da3 --- /dev/null +++ b/projects/biomemetics/labs/mantis/assistant/workflows/definitions/research-summary.v1.json @@ -0,0 +1,43 @@ +{ + "schemaVersion": "1.0.0", + "kind": "DynamicWorkflowDefinition", + "definitionId": "wf.research-summary", + "version": "1.0.0", + "digest": "3f589793bd40ed991b3608f1416319bee2b2622a8d9c9344e9b738227262ae09", + "description": "Read-only fixture workflow that summarizes admitted care-source text. P0 only.", + "capabilityClass": "P0", + "author": "a0-fixture", + "expiresAt": "2027-08-21T00:00:00Z", + "inputSchema": { + "type": "object", + "properties": { "topic": { "type": "string" } }, + "required": ["topic"] + }, + "outputSchema": { + "type": "object", + "properties": { "summary": { "type": "string" } }, + "required": ["summary"] + }, + "graph": [ + { + "type": "tool", + "id": "lookup", + "toolId": "care-source-read" + } + ], + "referencedPrimitives": [ + { + "kind": "tool", + "id": "care-source-read", + "version": "1.0.0", + "assayId": "assay.care-source-read.v1" + } + ], + "prohibited": { + "deviceCommand": true, + "browserMutation": true, + "secrets": true, + "directCanonicalMutation": true, + "specimenDbWrite": true + } +} diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/README.md b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/README.md new file mode 100644 index 000000000..93f6a40e8 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/README.md @@ -0,0 +1,52 @@ +# `@tmnl/mantis-assistant` + +A0 pin and compatibility harness for the mantis assistant. Mastra is the +agent runtime. CopilotKit/AG-UI is the protocol surface. This package is not +the keeper PWA, not a SpecimenDB bridge, and not a shop-release, EVA, or graph +claim. Mastra memory is not canonical care or evidence truth. + +Beta Mastra APIs are imported only through `src/mastra-adapter.ts`. A surface +that cannot be pinned and proven is marked `QUARANTINED_UPSTREAM`. Live +observational-memory observer/reflector cycles on InMemoryStore are quarantined; +thread OM config and privacy typing are proven. + +## Pins + +See `src/pins.ts` and this directory's `package-lock.json`. `@mastra/core` +stays `1.61.0`. + +## Commands + +```text +npm ci +npm test +npm run typecheck +``` + +`npm test` is the proof. It calls `agent.generate` and the in-process +CopilotRuntime bind against the Mastra OpenRouter gateway string +`openrouter/deepseek/deepseek-v4-flash-0731`. `createFakeModel` is not the +passing path. + +## Live OpenRouter lane + +The coordinator and eval agents use the documented Mastra model-router string. +Mastra reads `OPENROUTER_API_KEY` from the environment. There is no custom +OpenAI-compatible url object and no extra OpenRouter package. + +A missing or empty `OPENROUTER_API_KEY` fails closed with +`OPENROUTER_CREDENTIAL_REQUIRED`. The lane does not skip, does not read +`OPENAI_API_KEY`, does not use Codex or ChatGPT login, and does not consume +Cursor plan tokens. + +Do not commit, log, or print the key. + +`.github/workflows/mantis-assistant-ci.yml` runs unit tests without a key, then +runs the live prove on `feat/mantis-biomemetics-lab`. The prove job passes +`secrets.OPENROUTER_API_KEY` into `npm run test:live`. A missing secret leaves +the env empty, so the live job fails closed. The job does not skip and does not +use `createFakeModel` as the passing path. `MantisController.create()` still +defaults to the live OpenRouter lane. + +The in-process AG-UI bind remains `MastraAgent.getLocalAgents` into +`CopilotRuntime`. It has no `runtimeUrl`. diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/package-lock.json b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/package-lock.json new file mode 100644 index 000000000..a0846ae76 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/package-lock.json @@ -0,0 +1,8862 @@ +{ + "name": "@tmnl/mantis-assistant", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@tmnl/mantis-assistant", + "version": "0.1.0", + "dependencies": { + "@ag-ui/client": "0.0.58", + "@ag-ui/core": "0.0.58", + "@ag-ui/mastra": "1.1.2", + "@copilotkit/runtime": "1.68.3", + "@copilotkit/shared": "1.68.3", + "@mastra/client-js": "1.42.0", + "@mastra/core": "1.61.0", + "@mastra/evals": "1.9.0", + "@mastra/libsql": "1.21.1", + "@mastra/memory": "1.27.0", + "@mastra/observability": "1.17.1", + "ajv": "8.20.0", + "ajv-formats": "3.0.1", + "effect": "4.0.0-beta.93", + "zod": "3.25.76" + }, + "devDependencies": { + "@types/node": "22.18.0", + "typescript": "5.9.3" + }, + "engines": { + "node": ">=22.14.0", + "npm": ">=10.9.0" + } + }, + "node_modules/@a2a-js/sdk-v0_3": { + "name": "@a2a-js/sdk", + "version": "0.3.14", + "resolved": "https://registry.npmjs.org/@a2a-js/sdk/-/sdk-0.3.14.tgz", + "integrity": "sha512-F6Ew1AtPzCLhTn8h9yiqTe7DiDf6XVrSnq9V1YqSl9eWqPm6anMveTiKdCSb/76cW0YiJc24rNaUrVezFFHbqQ==", + "license": "Apache-2.0", + "dependencies": { + "uuid": "^11.1.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@bufbuild/protobuf": "^2.10.2", + "@grpc/grpc-js": "^1.11.0", + "express": "^4.21.2 || ^5.1.0" + }, + "peerDependenciesMeta": { + "@bufbuild/protobuf": { + "optional": true + }, + "@grpc/grpc-js": { + "optional": true + }, + "express": { + "optional": true + } + } + }, + "node_modules/@a2a-js/sdk-v1": { + "name": "@a2a-js/sdk", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@a2a-js/sdk/-/sdk-1.0.1.tgz", + "integrity": "sha512-CJQdh3Wzwo8qIx5UUkSJ7+7BEI16PB+MXMHHNSmx8JQsQed2HlQgvx1ENOiKUfYA3PlcEvxIwv14dBblhDuPmw==", + "license": "Apache-2.0", + "dependencies": { + "jose": "^6.2.3", + "uuid": "^11.1.0" + }, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "@bufbuild/protobuf": "^2.10.2", + "@grpc/grpc-js": "^1.11.0", + "express": "^4.21.2 || ^5.1.0" + }, + "peerDependenciesMeta": { + "@bufbuild/protobuf": { + "optional": true + }, + "@grpc/grpc-js": { + "optional": true + }, + "express": { + "optional": true + } + } + }, + "node_modules/@ag-ui/a2ui-middleware": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/@ag-ui/a2ui-middleware/-/a2ui-middleware-0.0.10.tgz", + "integrity": "sha512-2BQFUQ9vJzUAQSR0dNW/ijhyH8KpiRWISSLTP6mIe6ENyQ2cM1/XLG38/Dcb69olcs36gtZADZzAQWcno5H6fA==", + "license": "MIT", + "dependencies": { + "@ag-ui/a2ui-toolkit": "0.0.4", + "clarinet": "^0.12.6" + }, + "peerDependencies": { + "@ag-ui/client": ">=0.0.40", + "rxjs": "7.8.1" + } + }, + "node_modules/@ag-ui/a2ui-toolkit": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@ag-ui/a2ui-toolkit/-/a2ui-toolkit-0.0.4.tgz", + "integrity": "sha512-9VPmgpCAsFVICk7z23kh+Kp/BwYMxw0D0KGjOiKXhm1MAH+Wid2iC3yKsXso+q7UZZiyhWgeDUSgaAkltyLmGg==", + "license": "MIT" + }, + "node_modules/@ag-ui/client": { + "version": "0.0.58", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.58.tgz", + "integrity": "sha512-9tAUJ6Ot0y2f5Va7xGFhUSO5OPAjilMsPdmKNmAUR774LKWcvNpriJ6mqH3p/ewUue1zfoUo4vpX+9Xo/zsuzA==", + "license": "MIT", + "dependencies": { + "@ag-ui/core": "0.0.58", + "@ag-ui/encoder": "0.0.58", + "@ag-ui/proto": "0.0.58", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@ag-ui/core": { + "version": "0.0.58", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.58.tgz", + "integrity": "sha512-XgGb7YmhV+yMBaEmlrpsd5S+nUxq0JgSegss2t4gIFR1j7w3w0ibtKfRgcQHWeMvwZxcT5S28VEEarqtgxYYHw==", + "license": "MIT", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@ag-ui/encoder": { + "version": "0.0.58", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.58.tgz", + "integrity": "sha512-eMfjJbfAGTQECgNX3QO0Mt0V5OrIViowSPmGLzdO92q2x506K2hRs2VBlfEuAzpDFp6Eq23Q/vjNHFzv37StZw==", + "license": "MIT", + "dependencies": { + "@ag-ui/core": "0.0.58", + "@ag-ui/proto": "0.0.58" + } + }, + "node_modules/@ag-ui/langgraph": { + "version": "0.0.42", + "resolved": "https://registry.npmjs.org/@ag-ui/langgraph/-/langgraph-0.0.42.tgz", + "integrity": "sha512-dXasEbGQFJcasdoy5khYyDHZHYoD1/i7hioaP8cejfw+Dss4tLvN8ndzD6c5j0hmANaKscekl+zkF7UQq3sI9w==", + "license": "MIT", + "dependencies": { + "@ag-ui/a2ui-toolkit": "0.0.4", + "@langchain/core": "^1.1.40", + "@langchain/langgraph-sdk": "^1.8.8", + "langchain": ">=1.2.0", + "partial-json": "^0.1.7", + "rxjs": "7.8.1" + }, + "peerDependencies": { + "@ag-ui/client": ">=0.0.42", + "@ag-ui/core": ">=0.0.42" + } + }, + "node_modules/@ag-ui/mastra": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@ag-ui/mastra/-/mastra-1.1.2.tgz", + "integrity": "sha512-jbtpCZP89BPAWzf8sStY6Y06P/O9DidO0TNQKYnxXsjKwe2YtBF49rY/6k3L7N3rx/0PVniPV68qY+D3G4AtiA==", + "license": "Apache-2.0", + "dependencies": { + "@ag-ui/a2ui-toolkit": "0.0.4", + "@ai-sdk/ui-utils": "^1.1.19", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "zod": "^3.25.76" + }, + "peerDependencies": { + "@ag-ui/client": ">=0.0.44", + "@ag-ui/core": ">=0.0.44", + "@copilotkit/runtime": "^1.60.1", + "@mastra/client-js": ">=1.0.0-0 <2.0.0-0", + "@mastra/core": ">=1.29.0 <2.0.0-0" + } + }, + "node_modules/@ag-ui/mcp-apps-middleware": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@ag-ui/mcp-apps-middleware/-/mcp-apps-middleware-0.0.3.tgz", + "integrity": "sha512-Z+NZQXj4J+Y/2PLNsiyhNzRWFtTT2sAoC5dztoAlIsdfzvLvYEa52YGdHesNTN85JJqaIrYxQ8e31IBpKjrnoA==", + "dependencies": { + "@modelcontextprotocol/sdk": "^1.0.0", + "rxjs": "7.8.1" + }, + "peerDependencies": { + "@ag-ui/client": ">=0.0.40" + } + }, + "node_modules/@ag-ui/mcp-middleware": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@ag-ui/mcp-middleware/-/mcp-middleware-0.0.1.tgz", + "integrity": "sha512-TayUu7kB+jXUTPRUJesNvJYrP+0weTL9F2VJJ8QQ4sWxY/Ihjo+GgFYgJZYNcLwbo1DKgmVJtdm2XUouPCbxeg==", + "dependencies": { + "@ag-ui/client": "0.0.54", + "@modelcontextprotocol/sdk": "^1.0.0" + }, + "peerDependencies": { + "rxjs": "7.8.1" + } + }, + "node_modules/@ag-ui/mcp-middleware/node_modules/@ag-ui/client": { + "version": "0.0.54", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.54.tgz", + "integrity": "sha512-N5UVXEBV5gPHqTuMoR/21brconRn42URf+MB4L8OniCJKqLcl/qUJb5kMamK0nnfBhDfPs/uq7LxDn6bsDJzJg==", + "dependencies": { + "@ag-ui/core": "0.0.54", + "@ag-ui/encoder": "0.0.54", + "@ag-ui/proto": "0.0.54", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@ag-ui/mcp-middleware/node_modules/@ag-ui/core": { + "version": "0.0.54", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.54.tgz", + "integrity": "sha512-Ilx31OvRQaZfU7jSArGqz06JZKOsAt8zWiCPJljyp9zR6Tzl18oyfx8o6FsuGfAktGRe50GI9SCCxNXXysZwtA==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@ag-ui/mcp-middleware/node_modules/@ag-ui/encoder": { + "version": "0.0.54", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.54.tgz", + "integrity": "sha512-0dPuE/eAeBRBDj/OOj5AW8SoP1r0dufmoOdrtKgmf+dlbVXKSNkDDHGrrvIWFPxwvPTWhHeN6wnsVUayWpUsGg==", + "dependencies": { + "@ag-ui/core": "0.0.54", + "@ag-ui/proto": "0.0.54" + } + }, + "node_modules/@ag-ui/mcp-middleware/node_modules/@ag-ui/proto": { + "version": "0.0.54", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.54.tgz", + "integrity": "sha512-IPF+xeFaBAKKP2FO74MaVTkKUP8VaGGkbPzORCvC5TLDdGs+oQgQFqz+XoBeksQGE14+jgLWiAr9EPXdhqr1NA==", + "dependencies": { + "@ag-ui/core": "0.0.54", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@ag-ui/proto": { + "version": "0.0.58", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.58.tgz", + "integrity": "sha512-fErOnFPfpZlNSreeOEdUVuCzTQI463JoUo1DNx4grAvSZPOg4tVgqvG2s82qJE9pZoh48VSUqk6hyV82GT/wIA==", + "license": "MIT", + "dependencies": { + "@ag-ui/core": "0.0.58", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@ai-sdk/anthropic": { + "version": "3.0.111", + "resolved": "https://registry.npmjs.org/@ai-sdk/anthropic/-/anthropic-3.0.111.tgz", + "integrity": "sha512-atgBW8jZPr/KuaKX5FvDIHuXBI8VCol6kVeoD4P0657+VXR73QsLogXQVN/Zt5FHtq9WzpdIZseCJiXPqkgwwA==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@ai-sdk/provider-utils": "4.0.46" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.15.tgz", + "integrity": "sha512-XeZW1CcDF2GMbH4wejW6xBRI2QCOgnkVYUnxoeDadB1mf85riL2bMUeDoh+6gJ/r4mjNfzUPW8OjLjvwTP0u1Q==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider-utils": { + "version": "4.0.46", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.46.tgz", + "integrity": "sha512-tEtld97plCFiYevsJuOkGkeuhQndeMWFBVrJS4AjnbD5AqrNSXRCe0p+BZ3Cju/sxDeeZ9ym3q9YUV8fASA7aQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^6.28.0" + }, + "engines": { + "node": ">=18.17" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/gateway": { + "version": "3.0.177", + "resolved": "https://registry.npmjs.org/@ai-sdk/gateway/-/gateway-3.0.177.tgz", + "integrity": "sha512-U579dA3K2UcezpzJHjyw6UhctFtzFRKOSIrAgxr77teluPGP7vj8aLJpZvEEPf+JbUqbvsHRKKYZzip/+NQ89A==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@ai-sdk/provider-utils": "4.0.46", + "@vercel/oidc": "3.2.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.15.tgz", + "integrity": "sha512-XeZW1CcDF2GMbH4wejW6xBRI2QCOgnkVYUnxoeDadB1mf85riL2bMUeDoh+6gJ/r4mjNfzUPW8OjLjvwTP0u1Q==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/gateway/node_modules/@ai-sdk/provider-utils": { + "version": "4.0.46", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.46.tgz", + "integrity": "sha512-tEtld97plCFiYevsJuOkGkeuhQndeMWFBVrJS4AjnbD5AqrNSXRCe0p+BZ3Cju/sxDeeZ9ym3q9YUV8fASA7aQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^6.28.0" + }, + "engines": { + "node": ">=18.17" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/google": { + "version": "3.0.111", + "resolved": "https://registry.npmjs.org/@ai-sdk/google/-/google-3.0.111.tgz", + "integrity": "sha512-XWWju5pVD7Tf30c2VziMfPph3XpN/jDTE5aJhqAPJ2zRmHSSveNYFoosFLOWWFIgQnwGe9AM3bAXR8kHyC2MdA==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@ai-sdk/provider-utils": "4.0.46" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/google-vertex": { + "version": "3.0.164", + "resolved": "https://registry.npmjs.org/@ai-sdk/google-vertex/-/google-vertex-3.0.164.tgz", + "integrity": "sha512-TJ54snZgD5kxWsHmMETkLhoN5333GKp6Me47HkGB01dnLMnrxSD3cSTiEompnZY4tTonxwm1Jl78dUiTKDaKXQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/anthropic": "2.0.95", + "@ai-sdk/google": "2.0.89", + "@ai-sdk/openai-compatible": "1.0.48", + "@ai-sdk/provider": "2.0.3", + "@ai-sdk/provider-utils": "3.0.32", + "google-auth-library": "^10.5.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/google-vertex/node_modules/@ai-sdk/anthropic": { + "version": "2.0.95", + "resolved": "https://registry.npmjs.org/@ai-sdk/anthropic/-/anthropic-2.0.95.tgz", + "integrity": "sha512-V0nIwhyv8f9rD+p6glm0uq30seid8y2CrvNvHCAbnuPm5bPpqVChEB63kixrIDNnogkgI+ZjSTtIbIL2q3QPvQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "2.0.3", + "@ai-sdk/provider-utils": "3.0.32" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/google-vertex/node_modules/@ai-sdk/google": { + "version": "2.0.89", + "resolved": "https://registry.npmjs.org/@ai-sdk/google/-/google-2.0.89.tgz", + "integrity": "sha512-zYCrUuiCxLk65iQ3C5AU9qLo0lsyCbYNAS983rDTg/lMVmdsWz8aqrL6K746y7/lRyv+gM1y1HoFCxVsKOSlSw==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "2.0.3", + "@ai-sdk/provider-utils": "3.0.32" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/google-vertex/node_modules/@ai-sdk/provider": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-2.0.3.tgz", + "integrity": "sha512-h88OPkavHTiN9tMn2l5awAznGB0lXzjcLhgR1/rvjB2zlLprsNxbM2tt6OJsHUxduLC3klq0/eqaSf6fX5XVww==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/google-vertex/node_modules/@ai-sdk/provider-utils": { + "version": "3.0.32", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-3.0.32.tgz", + "integrity": "sha512-izgUo50kamJMwoYCXoFwVccuJeyYp0y1+twf0FfpEz7kdQBloZLZbgLYUOUpannLWrV7xYSJR48BQJIQFbFiAQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "2.0.3", + "@standard-schema/spec": "^1.0.0", + "eventsource-parser": "^3.0.6", + "undici": "^5.29.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/google-vertex/node_modules/@fastify/busboy": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", + "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@ai-sdk/google-vertex/node_modules/undici": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", + "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", + "license": "MIT", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.15.tgz", + "integrity": "sha512-XeZW1CcDF2GMbH4wejW6xBRI2QCOgnkVYUnxoeDadB1mf85riL2bMUeDoh+6gJ/r4mjNfzUPW8OjLjvwTP0u1Q==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider-utils": { + "version": "4.0.46", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.46.tgz", + "integrity": "sha512-tEtld97plCFiYevsJuOkGkeuhQndeMWFBVrJS4AjnbD5AqrNSXRCe0p+BZ3Cju/sxDeeZ9ym3q9YUV8fASA7aQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^6.28.0" + }, + "engines": { + "node": ">=18.17" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/mcp": { + "version": "1.0.71", + "resolved": "https://registry.npmjs.org/@ai-sdk/mcp/-/mcp-1.0.71.tgz", + "integrity": "sha512-woKUwm/yiqxEC+E863tqAjEpiyWCERmy//k9pdNYP8Ta6+PF6Ge2X6p99e72BdBovB+/McUWgbJ4+Fiht+41WQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@ai-sdk/provider-utils": "4.0.46", + "pkce-challenge": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/mcp/node_modules/@ai-sdk/provider": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.15.tgz", + "integrity": "sha512-XeZW1CcDF2GMbH4wejW6xBRI2QCOgnkVYUnxoeDadB1mf85riL2bMUeDoh+6gJ/r4mjNfzUPW8OjLjvwTP0u1Q==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/mcp/node_modules/@ai-sdk/provider-utils": { + "version": "4.0.46", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.46.tgz", + "integrity": "sha512-tEtld97plCFiYevsJuOkGkeuhQndeMWFBVrJS4AjnbD5AqrNSXRCe0p+BZ3Cju/sxDeeZ9ym3q9YUV8fASA7aQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^6.28.0" + }, + "engines": { + "node": ">=18.17" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/openai": { + "version": "3.0.99", + "resolved": "https://registry.npmjs.org/@ai-sdk/openai/-/openai-3.0.99.tgz", + "integrity": "sha512-0Y6E5bvR+3eugt5rq2iy39EAAFi4nijXf1kdvcfoMm4erEGMe/6egIpvdvv5ePBU2YsnsxFuLRmMJ76Kv/babQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@ai-sdk/provider-utils": "4.0.46" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/openai-compatible": { + "version": "1.0.48", + "resolved": "https://registry.npmjs.org/@ai-sdk/openai-compatible/-/openai-compatible-1.0.48.tgz", + "integrity": "sha512-Zl5+5VHId7g344LVSjZvPuFuRVej+u+MB+0ibFVGaXG1qUykyjKu2ptHinK5RjDdviCm+Bs+t3ZLegB39e8VyA==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "2.0.3", + "@ai-sdk/provider-utils": "3.0.32" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-2.0.3.tgz", + "integrity": "sha512-h88OPkavHTiN9tMn2l5awAznGB0lXzjcLhgR1/rvjB2zlLprsNxbM2tt6OJsHUxduLC3klq0/eqaSf6fX5XVww==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider-utils": { + "version": "3.0.32", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-3.0.32.tgz", + "integrity": "sha512-izgUo50kamJMwoYCXoFwVccuJeyYp0y1+twf0FfpEz7kdQBloZLZbgLYUOUpannLWrV7xYSJR48BQJIQFbFiAQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "2.0.3", + "@standard-schema/spec": "^1.0.0", + "eventsource-parser": "^3.0.6", + "undici": "^5.29.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/openai-compatible/node_modules/@fastify/busboy": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", + "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@ai-sdk/openai-compatible/node_modules/undici": { + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.29.0.tgz", + "integrity": "sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==", + "license": "MIT", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.15.tgz", + "integrity": "sha512-XeZW1CcDF2GMbH4wejW6xBRI2QCOgnkVYUnxoeDadB1mf85riL2bMUeDoh+6gJ/r4mjNfzUPW8OjLjvwTP0u1Q==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider-utils": { + "version": "4.0.46", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.46.tgz", + "integrity": "sha512-tEtld97plCFiYevsJuOkGkeuhQndeMWFBVrJS4AjnbD5AqrNSXRCe0p+BZ3Cju/sxDeeZ9ym3q9YUV8fASA7aQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^6.28.0" + }, + "engines": { + "node": ">=18.17" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/provider": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-1.1.3.tgz", + "integrity": "sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/provider-utils": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-2.2.8.tgz", + "integrity": "sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "1.1.3", + "nanoid": "^3.3.8", + "secure-json-parse": "^2.7.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.23.8" + } + }, + "node_modules/@ai-sdk/provider-utils-v5": { + "name": "@ai-sdk/provider-utils", + "version": "3.0.30", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-3.0.30.tgz", + "integrity": "sha512-NCJ9JKow5ENAgEZxzvEvF20thwDiH+hutvzmrUDbloRX0azpJHNst8+7pZIVryYhLM9wgpT5/ShTSjPTFhkxEQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "2.0.3", + "@standard-schema/spec": "^1.0.0", + "eventsource-parser": "^3.0.6" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/provider-utils-v5/node_modules/@ai-sdk/provider": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-2.0.3.tgz", + "integrity": "sha512-h88OPkavHTiN9tMn2l5awAznGB0lXzjcLhgR1/rvjB2zlLprsNxbM2tt6OJsHUxduLC3klq0/eqaSf6fX5XVww==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/provider-utils-v6": { + "name": "@ai-sdk/provider-utils", + "version": "4.0.40", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.40.tgz", + "integrity": "sha512-OL5IrpUm9Y8Dwy+w/vvFwPotS6m52O9W0op2oXgXdCROMJIBalBI0oro6OIBYkPxvm5Xg02GSkoQN25RlR0bnw==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.14", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/provider-utils-v6/node_modules/@ai-sdk/provider": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.14.tgz", + "integrity": "sha512-5X1k57JBJ4H7H1QjX7CnJYAB1I19r/trVZTMcSms7/kLNZ8RaU4Nt2agcwZzv82Hfx6Q7/TOLU7agAKeFfc8cA==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/provider-utils-v7": { + "name": "@ai-sdk/provider-utils", + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-5.0.13.tgz", + "integrity": "sha512-fScDJMDnTbx32kLDQqp0MvPjvwkgiwvlBxlmIg7XW5PbS91LG6JjH3PQG+34oMFglqfpQA355e24OdGj5PPoDw==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "4.0.4", + "@standard-schema/spec": "^1.1.0", + "@workflow/serde": "4.1.0", + "eventsource-parser": "^3.0.8" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/provider-utils-v7/node_modules/@ai-sdk/provider": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-4.0.4.tgz", + "integrity": "sha512-tbHKNLirllUNF3ZlkCsXnwab2ZV1Sl4b1H/Cp9ruCce15IBmskE8Gwkk0yo9xDWY+jho2of7lVXtwSsyrq7cwQ==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@ai-sdk/provider-v5": { + "name": "@ai-sdk/provider", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-2.0.3.tgz", + "integrity": "sha512-h88OPkavHTiN9tMn2l5awAznGB0lXzjcLhgR1/rvjB2zlLprsNxbM2tt6OJsHUxduLC3klq0/eqaSf6fX5XVww==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/provider-v6": { + "name": "@ai-sdk/provider", + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.14.tgz", + "integrity": "sha512-5X1k57JBJ4H7H1QjX7CnJYAB1I19r/trVZTMcSms7/kLNZ8RaU4Nt2agcwZzv82Hfx6Q7/TOLU7agAKeFfc8cA==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ai-sdk/provider-v7": { + "name": "@ai-sdk/provider", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-4.0.4.tgz", + "integrity": "sha512-tbHKNLirllUNF3ZlkCsXnwab2ZV1Sl4b1H/Cp9ruCce15IBmskE8Gwkk0yo9xDWY+jho2of7lVXtwSsyrq7cwQ==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@ai-sdk/ui-utils": { + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-1.2.11.tgz", + "integrity": "sha512-3zcwCc8ezzFlwp3ZD15wAPjf2Au4s3vAbKsXQVyhxODHcmu0iyPO2Eua6D/vicq/AUm/BAo60r97O6HU+EI0+w==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "1.1.3", + "@ai-sdk/provider-utils": "2.2.8", + "zod-to-json-schema": "^3.24.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.23.8" + } + }, + "node_modules/@anthropic-ai/sdk": { + "version": "0.120.0", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.120.0.tgz", + "integrity": "sha512-ZlvmNFT/iIF6JD13rxbbMWD8nvGR0RaUp6yMQnoc+4Af0YjVVe/bIdW1XSQQsoxXAtg1NaT6Vak0LKFlJ4d37Q==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "json-schema-to-ts": "^3.1.1", + "standardwebhooks": "^1.0.0" + }, + "bin": { + "anthropic-ai-sdk": "bin/cli" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + } + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.977.8", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.977.8.tgz", + "integrity": "sha512-7+Kcrkvrk9lM/m7jRhHpT4jCdvzGHsuaSRbF8TdzzkY1mRzp/Ogwf9c7H29k4gGhey0BBWhCWr16+t0J61gwmg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/types": "^3.974.4", + "@aws-sdk/xml-builder": "^3.972.39", + "@aws/lambda-invoke-store": "^0.3.0", + "@smithy/core": "^3.31.1", + "@smithy/signature-v4": "^5.6.12", + "@smithy/types": "^4.16.1", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.972.69", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.69.tgz", + "integrity": "sha512-AreCFzcB4kH2HF9031Ot0jSJr3KXvRg6e8uDeub20JEVdZU3Bv0sTq1plc7VsT3KiqutlzH7l0j50UcCWHUioA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.972.71", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.71.tgz", + "integrity": "sha512-A8ObcqVmDMnk4F9NozZ7JwmUu9Q4xyBJkmyq1C5U+wNM9ht9J7+EuuyabsLWXZnOoTqFaJuYBYTKf5CTipkEjA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/fetch-http-handler": "^5.6.13", + "@smithy/node-http-handler": "^4.9.13", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.973.14", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.14.tgz", + "integrity": "sha512-7c+Wti2LsERNWMfm7ySz3/6RPopFW3Nmn7s63Xpcq6R/tRuY5hpvkHA2xVgi5ukJbvok9l0IDtVEvqTtg+X7dw==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/credential-provider-env": "^3.972.69", + "@aws-sdk/credential-provider-http": "^3.972.71", + "@aws-sdk/credential-provider-login": "^3.972.76", + "@aws-sdk/credential-provider-process": "^3.972.69", + "@aws-sdk/credential-provider-sso": "^3.973.13", + "@aws-sdk/credential-provider-web-identity": "^3.972.75", + "@aws-sdk/nested-clients": "^3.997.43", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/credential-provider-imds": "^4.4.16", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-login": { + "version": "3.972.76", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.76.tgz", + "integrity": "sha512-LVixwOnEJfrrfKHeZjBA8pIMTZjNDq8ak8VpcoWUuCJDrSnBNU8POJksULMgvN089P0MXtQYH2Zs627/MK1K0g==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/nested-clients": "^3.997.43", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.972.80", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.80.tgz", + "integrity": "sha512-bE2qh8ww4iClO1jHsBXdOE8FUgzDbdxbyorNjSCoPSkQd51k3jODItuPZfuwcLHZqDXsH+bI4AMHhqtuyR7mSg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/credential-provider-env": "^3.972.69", + "@aws-sdk/credential-provider-http": "^3.972.71", + "@aws-sdk/credential-provider-ini": "^3.973.14", + "@aws-sdk/credential-provider-process": "^3.972.69", + "@aws-sdk/credential-provider-sso": "^3.973.13", + "@aws-sdk/credential-provider-web-identity": "^3.972.75", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/credential-provider-imds": "^4.4.16", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.972.69", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.69.tgz", + "integrity": "sha512-9kpTNdZTrcqXTfhxM7fgl9Z68ek3Fu5oe3Yf+A/pJGibEqpgZxz2tSY7SinmyCIU2PJ+ygY4FPoBBnLpocMtrQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.973.13", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.13.tgz", + "integrity": "sha512-Oc81qauMPzUoTnAS2YKpNwY6sY/LUyQTEeaf6yP197WMxkEBQfcKLR1MFpD7+pNTubXnfkH6gwpji+Gc7iyD2Q==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/nested-clients": "^3.997.43", + "@aws-sdk/token-providers": "3.1111.0", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.972.75", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.75.tgz", + "integrity": "sha512-YPN6uoGDgjjjeVFZrcOeCJqmB6zpXoeeNgIjqe+DexJaWqdjVfCCe+VAZwli9Z2h8KhFW8oxkO39emQ1tyz/Mw==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/nested-clients": "^3.997.43", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/nested-clients": { + "version": "3.997.43", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.43.tgz", + "integrity": "sha512-bit+VpqWNyi3wHxFoTsTliNXimCSL2r2OeDTm7ZrG+YsTZ2D7ofDJ6r/t9PVBn80i6/v0X2h9Tgw6QP2MAKfPw==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/signature-v4-multi-region": "^3.996.45", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/fetch-http-handler": "^5.6.13", + "@smithy/node-http-handler": "^4.9.13", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/signature-v4-multi-region": { + "version": "3.996.45", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.45.tgz", + "integrity": "sha512-bBuyztukzXq6plzFGHAWiQt0QXo+HL8b8lX5cFTzkez/74PtS1c0qPFCIVuHkyoT+miH2qOjAcm1/yoro2ESPA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/types": "^3.974.4", + "@smithy/signature-v4": "^5.6.12", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/token-providers": { + "version": "3.1111.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1111.0.tgz", + "integrity": "sha512-JfljgoVtl+s3Qy21n9a7Z48uCQaOXcN74KJ3TEQfPoB293GrXFSt6HSQJF1sTZ8c/5QedEvd3NjJQMO4u9qa5A==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@aws-sdk/core": "^3.977.8", + "@aws-sdk/nested-clients": "^3.997.43", + "@aws-sdk/types": "^3.974.4", + "@smithy/core": "^3.31.1", + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/types": { + "version": "3.974.4", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.974.4.tgz", + "integrity": "sha512-dSFDNG00MEz0/xl5gxL62giLd1iYyJsTxZ1I1DOj6lC+bbgLB4TRsYClJg3b62dhXT1uATzsTNXPnC+33EJV3A==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/xml-builder": { + "version": "3.972.39", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.39.tgz", + "integrity": "sha512-FTti8DS5MMWXNUWiRwXAJeYS+0GHHiMy0+7XOhcwk63ILHmfS2UFy2z/HNpZCSOJJ3P3dnWY6hfYNW3DF0nXUA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/types": "^4.16.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws/lambda-invoke-store": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.3.0.tgz", + "integrity": "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@azure/abort-controller": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.2.0.tgz", + "integrity": "sha512-fNAjWnA/nZ2jz31kxR/AqRaUT8ewHBw/WuBIosK0moMy1C9e5ValbDfFdIxJzVOOYaYkV/b2F1S4H/aHiqfVQg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/@azure/core-auth": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.10.1.tgz", + "integrity": "sha512-ykRMW8PjVAn+RS6ww5cmK9U2CyH9p4Q88YJwvUslfuMmN98w/2rdGRLPqJYObapBCdzBVeDgYWdJnFPFb7qzpg==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@azure/core-util": "^1.13.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@azure/core-util": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.14.0.tgz", + "integrity": "sha512-9n2pWK61veAuN0V20t9lOuoV4CFMdyAZ1ygZzvBGk/pBBJRib/PjL9PLXa/aI2CcPpyHfqVsxxqLCYl6uZlfDw==", + "license": "MIT", + "dependencies": { + "@azure/abort-controller": "^2.1.2", + "@typespec/ts-http-runtime": "^0.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/@azure/msal-common": { + "version": "16.5.2", + "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-16.5.2.tgz", + "integrity": "sha512-GkDEL6TYo3HgT3UuqakdgE9PZfc1hMki6+Hwgy1uddb/EauvAKfu85vVhuofRSo22D1xTnWt8Ucwfg4vSCVwvA==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@azure/msal-node": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-5.1.5.tgz", + "integrity": "sha512-ObTeMoNPmq19X3z40et9Xvs4ZoWVeJg43PZMRLG5iwVL+2nCtAerG3YTDItqPp1CfXNwmCXBbg8jn1DOx65c3g==", + "license": "MIT", + "dependencies": { + "@azure/msal-common": "16.5.2", + "jsonwebtoken": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.14.0.tgz", + "integrity": "sha512-C3UGsiCwSprE2NKIIFA3hCDlpXTMCAXRZuEVp88L1GY36Y41+rYL5fryE+nOFhp4p4JPQvdV8PQ4DWgHgeTE+w==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/@cfworker/json-schema": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@cfworker/json-schema/-/json-schema-4.1.1.tgz", + "integrity": "sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==", + "license": "MIT" + }, + "node_modules/@copilotkit/channels-core": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@copilotkit/channels-core/-/channels-core-0.9.0.tgz", + "integrity": "sha512-bCWLb/jb9j8O+JvOvf/jkJ/Nb8B09U/tAdTCQ221mE2AEHS2dn5PMlQih9gqyF6kbJFO0Nmf+IDTritWswmfaA==", + "license": "MIT", + "dependencies": { + "@ag-ui/client": "0.0.57", + "@ag-ui/core": "0.0.57", + "@copilotkit/channels-ui": "~0.9.0", + "@copilotkit/core": "^1.68.0", + "@copilotkit/shared": "^1.68.0", + "zod-to-json-schema": "^3.24.1" + }, + "peerDependencies": { + "vitest": "^4.0.0" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "node_modules/@copilotkit/channels-core/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-core/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-core/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/channels-core/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/channels-intelligence": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@copilotkit/channels-intelligence/-/channels-intelligence-0.9.0.tgz", + "integrity": "sha512-w+ARYm+i30buMGJB+E3QFBze41s464MKkXGikgLYg3k9WEFHE3BgTRKz6MbHxv0yN9L6mOAjwMhR8LkTSufMcw==", + "license": "MIT", + "dependencies": { + "@ag-ui/client": "0.0.57", + "@copilotkit/channels-core": "^0.9.0", + "@copilotkit/channels-slack": "^0.9.0", + "@copilotkit/channels-teams": "^0.9.0", + "@copilotkit/channels-ui": "^0.9.0", + "phoenix": "^1.8.4" + } + }, + "node_modules/@copilotkit/channels-intelligence/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-intelligence/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-intelligence/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/channels-intelligence/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/channels-slack": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@copilotkit/channels-slack/-/channels-slack-0.9.0.tgz", + "integrity": "sha512-3QkCInbQmruSP875x02YG1Ez59jPzQMDUlWRlNKPvzcAvnPfOmHxaXVVmBnS+fwcWccd4AAaeRvslTWBwU9s6g==", + "license": "MIT", + "dependencies": { + "@ag-ui/client": "0.0.57", + "@ag-ui/core": "0.0.57", + "@copilotkit/channels-core": "^0.9.0", + "@copilotkit/channels-ui": "^0.9.0", + "@copilotkit/core": "^1.68.0", + "@copilotkit/shared": "^1.68.0", + "@slack/bolt": "^4.2.0", + "@slack/types": "^2.21.1", + "@slack/web-api": "^7.16.0", + "rxjs": "^7.8.1", + "zod": "^3.25.76", + "zod-to-json-schema": "^3.25.1" + } + }, + "node_modules/@copilotkit/channels-slack/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-slack/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-slack/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/channels-slack/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/channels-teams": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@copilotkit/channels-teams/-/channels-teams-0.9.0.tgz", + "integrity": "sha512-OI1xaIg9Ho7vMUgPpxM2h4LZQRvQKRt+1yy2Er8nMBy1IJXQaNP4of4XI5pQA/WnskL/07xcGPrFiXrTRs4Hyg==", + "license": "MIT", + "dependencies": { + "@ag-ui/client": "0.0.57", + "@ag-ui/core": "0.0.57", + "@copilotkit/channels-core": "^0.9.0", + "@copilotkit/channels-ui": "^0.9.0", + "@copilotkit/core": "^1.68.0", + "@copilotkit/shared": "^1.68.0", + "@microsoft/agents-activity": "^1.5.3", + "@microsoft/agents-hosting": "^1.5.3", + "express": "^4.21.2", + "rxjs": "^7.8.1", + "zod": "^3.25.76", + "zod-to-json-schema": "^3.25.1" + } + }, + "node_modules/@copilotkit/channels-teams/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-teams/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/channels-teams/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/channels-teams/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/channels-ui": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@copilotkit/channels-ui/-/channels-ui-0.9.0.tgz", + "integrity": "sha512-6nhmIuexyW+fOBp3BE3ZWk4Mco5NOG4sr//BZ46RynSYYD36klTQQbTKA0ntSR6nIGJ/luAGc8WbVdPH8srYOA==", + "license": "MIT", + "dependencies": { + "@copilotkit/shared": "^1.68.0" + } + }, + "node_modules/@copilotkit/core": { + "version": "1.68.3", + "resolved": "https://registry.npmjs.org/@copilotkit/core/-/core-1.68.3.tgz", + "integrity": "sha512-HcMX5/QwYGsEBLqZUxCeTqhCPaihtCq1Fjm6xUygX6WVrdbqtalKWuRQNFCwvzB0YMYvnNNZLRYcp37PprJq9A==", + "dependencies": { + "@ag-ui/client": "0.0.57", + "@copilotkit/shared": "1.68.3", + "@tanstack/pacer": "^0.20.1", + "phoenix": "^1.8.4", + "rxjs": "7.8.1", + "zod-to-json-schema": "^3.24.6" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@copilotkit/core/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/core/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/core/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/core/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/license-verifier": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@copilotkit/license-verifier/-/license-verifier-0.5.0.tgz", + "integrity": "sha512-vrwKtIpYwF0FT9ZoYASH8owa2cGV0dhDvJGaCRaRMStwDxpc6DRdydKkhx8cWZXyBRxEYcq/Vygv4JvevhQQdQ==", + "license": "MIT" + }, + "node_modules/@copilotkit/runtime": { + "version": "1.68.3", + "resolved": "https://registry.npmjs.org/@copilotkit/runtime/-/runtime-1.68.3.tgz", + "integrity": "sha512-BOgYbRIXOXLcgiW+OISuMrzxXyXN0Ghk1xuHbd8XPTtgTl82NGBnv8XHHfxsMolta3SVAUaIkcphaUlw2439MQ==", + "license": "MIT", + "dependencies": { + "@ag-ui/a2ui-middleware": "0.0.10", + "@ag-ui/client": "0.0.57", + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/langgraph": "0.0.42", + "@ag-ui/mcp-apps-middleware": "0.0.3", + "@ag-ui/mcp-middleware": "0.0.1", + "@ai-sdk/anthropic": "^3.0.49", + "@ai-sdk/google": "^3.0.33", + "@ai-sdk/google-vertex": "^3.0.97", + "@ai-sdk/mcp": "^1.0.21", + "@ai-sdk/openai": "^3.0.36", + "@copilotkit/channels-core": "^0.9.0", + "@copilotkit/channels-intelligence": "0.9.0", + "@copilotkit/license-verifier": "~0.5.0", + "@copilotkit/shared": "1.68.3", + "@graphql-yoga/plugin-defer-stream": "^3.3.1", + "@hono/node-server": "^1.13.5", + "@modelcontextprotocol/sdk": "^1.18.2", + "@remix-run/node-fetch-server": "^0.13.0", + "@scarf/scarf": "^1.3.0", + "@segment/analytics-node": "^2.1.2", + "ai": "^6.0.104", + "clarinet": "^0.12.4", + "class-transformer": "^0.5.1", + "class-validator": "^0.14.1", + "cors": "^2.8.5", + "express": "^4.21.2", + "graphql": "^16.8.1", + "graphql-scalars": "^1.23.0", + "graphql-yoga": "^5.3.1", + "hono": "^4.11.4", + "openai": "^4.85.1 || >=5.0.0", + "partial-json": "^0.1.7", + "phoenix": "^1.8.4", + "pino": "^9.2.0", + "pino-pretty": "^11.2.1", + "reflect-metadata": "^0.2.2", + "rxjs": "7.8.1", + "type-graphql": "2.0.0-rc.1", + "uuid": "^11.1.0", + "ws": "^8.18.0", + "zod": "^3.23.3" + }, + "peerDependencies": { + "@anthropic-ai/sdk": ">=0.57.0", + "@langchain/aws": ">=0.1.9", + "@langchain/community": ">=0.3.58", + "@langchain/core": ">=0.3.66", + "@langchain/google-gauth": ">=0.1.0", + "@langchain/langgraph-sdk": ">=0.1.2", + "@langchain/openai": ">=0.4.2", + "groq-sdk": ">=0.3.0 <1.0.0", + "langchain": ">=0.3.3", + "openai": "^4.85.1 || >=5.0.0" + }, + "peerDependenciesMeta": { + "@anthropic-ai/sdk": { + "optional": true + }, + "@langchain/aws": { + "optional": true + }, + "@langchain/community": { + "optional": true + }, + "@langchain/google-gauth": { + "optional": true + }, + "@langchain/langgraph-sdk": { + "optional": true + }, + "@langchain/openai": { + "optional": true + }, + "groq-sdk": { + "optional": true + }, + "langchain": { + "optional": true + }, + "openai": { + "optional": true + } + } + }, + "node_modules/@copilotkit/runtime/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/runtime/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/runtime/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/runtime/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/shared": { + "version": "1.68.3", + "resolved": "https://registry.npmjs.org/@copilotkit/shared/-/shared-1.68.3.tgz", + "integrity": "sha512-y8d7zrz4T81cpZwYHjVa4SOMbEhPzdlxJN5I9Q1JiasIuwcMEbuxXlk5H0Jc5xhZlb0vmaOsJ1ednatTe4gPdg==", + "license": "MIT", + "dependencies": { + "@ag-ui/client": "0.0.57", + "@copilotkit/license-verifier": "~0.5.0", + "@segment/analytics-node": "^2.1.2", + "@standard-schema/spec": "^1.0.0", + "chalk": "4.1.2", + "graphql": "^16.8.1", + "partial-json": "^0.1.7", + "uuid": "^11.1.0", + "zod": "^3.23.3", + "zod-to-json-schema": "^3.23.5" + }, + "peerDependencies": { + "@ag-ui/core": ">=0.0.48" + } + }, + "node_modules/@copilotkit/shared/node_modules/@ag-ui/client": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/client/-/client-0.0.57.tgz", + "integrity": "sha512-Xap2alG9Z0/j5kb3x4D7oTpe2sw1dfrC9rgJJr2NZu5vKcm8dzIPNd31mF2B4zS3BKqYIu245yxKPhEtT30MHw==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/encoder": "0.0.57", + "@ag-ui/proto": "0.0.57", + "@types/uuid": "^10.0.0", + "compare-versions": "^6.1.1", + "fast-json-patch": "^3.1.1", + "rxjs": "7.8.1", + "untruncate-json": "^0.0.1", + "uuid": "^11.1.0", + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/shared/node_modules/@ag-ui/client/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/shared/node_modules/@ag-ui/encoder": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/encoder/-/encoder-0.0.57.tgz", + "integrity": "sha512-ifD9NctR4xyPDR58xF9GK1bj/S8oECFkTeDfuYD8tXdbcOstIJ2TOqU2zhiCKnw7Vw+zR9Qv3TbsM9E7Gi9X3Q==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@ag-ui/proto": "0.0.57" + } + }, + "node_modules/@copilotkit/shared/node_modules/@ag-ui/encoder/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@copilotkit/shared/node_modules/@ag-ui/proto": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/proto/-/proto-0.0.57.tgz", + "integrity": "sha512-pPENOZt0P6ibH8sCTgq05wLYXi5t3P9B5r/1bWYehXjUxtyOdnukSlWM++SsCIwUXsQdm/b3aBgGjEeTF7RenA==", + "dependencies": { + "@ag-ui/core": "0.0.57", + "@bufbuild/protobuf": "^2.2.5", + "@protobuf-ts/protoc": "^2.11.1" + } + }, + "node_modules/@copilotkit/shared/node_modules/@ag-ui/proto/node_modules/@ag-ui/core": { + "version": "0.0.57", + "resolved": "https://registry.npmjs.org/@ag-ui/core/-/core-0.0.57.tgz", + "integrity": "sha512-gho1OWjNE6E3Rl7ZEZ1wr2CEpUHjLFU0FqzCZZk439TicLu+BfLCMkMokB07bMGlRmbJ60hM6LW60iOVauCx+Q==", + "dependencies": { + "zod": "^3.22.4" + } + }, + "node_modules/@envelop/core": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@envelop/core/-/core-5.6.0.tgz", + "integrity": "sha512-cD7HNfAzJVw/0Pxneu51UAKzUGLvkctk9rr9DVJ9b7FDe4nSa9kAGMRxx145H6ooELIUMjTd2buk3PuvjJmp/A==", + "license": "MIT", + "dependencies": { + "@envelop/instrumentation": "^1.0.0", + "@envelop/types": "^5.2.1", + "@whatwg-node/promise-helpers": "^1.2.4", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@envelop/instrumentation": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@envelop/instrumentation/-/instrumentation-1.0.0.tgz", + "integrity": "sha512-cxgkB66RQB95H3X27jlnxCRNTmPuSTgmBAq6/4n2Dtv4hsk4yz8FadA1ggmd0uZzvKqWD6CR+WFgTjhDqg7eyw==", + "license": "MIT", + "dependencies": { + "@whatwg-node/promise-helpers": "^1.2.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@envelop/types": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/@envelop/types/-/types-5.2.1.tgz", + "integrity": "sha512-CsFmA3u3c2QoLDTfEpGr4t25fjMU31nyvse7IzWTvb0ZycuPjMjb0fjlheh+PbhBYb9YLugnT2uY6Mwcg1o+Zg==", + "license": "MIT", + "dependencies": { + "@whatwg-node/promise-helpers": "^1.0.0", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@fastify/busboy": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.2.2.tgz", + "integrity": "sha512-yXSS27qPExaXeuLvMRMXOLtpipzfQYNjG3FkunDWKGfMYjKuhFXko9CVzqxm8jcF+lmtS9Fd89QNdh9XDjnbNg==", + "license": "MIT" + }, + "node_modules/@graphql-tools/executor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor/-/executor-2.0.0.tgz", + "integrity": "sha512-BjoqO5UfcV3BUqamGtHNm4ITBk040VOmWql/MrUefPo30x6t4v1+engfjgAjWikMsRPLU4ZC6e2QjICLucnOTA==", + "license": "MIT", + "dependencies": { + "@graphql-tools/utils": "^12.0.0", + "@graphql-typed-document-node/core": "^3.2.0", + "@repeaterjs/repeater": "^3.1.0", + "@whatwg-node/disposablestack": "^0.0.6", + "@whatwg-node/promise-helpers": "^1.0.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/executor/node_modules/@graphql-tools/utils": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-12.0.0.tgz", + "integrity": "sha512-aMdIo/l+8j4lhamWAf+MWHr+lOW8zArSBKXspqtKHgt5I2JF9LS55KDLUe/L9AiJOV/O6qJJ60hgYydbnJHbxg==", + "license": "MIT", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", + "cross-inspect": "1.0.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/merge": { + "version": "9.2.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-9.2.3.tgz", + "integrity": "sha512-cKRoXqJGy2zSRBLvotQpkACbXlHAb0yuHLN0l0ypKGCuL3NnF0zofYalkBJqiBxxxpK0lr3s9uowKFHCKi1/ZQ==", + "license": "MIT", + "dependencies": { + "@graphql-tools/utils": "^12.0.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-12.0.0.tgz", + "integrity": "sha512-aMdIo/l+8j4lhamWAf+MWHr+lOW8zArSBKXspqtKHgt5I2JF9LS55KDLUe/L9AiJOV/O6qJJ60hgYydbnJHbxg==", + "license": "MIT", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", + "cross-inspect": "1.0.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/schema": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-10.1.0.tgz", + "integrity": "sha512-wao48XQnfY631s3jXoNrhEHvCI8mlKXmIuWrR7F6zAdv92VuSOfHoq9P9KL2EnUMgBUnaStnByOx9Mn6RieWDg==", + "license": "MIT", + "dependencies": { + "@graphql-tools/merge": "^9.2.3", + "@graphql-tools/utils": "^12.0.0", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-12.0.0.tgz", + "integrity": "sha512-aMdIo/l+8j4lhamWAf+MWHr+lOW8zArSBKXspqtKHgt5I2JF9LS55KDLUe/L9AiJOV/O6qJJ60hgYydbnJHbxg==", + "license": "MIT", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", + "cross-inspect": "1.0.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/utils": { + "version": "11.2.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-11.2.2.tgz", + "integrity": "sha512-Do2A/t6ayqOma8m7PvpYMsCBswL+NB35BQSng4GWSBqafL2/BnfAZy/NSENPwV721Rm2fG0BHETFC0+FJJZmLw==", + "license": "MIT", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "@whatwg-node/promise-helpers": "^1.0.0", + "cross-inspect": "1.0.1", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-typed-document-node/core": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", + "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", + "license": "MIT", + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-yoga/logger": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@graphql-yoga/logger/-/logger-2.0.1.tgz", + "integrity": "sha512-Nv0BoDGLMg9QBKy9cIswQ3/6aKaKjlTh87x3GiBg2Z4RrjyrM48DvOOK0pJh1C1At+b0mUIM67cwZcFTDLN4sA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@graphql-yoga/plugin-defer-stream": { + "version": "3.22.0", + "resolved": "https://registry.npmjs.org/@graphql-yoga/plugin-defer-stream/-/plugin-defer-stream-3.22.0.tgz", + "integrity": "sha512-7F8/ADgCxRIUgGrG0mWEOI5HB0FYQeUj2YbH88+U05Fe72lrGufKpxOPN3O70jECPukh8jKFtyXfqjl5POPEzA==", + "license": "MIT", + "dependencies": { + "@graphql-tools/utils": "^11.2.0" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "graphql": "^15.2.0 || ^16.0.0 || ^17.0.0", + "graphql-yoga": "^5.22.0" + } + }, + "node_modules/@graphql-yoga/subscription": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@graphql-yoga/subscription/-/subscription-5.0.5.tgz", + "integrity": "sha512-oCMWOqFs6QV96/NZRt/ZhTQvzjkGB4YohBOpKM4jH/lDT4qb7Lex/aGCxpi/JD9njw3zBBtMqxbaC22+tFHVvw==", + "license": "MIT", + "dependencies": { + "@graphql-yoga/typed-event-target": "^3.0.2", + "@repeaterjs/repeater": "^3.0.4", + "@whatwg-node/events": "^0.1.0", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@graphql-yoga/typed-event-target": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@graphql-yoga/typed-event-target/-/typed-event-target-3.0.2.tgz", + "integrity": "sha512-ZpJxMqB+Qfe3rp6uszCQoag4nSw42icURnBRfFYSOmTgEeOe4rD0vYlbA8spvCu2TlCesNTlEN9BLWtQqLxabA==", + "license": "MIT", + "dependencies": { + "@repeaterjs/repeater": "^3.0.4", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@hono/node-server": { + "version": "1.19.17", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.17.tgz", + "integrity": "sha512-dSneS5qhiauZWGDCeK4o695Xd9nUNjviSZCMQrj10eetr8Uln1ucn6bbphOM6UynAMMtNIzZNSpL9vnASJwrPQ==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, + "node_modules/@isaacs/ttlcache": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@isaacs/ttlcache/-/ttlcache-2.1.5.tgz", + "integrity": "sha512-VwGZqqjAWPICTmxUZnbpEfO60LhPWzquik+bmyXGY7pYRn6diEvCI5i6Ca+J6o2y4vS73HrpuMTo2dOvUevH8w==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=12" + } + }, + "node_modules/@langchain/core": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/@langchain/core/-/core-1.2.9.tgz", + "integrity": "sha512-conzSEj9Zu1AyXJLXsSbgrtxtxinmI1yGqQ5CIJZSoV5rvv+yvQE/vgBnoySpBQ/bl3YPgj2FL/gbDjWykLSfg==", + "license": "MIT", + "dependencies": { + "@cfworker/json-schema": "^4.0.2", + "@standard-schema/spec": "^1.1.0", + "js-tiktoken": "^1.0.12", + "langsmith": ">=0.5.0 <1.0.0", + "mustache": "^4.2.0", + "p-queue": "^6.6.2", + "zod": "^3.25.76 || ^4" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@langchain/langgraph": { + "version": "1.4.12", + "resolved": "https://registry.npmjs.org/@langchain/langgraph/-/langgraph-1.4.12.tgz", + "integrity": "sha512-63iH/igH5Fh5fHqmWp09YYWaDKKB9v4RCmYNJBrnQ224rFRbjebgyYW6o5RCczN5FZxIhQj+xT51rrNmG0zi5A==", + "license": "MIT", + "dependencies": { + "@langchain/langgraph-checkpoint": "^1.1.5", + "@langchain/langgraph-sdk": "~1.9.30", + "@langchain/protocol": "^0.0.18", + "@standard-schema/spec": "1.1.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@langchain/core": "^1.1.48", + "zod": "^3.25.32 || ^4.2.0" + } + }, + "node_modules/@langchain/langgraph-checkpoint": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/@langchain/langgraph-checkpoint/-/langgraph-checkpoint-1.1.5.tgz", + "integrity": "sha512-BwDwl5VeTOh6CVuiIPgsUgfK51vTJDMSbFcSCUfjJWsl8/DPdK/mbv+ejxJstkSk/BlSPMP4JfXWcN6jD2ea2Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@langchain/core": "^1.1.48" + } + }, + "node_modules/@langchain/langgraph-sdk": { + "version": "1.9.31", + "resolved": "https://registry.npmjs.org/@langchain/langgraph-sdk/-/langgraph-sdk-1.9.31.tgz", + "integrity": "sha512-y1sSdq39IPb6mOX43+JiSezVbUdA8EBEJ1gvn91GP0jrLG0EcSApeRDCjRouyDpPXZ51bQXEQhA8CiHM0mzcAw==", + "license": "MIT", + "dependencies": { + "@langchain/protocol": "^0.0.18", + "@types/json-schema": "^7.0.15", + "p-queue": "^9.0.1", + "p-retry": "^7.1.1" + }, + "peerDependencies": { + "@langchain/core": "^1.1.48", + "react": "^18 || ^19", + "react-dom": "^18 || ^19", + "svelte": "^4.0.0 || ^5.0.0", + "vue": "^3.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + } + } + }, + "node_modules/@langchain/langgraph-sdk/node_modules/p-queue": { + "version": "9.3.3", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-9.3.3.tgz", + "integrity": "sha512-NXAOdnEe5FsZJfT4oK84lE1Y5cFFdWlRuOo5tww8DyNMxyRXwn39fIkUtNLKppcPC+UYU/bXujNCUGDv01y7CA==", + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.4", + "p-timeout": "^7.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@langchain/langgraph-sdk/node_modules/p-timeout": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-7.0.1.tgz", + "integrity": "sha512-AxTM2wDGORHGEkPCt8yqxOTMgpfbEHqF51f/5fJCmwFC3C/zNcGT63SymH2ttOAaiIws2zVg4+izQCjrakcwHg==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@langchain/protocol": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@langchain/protocol/-/protocol-0.0.18.tgz", + "integrity": "sha512-XW1egQtPfsGI41w2AMZNFZrUIwFSQHTjVMZs0OaTpCAvht/QLoaPN8FQcsysMVypOhupG28J29yOorrc70otBQ==", + "license": "MIT" + }, + "node_modules/@libsql/client": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@libsql/client/-/client-0.17.4.tgz", + "integrity": "sha512-lYayFWasDV78A+TjlEhr6ubb3odBV6OHjb+wdp8VQcyWWAEIjuwbCHaraEUS4m4yWoo0BvZo96It4VdzZRmRWw==", + "license": "MIT", + "dependencies": { + "@libsql/core": "^0.17.4", + "@libsql/hrana-client": "^0.10.0", + "js-base64": "^3.7.5", + "libsql": "^0.5.28", + "promise-limit": "^2.7.0" + } + }, + "node_modules/@libsql/core": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@libsql/core/-/core-0.17.4.tgz", + "integrity": "sha512-LqF9gIvnJ38nmAH1y/ChizHqDO/MO1wLgA96XrraulEEbqXxLjleSH92YWTolbuJKgPUmGu4aJk9W3UnAcxLOQ==", + "license": "MIT", + "dependencies": { + "js-base64": "^3.7.5" + } + }, + "node_modules/@libsql/darwin-arm64": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/darwin-arm64/-/darwin-arm64-0.5.29.tgz", + "integrity": "sha512-K+2RIB1OGFPYQbfay48GakLhqf3ArcbHqPFu7EZiaUcRgFcdw8RoltsMyvbj5ix2fY0HV3Q3Ioa/ByvQdaSM0A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@libsql/darwin-x64": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/darwin-x64/-/darwin-x64-0.5.29.tgz", + "integrity": "sha512-OtT+KFHsKFy1R5FVadr8FJ2Bb1mghtXTyJkxv0trocq7NuHntSki1eUbxpO5ezJesDvBlqFjnWaYYY516QNLhQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@libsql/hrana-client": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@libsql/hrana-client/-/hrana-client-0.10.0.tgz", + "integrity": "sha512-OoA4EMqRAC7kn7V2P6EQqRcpZf2W+AjsNIyCizBg339Tq/aMC7sRnzs3SklderhmQWAqEzvv8A2vhxVmWpkVvw==", + "license": "MIT", + "dependencies": { + "@libsql/isomorphic-ws": "^0.1.5", + "js-base64": "^3.7.5" + } + }, + "node_modules/@libsql/isomorphic-ws": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/@libsql/isomorphic-ws/-/isomorphic-ws-0.1.5.tgz", + "integrity": "sha512-DtLWIH29onUYR00i0GlQ3UdcTRC6EP4u9w/h9LxpUZJWRMARk6dQwZ6Jkd+QdwVpuAOrdxt18v0K2uIYR3fwFg==", + "license": "MIT", + "dependencies": { + "@types/ws": "^8.5.4", + "ws": "^8.13.0" + } + }, + "node_modules/@libsql/linux-arm-gnueabihf": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/linux-arm-gnueabihf/-/linux-arm-gnueabihf-0.5.29.tgz", + "integrity": "sha512-CD4n4zj7SJTHso4nf5cuMoWoMSS7asn5hHygsDuhRl8jjjCTT3yE+xdUvI4J7zsyb53VO5ISh4cwwOtf6k2UhQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@libsql/linux-arm-musleabihf": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/linux-arm-musleabihf/-/linux-arm-musleabihf-0.5.29.tgz", + "integrity": "sha512-2Z9qBVpEJV7OeflzIR3+l5yAd4uTOLxklScYTwpZnkm2vDSGlC1PRlueLaufc4EFITkLKXK2MWBpexuNJfMVcg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@libsql/linux-arm64-gnu": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/linux-arm64-gnu/-/linux-arm64-gnu-0.5.29.tgz", + "integrity": "sha512-gURBqaiXIGGwFNEaUj8Ldk7Hps4STtG+31aEidCk5evMMdtsdfL3HPCpvys+ZF/tkOs2MWlRWoSq7SOuCE9k3w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@libsql/linux-arm64-musl": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/linux-arm64-musl/-/linux-arm64-musl-0.5.29.tgz", + "integrity": "sha512-fwgYZ0H8mUkyVqXZHF3mT/92iIh1N94Owi/f66cPVNsk9BdGKq5gVpoKO+7UxaNzuEH1roJp2QEwsCZMvBLpqg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@libsql/linux-x64-gnu": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/linux-x64-gnu/-/linux-x64-gnu-0.5.29.tgz", + "integrity": "sha512-y14V0vY0nmMC6G0pHeJcEarcnGU2H6cm21ZceRkacWHvQAEhAG0latQkCtoS2njFOXiYIg+JYPfAoWKbi82rkg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@libsql/linux-x64-musl": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/linux-x64-musl/-/linux-x64-musl-0.5.29.tgz", + "integrity": "sha512-gquqwA/39tH4pFl+J9n3SOMSymjX+6kZ3kWgY3b94nXFTwac9bnFNMffIomgvlFaC4ArVqMnOZD3nuJ3H3VO1w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@libsql/win32-x64-msvc": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/@libsql/win32-x64-msvc/-/win32-x64-msvc-0.5.29.tgz", + "integrity": "sha512-4/0CvEdhi6+KjMxMaVbFM2n2Z44escBRoEYpR+gZg64DdetzGnYm8mcNLcoySaDJZNaBd6wz5DNdgRmcI4hXcg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@lukeed/csprng": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", + "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@lukeed/uuid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@lukeed/uuid/-/uuid-2.0.1.tgz", + "integrity": "sha512-qC72D4+CDdjGqJvkFMMEAtancHUQ7/d/tAiHf64z8MopFDmcrtbcJuerDtFceuAfQJ2pDSfCKCtbqoGBNnwg0w==", + "license": "MIT", + "dependencies": { + "@lukeed/csprng": "^1.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@mastra/client-js": { + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/@mastra/client-js/-/client-js-1.42.0.tgz", + "integrity": "sha512-q+WxtyiZfZSxR8C2tL2URhzuhB+xLSYeS94IpI1Ol3XbsAAmHnMOw0hRkd9/sM6Ot0qpxNdXM/tP8cL9Bq5fJw==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/ui-utils": "^1.2.11", + "@lukeed/uuid": "^2.0.1", + "@mastra/core": "1.61.0", + "@mastra/schema-compat": "1.3.7", + "canonicalize": "^1.0.8", + "jose": "^6.2.1", + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, + "node_modules/@mastra/core": { + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/@mastra/core/-/core-1.61.0.tgz", + "integrity": "sha512-HaarHi6tn8mgm9/wtD/H51rJ8YbiQFTZMbFP3zUfcpL6/v5uZcIa9KzNH6pyKVjMB3cWZU+2Np3yCei1LKf+aQ==", + "license": "Apache-2.0", + "dependencies": { + "@a2a-js/sdk-v0_3": "npm:@a2a-js/sdk@~0.3.14", + "@a2a-js/sdk-v1": "npm:@a2a-js/sdk@~1.0.1", + "@ai-sdk/provider-utils-v5": "npm:@ai-sdk/provider-utils@3.0.30", + "@ai-sdk/provider-utils-v6": "npm:@ai-sdk/provider-utils@4.0.40", + "@ai-sdk/provider-utils-v7": "npm:@ai-sdk/provider-utils@5.0.13", + "@ai-sdk/provider-v5": "npm:@ai-sdk/provider@2.0.3", + "@ai-sdk/provider-v6": "npm:@ai-sdk/provider@3.0.14", + "@ai-sdk/provider-v7": "npm:@ai-sdk/provider@4.0.4", + "@isaacs/ttlcache": "^2.1.5", + "@lukeed/uuid": "^2.0.1", + "@mastra/schema-compat": "1.3.7", + "@modelcontextprotocol/server": "2.0.0", + "@sindresorhus/slugify": "^2.2.1", + "@standard-schema/spec": "^1.1.0", + "ajv": "^8.20.0", + "chat": "^4.34.0", + "croner": "^10.0.1", + "dotenv": "^17.3.1", + "execa": "^9.6.1", + "fastq": "^1.20.1", + "gray-matter": "^4.0.3", + "ignore": "^7.0.5", + "jpeg-js": "^0.4.4", + "json-schema": "^0.4.0", + "lru-cache": "^11.2.7", + "p-map": "^7.0.4", + "p-retry": "^7.1.1", + "picomatch": "^4.0.3", + "posthog-node": "^5.46.1", + "tokenx": "^1.3.0", + "ws": "^8.21.0", + "xxhash-wasm": "^1.1.0" + }, + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, + "node_modules/@mastra/evals": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@mastra/evals/-/evals-1.9.0.tgz", + "integrity": "sha512-brabLN4sEwFzyH6MvqPHrhPQ6Pn7ITBMVlF4oMn/loJxr0BZ8W+8ea0WwtWvYQ6BM1awYuPS1iTsIe/slifWcg==", + "license": "Apache-2.0", + "dependencies": { + "compromise": "^14.15.0", + "keyword-extractor": "^0.0.28", + "sentiment": "^5.0.2", + "string-similarity": "^4.0.4" + }, + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "@mastra/core": ">=1.0.0-0 <2.0.0-0" + } + }, + "node_modules/@mastra/libsql": { + "version": "1.21.1", + "resolved": "https://registry.npmjs.org/@mastra/libsql/-/libsql-1.21.1.tgz", + "integrity": "sha512-QgS9c5XIFr/xoH1LsnH5WsgjZBt+jBDzE01tx6a1r2nNaj5Cb46aNbc+zOWx2NNASmQ7OhaGdWZVIJHHQXfauw==", + "license": "Apache-2.0", + "dependencies": { + "@libsql/client": "^0.17.4" + }, + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "@mastra/core": ">=1.51.0-0 <2.0.0-0" + } + }, + "node_modules/@mastra/memory": { + "version": "1.27.0", + "resolved": "https://registry.npmjs.org/@mastra/memory/-/memory-1.27.0.tgz", + "integrity": "sha512-/So8OB4gh5DIdRZ/0EZz7M6lHB3TVlbPIbO8c3PrVygg2IFiHbfckUmA/im6qq2pSaB0ScfrouEHOkRsfxdwyQ==", + "license": "Apache-2.0", + "dependencies": { + "@mastra/schema-compat": "1.3.7", + "async-mutex": "^0.5.0", + "diff": "^8.0.3", + "json-schema": "^0.4.0", + "lru-cache": "^11.2.7", + "probe-image-size": "^7.2.3", + "tokenx": "^1.3.0", + "xxhash-wasm": "^1.1.0", + "zod": "^4.4.3" + }, + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "@mastra/core": ">=1.4.1-0 <2.0.0-0" + } + }, + "node_modules/@mastra/memory/node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@mastra/observability": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@mastra/observability/-/observability-1.17.1.tgz", + "integrity": "sha512-Fk6tBZZMN56HFgudz+tCSH7XZkLXaHRENOybqsc5YwH3bTbmZpqoICumpoHGM3MI/0S8YYaEXdWiYKQ9MH+4kw==", + "license": "Apache-2.0", + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "@mastra/core": ">=1.16.0-0 <2.0.0-0", + "zod": "^3.25.0 || ^4.0.0" + } + }, + "node_modules/@mastra/schema-compat": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/@mastra/schema-compat/-/schema-compat-1.3.7.tgz", + "integrity": "sha512-06WfY+j9rulYnDp8CM7pL7JIyrntkMolqmyyb1VJNEzlYTQCIcJcY0SwQiubZv2tztmoYGikszDiRVyXp0E9gA==", + "license": "Apache-2.0", + "dependencies": { + "json-schema-to-zod": "^2.7.0", + "zod-from-json-schema": "^0.5.2" + }, + "engines": { + "node": ">=22.13.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, + "node_modules/@microsoft/agents-activity": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@microsoft/agents-activity/-/agents-activity-1.7.2.tgz", + "integrity": "sha512-aMPZFuyIkdAdKxscyEZ6o6m60rB+JbWE4n02HzP3QOmILWBfddRMxYlK6gFLd86Wpf1hYGvfJBdpx8Av5ZRBIA==", + "license": "MIT", + "dependencies": { + "zod": "3.25.75" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@microsoft/agents-activity/node_modules/zod": { + "version": "3.25.75", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.75.tgz", + "integrity": "sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@microsoft/agents-hosting": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@microsoft/agents-hosting/-/agents-hosting-1.7.2.tgz", + "integrity": "sha512-wRCiLusxFMkx27rN3+Iq+1lClkrcyflZVorGOLLN5y0/itacE6BaHjRsfpvxVnIKYZ2c4lQ3zCHyLScvZNumVg==", + "license": "MIT", + "dependencies": { + "@azure/core-auth": "1.10.1", + "@azure/msal-node": "5.1.5", + "@microsoft/agents-activity": "1.7.2", + "@microsoft/agents-telemetry": "1.7.2", + "jsonwebtoken": "9.0.3", + "jwks-rsa": "4.0.1", + "zod": "3.25.75" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@microsoft/agents-hosting/node_modules/zod": { + "version": "3.25.75", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.75.tgz", + "integrity": "sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@microsoft/agents-telemetry": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@microsoft/agents-telemetry/-/agents-telemetry-1.7.2.tgz", + "integrity": "sha512-iJBAm1MmCUaSoPE62GKp4OnlOSe+F+j8o/fwKuqiJEcedbgceTh6G5m8iqe/qDGwKSsBWuIu3Kt0comRrc140A==", + "license": "MIT", + "dependencies": { + "@microsoft/agents-activity": "1.7.2", + "debug": "^4.4.3" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "@opentelemetry/api": "1", + "@opentelemetry/api-logs": ">=0.214.0 <1" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@opentelemetry/api-logs": { + "optional": true + } + } + }, + "node_modules/@modelcontextprotocol/core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/core/-/core-2.0.0.tgz", + "integrity": "sha512-pJCEwGG7Lfr/+PQp9ZTwKXNeO5wzbfKL7H3MYpCorM4oFBoQrdjnBgEoqG+RjhsvS1FKrDbKux+M1HhlnGWqcA==", + "license": "MIT", + "dependencies": { + "zod": "^4.2.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@modelcontextprotocol/core/node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@modelcontextprotocol/sdk": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.30.0.tgz", + "integrity": "sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==", + "license": "MIT", + "dependencies": { + "@hono/node-server": "^1.19.9 || ^2.0.5", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", + "content-type": "^1.0.5", + "cors": "^2.8.5", + "cross-spawn": "^7.0.5", + "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", + "express": "^5.2.1", + "express-rate-limit": "^8.2.1", + "hono": "^4.11.4", + "jose": "^6.1.3", + "json-schema-typed": "^8.0.2", + "pkce-challenge": "^5.0.0", + "raw-body": "^3.0.0", + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", + "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^2.0.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.2", + "on-finished": "^2.4.1", + "qs": "^6.15.2", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/content-disposition": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", + "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "license": "MIT", + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/sdk/node_modules/type-is/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@modelcontextprotocol/server": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.0.0.tgz", + "integrity": "sha512-YhHWdHfpFMQfd0prsEnxKeS3Qz3ytIGmsS0sth4KDjnacIT7hxk6hXHkJ9KysxlkvTM+WZAtQbbcUhdoP4Hvtw==", + "license": "MIT", + "dependencies": { + "@modelcontextprotocol/core": "2.0.0", + "zod": "^4.2.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@modelcontextprotocol/server/node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.4.tgz", + "integrity": "sha512-LCkGo6JDfaBhgST7UpPWgNgLINpcpabaHfyz5OBx75nUYxBsaEPxjnyNjWpeb/xBup/682QnBfRBy2/LvPutZQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.4.tgz", + "integrity": "sha512-zExlW9zUJKZH/tOtVMttwjKa4Xm/3KcNjnE3dPN92uCktwavMxpgCA3MoJK/DOnTWsQgo224OaST27/mPNAf+w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.4.tgz", + "integrity": "sha512-Tg3yX65f5GbtXLkrYEHE5oibZG9epyYWas7FogTTEJeDEF9JlXJzKgXaNhT3UXlTOeA+AfZpYZYZ0uPj7Cfquw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.4.tgz", + "integrity": "sha512-dgX0P/9wGPJeHFBG+ZmhgE6bmtMt7NP5CRBGyyktpopdk/mW4POnrpQsSLtKI1dwpc+pPLuXHDh6vvskyQE/sw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.4.tgz", + "integrity": "sha512-8TNXMEjJc3QEy7R/x1INhgiU+XakDAFUzBhaz7+Rbrs8NH5UQeHQxxmzsSBJGyV6I1jW79undiQm8tOI+D+8FQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.4.tgz", + "integrity": "sha512-CmCXPQrkbwExx3j946/PtHWHbYJiCRBRDl4BlkRQcJB/YOwQxJRTpoo7aTsortjgoJ1x7opzTSxn7C+ASSLVjQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@neon-rs/load": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@neon-rs/load/-/load-0.0.4.tgz", + "integrity": "sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==", + "license": "MIT" + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz", + "integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@pinojs/redact": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@pinojs/redact/-/redact-0.4.0.tgz", + "integrity": "sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==", + "license": "MIT" + }, + "node_modules/@posthog/core": { + "version": "1.48.6", + "resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.48.6.tgz", + "integrity": "sha512-lvSO1nrxxakrAfB51fetHC29gSqdDtT+AyRrGlnc5nDSWhiBGtyqKNjDqsbnlTQoj14bAaWXS7RtzuGoTo5IsQ==", + "license": "MIT", + "dependencies": { + "@posthog/types": "^1.405.0" + } + }, + "node_modules/@posthog/types": { + "version": "1.405.0", + "resolved": "https://registry.npmjs.org/@posthog/types/-/types-1.405.0.tgz", + "integrity": "sha512-4rZ/taVXKQxs9Jrf7ZjlCRgrOSL69oKAgIWJQa5kRNJ6wll1UANbrJTSY+Su1e88LIG4zZVjKKKjyQHCkHdHcw==", + "license": "MIT" + }, + "node_modules/@protobuf-ts/protoc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/protoc/-/protoc-2.11.1.tgz", + "integrity": "sha512-mUZJaV0daGO6HUX90o/atzQ6A7bbN2RSuHtdwo8SSF2Qoe3zHwa4IHyCN1evftTeHfLmdz+45qo47sL+5P8nyg==", + "license": "Apache-2.0", + "bin": { + "protoc": "protoc.js" + } + }, + "node_modules/@remix-run/node-fetch-server": { + "version": "0.13.3", + "resolved": "https://registry.npmjs.org/@remix-run/node-fetch-server/-/node-fetch-server-0.13.3.tgz", + "integrity": "sha512-UfjOXed/DQteaM5VyTfqTeGpHwyL2J5aoRGY6cydip4tt1ehNNeSwuXCC7AEGE0RWBs/7bgKxYkL/B/+UDe4AA==", + "license": "MIT" + }, + "node_modules/@repeaterjs/repeater": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@repeaterjs/repeater/-/repeater-3.1.0.tgz", + "integrity": "sha512-TaoVksZRSx2KWYYpyLQtMQXXeS98VsgZImzW65xmiVgbYhXLk+aEsmzPLirqVuE4/XuUapH2iMtxUzaBNDzdSQ==", + "license": "MIT" + }, + "node_modules/@scarf/scarf": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.4.0.tgz", + "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", + "hasInstallScript": true, + "license": "Apache-2.0" + }, + "node_modules/@sec-ant/readable-stream": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz", + "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==", + "license": "MIT" + }, + "node_modules/@segment/analytics-core": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@segment/analytics-core/-/analytics-core-1.8.2.tgz", + "integrity": "sha512-5FDy6l8chpzUfJcNlIcyqYQq4+JTUynlVoCeCUuVz+l+6W0PXg+ljKp34R4yLVCcY5VVZohuW+HH0VLWdwYVAg==", + "license": "MIT", + "dependencies": { + "@lukeed/uuid": "^2.0.0", + "@segment/analytics-generic-utils": "1.2.0", + "dset": "^3.1.4", + "tslib": "^2.4.1" + } + }, + "node_modules/@segment/analytics-generic-utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@segment/analytics-generic-utils/-/analytics-generic-utils-1.2.0.tgz", + "integrity": "sha512-DfnW6mW3YQOLlDQQdR89k4EqfHb0g/3XvBXkovH1FstUN93eL1kfW9CsDcVQyH3bAC5ZsFyjA/o/1Q2j0QeoWw==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.1" + } + }, + "node_modules/@segment/analytics-node": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@segment/analytics-node/-/analytics-node-2.3.0.tgz", + "integrity": "sha512-fOXLL8uY0uAWw/sTLmezze80hj8YGgXXlAfvSS6TUmivk4D/SP0C0sxnbpFdkUzWg2zT64qWIZj26afEtSnxUA==", + "license": "MIT", + "dependencies": { + "@lukeed/uuid": "^2.0.0", + "@segment/analytics-core": "1.8.2", + "@segment/analytics-generic-utils": "1.2.0", + "buffer": "^6.0.3", + "jose": "^5.1.0", + "node-fetch": "^2.6.7", + "tslib": "^2.4.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@segment/analytics-node/node_modules/jose": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz", + "integrity": "sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/@sindresorhus/merge-streams": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@sindresorhus/slugify": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@sindresorhus/slugify/-/slugify-2.2.1.tgz", + "integrity": "sha512-MkngSCRZ8JdSOCHRaYd+D01XhvU3Hjy6MGl06zhOk614hp9EOAp5gIkBeQg7wtmxpitU6eAL4kdiRMcJa2dlrw==", + "license": "MIT", + "dependencies": { + "@sindresorhus/transliterate": "^1.0.0", + "escape-string-regexp": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@sindresorhus/transliterate": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/transliterate/-/transliterate-1.6.0.tgz", + "integrity": "sha512-doH1gimEu3A46VX6aVxpHTeHrytJAG6HgdxntYnCFiIFHEM/ZGpG8KiZGBChchjQmG0XFIBL552kBTjVcMZXwQ==", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@slack/bolt": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@slack/bolt/-/bolt-4.7.3.tgz", + "integrity": "sha512-bODs8q/yNDWUPoxmQhFrRqLMA5vhB/PDizYWqb6CkQhLWEUo5JFtfJcmeU4ElGl6qSt++OKjSYNa4MPc77CleQ==", + "license": "MIT", + "dependencies": { + "@slack/logger": "^4.0.1", + "@slack/oauth": "^3.0.5", + "@slack/socket-mode": "^2.0.7", + "@slack/types": "^2.21.1", + "@slack/web-api": "^7.16.0", + "axios": "^1.12.0", + "express": "^5.0.0", + "path-to-regexp": "^8.1.0", + "raw-body": "^3", + "tsscmp": "^1.0.6" + }, + "engines": { + "node": ">=18", + "npm": ">=8.6.0" + }, + "peerDependencies": { + "@types/express": "^5.0.0" + } + }, + "node_modules/@slack/bolt/node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@slack/bolt/node_modules/body-parser": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", + "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^2.0.0", + "debug": "^4.4.3", + "http-errors": "^2.0.1", + "iconv-lite": "^0.7.2", + "on-finished": "^2.4.1", + "qs": "^6.15.2", + "raw-body": "^3.0.2", + "type-is": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/body-parser/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/content-disposition": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", + "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/@slack/bolt/node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/@slack/bolt/node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/media-typer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", + "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@slack/bolt/node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@slack/bolt/node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/negotiator/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/type-is": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", + "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", + "license": "MIT", + "dependencies": { + "content-type": "^2.0.0", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/bolt/node_modules/type-is/node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/@slack/logger": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@slack/logger/-/logger-4.0.1.tgz", + "integrity": "sha512-6cmdPrV/RYfd2U0mDGiMK8S7OJqpCTm7enMLRR3edccsPX8j7zXTLnaEF4fhxxJJTAIOil6+qZrnUPTuaLvwrQ==", + "license": "MIT", + "dependencies": { + "@types/node": ">=18" + }, + "engines": { + "node": ">= 18", + "npm": ">= 8.6.0" + } + }, + "node_modules/@slack/oauth": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@slack/oauth/-/oauth-3.0.5.tgz", + "integrity": "sha512-exqFQySKhNDptWYSWhvRUJ4/+ndu2gayIy7vg/JfmJq3wGtGdHk531P96fAZyBm5c1Le3yaPYqv92rL4COlU3A==", + "license": "MIT", + "dependencies": { + "@slack/logger": "^4.0.1", + "@slack/web-api": "^7.15.0", + "@types/jsonwebtoken": "^9", + "@types/node": ">=18", + "jsonwebtoken": "^9" + }, + "engines": { + "node": ">=18", + "npm": ">=8.6.0" + } + }, + "node_modules/@slack/socket-mode": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@slack/socket-mode/-/socket-mode-2.0.7.tgz", + "integrity": "sha512-qYy07je71WnEHgRwmw12DlAnZLi5HXmdlI2WUzUK2LH/rYXQpP6uEg462S5CwfE8FoCKUdIigHtYnOOfzZH1lQ==", + "license": "MIT", + "dependencies": { + "@slack/logger": "^4.0.1", + "@slack/web-api": "^7.15.0", + "@types/node": ">=18", + "@types/ws": "^8", + "eventemitter3": "^5", + "ws": "^8" + }, + "engines": { + "node": ">= 18", + "npm": ">= 8.6.0" + } + }, + "node_modules/@slack/types": { + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/@slack/types/-/types-2.22.0.tgz", + "integrity": "sha512-sZ9lIgJhPX2qft/tKWiklFlc0o1FWeI7QtciZJfW1+ErH1eGGHvOZ8e73sleTCFEFJp1q/R0WeS8Oa7AsiDprg==", + "license": "MIT", + "engines": { + "node": ">= 12.13.0", + "npm": ">= 6.12.0" + } + }, + "node_modules/@slack/web-api": { + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/@slack/web-api/-/web-api-7.19.0.tgz", + "integrity": "sha512-ItjyjEZml+LDH8CjcCLRLJHh7VZtevPKExrRN3l5KWyBliyDnGAeoO4Y+K+fFBmRpKLYVPgqWMX4THldv2HVtA==", + "license": "MIT", + "dependencies": { + "@slack/logger": "^4.0.1", + "@slack/types": "^2.21.0", + "@types/node": ">=18", + "@types/retry": "0.12.0", + "axios": "^1.16.0", + "eventemitter3": "^5.0.1", + "form-data": "^4.0.4", + "is-electron": "2.2.2", + "is-stream": "^2", + "p-queue": "^6", + "p-retry": "^4", + "retry": "^0.13.1" + }, + "engines": { + "node": ">= 18", + "npm": ">= 8.6.0" + } + }, + "node_modules/@slack/web-api/node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "license": "MIT", + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@smithy/core": { + "version": "3.33.3", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.33.3.tgz", + "integrity": "sha512-CsOeKq/9kA3y6VJHt+/+VTCtBaxJ4OTFpgrjIUhPpDIKxBci1k2bJaQASF2h/ELWrulGp+t97DZ0mevfAD8idg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.5.2.tgz", + "integrity": "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/core": "^3.33.2", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.7.2.tgz", + "integrity": "sha512-nZyWTmSpJEXl6VtWVMBJve/7x12DZu6sIX1z1a+ZMaHlQQRs9Zpu6NbTe/gmxYXVRpkjxyDYpZ5gx2IM6f/Wkw==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/core": "^3.33.2", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/node-http-handler": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.11.3.tgz", + "integrity": "sha512-2jY1tSpERfPfWqyBV2pH+iGFaghVsIJszJNsT7hxtQYhVJpWDyc0LqOWI+nXOxOAHaEfZ4PXXtp1wW1TGpHhkA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/core": "^3.33.3", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/signature-v4": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.7.3.tgz", + "integrity": "sha512-7ImGm+FkHRLcBaRttIAMZ6bzJZWb2cJGoYjq46F2UjycujWzrL9GEN9h4w7eQyXJYnltrUhxbbieBAIRrdqpow==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "@smithy/core": "^3.33.3", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "4.17.2", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.17.2.tgz", + "integrity": "sha512-FOKpVZob9MPTn2znRzGrnsMHv7BOsKVw3XiP/cOyYLDVZ9qKp4nifIiSCuUU/fIj5Vu0UOAxCFr+qRAtG0NUkA==", + "license": "Apache-2.0", + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@stablelib/base64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz", + "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@tanstack/devtools-event-client": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@tanstack/devtools-event-client/-/devtools-event-client-0.4.4.tgz", + "integrity": "sha512-6T5Yop/793YI+H+5J8Hsyj4kCih9sl4t3ElLgKioW5hk3ocn+ZdSJ94tT7vL7uabxSugWYBZlOTMPzEw2puvQw==", + "license": "MIT", + "bin": { + "intent": "bin/intent.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/pacer": { + "version": "0.20.1", + "resolved": "https://registry.npmjs.org/@tanstack/pacer/-/pacer-0.20.1.tgz", + "integrity": "sha512-ZNQ1bIL6eUXVKdic0tiImvBVkWrg/IoSK6VIacTrO3d3HAGnd70qFJNJagR/YOJIOw4EKGWnodwpYZkN1pWuVQ==", + "license": "MIT", + "dependencies": { + "@tanstack/devtools-event-client": "^0.4.3", + "@tanstack/store": "^0.9.3" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/store": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/@tanstack/store/-/store-0.9.3.tgz", + "integrity": "sha512-8reSzl/qGWGGVKhBoxXPMWzATSbZLZFWhwBAFO9NAyp0TxzfBP0mIrGb8CP8KrQTmvzXlR/vFPPUrHTLBGyFyw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/express": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz", + "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^5.0.0", + "@types/serve-static": "^2" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.3.tgz", + "integrity": "sha512-dPfW8NFiOF4wOHc7+N/QSxlY9cfSsenewGbAz8C8U/MULPd/YZ27LvJUIlzaXie7e6Ove9YunJGgC9tbHD2cKw==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", + "license": "MIT", + "peer": true + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", + "license": "MIT", + "dependencies": { + "@types/ms": "*", + "@types/node": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.18.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.0.tgz", + "integrity": "sha512-m5ObIqwsUp6BZzyiy4RdZpzWGub9bqLJMvZDD0QMXhxjqMHMENlj+SqF5QxoUwaQNFe+8kz8XM8ZQhqkQPTgMQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/qs": { + "version": "6.15.1", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.1.tgz", + "integrity": "sha512-GZHUBZR9hckSUhrxmp1nG6NwdpM9fCunJwyThLW1X3AyHgd9IlHb6VANpQQqDr2o/qQp6McZ3y/IA2rVzKzSbw==", + "license": "MIT", + "peer": true + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "license": "MIT", + "peer": true + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "license": "MIT" + }, + "node_modules/@types/semver": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.8.0.tgz", + "integrity": "sha512-1mAINjtQCXXeLkJ9ehXkwOcBpqtLxiVtKhpUf83DdRNdQKV0iXZpaHYqRr7nj+wvxuJzoAmAwXI+sCNMv1CzLQ==", + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", + "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz", + "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@types/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", + "license": "MIT" + }, + "node_modules/@types/validator": { + "version": "13.15.10", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.10.tgz", + "integrity": "sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==", + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typespec/ts-http-runtime": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.8.tgz", + "integrity": "sha512-bLMpVcWZNzq6lYOybwFwOAR1IXKcHnhUNqYeHjl1bET/qE3jFPFH+p8Wrh3rU4xwdnifPxmKNESBYnvnmc75aA==", + "license": "MIT", + "dependencies": { + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/@vercel/oidc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@vercel/oidc/-/oidc-3.2.0.tgz", + "integrity": "sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug==", + "license": "Apache-2.0", + "engines": { + "node": ">= 20" + } + }, + "node_modules/@whatwg-node/disposablestack": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/@whatwg-node/disposablestack/-/disposablestack-0.0.6.tgz", + "integrity": "sha512-LOtTn+JgJvX8WfBVJtF08TGrdjuFzGJc4mkP8EdDI8ADbvO7kiexYep1o8dwnt0okb0jYclCDXF13xU7Ge4zSw==", + "license": "MIT", + "dependencies": { + "@whatwg-node/promise-helpers": "^1.0.0", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@whatwg-node/events": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@whatwg-node/events/-/events-0.1.2.tgz", + "integrity": "sha512-ApcWxkrs1WmEMS2CaLLFUEem/49erT3sxIVjpzU5f6zmVcnijtDSrhoK2zVobOIikZJdH63jdAXOrvjf6eOUNQ==", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@whatwg-node/fetch": { + "version": "0.10.13", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.10.13.tgz", + "integrity": "sha512-b4PhJ+zYj4357zwk4TTuF2nEe0vVtOrwdsrNo5hL+u1ojXNhh1FgJ6pg1jzDlwlT4oBdzfSwaBwMCtFCsIWg8Q==", + "license": "MIT", + "dependencies": { + "@whatwg-node/node-fetch": "^0.8.3", + "urlpattern-polyfill": "^10.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@whatwg-node/node-fetch": { + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.8.6.tgz", + "integrity": "sha512-BDMdYFcerLQkwA2RTldxOqRCs6ZQD1S7UgP3pUdGUkcbgTrP/V5ko77ZkCww9DHmC4lpoYuwigGfQYj285gMvA==", + "license": "MIT", + "dependencies": { + "@fastify/busboy": "^3.1.1", + "@whatwg-node/disposablestack": "^0.0.6", + "@whatwg-node/promise-helpers": "^1.3.2", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@whatwg-node/promise-helpers": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@whatwg-node/promise-helpers/-/promise-helpers-1.3.2.tgz", + "integrity": "sha512-Nst5JdK47VIl9UcGwtv2Rcgyn5lWtZ0/mhRQ4G8NN2isxpq2TO30iqHzmwoJycjWuyUfg3GFXqP/gFHXeV57IA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@whatwg-node/server": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@whatwg-node/server/-/server-0.11.0.tgz", + "integrity": "sha512-VSdkwnJRr8Yv9UgB2aXB3VUPWwd6Oqnn0hycFwhg9pZgWxJXb7JmhsiXe9tmpMwjHFxli12PGcz9aI63YYloGQ==", + "license": "MIT", + "dependencies": { + "@envelop/instrumentation": "^1.0.0", + "@whatwg-node/disposablestack": "^0.0.6", + "@whatwg-node/fetch": "^0.10.13", + "@whatwg-node/promise-helpers": "^1.3.2", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@workflow/serde": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@workflow/serde/-/serde-4.1.0.tgz", + "integrity": "sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ==", + "license": "Apache-2.0" + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ai": { + "version": "6.0.261", + "resolved": "https://registry.npmjs.org/ai/-/ai-6.0.261.tgz", + "integrity": "sha512-W+S9pGvYxRN2lUrdTK20GRp+9HuMzsZexYb2tWWqlDBHuaHQoRn2Iiz4VMcV3+QaZRC8IuKBcMgHtMn215OBiQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/gateway": "3.0.177", + "@ai-sdk/provider": "3.0.15", + "@ai-sdk/provider-utils": "4.0.46", + "@opentelemetry/api": "^1.9.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/ai/node_modules/@ai-sdk/provider": { + "version": "3.0.15", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.15.tgz", + "integrity": "sha512-XeZW1CcDF2GMbH4wejW6xBRI2QCOgnkVYUnxoeDadB1mf85riL2bMUeDoh+6gJ/r4mjNfzUPW8OjLjvwTP0u1Q==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/ai/node_modules/@ai-sdk/provider-utils": { + "version": "4.0.46", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-4.0.46.tgz", + "integrity": "sha512-tEtld97plCFiYevsJuOkGkeuhQndeMWFBVrJS4AjnbD5AqrNSXRCe0p+BZ3Cju/sxDeeZ9ym3q9YUV8fASA7aQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "3.0.15", + "@standard-schema/spec": "^1.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^6.28.0" + }, + "engines": { + "node": ">=18.17" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/async-mutex": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.5.0.tgz", + "integrity": "sha512-1A94B18jkJ3DYq284ohPxoXbfTA5HsQ7/Mf4DEhcyLx3Bz27Rh59iScbB6EPiP+B+joue6YCxcMXSbFC1tZKwA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/atomic-sleep/-/atomic-sleep-1.0.0.tgz", + "integrity": "sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/axios": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.19.0.tgz", + "integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.6", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, + "node_modules/axios/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/axios/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/body-parser": { + "version": "1.20.6", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.6.tgz", + "integrity": "sha512-p5tAzS57i5MV9fZFDj9LeIiTZEufbSe2eDozP+ElheSUq1m74CRq1jI4mYNDdVs9vQztXFLuk/Gd6BWTdwRJ5g==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "~1.2.0", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "on-finished": "~2.4.1", + "qs": "~6.15.1", + "raw-body": "~2.5.3", + "type-is": "~1.6.18", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/body-parser/node_modules/raw-body": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", + "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.4.24", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/bowser": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.14.1.tgz", + "integrity": "sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/buffer": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", + "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/bufferutil": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.1.0.tgz", + "integrity": "sha512-ZMANVnAixE6AWWnPzlW2KpUrxhm9woycYvPOo67jWHyFowASTEd9s+QN1EIMsSDtwhIxN4sWE1jotpuDUIgyIw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/canonicalize": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/canonicalize/-/canonicalize-1.0.8.tgz", + "integrity": "sha512-0CNTVCLZggSh7bc5VkX5WWPWO+cyZbNd07IHIsSXLia/eAq+r836hgk+8BKoEh7949Mda87VUOitx5OddVj64A==", + "license": "Apache-2.0" + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chat": { + "version": "4.38.1", + "resolved": "https://registry.npmjs.org/chat/-/chat-4.38.1.tgz", + "integrity": "sha512-FD6vNLT8clXHKhN3I1m+3Bn2nz0rsB6/bmNPsJeh6Cr7kwWLg0MYl2uor9YaKBp38F77sBRVKdYKVA6ihUby3w==", + "license": "MIT", + "dependencies": { + "@workflow/serde": "4.1.0-beta.2", + "mdast-util-to-string": "^4.0.0", + "remark-gfm": "^4.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "remend": "^1.2.1", + "unified": "^11.0.5" + }, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "ai": "^6.0.182 || ^7.0.0", + "workflow": "^5.0.0-beta.35", + "zod": "^3.0.0 || ^4.0.0" + }, + "peerDependenciesMeta": { + "ai": { + "optional": true + }, + "workflow": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/chat/node_modules/@workflow/serde": { + "version": "4.1.0-beta.2", + "resolved": "https://registry.npmjs.org/@workflow/serde/-/serde-4.1.0-beta.2.tgz", + "integrity": "sha512-8kkeoQKLDaKXefjV5dbhBj2aErfKp1Mc4pb6tj8144cF+Em5SPbyMbyLCHp+BVrFfFVCBluCtMx+jjvaFVZGww==", + "license": "Apache-2.0" + }, + "node_modules/clarinet": { + "version": "0.12.6", + "resolved": "https://registry.npmjs.org/clarinet/-/clarinet-0.12.6.tgz", + "integrity": "sha512-0FR+TrvLbYHLjhzs9oeIbd3yfZmd4u2DzYQEjUTm2dNfh4Y/9RIRWPjsm3aBtrVEpjKI7+lWa4ouqEXoml84mQ==", + "license": "BSD-2-Clause", + "engines": { + "chrome": ">=16.0.912", + "firefox": ">=0.8.0", + "node": ">=0.3.6" + } + }, + "node_modules/class-transformer": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz", + "integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==", + "license": "MIT" + }, + "node_modules/class-validator": { + "version": "0.14.4", + "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.4.tgz", + "integrity": "sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==", + "license": "MIT", + "dependencies": { + "@types/validator": "^13.15.3", + "libphonenumber-js": "^1.11.1", + "validator": "^13.15.22" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.20", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", + "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "license": "MIT" + }, + "node_modules/compromise": { + "version": "14.16.0", + "resolved": "https://registry.npmjs.org/compromise/-/compromise-14.16.0.tgz", + "integrity": "sha512-4DFYl/Hl7sW4XWUDfx9S5vxqyYKpZDwwqrpXsQv5acdbVP+joKceIcIaLb0lhVWUpDBV0OnExk/o/dnYUwXnhQ==", + "license": "MIT", + "dependencies": { + "efrt": "2.7.0", + "grad-school": "0.0.5", + "suffix-thumb": "5.0.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", + "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", + "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/croner": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/croner/-/croner-10.0.1.tgz", + "integrity": "sha512-ixNtAJndqh173VQ4KodSdJEI6nuioBWI0V1ITNKhZZsO0pEMoDxz539T4FTTbSZ/xIOSuDnzxLVRqBVSvPNE2g==", + "funding": [ + { + "type": "other", + "url": "https://paypal.me/hexagonpp" + }, + { + "type": "github", + "url": "https://github.com/sponsors/hexagon" + } + ], + "license": "MIT", + "engines": { + "node": ">=18.0" + } + }, + "node_modules/cross-inspect": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cross-inspect/-/cross-inspect-1.0.1.tgz", + "integrity": "sha512-Pcw1JTvZLSJH83iiGWt6fRcT+BjZlCDRVwYLbUcHzv/CRpB7r0MlSrGbIyQvVSNyGnbt7G4AXuyCiDR3POvZ1A==", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/dateformat": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", + "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.2.tgz", + "integrity": "sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/diff": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz", + "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dset": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", + "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/effect": { + "version": "4.0.0-beta.93", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.0-beta.93.tgz", + "integrity": "sha512-wNS5MKFa3C42uBfIDik2oJ78lhpoYz2hN4oBR0229BeeDCIrkg/FiOvoiPGdCVlWa7MEKxEL5I0f8AILVHSD9A==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.1.0", + "fast-check": "^4.8.0", + "find-my-way-ts": "^0.1.6", + "ini": "^7.0.0", + "kubernetes-types": "^1.30.0", + "msgpackr": "^2.0.1", + "multipasta": "^0.2.7", + "toml": "^4.1.1", + "uuid": "^14.0.0", + "yaml": "^2.9.0" + } + }, + "node_modules/effect/node_modules/uuid": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz", + "integrity": "sha512-xZe/16rV4aa+HGSOCiY2YeLT1OybRLrrkL/Rqaq7p7GMVXjFh+6wN4oMYgjFmnSnhY8t6Xpdl2l9qmnHYuMHwQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist-node/bin/uuid" + } + }, + "node_modules/efrt": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/efrt/-/efrt-2.7.0.tgz", + "integrity": "sha512-/RInbCy1d4P6Zdfa+TMVsf/ufZVotat5hCw3QXmWtjU+3pFEOvOQ7ibo3aIxyCJw2leIeAMjmPj+1SLJiCpdrQ==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/eventemitter3": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", + "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", + "license": "MIT" + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/eventsource": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", + "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", + "license": "MIT", + "dependencies": { + "eventsource-parser": "^3.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/eventsource-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", + "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/execa": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.1.tgz", + "integrity": "sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==", + "license": "MIT", + "dependencies": { + "@sindresorhus/merge-streams": "^4.0.0", + "cross-spawn": "^7.0.6", + "figures": "^6.1.0", + "get-stream": "^9.0.0", + "human-signals": "^8.0.1", + "is-plain-obj": "^4.1.0", + "is-stream": "^4.0.1", + "npm-run-path": "^6.0.0", + "pretty-ms": "^9.2.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^4.0.0", + "yoctocolors": "^2.1.1" + }, + "engines": { + "node": "^18.19.0 || >=20.5.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/express": { + "version": "4.22.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz", + "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "~1.20.5", + "content-disposition": "~0.5.4", + "content-type": "~1.0.4", + "cookie": "~0.7.1", + "cookie-signature": "~1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.3.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "~0.1.12", + "proxy-addr": "~2.0.7", + "qs": "~6.15.1", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "~0.19.0", + "serve-static": "~1.16.2", + "setprototypeof": "1.2.0", + "statuses": "~2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express-rate-limit": { + "version": "8.6.2", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.6.2.tgz", + "integrity": "sha512-YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "ip-address": "^10.2.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/express-rate-limit" + }, + "peerDependencies": { + "express": ">= 4.11" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/express/node_modules/path-to-regexp": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz", + "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", + "license": "MIT" + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "license": "MIT", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-check": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.9.0.tgz", + "integrity": "sha512-7ms6T7SybUev/PQITciI0yLM2pOSFy5zpG8Ty7tQofcVaQUvrMXp6CBwqF6fThLCLOrfBtuHAtwq6Yu4XPCllg==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT", + "dependencies": { + "pure-rand": "^8.0.0" + }, + "engines": { + "node": ">=12.17.0" + } + }, + "node_modules/fast-copy": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-copy/-/fast-copy-3.0.2.tgz", + "integrity": "sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-json-patch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz", + "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ==", + "license": "MIT" + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "license": "MIT" + }, + "node_modules/fast-sha256": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz", + "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==", + "license": "Unlicense", + "optional": true, + "peer": true + }, + "node_modules/fast-uri": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.5.tgz", + "integrity": "sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/figures": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz", + "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==", + "license": "MIT", + "dependencies": { + "is-unicode-supported": "^2.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/finalhandler": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", + "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "~2.4.1", + "parseurl": "~1.3.3", + "statuses": "~2.0.2", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/find-my-way-ts": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/find-my-way-ts/-/find-my-way-ts-0.1.6.tgz", + "integrity": "sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==", + "license": "MIT" + }, + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "license": "MIT", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gaxios": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz", + "integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==", + "license": "Apache-2.0", + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "node-fetch": "^3.3.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/gaxios/node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/gcp-metadata": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz", + "integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==", + "license": "Apache-2.0", + "dependencies": { + "gaxios": "^7.0.0", + "google-logging-utils": "^1.0.0", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz", + "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==", + "license": "MIT", + "dependencies": { + "@sec-ant/readable-stream": "^0.4.1", + "is-stream": "^4.0.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-stream/node_modules/is-stream": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz", + "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/google-auth-library": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.9.1.tgz", + "integrity": "sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==", + "license": "Apache-2.0", + "dependencies": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^7.1.4", + "gcp-metadata": "8.1.2", + "google-logging-utils": "1.1.3", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/google-logging-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", + "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/grad-school": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/grad-school/-/grad-school-0.0.5.tgz", + "integrity": "sha512-rXunEHF9M9EkMydTBux7+IryYXEZinRk6g8OBOGDBzo/qWJjhTxy86i5q7lQYpCLHN8Sqv1XX3OIOc7ka2gtvQ==", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/graphql": { + "version": "16.14.2", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.14.2.tgz", + "integrity": "sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, + "node_modules/graphql-query-complexity": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/graphql-query-complexity/-/graphql-query-complexity-0.12.0.tgz", + "integrity": "sha512-fWEyuSL6g/+nSiIRgIipfI6UXTI7bAxrpPlCY1c0+V3pAEUo1ybaKmSBgNr1ed2r+agm1plJww8Loig9y6s2dw==", + "license": "MIT", + "dependencies": { + "lodash.get": "^4.4.2" + }, + "peerDependencies": { + "graphql": "^14.6.0 || ^15.0.0 || ^16.0.0" + } + }, + "node_modules/graphql-scalars": { + "version": "1.26.0", + "resolved": "https://registry.npmjs.org/graphql-scalars/-/graphql-scalars-1.26.0.tgz", + "integrity": "sha512-o7BnU5yxAFUWTMKpC5yshB12DjzzoxLgEBO9OpOAcxodWrL3sPldD/fqVQoIfcqPH8OclyQilLtg3/7ZRqQUVQ==", + "license": "MIT", + "dependencies": { + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/graphql-yoga": { + "version": "5.22.0", + "resolved": "https://registry.npmjs.org/graphql-yoga/-/graphql-yoga-5.22.0.tgz", + "integrity": "sha512-RTMS9WfDJQdYT1VRwDQ34Q9zFvuD3PZXBEDedNdUuoeNsJ6jZBwPo5PhdExzkR+s5iwf8MoiGJOS5Byt/PNAZg==", + "license": "MIT", + "dependencies": { + "@envelop/core": "^5.6.0", + "@envelop/instrumentation": "^1.0.0", + "@graphql-tools/executor": "^2.0.0", + "@graphql-tools/schema": "^10.0.11", + "@graphql-tools/utils": "^11.2.0", + "@graphql-yoga/logger": "^2.0.1", + "@graphql-yoga/subscription": "^5.0.5", + "@whatwg-node/fetch": "^0.10.6", + "@whatwg-node/promise-helpers": "^1.3.2", + "@whatwg-node/server": "^0.11.0", + "lru-cache": "^10.0.0", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "graphql": "^15.2.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/graphql-yoga/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, + "node_modules/gray-matter": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", + "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", + "license": "MIT", + "dependencies": { + "js-yaml": "^3.13.1", + "kind-of": "^6.0.2", + "section-matter": "^1.0.0", + "strip-bom-string": "^1.0.0" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/help-me": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/help-me/-/help-me-5.0.0.tgz", + "integrity": "sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==", + "license": "MIT" + }, + "node_modules/hono": { + "version": "4.13.3", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.3.tgz", + "integrity": "sha512-r8AO2mYHoLxSHkgafNeC/BXyb2vWRxD3jem4Ts+ptav8oTG5FIRifAjuJEmZI4bSvvc2ns0GxmIYiZnHqN3mMw==", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/human-signals": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.1.tgz", + "integrity": "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz", + "integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ini": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-7.0.0.tgz", + "integrity": "sha512-ifK0CgjALofS5bkrcTy4RaQ9Vx2Knf/eLeIO+NaswQEpH1UblrtTSCIvN71qQDMq0PeQ/SSPojvEJp9vvvfr+w==", + "license": "ISC", + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + } + }, + "node_modules/ip-address": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.5.0.tgz", + "integrity": "sha512-R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-electron": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-electron/-/is-electron-2.2.2.tgz", + "integrity": "sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==", + "license": "MIT" + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-network-error": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/is-network-error/-/is-network-error-1.3.2.tgz", + "integrity": "sha512-PhBY86zaxNZUuWP6h13Vu5oFe0XY6/UlKzQnYFELzGVHygP3MxmvTfYSG7GN3aIab/iWudSMgjSnG9Dq+nHrgA==", + "license": "MIT", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-unicode-supported": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", + "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/jose": { + "version": "6.2.9", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.9.tgz", + "integrity": "sha512-XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/jpeg-js": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", + "license": "BSD-3-Clause" + }, + "node_modules/js-base64": { + "version": "3.9.3", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.9.3.tgz", + "integrity": "sha512-uwYQp+VJ38FVvtim6qNbit6e9uT6dwWQ4Y1+H9TxhW5hcHjpHwoxlR0nMpqUmIFOmu4VqMxwdJA88gIVuZJQ/g==", + "license": "BSD-3-Clause" + }, + "node_modules/js-tiktoken": { + "version": "1.0.21", + "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.21.tgz", + "integrity": "sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g==", + "license": "MIT", + "dependencies": { + "base64-js": "^1.5.1" + } + }, + "node_modules/js-yaml": { + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.1.tgz", + "integrity": "sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-schema-to-ts": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz", + "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@babel/runtime": "^7.18.3", + "ts-algebra": "^2.0.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/json-schema-to-zod": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/json-schema-to-zod/-/json-schema-to-zod-2.8.1.tgz", + "integrity": "sha512-fRr1mHgZ7hboLKBUdR428gd9dIHUFGivUqOeiDcSmyXkNZCtB1uGaZLvsjZ4GaN5pwBIs+TGIOf6s+Rp5/R/zA==", + "license": "ISC", + "bin": { + "json-schema-to-zod": "dist/cjs/cli.js" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, + "node_modules/jsonwebtoken": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", + "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", + "license": "MIT", + "dependencies": { + "jws": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jwks-rsa": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jwks-rsa/-/jwks-rsa-4.0.1.tgz", + "integrity": "sha512-poXwUA8S4cP9P5N8tZS3xnUDJH8WmwSGfKK9gIaRPdjLHyJtd9iX/cngX9CUIe0Caof5JhK2EbN7N5lnnaf9NA==", + "license": "MIT", + "dependencies": { + "@types/jsonwebtoken": "^9.0.4", + "debug": "^4.3.4", + "jose": "^6.1.3", + "limiter": "^1.1.5", + "lru-memoizer": "^3.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >= 23.0.0" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/keyword-extractor": { + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/keyword-extractor/-/keyword-extractor-0.0.28.tgz", + "integrity": "sha512-oi7dSPpYtW/3fE0vZiqQgZ8mW3F1V9K4+rBJ0FcVrdXBEQuhZ0zKj7sX74eqGASuepLHf9aYdeonyKHWhYpHQA==", + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kubernetes-types": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/kubernetes-types/-/kubernetes-types-1.30.0.tgz", + "integrity": "sha512-Dew1okvhM/SQcIa2rcgujNndZwU8VnSapDgdxlYoB84ZlpAD43U6KLAFqYo17ykSFGHNPrg0qry0bP+GJd9v7Q==", + "license": "Apache-2.0" + }, + "node_modules/langchain": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/langchain/-/langchain-1.5.10.tgz", + "integrity": "sha512-JaC12C1qyGn985vvjttr4hr8lfFzWhrXp2M1byZJGmNJ2RiIgqnhiYDuLlG/xHDxhKD3onJ5pCuUif/cbdqPhA==", + "license": "MIT", + "dependencies": { + "@langchain/langgraph": "^1.4.10", + "@langchain/langgraph-checkpoint": "^1.1.5", + "langsmith": ">=0.5.0 <1.0.0", + "zod": "^3.25.76 || ^4" + }, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "@langchain/core": "^1.2.9" + } + }, + "node_modules/langsmith": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.9.0.tgz", + "integrity": "sha512-tlg/aG7qezAKY6G3fgADSX7PkRj+JKoF3z7QNkCMsAOvwvuzhiwP9Amn1Z+zAIxuKoWuXQdIjtFN0LVmUC1oUQ==", + "license": "MIT", + "dependencies": { + "p-queue": "6.6.2" + }, + "peerDependencies": { + "@opentelemetry/api": "*", + "@opentelemetry/exporter-trace-otlp-proto": "*", + "@opentelemetry/sdk-trace-base": "*", + "openai": "*", + "ws": ">=7" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@opentelemetry/exporter-trace-otlp-proto": { + "optional": true + }, + "@opentelemetry/sdk-trace-base": { + "optional": true + }, + "openai": { + "optional": true + }, + "ws": { + "optional": true + } + } + }, + "node_modules/libphonenumber-js": { + "version": "1.13.11", + "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.13.11.tgz", + "integrity": "sha512-ETER2kMaIFTI/Nh1a8Gk03dUF/SL0VZqtI+CcVHZxp5WIHYwNS7S+uiYZDYCvLy3lOR4/DAD5jf0h5WkePPpqg==", + "license": "MIT" + }, + "node_modules/libsql": { + "version": "0.5.29", + "resolved": "https://registry.npmjs.org/libsql/-/libsql-0.5.29.tgz", + "integrity": "sha512-8lMP8iMgiBzzoNbAPQ59qdVcj6UaE/Vnm+fiwX4doX4Narook0a4GPKWBEv+CR8a1OwbfkgL18uBfBjWdF0Fzg==", + "cpu": [ + "x64", + "arm64", + "wasm32", + "arm" + ], + "license": "MIT", + "os": [ + "darwin", + "linux", + "win32" + ], + "dependencies": { + "@neon-rs/load": "^0.0.4", + "detect-libc": "2.0.2" + }, + "optionalDependencies": { + "@libsql/darwin-arm64": "0.5.29", + "@libsql/darwin-x64": "0.5.29", + "@libsql/linux-arm-gnueabihf": "0.5.29", + "@libsql/linux-arm-musleabihf": "0.5.29", + "@libsql/linux-arm64-gnu": "0.5.29", + "@libsql/linux-arm64-musl": "0.5.29", + "@libsql/linux-x64-gnu": "0.5.29", + "@libsql/linux-x64-musl": "0.5.29", + "@libsql/win32-x64-msvc": "0.5.29" + } + }, + "node_modules/limiter": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz", + "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA==" + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", + "license": "MIT" + }, + "node_modules/lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", + "deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/lru-memoizer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lru-memoizer/-/lru-memoizer-3.0.0.tgz", + "integrity": "sha512-m83w/cYXLdUIboKSPxzPAGfYnk+vqeDYXuoSrQRw1q+yVEd8IXhvMufN8Q5TIPe7e2jyX4SRNrDJI2Skw1yznQ==", + "license": "MIT", + "dependencies": { + "lodash.clonedeep": "^4.5.0", + "lru-cache": "^11.0.1" + } + }, + "node_modules/markdown-table": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", + "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", + "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz", + "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", + "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", + "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", + "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromark": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", + "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", + "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", + "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", + "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", + "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/msgpackr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-2.0.5.tgz", + "integrity": "sha512-cef05H/dSYpLpqp3sj/qyZh5vhUYCalnaLO7j1yOmpsR0y/XwLVtK7r5gn+U/F7CTEfMowcGhlUQJDLcLf7jcA==", + "license": "MIT", + "optionalDependencies": { + "msgpackr-extract": "^3.0.4" + } + }, + "node_modules/msgpackr-extract": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-3.0.4.tgz", + "integrity": "sha512-4kmO/MdyUIkLIvTPr8VHLil4AtoKIoniWPIEk5+CDy0xnWC84azhSFmuJ7PxZdsYtiP5kEeQsORAVIeMgxT+Hw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "node-gyp-build-optional-packages": "5.2.2" + }, + "bin": { + "download-msgpackr-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.4", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.4", + "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.4", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.4", + "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.4", + "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.4" + } + }, + "node_modules/multipasta": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/multipasta/-/multipasta-0.2.8.tgz", + "integrity": "sha512-ZPWuMKyv0cSO29f7hozp+k6+crZbQijV8ipMvxNxRf2SwtYGTX1ZX89Kd20VV4H9Znonx+EQn+iy1wGQsJ+b+Q==", + "license": "MIT" + }, + "node_modules/mustache": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", + "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", + "license": "MIT", + "bin": { + "mustache": "bin/mustache" + } + }, + "node_modules/nanoid": { + "version": "3.3.18", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", + "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/needle": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", + "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", + "license": "MIT", + "dependencies": { + "debug": "^3.2.6", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "bin": { + "needle": "bin/needle" + }, + "engines": { + "node": ">= 4.4.x" + } + }, + "node_modules/needle/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-gyp-build": { + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", + "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", + "license": "MIT", + "optional": true, + "peer": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-gyp-build-optional-packages": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz", + "integrity": "sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==", + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.1" + }, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, + "node_modules/npm-run-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz", + "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==", + "license": "MIT", + "dependencies": { + "path-key": "^4.0.0", + "unicorn-magic": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-exit-leak-free": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/openai": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-7.5.0.tgz", + "integrity": "sha512-ZbDBz8FSB8Mv8fFYIUvzTFMdV5vl93/octp1MdtK2lfYepSpfv/ewmeugpKz/cwGtFSx+YuUM4NwpZ2P55YiPA==", + "license": "Apache-2.0", + "engines": { + "node": ">=22.0.0" + }, + "peerDependencies": { + "@aws-sdk/credential-provider-node": ">=3.972.0 <4", + "@smithy/hash-node": ">=4.3.0 <5", + "@smithy/signature-v4": ">=5.4.0 <6", + "ws": "^8.18.0", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-provider-node": { + "optional": true + }, + "@smithy/hash-node": { + "optional": true + }, + "@smithy/signature-v4": { + "optional": true + }, + "ws": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/p-map": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.6.tgz", + "integrity": "sha512-I4Prw6ivkd6p8PiYR1tXASOAOBzIJwu0TB7fqaX0c/8c3QAehNYmX57EijyGGGBt3c/BIowGwV03RVBtXvHEVg==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-queue": { + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz", + "integrity": "sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==", + "license": "MIT", + "dependencies": { + "eventemitter3": "^4.0.4", + "p-timeout": "^3.2.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-queue/node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "license": "MIT" + }, + "node_modules/p-retry": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-7.1.1.tgz", + "integrity": "sha512-J5ApzjyRkkf601HpEeykoiCvzHQjWxPAHhyjFcEUP2SWq0+35NKh8TLhpLw+Dkq5TZBFvUM6UigdE9hIVYTl5w==", + "license": "MIT", + "dependencies": { + "is-network-error": "^1.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-timeout": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", + "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", + "license": "MIT", + "dependencies": { + "p-finally": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/parse-ms": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz", + "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/partial-json": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/partial-json/-/partial-json-0.1.7.tgz", + "integrity": "sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==", + "license": "MIT" + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/phoenix": { + "version": "1.8.12", + "resolved": "https://registry.npmjs.org/phoenix/-/phoenix-1.8.12.tgz", + "integrity": "sha512-svUniHb83aGh1XpYWHe4fkbfrGd6xa26TWO/3clkuNplXwgjxh7RI7GOWxf28VAgDWwQ2/yN8PxIa5dqjXOcAA==", + "license": "MIT" + }, + "node_modules/picomatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", + "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pino": { + "version": "9.14.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-9.14.0.tgz", + "integrity": "sha512-8OEwKp5juEvb/MjpIc4hjqfgCNysrS94RIOMXYvpYCdm/jglrKEiAYmiumbmGhCvs+IcInsphYDFwqrjr7398w==", + "license": "MIT", + "dependencies": { + "@pinojs/redact": "^0.4.0", + "atomic-sleep": "^1.0.0", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^2.0.0", + "pino-std-serializers": "^7.0.0", + "process-warning": "^5.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^4.0.1", + "thread-stream": "^3.0.0" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz", + "integrity": "sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==", + "license": "MIT", + "dependencies": { + "split2": "^4.0.0" + } + }, + "node_modules/pino-pretty": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-11.3.0.tgz", + "integrity": "sha512-oXwn7ICywaZPHmu3epHGU2oJX4nPmKvHvB/bwrJHlGcbEWaVcotkpyVHMKLKmiVryWYByNp0jpgAcXpFJDXJzA==", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.7", + "dateformat": "^4.6.3", + "fast-copy": "^3.0.2", + "fast-safe-stringify": "^2.1.1", + "help-me": "^5.0.0", + "joycon": "^3.1.1", + "minimist": "^1.2.6", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "^2.0.0", + "pump": "^3.0.0", + "readable-stream": "^4.0.0", + "secure-json-parse": "^2.4.0", + "sonic-boom": "^4.0.1", + "strip-json-comments": "^3.1.1" + }, + "bin": { + "pino-pretty": "bin.js" + } + }, + "node_modules/pino-std-serializers": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-7.1.0.tgz", + "integrity": "sha512-BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==", + "license": "MIT" + }, + "node_modules/pkce-challenge": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", + "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", + "license": "MIT", + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/posthog-node": { + "version": "5.49.2", + "resolved": "https://registry.npmjs.org/posthog-node/-/posthog-node-5.49.2.tgz", + "integrity": "sha512-+ihwLaB+zoP7mOdk8bOV8phWhoS/U9zG9tnA49B0BGLjNt9rQ05zp9DPnwSYjh9wZkN8zD2V+LMYV6W9pQosVg==", + "license": "MIT", + "dependencies": { + "@posthog/core": "^1.48.6" + }, + "engines": { + "node": "^20.20.0 || >=22.22.0" + }, + "peerDependencies": { + "rxjs": "^7.0.0" + }, + "peerDependenciesMeta": { + "rxjs": { + "optional": true + } + } + }, + "node_modules/pretty-ms": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.3.0.tgz", + "integrity": "sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==", + "license": "MIT", + "dependencies": { + "parse-ms": "^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/probe-image-size": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/probe-image-size/-/probe-image-size-7.4.0.tgz", + "integrity": "sha512-cdEprVtZxV+awMde9X+4jILBFYh4CARxVrQaMl4wY4YcPWbul9jntXrIW95NInBDyJwcVUP3U0T6yukN8rMBaQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "lodash.merge": "^4.6.2", + "needle": "^2.5.2", + "stream-parser": "~0.3.1" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-warning": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-5.1.0.tgz", + "integrity": "sha512-jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "MIT" + }, + "node_modules/promise-limit": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/promise-limit/-/promise-limit-2.7.0.tgz", + "integrity": "sha512-7nJ6v5lnJsXwGprnGXga4wx6d1POjvi5Qmf1ivTRxTjH4Z/9Czja/UCMLVmB9N93GeWOU93XaFaEt6jbuoagNw==", + "license": "ISC" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/pump": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", + "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/pure-rand": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-8.4.2.tgz", + "integrity": "sha512-vvuOGgcuPJAirlHvuQw1TrOiw7ptaIXXmIbNuiNOY6lNGJJH49PQ1Kj4nd783nPdQhQdicgOjVI2yI/9BD6/Ng==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/qs": { + "version": "6.15.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz", + "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==", + "license": "BSD-3-Clause", + "dependencies": { + "es-define-property": "^1.0.1", + "side-channel": "^1.1.1" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==", + "license": "MIT" + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/readable-stream": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz", + "integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/real-require": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", + "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0" + }, + "node_modules/remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remend": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/remend/-/remend-1.3.0.tgz", + "integrity": "sha512-iIhggPkhW3hFImKtB10w0dz4EZbs28mV/dmbcYVonWEJ6UGHHpP+bFZnTh6GNWJONg5m+U56JrL+8IxZRdgWjw==", + "license": "Apache-2.0" + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-stable-stringify": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", + "integrity": "sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/sax": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/section-matter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", + "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", + "license": "MIT", + "dependencies": { + "extend-shallow": "^2.0.1", + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/secure-json-parse": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/secure-json-parse/-/secure-json-parse-2.7.0.tgz", + "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==", + "license": "BSD-3-Clause" + }, + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/sentiment": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/sentiment/-/sentiment-5.0.2.tgz", + "integrity": "sha512-ZeC3y0JsOYTdwujt5uOd7ILJNilbgFzUtg/LEG4wUv43LayFNLZ28ec8+Su+h3saHlJmIwYxBzfDHHZuiMA15g==", + "license": "MIT", + "engines": { + "node": ">=8.0" + } + }, + "node_modules/serve-static": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", + "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "~0.19.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sonic-boom": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.1.tgz", + "integrity": "sha512-w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==", + "license": "MIT", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "license": "BSD-3-Clause" + }, + "node_modules/standardwebhooks": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.0.0.tgz", + "integrity": "sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg==", + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@stablelib/base64": "^1.0.0", + "fast-sha256": "^1.3.0" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stream-parser": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/stream-parser/-/stream-parser-0.3.1.tgz", + "integrity": "sha512-bJ/HgKq41nlKvlhccD5kaCr/P+Hu0wPNKPJOH7en+YrJu/9EgqUF+88w5Jb6KNcjOFMhfX4B2asfeAtIGuHObQ==", + "license": "MIT", + "dependencies": { + "debug": "2" + } + }, + "node_modules/stream-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/stream-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-similarity": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/string-similarity/-/string-similarity-4.0.4.tgz", + "integrity": "sha512-/q/8Q4Bl4ZKAPjj8WerIBJWALKkaPRfrvhfF8k/B23i4nzrlRj2/go1m90In7nG/3XDSbOo0+pu6RvCTM9RGMQ==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "license": "ISC" + }, + "node_modules/strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-final-newline": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz", + "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/suffix-thumb": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/suffix-thumb/-/suffix-thumb-5.0.2.tgz", + "integrity": "sha512-I5PWXAFKx3FYnI9a+dQMWNqTxoRt6vdBdb0O+BJ1sxXCWtSoQCusc13E58f+9p4MYx/qCnEMkD5jac6K2j3dgA==", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/thread-stream": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-3.2.0.tgz", + "integrity": "sha512-zLBvqpwr4Esa0kRjcrzGU6zL25lePWaCLMx0RQFrmteozIfeNdaMLpG5U7PeHzvlFkAWaRKA9/KVW4F60iB+qw==", + "license": "MIT", + "dependencies": { + "real-require": "^0.2.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tokenx": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/tokenx/-/tokenx-1.6.0.tgz", + "integrity": "sha512-CKTjk345ajvBAUp5xUI9a5KKN0zU0lBueVHQbCskH1Hp6WkUKsPW2qGCYNs0pxNyfzxfo+IIjdt2W4sMbw/qBw==", + "license": "MIT" + }, + "node_modules/toml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/toml/-/toml-4.3.0.tgz", + "integrity": "sha512-lVb8X9BsPVuH0M4BKeS91tXAmJvCjQ5UIyAbQFaxkKGyUFK2RPkhwaFSQH8vbpl1d23eu/IBH+dwVMHWaq9A5A==", + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/ts-algebra": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz", + "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==", + "license": "MIT", + "optional": true, + "peer": true + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tsscmp": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", + "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==", + "license": "MIT", + "engines": { + "node": ">=0.6.x" + } + }, + "node_modules/type-graphql": { + "version": "2.0.0-rc.1", + "resolved": "https://registry.npmjs.org/type-graphql/-/type-graphql-2.0.0-rc.1.tgz", + "integrity": "sha512-HCu4j3jR0tZvAAoO7DMBT3MRmah0DFRe5APymm9lXUghXA0sbhiMf6SLRafRYfk0R0KiUQYRduuGP3ap1RnF1Q==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/TypeGraphQL" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/typegraphql" + } + ], + "license": "MIT", + "dependencies": { + "@graphql-yoga/subscription": "^5.0.0", + "@types/node": "*", + "@types/semver": "^7.5.6", + "graphql-query-complexity": "^0.12.0", + "semver": "^7.5.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 18.12.0" + }, + "peerDependencies": { + "class-validator": ">=0.14.0", + "graphql": "^16.8.1", + "graphql-scalars": "^1.22.4" + }, + "peerDependenciesMeta": { + "class-validator": { + "optional": true + } + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici": { + "version": "6.28.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.28.0.tgz", + "integrity": "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==", + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/unicorn-magic": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", + "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz", + "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", + "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/untruncate-json": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/untruncate-json/-/untruncate-json-0.0.1.tgz", + "integrity": "sha512-4W9enDK4X1y1s2S/Rz7ysw6kDuMS3VmRjMFg7GZrNO+98OSe+x5Lh7PKYoVjy3lW/1wmhs6HW0lusnQRHgMarA==", + "license": "MIT" + }, + "node_modules/urlpattern-polyfill": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.1.0.tgz", + "integrity": "sha512-IGjKp/o0NL3Bso1PymYURCJxMPNAf/ILOpendP9f5B6e1rTJgdgiOvgfoT8VxCAdY+Wisb9uhGaJJf3yZ2V9nw==", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz", + "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/esm/bin/uuid" + } + }, + "node_modules/validator": { + "version": "13.15.35", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.35.tgz", + "integrity": "sha512-TQ5pAGhd5whStmqWvYF4OjQROlmv9SMFVt37qoCBdqRffuuklWYQlCNnEs2ZaIBD1kZRNnikiZOS1eqgkar0iw==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.21.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", + "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xxhash-wasm": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz", + "integrity": "sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==", + "license": "MIT" + }, + "node_modules/yaml": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", + "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yoctocolors": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.2.0.tgz", + "integrity": "sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-from-json-schema": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/zod-from-json-schema/-/zod-from-json-schema-0.5.6.tgz", + "integrity": "sha512-U33AJ7ZWS6y9XNSzMWcdy8hRAvZmWhTtpYJu0SXPT5AArbc9nq2ur7Magzmn5RF9KBV4b3FP0nCpmqqlfXlR9w==", + "license": "MIT", + "dependencies": { + "zod": "^4.0.17" + } + }, + "node_modules/zod-from-json-schema/node_modules/zod": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", + "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-to-json-schema": { + "version": "3.25.2", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", + "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "license": "ISC", + "peerDependencies": { + "zod": "^3.25.28 || ^4" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/package.json b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/package.json new file mode 100644 index 000000000..3a8e29b83 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/package.json @@ -0,0 +1,43 @@ +{ + "name": "@tmnl/mantis-assistant", + "version": "0.1.0", + "private": true, + "type": "module", + "description": "Pinned Mastra + CopilotKit compatibility harness for the mantis assistant (A0). Not a keeper UI and not a hardware-control implementation.", + "exports": { + ".": "./src/index.ts" + }, + "scripts": { + "test": "node --test --experimental-strip-types test/*.test.ts", + "test:unit": "node --test --experimental-strip-types test/contracts.test.ts test/isolation.test.ts test/policy.test.ts test/openrouter-gate.test.ts test/compatibility.test.ts", + "test:live": "node --test --experimental-strip-types test/live-openrouter.test.ts", + "typecheck": "tsc --noEmit", + "compat": "node --experimental-strip-types src/compat-cli.ts" + }, + "engines": { + "node": ">=22.14.0", + "npm": ">=10.9.0" + }, + "packageManager": "npm@10.9.7", + "dependencies": { + "@ag-ui/client": "0.0.58", + "@ag-ui/core": "0.0.58", + "@ag-ui/mastra": "1.1.2", + "@copilotkit/runtime": "1.68.3", + "@copilotkit/shared": "1.68.3", + "@mastra/client-js": "1.42.0", + "@mastra/core": "1.61.0", + "@mastra/evals": "1.9.0", + "@mastra/libsql": "1.21.1", + "@mastra/memory": "1.27.0", + "@mastra/observability": "1.17.1", + "ajv": "8.20.0", + "ajv-formats": "3.0.1", + "effect": "4.0.0-beta.93", + "zod": "3.25.76" + }, + "devDependencies": { + "@types/node": "22.18.0", + "typescript": "5.9.3" + } +} diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/clock.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/clock.ts new file mode 100644 index 000000000..8b25007e7 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/clock.ts @@ -0,0 +1,21 @@ +export class FakeClock { + #ms: number; + + constructor(iso = '2026-08-21T00:00:00.000Z') { + this.#ms = Date.parse(iso); + } + + now(): Date { + return new Date(this.#ms); + } + + iso(): string { + return this.now().toISOString(); + } + + advance(ms: number): void { + this.#ms += ms; + } +} + +export const FROZEN_ISO = '2026-08-21T00:00:00.000Z'; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/compat-cli.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/compat-cli.ts new file mode 100644 index 000000000..e1ff57aff --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/compat-cli.ts @@ -0,0 +1,3 @@ +import { PINS } from './pins.ts'; + +process.stdout.write(`${JSON.stringify({ kind: 'MantisAssistantPins', pins: PINS }, null, 2)}\n`); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/contract-types.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/contract-types.ts new file mode 100644 index 000000000..5d4c4b950 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/contract-types.ts @@ -0,0 +1,375 @@ +/** + * TypeScript projection of the A0 Draft 2020-12 JSON Schemas. + * Cross-language meaning lives in assistant/contracts; these types follow that catalog. + */ +export type SchemaVersion = '1.0.0'; + +export type CareSubject = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'CareSubject'; + readonly careSubjectId: `care.${string}`; + readonly createdAt: string; + readonly displayName?: string; + readonly housing: { + readonly kind: + | 'temporary-cup' + | 'temporary-enclosure' + | 'established-enclosure' + | 'unknown'; + readonly notes?: string; + }; + readonly catalogSpecimen: false; + readonly taxonHypothesisRef?: string; + readonly notes?: string; +}; + +export type Observation = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'Observation'; + readonly observationId: `obs.${string}`; + readonly careSubjectId: `care.${string}`; + readonly recordedAt: string; + readonly sourceClass: 'observed'; + readonly recordClass: 'observation'; + readonly mediaDigest?: string; + readonly statements: ReadonlyArray<{ + readonly text: string; + readonly status: 'observed' | 'unverified'; + readonly region?: string; + }>; + readonly scalePresent?: boolean; +}; + +export type Interpretation = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'Interpretation'; + readonly interpretationId: `interp.${string}`; + readonly careSubjectId: `care.${string}`; + readonly observationRefs?: readonly `obs.${string}`[]; + readonly recordedAt: string; + readonly recordClass: 'interpretation'; + readonly status: 'hypothetical' | 'disputed' | 'withdrawn'; + readonly claims: ReadonlyArray<{ + readonly kind: 'taxon-rank' | 'life-stage' | 'health' | 'other'; + readonly text: string; + readonly confidence: number; + readonly confirmed: false; + readonly sources?: readonly string[]; + }>; +}; + +export type CareEvent = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'CareEvent'; + readonly careEventId: `event.${string}`; + readonly careSubjectId: `care.${string}`; + readonly recordedAt: string; + readonly eventType: + | 'offered' + | 'eaten' + | 'refused' + | 'removed' + | 'misted' + | 'cleaned' + | 'outcome'; + readonly humanConfirmed: true; + readonly idempotencyKey?: string; + readonly adviceRef?: `advice.${string}`; + readonly notes?: string; +}; + +export type CareAdvice = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'CareAdvice'; + readonly adviceId: `advice.${string}`; + readonly careSubjectId: `care.${string}`; + readonly runId?: `run.${string}`; + readonly issuedAt: string; + readonly expiresAt: string; + readonly capabilityClass: 'P0' | 'P1' | 'P2'; + readonly executable: false; + readonly confidence: number; + readonly statements: ReadonlyArray<{ + readonly text: string; + readonly kind: 'do-now' | 'buy' | 'offer-amount' | 'warning' | 'reminder'; + readonly numerical: boolean; + readonly withheld: boolean; + readonly sources?: ReadonlyArray<{ + readonly id: string; + readonly applicability: 'applies' | 'partial' | 'unknown'; + }>; + }>; +}; + +export type AssistantRun = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'AssistantRun'; + readonly runId: `run.${string}`; + readonly traceId?: string; + readonly startedAt: string; + readonly endedAt?: string; + readonly mode: + | 'care' + | 'observe' + | 'research' + | 'terrarium-read' + | 'review' + | 'service-sim'; + readonly resourceId: string; + readonly threadId: `care:${string}:${string}`; + readonly careSubjectId?: `care.${string}`; + readonly agentId?: string; + readonly workflowId?: string; + readonly memoryRecordClass: 'assistant-memory'; + readonly versions: { + readonly mastraCore: string; + readonly copilotkitRuntime: string; + readonly aguiMastra: string; + readonly effect: string; + readonly typescript: string; + readonly model: string; + readonly controllerConfig: string; + readonly tools: string; + readonly memory: string; + readonly workflow: string; + }; + readonly cost?: { + readonly inputTokens?: number; + readonly outputTokens?: number; + }; +}; + +export type ToolAssayRecord = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'ToolAssayRecord'; + readonly assayId: `assay.${string}`; + readonly recordedAt: string; + readonly identity: { + readonly id: string; + readonly version: string; + readonly provider: string; + readonly sourceUrl?: string; + readonly digest: string; + readonly license: string; + }; + readonly contract: { + readonly inputSchemaRef: string; + readonly outputSchemaRef: string; + readonly errors: readonly string[]; + readonly timeoutMs: number; + readonly streaming: boolean; + readonly determinism: 'deterministic' | 'idempotent' | 'non-deterministic'; + }; + readonly effects: { + readonly read: boolean; + readonly write: boolean; + readonly execute: boolean; + readonly externalMutation: boolean; + readonly deviceImpact: boolean; + readonly rollback: 'none' | 'compensating' | 'native'; + }; + readonly authority: { + readonly actor: 'assistant' | 'keeper' | 'edge' | 'service'; + readonly category: + | 'read-public' + | 'read-private' + | 'draft-local' + | 'external-write' + | 'device-intent' + | 'device-command' + | 'admin'; + readonly credential?: string; + readonly allowedModes: ReadonlyArray; + readonly allowedAgents: readonly string[]; + readonly llmExposed: boolean; + }; + readonly data: { + readonly privacyClass: 'public' | 'private' | 'secret' | 'ephemeral-location'; + readonly retention?: string; + readonly networkEgress: boolean; + readonly secrets: boolean; + readonly location: 'none' | 'ephemeral-coarse' | 'forbidden-exact'; + readonly media: 'none' | 'digest-only' | 'selected-annotation'; + }; + readonly behavior: { + readonly idempotent: boolean; + readonly retrySafe: boolean; + readonly cancellation: 'safe' | 'unsafe' | 'unknown'; + readonly concurrency: 'safe' | 'exclusive' | 'unknown'; + readonly rateLimit?: string; + readonly costLimit?: string; + }; + readonly evidence: { + readonly sourceClassProduced: + | 'none' + | 'observed' + | 'calculated' + | 'external-source' + | 'unverified'; + readonly provenanceFields?: readonly string[]; + readonly simulator: boolean; + readonly fixtures: readonly string[]; + }; + readonly safety: { + readonly staleStatePolicy: 'fail-closed' | 'refresh' | 'not-applicable'; + readonly preconditions?: readonly string[]; + readonly approvalTier: 'none' | 'ask' | 'human-local' | 'never'; + readonly physicalInterlocks: boolean; + }; + readonly verification: { + readonly staticLint: boolean; + readonly sandboxSmoke: boolean; + readonly negativeTests: readonly string[]; + readonly adversarialTests: readonly string[]; + }; + readonly review: { + readonly assessor: string; + readonly independentReviewer?: string; + readonly disposition: + | 'discovered' + | 'quarantined' + | 'assayed' + | 'simulated' + | 'admitted-read' + | 'admitted-write' + | 'revoked'; + readonly expiry?: string; + readonly reAssayTriggers?: readonly string[]; + }; +}; + +export type ToolAdmission = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'ToolAdmission'; + readonly admissionId: `admit-tool.${string}`; + readonly toolId: string; + readonly assayId: `assay.${string}`; + readonly state: + | 'discovered' + | 'quarantined' + | 'assayed' + | 'simulated' + | 'admitted-read' + | 'admitted-write' + | 'revoked'; + readonly admittedAt: string; + readonly expiresAt?: string; + readonly assessor: string; + readonly reviewer: string; + readonly notes?: string; +}; + +export type DynamicWorkflowDefinition = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'DynamicWorkflowDefinition'; + readonly definitionId: `wf.${string}`; + readonly version: string; + readonly digest: string; + readonly description?: string; + readonly capabilityClass: 'P0' | 'P1' | 'P2'; + readonly author: string; + readonly sourcePrompt?: string; + readonly modelRun?: string; + readonly expiresAt?: string; + readonly inputSchema: object; + readonly outputSchema: object; + readonly stateSchema?: object; + readonly graph: ReadonlyArray<{ + readonly type: 'tool' | 'agent' | 'workflow' | 'mapping'; + readonly id: string; + readonly toolId?: string; + readonly agentId?: string; + readonly workflowId?: string; + }>; + readonly referencedPrimitives: ReadonlyArray<{ + readonly kind: 'tool' | 'agent' | 'workflow'; + readonly id: string; + readonly version: string; + readonly assayId: string; + }>; + readonly prohibited: { + readonly deviceCommand: true; + readonly browserMutation: true; + readonly secrets: true; + readonly directCanonicalMutation: true; + readonly specimenDbWrite: true; + }; +}; + +export type WorkflowAdmission = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'WorkflowAdmission'; + readonly admissionId: `admit-wf.${string}`; + readonly definitionId: `wf.${string}`; + readonly definitionVersion: string; + readonly digest: string; + readonly state: + | 'draft' + | 'schema-validated' + | 'primitives-resolved' + | 'assay-closed' + | 'policy-linted' + | 'simulated' + | 'adversarially-evaluated' + | 'human-approved' + | 'signed-immutable' + | 'active' + | 'revoked'; + readonly reviewer: string; + readonly admittedAt: string; + readonly signature?: string; + readonly notes?: string; +}; + +export type WorkflowRunReceipt = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'WorkflowRunReceipt'; + readonly runId: `wfrun.${string}`; + readonly definitionId: `wf.${string}`; + readonly definitionVersion: string; + readonly digest: string; + readonly startedAt: string; + readonly endedAt?: string; + readonly status: 'running' | 'suspended' | 'success' | 'failed' | 'cancelled'; + readonly sideEffectClass: 'read-only' | 'proven-idempotent' | 'external-mutation'; + readonly replaySafe: boolean; + readonly externalEffectCount?: number; +}; + +export type ActuationIntent = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'ActuationIntent'; + readonly intentId: `intent.${string}`; + readonly runId?: `run.${string}`; + readonly proposedAt: string; + readonly expiresAt: string; + readonly capabilityClass: 'P3' | 'P4' | 'P5'; + readonly action: string; + readonly executable: false; + readonly rationale?: string; +}; + +export type ActuationCommand = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'ActuationCommand'; + readonly commandId: `cmd.${string}`; + readonly intentId: `intent.${string}`; + readonly issuedAt: string; + readonly expiresAt: string; + readonly action: string; + readonly executable: true; + readonly liveActuation: false; + readonly issuer: 'edge-supervisor' | 'human-local-service'; + readonly nonce?: string; +}; + +export type ActuationReceipt = { + readonly schemaVersion: SchemaVersion; + readonly kind: 'ActuationReceipt'; + readonly receiptId: `rcpt.${string}`; + readonly commandId: `cmd.${string}`; + readonly intentId?: `intent.${string}`; + readonly recordedAt: string; + readonly disposition: 'accepted' | 'rejected' | 'expired' | 'faulted' | 'not-run'; + readonly detail?: string; +}; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/contracts.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/contracts.ts new file mode 100644 index 000000000..008cc22a8 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/contracts.ts @@ -0,0 +1,96 @@ +import { createHash } from 'node:crypto'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; + +import { Ajv2020 } from 'ajv/dist/2020.js'; +import * as ajvFormats from 'ajv-formats'; + +import { assistantRoot, contractRegistryPath, labRoot } from './paths.ts'; + +export interface ContractRegistry { + readonly kind: 'AssistantContractRegistry'; + readonly schemas: ReadonlyArray<{ + readonly kind: string; + readonly id: string; + readonly path: string; + }>; +} + +export interface CorpusCatalog { + readonly kind: 'Draft202012Corpus'; + readonly cases: ReadonlyArray<{ + readonly id: string; + readonly instance: string; + readonly schema: string; + readonly expect: 'pass' | 'fail'; + }>; +} + +export interface ValidationResult { + readonly valid: boolean; + readonly errors: readonly string[]; +} + +const resolveCallable = (mod: unknown): ((instance: Ajv2020) => unknown) => { + if (typeof mod === 'function') return mod as (instance: Ajv2020) => unknown; + if (mod && typeof mod === 'object' && 'default' in mod) { + return resolveCallable((mod as { default: unknown }).default); + } + throw new Error('ajv-formats did not export a plugin function'); +}; + +const addFormats = resolveCallable(ajvFormats); + +const ajv = new Ajv2020({ + allErrors: true, + strict: false, + validateFormats: true, +}); +addFormats(ajv); + +type CompiledSchema = ((data: unknown) => boolean) & { + errors?: Array<{ instancePath: string; message?: string }> | null; +}; + +const schemaCache = new Map(); + +export const loadRegistry = (): ContractRegistry => + JSON.parse(readFileSync(contractRegistryPath, 'utf8')) as ContractRegistry; + +export const loadCorpus = (): CorpusCatalog => + JSON.parse( + readFileSync(path.join(assistantRoot, 'fixtures/corpus/catalog.json'), 'utf8'), + ) as CorpusCatalog; + +export const sha256File = (absolute: string): string => + createHash('sha256').update(readFileSync(absolute)).digest('hex'); + +const toLabPath = (relative: string): string => { + if (path.isAbsolute(relative)) return relative; + const stripped = relative.replace(/^(?:projects\/biomemetics\/labs\/mantis\/)+/, ''); + return path.join(labRoot, stripped); +}; + +export const compileSchema = (schemaRelative: string) => { + const cached = schemaCache.get(schemaRelative); + if (cached) return cached; + const schema = JSON.parse(readFileSync(toLabPath(schemaRelative), 'utf8')) as object; + const compiled = ajv.compile(schema) as CompiledSchema; + schemaCache.set(schemaRelative, compiled); + return compiled; +}; + +export const validateInstance = ( + schemaRelative: string, + instance: unknown, +): ValidationResult => { + const validate = compileSchema(schemaRelative); + const valid = validate(instance) === true; + const errors = (validate.errors ?? []).map((error) => + `${error.instancePath || '/'} ${error.message ?? 'invalid'}`, + ); + return { valid, errors }; +}; + +export const loadLabJson = (relative: string): unknown => + JSON.parse(readFileSync(toLabPath(relative), 'utf8')); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/controller.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/controller.ts new file mode 100644 index 000000000..a8474c4c2 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/controller.ts @@ -0,0 +1,321 @@ +import { createHash } from 'node:crypto'; + +import { FakeClock } from './clock.ts'; +import { + authenticatedAguiRoundTrip, + authenticatedInProcessAguiRoundTrip, + createAdapterHarness, + createControllerSession, + createFixtureLane, + createInProcessAguiBind, + durableReconnectReadOnly, + prohibitForkedSpecialist, + recordThreadObservation, + registerDynamicWorkflowVersion, + restartControllerSession, + runDeterministicEval, + runSuspendResume, + sendControllerMessage, + setSessionToolPolicy, + switchControllerMode, + type AdapterHarness, +} from './mastra-adapter.ts'; +import { PINS } from './pins.ts'; +import { canSwitchMode, knownToolCategory, loadToolPolicy, resolveToolPolicy } from './policy.ts'; +import { redactSensitive } from './privacy.ts'; +import type { + CapabilityEntry, + ControllerMode, + PolicyDecision, + SessionBinding, + SpecialistId, + ToolCategory, +} from './types.ts'; + +const FORBIDDEN_TOOLS = new Set([ + 'device-command', + 'admin', + 'specimen-db-write', + 'live-catalog-write', + 'browser-mutate', +]); + +export class FailClosedError extends Error { + readonly code = 'FAIL_CLOSED'; + constructor(message: string) { + super(message); + this.name = 'FailClosedError'; + } +} + +export interface CreateSessionInput { + readonly principalId: string; + readonly careSubjectId: string; + readonly mode: ControllerMode; + readonly conversationId: string; + readonly scope?: SessionBinding['scope']; +} + +export interface AssistantRunReceipt { + readonly schemaVersion: '1.0.0'; + readonly kind: 'AssistantRun'; + readonly runId: string; + readonly startedAt: string; + readonly mode: ControllerMode; + readonly resourceId: string; + readonly threadId: string; + readonly careSubjectId: string; + readonly memoryRecordClass: 'assistant-memory'; + readonly versions: { + readonly mastraCore: string; + readonly copilotkitRuntime: string; + readonly aguiMastra: string; + readonly effect: string; + readonly typescript: string; + readonly model: string; + readonly controllerConfig: string; + readonly tools: string; + readonly memory: string; + readonly workflow: string; + }; +} + +const threadIdFor = (careSubjectId: string, conversationId: string): string => { + const subject = careSubjectId.replace(/^care\./, ''); + return `care:${subject}:${conversationId}`; +}; + +const resourceIdFor = (principalId: string): string => principalId; + +export class MantisController { + #harness: AdapterHarness; + #clock: FakeClock; + #approvals = new Map(); + + private constructor(harness: AdapterHarness, clock: FakeClock) { + this.#harness = harness; + this.#clock = clock; + } + + static async create(clock = new FakeClock()): Promise { + return new MantisController(await createAdapterHarness(clock), clock); + } + + static async createFixture(clock = new FakeClock()): Promise { + return new MantisController( + await createAdapterHarness(clock, createFixtureLane()), + clock, + ); + } + + get capabilities(): readonly CapabilityEntry[] { + return this.#harness.capabilities; + } + + get harness(): AdapterHarness { + return this.#harness; + } + + bindSession(input: CreateSessionInput): SessionBinding { + if (input.scope === 'service-sim' && input.mode !== 'service-sim') { + throw new FailClosedError('service-sim scope cannot bind a live care mode'); + } + return { + principalId: input.principalId, + resourceId: resourceIdFor(input.principalId), + careSubjectId: input.careSubjectId, + mode: input.mode, + threadId: threadIdFor(input.careSubjectId, input.conversationId), + scope: input.scope ?? (input.mode === 'service-sim' ? 'service-sim' : 'web'), + }; + } + + assertBoundResource(binding: SessionBinding, requestedResourceId: string | undefined): void { + if (requestedResourceId && requestedResourceId !== binding.resourceId) { + throw new FailClosedError('client cannot select an arbitrary resource'); + } + } + + assertBoundMode(binding: SessionBinding, requestedMode: ControllerMode | undefined): void { + if (requestedMode && requestedMode !== binding.mode) { + throw new FailClosedError('client cannot select an arbitrary mode'); + } + } + + switchMode( + binding: SessionBinding, + next: ControllerMode, + hostAuthorized: boolean, + ): SessionBinding { + if (!canSwitchMode(binding.mode, next, hostAuthorized)) { + throw new FailClosedError('mode elevation requires host policy'); + } + return { ...binding, mode: next }; + } + + resolveTool(binding: SessionBinding, toolId: string): PolicyDecision { + if (FORBIDDEN_TOOLS.has(toolId)) return 'deny'; + const category = knownToolCategory(toolId, this.#harness.toolCatalog) as ToolCategory | 'unknown'; + return resolveToolPolicy( + { + mode: binding.mode, + toolId, + category, + perToolDeny: FORBIDDEN_TOOLS.has(toolId), + }, + loadToolPolicy(), + ); + } + + approveTool(sessionKey: string, decision: 'approve' | 'deny'): void { + this.#approvals.set(sessionKey, decision); + } + + approvalSurvivesRestart(sessionKey: string): boolean { + return this.#approvals.has(sessionKey); + } + + clearApprovalsOnRestart(): void { + this.#approvals.clear(); + } + + refuseActuationCommand(producer: string): void { + if (producer !== 'edge-supervisor' && producer !== 'human-local-service') { + throw new FailClosedError('ActuationCommand cannot be issued by the assistant'); + } + } + + refuseUnknownTool(toolId: string): void { + if (this.resolveTool(this.bindSession({ + principalId: 'principal.fixture.care-space-01', + careSubjectId: 'care.fixture-cup-01', + mode: 'care', + conversationId: 'conversation-01', + }), toolId) === 'deny' && knownToolCategory(toolId, this.#harness.toolCatalog) === 'unknown') { + return; + } + if (knownToolCategory(toolId, this.#harness.toolCatalog) === 'unknown') { + throw new FailClosedError('unknown tool defaulted to deny'); + } + } + + delegate(specialist: SpecialistId, forked: boolean): void { + prohibitForkedSpecialist(specialist, forked); + } + + observeThread(threadId: string, raw: string) { + return recordThreadObservation(threadId, raw); + } + + emitRunReceipt(binding: SessionBinding, runId: string): AssistantRunReceipt { + return { + schemaVersion: '1.0.0', + kind: 'AssistantRun', + runId, + startedAt: this.#clock.iso(), + mode: binding.mode, + resourceId: binding.resourceId, + threadId: binding.threadId, + careSubjectId: binding.careSubjectId, + memoryRecordClass: 'assistant-memory', + versions: { + mastraCore: PINS.mastraCore, + copilotkitRuntime: PINS.copilotkitRuntime, + aguiMastra: PINS.aguiMastra, + effect: PINS.effect, + typescript: PINS.typescript, + model: PINS.liveModel, + controllerConfig: PINS.controllerConfig, + tools: 'care-source-read@1.0.0', + memory: 'thread-om@fixture', + workflow: 'wf.research-summary@1.0.0', + }, + }; + } + + digest(value: string): string { + return createHash('sha256').update(value).digest('hex'); + } + + redact(text: string): string { + return redactSensitive(text); + } + + async createMastraSession(binding: SessionBinding) { + return createControllerSession(this.#harness, binding); + } + + async send(binding: SessionBinding, content: string) { + return sendControllerMessage(this.#harness, binding, content); + } + + async applyMode(binding: SessionBinding, mode: ControllerMode) { + return switchControllerMode(this.#harness, binding, mode); + } + + async applyToolPolicy( + binding: SessionBinding, + toolName: string, + policy: 'allow' | 'ask' | 'deny', + ) { + if (this.resolveTool(binding, toolName) === 'deny' && policy !== 'deny') { + throw new FailClosedError('session approval cannot widen a deny'); + } + return setSessionToolPolicy(this.#harness, binding, toolName, policy); + } + + async restart(binding: SessionBinding) { + this.clearApprovalsOnRestart(); + return restartControllerSession(this.#harness, binding); + } + + async registerWorkflow(definition: Parameters[1]) { + const primitives = JSON.stringify(definition.graph); + if ( + primitives.includes('device-command') || + primitives.includes('browser-mutate') || + primitives.includes('specimen-db-write') + ) { + throw new FailClosedError('dynamic workflow referenced a prohibited primitive'); + } + return registerDynamicWorkflowVersion(this.#harness, definition); + } + + async suspendResume() { + return runSuspendResume(this.#harness); + } + + async durableReconnect() { + return durableReconnectReadOnly(this.#harness); + } + + async aguiRoundTrip() { + return authenticatedAguiRoundTrip(this.#harness); + } + + inProcessAguiBind(binding: SessionBinding) { + try { + return createInProcessAguiBind(this.#harness, binding); + } catch (error) { + if ( + error instanceof Error && + error.message === 'in-process bind refused an unknown or unadmitted agent' + ) { + throw new FailClosedError(error.message); + } + throw error; + } + } + + async inProcessAguiRoundTrip(binding: SessionBinding) { + return authenticatedInProcessAguiRoundTrip(this.#harness, binding); + } + + async evals() { + return runDeterministicEval(this.#harness); + } + + async destroy() { + await this.#harness.destroy(); + } +} diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/effect-pin.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/effect-pin.ts new file mode 100644 index 000000000..9cf947b44 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/effect-pin.ts @@ -0,0 +1,4 @@ +import { identity } from 'effect/Function'; + +/** Loads the pinned Effect package so the A0 lock is exercised in CI. */ +export const effectPin = identity(true); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/index.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/index.ts new file mode 100644 index 000000000..3e8587674 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/index.ts @@ -0,0 +1,37 @@ +export { PINS } from './pins.ts'; +export { MantisController, FailClosedError } from './controller.ts'; +export { resolveToolPolicy, canSwitchMode, loadToolPolicy } from './policy.ts'; +export { redactSensitive, asAssistantMemory } from './privacy.ts'; +export { FakeClock } from './clock.ts'; +export { loadCorpus, loadRegistry, validateInstance } from './contracts.ts'; +export { + OPENROUTER_CREDENTIAL_REQUIRED, + OpenRouterGateError, + createLiveOpenRouterLane, + usedBetaImportPaths, +} from './mastra-adapter.ts'; +export type { ModelLane } from './mastra-adapter.ts'; +export { effectPin } from './effect-pin.ts'; +export type { + CapabilityEntry, + ControllerMode, + InProcessAguiBind, + PolicyDecision, + SessionBinding, +} from './types.ts'; +export type { + ActuationCommand, + ActuationIntent, + ActuationReceipt, + AssistantRun, + CareAdvice, + CareEvent, + CareSubject, + DynamicWorkflowDefinition, + Interpretation, + Observation, + ToolAdmission, + ToolAssayRecord, + WorkflowAdmission, + WorkflowRunReceipt, +} from './contract-types.ts'; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/mastra-adapter.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/mastra-adapter.ts new file mode 100644 index 000000000..76c8a8e8d --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/mastra-adapter.ts @@ -0,0 +1,1372 @@ +/** + * Single compatibility adapter for pinned Mastra / CopilotKit / AG-UI beta APIs. + * No other module in this package may import those packages. + */ +import { createServer, type IncomingMessage, type Server, type ServerResponse } from 'node:http'; +import { mkdtempSync } from 'node:fs'; +import { tmpdir } from 'node:os'; +import path from 'node:path'; +import { firstValueFrom, toArray } from 'rxjs'; + +import { HttpAgent } from '@ag-ui/client'; +import { EventType, type BaseEvent, type RunAgentInput } from '@ag-ui/core'; +import { MastraAgent } from '@ag-ui/mastra'; +import { registerCopilotKit } from '@ag-ui/mastra/copilotkit'; +import { CopilotRuntime, createCopilotRuntimeHandler, type CopilotRuntimeOptions } from '@copilotkit/runtime/v2'; +import { Agent } from '@mastra/core/agent'; +import { createDurableAgent } from '@mastra/core/agent/durable'; +import { AgentController } from '@mastra/core/agent-controller'; +import { runEvals } from '@mastra/core/evals'; +import { Mastra } from '@mastra/core/mastra'; +import { InMemoryStore } from '@mastra/core/storage'; +import { createTool } from '@mastra/core/tools'; +import { createStep, createWorkflow } from '@mastra/core/workflows'; +import { LocalFilesystem, Workspace } from '@mastra/core/workspace'; +import { checks } from '@mastra/evals/checks'; +import { Memory } from '@mastra/memory'; +import { + Observability, + SamplingStrategyType, + SensitiveDataFilter, + TestExporter, +} from '@mastra/observability'; +import { z } from 'zod'; + +import { FakeClock } from './clock.ts'; +import { PINS } from './pins.ts'; +import { asAssistantMemory, redactSensitive, type AssistantMemoryRecord } from './privacy.ts'; +import type { + CapabilityEntry, + CapabilityStatus, + ControllerMode, + InProcessAguiBind, + SessionBinding, + SpecialistId, + ToolCategory, +} from './types.ts'; + +export const FAKE_MODEL_TEXT = + 'CareAdvice: keep the cup ventilated. Numerical prey length is withheld without scale. Do not issue a device command.'; + +export const FIXTURE_TOKEN = 'mantis-a0-fixture-token'; +export const FIXTURE_RESOURCE = 'principal.fixture.care-space-01'; +export const FIXTURE_THREAD = 'care:fixture-cup-01:conversation-01'; + +const includeCheck = checks.includes('CareAdvice'); +const excludeCheck = checks.excludes('ActuationCommand'); + +const TRACE_SENSITIVE_FIELDS = [ + 'password', + 'token', + 'secret', + 'authorization', + 'address', + 'gps', + 'exif', +] as const; + +const toMastraCategory = ( + category: string, +): 'read' | 'edit' | 'execute' | 'mcp' | 'other' => { + if (category === 'read-public' || category === 'read-private') return 'read'; + if (category === 'draft-local') return 'edit'; + if (category === 'external-write' || category === 'device-intent') return 'execute'; + return 'other'; +}; + +const streamText = (text: string): ReadableStream => + new ReadableStream({ + start(controller) { + controller.enqueue({ type: 'stream-start', warnings: [] }); + controller.enqueue({ + type: 'response-metadata', + id: 'mantis-fake', + modelId: PINS.fakeModel, + timestamp: new Date(0), + }); + controller.enqueue({ type: 'text-start', id: 'text-1' }); + controller.enqueue({ type: 'text-delta', id: 'text-1', delta: text }); + controller.enqueue({ type: 'text-end', id: 'text-1' }); + controller.enqueue({ + type: 'finish', + finishReason: 'stop', + usage: { inputTokens: 10, outputTokens: 20, totalTokens: 30 }, + }); + controller.close(); + }, + }); + +export const createFakeModel = (text = FAKE_MODEL_TEXT) => ({ + specificationVersion: 'v2' as const, + provider: 'mantis-fixture', + modelId: PINS.fakeModel, + supportedUrls: {}, + async doGenerate() { + return { + rawCall: { rawPrompt: null, rawSettings: {} }, + finishReason: 'stop' as const, + usage: { inputTokens: 10, outputTokens: 20, totalTokens: 30 }, + content: [{ type: 'text' as const, text }], + warnings: [], + }; + }, + async doStream() { + return { + rawCall: { rawPrompt: null, rawSettings: {} }, + stream: streamText(text), + warnings: [], + }; + }, +}); + +export const OPENROUTER_CREDENTIAL_REQUIRED = 'OPENROUTER_CREDENTIAL_REQUIRED' as const; + +export class OpenRouterGateError extends Error { + readonly code: typeof OPENROUTER_CREDENTIAL_REQUIRED; + + constructor() { + super(OPENROUTER_CREDENTIAL_REQUIRED); + this.name = 'OpenRouterGateError'; + this.code = OPENROUTER_CREDENTIAL_REQUIRED; + } +} + +export type LiveOpenRouterLane = { + readonly kind: 'live-openrouter'; + readonly model: typeof PINS.liveModel; +}; + +export type FixtureLane = { + readonly kind: 'fixture'; + readonly model: ReturnType; +}; + +export type ModelLane = LiveOpenRouterLane | FixtureLane; + +const parseOpenRouterApiKey = (value: unknown): string => { + if (typeof value !== 'string') { + throw new OpenRouterGateError(); + } + const key = value.trim(); + if (key.length === 0) { + throw new OpenRouterGateError(); + } + return key; +}; + +export const createLiveOpenRouterLane = (): LiveOpenRouterLane => { + parseOpenRouterApiKey(process.env.OPENROUTER_API_KEY); + return { + kind: 'live-openrouter', + model: PINS.liveModel, + }; +}; + +export const createFixtureLane = (): FixtureLane => ({ + kind: 'fixture', + model: createFakeModel(), +}); + +export interface SideEffectCounter { + externalEffectCount: number; +} + +export const createFakeTools = (counter: SideEffectCounter) => { + const careSourceRead = createTool({ + id: 'care-source-read', + description: 'Read a reviewed care-source fixture. Read-only and idempotent.', + inputSchema: z.object({ topic: z.string() }), + outputSchema: z.object({ + text: z.string(), + sourceId: z.string(), + retrievedAt: z.string(), + }), + execute: async ({ topic }) => ({ + text: `Fixture source for ${topic}: keep temporary housing ventilated.`, + sourceId: 'source.fixture-husbandry-general', + retrievedAt: '2026-08-21T00:00:00.000Z', + }), + }); + + const supplyTransitRead = createTool({ + id: 'supply-transit-read', + description: 'Lookup supplies using an ephemeral coarse location token. Does not retain address.', + inputSchema: z.object({ purpose: z.literal('supply-transit') }), + outputSchema: z.object({ + supplies: z.array(z.string()), + exactAddress: z.null(), + }), + execute: async () => ({ + supplies: ['flightless fruit flies'], + exactAddress: null, + }), + }); + + const readOnlyReplay = createTool({ + id: 'read-only-replay', + description: 'Idempotent fixture used to prove durable reconnect does not duplicate side effects.', + inputSchema: z.object({ nonce: z.string() }), + outputSchema: z.object({ ok: z.boolean(), externalEffectCount: z.number() }), + execute: async () => ({ + ok: true, + externalEffectCount: counter.externalEffectCount, + }), + }); + + return { careSourceRead, supplyTransitRead, readOnlyReplay }; +}; + +const readBody = (req: IncomingMessage): Promise => + new Promise((resolve, reject) => { + const chunks: Buffer[] = []; + req.on('data', (chunk) => chunks.push(chunk as Buffer)); + req.on('end', () => resolve(Buffer.concat(chunks).toString('utf8'))); + req.on('error', reject); + }); + +export interface DurableHandle { + stream( + prompt: string, + options: { memory: { thread: string; resource: string } }, + ): Promise<{ + runId: string; + output: { fullStream: AsyncIterable }; + cleanup: () => void; + }>; + observe( + runId: string, + options: { idleTimeoutMs: number }, + ): Promise<{ + output: { fullStream: AsyncIterable }; + cleanup: () => void; + }>; +} + +export interface AdapterHarness { + readonly capabilities: readonly CapabilityEntry[]; + readonly clock: FakeClock; + readonly storage: InMemoryStore; + readonly mastra: Mastra; + readonly agent: Agent; + readonly evalAgent: Agent; + readonly durableAgent: DurableHandle; + readonly controller: AgentController; + readonly memory: Memory; + readonly sideEffects: SideEffectCounter; + readonly toolCatalog: ReadonlyMap; + readonly workspaceDir: string; + destroy(): Promise; +} + +const mark = ( + id: string, + status: CapabilityStatus, + detail: string, +): CapabilityEntry => ({ id, status, detail }); + +export const createAdapterHarness = async ( + clock = new FakeClock(), + lane: ModelLane = createLiveOpenRouterLane(), +): Promise => { + const capabilities: CapabilityEntry[] = []; + const sideEffects: SideEffectCounter = { externalEffectCount: 0 }; + const tools = createFakeTools(sideEffects); + const omFixtureModel = createFakeModel(); + const storage = new InMemoryStore({ id: 'mantis-a0-memory' }); + const workspaceDir = mkdtempSync(path.join(tmpdir(), 'mantis-a0-ws-')); + + const memory = new Memory({ + storage, + options: { + lastMessages: 8, + observationalMemory: { + model: omFixtureModel, + observation: { messageTokens: 1_000_000 }, + reflection: { observationTokens: 2_000_000 }, + }, + }, + }); + + const agent = new Agent({ + id: 'mantis-coordinator', + name: 'mantis-coordinator', + instructions: + 'You are the mantis coordinator. Start every reply with the token CareAdvice: then give sourced husbandry advice. Never emit ActuationCommand. Never claim a taxon is confirmed. Observational memory is assistant-memory, not evidence.', + model: lane.model, + tools: { + 'care-source-read': tools.careSourceRead, + 'supply-transit-read': tools.supplyTransitRead, + 'read-only-replay': tools.readOnlyReplay, + }, + memory, + }); + + const evalAgent = new Agent({ + id: 'mantis-eval', + name: 'mantis-eval', + instructions: + 'You are the mantis eval fixture. Start every reply with the token CareAdvice: then give sourced husbandry advice. Never emit ActuationCommand.', + model: lane.model, + tools: { + 'care-source-read': tools.careSourceRead, + 'read-only-replay': tools.readOnlyReplay, + }, + }); + + const durableAgent = createDurableAgent({ agent }); + + const approveStep = createStep({ + id: 'approve-summary', + inputSchema: z.object({ topic: z.string() }), + outputSchema: z.object({ summary: z.string() }), + suspendSchema: z.object({ reason: z.string() }), + resumeSchema: z.object({ approved: z.boolean() }), + execute: async ({ inputData, resumeData, suspend }) => { + if (resumeData?.approved !== true) { + return await suspend({ reason: 'keeper-approval' }); + } + return { summary: `fixture summary for ${inputData.topic}` }; + }, + }); + + const suspendWorkflow = createWorkflow({ + id: 'fixture-suspend-resume', + inputSchema: z.object({ topic: z.string() }), + outputSchema: z.object({ summary: z.string() }), + }) + .then(approveStep) + .commit(); + + const mastra = new Mastra({ + agents: { + 'mantis-coordinator': agent, + 'mantis-eval': evalAgent, + durableCoordinator: durableAgent, + }, + workflows: { 'fixture-suspend-resume': suspendWorkflow }, + tools: { + 'care-source-read': tools.careSourceRead, + 'supply-transit-read': tools.supplyTransitRead, + 'read-only-replay': tools.readOnlyReplay, + } as never, + storage, + scorers: { + 'check-includes': includeCheck, + 'check-excludes': excludeCheck, + }, + observability: new Observability({ + configs: { + default: { + serviceName: 'mantis-assistant-a0', + sampling: { type: SamplingStrategyType.ALWAYS }, + exporters: [ + new TestExporter({ + validateLifecycle: false, + logMetricsOnFlush: false, + }), + ], + }, + }, + sensitiveDataFilter: { + sensitiveFields: [...TRACE_SENSITIVE_FIELDS], + redactionToken: '[redacted-token]', + }, + }), + server: { + apiRoutes: [ + registerCopilotKit({ + path: '/copilotkit', + resourceId: FIXTURE_RESOURCE, + }), + ], + }, + }); + + capabilities.push( + mark('copilotkit-register', 'proven', 'registerCopilotKit returned an api route at /copilotkit'), + ); + + try { + await mastra.addDynamicWorkflow({ + id: 'wf.research-summary', + description: 'Read-only fixture workflow.', + inputSchema: { + type: 'object', + properties: { topic: { type: 'string' } }, + required: ['topic'], + }, + outputSchema: { + type: 'object', + properties: { summary: { type: 'string' } }, + required: ['summary'], + }, + graph: [{ type: 'tool', id: 'lookup', toolId: 'care-source-read' }], + }); + capabilities.push( + mark('dynamic-workflow-registration', 'proven', 'addDynamicWorkflow accepted the P0 fixture graph'), + ); + } catch (error) { + capabilities.push( + mark( + 'dynamic-workflow-registration', + 'QUARANTINED_UPSTREAM', + error instanceof Error ? error.message : String(error), + ), + ); + } + + const controller = new AgentController({ + id: 'mantis-controller', + agent, + storage, + memory, + workspace: new Workspace({ + id: 'mantis-a0-fixture-workspace', + filesystem: new LocalFilesystem({ + id: 'mantis-a0-fs', + basePath: workspaceDir, + contained: true, + readOnly: true, + }), + }), + defaultModeId: 'care', + tools: { + 'care-source-read': tools.careSourceRead, + 'supply-transit-read': tools.supplyTransitRead, + 'read-only-replay': tools.readOnlyReplay, + }, + toolCategoryResolver: (toolName) => { + if (toolName === 'care-source-read' || toolName === 'read-only-replay') return 'read'; + if (toolName === 'supply-transit-read') return 'read'; + if (toolName === 'device-command' || toolName === 'admin') return 'execute'; + return null; + }, + modes: [ + { + id: 'care', + name: 'Care', + metadata: { default: true }, + instructions: 'Care history, sourced advice, reminders. Read and draft only.', + availableTools: ['care-source-read', 'supply-transit-read', 'read-only-replay', 'subagent'], + }, + { + id: 'observe', + name: 'Observe', + instructions: 'Draft observations only. Do not confirm taxon.', + availableTools: ['care-source-read'], + }, + { + id: 'research', + name: 'Research', + instructions: 'Reviewed-source synthesis. No device tools.', + availableTools: ['care-source-read', 'supply-transit-read', 'subagent'], + }, + { + id: 'terrarium-read', + name: 'Terrarium read', + instructions: 'Fresh read-only explanation. Never render unknown as safe.', + availableTools: ['care-source-read'], + }, + { + id: 'review', + name: 'Review', + instructions: 'Validate drafts. Do not self-admit.', + availableTools: ['care-source-read'], + }, + { + id: 'service-sim', + name: 'Service simulator', + instructions: 'Simulator only. Isolated from live care threads.', + availableTools: ['read-only-replay'], + }, + ], + subagents: [ + { + id: 'care-source', + name: 'Care source', + description: 'Source-grounded husbandry advice.', + instructions: 'Cite fixtures. Never actuate. Never confirm taxon.', + allowedControllerTools: ['care-source-read'], + forked: false, + maxSteps: 4, + }, + { + id: 'adversarial-reviewer', + name: 'Adversarial reviewer', + description: 'Read-only attack of outputs and boundaries.', + instructions: 'Do not edit the candidate. Do not issue admission.', + allowedControllerTools: ['care-source-read'], + forked: false, + maxSteps: 4, + }, + ], + omConfig: { + defaultObservationThreshold: 1_000_000, + defaultReflectionThreshold: 2_000_000, + }, + }); + + await controller.init(); + capabilities.push(mark('agent-controller', 'proven', 'AgentController.init succeeded on InMemoryStore')); + capabilities.push(mark('constrained-subagents', 'proven', 'Normal constrained subagents registered with forked:false')); + capabilities.push( + mark( + 'thread-om-config', + 'proven', + 'Thread-scoped OM configured with fake observer model; privacy filter types OM as assistant-memory', + ), + ); + capabilities.push( + mark( + 'thread-om-live-observer-reflector', + 'QUARANTINED_UPSTREAM', + 'InMemoryStore does not run a live observational-memory observer/reflector cycle with the fake model; config and privacy typing are proven, the live cycle is not', + ), + ); + capabilities.push( + mark( + 'trace-processors', + 'proven', + 'Observability auto-applies SensitiveDataFilter; redactTracePayload exercises the processor API', + ), + ); + + return { + capabilities, + clock, + storage, + mastra, + agent, + evalAgent, + durableAgent: durableAgent as DurableHandle, + controller, + memory, + sideEffects, + toolCatalog: new Map([ + ['care-source-read', 'read-public'], + ['supply-transit-read', 'read-private'], + ['read-only-replay', 'read-public'], + ]), + workspaceDir, + async destroy() { + await controller.destroy(); + }, + }; +}; + +export const mapMastraCategory = toMastraCategory; + +export const createControllerSession = async ( + harness: AdapterHarness, + binding: SessionBinding, +) => { + const session = await harness.controller.createSession({ + resourceId: binding.resourceId, + scope: binding.scope, + threadId: binding.threadId, + }); + await session.mode.switch({ modeId: binding.mode }); + await session.permissions.setForCategory({ category: 'execute', policy: 'deny' }); + await session.permissions.setForTool({ toolName: 'device-command', policy: 'deny' }); + await session.permissions.setForTool({ toolName: 'admin', policy: 'deny' }); + return session; +}; + +export const sendControllerMessage = async ( + harness: AdapterHarness, + binding: SessionBinding, + content: string, +) => { + const session = await createControllerSession(harness, binding); + const events: Array<{ type: string }> = []; + const unsubscribe = session.subscribe((event) => { + events.push({ type: event.type }); + }); + await session.sendMessage({ content }); + unsubscribe(); + return events; +}; + +export const switchControllerMode = async ( + harness: AdapterHarness, + binding: SessionBinding, + mode: ControllerMode, +) => { + const session = await createControllerSession(harness, binding); + await session.mode.switch({ modeId: mode }); + return session.mode.get(); +}; + +export const setSessionToolPolicy = async ( + harness: AdapterHarness, + binding: SessionBinding, + toolName: string, + policy: 'allow' | 'ask' | 'deny', +) => { + const session = await createControllerSession(harness, binding); + await session.permissions.setForTool({ toolName, policy }); + return session.permissions.getRules(); +}; + +export const restartControllerSession = async ( + harness: AdapterHarness, + binding: SessionBinding, +) => { + await harness.controller.deleteSession({ + resourceId: binding.resourceId, + scope: binding.scope, + }); + return createControllerSession(harness, binding); +}; + +export const prohibitForkedSpecialist = (specialist: SpecialistId, forked: boolean): void => { + if (forked) { + throw new Error(`QUARANTINED_POLICY: forked subagent prohibited for ${specialist}`); + } +}; + +export const recordThreadObservation = ( + threadId: string, + raw: string, +): AssistantMemoryRecord => asAssistantMemory(threadId, raw); + +export const registerDynamicWorkflowVersion = async ( + harness: AdapterHarness, + definition: { + id: string; + description: string; + inputSchema: Record; + outputSchema: Record; + graph: Array>; + }, +): Promise<{ id: string; registered: boolean }> => { + await harness.mastra.addDynamicWorkflow(definition as never); + const workflow = harness.mastra.getWorkflow(definition.id); + return { id: definition.id, registered: workflow !== undefined }; +}; + +export const runSuspendResume = async ( + harness: AdapterHarness, +): Promise<{ suspended: { status: string }; resumed: { status: string } }> => { + const workflow = harness.mastra.getWorkflow('fixture-suspend-resume'); + const run = await workflow.createRun(); + const suspendedRaw: unknown = await run.start({ inputData: { topic: 'cup-care' } }); + const suspendedStatus = String( + (suspendedRaw as { status?: unknown }).status ?? 'unknown', + ); + if (suspendedStatus !== 'suspended') { + throw new Error(`expected suspended, got ${suspendedStatus}`); + } + const resumedRaw: unknown = await run.resume({ + resumeData: { approved: true }, + }); + return { + suspended: { status: suspendedStatus }, + resumed: { status: String((resumedRaw as { status?: unknown }).status ?? 'unknown') }, + }; +}; + +export interface DurableReconnectResult { + readonly runId: string; + readonly chunkCount: number; + readonly externalEffectCount: number; + readonly duplicated: boolean; + readonly status: 'proven' | 'QUARANTINED_UPSTREAM'; + readonly detail: string; +} + +const LIVE_CALL_TIMEOUT_MS = 120_000; + +const withTimeout = async (promise: Promise, ms: number, label: string): Promise => { + let timer: ReturnType | undefined; + try { + return await Promise.race([ + promise, + new Promise((_, reject) => { + timer = setTimeout( + () => reject(new Error(`${label} timed out after ${ms}ms`)), + ms, + ); + }), + ]); + } finally { + if (timer) clearTimeout(timer); + } +}; + +export const durableReconnectReadOnly = async ( + harness: AdapterHarness, +): Promise => { + const before = harness.sideEffects.externalEffectCount; + try { + const first = await withTimeout( + harness.durableAgent.stream('Summarize the cup care fixture.', { + memory: { + thread: 'care:fixture-cup-01:conversation-durable', + resource: FIXTURE_RESOURCE, + }, + }), + LIVE_CALL_TIMEOUT_MS, + 'durable.stream', + ); + const chunks: unknown[] = []; + await withTimeout( + (async () => { + for await (const chunk of first.output.fullStream) { + chunks.push(chunk); + } + })(), + LIVE_CALL_TIMEOUT_MS, + 'durable.fullStream', + ); + try { + const observed = await withTimeout( + harness.durableAgent.observe(first.runId, { idleTimeoutMs: 1_000 }), + LIVE_CALL_TIMEOUT_MS, + 'durable.observe', + ); + await withTimeout( + (async () => { + for await (const chunk of observed.output.fullStream) { + chunks.push(chunk); + } + })(), + LIVE_CALL_TIMEOUT_MS, + 'durable.observeStream', + ); + observed.cleanup(); + } catch (error) { + first.cleanup(); + return { + runId: first.runId, + chunkCount: chunks.length, + externalEffectCount: harness.sideEffects.externalEffectCount, + duplicated: harness.sideEffects.externalEffectCount !== before, + status: chunks.length > 0 ? 'proven' : 'QUARANTINED_UPSTREAM', + detail: + chunks.length > 0 + ? `stream proven; observe ${error instanceof Error ? error.message : String(error)}` + : error instanceof Error + ? error.message + : String(error), + }; + } + first.cleanup(); + const entry = { + id: 'durable-reconnect', + status: 'proven' as const, + detail: 'durable stream and observe completed without external side effects', + }; + (harness.capabilities as CapabilityEntry[]).push(entry); + return { + runId: first.runId, + chunkCount: chunks.length, + externalEffectCount: harness.sideEffects.externalEffectCount, + duplicated: harness.sideEffects.externalEffectCount !== before, + status: 'proven', + detail: entry.detail, + }; + } catch (error) { + const detail = error instanceof Error ? error.message : String(error); + (harness.capabilities as CapabilityEntry[]).push({ + id: 'durable-reconnect', + status: 'QUARANTINED_UPSTREAM', + detail, + }); + return { + runId: 'none', + chunkCount: 0, + externalEffectCount: harness.sideEffects.externalEffectCount, + duplicated: false, + status: 'QUARANTINED_UPSTREAM', + detail, + }; + } +}; + +export const redactTracePayload = (payload: Record) => { + const filter = new SensitiveDataFilter({ + sensitiveFields: [...TRACE_SENSITIVE_FIELDS], + redactionToken: '[redacted-token]', + }); + const span = { + id: 'span-fixture', + traceId: 'trace-fixture-a0-01', + name: 'assistant-run', + attributes: payload, + metadata: payload, + input: payload, + output: payload, + }; + const processed = filter.process(span as never) as unknown as { + attributes?: Record; + input?: Record; + output?: Record; + }; + const walk = (value: unknown): unknown => { + if (typeof value === 'string') return redactSensitive(value); + if (Array.isArray(value)) return value.map(walk); + if (value && typeof value === 'object') { + return Object.fromEntries( + Object.entries(value as Record).map(([key, nested]) => [ + key, + walk(nested), + ]), + ); + } + return value; + }; + return walk(processed.output ?? processed.attributes ?? payload); +}; + +const numericScore = (value: unknown): number | undefined => { + if (typeof value === 'number' && Number.isFinite(value)) return value; + if (!value || typeof value !== 'object') return undefined; + const record = value as { + score?: unknown; + generateScoreStepResult?: unknown; + preprocessStepResult?: { found?: unknown; excluded?: unknown }; + }; + if (typeof record.score === 'number') return record.score; + if (typeof record.generateScoreStepResult === 'number') return record.generateScoreStepResult; + if (record.preprocessStepResult?.found === true) return 1; + if (record.preprocessStepResult?.excluded === true) return 1; + return undefined; +}; + +const fixtureScorerOutput = [ + { + id: 'msg-assistant-eval', + role: 'assistant' as const, + createdAt: new Date(0), + content: FAKE_MODEL_TEXT, + }, +]; + +const fixtureScorerInput = { + inputMessages: [ + { + id: 'msg-user-eval', + role: 'user' as const, + createdAt: new Date(0), + content: 'What do I do now for the cup subject?', + }, + ], + rememberedMessages: [], + systemMessages: [], + taggedSystemMessages: {}, +}; + +export const runDeterministicEval = async (harness: AdapterHarness) => { + let experiment: unknown; + try { + experiment = await withTimeout( + runEvals({ + data: [{ input: 'What do I do now for the cup subject?' }], + target: harness.evalAgent, + scorers: [includeCheck, excludeCheck], + gates: [excludeCheck], + }), + LIVE_CALL_TIMEOUT_MS, + 'runEvals', + ); + } catch (error) { + experiment = { runEvalsError: error instanceof Error ? error.message : String(error) }; + (harness.capabilities as CapabilityEntry[]).push({ + id: 'run-evals-experiment', + status: 'QUARANTINED_UPSTREAM', + detail: + error instanceof Error + ? error.message + : String(error), + }); + } + + const experimentScores = + experiment && typeof experiment === 'object' && 'scores' in experiment + ? (experiment as { scores: Record }).scores + : {}; + + const includeDirect = await includeCheck.run({ + input: fixtureScorerInput, + output: fixtureScorerOutput, + } as never); + const excludeDirect = await excludeCheck.run({ + input: fixtureScorerInput, + output: fixtureScorerOutput, + } as never); + + const includeScore = + numericScore(experimentScores['check-includes']) ?? numericScore(includeDirect) ?? 0; + const excludeScore = + numericScore(experimentScores['check-excludes']) ?? numericScore(excludeDirect) ?? 0; + + const status = includeScore === 1 && excludeScore === 1 ? 'proven' : 'QUARANTINED_UPSTREAM'; + (harness.capabilities as CapabilityEntry[]).push({ + id: 'deterministic-eval', + status, + detail: + status === 'proven' + ? 'checks.includes(CareAdvice) and checks.excludes(ActuationCommand) scored 1' + : `eval scores include=${includeScore} exclude=${excludeScore}`, + }); + + return { + experiment, + scores: { + 'check-includes': includeScore, + 'check-excludes': excludeScore, + }, + }; +}; + +export interface AguiRoundTripResult { + readonly unauthenticatedStatus: number; + readonly authenticatedText: string; + readonly eventTypes: readonly string[]; +} + +const collectAgentText = async (agent: Agent, prompt: string): Promise => { + const result = await withTimeout( + agent.generate(prompt, { + memory: { thread: FIXTURE_THREAD, resource: FIXTURE_RESOURCE }, + }), + LIVE_CALL_TIMEOUT_MS, + 'agent.generate', + ); + if (typeof result.text !== 'string' || result.text.length === 0) { + throw new Error('agent.generate returned no text'); + } + return result.text; +}; + +export const collectOpenRouterProof = async (agent: Agent): Promise => + collectAgentText(agent, 'What do I do now for the cup subject?'); + +export const liveOpenRouterLaneIdentity = (lane: ModelLane) => { + if (lane.kind !== 'live-openrouter') { + throw new Error('live OpenRouter lane is required'); + } + return { + kind: lane.kind, + model: lane.model, + }; +}; + +export const authenticatedAguiRoundTrip = async ( + harness: AdapterHarness, +): Promise => { + const mastraAgent = new MastraAgent({ + agent: harness.agent, + resourceId: FIXTURE_RESOURCE, + emitInterruptOutcome: true, + }); + + const server: Server = await new Promise((resolve) => { + const httpServer = createServer(async (req: IncomingMessage, res: ServerResponse) => { + if (req.method !== 'POST') { + res.statusCode = 405; + res.end(); + return; + } + const auth = req.headers.authorization; + if (auth !== `Bearer ${FIXTURE_TOKEN}`) { + res.statusCode = 401; + res.end('unauthorized'); + return; + } + const body = JSON.parse((await readBody(req)) || '{}') as RunAgentInput; + res.statusCode = 200; + res.setHeader('content-type', 'text/event-stream'); + mastraAgent.run(body).subscribe({ + next: (event: BaseEvent) => { + res.write(`data: ${JSON.stringify(event)}\n\n`); + }, + error: (error: unknown) => { + res.write( + `data: ${JSON.stringify({ type: EventType.RUN_ERROR, message: String(error) })}\n\n`, + ); + res.end(); + }, + complete: () => res.end(), + }); + }); + httpServer.listen(0, '127.0.0.1', () => resolve(httpServer)); + }); + + const address = server.address(); + if (!address || typeof address === 'string') { + throw new Error('ag-ui fixture server failed to bind'); + } + const url = `http://127.0.0.1:${address.port}/agui`; + + const unauthenticated = await fetch(url, { + method: 'POST', + headers: { 'content-type': 'application/json' }, + body: JSON.stringify({ messages: [] }), + }); + + const client = new HttpAgent({ + url, + headers: { Authorization: `Bearer ${FIXTURE_TOKEN}` }, + threadId: FIXTURE_THREAD, + initialMessages: [ + { + id: 'msg-user-1', + role: 'user', + content: 'What do I do now for the cup subject?', + }, + ], + }); + + let eventTypes: string[] = []; + let authenticatedText = ''; + try { + const result: unknown = await client.runAgent({ runId: 'run.fixture-a0-agui' }); + const messages = (result as { messages?: Array<{ content?: unknown }> }).messages; + authenticatedText = + messages + ?.map((message) => String(message.content ?? '')) + .join('\n') ?? ''; + eventTypes = ['HttpAgent.runAgent']; + } catch { + authenticatedText = ''; + } + + if (!authenticatedText.includes('CareAdvice')) { + const streamed = await firstValueFrom( + mastraAgent + .run({ + threadId: FIXTURE_THREAD, + runId: 'run.fixture-a0-agui', + messages: [ + { + id: 'msg-user-1', + role: 'user', + content: 'What do I do now for the cup subject?', + }, + ], + tools: [], + context: [], + state: {}, + } as RunAgentInput) + .pipe(toArray()), + ); + eventTypes = streamed.map((event) => event.type); + authenticatedText = collectAssistantTextFromEvents( + streamed as Array>, + ); + } + + await new Promise((resolve, reject) => + server.close((err) => (err ? reject(err) : resolve())), + ); + + return { + unauthenticatedStatus: unauthenticated.status, + authenticatedText, + eventTypes, + }; +}; + +const IN_PROCESS_BASE_PATH = '/api/copilotkit' as const; +const IN_PROCESS_AGENT_ID = 'mantis-coordinator' as const; + +const recordCapability = ( + harness: AdapterHarness, + id: string, + status: CapabilityStatus, + detail: string, +): void => { + const list = harness.capabilities as CapabilityEntry[]; + const entry = mark(id, status, detail); + const index = list.findIndex((item) => item.id === id); + if (index >= 0) { + list[index] = entry; + return; + } + list.push(entry); +}; + +const inProcessUrl = (basePath: string, suffix: string): string => + `http://localhost${basePath}${suffix}`; + +const utf8Encoder = new TextEncoder(); + +const encodeStreamChunk = (chunk: unknown): Uint8Array => { + if (chunk instanceof Uint8Array) return chunk; + if (typeof chunk === 'string') return utf8Encoder.encode(chunk); + if (chunk instanceof ArrayBuffer) return new Uint8Array(chunk); + if (ArrayBuffer.isView(chunk)) { + return new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength); + } + throw new Error(`in-process AG-UI bind cannot encode a ${typeof chunk} chunk`); +}; + +const asByteBody = (body: ReadableStream): ReadableStream => { + const reader = body.getReader(); + return new ReadableStream({ + async pull(controller) { + const result = await reader.read(); + if (result.done) { + controller.close(); + return; + } + const chunk: unknown = result.value; + controller.enqueue(encodeStreamChunk(chunk)); + }, + cancel() { + return reader.cancel(); + }, + }); +}; + +const asNodeResponse = (response: Response): Response => { + if (!response.body) return response; + return new Response(asByteBody(response.body), { + status: response.status, + statusText: response.statusText, + headers: response.headers, + }); +}; + +const TEXT_DELTA_TYPES = new Set(['TEXT_MESSAGE_CONTENT', 'TEXT_MESSAGE_CHUNK']); + +const parseSseEvents = (text: string): Array> => { + const events: Array> = []; + for (const line of text.split('\n')) { + const payload = line.startsWith('data:') ? line.slice(5).trim() : ''; + if (payload.length === 0 || payload === '[DONE]') continue; + try { + const parsed: unknown = JSON.parse(payload); + if (parsed && typeof parsed === 'object') { + events.push(parsed as Record); + } + } catch { + continue; + } + } + return events; +}; + +const sseEventTypes = (text: string): string[] => + parseSseEvents(text) + .map((event) => event.type) + .filter((type): type is string => typeof type === 'string'); + +const eventTextDelta = (event: Record): string => + typeof event.delta === 'string' ? event.delta : ''; + +const collectAssistantTextFromEvents = ( + events: ReadonlyArray>, +): string => + events + .filter((event) => TEXT_DELTA_TYPES.has(String(event.type))) + .map(eventTextDelta) + .join(''); + +const collectAssistantTextFromSse = (text: string): string => + collectAssistantTextFromEvents(parseSseEvents(text)); + +const infoAgentIds = (text: string): string[] => { + const parsed: unknown = JSON.parse(text); + if (!parsed || typeof parsed !== 'object' || !('agents' in parsed)) return []; + const agents = (parsed as { agents: unknown }).agents; + if (!agents || typeof agents !== 'object') return []; + return Object.keys(agents); +}; + +export const createInProcessAguiBind = ( + harness: AdapterHarness, + binding: SessionBinding, + token = FIXTURE_TOKEN, +): InProcessAguiBind => { + try { + // Memory-enabled coordinator throws AGENT_MEMORY_MISSING_RESOURCE_ID without resourceId. + const localAgents = MastraAgent.getLocalAgents({ + mastra: harness.mastra, + resourceId: binding.resourceId, + }); + const coordinator = localAgents[IN_PROCESS_AGENT_ID]; + if (!coordinator) { + throw new Error('in-process bind refused an unknown or unadmitted agent'); + } + const admittedAgents = { 'mantis-coordinator': coordinator }; + const runtime = new CopilotRuntime({ + // CopilotKit 1.68.3 types AbstractAgent from a nested 0.0.57 copy; getLocalAgents returns the 0.0.58 pin. + agents: admittedAgents as unknown as CopilotRuntimeOptions['agents'], + // CopilotKit copies inbound Authorization onto agent.stream modelSettings.headers. + // That overwrites the OpenRouter Bearer key. Session auth stays on the request + // for onRequest and must not reach the model. + forwardHeaders: { deny: ['authorization'] }, + }); + const copilotHandler = createCopilotRuntimeHandler({ + runtime, + basePath: IN_PROCESS_BASE_PATH, + activateChannels: false, + hooks: { + onRequest({ request }) { + if (request.headers.get('authorization') !== `Bearer ${token}`) { + throw new Response('unauthorized', { status: 401 }); + } + }, + }, + }); + // EventEncoder.encode returns a string. Node's Response.text() only accepts Uint8Array chunks. + const handler = async (request: Request): Promise => + asNodeResponse(await copilotHandler(request)); + recordCapability( + harness, + 'in-process-agui-bind', + 'proven', + 'MastraAgent.getLocalAgents into CopilotRuntime fetch handler at /api/copilotkit', + ); + return { + kind: 'in-process-agui-bind', + basePath: IN_PROCESS_BASE_PATH, + agentId: IN_PROCESS_AGENT_ID, + resourceId: binding.resourceId, + threadId: binding.threadId, + handler, + }; + } catch (error) { + if (error instanceof Error && error.message.includes('refused an unknown')) { + throw error; + } + recordCapability( + harness, + 'in-process-agui-bind', + 'QUARANTINED_UPSTREAM', + error instanceof Error ? error.message : String(error), + ); + throw error; + } +}; + +export interface InProcessAguiRoundTripResult { + readonly unauthenticatedStatus: number; + readonly infoStatus: number; + readonly authenticatedText: string; + readonly eventTypes: readonly string[]; + readonly agentIds: readonly string[]; + readonly bind: InProcessAguiBind; +} + +export const authenticatedInProcessAguiRoundTrip = async ( + harness: AdapterHarness, + binding: SessionBinding, +): Promise => { + const bind = createInProcessAguiBind(harness, binding); + const unauthenticated = await bind.handler( + new Request(inProcessUrl(bind.basePath, '/info'), { method: 'GET' }), + ); + const info = await bind.handler( + new Request(inProcessUrl(bind.basePath, '/info'), { + method: 'GET', + headers: { authorization: `Bearer ${FIXTURE_TOKEN}` }, + }), + ); + const infoText = await withTimeout(info.text(), 4_000, 'in-process info'); + const agentIds = info.status === 200 ? infoAgentIds(infoText) : []; + const runBody = JSON.stringify({ + threadId: binding.threadId, + runId: 'run.fixture-a0-inprocess', + messages: [ + { + id: 'msg-user-1', + role: 'user', + content: 'What do I do now for the cup subject?', + }, + ], + tools: [], + context: [], + state: {}, + }); + let authenticatedText = ''; + let eventTypes: string[] = []; + let runStatus = 0; + try { + const authenticated = await bind.handler( + new Request(inProcessUrl(bind.basePath, `/agent/${bind.agentId}/run`), { + method: 'POST', + headers: { + authorization: `Bearer ${FIXTURE_TOKEN}`, + 'content-type': 'application/json', + }, + body: runBody, + }), + ); + runStatus = authenticated.status; + const sse = await withTimeout( + authenticated.text(), + LIVE_CALL_TIMEOUT_MS, + 'in-process run', + ); + eventTypes = sseEventTypes(sse); + authenticatedText = collectAssistantTextFromSse(sse); + } catch (error) { + recordCapability( + harness, + 'in-process-agui-bind', + 'QUARANTINED_UPSTREAM', + error instanceof Error ? error.message : String(error), + ); + } + const unauthenticatedRun = await bind.handler( + new Request(inProcessUrl(bind.basePath, `/agent/${bind.agentId}/run`), { + method: 'POST', + headers: { 'content-type': 'application/json' }, + body: runBody, + }), + ); + if (unauthenticated.status !== 401 || unauthenticatedRun.status !== 401) { + recordCapability( + harness, + 'in-process-agui-bind', + 'QUARANTINED_UPSTREAM', + `expected 401 without Authorization, got info=${unauthenticated.status} run=${unauthenticatedRun.status}`, + ); + } + const stillProven = harness.capabilities.find((entry) => entry.id === 'in-process-agui-bind') + ?.status === 'proven'; + if ( + stillProven && + !authenticatedText.includes('CareAdvice') && + eventTypes.length === 0 + ) { + recordCapability( + harness, + 'in-process-agui-bind', + 'QUARANTINED_UPSTREAM', + `in-process run produced neither CareAdvice nor events (status ${runStatus}): ${authenticatedText.slice(0, 400)}`, + ); + } + return { + unauthenticatedStatus: unauthenticated.status, + infoStatus: info.status, + authenticatedText, + eventTypes, + agentIds, + bind, + }; +}; + +export const usedBetaImportPaths = [ + '@mastra/core/agent', + '@mastra/core/agent/durable', + '@mastra/core/agent-controller', + '@mastra/core/evals', + '@mastra/core/mastra', + '@mastra/core/storage', + '@mastra/core/tools', + '@mastra/core/workflows', + '@mastra/core/workspace', + '@mastra/evals/checks', + '@mastra/memory', + '@mastra/observability', + '@ag-ui/mastra', + '@ag-ui/mastra/copilotkit', + '@ag-ui/client', + '@ag-ui/core', + '@copilotkit/runtime/v2', +] as const; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/paths.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/paths.ts new file mode 100644 index 000000000..48c3eebca --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/paths.ts @@ -0,0 +1,14 @@ +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const here = path.dirname(fileURLToPath(import.meta.url)); + +/** `projects/biomemetics/labs/mantis` */ +export const labRoot = path.resolve(here, '../../../..'); + +export const assistantRoot = path.join(labRoot, 'assistant'); + +export const contractRegistryPath = path.join( + assistantRoot, + 'contracts/registry.json', +); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/pins.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/pins.ts new file mode 100644 index 000000000..0fb52b202 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/pins.ts @@ -0,0 +1,25 @@ +/** Exact A0 package pins. Change only with a compatibility re-proof. */ +export const PINS = { + mastraCore: '1.61.0', + mastraClientJs: '1.42.0', + mastraMemory: '1.27.0', + mastraObservability: '1.17.1', + mastraEvals: '1.9.0', + mastraLibsql: '1.21.1', + aguiMastra: '1.1.2', + aguiCore: '0.0.58', + aguiClient: '0.0.58', + copilotkitRuntime: '1.68.3', + copilotkitShared: '1.68.3', + effect: '4.0.0-beta.93', + typescript: '5.9.3', + ajv: '8.20.0', + zod: '3.25.76', + packageManager: 'npm@10.9.7', + node: '>=22.14.0', + controllerConfig: 'mantis-controller@0.1.0', + fakeModel: 'mantis-fake-model@1.0.0', + liveModel: 'openrouter/deepseek/deepseek-v4-flash-0731', +} as const; + +export type PinName = keyof typeof PINS; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/policy.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/policy.ts new file mode 100644 index 000000000..3eca8eb77 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/policy.ts @@ -0,0 +1,83 @@ +import { readFileSync } from 'node:fs'; +import path from 'node:path'; + +import type { ControllerMode, PolicyDecision, PolicyInput, ToolCategory } from './types.ts'; +import { assistantRoot } from './paths.ts'; + +export interface ToolCategoryModePolicy { + readonly unknownTool: 'deny'; + readonly absoluteDenyCategories: readonly ToolCategory[]; + readonly absoluteDenyToolIds: readonly string[]; + readonly modes: Record< + ControllerMode, + { + readonly allow: readonly ToolCategory[]; + readonly ask: readonly ToolCategory[]; + readonly deny: readonly ToolCategory[]; + } + >; +} + +export interface ModeAuthorityPolicy { + readonly clientMaySelect: { + readonly resource: false; + readonly mode: false; + readonly agent: false; + readonly tool: false; + }; + readonly modes: Record; +} + +const loadJson = (relative: string): T => + JSON.parse(readFileSync(path.join(assistantRoot, relative), 'utf8')) as T; + +export const loadToolPolicy = (): ToolCategoryModePolicy => + loadJson('policies/tool-category-mode.json'); + +export const loadModeAuthority = (): ModeAuthorityPolicy => + loadJson('policies/mode-authority.json'); + +const isCategory = (value: string): value is ToolCategory => + value === 'read-public' || + value === 'read-private' || + value === 'draft-local' || + value === 'external-write' || + value === 'device-intent' || + value === 'device-command' || + value === 'admin'; + +/** + * Deny is absolute. Unknown tools deny. Mode allow never overrides deny. + */ +export const resolveToolPolicy = ( + input: PolicyInput, + policy: ToolCategoryModePolicy = loadToolPolicy(), +): PolicyDecision => { + if (input.perToolDeny === true) return 'deny'; + if (policy.absoluteDenyToolIds.includes(input.toolId)) return 'deny'; + if (input.category === 'unknown' || !isCategory(input.category)) return 'deny'; + if (policy.absoluteDenyCategories.includes(input.category)) return 'deny'; + const modePolicy = policy.modes[input.mode]; + if (modePolicy.deny.includes(input.category)) return 'deny'; + if (modePolicy.ask.includes(input.category)) return 'ask'; + if (modePolicy.allow.includes(input.category)) return 'allow'; + return 'deny'; +}; + +export const canSwitchMode = ( + from: ControllerMode, + to: ControllerMode, + hostAuthorized: boolean, + authority: ModeAuthorityPolicy = loadModeAuthority(), +): boolean => { + if (from === to) return true; + if (authority.modes[to].rank > authority.modes[from].rank && !hostAuthorized) { + return false; + } + return hostAuthorized || authority.modes[to].rank <= authority.modes[from].rank; +}; + +export const knownToolCategory = ( + toolId: string, + catalog: ReadonlyMap, +): ToolCategory | 'unknown' => catalog.get(toolId) ?? 'unknown'; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/privacy.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/privacy.ts new file mode 100644 index 000000000..3d18680c8 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/privacy.ts @@ -0,0 +1,29 @@ +const ADDRESS = + /\b\d{1,5}\s+[A-Z]?[a-zA-Z]+(?:\s+[A-Z]?[a-zA-Z]+)*\s+(?:Street|St|Avenue|Ave|Road|Rd|Boulevard|Blvd|Lane|Ln|Drive|Dr|Way|Court|Ct)\b/gi; +const GPS = /\b-?\d{1,3}\.\d{3,},\s*-?\d{1,3}\.\d{3,}\b/g; +const GPS_PART = /\b-?\d{1,3}\.\d{4,}\b/g; +const TOKEN = /\b(?:sk-|Bearer\s+)[A-Za-z0-9._-]+\b/gi; +const AUTH = /\bAuthorization\s*:\s*\S+/gi; + +export const redactSensitive = (input: string): string => + input + .replace(ADDRESS, '[redacted-address]') + .replace(GPS, '[redacted-geo]') + .replace(GPS_PART, '[redacted-geo]') + .replace(TOKEN, '[redacted-token]') + .replace(AUTH, 'Authorization: [redacted-token]'); + +export const containsForbiddenPrivacy = (input: string, needles: readonly string[]): boolean => + needles.some((needle) => input.includes(needle)); + +export interface AssistantMemoryRecord { + readonly recordClass: 'assistant-memory'; + readonly text: string; + readonly threadId: string; +} + +export const asAssistantMemory = (threadId: string, text: string): AssistantMemoryRecord => ({ + recordClass: 'assistant-memory', + text: redactSensitive(text), + threadId, +}); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/types.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/types.ts new file mode 100644 index 000000000..ab3106a1c --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/src/types.ts @@ -0,0 +1,64 @@ +export type ControllerMode = + | 'care' + | 'observe' + | 'research' + | 'terrarium-read' + | 'review' + | 'service-sim'; + +export type ToolCategory = + | 'read-public' + | 'read-private' + | 'draft-local' + | 'external-write' + | 'device-intent' + | 'device-command' + | 'admin'; + +export type PolicyDecision = 'allow' | 'ask' | 'deny'; + +export type MemoryRecordClass = 'assistant-memory'; + +export type CapabilityStatus = 'proven' | 'QUARANTINED_UPSTREAM'; + +export interface CapabilityEntry { + readonly id: string; + readonly status: CapabilityStatus; + readonly detail: string; +} + +export interface SessionBinding { + readonly principalId: string; + readonly resourceId: string; + readonly careSubjectId: string; + readonly mode: ControllerMode; + readonly threadId: string; + readonly scope: 'web' | 'background' | 'service-sim'; +} + +export type InProcessAguiBind = { + readonly kind: 'in-process-agui-bind'; + readonly basePath: '/api/copilotkit'; + readonly agentId: 'mantis-coordinator'; + readonly resourceId: string; + readonly threadId: string; + readonly handler: (request: Request) => Promise; +}; + +export interface PolicyInput { + readonly mode: ControllerMode; + readonly toolId: string; + readonly category: ToolCategory | 'unknown'; + readonly perToolDeny?: boolean; +} + +export type SpecialistId = + | 'care-source' + | 'observation-extractor' + | 'taxon-hypothesis' + | 'supply-transit' + | 'terrarium-diagnostician' + | 'evidence-curator' + | 'workflow-composer' + | 'tool-assessor' + | 'adversarial-reviewer'; diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/compatibility.test.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/compatibility.test.ts new file mode 100644 index 000000000..e1d01a596 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/compatibility.test.ts @@ -0,0 +1,212 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; + +import { loadLabJson, validateInstance } from '../src/contracts.ts'; +import { MantisController } from '../src/controller.ts'; +import { redactTracePayload } from '../src/mastra-adapter.ts'; + +const matrix = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/evals/compatibility-matrix.json', +) as { + cases: string[]; + network: boolean; + credentials: boolean; + lanes: { + prove: { + model: string; + provider: string; + credential: string; + network: boolean; + credentials: boolean; + openaiApiKey: boolean; + codexLogin: boolean; + cursorPlanTokens: boolean; + emptyWell: string; + inProcessBind: string; + }; + }; +}; + +test('compatibility matrix is the A0 required set', () => { + assert.deepEqual(matrix.cases, [ + 'agui-streaming-reconnect', + 'controller-modes-isolated-sessions', + 'resource-thread-binding', + 'mode-tool-deny-precedence', + 'stale-approval-after-restart', + 'constrained-subagent-boundary', + 'thread-om-privacy-filter', + 'dynamic-workflow-registration-version', + 'workflow-suspend-resume', + 'durable-reconnect-readonly', + 'trace-redaction-run-correlation', + 'deterministic-eval-invocation', + 'in-process-agui-bind', + 'openrouter-generate', + ]); +}); + +test('compatibility matrix proves live OpenRouter DeepSeek, not a fake model', () => { + assert.equal(matrix.network, true); + assert.equal(matrix.credentials, true); + assert.deepEqual(matrix.lanes.prove, { + model: 'openrouter/deepseek/deepseek-v4-flash-0731', + provider: 'mastra openrouter gateway', + credential: 'OPENROUTER_API_KEY', + network: true, + credentials: true, + openaiApiKey: false, + codexLogin: false, + cursorPlanTokens: false, + emptyWell: 'OPENROUTER_CREDENTIAL_REQUIRED', + inProcessBind: 'MastraAgent.getLocalAgents into CopilotRuntime, no runtimeUrl', + }); +}); + +test('compatibility matrix against pinned Mastra', { timeout: 60_000 }, async (t) => { + const controller = await MantisController.createFixture(); + t.after(() => controller.destroy()); + + const care = controller.bindSession({ + principalId: 'principal.fixture.care-space-01', + careSubjectId: 'care.fixture-cup-01', + mode: 'care', + conversationId: 'conversation-01', + }); + const sim = controller.bindSession({ + principalId: 'principal.fixture.care-space-01', + careSubjectId: 'care.fixture-cup-01', + mode: 'service-sim', + conversationId: 'sim-01', + scope: 'service-sim', + }); + + await t.test('controller-modes-isolated-sessions', async () => { + const careSession = await controller.createMastraSession(care); + const simSession = await controller.createMastraSession(sim); + assert.notEqual(careSession, simSession); + const mode = await controller.applyMode(care, 'observe'); + assert.equal(mode, 'observe'); + }); + + await t.test('resource-thread-binding', () => { + assert.equal(care.resourceId, 'principal.fixture.care-space-01'); + assert.equal(care.threadId, 'care:fixture-cup-01:conversation-01'); + assert.notEqual(care.threadId, sim.threadId); + assert.notEqual(care.scope, sim.scope); + }); + + await t.test('mode-tool-deny-precedence', async () => { + assert.equal(controller.resolveTool(care, 'device-command'), 'deny'); + await assert.rejects( + () => controller.applyToolPolicy(care, 'device-command', 'allow'), + /cannot widen/, + ); + }); + + await t.test('stale-approval-after-restart', async () => { + controller.approveTool('live-session', 'approve'); + await controller.restart(care); + assert.equal(controller.approvalSurvivesRestart('live-session'), false); + }); + + await t.test('constrained-subagent-boundary', () => { + controller.delegate('care-source', false); + assert.throws(() => controller.delegate('adversarial-reviewer', true)); + }); + + await t.test('thread-om-privacy-filter', () => { + const om = controller.observeThread( + care.threadId, + 'Ship to 10 Oak Avenue. EXIF 37.7749,-122.4194 Bearer fixture-token', + ); + assert.equal(om.recordClass, 'assistant-memory'); + assert.equal(om.text.includes('Oak Avenue'), false); + assert.equal(om.text.includes('37.7749'), false); + const live = controller.capabilities.find( + (entry) => entry.id === 'thread-om-live-observer-reflector', + ); + assert.equal(live?.status, 'QUARANTINED_UPSTREAM'); + assert.ok((live?.detail ?? '').length > 0); + }); + + await t.test('dynamic-workflow-registration-version', async () => { + const capability = controller.capabilities.find( + (entry) => entry.id === 'dynamic-workflow-registration', + ); + if (capability?.status === 'QUARANTINED_UPSTREAM') { + assert.ok(capability.detail.length > 0); + return; + } + const workflow = await controller.registerWorkflow({ + id: 'wf.research-summary-run', + description: 'versioned fixture', + inputSchema: { + type: 'object', + properties: { topic: { type: 'string' } }, + required: ['topic'], + }, + outputSchema: { + type: 'object', + properties: { summary: { type: 'string' } }, + required: ['summary'], + }, + graph: [{ type: 'tool', id: 'lookup', toolId: 'care-source-read' }], + }); + assert.ok(workflow); + await assert.rejects( + () => + controller.registerWorkflow({ + id: 'wf.bad', + description: 'prohibited', + inputSchema: { type: 'object' }, + outputSchema: { type: 'object' }, + graph: [{ type: 'tool', id: 'x', toolId: 'device-command' }], + }), + /prohibited primitive/, + ); + }); + + await t.test('workflow-suspend-resume', async () => { + const { suspended, resumed } = await controller.suspendResume(); + assert.equal(suspended.status, 'suspended'); + assert.equal(resumed.status, 'success'); + }); + + await t.test('durable-reconnect-readonly', async () => { + const result = await controller.durableReconnect(); + assert.equal(result.duplicated, false); + assert.equal(result.externalEffectCount, 0); + if (result.status === 'QUARANTINED_UPSTREAM') { + assert.ok(result.detail.length > 0); + } else { + assert.ok(result.chunkCount > 0); + } + const receipt = loadLabJson( + 'assistant/fixtures/corpus/positive/workflow-run-receipt.json', + ); + const valid = validateInstance( + 'assistant/contracts/workflow-run-receipt.schema.json', + receipt, + ); + assert.equal(valid.valid, true); + }); + + await t.test('trace-redaction-run-correlation', () => { + const redacted = redactTracePayload({ + authorization: 'Bearer fixture-token', + address: '123 Maple Street', + note: 'ok', + }) as Record; + const blob = JSON.stringify(redacted); + assert.equal(blob.includes('Bearer fixture-token'), false); + assert.equal(blob.includes('123 Maple Street'), false); + const receipt = controller.emitRunReceipt(care, 'run.fixture-a0-01'); + assert.equal(receipt.versions.mastraCore.length > 0, true); + const receiptValid = validateInstance( + 'assistant/contracts/assistant-run.schema.json', + receipt, + ); + assert.equal(receiptValid.valid, true, receiptValid.errors.join('; ')); + }); +}); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/contracts.test.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/contracts.test.ts new file mode 100644 index 000000000..c15aeff36 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/contracts.test.ts @@ -0,0 +1,169 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import test from 'node:test'; + +import { PINS } from '../src/pins.ts'; +import { effectPin } from '../src/effect-pin.ts'; +import { loadCorpus, loadRegistry, validateInstance, loadLabJson } from '../src/contracts.ts'; +import type { + ActuationCommand, + ActuationIntent, + ActuationReceipt, + CareSubject, + Observation, +} from '../src/contract-types.ts'; + +test('pinned Effect package loads', () => { + assert.equal(effectPin, true); +}); + +test('package.json pins match PINS', () => { + const pkg = JSON.parse( + readFileSync(new URL('../package.json', import.meta.url), 'utf8'), + ) as { + dependencies: Record; + devDependencies: Record; + packageManager: string; + }; + assert.equal(pkg.dependencies['@mastra/core'], PINS.mastraCore); + assert.equal(pkg.dependencies['@mastra/core'], '1.61.0'); + assert.equal(pkg.dependencies['@mastra/code-sdk'], undefined); + assert.equal(pkg.dependencies['@mastra/client-js'], PINS.mastraClientJs); + assert.equal(pkg.dependencies['@mastra/memory'], PINS.mastraMemory); + assert.equal(pkg.dependencies['@mastra/observability'], PINS.mastraObservability); + assert.equal(pkg.dependencies['@mastra/evals'], PINS.mastraEvals); + assert.equal(pkg.dependencies['@mastra/libsql'], PINS.mastraLibsql); + assert.equal(pkg.dependencies['@copilotkit/runtime'], PINS.copilotkitRuntime); + assert.equal(pkg.dependencies['@copilotkit/shared'], PINS.copilotkitShared); + assert.equal(pkg.dependencies['@ag-ui/mastra'], PINS.aguiMastra); + assert.equal(pkg.dependencies['@ag-ui/core'], PINS.aguiCore); + assert.equal(pkg.dependencies['@ag-ui/client'], PINS.aguiClient); + assert.equal(pkg.dependencies.effect, PINS.effect); + assert.equal(pkg.dependencies.ajv, PINS.ajv); + assert.equal(pkg.dependencies.zod, PINS.zod); + assert.equal(pkg.devDependencies.typescript, PINS.typescript); + assert.equal(pkg.packageManager, PINS.packageManager); +}); + +test('installed package versions match the lock pins', () => { + const installed = (name: string) => + ( + JSON.parse( + readFileSync( + new URL(`../node_modules/${name}/package.json`, import.meta.url), + 'utf8', + ), + ) as { version: string } + ).version; + assert.equal(installed('@mastra/core'), PINS.mastraCore); + assert.equal(installed('@mastra/memory'), PINS.mastraMemory); + assert.equal(installed('@mastra/observability'), PINS.mastraObservability); + assert.equal(installed('@mastra/evals'), PINS.mastraEvals); + assert.equal(installed('@mastra/client-js'), PINS.mastraClientJs); + assert.equal(installed('@mastra/libsql'), PINS.mastraLibsql); + assert.equal(installed('@copilotkit/runtime'), PINS.copilotkitRuntime); + assert.equal(installed('@copilotkit/shared'), PINS.copilotkitShared); + assert.equal(installed('@ag-ui/mastra'), PINS.aguiMastra); + assert.equal(installed('@ag-ui/client'), PINS.aguiClient); + assert.equal(installed('effect'), PINS.effect); +}); + +test('contract registry lists every A0 kind', () => { + const registry = loadRegistry(); + const kinds = new Set(registry.schemas.map((schema) => schema.kind)); + for (const kind of [ + 'CareSubject', + 'Observation', + 'Interpretation', + 'CareEvent', + 'CareAdvice', + 'AssistantRun', + 'ToolAssayRecord', + 'ToolAdmission', + 'DynamicWorkflowDefinition', + 'WorkflowAdmission', + 'WorkflowRunReceipt', + 'ActuationIntent', + 'ActuationCommand', + 'ActuationReceipt', + ]) { + assert.ok(kinds.has(kind), kind); + } +}); + +test('Draft 2020-12 corpus matches expect pass/fail', () => { + const corpus = loadCorpus(); + assert.ok(corpus.cases.length >= 14); + for (const entry of corpus.cases) { + const instance = loadLabJson(entry.instance); + const result = validateInstance(entry.schema, instance); + if (entry.expect === 'pass') { + assert.equal(result.valid, true, `${entry.id}: ${result.errors.join('; ')}`); + } else { + assert.equal(result.valid, false, `${entry.id} should fail`); + } + } +}); + +test('actuation types remain distinct', () => { + const intent = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-intent.json', + ) as ActuationIntent; + const command = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-command.json', + ) as ActuationCommand; + const receipt = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/actuation-receipt.json', + ) as ActuationReceipt; + assert.equal(intent.kind, 'ActuationIntent'); + assert.equal(intent.executable, false); + assert.equal(command.kind, 'ActuationCommand'); + assert.equal(command.executable, true); + assert.notEqual(command.issuer, 'assistant'); + assert.equal(receipt.kind, 'ActuationReceipt'); +}); + +test('generated CareSubject and Observation types stay distinct', () => { + const subject = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/care-subject.json', + ) as CareSubject; + const observation = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/observation.json', + ) as Observation; + assert.equal(subject.catalogSpecimen, false); + assert.equal(observation.recordClass, 'observation'); + assert.notEqual(subject.kind, observation.kind); +}); + +test('tool assay and admission fixtures validate', () => { + const assay = validateInstance( + 'assistant/contracts/tool-assay-record.schema.json', + loadLabJson('assistant/tools/assays/care-source-read.json'), + ); + assert.equal(assay.valid, true, assay.errors.join('; ')); + const admission = validateInstance( + 'assistant/contracts/tool-admission.schema.json', + loadLabJson('assistant/tools/admissions/care-source-read.json'), + ); + assert.equal(admission.valid, true, admission.errors.join('; ')); + const assayDoc = loadLabJson('assistant/tools/admissions/care-source-read.json') as { + assessor: string; + reviewer: string; + }; + assert.notEqual(assayDoc.assessor, assayDoc.reviewer); +}); + +test('workflow fixtures validate', () => { + const definition = validateInstance( + 'assistant/contracts/dynamic-workflow-definition.schema.json', + loadLabJson('assistant/workflows/definitions/research-summary.v1.json'), + ); + assert.equal(definition.valid, true, definition.errors.join('; ')); +}); + +test('assistant-run memory class is assistant-memory', () => { + const run = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/corpus/positive/assistant-run.json', + ) as { memoryRecordClass: string }; + assert.equal(run.memoryRecordClass, 'assistant-memory'); +}); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/isolation.test.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/isolation.test.ts new file mode 100644 index 000000000..0e631798b --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/isolation.test.ts @@ -0,0 +1,34 @@ +import assert from 'node:assert/strict'; +import { readdirSync, readFileSync } from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import test from 'node:test'; + +import { usedBetaImportPaths } from '../src/mastra-adapter.ts'; + +const srcRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../src'); + +const walk = (dir: string): string[] => + readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { + const full = path.join(dir, entry.name); + return entry.isDirectory() ? walk(full) : [full]; + }); + +test('beta Mastra/AG-UI/CopilotKit imports stay in mastra-adapter.ts', () => { + const banned = [/@mastra\//, /@ag-ui\//, /@copilotkit\//]; + for (const file of walk(srcRoot)) { + if (file.endsWith('mastra-adapter.ts')) continue; + const source = readFileSync(file, 'utf8'); + for (const pattern of banned) { + assert.equal( + pattern.test(source), + false, + `${path.relative(srcRoot, file)} imports ${pattern}`, + ); + } + } + assert.ok(usedBetaImportPaths.includes('@mastra/core/agent-controller')); + assert.ok(usedBetaImportPaths.includes('@mastra/observability')); + assert.ok(usedBetaImportPaths.includes('@ag-ui/mastra/copilotkit')); + assert.ok(usedBetaImportPaths.includes('@copilotkit/runtime/v2')); +}); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/live-openrouter.test.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/live-openrouter.test.ts new file mode 100644 index 000000000..3225806a2 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/live-openrouter.test.ts @@ -0,0 +1,128 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; + +import { FakeClock } from '../src/clock.ts'; +import { loadLabJson, validateInstance } from '../src/contracts.ts'; +import { MantisController } from '../src/controller.ts'; +import { + FAKE_MODEL_TEXT, + authenticatedInProcessAguiRoundTrip, + collectOpenRouterProof, + createAdapterHarness, + createLiveOpenRouterLane, + liveOpenRouterLaneIdentity, +} from '../src/mastra-adapter.ts'; +import { PINS } from '../src/pins.ts'; +import type { SessionBinding } from '../src/types.ts'; + +test('live lane is the Mastra OpenRouter DeepSeek model-router string', () => { + const identity = liveOpenRouterLaneIdentity(createLiveOpenRouterLane()); + assert.deepEqual(identity, { + kind: 'live-openrouter', + model: PINS.liveModel, + }); + assert.equal(PINS.liveModel, 'openrouter/deepseek/deepseek-v4-flash-0731'); +}); + +test( + 'OpenRouter DeepSeek generate and in-process AG-UI bind are the proof', + { timeout: 180_000 }, + async (t) => { + const harness = await createAdapterHarness(new FakeClock()); + t.after(() => harness.destroy()); + + const generated = await collectOpenRouterProof(harness.agent); + assert.notEqual(generated, FAKE_MODEL_TEXT); + assert.ok( + generated.includes('CareAdvice'), + JSON.stringify({ text: generated.slice(0, 400) }), + ); + + const binding: SessionBinding = { + principalId: 'principal.fixture.care-space-01', + resourceId: 'principal.fixture.care-space-01', + careSubjectId: 'care.fixture-cup-01', + mode: 'care', + threadId: 'care:fixture-cup-01:conversation-live-openrouter', + scope: 'web', + }; + const roundTrip = await authenticatedInProcessAguiRoundTrip(harness, binding); + assert.equal(roundTrip.unauthenticatedStatus, 401); + assert.equal('runtimeUrl' in roundTrip.bind, false); + assert.ok( + roundTrip.authenticatedText.includes('CareAdvice') && + !roundTrip.authenticatedText.includes(FAKE_MODEL_TEXT), + JSON.stringify({ + eventTypes: roundTrip.eventTypes, + text: roundTrip.authenticatedText.slice(0, 400), + }), + ); + }, +); + +test( + 'OpenRouter DeepSeek eval and AG-UI matrix cases are the proof', + { timeout: 300_000 }, + async (t) => { + const controller = await MantisController.create(); + t.after(() => controller.destroy()); + + const care = controller.bindSession({ + principalId: 'principal.fixture.care-space-01', + careSubjectId: 'care.fixture-cup-01', + mode: 'care', + conversationId: 'conversation-01', + }); + + const evalResult = await controller.evals(); + assert.equal( + evalResult.scores['check-includes'], + 1, + JSON.stringify({ scores: evalResult.scores, experiment: evalResult.experiment }), + ); + assert.equal(evalResult.scores['check-excludes'], 1); + + const roundTrip = await controller.aguiRoundTrip(); + assert.equal(roundTrip.unauthenticatedStatus, 401); + assert.ok( + roundTrip.authenticatedText.includes('CareAdvice') && + !roundTrip.authenticatedText.includes(FAKE_MODEL_TEXT), + JSON.stringify({ + eventTypes: roundTrip.eventTypes, + text: roundTrip.authenticatedText.slice(0, 400), + }), + ); + + const fixture = loadLabJson( + 'assistant/fixtures/agui/in-process-bind.json', + ) as { + kind: string; + basePath: string; + agentId: string; + unauthenticatedStatus: number; + }; + const inProcess = await controller.inProcessAguiRoundTrip(care); + const capability = controller.capabilities.find( + (entry) => entry.id === 'in-process-agui-bind', + ); + assert.equal(inProcess.unauthenticatedStatus, fixture.unauthenticatedStatus); + assert.equal(inProcess.infoStatus, 200); + assert.ok(inProcess.agentIds.includes(fixture.agentId)); + assert.equal(inProcess.agentIds.includes('device-command'), false); + assert.equal('runtimeUrl' in inProcess.bind, false); + assert.equal(capability?.status, 'proven'); + assert.ok( + inProcess.authenticatedText.includes('CareAdvice') && + !inProcess.authenticatedText.includes(FAKE_MODEL_TEXT), + JSON.stringify({ + authenticatedText: inProcess.authenticatedText.slice(0, 400), + eventTypes: inProcess.eventTypes, + }), + ); + const receiptValid = validateInstance( + 'assistant/contracts/assistant-run.schema.json', + controller.emitRunReceipt(care, 'run.fixture-a0-01'), + ); + assert.equal(receiptValid.valid, true, receiptValid.errors.join('; ')); + }, +); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/openrouter-gate.test.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/openrouter-gate.test.ts new file mode 100644 index 000000000..0fbfb53f5 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/openrouter-gate.test.ts @@ -0,0 +1,36 @@ +import assert from 'node:assert/strict'; +import { spawnSync } from 'node:child_process'; +import test from 'node:test'; +import { fileURLToPath } from 'node:url'; + +test('missing OPENROUTER_API_KEY fails closed and ignores OPENAI_API_KEY', () => { + const adapter = fileURLToPath(new URL('../src/mastra-adapter.ts', import.meta.url)); + const result = spawnSync( + process.execPath, + [ + '--experimental-strip-types', + '--input-type=module', + '-e', + `import { createLiveOpenRouterLane, OpenRouterGateError, OPENROUTER_CREDENTIAL_REQUIRED } from ${JSON.stringify(adapter)}; +try { + createLiveOpenRouterLane(); + process.exit(2); +} catch (error) { + process.exit( + error instanceof OpenRouterGateError && error.code === OPENROUTER_CREDENTIAL_REQUIRED + ? 0 + : 3, + ); +}`, + ], + { + env: { + ...process.env, + OPENROUTER_API_KEY: '', + OPENAI_API_KEY: 'sk-not-openrouter', + }, + encoding: 'utf8', + }, + ); + assert.equal(result.status, 0, result.stderr.slice(0, 400)); +}); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/policy.test.ts b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/policy.test.ts new file mode 100644 index 000000000..b9451b0a8 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/test/policy.test.ts @@ -0,0 +1,109 @@ +import assert from 'node:assert/strict'; +import test from 'node:test'; + +import { FailClosedError, MantisController } from '../src/controller.ts'; +import { canSwitchMode, resolveToolPolicy, loadToolPolicy } from '../src/policy.ts'; +import { containsForbiddenPrivacy, redactSensitive } from '../src/privacy.ts'; +import { loadLabJson, validateInstance } from '../src/contracts.ts'; + +test('unknown tools deny', () => { + const decision = resolveToolPolicy({ + mode: 'care', + toolId: 'never-assayed-tool', + category: 'unknown', + }); + assert.equal(decision, 'deny'); +}); + +test('device-command and admin are absolute deny in every mode', () => { + const policy = loadToolPolicy(); + for (const mode of Object.keys(policy.modes) as Array< + 'care' | 'observe' | 'research' | 'terrarium-read' | 'review' | 'service-sim' + >) { + assert.equal( + resolveToolPolicy({ mode, toolId: 'device-command', category: 'device-command' }), + 'deny', + ); + assert.equal(resolveToolPolicy({ mode, toolId: 'admin', category: 'admin' }), 'deny'); + } +}); + +test('mode allow does not override per-tool deny', () => { + assert.equal( + resolveToolPolicy({ + mode: 'care', + toolId: 'care-source-read', + category: 'read-public', + perToolDeny: true, + }), + 'deny', + ); +}); + +test('care mode allows read-public and asks external-write', () => { + assert.equal( + resolveToolPolicy({ mode: 'care', toolId: 'care-source-read', category: 'read-public' }), + 'allow', + ); + assert.equal( + resolveToolPolicy({ mode: 'care', toolId: 'purchase', category: 'external-write' }), + 'ask', + ); +}); + +test('client cannot elevate mode without host policy', () => { + assert.equal(canSwitchMode('care', 'review', false), false); + assert.equal(canSwitchMode('care', 'review', true), true); + assert.equal(canSwitchMode('review', 'care', false), true); +}); + +test('privacy processor strips address, EXIF, and tokens', () => { + const fixture = loadLabJson( + 'projects/biomemetics/labs/mantis/assistant/fixtures/privacy/address-exif.json', + ) as { input: { text: string }; mustNotAppearAfterRedaction: string[] }; + const redacted = redactSensitive(fixture.input.text); + assert.equal(containsForbiddenPrivacy(redacted, fixture.mustNotAppearAfterRedaction), false); + assert.ok(redacted.includes('[redacted-address]')); +}); + +test('MantisController fail-closed guards', async () => { + const controller = await MantisController.createFixture(); + try { + const binding = controller.bindSession({ + principalId: 'principal.fixture.care-space-01', + careSubjectId: 'care.fixture-cup-01', + mode: 'care', + conversationId: 'conversation-01', + }); + assert.throws( + () => controller.assertBoundResource(binding, 'someone-else'), + FailClosedError, + ); + assert.throws(() => controller.assertBoundMode(binding, 'review'), FailClosedError); + assert.throws(() => controller.switchMode(binding, 'review', false), FailClosedError); + assert.equal(controller.resolveTool(binding, 'device-command'), 'deny'); + assert.equal(controller.resolveTool(binding, 'unknown-mcp-tool'), 'deny'); + assert.throws(() => controller.refuseActuationCommand('llm'), FailClosedError); + assert.throws(() => controller.delegate('care-source', true), /forked/); + controller.approveTool('session-1', 'approve'); + assert.equal(controller.approvalSurvivesRestart('session-1'), true); + controller.clearApprovalsOnRestart(); + assert.equal(controller.approvalSurvivesRestart('session-1'), false); + const om = controller.observeThread( + binding.threadId, + 'User lives at 123 Maple Street and token sk-live-fixture-not-a-secret', + ); + assert.equal(om.recordClass, 'assistant-memory'); + assert.equal(om.text.includes('123 Maple Street'), false); + const receipt = controller.emitRunReceipt(binding, 'run.fixture-a0-01'); + assert.equal(receipt.memoryRecordClass, 'assistant-memory'); + assert.equal(receipt.versions.mastraCore, '1.61.0'); + const valid = validateInstance( + 'assistant/contracts/assistant-run.schema.json', + receipt, + ); + assert.equal(valid.valid, true, valid.errors.join('; ')); + } finally { + await controller.destroy(); + } +}); diff --git a/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/tsconfig.json b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/tsconfig.json new file mode 100644 index 000000000..3eb2de663 --- /dev/null +++ b/projects/biomemetics/labs/mantis/tooling/typescript/mantis-assistant/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2024", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "esModuleInterop": true, + "strict": true, + "exactOptionalPropertyTypes": true, + "noUncheckedIndexedAccess": true, + "verbatimModuleSyntax": true, + "allowImportingTsExtensions": true, + "noEmit": true, + "rootDir": ".", + "skipLibCheck": true + }, + "include": ["src/**/*.ts", "test/**/*.ts"] +}