Add simulation test batch creation and material package upload

Support the release loop against Seal simulation batches:
- simulation create (hosecloud specified single-number and material_pack
  modes; other collection modes reserved via rawParams passthrough)
- simulation list/get/templates/integrations/package-upload
- schema modeling from captured staging traffic, mode-scoped request params
- new MCP tools and OpenAPI paths; bump version to 0.6.0

Tests: bun run check, bun test (114 pass).
This commit is contained in:
gitea committed 2026-08-24 18:10:05 +08:00
1 parent 39de757042
commit 0e52a295ba
13 files changed
+1883 -17

No files matched your search

+211
View File
@@ -2202,6 +2202,107 @@
}
}
},
"/v1/simulation/create-batch": {
"post": {
"tags": [
"Simulation"
],
"operationId": "createSimulationBatch",
"summary": "Create a simulation batch",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
},
"responses": {
"200": {
"description": "Created batch id.",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
},
"/v1/simulation/batches": {
"get": {
"tags": [
"Simulation"
],
"operationId": "listSimulationBatches",
"summary": "List simulation batches",
"parameters": [
{
"name": "limit",
"in": "query",
"schema": {
"type": "integer"
},
"description": "Max batches to return."
}
],
"responses": {
"200": {
"description": "Simulation batches.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
},
"/v1/simulation/batch/{batchId}": {
"parameters": [
{
"name": "batchId",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Simulation batch ID."
}
],
"get": {
"tags": [
"Simulation"
],
"operationId": "getSimulationBatch",
"summary": "Get a simulation batch detail including echoed create params",
"responses": {
"200": {
"description": "Simulation batch detail.",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
},
"/v1/simulation/batches/{batchId}/records": {
"parameters": [
{
@@ -2244,6 +2345,116 @@
}
}
}
},
"/v1/simulation/templates": {
"get": {
"tags": [
"Simulation"
],
"operationId": "listSimulationTemplates",
"summary": "List simulation test templates",
"responses": {
"200": {
"description": "Simulation templates.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
},
"/v1/simulation/integration-status": {
"get": {
"tags": [
"Simulation"
],
"operationId": "getSimulationIntegrationStatus",
"summary": "Get available source integration status for simulation",
"responses": {
"200": {
"description": "Integration status.",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
},
"/v1/simulation/hosecloud-integrations": {
"get": {
"tags": [
"Simulation"
],
"operationId": "listSimulationHosecloudIntegrations",
"summary": "List hosecloud source integrations available for simulation",
"responses": {
"200": {
"description": "Hosecloud integrations.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
},
"/v1/material-packages/upload": {
"post": {
"tags": [
"Simulation"
],
"operationId": "uploadMaterialPackage",
"summary": "Upload a material package ZIP for simulation",
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"file": {
"type": "string",
"format": "binary"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Parsed material package with schema config.",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
},
"components": {