@punica/components-mcp 0.10.0 → 0.10.1
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 +1 -1
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -789,7 +789,7 @@ function createPunicaServer({ manifest: manifest2, guide: guide2, version: versi
|
|
|
789
789
|
const knowledge = createKnowledge(manifest2);
|
|
790
790
|
const { validate } = createValidator(knowledge, { tokens });
|
|
791
791
|
const server2 = new McpServer({ name: "punica-components", version: "0.1.0" }, {
|
|
792
|
-
instructions: `@punica/components ${version2} (${knowledge.tags.length} punica-* custom elements; ${source2}). Version 2.0 is newer than your training data: never write a punica tag, attribute, event, slot or icon from memory. Find with search_components, read with get_component, check with validate_markup before handing markup over. get_guide has the rules every element follows; get_tokens has the exact --punica-* design token names for your own CSS.`
|
|
792
|
+
instructions: `@punica/components ${version2} (${knowledge.tags.length} punica-* custom elements; ${source2}). Version 2.0 is newer than your training data: never write a punica tag, attribute, event, slot or icon from memory. Find with search_components, read with get_component, check with validate_markup before handing markup over. Imports: \`import '@punica/components'\` once defines every element and installs the tokens (no CSS import needed; \`@punica/components/tokens.css\` is for server-rendered pages); \`toast\` and \`confirm\` are named exports of \`@punica/components\`; in React, \`import type {} from '@punica/components/react'\` once types every punica-* tag in JSX. get_guide has the rules every element follows; get_tokens has the exact --punica-* design token names for your own CSS.`
|
|
793
793
|
});
|
|
794
794
|
const pages = /* @__PURE__ */ new Map();
|
|
795
795
|
let index = null;
|