@slexkit/mcp 0.3.3 → 0.5.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 +10 -43
- package/dist/data/llms-authoring.txt +2 -45
- package/dist/data/llms-capabilities.txt +2 -125
- package/dist/data/llms-components.txt +173 -615
- package/dist/data/llms-full.txt +1152 -7418
- package/dist/data/llms-runtime.txt +49 -1411
- package/dist/data/llms-toolhost.txt +1 -293
- package/dist/data/llms.txt +80 -69
- package/dist/data/slexkit-ai-manifest.json +1836 -3064
- package/dist/data/standard/slex-custom-elements.catalog.json +1134 -0
- package/dist/data/standard/slex-html-conformance.json +156 -0
- package/dist/data/standard/slex-html-profile.json +34 -0
- package/dist/data/standard/slex-sandbox-sdk.json +39 -0
- package/dist/data/standard/slex-standard-manifest.json +35 -0
- package/dist/data/standard/slex-static-policy.json +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13086 -1920
- package/dist/index.js.map +23 -5
- package/package.json +1 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slex-html-conformance",
|
|
3
|
+
"packageName": "slexkit",
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"schemaVersion": "2026-11-html",
|
|
6
|
+
"profileVersion": "1",
|
|
7
|
+
"fixtures": [
|
|
8
|
+
{
|
|
9
|
+
"id": "valid-native-html",
|
|
10
|
+
"kind": "valid",
|
|
11
|
+
"source": "<section><h2>Status</h2><p>Ready</p></section>",
|
|
12
|
+
"expected": {
|
|
13
|
+
"ok": true
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "valid-custom-element",
|
|
18
|
+
"kind": "valid",
|
|
19
|
+
"source": "<slex-stat id=\"count\" label=\"Count\" value=\"3\"></slex-stat>",
|
|
20
|
+
"expected": {
|
|
21
|
+
"ok": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "valid-inline-module",
|
|
26
|
+
"kind": "valid",
|
|
27
|
+
"source": "<button id=\"go\">Go</button><script type=\"module\">slex.root.querySelector('#go').textContent = 'Ready';</script>",
|
|
28
|
+
"expected": {
|
|
29
|
+
"ok": true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "valid-implicit-module",
|
|
34
|
+
"kind": "valid",
|
|
35
|
+
"source": "<output id=\"value\"></output><script>slex.root.querySelector('#value').textContent = '3';</script>",
|
|
36
|
+
"expected": {
|
|
37
|
+
"ok": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "valid-data-script",
|
|
42
|
+
"kind": "valid",
|
|
43
|
+
"source": "<script type=\"application/json\">{\"rows\":[1,2]}</script>",
|
|
44
|
+
"expected": {
|
|
45
|
+
"ok": true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "valid-style-and-svg",
|
|
50
|
+
"kind": "valid",
|
|
51
|
+
"source": "<style>.ok{color:green}</style><svg viewBox=\"0 0 10 10\"><circle cx=\"5\" cy=\"5\" r=\"4\"></circle></svg>",
|
|
52
|
+
"expected": {
|
|
53
|
+
"ok": true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"id": "invalid-object-source",
|
|
58
|
+
"kind": "invalid",
|
|
59
|
+
"source": "{ g: {}, layout: {} }",
|
|
60
|
+
"expected": {
|
|
61
|
+
"ok": false,
|
|
62
|
+
"diagnostic": "legacy-object-source"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "invalid-event-attribute",
|
|
67
|
+
"kind": "invalid",
|
|
68
|
+
"source": "<button onclick=\"run()\">Run</button>",
|
|
69
|
+
"expected": {
|
|
70
|
+
"ok": false,
|
|
71
|
+
"diagnostic": "inline-event-handler"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "invalid-external-script",
|
|
76
|
+
"kind": "invalid",
|
|
77
|
+
"source": "<script src=\"https://example.com/x.js\"></script>",
|
|
78
|
+
"expected": {
|
|
79
|
+
"ok": false,
|
|
80
|
+
"diagnostic": "external-script"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": "invalid-module-import",
|
|
85
|
+
"kind": "invalid",
|
|
86
|
+
"source": "<script type=\"module\">import 'https://example.com/x.js';</script>",
|
|
87
|
+
"expected": {
|
|
88
|
+
"ok": false,
|
|
89
|
+
"diagnostic": "external-import"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "invalid-dynamic-import",
|
|
94
|
+
"kind": "invalid",
|
|
95
|
+
"source": "<script>void import('https://example.com/x.js');</script>",
|
|
96
|
+
"expected": {
|
|
97
|
+
"ok": false,
|
|
98
|
+
"diagnostic": "external-import"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "invalid-embedded-frame",
|
|
103
|
+
"kind": "invalid",
|
|
104
|
+
"source": "<iframe src=\"https://example.com\"></iframe>",
|
|
105
|
+
"expected": {
|
|
106
|
+
"ok": false,
|
|
107
|
+
"diagnostic": "active-embedded-content"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "invalid-executable-url",
|
|
112
|
+
"kind": "invalid",
|
|
113
|
+
"source": "<a href=\"javascript:alert(1)\">Run</a>",
|
|
114
|
+
"expected": {
|
|
115
|
+
"ok": false,
|
|
116
|
+
"diagnostic": "executable-url"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"id": "invalid-base-element",
|
|
121
|
+
"kind": "invalid",
|
|
122
|
+
"source": "<base href=\"https://example.com/\"><p>Text</p>",
|
|
123
|
+
"expected": {
|
|
124
|
+
"ok": false,
|
|
125
|
+
"diagnostic": "base-element"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"id": "invalid-meta-refresh",
|
|
130
|
+
"kind": "invalid",
|
|
131
|
+
"source": "<meta http-equiv=\"refresh\" content=\"0;url=https://example.com\">",
|
|
132
|
+
"expected": {
|
|
133
|
+
"ok": false,
|
|
134
|
+
"diagnostic": "meta-navigation"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "invalid-external-stylesheet",
|
|
139
|
+
"kind": "invalid",
|
|
140
|
+
"source": "<link rel=\"stylesheet\" href=\"https://example.com/x.css\">",
|
|
141
|
+
"expected": {
|
|
142
|
+
"ok": false,
|
|
143
|
+
"diagnostic": "external-resource"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "invalid-module-syntax",
|
|
148
|
+
"kind": "invalid",
|
|
149
|
+
"source": "<script>const = ;</script>",
|
|
150
|
+
"expected": {
|
|
151
|
+
"ok": false,
|
|
152
|
+
"diagnostic": "invalid-module-script"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slex-html-profile",
|
|
3
|
+
"packageName": "slexkit",
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"schemaVersion": "2026-11-html",
|
|
6
|
+
"profileVersion": "1",
|
|
7
|
+
"fenceLanguage": "slex",
|
|
8
|
+
"sourceType": "HTML fragment string",
|
|
9
|
+
"content": [
|
|
10
|
+
"standard HTML",
|
|
11
|
+
"SVG",
|
|
12
|
+
"style",
|
|
13
|
+
"documented slex-* custom elements",
|
|
14
|
+
"inline module scripts"
|
|
15
|
+
],
|
|
16
|
+
"rejectedLegacyForms": [
|
|
17
|
+
"object g/layout envelope",
|
|
18
|
+
"bare component tree",
|
|
19
|
+
"state-only envelope",
|
|
20
|
+
"expression-string attributes"
|
|
21
|
+
],
|
|
22
|
+
"execution": "isolated frame; preview is static-only; commit may execute inline modules",
|
|
23
|
+
"hostOwned": [
|
|
24
|
+
"runtimeUrl",
|
|
25
|
+
"styleUrl",
|
|
26
|
+
"component registration",
|
|
27
|
+
"capability policy"
|
|
28
|
+
],
|
|
29
|
+
"stableIdentity": [
|
|
30
|
+
"blockId",
|
|
31
|
+
"id",
|
|
32
|
+
"data-key"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slex-sandbox-sdk",
|
|
3
|
+
"packageName": "slexkit",
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"global": "slex",
|
|
6
|
+
"members": {
|
|
7
|
+
"root": {
|
|
8
|
+
"kind": "Element",
|
|
9
|
+
"description": "Root of the current block document."
|
|
10
|
+
},
|
|
11
|
+
"signal": {
|
|
12
|
+
"kind": "AbortSignal",
|
|
13
|
+
"description": "Aborted before the current module scope is replaced or disposed."
|
|
14
|
+
},
|
|
15
|
+
"onDispose": {
|
|
16
|
+
"signature": "onDispose(fn)",
|
|
17
|
+
"description": "Release listeners and side effects before replacement/removal."
|
|
18
|
+
},
|
|
19
|
+
"onSnapshot": {
|
|
20
|
+
"signature": "onSnapshot(fn)",
|
|
21
|
+
"description": "Return JSON-serializable hidden state."
|
|
22
|
+
},
|
|
23
|
+
"onRestore": {
|
|
24
|
+
"signature": "onRestore(fn)",
|
|
25
|
+
"description": "Restore an explicit snapshot."
|
|
26
|
+
},
|
|
27
|
+
"api": {
|
|
28
|
+
"kind": "policy-gated host bridge"
|
|
29
|
+
},
|
|
30
|
+
"shared": {
|
|
31
|
+
"members": [
|
|
32
|
+
"get",
|
|
33
|
+
"set",
|
|
34
|
+
"subscribe"
|
|
35
|
+
],
|
|
36
|
+
"values": "JSON"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slex-standard-manifest",
|
|
3
|
+
"packageName": "slexkit",
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"schemaVersion": "2026-11-html",
|
|
6
|
+
"profileVersion": "1",
|
|
7
|
+
"generatedAt": "2026-11-10T17:23:19.705Z",
|
|
8
|
+
"positioning": "HTML-first interactive Markdown artifact",
|
|
9
|
+
"compatibility": {
|
|
10
|
+
"legacyObjectSource": false,
|
|
11
|
+
"expressionAttributes": false
|
|
12
|
+
},
|
|
13
|
+
"artifacts": {
|
|
14
|
+
"slex-html-profile.json": {
|
|
15
|
+
"path": "/standard/slex-html-profile.json",
|
|
16
|
+
"hash": "bbed2001"
|
|
17
|
+
},
|
|
18
|
+
"slex-custom-elements.catalog.json": {
|
|
19
|
+
"path": "/standard/slex-custom-elements.catalog.json",
|
|
20
|
+
"hash": "1d98a367"
|
|
21
|
+
},
|
|
22
|
+
"slex-sandbox-sdk.json": {
|
|
23
|
+
"path": "/standard/slex-sandbox-sdk.json",
|
|
24
|
+
"hash": "70f6c720"
|
|
25
|
+
},
|
|
26
|
+
"slex-static-policy.json": {
|
|
27
|
+
"path": "/standard/slex-static-policy.json",
|
|
28
|
+
"hash": "7df9bc24"
|
|
29
|
+
},
|
|
30
|
+
"slex-html-conformance.json": {
|
|
31
|
+
"path": "/standard/slex-html-conformance.json",
|
|
32
|
+
"hash": "837a84eb"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "slex-static-policy",
|
|
3
|
+
"packageName": "slexkit",
|
|
4
|
+
"version": "0.5.0",
|
|
5
|
+
"inspectionExecutesSource": false,
|
|
6
|
+
"rejected": [
|
|
7
|
+
"external scripts",
|
|
8
|
+
"JavaScript imports",
|
|
9
|
+
"inline event-handler attributes",
|
|
10
|
+
"embedded frames/plugins",
|
|
11
|
+
"base or navigation metadata",
|
|
12
|
+
"executable URL schemes"
|
|
13
|
+
],
|
|
14
|
+
"nativeNetworkDefaults": "blocked",
|
|
15
|
+
"note": "Static validity is not a security boundary; generated code still runs in an isolated frame."
|
|
16
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|