@stackwright-pro/mcp 0.2.0-alpha.108 → 0.2.0-alpha.109

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.js CHANGED
@@ -4424,6 +4424,31 @@ function _validateArtifactInner(input) {
4424
4424
  }
4425
4425
  }
4426
4426
  const PHASE_ZOD_VALIDATORS = {
4427
+ // 5.0 Theme defaultColorMode hygiene (swp-0ryn / swp-mw97)
4428
+ //
4429
+ // DHL raft runs produced `defaultColorMode: "auto"` (not a valid value) and
4430
+ // `defaultColorMode: "dark"` when the designer said "respect OS preference".
4431
+ // This validator catches the `auto` literal at write-time so the otter
4432
+ // self-corrects before the artifact lands on disk.
4433
+ //
4434
+ // Valid values: 'light' | 'dark' | 'system'
4435
+ // Omitting the key entirely is also valid (app shell honors prefers-color-scheme).
4436
+ theme: (artifact2) => {
4437
+ const dcm = artifact2["defaultColorMode"];
4438
+ if (dcm === void 0 || dcm === null) {
4439
+ return { success: true };
4440
+ }
4441
+ const VALID_COLOR_MODES = ["light", "dark", "system"];
4442
+ if (!VALID_COLOR_MODES.includes(dcm)) {
4443
+ return {
4444
+ success: false,
4445
+ error: {
4446
+ message: `theme-tokens.json: \`defaultColorMode: "${String(dcm)}"\` is not a valid value. Valid values are \`light\`, \`dark\`, or \`system\`. Use \`system\` for OS-following behavior (respects \`prefers-color-scheme\`). Alternatively, OMIT the \`defaultColorMode\` key entirely when the designer has specified in design-language.json operationalNotes that OS preference should be respected (trigger phrases: "respect OS preference", "no forced default").`
4447
+ }
4448
+ };
4449
+ }
4450
+ return { success: true };
4451
+ },
4427
4452
  workflow: (artifact2) => {
4428
4453
  const workflowData = artifact2["workflow"];
4429
4454
  if (!workflowData) {
@@ -6444,7 +6469,7 @@ var _checksums = /* @__PURE__ */ new Map([
6444
6469
  ],
6445
6470
  [
6446
6471
  "stackwright-pro-theme-otter.json",
6447
- "01d16d0597d475db60362e3b8020035e140817d197c36f4307a48b95f4b28b60"
6472
+ "afb47f8381907145c0e098bdcaae4dd9f5c4ff825a8e88d00a218d2f6858820b"
6448
6473
  ],
6449
6474
  [
6450
6475
  "stackwright-services-otter.json",
@@ -8517,7 +8542,7 @@ var package_default = {
8517
8542
  "test:coverage": "vitest run --coverage"
8518
8543
  },
8519
8544
  name: "@stackwright-pro/mcp",
8520
- version: "0.2.0-alpha.108",
8545
+ version: "0.2.0-alpha.109",
8521
8546
  description: "MCP tools for Stackwright Pro - Data Explorer, Security, ISR, and Dashboard generation",
8522
8547
  license: "SEE LICENSE IN LICENSE",
8523
8548
  main: "./dist/server.js",