@feedmepos/mf-remy-panel 0.19.0-dev.7 → 0.19.0-dev.8

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/dist/app.d.ts CHANGED
@@ -17,4 +17,3 @@ export declare const RemyButton: import("vue").DefineComponent<{}, {}, {}, {}, {
17
17
  }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
18
18
  onClick?: (() => any) | undefined;
19
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
- export { default as RemyAvatar } from './components/avatar/RemyAvatar.vue';
package/dist/app.js CHANGED
@@ -1,16 +1,15 @@
1
1
  import "vue";
2
- import { C as m, A as o, R as p, c as n, i as u, d as A, r as C, u as R, b as l } from "./app-aea34550.js";
2
+ import { C as o, A as p, c as m, i as n, d as u, r as C, u as l, b as A } from "./app-4ef188fd.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
6
6
  export {
7
- m as ChatPanel,
8
- o as FmApp,
9
- p as RemyAvatar,
10
- n as RemyButton,
11
- u as i18nMessages,
12
- A as initializeRemyChat,
7
+ o as ChatPanel,
8
+ p as FmApp,
9
+ m as RemyButton,
10
+ n as i18nMessages,
11
+ u as initializeRemyChat,
13
12
  C as router,
14
- R as useAppStore,
15
- l as useClientEvent
13
+ l as useAppStore,
14
+ A as useClientEvent
16
15
  };
@@ -1,19 +1,11 @@
1
1
  /**
2
- * Renders a tool call's MCP Apps (SEP-1865) UI resource.
2
+ * Renders a tool call's MCP Apps (SEP-1865) UI resource in a sandboxed iframe.
3
3
  *
4
- * Sandbox tokens, both load-bearing and deliberately just these two:
4
+ * The card runs its own scripts, so an MCP server ships its own interactive UI
5
+ * and no client needs a component per tool.
5
6
  *
6
- * - `allow-downloads` a card whose point is handing the user a file
7
- * (menu-mcp's `buildMenuPortalImport` download card) is dead without it;
8
- * Chrome blocks any download started from a sandboxed frame.
9
- * - `allow-same-origin` — lets THIS component read `contentDocument` to
10
- * measure the card, so the frame fits its content instead of padding every
11
- * card out to a fixed height.
12
- *
13
- * NEVER add `allow-scripts`. Together with `allow-same-origin` it lets the
14
- * framed document reach this origin's storage and script context — the two
15
- * tokens are safe only apart. Measuring from the parent is what buys us
16
- * auto-height without granting the card any script at all.
7
+ * NEVER add `allow-same-origin`: with `allow-scripts` it lets the card run as
8
+ * this origin. Apart, both are safe.
17
9
  */
18
10
  import type { ToolCall } from '@/types/chat';
19
11
  interface Props {
@@ -21,7 +21,6 @@ interface ChatStoreSetup {
21
21
  composerGeneration: Ref<number>;
22
22
  messages: Ref<ChatMessage[]>;
23
23
  isStreaming: ComputedRef<boolean>;
24
- hasError: ComputedRef<boolean>;
25
24
  mcpPromptCommands: Ref<SlashCommand[]>;
26
25
  currentConversationId: Ref<string | null>;
27
26
  conversations: Ref<Conversation[]>;
@@ -48,5 +47,5 @@ interface ChatStoreSetup {
48
47
  deleteCurrentConversation: () => Promise<void>;
49
48
  lastContextSnapshot: Ref<ContextSnapshot | null>;
50
49
  }
51
- export declare const useChatStore: import("pinia").StoreDefinition<"chat", Pick<ChatStoreSetup, "inputText" | "pendingCommand" | "pendingImages" | "pendingAttachments" | "composerGeneration" | "messages" | "mcpPromptCommands" | "currentConversationId" | "conversations" | "isLoadingConversation" | "isLoadingConversations" | "isLoadingMoreConversations" | "hasMoreConversations" | "isLoadingMoreMessages" | "hasMoreMessages" | "lastContextSnapshot">, Pick<ChatStoreSetup, "isStreaming" | "hasError">, Pick<ChatStoreSetup, "initializeChatTransport" | "sendMessage" | "stopStreaming" | "clearConversation" | "updateMessageFeedback" | "addLocalAssistantMessage" | "loadMcpPrompts" | "loadConversations" | "loadMoreConversations" | "createNewConversation" | "createConversationAndSendMessage" | "loadConversation" | "loadMoreMessages" | "switchConversation" | "deleteCurrentConversation">>;
50
+ export declare const useChatStore: import("pinia").StoreDefinition<"chat", Pick<ChatStoreSetup, "inputText" | "pendingCommand" | "pendingImages" | "pendingAttachments" | "composerGeneration" | "messages" | "mcpPromptCommands" | "currentConversationId" | "conversations" | "isLoadingConversation" | "isLoadingConversations" | "isLoadingMoreConversations" | "hasMoreConversations" | "isLoadingMoreMessages" | "hasMoreMessages" | "lastContextSnapshot">, Pick<ChatStoreSetup, "isStreaming">, Pick<ChatStoreSetup, "initializeChatTransport" | "sendMessage" | "stopStreaming" | "clearConversation" | "updateMessageFeedback" | "addLocalAssistantMessage" | "loadMcpPrompts" | "loadConversations" | "loadMoreConversations" | "createNewConversation" | "createConversationAndSendMessage" | "loadConversation" | "loadMoreMessages" | "switchConversation" | "deleteCurrentConversation">>;
52
51
  export {};