@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.
- package/README.md +19 -8
- package/dist/__tests__/jobs-tools.test.js +230 -0
- package/dist/__tests__/jobs-tools.test.js.map +1 -1
- package/dist/__tests__/middleware-service-client.test.js +83 -0
- package/dist/__tests__/middleware-service-client.test.js.map +1 -1
- package/dist/bootstrap.js +10 -0
- package/dist/bootstrap.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib.js +1 -1
- package/dist/middleware-service-client.d.ts +67 -0
- package/dist/middleware-service-client.d.ts.map +1 -1
- package/dist/middleware-service-client.js +20 -0
- package/dist/middleware-service-client.js.map +1 -1
- package/dist/prompts/build-rpa.d.ts.map +1 -1
- package/dist/prompts/build-rpa.js +6 -1
- package/dist/prompts/build-rpa.js.map +1 -1
- package/dist/prompts/nestjs-to-job.js +3 -3
- package/dist/prompts/nestjs-to-job.js.map +1 -1
- package/dist/server-surface.d.ts.map +1 -1
- package/dist/server-surface.js +4 -0
- package/dist/server-surface.js.map +1 -1
- package/dist/sync.js +7 -3
- package/dist/sync.js.map +1 -1
- package/dist/tools/jobs.d.ts.map +1 -1
- package/dist/tools/jobs.js +129 -11
- package/dist/tools/jobs.js.map +1 -1
- package/dist/tools/vm-rpa.js +3 -3
- package/dist/tools/vm-rpa.js.map +1 -1
- package/package.json +1 -1
- package/skills/general/job-build-loop.md +35 -3
- package/skills/general/nestjs-middleware-to-job.md +7 -4
|
@@ -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`.
|
|
75
|
-
|
|
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
|
|