@zat-design/sisyphus-react-mcp 4.5.7 → 4.5.8-beta.3

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/README.md CHANGED
@@ -1,48 +1,49 @@
1
1
  # @zat-design/sisyphus-react-mcp
2
2
 
3
- ## 解决什么问题
3
+ ## 用途
4
4
 
5
- 向 AI 暴露 Sisyphus 真实的组件清单、API、TypeScript 类型和 demo,避免凭记忆生成过时代码。元数据随 MCP 发布,业务组件包不再携带 AI 快照。
5
+ Sisyphus MCP 向 AI 暴露真实的组件清单、API、TypeScript 类型和 demo。只查组件用法时单独使用 MCP;需要从截图或需求生成保险业务页骨架时,配合 Scene Agent 使用。
6
6
 
7
- ## 前置版本
7
+ ## 安装与版本
8
8
 
9
- - Node.js 18+
10
- - `@zat-design/sisyphus-react@4.5.7`
11
- - `@zat-design/sisyphus-react-mcp@4.5.7`
9
+ 需要 Node.js 18+。新项目默认安装 npm `latest` 稳定版:
12
10
 
13
- 两包必须完全同版。启动时校验项目组件版本、MCP 内置元数据版本、schema v2 和 SHA-256。
14
-
15
- ## 三步安装
11
+ ```bash
12
+ npm install @zat-design/sisyphus-react
13
+ ```
16
14
 
17
- 1. 安装同版组件库。
18
- 2. 在 `.mcp.json` 或 `.cursor/mcp.json` 配置:
15
+ 在 Claude Code `.mcp.json` 或 Cursor `.cursor/mcp.json` 中配置:
19
16
 
20
17
  ```json
21
18
  {
22
19
  "mcpServers": {
23
20
  "sisyphus-react": {
24
21
  "command": "npx",
25
- "args": ["-y", "@zat-design/sisyphus-react-mcp@4.5.7"]
22
+ "args": ["-y", "@zat-design/sisyphus-react-mcp"]
26
23
  }
27
24
  }
28
25
  }
29
26
  ```
30
27
 
31
- 3. 重启 AI 工具并调用 `sisyphus-get-meta-status`。
28
+ 锁版或 beta 项目将组件库、MCP Scene 均设为 `@<完整版本>`,三包必须完全同版。MCP 启动时会校验版本、schema v2 和 SHA-256。
32
29
 
33
- ## 推荐调用顺序
30
+ ## MCP 工具
34
31
 
35
- 1. `sisyphus-get-meta-status`
36
- 2. `sisyphus-list-components`
37
- 3. `sisyphus-get-component-api`
38
- 4. 按需 `sisyphus-get-type`
39
- 5. `sisyphus-list-examples`
40
- 6. `sisyphus-get-example`
32
+ | MCP 工具 | 用途 |
33
+ | ---------------------------- | ----------------------------- |
34
+ | `sisyphus-get-meta-status` | 验证版本、schema 和元数据 |
35
+ | `sisyphus-search` | 将业务语言映射到候选组件/能力 |
36
+ | `sisyphus-list-components` | 确认候选组件存在 |
37
+ | `sisyphus-get-component-api` | 获取候选组件的真实 API |
38
+ | `sisyphus-get-type` | 核对公开 TypeScript 类型 |
39
+ | `sisyphus-list-examples` | 按组件和场景词筛选 demo ID |
40
+ | `sisyphus-get-example` | 获取选中的单个 demo 源码 |
41
+ | `sisyphus-get-examples` | 仅供旧工作流兼容 |
41
42
 
42
- `sisyphus-search` 用于跨元数据检索;`sisyphus-get-examples` 仅作兼容。
43
+ ## 推荐顺序
43
44
 
