@emseepea/svelte 0.1.0 → 0.1.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/README.md +3 -19
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,24 +4,8 @@
|
|
|
4
4
|
It is unstyled and does not send requests, authenticate people, or authorize
|
|
5
5
|
server actions.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { parseResultView } from "@emseepea/server/ui";
|
|
11
|
-
|
|
12
|
-
const app = createMcpApp({ name: "Result", version: "1.0.0", parseResult: parseResultView });
|
|
13
|
-
const view = $derived($app.result ?? loadingView);
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<ResultCard {view} headingLevel={2} onAction={() => app.sendMessage("Continue")} />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
`createMcpApp` implements the standards-first MCP Apps initialization,
|
|
20
|
-
host-context, tool-result, cancellation, teardown, and `ui/message` lifecycle.
|
|
21
|
-
Keep domain result parsing and mapping in the adopter, and treat host messages
|
|
22
|
-
as untrusted.
|
|
23
|
-
|
|
24
|
-
For a self-contained resource that does not already use either framework, see
|
|
25
|
-
the measured [React and Svelte bundle guidance](../framework/README.md#choose-a-result-card-package).
|
|
7
|
+
Follow [Render an accessible result card](https://emseepea.github.io/emseepea/result-cards/)
|
|
8
|
+
for the checked model, Svelte renderer, Model Context Protocol Apps (MCP Apps)
|
|
9
|
+
lifecycle, and framework choice.
|
|
26
10
|
|
|
27
11
|
This package is open source under MIT and remains pre-alpha while its version is below 1.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emseepea/svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test:built": "node --test test/*.test.mjs"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@emseepea/server": "0.11.
|
|
31
|
+
"@emseepea/server": "0.11.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"svelte": "^5.0.0"
|