@minicor/mcp-server 4.3.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: nestjs-middleware-to-job
3
- description: Turn an existing NestJS customer middleware endpoint (a controller that orchestrates Minicor workflows) into a Job — a structured JobDefinition step graph registered via register_job, with test cases as the green-gate. Use when migrating customers/middlewares/* controllers onto the Jobs layer.
3
+ description: Turn an existing NestJS customer middleware endpoint (a controller that orchestrates Minicor workflows) into a Job — a structured JobDefinition step graph registered via register_job, with test cases (sample inputs tagged into scenarios) as the green-gate. Use when migrating customers/middlewares/* controllers onto the Jobs layer.
4
4
  category: task
5
5
  tags: [jobs, middleware, nestjs, migration, testing, register_job]
6
6
  priority: 80
@@ -66,13 +66,16 @@ the controller's `WORKFLOW_IDS` constants.
66
66
  4. Build the step graph per the table. Login/smart-launch → a `cache`d workflow step. Each
67
67
  downstream workflow → a workflow step with templated `input`. Munging → the `output` block.
68
68
  5. **Define the green-gate FIRST**: `add_test_case` with a representative (test-only) input and
69
- assertions over the expected output, e.g. `output.web_agent_video_url != null`.
69
+ assertions over the expected output, e.g. `output.web_agent_video_url != null`. Tag each case
70
+ into a scenario (`scenario:<slug>`, named after the path/outcome — one per distinct path the
71
+ endpoint can take); cases in a scenario share identical assertions, one sample input each.
70
72
  6. `register_job(workspaceId, middlewareId, path, definition)` (create a router first with
71
73
  `create_router` if needed).
72
74
  7. `run_job` with the test input; inspect the JobExecution — each workflow step carries
73
75
  `workflowExecutionId` + `region` to deep-link the real Minicor run.
74
- 8. **Green-gate**: `run_tests` until `green: true`. Drill into failures → job execution → step →
75
- Minicor run; fix with `update_job` and re-run.
76
+ 8. **Green-gate**: `run_tests` until `green: true`. Read results per-scenario (group cases by
77
+ their `scenario:` tag; a scenario is green only when all its samples pass). Drill into
78
+ failures → job execution → step → Minicor run; fix with `update_job` and re-run.
76
79
 
77
80
  ## Rules
78
81