@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.
@@ -107,7 +107,10 @@ export interface RcaInsightCardResult {
107
107
  export interface ExcelExportActionCardResult {
108
108
  type: 'excel';
109
109
  title: string;
110
- s3Key: string;
110
+ /** Legacy exportExcel tool — presigned lazily via `/storage/exports/download`. */
111
+ s3Key?: string;
112
+ /** report_export_excel (MCP) — already presigned, download directly. */
113
+ downloadUrl?: string;
111
114
  fileName: string;
112
115
  rowCount: number;
113
116
  previewTable: {
@@ -200,7 +203,34 @@ export interface ReportArtifact {
200
203
  export interface ReportArtifactResult {
201
204
  type: 'report-artifact';
202
205
  artifact: ReportArtifact;
206
+ /**
207
+ * Only present when this result came from report_export_docx/
208
+ * report_amend_docx (MCP) — the legacy exportDocx/amendDocx tools never
209
+ * set these. report-remy-mcp already rendered and uploaded the file; when
210
+ * present, download should use this stable key (re-presigned on demand)
211
+ * instead of the client-side chart-PNG-capture regenerate flow, which
212
+ * exists only because the legacy tools never persisted a file anywhere.
213
+ */
214
+ s3Key?: string;
215
+ /** Same-generation presigned URL — expires in 5 min, s3Key is preferred. */
216
+ downloadUrl?: string;
203
217
  }
218
+ /**
219
+ * report_export_docx/report_amend_docx (MCP) render the file server-side
220
+ * upfront and only return this summary — not the full `ReportArtifact`
221
+ * section tree the legacy exportDocx/amendDocx tools embed for the rich
222
+ * preview + client-side chart-PNG re-render-on-download flow. Both share
223
+ * `type: 'report-artifact'`; only the legacy/rich shape carries `artifact`.
224
+ */
225
+ export interface McpDocxExportSummary {
226
+ type: 'report-artifact';
227
+ artifactId: string;
228
+ title: string;
229
+ sectionCount: number;
230
+ downloadUrl?: string;
231
+ s3Key?: string;
232
+ }
233
+ export type DocxExportResult = ReportArtifactResult | McpDocxExportSummary;
204
234
  export interface ReportTaskPart {
205
235
  type: string;
206
236
  toolCallId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-remy-panel",
3
- "version": "0.19.0-dev.9",
3
+ "version": "0.20.0-dev.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],