@slexkit/mcp 0.3.2 → 0.4.0
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 +85 -58
- package/dist/data/llms-components.txt +6 -21
- package/dist/data/llms-full.txt +7465 -6858
- package/dist/data/llms-runtime.txt +1704 -1433
- package/dist/data/llms-toolhost.txt +290 -284
- package/dist/data/llms.txt +19 -13
- package/dist/data/slexkit-ai-manifest.json +318 -297
- package/dist/data/standard/slex-capabilities.catalog.json +413 -0
- package/dist/data/standard/slex-component-catalog.json +4475 -0
- package/dist/data/standard/slex-conformance.json +248 -0
- package/dist/data/standard/slex-expression.schema.json +2116 -0
- package/dist/data/standard/slex-logic-profile.json +130 -0
- package/dist/data/standard/slex-standard-manifest.json +37 -0
- package/dist/index.js +852 -40
- package/dist/index.js.map +5 -5
- package/package.json +47 -47
package/dist/data/llms.txt
CHANGED
|
@@ -9,10 +9,13 @@
|
|
|
9
9
|
- [ToolHost docs](/llms-toolhost.txt): structured user-input UI docs.
|
|
10
10
|
- [Authoring rules](/llms-authoring.txt): concise rules for Markdown `slex` fences.
|
|
11
11
|
- [AI manifest](/slexkit-ai-manifest.json): structured page, component, and hash metadata.
|
|
12
|
+
- [Standard manifest](/standard/slex-standard-manifest.json): schema, component catalog, logic profile, capabilities, and conformance metadata.
|
|
13
|
+
- [Logic profile](/standard/slex-logic-profile.json): `$` read-pipes, `on*` write-pipes, directives, context, and secure-mode guidance.
|
|
14
|
+
- [Component catalog](/standard/slex-component-catalog.json): public component props, state modes, children, examples, docs, and hashes.
|
|
12
15
|
|
|
13
16
|
SlexKit raw docs are Markdown (`.md`) with explicit `slex` fences. The interactive layer is the fenced `slex` source inside each Markdown page.
|
|
14
17
|
|
|
15
|
-
Version: 0.
|
|
18
|
+
Version: 0.4.0
|
|
16
19
|
|
|
17
20
|
## Table of Contents
|
|
18
21
|
|
|
@@ -20,36 +23,39 @@ Version: 0.3.2
|
|
|
20
23
|
- [README](/README.md): Root package overview and installation matrix.
|
|
21
24
|
- [SlexKit Introduction](/docs/guides/intro.md): What SlexKit is and where it fits.
|
|
22
25
|
- [Quick Start](/docs/guides/quick-start.md): Install SlexKit and render a first Markdown-friendly Slex source.
|
|
23
|
-
- [Integration](/docs/guides/integration.md):
|
|
26
|
+
- [Integration](/docs/guides/integration.md): Streamdown, Tiptap, Obsidian, and custom Markdown hosts for explicit Slex fences.
|
|
24
27
|
- [Design Guidelines](/docs/guides/design.md): Design and authoring guidelines for SlexKit components and docs.
|
|
25
28
|
- [Secure Runtime Setup](/docs/guides/security-runtime.md): Decision and setup guide for rendering untrusted or agent-generated Slex source.
|
|
26
29
|
- [AI / Agents](/docs/guides/ai-agents.md): LLM docs, MCP server, skills, and authoring rules for SlexKit agents.
|
|
27
30
|
|
|
28
31
|
### Examples
|
|
29
|
-
- [
|
|
30
|
-
- [第一个交互:滑块操控数据](/zh-CN/examples/first-interaction.md): 在 SlexKit
|
|
32
|
+
- [第一个 SlexKit 卡片](/zh-CN/examples/hello-slexkit.md): 静态 SlexKit 卡片示例,使用 section、grid、stat、table 和 callout 组织内容。
|
|
33
|
+
- [第一个交互:滑块操控数据](/zh-CN/examples/first-interaction.md): 在 SlexKit 卡片中加入 g 对象、滑块输入和响应式表达式。
|
|
31
34
|
- [多输入协同:两个滑块联动](/zh-CN/examples/multi-input-coordination.md): 两个 slider 相互影响,引入 g 方法、formula 组件和条件渲染。
|
|
32
|
-
- [分支与切换:模式选择器](/zh-CN/examples/tabs-and-branching.md): 用 select
|
|
35
|
+
- [分支与切换:模式选择器](/zh-CN/examples/tabs-and-branching.md): 用 select 切换 mode 状态,并根据当前模式渲染不同输入和结果。
|
|
33
36
|
- [五险一金计算器](/zh-CN/examples/salary-calculator.md): 输入工资基数和城市,计算五险一金明细,显示个人缴纳、单位缴纳和总计。
|
|
34
37
|
- [软件项目成本估算器](/zh-CN/examples/project-cost-estimator.md): 输入团队规模、开发周期和人员成本,计算项目总成本和人均成本。
|
|
35
38
|
- [分压器计算器](/zh-CN/examples/voltage-divider.md): 输入电压和两个电阻值,计算分压输出,并评估负载效应带来的误差。
|
|
36
39
|
- [RC 低通滤波器](/zh-CN/examples/rc-low-pass-filter.md): 用电阻和电容搭建的频率选择电路,计算截止频率和任意频率下的增益衰减。
|
|
37
40
|
- [波特率误差计算器](/zh-CN/examples/baud-rate-calculator.md): 输入晶振频率和目标波特率,计算 UART 波特率误差百分比,判断通信可靠性。
|
|
38
|
-
- [搜索与过滤表格](/zh-CN/examples/search-filter-table.md):
|
|
41
|
+
- [搜索与过滤表格](/zh-CN/examples/search-filter-table.md): 搜索输入框实时过滤表格行,并用 collapsible 展开行详情。
|
|
39
42
|
- [项目仪表盘](/zh-CN/examples/project-dashboard.md): 用 section + grid 搭建信息仪表盘,覆盖 Sprint 进度、质量指标和团队健康度的多卡片联动。
|
|
40
|
-
- [ToolHost 表单提问](/zh-CN/examples/form-wizard-steps.md):
|
|
43
|
+
- [ToolHost 表单提问](/zh-CN/examples/form-wizard-steps.md): ToolHost 在对话中渲染表单卡片,收集项目信息并提交结构化结果。
|
|
44
|
+
- [ToolHost 工具调用 UI](/zh-CN/examples/toolhost-demo.md): 把 function_call 渲染成对话内工具卡片,再把提交结果写回 function_call_output。
|
|
41
45
|
- [技术选型评估](/zh-CN/examples/tech-selection-evaluator.md): 评估不同技术方案的优劣,通过跨 fence 联动实现参数选择、评分分析和结论推荐。
|
|
42
|
-
- [ToolHost 对话演示](/zh-CN/examples/toolhost-demo.md): 展示 SlexKit 的 ToolHost 能力:在 AI 对话流中内嵌交互式表单,收集用户输入后返回结构化 ToolResult。
|
|
43
46
|
- [自建还是外购决策](/zh-CN/examples/roi-estimator.md): 自建还是外购决策矩阵——功能覆盖、成本对比、时间线、风险四维度评估,自动推荐方案。
|
|
44
|
-
- [跨文档状态实验室](/zh-CN/examples/cross-doc-state-lab.md):
|
|
47
|
+
- [跨文档状态实验室](/zh-CN/examples/cross-doc-state-lab.md): 多块 `slex` 代码使用同一个 namespace,共享同一份响应式 `g` 状态。
|
|
45
48
|
- [JSONPlaceholder 网络请求实验台](/zh-CN/examples/network-policy-fetch-card.md): 用 JSONPlaceholder 演示 secure runtime 如何把用户触发的网络请求交给 host policy 审核和代理。
|
|
49
|
+
- [assistant-ui 接入](/zh-CN/examples/assistant-ui-host.md): 在 assistant-ui 的 Streamdown text message parts 中渲染显式 slex fences。
|
|
50
|
+
- [Streamdown 接入](/zh-CN/examples/streamdown-host.md): React/Streamdown 适配器示例,在 Markdown 页面中渲染显式 `slex` 代码块。
|
|
51
|
+
- [Tiptap 编辑器接入](/zh-CN/examples/tiptap-host.md): Tiptap CodeBlock 适配器:只把显式 slex 代码块渲染为预览,普通代码块和 Markdown 导入/导出保持 Tiptap 行为。
|
|
46
52
|
|
|
47
53
|
### Components
|
|
48
54
|
- [Accordion](/docs/components/accordion.md): Expandable grouped panels.
|
|
49
55
|
- [Badge](/docs/components/badge.md): Compact label for status or classification.
|
|
50
56
|
- [Button](/docs/components/button.md): Action trigger.
|
|
51
57
|
- [Callout](/docs/components/callout.md): Highlighted contextual message.
|
|
52
|
-
- [Card](/docs/components/card.md):
|
|
58
|
+
- [Card](/docs/components/card.md): Grouping container for related content.
|
|
53
59
|
- [Checkbox](/docs/components/checkbox.md): Boolean checkbox input.
|
|
54
60
|
- [Code Block](/docs/components/code-block.md): Formatted code or log block.
|
|
55
61
|
- [Collapsible](/docs/components/collapsible.md): Single expandable region.
|
|
@@ -68,7 +74,6 @@ Version: 0.3.2
|
|
|
68
74
|
- [Select](/docs/components/select.md): Dropdown selection input.
|
|
69
75
|
- [Slider](/docs/components/slider.md): Numeric range input.
|
|
70
76
|
- [Stat](/docs/components/stat.md): Metric display.
|
|
71
|
-
- [Submit](/docs/components/submit.md): ToolHost submit and ignore controls.
|
|
72
77
|
- [Switch](/docs/components/switch.md): Boolean switch input.
|
|
73
78
|
- [Table](/docs/components/table.md): Simple data table.
|
|
74
79
|
- [Tabs](/docs/components/tabs.md): Tabbed view switcher.
|
|
@@ -79,9 +84,10 @@ Version: 0.3.2
|
|
|
79
84
|
- [Slex Specification](/docs/reference/spec.md): Public Slex expression envelope, component keys, props, directives, and lifecycle.
|
|
80
85
|
- [Slex Usage Reference](/docs/reference/usage.md): Slex source structure, props, directives, events, theming, custom components, and ToolHost boundaries.
|
|
81
86
|
- [Runtime Model](/docs/reference/runtime.md): Mounting, ingestion, boot, namespace store, lifecycle, and runtime APIs.
|
|
82
|
-
- [Host Integration](/docs/reference/integration.md): Markdown renderers, Streamdown,
|
|
87
|
+
- [Host Integration](/docs/reference/integration.md): Markdown renderers, Svelte custom hosts, Streamdown, Tiptap, Obsidian, and artifact lifecycle.
|
|
83
88
|
- [Security Runtime](/docs/reference/security.md): Threat model, sandbox iframe, postMessage bridge, policy, and fail-closed behavior.
|
|
84
|
-
- [
|
|
89
|
+
- [Packages](/docs/reference/packages.md): Package roles, installation matrix, and packaging strategy.
|
|
90
|
+
- [Slex Standard Artifacts](/docs/reference/standard.md): JSON Schema, component catalog, logic profile, capabilities catalog, conformance fixtures, and manifest.
|
|
85
91
|
- [ToolHost](/docs/reference/toolhost.md): Tool call rendering, built-in templates, custom templates, and submit boundaries.
|
|
86
92
|
- [Icon System](/docs/reference/icons.md): Phosphor icons, custom icon registration, Iconify fallback, and API reference.
|
|
87
93
|
- [Design Rationale](/docs/reference/rationale.md): Why SlexKit uses object literals, expressions, explicit fences, and secure/trusted modes.
|