@feedmepos/mf-remy-panel 0.19.0-dev.9 → 0.20.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/{HomeView-da19bf44.js → HomeView-34a1c99a.js} +1 -1
- package/dist/{RemyButton-7168e08b.js → RemyButton-e812a9b7.js} +1 -1
- package/dist/{app-208a4bc0.js → app-35e688e9.js} +14046 -13869
- package/dist/app.js +1 -1
- package/dist/components/chatPanel/reportMcpTools.d.ts +32 -0
- package/dist/stores/previewStore.d.ts +71 -11
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/chat.d.ts +31 -1
- package/package.json +1 -1
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-35e688e9.js";
|
|
3
3
|
import "pinia";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
import "vue-router";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare function isChartActionCardTool(name: string): boolean;
|
|
2
|
+
export declare function isRcaInsightCardTool(name: string): boolean;
|
|
3
|
+
export declare function isExportExcelTool(name: string): boolean;
|
|
4
|
+
export declare function isExportDocxTool(name: string): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* MCP tool results carry JSON in a text content block, while legacy report
|
|
7
|
+
* tools already return their payload directly. Normalize both shapes before a
|
|
8
|
+
* card checks its discriminator.
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizeReportMcpResult(result: unknown): unknown;
|
|
11
|
+
export declare function displayToolName(_name: string): string | null;
|
|
12
|
+
/**
|
|
13
|
+
* report_export_docx/report_amend_docx (MCP) return a flat summary — no
|
|
14
|
+
* `.artifact` section tree — unlike the legacy exportDocx/amendDocx tools.
|
|
15
|
+
* Both share `type: 'report-artifact'`; only `artifact` tells them apart.
|
|
16
|
+
* Every docx-entry consumer (ExportDocxCard, PreviewSubpage,
|
|
17
|
+
* AllSessionsSubpage) must branch on this before reading `.artifact.*` —
|
|
18
|
+
* reading it unconditionally on the MCP summary shape throws, since that
|
|
19
|
+
* field simply doesn't exist there (BRR-23: this crashed the "All Sessions"
|
|
20
|
+
* expand panel — see AllSessionsSubpage's `entries` builder history).
|
|
21
|
+
*/
|
|
22
|
+
export declare function isRichDocxResult<Rich extends {
|
|
23
|
+
artifact: unknown;
|
|
24
|
+
}, Summary extends object>(result: Rich | Summary): result is Rich;
|
|
25
|
+
/** Stable identity for a docx export result, regardless of shape. */
|
|
26
|
+
export declare function docxResultId<Rich extends {
|
|
27
|
+
artifact: {
|
|
28
|
+
id: string;
|
|
29
|
+
};
|
|
30
|
+
}, Summary extends {
|
|
31
|
+
artifactId: string;
|
|
32
|
+
}>(result: Rich | Summary): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DocxExportResult, ExcelExportActionCardResult, RcaInsightCardResult } from '@/types/chat';
|
|
2
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';
|
|
6
|
-
artifact:
|
|
6
|
+
artifact: DocxExportResult;
|
|
7
7
|
} | {
|
|
8
8
|
kind: 'excel';
|
|
9
9
|
result: ExcelExportActionCardResult;
|
|
@@ -116,13 +116,23 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
116
116
|
createdAt: string;
|
|
117
117
|
updatedAt: string;
|
|
118
118
|
};
|
|
119
|
+
s3Key?: string | undefined;
|
|
120
|
+
downloadUrl?: string | undefined;
|
|
121
|
+
} | {
|
|
122
|
+
type: "report-artifact";
|
|
123
|
+
artifactId: string;
|
|
124
|
+
title: string;
|
|
125
|
+
sectionCount: number;
|
|
126
|
+
downloadUrl?: string | undefined;
|
|
127
|
+
s3Key?: string | undefined;
|
|
119
128
|
};
|
|
120
129
|
} | {
|
|
121
130
|
kind: 'excel';
|
|
122
131
|
result: {
|
|
123
132
|
type: "excel";
|
|
124
133
|
title: string;
|
|
125
|
-
s3Key
|
|
134
|
+
s3Key?: string | undefined;
|
|
135
|
+
downloadUrl?: string | undefined;
|
|
126
136
|
fileName: string;
|
|
127
137
|
rowCount: number;
|
|
128
138
|
previewTable: {
|
|
@@ -317,13 +327,23 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
317
327
|
createdAt: string;
|
|
318
328
|
updatedAt: string;
|
|
319
329
|
};
|
|
330
|
+
s3Key?: string | undefined;
|
|
331
|
+
downloadUrl?: string | undefined;
|
|
332
|
+
} | {
|
|
333
|
+
type: "report-artifact";
|
|
334
|
+
artifactId: string;
|
|
335
|
+
title: string;
|
|
336
|
+
sectionCount: number;
|
|
337
|
+
downloadUrl?: string | undefined;
|
|
338
|
+
s3Key?: string | undefined;
|
|
320
339
|
};
|
|
321
340
|
} | {
|
|
322
341
|
kind: 'excel';
|
|
323
342
|
result: {
|
|
324
343
|
type: "excel";
|
|
325
344
|
title: string;
|
|
326
|
-
s3Key
|
|
345
|
+
s3Key?: string | undefined;
|
|
346
|
+
downloadUrl?: string | undefined;
|
|
327
347
|
fileName: string;
|
|
328
348
|
rowCount: number;
|
|
329
349
|
previewTable: {
|
|
@@ -421,7 +441,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
421
441
|
highlightedTaskId: import("vue").Ref<string | null, string | null>;
|
|
422
442
|
scrollToChatMessageId: import("vue").Ref<string | null, string | null>;
|
|
423
443
|
taskCreatedAt: import("vue").Ref<number, number>;
|
|
424
|
-
openDocx: (artifact:
|
|
444
|
+
openDocx: (artifact: DocxExportResult) => void;
|
|
425
445
|
openExcel: (result: ExcelExportActionCardResult) => void;
|
|
426
446
|
openRca: (result: RcaInsightCardResult) => void;
|
|
427
447
|
openAllSessions: () => void;
|
|
@@ -539,13 +559,23 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
539
559
|
createdAt: string;
|
|
540
560
|
updatedAt: string;
|
|
541
561
|
};
|
|
562
|
+
s3Key?: string | undefined;
|
|
563
|
+
downloadUrl?: string | undefined;
|
|
564
|
+
} | {
|
|
565
|
+
type: "report-artifact";
|
|
566
|
+
artifactId: string;
|
|
567
|
+
title: string;
|
|
568
|
+
sectionCount: number;
|
|
569
|
+
downloadUrl?: string | undefined;
|
|
570
|
+
s3Key?: string | undefined;
|
|
542
571
|
};
|
|
543
572
|
} | {
|
|
544
573
|
kind: 'excel';
|
|
545
574
|
result: {
|
|
546
575
|
type: "excel";
|
|
547
576
|
title: string;
|
|
548
|
-
s3Key
|
|
577
|
+
s3Key?: string | undefined;
|
|
578
|
+
downloadUrl?: string | undefined;
|
|
549
579
|
fileName: string;
|
|
550
580
|
rowCount: number;
|
|
551
581
|
previewTable: {
|
|
@@ -740,13 +770,23 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
740
770
|
createdAt: string;
|
|
741
771
|
updatedAt: string;
|
|
742
772
|
};
|
|
773
|
+
s3Key?: string | undefined;
|
|
774
|
+
downloadUrl?: string | undefined;
|
|
775
|
+
} | {
|
|
776
|
+
type: "report-artifact";
|
|
777
|
+
artifactId: string;
|
|
778
|
+
title: string;
|
|
779
|
+
sectionCount: number;
|
|
780
|
+
downloadUrl?: string | undefined;
|
|
781
|
+
s3Key?: string | undefined;
|
|
743
782
|
};
|
|
744
783
|
} | {
|
|
745
784
|
kind: 'excel';
|
|
746
785
|
result: {
|
|
747
786
|
type: "excel";
|
|
748
787
|
title: string;
|
|
749
|
-
s3Key
|
|
788
|
+
s3Key?: string | undefined;
|
|
789
|
+
downloadUrl?: string | undefined;
|
|
750
790
|
fileName: string;
|
|
751
791
|
rowCount: number;
|
|
752
792
|
previewTable: {
|
|
@@ -844,7 +884,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
844
884
|
highlightedTaskId: import("vue").Ref<string | null, string | null>;
|
|
845
885
|
scrollToChatMessageId: import("vue").Ref<string | null, string | null>;
|
|
846
886
|
taskCreatedAt: import("vue").Ref<number, number>;
|
|
847
|
-
openDocx: (artifact:
|
|
887
|
+
openDocx: (artifact: DocxExportResult) => void;
|
|
848
888
|
openExcel: (result: ExcelExportActionCardResult) => void;
|
|
849
889
|
openRca: (result: RcaInsightCardResult) => void;
|
|
850
890
|
openAllSessions: () => void;
|
|
@@ -962,13 +1002,23 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
962
1002
|
createdAt: string;
|
|
963
1003
|
updatedAt: string;
|
|
964
1004
|
};
|
|
1005
|
+
s3Key?: string | undefined;
|
|
1006
|
+
downloadUrl?: string | undefined;
|
|
1007
|
+
} | {
|
|
1008
|
+
type: "report-artifact";
|
|
1009
|
+
artifactId: string;
|
|
1010
|
+
title: string;
|
|
1011
|
+
sectionCount: number;
|
|
1012
|
+
downloadUrl?: string | undefined;
|
|
1013
|
+
s3Key?: string | undefined;
|
|
965
1014
|
};
|
|
966
1015
|
} | {
|
|
967
1016
|
kind: 'excel';
|
|
968
1017
|
result: {
|
|
969
1018
|
type: "excel";
|
|
970
1019
|
title: string;
|
|
971
|
-
s3Key
|
|
1020
|
+
s3Key?: string | undefined;
|
|
1021
|
+
downloadUrl?: string | undefined;
|
|
972
1022
|
fileName: string;
|
|
973
1023
|
rowCount: number;
|
|
974
1024
|
previewTable: {
|
|
@@ -1163,13 +1213,23 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
1163
1213
|
createdAt: string;
|
|
1164
1214
|
updatedAt: string;
|
|
1165
1215
|
};
|
|
1216
|
+
s3Key?: string | undefined;
|
|
1217
|
+
downloadUrl?: string | undefined;
|
|
1218
|
+
} | {
|
|
1219
|
+
type: "report-artifact";
|
|
1220
|
+
artifactId: string;
|
|
1221
|
+
title: string;
|
|
1222
|
+
sectionCount: number;
|
|
1223
|
+
downloadUrl?: string | undefined;
|
|
1224
|
+
s3Key?: string | undefined;
|
|
1166
1225
|
};
|
|
1167
1226
|
} | {
|
|
1168
1227
|
kind: 'excel';
|
|
1169
1228
|
result: {
|
|
1170
1229
|
type: "excel";
|
|
1171
1230
|
title: string;
|
|
1172
|
-
s3Key
|
|
1231
|
+
s3Key?: string | undefined;
|
|
1232
|
+
downloadUrl?: string | undefined;
|
|
1173
1233
|
fileName: string;
|
|
1174
1234
|
rowCount: number;
|
|
1175
1235
|
previewTable: {
|
|
@@ -1267,7 +1327,7 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
1267
1327
|
highlightedTaskId: import("vue").Ref<string | null, string | null>;
|
|
1268
1328
|
scrollToChatMessageId: import("vue").Ref<string | null, string | null>;
|
|
1269
1329
|
taskCreatedAt: import("vue").Ref<number, number>;
|
|
1270
|
-
openDocx: (artifact:
|
|
1330
|
+
openDocx: (artifact: DocxExportResult) => void;
|
|
1271
1331
|
openExcel: (result: ExcelExportActionCardResult) => void;
|
|
1272
1332
|
openRca: (result: RcaInsightCardResult) => void;
|
|
1273
1333
|
openAllSessions: () => void;
|