@feedmepos/mf-remy-panel 0.20.0-dev.1 → 0.21.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 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-35e688e9.js";
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-32e89eb4.js";
3
3
  import "pinia";
4
4
  import "@feedmepos/mf-common";
5
5
  import "vue-router";
@@ -1,2 +1,29 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
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,105 @@
1
+ import type { MemoryDto, MemoryScope } from '@/api/memory';
2
+ import type { PortalPageContext } from '@/context/pageContext';
3
+ import type { Conversation } from '@/types/chat';
4
+ export interface ContextualSuggestion {
5
+ id: string;
6
+ label: string;
7
+ detail: string;
8
+ prompt: string;
9
+ source: 'page' | 'history' | 'memory';
10
+ }
11
+ export interface ContextualStart {
12
+ workspaceLabel: string;
13
+ workspaceDetail: string;
14
+ memoryScope: MemoryScope;
15
+ suggestions: [ContextualSuggestion, ContextualSuggestion];
16
+ }
17
+ export declare const WORKSPACE_CHOICES: readonly [{
18
+ readonly id: "auto";
19
+ readonly label: "Current page";
20
+ }, {
21
+ readonly id: "product";
22
+ readonly label: "Products";
23
+ readonly path: "/menu/product";
24
+ }, {
25
+ readonly id: "category";
26
+ readonly label: "Category";
27
+ readonly path: "/menu/category";
28
+ }, {
29
+ readonly id: "subcategory";
30
+ readonly label: "Subcategory";
31
+ readonly path: "/menu/subcategory";
32
+ }, {
33
+ readonly id: "group";
34
+ readonly label: "Group";
35
+ readonly path: "/menu/group";
36
+ }, {
37
+ readonly id: "takeaway";
38
+ readonly label: "Takeaway";
39
+ readonly path: "/menu/takeaway";
40
+ }, {
41
+ readonly id: "scheduler";
42
+ readonly label: "Scheduler";
43
+ readonly path: "/menu/scheduler";
44
+ }, {
45
+ readonly id: "variant";
46
+ readonly label: "Variant";
47
+ readonly path: "/menu/variant";
48
+ }, {
49
+ readonly id: "order-pacing";
50
+ readonly label: "Order pacing";
51
+ readonly path: "/menu/order-pacing";
52
+ }, {
53
+ readonly id: "recipe";
54
+ readonly label: "Recipe";
55
+ readonly path: "/menu/recipe";
56
+ }, {
57
+ readonly id: "ingredient";
58
+ readonly label: "Ingredient";
59
+ readonly path: "/menu/ingredient";
60
+ }, {
61
+ readonly id: "unit";
62
+ readonly label: "Unit";
63
+ readonly path: "/menu/unit";
64
+ }, {
65
+ readonly id: "cooking-guide";
66
+ readonly label: "Cooking guide";
67
+ readonly path: "/menu/cooking-guide";
68
+ }, {
69
+ readonly id: "print-route";
70
+ readonly label: "Print route";
71
+ readonly path: "/menu/print-route";
72
+ }, {
73
+ readonly id: "serving-sequence";
74
+ readonly label: "Serving sequence";
75
+ readonly path: "/menu/serving-sequence";
76
+ }, {
77
+ readonly id: "publish";
78
+ readonly label: "Publish";
79
+ readonly path: "/menu/publish";
80
+ }, {
81
+ readonly id: "menu-setting";
82
+ readonly label: "Menu setting";
83
+ readonly path: "/menu/menu-setting";
84
+ }, {
85
+ readonly id: "catalog";
86
+ readonly label: "Catalog";
87
+ readonly path: "/menu/catalog";
88
+ }, {
89
+ readonly id: "menu";
90
+ readonly label: "Menu";
91
+ readonly path: "/menu";
92
+ }, {
93
+ readonly id: "report";
94
+ readonly label: "Report";
95
+ readonly path: "/report";
96
+ }, {
97
+ readonly id: "marketing";
98
+ readonly label: "Marketing";
99
+ readonly path: "/marketing";
100
+ }, {
101
+ readonly id: "none";
102
+ readonly label: "None";
103
+ }];
104
+ export type WorkspaceSelection = (typeof WORKSPACE_CHOICES)[number]['id'];
105
+ export declare function buildContextualStart(pageContext: PortalPageContext | null, conversations: Conversation[], memories?: MemoryDto[], workspaceSelection?: WorkspaceSelection): 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;
@@ -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
- }, "initialize" | "activate" | "loadTokenBalance" | "close">>;
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' | 'dreamer' | 'memory';
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';