@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.mjs CHANGED
@@ -4428,6 +4428,31 @@ function _validateArtifactInner(input) {
4428
4428
  }
4429
4429
  }
4430
4430
  const PHASE_ZOD_VALIDATORS = {
4431
+ // 5.0 Theme defaultColorMode hygiene (swp-0ryn / swp-mw97)
4432
+ //
4433
+ // DHL raft runs produced `defaultColorMode: "auto"` (not a valid value) and
4434
+ // `defaultColorMode: "dark"` when the designer said "respect OS preference".
4435
+ // This validator catches the `auto` literal at write-time so the otter
4436
+ // self-corrects before the artifact lands on disk.
4437
+ //
4438
+ // Valid values: 'light' | 'dark' | 'system'
4439
+ // Omitting the key entirely is also valid (app shell honors prefers-color-scheme).
4440
+ theme: (artifact2) => {
4441
+ const dcm = artifact2["defaultColorMode"];
4442
+ if (dcm === void 0 || dcm === null) {
4443
+ return { success: true };
4444
+ }
4445
+ const VALID_COLOR_MODES = ["light", "dark", "system"];
4446
+ if (!VALID_COLOR_MODES.includes(dcm)) {
4447
+ return {
4448
+ success: false,
4449
+ error: {
4450
+ 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").`
4451
+ }
4452
+ };
4453
+ }
4454
+ return { success: true };
4455
+ },
4431
4456
  workflow: (artifact2) => {
4432
4457
  const workflowData = artifact2["workflow"];
4433
4458
  if (!workflowData) {
@@ -6448,7 +6473,7 @@ var _checksums = /* @__PURE__ */ new Map([
6448
6473
  ],
6449
6474
  [
6450
6475
  "stackwright-pro-theme-otter.json",
6451
- "01d16d0597d475db60362e3b8020035e140817d197c36f4307a48b95f4b28b60"
6476
+ "afb47f8381907145c0e098bdcaae4dd9f5c4ff825a8e88d00a218d2f6858820b"
6452
6477
  ],
6453
6478
  [
6454
6479
  "stackwright-services-otter.json",
@@ -8530,7 +8555,7 @@ var package_default = {
8530
8555
  "test:coverage": "vitest run --coverage"
8531
8556
  },
8532
8557
  name: "@stackwright-pro/mcp",
8533
- version: "0.2.0-alpha.108",
8558
+ version: "0.2.0-alpha.109",
8534
8559
  description: "MCP tools for Stackwright Pro - Data Explorer, Security, ISR, and Dashboard generation",
8535
8560
  license: "SEE LICENSE IN LICENSE",
8536
8561
  main: "./dist/server.js",