@stackwright-pro/mcp 0.2.0-alpha.50 → 0.2.0-alpha.52

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
@@ -604,39 +604,49 @@ ${yaml}
604
604
  ` title: "${entityName} Details | {{ ${entity}.${slugField} }}"`,
605
605
  "",
606
606
  " content_items:",
607
- " - main:",
608
- ' label: "detail-header"',
609
- " heading:",
610
- ` text: "{{ ${entity}.${slugField} }}"`,
611
- ' textSize: "h1"',
612
- " textBlocks:",
613
- ` - text: "Details for this ${entity}"`,
614
- ' textSize: "body1"',
615
- ' background: "primary"',
616
- ' color: "text"',
607
+ " - type: text_block",
608
+ ' label: "detail-header"',
609
+ " heading:",
610
+ ` text: "{{ ${entity}.${slugField} }}"`,
611
+ ' textSize: "h1"',
612
+ " textBlocks:",
613
+ ` - text: "Details for this ${entity}"`,
614
+ ' textSize: "body1"',
617
615
  "",
618
- " - grid:",
619
- ' label: "detail-fields"',
620
- " columns: 2",
621
- " items:"
616
+ " - type: grid",
617
+ ' label: "detail-fields"',
618
+ " columns:"
622
619
  ];
623
620
  const displayFields = fields.length > 0 ? fields.slice(0, 8) : [
624
621
  { name: slugField, type: "string" },
625
622
  { name: "created_at", type: "datetime" },
626
623
  { name: "updated_at", type: "datetime" }
627
624
  ];
628
- for (const field of displayFields) {
629
- const label = field.name.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
630
- yamlLines.push(` - card:`);
631
- yamlLines.push(` label: "${field.name}-field"`);
632
- yamlLines.push(` heading:`);
633
- yamlLines.push(` text: "${label}"`);
634
- yamlLines.push(` textSize: "h4"`);
635
- yamlLines.push(` content:`);
636
- yamlLines.push(` - text: "{{ ${entity}.${field.name} }}"`);
637
- yamlLines.push(` textSize: "body1"`);
625
+ const mid = Math.ceil(displayFields.length / 2);
626
+ const col1 = displayFields.slice(0, mid);
627
+ const col2 = displayFields.slice(mid);
628
+ for (const [colIndex, colFields] of [col1, col2].entries()) {
629
+ yamlLines.push(" - width: 1");
630
+ yamlLines.push(" content_items:");
631
+ for (const field of colFields) {
632
+ const label = field.name.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase());
633
+ yamlLines.push(" - type: text_block");
634
+ yamlLines.push(` label: "${field.name}-field"`);
635
+ yamlLines.push(" heading:");
636
+ yamlLines.push(` text: "${label}"`);
637
+ yamlLines.push(' textSize: "h4"');
638
+ yamlLines.push(" textBlocks:");
639
+ yamlLines.push(` - text: "{{ ${entity}.${field.name} }}"`);
640
+ yamlLines.push(' textSize: "body1"');
641
+ }
638
642
  }
639
- yamlLines.push(' background: "background"');
643
+ yamlLines.push("");
644
+ yamlLines.push(" - type: action_bar");
645
+ yamlLines.push(" actions:");
646
+ yamlLines.push(` - label: "<- Back to ${entityName}"`);
647
+ yamlLines.push(" action: navigate");
648
+ yamlLines.push(` href: "/${entity}"`);
649
+ yamlLines.push(" style: secondary");
640
650
  const yaml = yamlLines.join("\n");
641
651
  return {
642
652
  content: [
@@ -3856,11 +3866,11 @@ var _checksums = /* @__PURE__ */ new Map([
3856
3866
  ],
3857
3867
  [
3858
3868
  "stackwright-pro-dashboard-otter.json",
3859
- "4f9fcb73c1f168846dbaf7af09f4ca99887339739160de83f739dca693464a23"
3869
+ "89e81ac161147ab532034b40e4f7863dcd7d03ef33fd94c97d19c3e56fb91a9e"
3860
3870
  ],
3861
3871
  [
3862
3872
  "stackwright-pro-data-otter.json",
3863
- "fb3e34977908d36a30eb448f069ecf41bff6c309c0daddf00471bb6f4822d025"
3873
+ "4769c3fa9b358609159ef2f613ac9d40dc7cb439e916c3344b9500a75d6afa82"
3864
3874
  ],
3865
3875
  [
3866
3876
  "stackwright-pro-designer-otter.json",
@@ -3872,11 +3882,11 @@ var _checksums = /* @__PURE__ */ new Map([
3872
3882
  ],
3873
3883
  [
3874
3884
  "stackwright-pro-page-otter.json",
3875
- "1ba5754f1e8ac8918483881d1d29e6f0ced6cead57d6e7557ff70b247dc4b979"
3885
+ "2fd8fe6f799e3fb4659979b1c958c64c276632fcfe18f70371543dc8145baa1b"
3876
3886
  ],
3877
3887
  [
3878
3888
  "stackwright-pro-theme-otter.json",
3879
- "b323259ccda02a3397b40df3a5c93286c16c97908535eb89fcf6fa9a2c2c05d4"
3889
+ "bc5695ef28164516b3f677cab201de781663c354d187cea28cc41884f1d89414"
3880
3890
  ],
3881
3891
  [
3882
3892
  "stackwright-pro-workflow-otter.json",
@@ -4613,7 +4623,7 @@ var package_default = {
4613
4623
  "test:coverage": "vitest run --coverage"
4614
4624
  },
4615
4625
  name: "@stackwright-pro/mcp",
4616
- version: "0.2.0-alpha.49",
4626
+ version: "0.2.0-alpha.52",
4617
4627
  description: "MCP tools for Stackwright Pro - Data Explorer, Security, ISR, and Dashboard generation",
4618
4628
  license: "SEE LICENSE IN LICENSE",
4619
4629
  main: "./dist/server.js",