@idealyst/mcp-server 1.2.103 → 1.2.104

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/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  storageGuides,
8
8
  toolDefinitions,
9
9
  translateGuides
10
- } from "./chunk-74TE7CY7.js";
10
+ } from "./chunk-ZDB2NURA.js";
11
11
 
12
12
  // src/index.ts
13
13
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
@@ -11514,7 +11514,7 @@ These are mistakes agents make repeatedly. Each one causes TypeScript compilatio
11514
11514
  ### Imports & Styling
11515
11515
  16. **Never** import from \`react-native\` for UI \u2014 no \`TouchableOpacity\`, \`FlatList\`, \`ScrollView\`, \`Animated\`, \`Dimensions\`.
11516
11516
  17. **Never** import from \`react-native-unistyles\` \u2014 use \`@idealyst/theme\` (\`configureThemes\`, \`ThemeSettings\`, \`useTheme\`).
11517
- 18. **Custom styles**: Use \`useTheme()\` for theme tokens \u2014 it returns the Theme object **directly** (NOT wrapped): \`const theme = useTheme();\` then apply inline: \`style={{ padding: theme.spacing.md, backgroundColor: theme.colors.surface.primary }}\`. Do NOT use \`const { theme } = useTheme()\` \u2014 that causes TS2339. Do NOT use \`StyleSheet.create\` from react-native \u2014 use inline styles with theme tokens instead.
11517
+ 18. **useTheme()** returns the Theme object **directly** (NOT wrapped): \`const theme = useTheme();\`. Do NOT destructure: \`const { theme } = useTheme()\` causes TS2339. Use theme tokens for colors and spacing: \`style={{ padding: theme.spacing.md, backgroundColor: theme.colors.surface.primary }}\`.
11518
11518
 
11519
11519
  ### React 19 TypeScript
11520
11520
  - **useRef** requires an initial argument: \`useRef<T>(null)\` \u2014 NOT \`useRef<T>()\`. Omitting the argument causes TS2554. For non-null refs use: \`useRef<number>(0)\`, \`useRef<string[]>([])\`.
@@ -19602,13 +19602,6 @@ function postProcessComponentTypes(componentName, result) {
19602
19602
  result.usageNote = 'Card is a SIMPLE CONTAINER \u2014 there are NO compound components. Do NOT use Card.Content, Card.Header, Card.Body, Card.Footer, Card.Title \u2014 they do NOT exist and will cause TS2339. Just put children directly inside <Card>...</Card>. Example: <Card padding="md"><Text>Title</Text><Text>Body</Text></Card>';
19603
19603
  }
19604
19604
  }
19605
- const resultStr = JSON.stringify(result);
19606
- if (resultStr.includes("IconName") || resultStr.includes("mdi:")) {
19607
- const iconNote = "\n\nICON NAME FORMAT: The `name` prop type shows `IconName | \"mdi:...\"` variants. Both formats work in JSX props. However, when you store icon names in variables, type them as `IconName` and use BARE names (without 'mdi:' prefix):\n```tsx\nimport type { IconName } from '@idealyst/components';\nconst icon: IconName = 'home'; // CORRECT\nconst icon: IconName = 'mdi:home'; // WRONG \u2014 TS error\nconst icon: string = 'home'; // WRONG \u2014 won't match IconName props\n```\nAlways use bare names like 'home', 'check-circle', 'arrow-left' \u2014 never 'mdi:home'.";
19608
- if (typeof result === "object" && result !== null) {
19609
- result.iconNameNote = iconNote;
19610
- }
19611
- }
19612
19605
  return result;
19613
19606
  }
19614
19607
  function getComponentExamplesTs(args) {