44
- ## 常见错误
45
-
46
- - 版本不同:将组件库、MCP Scene Agent 统一到完全相同的 SemVer。
47
- - 找不到组件包:确认当前业务项目安装了同版 `@zat-design/sisyphus-react`。
48
- - schema/哈希错误:重新安装同版 MCP,不继续使用损坏缓存。
45
+ 1. `sisyphus-get-meta-status`
46
+ 2. 按需 `sisyphus-search`,再用 `sisyphus-list-components` 确认候选组件。
47
+ 3. 编码前调用 `sisyphus-get-component-api`,按需补查 `sisyphus-get-type`。
48
+ 4. `sisyphus-list-examples`,再 `sisyphus-get-example`。
49
+ 5. 只使用已验证 API 编码并运行项目校验。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "version": "4.5.7",
3
+ "version": "4.5.8-beta.3",
4
4
  "components": [
5
5
  {
6
6
  "name": "ProCollapse",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "version": "4.5.7",
3
+ "version": "4.5.8-beta.3",
4
4
  "examples": [
5
5
  {
6
6
  "id": "ProCollapse/demos/collapse.tsx",
@@ -96,7 +96,7 @@
96
96
  "file": "demos/scroll.tsx",
97
97
  "title": "滑动置顶",
98
98
  "note": "",
99
- "source": "/**\n * iframe: 600\n * title: 滑动置顶\n * desc: |\n * 通过 fixedTop 启用固定头部功能\n */\n\n/* eslint-disable no-alert */\nimport { useToggle } from 'ahooks';\nimport { Button } from 'antd';\nimport { ProHeader, ProLayout } from '@zat-design/sisyphus-react';\nimport menusData from './menusData'; // 菜单数据源\n\nconst Layout = ({ children }: any) => {\n const [state, { toggle }] = useToggle(false);\n\n return (\n <>\n <ProLayout\n iconfontUrl=\"//at.alicdn.com/t/font_3000529_v88n7r0v7ae.js\"\n dataSource={menusData}\n collapsed={state}\n >\n {children}\n <ProHeader\n fixedTop={64}\n autoBack={1}\n breadcrumbColumns={[\n {\n type: 'breadcrumb',\n value: '比例调整',\n tag: '版本号2.0',\n },\n ]}\n actionRender={[\n <Button type=\"link\">分保意见</Button>,\n <Button type=\"link\">操作日志</Button>,\n ]}\n describeColumns={[\n {\n label: '投保单号',\n value: 'T1306C01202200000211034',\n copyable: true,\n link: 'https://procomponents.zhongan.tech/',\n },\n {\n label: '产品名称',\n value: '产品 06C3-综合意外New产品名称',\n tag: '版本号2.0',\n },\n ]}\n subDescribeColumns={[\n {\n label: '起保日期',\n value: '2022-08-30 00:00:00',\n },\n {\n label: '终保日期',\n value: '2022-08-30 00:00:00',\n },\n {\n label: '总保额',\n value: '1,000,799,999.00',\n },\n {\n label: '总签单保费(含税)',\n value: '200,300.00',\n },\n {\n label: '总签单保费(不含税)',\n value: '200,300.00',\n },\n {\n label: '保单币种',\n value: 'CNY',\n },\n {\n label: '总投保人数',\n value: '1000',\n },\n ]}\n onBack={() => {\n alert('返回上一步');\n }}\n />\n <div>\n 古巴比伦王颁布了汉谟拉比法典\n <br />\n 刻在黑色的玄武岩\n <br />\n 距今已经三千七百多年\n <br />\n 你在橱窗前 凝视碑文的字眼\n <br />\n 我却在旁静静欣赏你那张我深爱的脸\n <br />\n 祭司 神殿 征战 弓箭 是谁的从前\n <br />\n 喜欢在人潮中你只属于我的那画面\n <br />\n 经过苏美女神身边 我以女神之名许愿\n <br />\n 思念像底格里斯河般的蔓延\n <br />\n 当古文明只剩下难解的语言\n <br />\n 传说就成了永垂不朽的诗篇\n <br />\n 我给你的爱写在西元前\n <br />\n 深埋在美索不达米亚平原\n <br />\n 几十个世纪后出土发现\n <br />\n 泥板上的字迹依然清晰可见\n <br />\n 我给你的爱写在西元前\n <br />\n 深埋在美索不达米亚平原\n <br />\n 用楔形文字刻下了永远\n <br />\n 那已风化千年的誓言\n <br />\n 《爱在西元前》简谱\n <br />\n 《爱在西元前》简谱 [1] <br />\n 一切又重演\n <br />\n 祭司 神殿 征战 弓箭 是谁的从前\n <br />\n 喜欢在人潮中你只属于我的那画面\n <br />\n 经过苏美女神身边 我以女神之名许愿\n <br />\n 思念像底格里斯河般的蔓延\n <br />\n 当古文明只剩下难解的语言\n <br />\n 传说就成了永垂不朽的诗篇\n <br />\n 我给你的爱写在西元前\n <br />\n 深埋在美索不达米亚平原\n <br />\n 几十个世纪后出土发现\n <br />\n 泥板上的字迹依然清晰可见\n <br />\n <h2>我是底部啦~~~</h2>\n </div>\n </ProLayout>\n </>\n );\n};\n\nexport default Layout;\n"
99
+ "source": "/**\n * iframe: 600\n * title: 滑动置顶\n * desc: |\n * 通过 fixedTop 启用固定头部功能\n */\n\n/* eslint-disable no-alert */\nimport { useToggle } from 'ahooks';\nimport { Button } from 'antd';\nimport { ProHeader, ProLayout } from '@zat-design/sisyphus-react';\nimport menusData from './menusData'; // 菜单数据源\n\nconst Layout = ({ children }: any) => {\n const [state, { toggle }] = useToggle(false);\n\n return (\n <>\n <ProLayout\n iconfontUrl=\"//at.alicdn.com/t/font_3000529_v88n7r0v7ae.js\"\n dataSource={menusData}\n collapsed={state}\n >\n {children}\n <ProHeader\n fixedTop=\"var(--pro-layout-content-sticky-top, 0px)\"\n autoBack={1}\n breadcrumbColumns={[\n {\n type: 'breadcrumb',\n value: '比例调整',\n tag: '版本号2.0',\n },\n ]}\n actionRender={[\n <Button type=\"link\">分保意见</Button>,\n <Button type=\"link\">操作日志</Button>,\n ]}\n describeColumns={[\n {\n label: '投保单号',\n value: 'T1306C01202200000211034',\n copyable: true,\n link: 'https://procomponents.zhongan.tech/',\n },\n {\n label: '产品名称',\n value: '产品 06C3-综合意外New产品名称',\n tag: '版本号2.0',\n },\n ]}\n subDescribeColumns={[\n {\n label: '起保日期',\n value: '2022-08-30 00:00:00',\n },\n {\n label: '终保日期',\n value: '2022-08-30 00:00:00',\n },\n {\n label: '总保额',\n value: '1,000,799,999.00',\n },\n {\n label: '总签单保费(含税)',\n value: '200,300.00',\n },\n {\n label: '总签单保费(不含税)',\n value: '200,300.00',\n },\n {\n label: '保单币种',\n value: 'CNY',\n },\n {\n label: '总投保人数',\n value: '1000',\n },\n ]}\n onBack={() => {\n alert('返回上一步');\n }}\n />\n <div>\n 古巴比伦王颁布了汉谟拉比法典\n <br />\n 刻在黑色的玄武岩\n <br />\n 距今已经三千七百多年\n <br />\n 你在橱窗前 凝视碑文的字眼\n <br />\n 我却在旁静静欣赏你那张我深爱的脸\n <br />\n 祭司 神殿 征战 弓箭 是谁的从前\n <br />\n 喜欢在人潮中你只属于我的那画面\n <br />\n 经过苏美女神身边 我以女神之名许愿\n <br />\n 思念像底格里斯河般的蔓延\n <br />\n 当古文明只剩下难解的语言\n <br />\n 传说就成了永垂不朽的诗篇\n <br />\n 我给你的爱写在西元前\n <br />\n 深埋在美索不达米亚平原\n <br />\n 几十个世纪后出土发现\n <br />\n 泥板上的字迹依然清晰可见\n <br />\n 我给你的爱写在西元前\n <br />\n 深埋在美索不达米亚平原\n <br />\n 用楔形文字刻下了永远\n <br />\n 那已风化千年的誓言\n <br />\n 《爱在西元前》简谱\n <br />\n 《爱在西元前》简谱 [1] <br />\n 一切又重演\n <br />\n 祭司 神殿 征战 弓箭 是谁的从前\n <br />\n 喜欢在人潮中你只属于我的那画面\n <br />\n 经过苏美女神身边 我以女神之名许愿\n <br />\n 思念像底格里斯河般的蔓延\n <br />\n 当古文明只剩下难解的语言\n <br />\n 传说就成了永垂不朽的诗篇\n <br />\n 我给你的爱写在西元前\n <br />\n 深埋在美索不达米亚平原\n <br />\n 几十个世纪后出土发现\n <br />\n 泥板上的字迹依然清晰可见\n <br />\n <h2>我是底部啦~~~</h2>\n </div>\n </ProLayout>\n </>\n );\n};\n\nexport default Layout;\n"
100
100
  },
101
101
  {
102
102
  "id": "ProHeader/demos/check.tsx",
@@ -178,6 +178,14 @@
178
178
  "note": "",
179
179
  "source": "/**\n * iframe: 600\n * title: 标签页高级配置\n * desc: |\n * 展示标签页的高级配置选项和回调函数的使用\n */\n\nimport { useCallback } from 'react';\nimport { useToggle } from 'ahooks';\nimport { Avatar, Dropdown, Card } from 'antd';\nimport type { MenuProps } from 'antd';\nimport { ProLayout } from '@zat-design/sisyphus-react';\nimport menusData from './data/menusTabsData'; // 菜单数据源\nimport { resolveTabComponent } from './tabsComponents';\n\nconst TabsAdvancedDemo = ({ children }: any) => {\n const userName = menusData.userInfo.simpleCname;\n const [collapsed, { toggle }] = useToggle(false);\n\n const items: MenuProps['items'] = [\n {\n key: '1',\n label: (\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://procomponents.zhonganinfo.com/\">\n 退出登录\n </a>\n ),\n },\n ];\n\n const handleTabChange = useCallback((activeKey, activeTabInfo, allTabs) => {\n console.log('标签页切换:', { activeKey, activeTabInfo, allTabs });\n }, []);\n\n return (\n <>\n <ProLayout\n title=\"标签页高级配置演示\"\n logo={\n <img\n src=\"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg\"\n alt=\"logo\"\n />\n }\n iconfontUrl=\"//at.alicdn.com/t/font_3000529_v88n7r0v7ae.js\"\n dataSource={menusData}\n collapsed={collapsed}\n pathPrefix=\"/property-frame-ui\"\n // 开启标签页模式\n mode=\"tabs\"\n // 动态标签页配置\n tabs={{\n storage: 'localStorage',\n cacheKey: 'advanced-tabs-demo',\n onTabChange: handleTabChange,\n activeComponent: resolveTabComponent, // 激活组件解析器\n empty: (\n <Card title=\"标签页演示内容\" style={{ margin: '16px 0' }}>\n <p>欢迎使用 ProLayout 标签页功能!</p>\n <p>点击左侧菜单体验标签页功能:</p>\n <ul>\n <li>📌 点击菜单创建新标签页</li>\n <li>🖱️ 右键标签页查看更多操作</li>\n <li>❌ 点击 × 关闭标签页</li>\n <li>💾 标签页会自动缓存</li>\n </ul>\n </Card>\n ),\n }}\n rightContentRender={\n <>\n {userName ? (\n <Dropdown menu={{ items }}>\n <span>\n <Avatar>{userName.substring(0, 1)}</Avatar>\n <span style={{ marginLeft: 8 }}>{userName}</span>\n </span>\n </Dropdown>\n ) : (\n <span onClick={() => {}}>登录</span>\n )}\n </>\n }\n >\n {children}\n </ProLayout>\n </>\n );\n};\n\nexport default TabsAdvancedDemo;\n"
180
180
  },
181
+ {
182
+ "id": "ProLayout/demos/tabsProStep.tsx",
183
+ "component": "ProLayout",
184
+ "file": "demos/tabsProStep.tsx",
185
+ "title": "标签页模式 + ProStep 避让",
186
+ "note": "",
187
+ "source": "/**\n * iframe: 600\n * title: 标签页与 ProStep 对齐\n * desc: |\n * ProStep 仅绑定“投保单录入”标签(含 sticky ProHeader),其它标签使用普通内容,并保留 Ant Design 原生溢出菜单\n */\n\n/* eslint-disable no-alert */\nimport { useToggle } from 'ahooks';\nimport { Avatar, Button, Card, Dropdown } from 'antd';\nimport type { MenuProps } from 'antd';\nimport { ProHeader, ProLayout, ProStep } from '@zat-design/sisyphus-react';\nimport menusData from './data/menusTabsData';\n\nconst PRO_STEP_TAB_CODE = 'PolicyInput';\n\nconst initialTabs = [\n { code: 'PolicyInput', name: '投保单录入' },\n { code: 'PolicyInput1', name: '投保单录入-1' },\n { code: 'PolicyInput2', name: '投保单录入-2' },\n { code: 'PolicyInput3', name: '投保单录入-3' },\n { code: 'PolicyInput4', name: '投保单录入-4' },\n { code: 'PolicyInput5', name: '投保单录入-5' },\n { code: 'PolicyInput6', name: '投保单录入-6' },\n { code: 'PolicyInput7', name: '投保单录入-7' },\n { code: 'PolicyInput8', name: '投保单录入-8' },\n];\n\nconst StandardTabContent = () => (\n <Card title=\"普通标签页\" size=\"small\">\n 当前标签页不使用 ProStep。\n </Card>\n);\n\nconst PolicyInputStepContent = () => (\n <ProStep targetOffset={128}>\n <ProHeader\n fixedTop=\"var(--pro-layout-content-sticky-top, 0px)\"\n autoBack={1}\n breadcrumbColumns={[\n {\n type: 'breadcrumb',\n value: '比例调整',\n tag: '版本号2.0',\n },\n ]}\n actionRender={[<Button type=\"link\">分保意见</Button>, <Button type=\"link\">操作日志</Button>]}\n describeColumns={[\n {\n label: '投保单号',\n value: 'T1306C01202200000211034',\n copyable: true,\n link: 'https://procomponents.zhongan.tech/',\n },\n {\n label: '产品名称',\n value: '产品 06C3-综合意外New产品名称',\n tag: '版本号2.0',\n },\n ]}\n subDescribeColumns={[\n {\n label: '起保日期',\n value: '2022-08-30 00:00:00',\n },\n {\n label: '终保日期',\n value: '2022-08-30 00:00:00',\n },\n {\n label: '总保额',\n value: '1,000,799,999.00',\n },\n {\n label: '总签单保费(含税)',\n value: '200,300.00',\n },\n {\n label: '总签单保费(不含税)',\n value: '200,300.00',\n },\n {\n label: '保单币种',\n value: 'CNY',\n },\n {\n label: '总投保人数',\n value: '1000',\n },\n ]}\n onBack={() => {\n alert('返回上一步');\n }}\n />\n <ProStep.Item id=\"base-info\" title=\"基本信息\">\n <Card title=\"基本信息\" size=\"small\">\n ProStep 仅绑定“投保单录入”标签,并复用 ProLayout 的内容区固定偏移。\n </Card>\n </ProStep.Item>\n <ProStep.Item id=\"policy-info\" title=\"保单信息\">\n <Card title=\"保单信息\" size=\"small\" style={{ marginTop: 16 }}>\n 切换到其它标签时 ProStep 随当前 pane 隐藏,切回后保留已有状态。\n </Card>\n </ProStep.Item>\n <ProStep.Item id=\"confirm-info\" title=\"确认信息\">\n <Card title=\"确认信息\" size=\"small\" style={{ marginTop: 16, minHeight: 320 }}>\n 标签数量超过可用宽度时,继续使用 Ant Design Tabs 原生“更多”菜单切换标签。\n </Card>\n </ProStep.Item>\n </ProStep>\n);\n\nconst resolveTabComponent = (code: string) =>\n code === PRO_STEP_TAB_CODE ? PolicyInputStepContent : StandardTabContent;\n\nconst TabsProStepDemo = () => {\n const userName = menusData.userInfo.simpleCname;\n const [collapsed] = useToggle(false);\n\n const items: MenuProps['items'] = [\n {\n key: 'logout',\n label: '退出登录',\n },\n ];\n\n return (\n <ProLayout\n title=\"标签页与 ProStep 对齐演示\"\n logo={\n <img src=\"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg\" alt=\"logo\" />\n }\n iconfontUrl=\"//at.alicdn.com/t/font_3000529_v88n7r0v7ae.js\"\n dataSource={menusData}\n collapsed={collapsed}\n pathPrefix=\"/property-frame-ui\"\n mode=\"tabs\"\n tabs={{\n storage: 'sessionStorage',\n cacheKey: 'tabs-pro-step-regular-demo',\n initialTabs,\n activeComponent: resolveTabComponent,\n }}\n rightContentRender={\n <Dropdown menu={{ items }}>\n <span>\n <Avatar>{userName.substring(0, 1)}</Avatar>\n <span style={{ marginLeft: 8 }}>{userName}</span>\n </span>\n </Dropdown>\n }\n >\n <StandardTabContent />\n </ProLayout>\n );\n};\n\nexport default TabsProStepDemo;\n"
188
+ },
181
189
  {
182
190
  "id": "ProLayout/demos/tabsSubView.tsx",
183
191
  "component": "ProLayout",
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "version": "4.5.7",
3
+ "version": "4.5.8-beta.3",
4
4
  "counts": {
5
5
  "components": 29,
6
- "examples": 280,
6
+ "examples": 281,
7
7
  "types": 64
8
8
  },
9
9
  "files": {
10
- "components.json": "14ad936b35f4b463c1a0b48242bd7ad89809f697ec11b4ee5c1cd5c4a06e153c",
11
- "props.json": "3a39f4cd532fe0a558e8580a8c2817820a6a1fe19d6b6532dde5d2cc4d62f7e6",
12
- "examples.json": "75a19617707121cab1a268c8adcda80caf9339bf0d2a98409d8791b44ca6510f",
13
- "types.json": "76079ed6874c188d38effc3a86e3e7d1a7083f66997f27d8e52199a69485f52b"
10
+ "components.json": "0eff04ada0300e6b3603066b9af557e8f583c30302ae5bf3dc604f092c3eb498",
11
+ "props.json": "6a2c283886e4c2acb2abc1143de7da8672c4e1f81a04c6eba8a7b156d905eec6",
12
+ "examples.json": "c7608823a6095293526b5e97f3567e7d6adbafbef8302b4bbd22f0f04ee25b63",
13
+ "types.json": "e1484fd2708b06ef0af3b605c3afa6eddf6eb7549afac122acde13be007e18a0"
14
14
  }
15
15
  }
package/meta/props.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "version": "4.5.7",
3
+ "version": "4.5.8-beta.3",
4
4
  "components": {
5
5
  "ProCollapse": {
6
6
  "source": "typescript+docs",
@@ -157,7 +157,7 @@
157
157
  "fixedTop": {
158
158
  "type": "string | number",
159
159
  "required": false,
160
- "description": "设置距离顶部的距离,用于固定悬浮",
160
+ "description": "设置距离顶部的距离,用于固定悬浮;0 也会启用,可传 var(--pro-layout-content-sticky-top, 0px) 适配 ProLayout 顶部区域",
161
161
  "verifiedBy": "typescript+docs"
162
162
  },
163
163
  "title": {
@@ -601,6 +601,13 @@
601
601
  "description": "是否允许拖拽排序标签页,拖拽后顺序自动写入缓存",
602
602
  "verifiedBy": "docs"
603
603
  },
604
+ "initialTabs": {
605
+ "type": "AddTabParams[]",
606
+ "required": null,
607
+ "defaultValue": "-",
608
+ "description": "普通初始标签页;无缓存时每次挂载只初始化一次,关闭全部后不再补签",
609
+ "verifiedBy": "docs"
610
+ },
604
611
  "fixed": {
605
612
  "type": "string[]",
606
613
  "required": null,
@@ -832,8 +839,8 @@
832
839
  "verifiedBy": "typescript+docs"
833
840
  },
834
841
  "fixedTop": {
835
- "type": "number",
836
- "required": true,
842
+ "type": "string | number",
843
+ "required": false,
837
844
  "defaultValue": "0",
838
845
  "description": "距离顶部的偏移量",
839
846
  "verifiedBy": "typescript+docs"
package/meta/types.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "version": "4.5.7",
3
+ "version": "4.5.8-beta.3",
4
4
  "types": [
5
5
  {
6
6
  "name": "ProConfigProviderType",
@@ -3037,27 +3037,27 @@
3037
3037
  "verifiedBy": "typescript"
3038
3038
  },
3039
3039
  "trimEnd": {
3040
- "type": "() => string",
3040
+ "type": "{ (): string; (): string; }",
3041
3041
  "required": true,
3042
- "description": "Removes the trailing white space and line terminator characters from a string.",
3042
+ "description": "Removes the trailing white space and line terminator characters from a string.\nReturns a copy with trailing whitespace removed.",
3043
3043
  "verifiedBy": "typescript"
3044
3044
  },
3045
3045
  "trimStart": {
3046
- "type": "() => string",
3046
+ "type": "{ (): string; (): string; }",
3047
3047
  "required": true,
3048
- "description": "Removes the leading white space and line terminator characters from a string.",
3048
+ "description": "Removes the leading white space and line terminator characters from a string.\nReturns a copy with leading whitespace removed.",
3049
3049
  "verifiedBy": "typescript"
3050
3050
  },
3051
3051
  "trimLeft": {
3052
- "type": "() => string",
3052
+ "type": "{ (): string; (): string; }",
3053
3053
  "required": true,
3054
- "description": "Removes the leading white space and line terminator characters from a string.",
3054
+ "description": "Removes the leading white space and line terminator characters from a string.\nRemoves whitespace from the left end of a string.",
3055
3055
  "verifiedBy": "typescript"
3056
3056
  },
3057
3057
  "trimRight": {
3058
- "type": "() => string",
3058
+ "type": "{ (): string; (): string; }",
3059
3059
  "required": true,
3060
- "description": "Removes the trailing white space and line terminator characters from a string.",
3060
+ "description": "Removes the trailing white space and line terminator characters from a string.\nRemoves whitespace from the right end of a string.",
3061
3061
  "verifiedBy": "typescript"
3062
3062
  },
3063
3063
  "matchAll": {
@@ -3078,7 +3078,7 @@
3078
3078
  "description": "Returns a new String consisting of the single UTF-16 code unit located at the specified index.",
3079
3079
  "verifiedBy": "typescript"
3080
3080
  },
3081
- "__@iterator@695": {
3081
+ "__@iterator@708": {
3082
3082
  "type": "() => IterableIterator<string>",
3083
3083
  "required": true,
3084
3084
  "description": "Iterator",
@@ -3346,27 +3346,27 @@
3346
3346
  "verifiedBy": "typescript"
3347
3347
  },
3348
3348
  "trimEnd": {
3349
- "type": "() => string",
3349
+ "type": "{ (): string; (): string; }",
3350
3350
  "required": true,
3351
- "description": "Removes the trailing white space and line terminator characters from a string.",
3351
+ "description": "Removes the trailing white space and line terminator characters from a string.\nReturns a copy with trailing whitespace removed.",
3352
3352
  "verifiedBy": "typescript"
3353
3353
  },
3354
3354
  "trimStart": {
3355
- "type": "() => string",
3355
+ "type": "{ (): string; (): string; }",
3356
3356
  "required": true,
3357
- "description": "Removes the leading white space and line terminator characters from a string.",
3357
+ "description": "Removes the leading white space and line terminator characters from a string.\nReturns a copy with leading whitespace removed.",
3358
3358
  "verifiedBy": "typescript"
3359
3359
  },
3360
3360
  "trimLeft": {
3361
- "type": "() => string",
3361
+ "type": "{ (): string; (): string; }",
3362
3362
  "required": true,
3363
- "description": "Removes the leading white space and line terminator characters from a string.",
3363
+ "description": "Removes the leading white space and line terminator characters from a string.\nRemoves whitespace from the left end of a string.",
3364
3364
  "verifiedBy": "typescript"
3365
3365
  },
3366
3366
  "trimRight": {
3367
- "type": "() => string",
3367
+ "type": "{ (): string; (): string; }",
3368
3368
  "required": true,
3369
- "description": "Removes the trailing white space and line terminator characters from a string.",
3369
+ "description": "Removes the trailing white space and line terminator characters from a string.\nRemoves whitespace from the right end of a string.",
3370
3370
  "verifiedBy": "typescript"
3371
3371
  },
3372
3372
  "matchAll": {
@@ -3387,7 +3387,7 @@
3387
3387
  "description": "Returns a new String consisting of the single UTF-16 code unit located at the specified index.",
3388
3388
  "verifiedBy": "typescript"
3389
3389
  },
3390
- "__@iterator@695": {
3390
+ "__@iterator@708": {
3391
3391
  "type": "() => IterableIterator<string>",
3392
3392
  "required": true,
3393
3393
  "description": "Iterator",
@@ -9027,27 +9027,27 @@
9027
9027
  "verifiedBy": "typescript"
9028
9028
  },
9029
9029
  "trimEnd": {
9030
- "type": "() => string",
9030
+ "type": "{ (): string; (): string; }",
9031
9031
  "required": true,
9032
- "description": "Removes the trailing white space and line terminator characters from a string.",
9032
+ "description": "Removes the trailing white space and line terminator characters from a string.\nReturns a copy with trailing whitespace removed.",
9033
9033
  "verifiedBy": "typescript"
9034
9034
  },
9035
9035
  "trimStart": {
9036
- "type": "() => string",
9036
+ "type": "{ (): string; (): string; }",
9037
9037
  "required": true,
9038
- "description": "Removes the leading white space and line terminator characters from a string.",
9038
+ "description": "Removes the leading white space and line terminator characters from a string.\nReturns a copy with leading whitespace removed.",
9039
9039
  "verifiedBy": "typescript"
9040
9040
  },
9041
9041
  "trimLeft": {
9042
- "type": "() => string",
9042
+ "type": "{ (): string; (): string; }",
9043
9043
  "required": true,
9044
- "description": "Removes the leading white space and line terminator characters from a string.",
9044
+ "description": "Removes the leading white space and line terminator characters from a string.\nRemoves whitespace from the left end of a string.",
9045
9045
  "verifiedBy": "typescript"
9046
9046
  },
9047
9047
  "trimRight": {
9048
- "type": "() => string",
9048
+ "type": "{ (): string; (): string; }",
9049
9049
  "required": true,
9050
- "description": "Removes the trailing white space and line terminator characters from a string.",
9050
+ "description": "Removes the trailing white space and line terminator characters from a string.\nRemoves whitespace from the right end of a string.",
9051
9051
  "verifiedBy": "typescript"
9052
9052
  },
9053
9053
  "matchAll": {
@@ -9068,7 +9068,7 @@
9068
9068
  "description": "Returns a new String consisting of the single UTF-16 code unit located at the specified index.",
9069
9069
  "verifiedBy": "typescript"
9070
9070
  },
9071
- "__@iterator@695": {
9071
+ "__@iterator@708": {
9072
9072
  "type": "() => IterableIterator<string>",
9073
9073
  "required": true,
9074
9074
  "description": "Iterator",
@@ -12988,9 +12988,9 @@
12988
12988
  "verifiedBy": "typescript"
12989
12989
  },
12990
12990
  "fixedTop": {
12991
- "type": "number",
12992
- "required": true,
12993
- "description": "距离顶部的偏移量(单位:像素)",
12991
+ "type": "string | number",
12992
+ "required": false,
12993
+ "description": "距离顶部的偏移量,支持像素值或 CSS 长度",
12994
12994
  "verifiedBy": "typescript"
12995
12995
  },
12996
12996
  "activeKey": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react-mcp",
3
- "version": "4.5.7",
3
+ "version": "4.5.8-beta.3",
4
4
  "description": "MCP server for @zat-design/sisyphus-react — 向 AI 编码助手暴露组件库的清单/API/示例查询能力",
5
5
  "type": "module",
6
6
  "bin": {