@stackwright-pro/mcp 0.2.0-alpha.117 → 0.2.0-alpha.118
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/dist/integrity.js +1 -1
- package/dist/integrity.js.map +1 -1
- package/dist/integrity.mjs +1 -1
- package/dist/integrity.mjs.map +1 -1
- package/dist/pipeline-constants.d.mts +7 -1
- package/dist/pipeline-constants.d.ts +7 -1
- package/dist/pipeline-constants.js +3 -0
- package/dist/pipeline-constants.js.map +1 -1
- package/dist/pipeline-constants.mjs +2 -0
- package/dist/pipeline-constants.mjs.map +1 -1
- package/dist/server.js +25 -5
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +25 -5
- package/dist/server.mjs.map +1 -1
- package/package.json +5 -5
package/dist/server.mjs
CHANGED
|
@@ -4355,6 +4355,12 @@ function handleWritePhaseQuestions(input) {
|
|
|
4355
4355
|
isError: true
|
|
4356
4356
|
};
|
|
4357
4357
|
}
|
|
4358
|
+
if (AUTO_EXECUTE_PHASES.has(phase)) {
|
|
4359
|
+
return {
|
|
4360
|
+
text: JSON.stringify({ success: true, phase, questionCount: 0, autoExecute: true }),
|
|
4361
|
+
isError: false
|
|
4362
|
+
};
|
|
4363
|
+
}
|
|
4358
4364
|
try {
|
|
4359
4365
|
const questions = parseLLMQuestionsResponse(responseText);
|
|
4360
4366
|
let requiredPackages = {
|
|
@@ -7137,7 +7143,7 @@ var _checksums = /* @__PURE__ */ new Map([
|
|
|
7137
7143
|
],
|
|
7138
7144
|
[
|
|
7139
7145
|
"stackwright-pro-form-wizard-otter.json",
|
|
7140
|
-
"
|
|
7146
|
+
"7d958f2873cb80955ba5453837b67bee427f8399868979f59fecebe380a35ab9"
|
|
7141
7147
|
],
|
|
7142
7148
|
[
|
|
7143
7149
|
"stackwright-pro-geo-otter.json",
|
|
@@ -8376,10 +8382,20 @@ var WriteWorkflowContainerPageInputSchema = z21.object({
|
|
|
8376
8382
|
* Union of required roles across all steps in the workflow YAML.
|
|
8377
8383
|
* Consumed by auth-reconcile to build protectedRoutes.
|
|
8378
8384
|
* Must be non-empty — workflow pages are always auth-protected.
|
|
8385
|
+
*
|
|
8386
|
+
* ⚠️ MUST be a JSON array of strings: ["ROLE_A", "ROLE_B"].
|
|
8387
|
+
* Do NOT pass a YAML bracket string "[ROLE_A, ROLE_B]",
|
|
8388
|
+
* a JSON-encoded string "[\"ROLE_A\", \"ROLE_B\"]",
|
|
8389
|
+
* or a comma-separated string "ROLE_A,ROLE_B" — all are rejected.
|
|
8390
|
+
*
|
|
8391
|
+
* Regression guard (swp-zfa9): 3-of-4 workflow-otter fan-outs crashed on
|
|
8392
|
+
* runs 12-15 because the LLM passed a JSON-encoded string instead of an array.
|
|
8379
8393
|
*/
|
|
8380
8394
|
requiredRoles: z21.array(z21.string().min(1)).min(1, {
|
|
8381
|
-
message:
|
|
8382
|
-
})
|
|
8395
|
+
message: 'requiredRoles must have at least one role \u2014 workflow pages are always auth-protected. Pass a JSON array: ["ROLE_A", "ROLE_B"] \u2014 NOT a string or CSV.'
|
|
8396
|
+
}).describe(
|
|
8397
|
+
'JSON array of role strings. Example: ["ESF8_COORDINATOR", "HOSPITAL_EM"]. Must be a real JSON array \u2014 NOT a stringified array, YAML bracket sequence, or CSV string.'
|
|
8398
|
+
),
|
|
8383
8399
|
/**
|
|
8384
8400
|
* Persistence key for workflow state (localStorage slot).
|
|
8385
8401
|
* Defaults to `workflow-<workflowId>` when omitted.
|
|
@@ -8473,7 +8489,11 @@ function registerWriteWorkflowContainerPageTool(server2) {
|
|
|
8473
8489
|
" - meta.authRequired: true, meta.requiredRoles: <your input>",
|
|
8474
8490
|
" - One workflow_wizard content item binding workflowFile + workflowId",
|
|
8475
8491
|
"",
|
|
8476
|
-
"requiredRoles:
|
|
8492
|
+
"requiredRoles: MUST be a JSON array of strings (the union of all step auth.required_roles).",
|
|
8493
|
+
' CORRECT: ["ESF8_COORDINATOR", "HOSPITAL_EM", "EMS_DISPATCHER"]',
|
|
8494
|
+
' WRONG: "[\\"ESF8_COORDINATOR\\", \\"HOSPITAL_EM\\"]" (string containing JSON)',
|
|
8495
|
+
' WRONG: "ESF8_COORDINATOR,HOSPITAL_EM" (comma-separated string)',
|
|
8496
|
+
' WRONG: "[ESF8_COORDINATOR, HOSPITAL_EM]" (YAML bracket notation)',
|
|
8477
8497
|
'pageSlug: convention is "workflows/<workflowId>" \u2014 must start with "workflows/".'
|
|
8478
8498
|
].join("\n"),
|
|
8479
8499
|
WriteWorkflowContainerPageInputSchema.shape,
|
|
@@ -9643,7 +9663,7 @@ var package_default = {
|
|
|
9643
9663
|
"test:coverage": "vitest run --coverage"
|
|
9644
9664
|
},
|
|
9645
9665
|
name: "@stackwright-pro/mcp",
|
|
9646
|
-
version: "0.2.0-alpha.
|
|
9666
|
+
version: "0.2.0-alpha.118",
|
|
9647
9667
|
description: "MCP tools for Stackwright Pro - Data Explorer, Security, ISR, and Dashboard generation",
|
|
9648
9668
|
license: "SEE LICENSE IN LICENSE",
|
|
9649
9669
|
main: "./dist/server.js",
|