@vivix-labs/studio-chat-mcp 0.1.11 → 0.1.12
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 +120 -0
- package/dist/chat-ui/index.html +21 -21
- package/dist/server.js +3 -2
- package/dist/shared.d.ts +2 -0
- package/package.json +8 -8
package/dist/server.js
CHANGED
|
@@ -29429,7 +29429,7 @@ data:
|
|
|
29429
29429
|
// package.json
|
|
29430
29430
|
var package_default = {
|
|
29431
29431
|
name: "@vivix-labs/studio-chat-mcp",
|
|
29432
|
-
version: "0.1.
|
|
29432
|
+
version: "0.1.12",
|
|
29433
29433
|
type: "module",
|
|
29434
29434
|
engines: {
|
|
29435
29435
|
node: ">=22.12.0"
|
|
@@ -38506,7 +38506,7 @@ var actionInput = external_exports.object({
|
|
|
38506
38506
|
function mapChatResult(result) {
|
|
38507
38507
|
const { bindings: _bindings, ...structuredContent } = result.structuredContent;
|
|
38508
38508
|
return {
|
|
38509
|
-
content: [{ type: "text", text: result.text }],
|
|
38509
|
+
content: result.text ? [{ type: "text", text: result.text }] : [],
|
|
38510
38510
|
structuredContent,
|
|
38511
38511
|
...(result.view || result.message) && {
|
|
38512
38512
|
_meta: {
|
|
@@ -38741,6 +38741,7 @@ function createChatServer(options2) {
|
|
|
38741
38741
|
// The component's CSP restricts HTTPS media to its declared media origins.
|
|
38742
38742
|
// This outer policy must permit those origins before the component can narrow them.
|
|
38743
38743
|
ui: {
|
|
38744
|
+
prefersBorder: false,
|
|
38744
38745
|
csp: {
|
|
38745
38746
|
connectDomains: [],
|
|
38746
38747
|
resourceDomains: [...options2.resourceDomains ?? defaultResourceDomains, "data:", "blob:"],
|
package/dist/shared.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ export interface ChatCardProps {
|
|
|
91
91
|
data: Record<string, unknown>;
|
|
92
92
|
projectId: string;
|
|
93
93
|
target: OperationTarget;
|
|
94
|
+
/** Theme the host currently displays. Absent when the host declares none; it may change while mounted. */
|
|
95
|
+
theme?: 'light' | 'dark';
|
|
94
96
|
/** Download an original card media URL through the MCP Apps host, when supported. */
|
|
95
97
|
download?(media: { uri: string; name: string }): Promise<void>;
|
|
96
98
|
/** Read bytes of a local media path declared by this card, without a public URL. */
|
package/package.json
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivix-labs/studio-chat-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.12.0"
|
|
7
7
|
},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsx scripts/build-chat-mcp.ts build",
|
|
10
|
-
"package": "tsx scripts/build-chat-mcp.ts package",
|
|
11
|
-
"check": "tsc --noEmit",
|
|
12
|
-
"test": "tsx --test tests/*.test.ts chat-ui/*.test.ts"
|
|
13
|
-
},
|
|
14
8
|
"devDependencies": {
|
|
15
9
|
"@modelcontextprotocol/client": "2.4.0",
|
|
16
10
|
"@modelcontextprotocol/core": "2.4.0",
|
|
@@ -46,5 +40,11 @@
|
|
|
46
40
|
"access": "public",
|
|
47
41
|
"registry": "https://registry.npmjs.org/",
|
|
48
42
|
"tag": "beta"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsx scripts/build-chat-mcp.ts build",
|
|
46
|
+
"package": "tsx scripts/build-chat-mcp.ts package",
|
|
47
|
+
"check": "tsc --noEmit",
|
|
48
|
+
"test": "tsx --test tests/*.test.ts chat-ui/*.test.ts"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|