@feedmepos/mf-remy-panel 0.18.0-dev.9 → 0.19.0-dev.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/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
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-1d9c8365.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-752d4bda.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
@@ -1,11 +1,19 @@
1
1
  /**
2
2
  * Renders a tool call's MCP Apps (SEP-1865) UI resource.
3
3
  *
4
- * `sandbox="allow-downloads"` and nothing else: scripts, forms, same-origin
5
- * and top-navigation all stay blocked, but a card whose point is handing the
6
- * user a file (menu-mcp's `buildMenuPortalImport` download card) needs this
7
- * one token without it Chrome blocks the download the click starts, since
8
- * the frame initiating it is sandboxed.
4
+ * Sandbox tokens, both load-bearing and deliberately just these two:
5
+ *
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.
9
17
  */
10
18
  import type { ToolCall } from '@/types/chat';
11
19
  interface Props {
@@ -0,0 +1,35 @@
1
+ export declare const MEMORY_CATEGORY_META: {
2
+ readonly profile: {
3
+ readonly label: "Profile";
4
+ readonly color: "#3b82f6";
5
+ };
6
+ readonly preference: {
7
+ readonly label: "Preferences";
8
+ readonly color: "#10b981";
9
+ };
10
+ readonly workflow: {
11
+ readonly label: "Workflows";
12
+ readonly color: "#8b5cf6";
13
+ };
14
+ readonly goal: {
15
+ readonly label: "Goals";
16
+ readonly color: "#f97316";
17
+ };
18
+ readonly concern: {
19
+ readonly label: "Concerns";
20
+ readonly color: "#f59e0b";
21
+ };
22
+ readonly experience: {
23
+ readonly label: "Learned tool lessons";
24
+ readonly color: "#ec4899";
25
+ };
26
+ };
27
+ export type ManagedMemoryCategory = keyof typeof MEMORY_CATEGORY_META;
28
+ export declare const MANAGED_MEMORY_CATEGORIES: ("profile" | "concern" | "preference" | "workflow" | "goal" | "experience")[];
29
+ export declare function buildMemoryCategoryGroups<T extends {
30
+ category: string;
31
+ status: string;
32
+ }>(memories: T[], categoryFilter?: string): {
33
+ category: string;
34
+ items: T[];
35
+ }[];