@feedmepos/mf-remy-panel 0.20.0 → 0.21.0-dev.2
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-c098729c.js → HomeView-350f1eaa.js} +1 -1
- package/dist/{RemyButton-49e83a3c.js → RemyButton-cfa8e5b3.js} +1 -1
- package/dist/api/contextualSuggestions.d.ts +20 -0
- package/dist/api/dreamer.d.ts +0 -2
- package/dist/api/memory.d.ts +2 -1
- package/dist/{app-5fa59c85.js → app-78f777c7.js} +15469 -14751
- package/dist/app.d.ts +1 -0
- package/dist/app.js +1 -1
- package/dist/bootstrap/remy.d.ts +4 -1
- package/dist/components/chatPanel/ChatInput.vue.d.ts +28 -1
- package/dist/components/chatPanel/MemoryActionBadge.vue.d.ts +15 -0
- package/dist/components/chatPanel/contextualStart.d.ts +19 -0
- package/dist/components/chatPanel/memoryActionFeedback.d.ts +14 -0
- package/dist/components/memory/dreamerLiveState.d.ts +27 -0
- package/dist/components/memory/memoryCategories.d.ts +5 -1
- package/dist/components/memory/memoryGraphRelations.d.ts +17 -0
- package/dist/context/navigationContext.d.ts +13 -0
- package/dist/context/pageContext.d.ts +2 -0
- package/dist/stores/appStore.d.ts +1 -1
- package/dist/stores/previewStore.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/components/chatPanel/DreamerMonitor.vue.d.ts +0 -2
- /package/dist/components/memory/{EpisodeTimeline.vue.d.ts → DreamerTab.vue.d.ts} +0 -0
package/dist/app.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { ChatMessage, ToolCall } from './types/chat';
|
|
2
2
|
export type { PageContextProvider, PageContextScalar, PageContextStateValue, PortalPageContext } from './context/pageContext';
|
|
3
|
+
export type { NavigationContextProvider, PortalNavigationContext, PortalNavigationItem } from './context/navigationContext';
|
|
3
4
|
export type { RemyChatOptions } from './bootstrap/remy';
|
|
4
5
|
export { useAppStore } from './stores/appStore';
|
|
5
6
|
export { useClientEvent } from './composables/useClientEvent';
|
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-78f777c7.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
package/dist/bootstrap/remy.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type PageContextProvider } from '@/context/pageContext';
|
|
2
|
+
import { type NavigationContextProvider } from '@/context/navigationContext';
|
|
2
3
|
export type RemyChatOptions = {
|
|
3
4
|
backendUrl?: string;
|
|
4
5
|
licenseApiUrl?: string;
|
|
5
6
|
/** Optional host adapter for selected tabs, entities or filters. Read once per send. */
|
|
6
7
|
getPageContext?: PageContextProvider;
|
|
8
|
+
/** Optional host adapter for the module navigation currently available to this user. */
|
|
9
|
+
getNavigationContext?: NavigationContextProvider;
|
|
7
10
|
};
|
|
8
11
|
export declare function initializeRemyChat(options?: RemyChatOptions): Promise<void>;
|
|
9
|
-
export declare function initializeRemyChat(backendUrl?: string, licenseApiUrl?: string): Promise<void>;
|
|
12
|
+
export declare function initializeRemyChat(backendUrl?: string, licenseApiUrl?: string, getNavigationContext?: NavigationContextProvider): Promise<void>;
|
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
compact?: boolean | undefined;
|
|
3
|
+
}>, {
|
|
4
|
+
compact: boolean;
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
compact?: boolean | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
compact: boolean;
|
|
9
|
+
}>>> & Readonly<{}>, {
|
|
10
|
+
compact: boolean;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
12
|
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_Prettify<T> = {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} & {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ToolCall } from '@/types/chat';
|
|
2
|
+
interface Props {
|
|
3
|
+
toolCall: ToolCall;
|
|
4
|
+
}
|
|
5
|
+
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>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MemoryScope } from '@/api/memory';
|
|
2
|
+
import type { PortalPageContext } from '@/context/pageContext';
|
|
3
|
+
export interface ContextualSuggestion {
|
|
4
|
+
id: string;
|
|
5
|
+
prompt: string;
|
|
6
|
+
source: 'fallback' | 'generated';
|
|
7
|
+
}
|
|
8
|
+
export interface ContextualStart {
|
|
9
|
+
workspaceLabel: string;
|
|
10
|
+
memoryScope: MemoryScope;
|
|
11
|
+
suggestions: ContextualSuggestion[];
|
|
12
|
+
}
|
|
13
|
+
export interface WorkspaceChoice {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
path?: string;
|
|
17
|
+
}
|
|
18
|
+
export type WorkspaceSelection = 'auto' | 'none' | string;
|
|
19
|
+
export declare function buildContextualStart(pageContext: PortalPageContext | null, workspaceSelection?: WorkspaceSelection, workspaceChoices?: readonly WorkspaceChoice[], moduleLabel?: string): ContextualStart;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToolCall } from '@/types/chat';
|
|
2
|
+
export type MemoryAction = 'recall' | 'remember' | 'correct' | 'forget';
|
|
3
|
+
export type MemoryActionTone = 'pending' | 'success' | 'error';
|
|
4
|
+
export interface MemoryActionFeedback {
|
|
5
|
+
action: MemoryAction;
|
|
6
|
+
label: string;
|
|
7
|
+
tone: MemoryActionTone;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Converts the streamed memoryTool state into honest, action-specific UI copy.
|
|
11
|
+
* Tool outputs return rejected/error as normal data, so output-available alone
|
|
12
|
+
* must not be presented as a successful memory change.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getMemoryActionFeedback(toolCall: ToolCall): MemoryActionFeedback | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DreamerResolvedItem, DreamerWorkItem } from '@/api/dreamer';
|
|
2
|
+
export type DreamerLiveTone = 'refining' | 'waiting' | 'complete';
|
|
3
|
+
export type DreamerStageState = 'complete' | 'active' | 'pending';
|
|
4
|
+
export interface DreamerStage {
|
|
5
|
+
label: string;
|
|
6
|
+
state: DreamerStageState;
|
|
7
|
+
}
|
|
8
|
+
export interface DreamerLiveState {
|
|
9
|
+
tone: DreamerLiveTone;
|
|
10
|
+
label: string;
|
|
11
|
+
detail: string;
|
|
12
|
+
headline: string;
|
|
13
|
+
description: string;
|
|
14
|
+
stages: DreamerStage[];
|
|
15
|
+
visible: boolean;
|
|
16
|
+
isWorking: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface DreamerLiveStateInput {
|
|
19
|
+
running: DreamerWorkItem[];
|
|
20
|
+
queued: DreamerWorkItem[];
|
|
21
|
+
completed: DreamerResolvedItem | null;
|
|
22
|
+
liveStatusAvailable: boolean;
|
|
23
|
+
latestResolvedAt?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function buildDreamerLiveState({ running, queued, completed, liveStatusAvailable, latestResolvedAt }: DreamerLiveStateInput): DreamerLiveState;
|
|
26
|
+
export declare function dreamerPollDelay(workCount: number, pageHidden: boolean): number;
|
|
27
|
+
export {};
|
|
@@ -19,13 +19,17 @@ export declare const MEMORY_CATEGORY_META: {
|
|
|
19
19
|
readonly label: "Concerns";
|
|
20
20
|
readonly color: "#f59e0b";
|
|
21
21
|
};
|
|
22
|
+
readonly misc: {
|
|
23
|
+
readonly label: "Misc";
|
|
24
|
+
readonly color: "#64748b";
|
|
25
|
+
};
|
|
22
26
|
readonly experience: {
|
|
23
27
|
readonly label: "Learned tool lessons";
|
|
24
28
|
readonly color: "#ec4899";
|
|
25
29
|
};
|
|
26
30
|
};
|
|
27
31
|
export type ManagedMemoryCategory = keyof typeof MEMORY_CATEGORY_META;
|
|
28
|
-
export declare const MANAGED_MEMORY_CATEGORIES: ("profile" | "concern" | "preference" | "workflow" | "goal" | "experience")[];
|
|
32
|
+
export declare const MANAGED_MEMORY_CATEGORIES: ("profile" | "concern" | "preference" | "workflow" | "goal" | "misc" | "experience")[];
|
|
29
33
|
export declare function buildMemoryCategoryGroups<T extends {
|
|
30
34
|
category: string;
|
|
31
35
|
status: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { MemoryEdgeDto } from '@/api/memory';
|
|
2
|
+
/** Upper half of the API's 0.70–0.90 semantic-relatedness band. */
|
|
3
|
+
export declare const STRONG_RELATED_WEIGHT = 0.82;
|
|
4
|
+
export interface MemoryRelationAppearance {
|
|
5
|
+
stroke: string;
|
|
6
|
+
strokeWidth: number;
|
|
7
|
+
dasharray?: string;
|
|
8
|
+
opacity: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MemoryRelationSpring {
|
|
11
|
+
length: number;
|
|
12
|
+
strength: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function isStrongRelatedEdge(edge: MemoryEdgeDto): boolean;
|
|
15
|
+
export declare function isMemoryRelationVisible(edge: MemoryEdgeDto, showWeakLinks: boolean): boolean;
|
|
16
|
+
export declare function memoryRelationAppearance(edge: MemoryEdgeDto): MemoryRelationAppearance;
|
|
17
|
+
export declare function memoryRelationSpring(edge: MemoryEdgeDto): MemoryRelationSpring;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PortalNavigationItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PortalNavigationContext {
|
|
7
|
+
moduleLabel?: string;
|
|
8
|
+
items: PortalNavigationItem[];
|
|
9
|
+
}
|
|
10
|
+
export type NavigationContextProvider = () => Partial<PortalNavigationContext> | null | undefined;
|
|
11
|
+
export declare function sanitizePortalNavigationContext(value: unknown): PortalNavigationContext | null;
|
|
12
|
+
export declare function setNavigationContextProvider(provider?: NavigationContextProvider): void;
|
|
13
|
+
export declare function capturePortalNavigationContext(): PortalNavigationContext | null;
|
|
@@ -9,5 +9,7 @@ export interface PortalPageContext {
|
|
|
9
9
|
export type PageContextProvider = () => Partial<PortalPageContext> | null | undefined;
|
|
10
10
|
export declare function sanitizePortalPageContext(value: unknown): PortalPageContext | null;
|
|
11
11
|
export declare function setPageContextProvider(provider?: PageContextProvider): void;
|
|
12
|
+
/** Observe browser and SPA route changes without depending on the host router implementation. */
|
|
13
|
+
export declare function subscribePortalPageContextChanges(listener: () => void): () => void;
|
|
12
14
|
/** Capture a bounded snapshot when the user presses Send, never at app startup. */
|
|
13
15
|
export declare function capturePortalPageContext(): PortalPageContext | null;
|
|
@@ -74,5 +74,5 @@ export declare const useAppStore: import("pinia").StoreDefinition<"app", Pick<{
|
|
|
74
74
|
activate: (options?: ActivateOptions) => void;
|
|
75
75
|
loadTokenBalance: () => Promise<void>;
|
|
76
76
|
close: () => void;
|
|
77
|
-
}, "
|
|
77
|
+
}, "close" | "initialize" | "activate" | "loadTokenBalance">>;
|
|
78
78
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocxExportResult, ExcelExportActionCardResult, RcaInsightCardResult } from '@/types/chat';
|
|
2
|
-
export type PreviewPage = 'all-sessions' | 'tasks' | 'integrations' | '
|
|
2
|
+
export type PreviewPage = 'all-sessions' | 'tasks' | 'integrations' | 'memory';
|
|
3
3
|
export type AllSessionsTab = 'all' | 'this';
|
|
4
4
|
export type PreviewFocus = {
|
|
5
5
|
kind: 'docx';
|