@stackwright-pro/mcp 0.2.0-alpha.10 → 0.2.0-alpha.13
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/server.js +26 -10
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +26 -10
- package/dist/server.mjs.map +1 -1
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -810,17 +810,25 @@ function registerPackageTools(server2) {
|
|
|
810
810
|
"Ensures pro packages are present in a project's package.json. Safe to call multiple times \u2014 never overwrites existing version pins. Use this to bootstrap dependencies before specialist otters run. Pass includeBaseline: true to automatically include all required @stackwright-pro/* baseline dependencies. Safe to call on existing projects \u2014 never overwrites pinned versions.",
|
|
811
811
|
{
|
|
812
812
|
// FIX 3 (B-new-1): Zod v4 requires two-arg z.record(keySchema, valueSchema)
|
|
813
|
-
packages: z6.record(z6.string(), z6.string()).describe(
|
|
814
|
-
'Dependencies to add. Record<packageName, version>. e.g. { "@stackwright-pro/auth": "latest" }'
|
|
813
|
+
packages: z6.record(z6.string(), z6.string()).optional().default({}).describe(
|
|
814
|
+
'Dependencies to add. Record<packageName, version>. e.g. { "@stackwright-pro/auth": "latest" }. Omit or pass {} when using includeBaseline: true.'
|
|
815
815
|
),
|
|
816
816
|
devPackages: z6.record(z6.string(), z6.string()).optional().describe("devDependencies to add. Same format as packages."),
|
|
817
817
|
scripts: z6.record(z6.string(), z6.string()).optional().describe("npm scripts to add. Only adds if key does not already exist."),
|
|
818
818
|
targetDir: z6.string().optional().describe(
|
|
819
819
|
"Project directory containing package.json. Defaults to process.cwd(). Must be an absolute path within the current working directory."
|
|
820
820
|
),
|
|
821
|
-
runInstall: z6.
|
|
822
|
-
|
|
823
|
-
|
|
821
|
+
runInstall: z6.preprocess(
|
|
822
|
+
(v) => v === "true" ? true : v === "false" ? false : v,
|
|
823
|
+
z6.boolean().optional().default(true)
|
|
824
|
+
).describe(
|
|
825
|
+
"Run pnpm install after writing package.json. Defaults to true. Pass boolean true/false."
|
|
826
|
+
),
|
|
827
|
+
includeBaseline: z6.preprocess(
|
|
828
|
+
(v) => v === "true" ? true : v === "false" ? false : v,
|
|
829
|
+
z6.boolean().optional().default(false)
|
|
830
|
+
).describe(
|
|
831
|
+
"When true, automatically merges BASELINE_DEPS and BASELINE_DEV_DEPS before applying packages/devPackages args. Safe to call on existing projects \u2014 never overwrites pinned versions. Pass boolean true/false."
|
|
824
832
|
)
|
|
825
833
|
},
|
|
826
834
|
async ({ packages, devPackages, scripts, targetDir, runInstall, includeBaseline }) => {
|
|
@@ -1278,7 +1286,7 @@ function registerQuestionTools(server2) {
|
|
|
1278
1286
|
questions: z7.array(ManifestQuestionSchema).optional().describe(
|
|
1279
1287
|
"Questions in Question Manifest format. If omitted, questions are read from .stackwright/question-manifest.json using the phase name."
|
|
1280
1288
|
),
|
|
1281
|
-
answers: z7.record(z7.union([z7.string(), z7.array(z7.string()), z7.boolean()])).optional().describe("Previously collected answers used to resolve dependsOn conditions")
|
|
1289
|
+
answers: z7.record(z7.string(), z7.union([z7.string(), z7.array(z7.string()), z7.boolean()])).optional().describe("Previously collected answers used to resolve dependsOn conditions")
|
|
1282
1290
|
},
|
|
1283
1291
|
async ({ phase, questions, answers }) => {
|
|
1284
1292
|
let resolvedQuestions;
|
|
@@ -2104,9 +2112,17 @@ function registerPipelineTools(server2) {
|
|
|
2104
2112
|
{
|
|
2105
2113
|
phase: z9.string().optional().describe('Phase to update, e.g. "designer"'),
|
|
2106
2114
|
field: z9.enum(["questionsCollected", "answered", "executed", "artifactWritten"]).optional().describe("Boolean field to set"),
|
|
2107
|
-
value: z9.
|
|
2115
|
+
value: z9.preprocess(
|
|
2116
|
+
(v) => v === "true" ? true : v === "false" ? false : v,
|
|
2117
|
+
z9.boolean().optional()
|
|
2118
|
+
).describe(
|
|
2119
|
+
'Value for the field \u2014 must be a JSON boolean (true/false), NOT the string "true"/"false"'
|
|
2120
|
+
),
|
|
2108
2121
|
status: z9.enum(["setup", "questions", "execution", "done"]).optional().describe("Top-level status override"),
|
|
2109
|
-
incrementRetry: z9.
|
|
2122
|
+
incrementRetry: z9.preprocess(
|
|
2123
|
+
(v) => v === "true" ? true : v === "false" ? false : v,
|
|
2124
|
+
z9.boolean().optional()
|
|
2125
|
+
).describe("Bump retryCount by 1 \u2014 must be a JSON boolean")
|
|
2110
2126
|
},
|
|
2111
2127
|
async (args) => res(
|
|
2112
2128
|
handleSetPipelineState({
|
|
@@ -2826,7 +2842,7 @@ var _checksums = /* @__PURE__ */ new Map([
|
|
|
2826
2842
|
],
|
|
2827
2843
|
[
|
|
2828
2844
|
"stackwright-pro-foreman-otter.json",
|
|
2829
|
-
"
|
|
2845
|
+
"f52264c1f6297b72f3da6d92d41b6d63356db776242caeab25571e6a8df628e4"
|
|
2830
2846
|
],
|
|
2831
2847
|
[
|
|
2832
2848
|
"stackwright-pro-page-otter.json",
|
|
@@ -3444,7 +3460,7 @@ var package_default = {
|
|
|
3444
3460
|
"test:coverage": "vitest run --coverage"
|
|
3445
3461
|
},
|
|
3446
3462
|
name: "@stackwright-pro/mcp",
|
|
3447
|
-
version: "0.2.0-alpha.
|
|
3463
|
+
version: "0.2.0-alpha.13",
|
|
3448
3464
|
description: "MCP tools for Stackwright Pro - Data Explorer, Security, ISR, and Dashboard generation",
|
|
3449
3465
|
license: "PROPRIETARY",
|
|
3450
3466
|
main: "./dist/server.js",
|