@feedmepos/mf-remy-panel 0.18.0-dev.1 → 0.18.0-dev.10
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/{HomeView-d5b3e760.js → HomeView-e4d3707b.js} +1 -1
- package/dist/{RemyButton-bb589a8c.js → RemyButton-3f9296fe.js} +1 -1
- package/dist/api/conversations.d.ts +1 -1
- package/dist/api/memory.d.ts +1 -13
- package/dist/{app-b703bd4a.js → app-888bebd3.js} +8706 -8516
- package/dist/app.d.ts +2 -0
- package/dist/app.js +1 -1
- package/dist/bootstrap/remy.d.ts +7 -2
- package/dist/components/chatPanel/MemoryFactsBadge.vue.d.ts +4 -1
- package/dist/components/chatPanel/actionCards/McpAppCard.vue.d.ts +17 -0
- package/dist/components/chatPanel/commands/mcpPromptInvocation.d.ts +12 -0
- package/dist/context/pageContext.d.ts +13 -0
- package/dist/stores/chatStore.d.ts +2 -0
- package/dist/stores/previewStore.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/chat.d.ts +5 -2
- package/package.json +1 -1
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { ChatMessage, ToolCall } from './types/chat';
|
|
2
|
+
export type { PageContextProvider, PageContextScalar, PageContextStateValue, PortalPageContext } from './context/pageContext';
|
|
3
|
+
export type { RemyChatOptions } from './bootstrap/remy';
|
|
2
4
|
export { useAppStore } from './stores/appStore';
|
|
3
5
|
export { useClientEvent } from './composables/useClientEvent';
|
|
4
6
|
export { default as FmApp } from './App.vue';
|
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-
|
|
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-888bebd3.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
package/dist/bootstrap/remy.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { type PageContextProvider } from '@/context/pageContext';
|
|
2
|
+
export type RemyChatOptions = {
|
|
2
3
|
backendUrl?: string;
|
|
3
4
|
licenseApiUrl?: string;
|
|
4
|
-
|
|
5
|
+
/** Optional host adapter for selected tabs, entities or filters. Read once per send. */
|
|
6
|
+
getPageContext?: PageContextProvider;
|
|
7
|
+
};
|
|
8
|
+
export declare function initializeRemyChat(options?: RemyChatOptions): Promise<void>;
|
|
9
|
+
export declare function initializeRemyChat(backendUrl?: string, licenseApiUrl?: string): Promise<void>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
-
|
|
2
|
+
context: {
|
|
3
|
+
facts?: string;
|
|
4
|
+
episodes?: string;
|
|
5
|
+
};
|
|
3
6
|
}
|
|
4
7
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
8
|
export default _default;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a tool call's MCP Apps (SEP-1865) UI resource.
|
|
3
|
+
*
|
|
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.
|
|
17
|
+
*/
|
|
1
18
|
import type { ToolCall } from '@/types/chat';
|
|
2
19
|
interface Props {
|
|
3
20
|
toolCall: ToolCall;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import type { McpPromptArgument } from './types';
|
|
2
|
+
/** Literal suffix this repo's MCP servers append to a prompt argument's
|
|
3
|
+
* description to flag it as accepting MULTIPLE completion picks — MCP's
|
|
4
|
+
* `completion/complete` has no native multi-select concept (confirmed
|
|
5
|
+
* against both the installed SDK's targeted spec version and its `draft`),
|
|
6
|
+
* so this is a repo-local UI convention, not a protocol extension. See
|
|
7
|
+
* `apps/remy-mcp/src/weather/plan-trip-prompt.ts`'s `interests` argument and
|
|
8
|
+
* remy-cli's identical `mcp-prompts.ts` convention. */
|
|
9
|
+
export declare const MCP_PROMPT_MULTI_SELECT_SUFFIX = " (select multiple)";
|
|
10
|
+
export declare function isMultiSelectMcpPromptArg(arg: McpPromptArgument): boolean;
|
|
11
|
+
/** `arg.description` with the multi-select marker suffix stripped, if
|
|
12
|
+
* present — never show the raw marker text to the user. */
|
|
13
|
+
export declare function displayMcpPromptArgDescription(arg: McpPromptArgument): string | undefined;
|
|
2
14
|
/**
|
|
3
15
|
* Names of `args` that are `required` but have no value (or only a
|
|
4
16
|
* blank/whitespace value) in `argValues` yet. Used by `ChatInput.vue` to
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type PageContextScalar = string | number | boolean;
|
|
2
|
+
export type PageContextStateValue = PageContextScalar | PageContextScalar[];
|
|
3
|
+
export interface PortalPageContext {
|
|
4
|
+
path: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
heading?: string;
|
|
7
|
+
state?: Record<string, PageContextStateValue>;
|
|
8
|
+
}
|
|
9
|
+
export type PageContextProvider = () => Partial<PortalPageContext> | null | undefined;
|
|
10
|
+
export declare function sanitizePortalPageContext(value: unknown): PortalPageContext | null;
|
|
11
|
+
export declare function setPageContextProvider(provider?: PageContextProvider): void;
|
|
12
|
+
/** Capture a bounded snapshot when the user presses Send, never at app startup. */
|
|
13
|
+
export declare function capturePortalPageContext(): PortalPageContext | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReportArtifactResult, ExcelExportActionCardResult, RcaInsightCardResult } from '@/types/chat';
|
|
2
|
-
export type PreviewPage = 'all-sessions' | 'tasks' | 'integrations' | 'memory';
|
|
2
|
+
export type PreviewPage = 'all-sessions' | 'tasks' | 'integrations' | 'dreamer' | 'memory';
|
|
3
3
|
export type AllSessionsTab = 'all' | 'this';
|
|
4
4
|
export type PreviewFocus = {
|
|
5
5
|
kind: 'docx';
|