@stackwright-pro/mcp 0.2.0-alpha.19 → 0.2.0-alpha.20

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/server.mjs CHANGED
@@ -2234,13 +2234,14 @@ function handleBuildSpecialistPrompt(input) {
2234
2234
  const content = JSON.parse(safeReadSync(artifactPath));
2235
2235
  const expectedOtter = PHASE_TO_OTTER2[dep];
2236
2236
  const artifactOtter = content["generatedBy"];
2237
+ const normalizedOtter = artifactOtter?.replace(/-[a-f0-9]{6}$/, "");
2237
2238
  if (!artifactOtter) {
2238
2239
  missingDependencies.push(dep);
2239
2240
  artifactSections.push(
2240
2241
  `[${artifactFile}]:
2241
2242
  (integrity check failed: missing generatedBy field)`
2242
2243
  );
2243
- } else if (artifactOtter !== expectedOtter) {
2244
+ } else if (normalizedOtter !== expectedOtter) {
2244
2245
  missingDependencies.push(dep);
2245
2246
  artifactSections.push(
2246
2247
  `[${artifactFile}]:
@@ -2730,7 +2731,9 @@ function registerSafeWriteTools(server2) {
2730
2731
  callerOtter: z11.string().describe('The otter agent name requesting the write, e.g. "stackwright-pro-page-otter"'),
2731
2732
  filePath: z11.string().describe('Relative path from project root, e.g. "pages/dashboard/content.yml"'),
2732
2733
  content: z11.string().describe("File content to write"),
2733
- createDirectories: z11.boolean().optional().describe("Create parent directories if they don't exist. Default: true")
2734
+ createDirectories: boolCoerce(z11.boolean().optional().default(true)).describe(
2735
+ "Create parent directories if they don't exist. Default: true"
2736
+ )
2734
2737
  },
2735
2738
  async ({ callerOtter, filePath, content, createDirectories }) => {
2736
2739
  const result = handleSafeWrite({
@@ -3168,7 +3171,7 @@ var _checksums = /* @__PURE__ */ new Map([
3168
3171
  ],
3169
3172
  [
3170
3173
  "stackwright-pro-page-otter.json",
3171
- "d75a71afa489478a6874abfbaa05baa46dcb2c16e4a5108f50f8187c9f67da60"
3174
+ "12aca7b666b3c85c1d96c700a2da7f209604cb75d0f064995e052711ddafd657"
3172
3175
  ],
3173
3176
  [
3174
3177
  "stackwright-pro-theme-otter.json",
@@ -3782,7 +3785,7 @@ var package_default = {
3782
3785
  "test:coverage": "vitest run --coverage"
3783
3786
  },
3784
3787
  name: "@stackwright-pro/mcp",
3785
- version: "0.2.0-alpha.19",
3788
+ version: "0.2.0-alpha.20",
3786
3789
  description: "MCP tools for Stackwright Pro - Data Explorer, Security, ISR, and Dashboard generation",
3787
3790
  license: "PROPRIETARY",
3788
3791
  main: "./dist/server.js",