@feedmepos/mf-remy-panel 0.17.0 → 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-77bdbd02.js → HomeView-e4d3707b.js} +1 -1
- package/dist/{RemyButton-f7d8f1cb.js → RemyButton-3f9296fe.js} +1 -1
- package/dist/api/conversations.d.ts +7 -10
- package/dist/api/dreamer.d.ts +34 -0
- package/dist/api/featureFlags.d.ts +12 -6
- package/dist/api/mcpPrompts.d.ts +28 -0
- package/dist/api/memory.d.ts +8 -38
- package/dist/api/messages.d.ts +1 -1
- package/dist/{app-93241c3d.js → app-888bebd3.js} +10775 -9756
- 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/DreamerMonitor.vue.d.ts +2 -0
- package/dist/components/chatPanel/MemoryFactsBadge.vue.d.ts +4 -1
- package/dist/components/chatPanel/actionCards/McpAppCard.vue.d.ts +32 -0
- package/dist/components/chatPanel/commands/McpPromptArgsForm.vue.d.ts +24 -0
- package/dist/components/chatPanel/commands/mcpPromptInvocation.d.ts +23 -0
- package/dist/components/chatPanel/commands/types.d.ts +25 -1
- package/dist/context/pageContext.d.ts +13 -0
- package/dist/stores/chatStore.d.ts +26 -285
- package/dist/stores/exclusiveOperation.d.ts +13 -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 +15 -2
- package/package.json +4 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as a, openBlock as l, createElementBlock as i, createElementVNode as e, unref as E, createTextVNode as b, createStaticVNode as x, toDisplayString as p, createCommentVNode as m } from "vue";
|
|
2
|
-
import { u as w, a as B, b as _, R as N, _ as R } from "./app-
|
|
2
|
+
import { u as w, a as B, b as _, R as N, _ as R } from "./app-888bebd3.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as o, openBlock as i, createElementBlock as l, normalizeClass as t, createElementVNode as p, unref as u, createCommentVNode as d } from "vue";
|
|
2
|
-
import { u as y, R as _ } from "./app-
|
|
2
|
+
import { u as y, R as _ } from "./app-888bebd3.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
@@ -2,6 +2,8 @@ export interface ConversationResponseDto {
|
|
|
2
2
|
id: string;
|
|
3
3
|
userId: string;
|
|
4
4
|
businessId: string;
|
|
5
|
+
restaurantId?: string;
|
|
6
|
+
restaurantName?: string;
|
|
5
7
|
title: string;
|
|
6
8
|
lastMessageAt: string;
|
|
7
9
|
messageCount?: number;
|
|
@@ -15,14 +17,9 @@ export interface PaginatedConversationsResponseDto {
|
|
|
15
17
|
limit: number;
|
|
16
18
|
hasMore: boolean;
|
|
17
19
|
}
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
title: string;
|
|
23
|
-
}
|
|
24
|
-
export declare function createConversation(businessId: string): Promise<ConversationResponseDto>;
|
|
20
|
+
export declare function createConversation(businessId: string, restaurant?: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}): Promise<ConversationResponseDto>;
|
|
25
24
|
export declare function fetchConversations(businessId: string, page?: number, limit?: number): Promise<PaginatedConversationsResponseDto>;
|
|
26
|
-
export declare function
|
|
27
|
-
export declare function updateConversation(conversationId: string, data: UpdateConversationDto): Promise<ConversationResponseDto>;
|
|
28
|
-
export declare function deleteConversation(conversationId: string): Promise<void>;
|
|
25
|
+
export declare function deleteConversation(conversationId: string, businessId: string): Promise<void>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DreamerWorkItem {
|
|
2
|
+
conversationId: string;
|
|
3
|
+
title: string;
|
|
4
|
+
status: 'running' | 'queued';
|
|
5
|
+
lastMessageAt: string;
|
|
6
|
+
leaseUntil: string | null;
|
|
7
|
+
leaseOwner: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface DreamerResolvedItem {
|
|
10
|
+
conversationId: string;
|
|
11
|
+
conversationTitle: string;
|
|
12
|
+
title: string;
|
|
13
|
+
summary: string;
|
|
14
|
+
messageCount: number;
|
|
15
|
+
resolvedAt: string;
|
|
16
|
+
changes: Array<{
|
|
17
|
+
id: string;
|
|
18
|
+
text: string;
|
|
19
|
+
category: string;
|
|
20
|
+
status: string;
|
|
21
|
+
action: string;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export interface DreamerMonitorResponse {
|
|
25
|
+
observedAt: string;
|
|
26
|
+
counts: {
|
|
27
|
+
running: number;
|
|
28
|
+
queued: number;
|
|
29
|
+
resolved: number;
|
|
30
|
+
};
|
|
31
|
+
work: DreamerWorkItem[];
|
|
32
|
+
resolved: DreamerResolvedItem[];
|
|
33
|
+
}
|
|
34
|
+
export declare function fetchDreamerMonitor(businessId: string): Promise<DreamerMonitorResponse>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
export declare enum RemyFeatureFlag {
|
|
2
2
|
Task = "portal_remy_task",
|
|
3
|
-
ConnectedApp = "portal_remy_connected_app"
|
|
3
|
+
ConnectedApp = "portal_remy_connected_app",
|
|
4
|
+
MemoryEngine = "portal_remy_memory_engine"
|
|
4
5
|
}
|
|
5
6
|
export interface FeatureFlags {
|
|
6
7
|
[RemyFeatureFlag.Task]: boolean;
|
|
7
8
|
[RemyFeatureFlag.ConnectedApp]: boolean;
|
|
9
|
+
[RemyFeatureFlag.MemoryEngine]: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface FeatureFlagRequestOptions {
|
|
12
|
+
forceRefresh?: boolean;
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
|
-
*
|
|
11
|
-
* (env override → Flagsmith → false).
|
|
12
|
-
*
|
|
13
|
-
*
|
|
15
|
+
* Global environment feature flags, resolved by the backend
|
|
16
|
+
* (env override → Flagsmith → false). `businessId` is request context for
|
|
17
|
+
* tenant-safe UI updates, not a rollout-target identity. The backend owns the
|
|
18
|
+
* environment and key. Any error fails closed for that call.
|
|
14
19
|
*/
|
|
15
|
-
export declare function getFeatureFlags(): Promise<FeatureFlags>;
|
|
20
|
+
export declare function getFeatureFlags(explicitBusinessId?: string, options?: FeatureFlagRequestOptions): Promise<FeatureFlags>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface McpPromptArgumentDto {
|
|
2
|
+
name: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface McpPromptDto {
|
|
7
|
+
name: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
arguments: McpPromptArgumentDto[];
|
|
11
|
+
}
|
|
12
|
+
/** Fetches every prompt remy-mcp advertises (standard `prompts/list`), via
|
|
13
|
+
* remy-agent-api's `McpController`. Resolves to an empty array (never
|
|
14
|
+
* throws) if the backend has no MCP server connected or the request fails
|
|
15
|
+
* for any reason — mirrors remy-cli's fault-tolerant "no prompts = no
|
|
16
|
+
* slash commands" convention. */
|
|
17
|
+
export declare function fetchMcpPrompts(): Promise<McpPromptDto[]>;
|
|
18
|
+
/** Resolves a single MCP prompt (standard `prompts/get`) into plain text via
|
|
19
|
+
* remy-agent-api. Throws on failure — callers decide how to surface the
|
|
20
|
+
* error (unlike `fetchMcpPrompts`, this is called at send-time so silently
|
|
21
|
+
* swallowing a failure would drop the user's message). */
|
|
22
|
+
export declare function resolveMcpPrompt(name: string, args: Record<string, string>): Promise<string>;
|
|
23
|
+
/** Live autocomplete suggestions for one prompt argument (standard MCP
|
|
24
|
+
* `completion/complete`, proxied by remy-agent-api's `McpController`) —
|
|
25
|
+
* consumed by `McpPromptArgsForm.vue` while the user types. Never throws
|
|
26
|
+
* and resolves to `[]` on any failure — this only powers optional
|
|
27
|
+
* suggestions, never something that should block typing. */
|
|
28
|
+
export declare function completeMcpPromptArgument(name: string, argumentName: string, value: string, context?: Record<string, string>): Promise<string[]>;
|
package/dist/api/memory.d.ts
CHANGED
|
@@ -1,52 +1,35 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
1
|
+
export type KnownMemoryCategory = 'profile' | 'concern' | 'preference' | 'workflow' | 'goal' | 'experience';
|
|
2
|
+
export type MemoryCategory = KnownMemoryCategory | (string & {});
|
|
3
|
+
export type MemoryEvidence = 'explicit' | 'observed' | 'inferred';
|
|
4
|
+
export type KnownMemoryScope = 'general' | 'report' | 'menu' | 'marketing';
|
|
5
|
+
export type MemoryScope = KnownMemoryScope | (string & {});
|
|
6
|
+
export type MemoryStatus = 'active' | 'superseded' | 'archived';
|
|
4
7
|
export interface MemoryDto {
|
|
5
8
|
id: string;
|
|
6
9
|
text: string;
|
|
7
10
|
category: MemoryCategory;
|
|
11
|
+
evidence?: MemoryEvidence;
|
|
8
12
|
scope: MemoryScope;
|
|
9
13
|
status: MemoryStatus;
|
|
10
14
|
confidence: number;
|
|
11
15
|
evidenceCount: number;
|
|
12
|
-
useCount: number;
|
|
13
16
|
pinned: boolean;
|
|
14
17
|
userEdited: boolean;
|
|
15
18
|
lastConfirmedAt: string;
|
|
16
|
-
lastUsedAt: string | null;
|
|
17
19
|
supersededBy: string | null;
|
|
18
|
-
conflictWith: string | null;
|
|
19
20
|
episodeIds: string[];
|
|
20
21
|
conversationIds: string[];
|
|
21
22
|
createdAt: string;
|
|
22
23
|
updatedAt: string;
|
|
23
24
|
}
|
|
24
|
-
export interface MemoryHistoryEntryDto {
|
|
25
|
-
at: string;
|
|
26
|
-
action: string;
|
|
27
|
-
detail?: string;
|
|
28
|
-
actor: 'system' | 'user';
|
|
29
|
-
}
|
|
30
25
|
export interface MemoryEdgeDto {
|
|
31
26
|
id: string;
|
|
32
27
|
from: string;
|
|
33
28
|
fromType: 'memory' | 'episode';
|
|
34
29
|
to: string;
|
|
35
30
|
toType: 'memory' | 'episode';
|
|
36
|
-
relation: 'supersedes' | 'related_to' | '
|
|
31
|
+
relation: 'supersedes' | 'related_to' | 'derived_from';
|
|
37
32
|
weight: number;
|
|
38
|
-
resolution: 'kept_this' | 'kept_other' | 'kept_both' | null;
|
|
39
|
-
}
|
|
40
|
-
export interface MemoryDetailDto extends MemoryDto {
|
|
41
|
-
history: MemoryHistoryEntryDto[];
|
|
42
|
-
sourceMessageIds: string[];
|
|
43
|
-
edges: MemoryEdgeDto[];
|
|
44
|
-
episodes: Array<{
|
|
45
|
-
id: string;
|
|
46
|
-
title: string;
|
|
47
|
-
endedAt: string;
|
|
48
|
-
conversationId: string;
|
|
49
|
-
}>;
|
|
50
33
|
}
|
|
51
34
|
export interface MemoryListResponse {
|
|
52
35
|
data: MemoryDto[];
|
|
@@ -54,11 +37,6 @@ export interface MemoryListResponse {
|
|
|
54
37
|
page: number;
|
|
55
38
|
limit: number;
|
|
56
39
|
hasMore: boolean;
|
|
57
|
-
unresolvedConflicts: Array<{
|
|
58
|
-
edgeId: string;
|
|
59
|
-
from: string;
|
|
60
|
-
to: string;
|
|
61
|
-
}>;
|
|
62
40
|
}
|
|
63
41
|
export interface GraphNodeDto {
|
|
64
42
|
id: string;
|
|
@@ -70,7 +48,6 @@ export interface GraphNodeDto {
|
|
|
70
48
|
confidence?: number;
|
|
71
49
|
pinned?: boolean;
|
|
72
50
|
endedAt?: string;
|
|
73
|
-
conversationId?: string;
|
|
74
51
|
}
|
|
75
52
|
export interface MemoryGraphResponse {
|
|
76
53
|
nodes: GraphNodeDto[];
|
|
@@ -81,14 +58,10 @@ export interface EpisodeDto {
|
|
|
81
58
|
conversationId: string;
|
|
82
59
|
title: string;
|
|
83
60
|
summary: string;
|
|
84
|
-
topics: string[];
|
|
85
|
-
outcome: string | null;
|
|
86
61
|
startedAt: string;
|
|
87
62
|
endedAt: string;
|
|
88
63
|
messageCount: number;
|
|
89
64
|
memoryIds: string[];
|
|
90
|
-
/** Read-time cluster id (newest episode of the cluster). Display-only. */
|
|
91
|
-
groupId?: string;
|
|
92
65
|
}
|
|
93
66
|
export interface EpisodeListResponse {
|
|
94
67
|
data: EpisodeDto[];
|
|
@@ -108,7 +81,6 @@ export declare function fetchMemories(businessId: string, opts?: {
|
|
|
108
81
|
page?: number;
|
|
109
82
|
limit?: number;
|
|
110
83
|
}): Promise<MemoryListResponse>;
|
|
111
|
-
export declare function fetchMemory(businessId: string, id: string): Promise<MemoryDetailDto>;
|
|
112
84
|
export declare function updateMemory(businessId: string, id: string, patch: {
|
|
113
85
|
text?: string;
|
|
114
86
|
category?: string;
|
|
@@ -116,8 +88,6 @@ export declare function updateMemory(businessId: string, id: string, patch: {
|
|
|
116
88
|
}): Promise<MemoryDto>;
|
|
117
89
|
export declare function forgetMemory(businessId: string, id: string): Promise<void>;
|
|
118
90
|
export declare function pinMemory(businessId: string, id: string, pinned: boolean): Promise<MemoryDto>;
|
|
119
|
-
export declare function restoreMemory(businessId: string, id: string): Promise<MemoryDto>;
|
|
120
|
-
export declare function resolveConflict(businessId: string, edgeId: string, keep: 'from' | 'to' | 'both'): Promise<void>;
|
|
121
91
|
export declare function fetchMemoryGraph(businessId: string): Promise<MemoryGraphResponse>;
|
|
122
92
|
export declare function fetchEpisodes(businessId: string, page?: number, limit?: number): Promise<EpisodeListResponse>;
|
|
123
93
|
export declare function fetchEpisode(businessId: string, id: string): Promise<EpisodeDetailDto>;
|
package/dist/api/messages.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ export interface PaginatedMessagesResponseDto {
|
|
|
19
19
|
limit: number;
|
|
20
20
|
hasMore: boolean;
|
|
21
21
|
}
|
|
22
|
-
export declare function fetchMessages(conversationId: string, page?: number, limit?: number): Promise<PaginatedMessagesResponseDto>;
|
|
22
|
+
export declare function fetchMessages(conversationId: string, businessId: string, page?: number, limit?: number): Promise<PaginatedMessagesResponseDto>;
|
|
23
23
|
export declare function convertToChMessage(dto: MessageResponseDto): ChatMessage;
|