@agile-team/mach-report 2.23.1 → 2.25.0

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.
Files changed (159) hide show
  1. package/README.md +10 -4
  2. package/dist/{ExcelBindingWizard-BrTmdo7f.cjs → ExcelBindingWizard-BgJG-T6k.cjs} +1 -1
  3. package/dist/{ExcelBindingWizard-CcDMLO8Q.js → ExcelBindingWizard-NQ_v396s.js} +3 -3
  4. package/dist/ParamEditor-DEP38mBp.cjs +1 -0
  5. package/dist/ParamEditor-Z-3yodp5.js +750 -0
  6. package/dist/{ReportBatchPanel-CHxBtG9R.cjs → ReportBatchPanel-D33LjMrA.cjs} +1 -1
  7. package/dist/{ReportBatchPanel-CJB67WNd.js → ReportBatchPanel-DG8FV-5X.js} +2 -2
  8. package/dist/{ReportLabelStudio-Tplc1TLJ.js → ReportLabelStudio-BZp23_hA.js} +68 -68
  9. package/dist/ReportLabelStudio-Bz-xAayk.cjs +1 -0
  10. package/dist/ReportParamPanel-B27IGJjk.cjs +1 -0
  11. package/dist/{ReportParamPanel-GI43aGa0.js → ReportParamPanel-DGXzBzl2.js} +328 -298
  12. package/dist/ReportPreview-CilFAS9U.js +7170 -0
  13. package/dist/ReportPreview-dOOzPts2.cjs +6 -0
  14. package/dist/{ReportTemplateLibrary-KqX4E2sN.js → ReportTemplateLibrary-DpSGgvFa.js} +28 -28
  15. package/dist/{ReportTemplateLibrary-BFQIX0sg.cjs → ReportTemplateLibrary-uG1gENaW.cjs} +1 -1
  16. package/dist/{RuleEditor-OPX1awrH.js → RuleEditor-BONALh1Q.js} +846 -835
  17. package/dist/RuleEditor-bLXiRcxL.cjs +1 -0
  18. package/dist/{TemplateOutlinePanel-CVYKVLv_.cjs → TemplateOutlinePanel-C3nfHuaR.cjs} +1 -1
  19. package/dist/{TemplateOutlinePanel-DQS-eOs6.js → TemplateOutlinePanel-JGBKeF3e.js} +10 -10
  20. package/dist/{TemplateReusePanel-CY6O93Zk.cjs → TemplateReusePanel-BKhgp6kg.cjs} +1 -1
  21. package/dist/{TemplateReusePanel-DKXiFTyB.js → TemplateReusePanel-DXQUO6nQ.js} +2 -2
  22. package/dist/TemplateReviewPanel-5RWFUUEf.cjs +1 -0
  23. package/dist/TemplateReviewPanel-DhL7Hapy.js +602 -0
  24. package/dist/analytics.d.cts +1 -1
  25. package/dist/analytics.d.ts +1 -1
  26. package/dist/artifact-integrity.json +98 -98
  27. package/dist/assets-BYdpkTIt.cjs +1 -0
  28. package/dist/assets-C4MIvzQ4.js +137 -0
  29. package/dist/auto-D-eDZa_V.cjs +1 -0
  30. package/dist/{auto-BB99S802.js → auto-umW_ozwr.js} +10 -10
  31. package/dist/capabilities-CN_kSVjO.js +121 -0
  32. package/dist/capabilities-D4nfhcvB.cjs +1 -0
  33. package/dist/cell-style-B6Qffrx8.js +37 -0
  34. package/dist/cell-style-y_uh1pZp.cjs +1 -0
  35. package/dist/{data-bar-IkI6VvMQ.js → data-bar-Bfh54sT4.js} +1 -1
  36. package/dist/data-bar-DzceAVeR.cjs +1 -0
  37. package/dist/designer-CCyj5WYS.js +7595 -0
  38. package/dist/designer-Cj7fn4Hh.cjs +2 -0
  39. package/dist/designer.cjs +1 -1
  40. package/dist/designer.d.cts +143 -10
  41. package/dist/designer.d.ts +143 -10
  42. package/dist/designer.js +5 -5
  43. package/dist/diagnostic-collector-gB07PHy2.js +392 -0
  44. package/dist/diagnostic-collector-wASg6Fzs.cjs +1 -0
  45. package/dist/dom-CXWMmwh-.cjs +1 -0
  46. package/dist/{dom-JWrchIre.js → dom-DxdCMLzs.js} +185 -185
  47. package/dist/{encoding-CEd-dq9A.js → encoding-CEkBtlUP.js} +2 -2
  48. package/dist/{encoding-7lquyj0w.cjs → encoding-Cipno7dq.cjs} +1 -1
  49. package/dist/{font-loader-CNWXomuV.js → font-loader-D4NLIKJL.js} +1 -1
  50. package/dist/{font-loader-D8pI87fL.cjs → font-loader-p_SyTvqt.cjs} +1 -1
  51. package/dist/{grid-strokes-EoY66L2f.js → grid-strokes-DkZEZvcI.js} +1 -1
  52. package/dist/grid-strokes-RFMR91jn.cjs +1 -0
  53. package/dist/index.cjs +5 -5
  54. package/dist/index.d.cts +48 -9
  55. package/dist/index.d.ts +48 -9
  56. package/dist/index.js +137 -136
  57. package/dist/json-snapshot-DQdkA_At.cjs +2 -0
  58. package/dist/{json-snapshot-BRnzKudk.js → json-snapshot-x0JpllWL.js} +919 -791
  59. package/dist/{pdf-DpMkW72B.cjs → pdf-C060D5UY.cjs} +31 -31
  60. package/dist/{pdf-CJToa81Z.js → pdf-DU8HelKd.js} +2499 -2492
  61. package/dist/pdf.cjs +1 -1
  62. package/dist/pdf.d.cts +18 -0
  63. package/dist/pdf.d.ts +18 -0
  64. package/dist/pdf.js +2 -2
  65. package/dist/{plugin-BWTp-X7b.cjs → plugin-B_k23hut.cjs} +1 -1
  66. package/dist/{plugin-_BkUVc2z.js → plugin-CttO46hc.js} +1 -1
  67. package/dist/{prefill-CWGdnqQd.js → prefill-BkF9Fw_p.js} +13 -13
  68. package/dist/prefill-BvkuwooY.cjs +1 -0
  69. package/dist/prepared-CSywIEAZ.cjs +1 -0
  70. package/dist/prepared-Cyuh61fJ.js +128 -0
  71. package/dist/protocol-BwbJNVZl.cjs +1 -0
  72. package/dist/protocol-DwtxjXzO.js +96 -0
  73. package/dist/record-bindings-B7djSjNs.cjs +1 -0
  74. package/dist/{record-bindings-DatJZv_e.js → record-bindings-Cv7lFiof.js} +47 -47
  75. package/dist/{region-binding-workflow-l7NGfagJ.cjs → region-binding-workflow-COD8nISZ.cjs} +1 -1
  76. package/dist/{region-binding-workflow-DjrXuR1q.js → region-binding-workflow-D8I4QWRh.js} +2 -2
  77. package/dist/report-encoding-worker.cjs +1 -1
  78. package/dist/report-encoding-worker.js +1 -1
  79. package/dist/{rich-text-layout-Ciwa6D2o.js → rich-text-layout-Ch_N0Ubu.js} +1 -1
  80. package/dist/rich-text-layout-yJGuThtC.cjs +3 -0
  81. package/dist/runtime-BE30icyB.js +227 -0
  82. package/dist/runtime-DRSuy_SQ.cjs +1 -0
  83. package/dist/sbom.cdx.json +1 -1
  84. package/dist/server/node.d.cts +55 -7
  85. package/dist/server/node.d.ts +55 -7
  86. package/dist/server-node.cjs +5 -5
  87. package/dist/server-node.js +2742 -2417
  88. package/dist/server.cjs +1 -1
  89. package/dist/server.d.cts +51 -16
  90. package/dist/server.d.ts +51 -16
  91. package/dist/server.js +8 -8
  92. package/dist/style.css +1 -1
  93. package/dist/{template-catalog-DtrtT1FY.cjs → template-catalog-C0riwrx7.cjs} +1 -1
  94. package/dist/{template-catalog-CRuZL3pi.js → template-catalog-D_gl93va.js} +3 -3
  95. package/dist/template-fragments-CgzPdFKB.cjs +1 -0
  96. package/dist/{template-fragments-CPpGpQoz.js → template-fragments-D94ZZmPc.js} +2 -2
  97. package/dist/template-registry-BMScUmM4.cjs +1 -0
  98. package/dist/{template-registry-O0hNIOfB.js → template-registry-DZOtRY7t.js} +19 -19
  99. package/dist/{textwrap-D4ZksyMK.js → textwrap-BywMBMXM.js} +1 -1
  100. package/dist/textwrap-LhJkHWb1.cjs +4 -0
  101. package/dist/vue/async.d.cts +101 -22
  102. package/dist/vue/async.d.ts +101 -22
  103. package/dist/vue/index.d.cts +133 -34
  104. package/dist/vue/index.d.ts +133 -34
  105. package/dist/vue-async.cjs +1 -1
  106. package/dist/vue-async.js +3 -3
  107. package/dist/vue.cjs +1 -1
  108. package/dist/vue.js +192 -162
  109. package/dist/{workbook-session-C6-SrnCT.cjs → workbook-session-DR2j6Hxm.cjs} +3 -3
  110. package/dist/{workbook-session-C9ZmCBwY.js → workbook-session-SzfILBJJ.js} +106 -107
  111. package/dist/worker.cjs +1 -1
  112. package/dist/worker.d.cts +55 -7
  113. package/dist/worker.d.ts +55 -7
  114. package/dist/worker.js +4 -4
  115. package/dist/xlsx/node.d.cts +30 -1
  116. package/dist/xlsx/node.d.ts +30 -1
  117. package/dist/xlsx-node.cjs +42 -42
  118. package/dist/xlsx-node.js +3908 -3889
  119. package/dist/xlsx.cjs +4 -4
  120. package/dist/xlsx.d.cts +20 -3
  121. package/dist/xlsx.d.ts +20 -3
  122. package/dist/xlsx.js +302 -295
  123. package/package.json +1 -1
  124. package/dist/ParamEditor-BGjovFUe.js +0 -737
  125. package/dist/ParamEditor-CeNp4_zQ.cjs +0 -1
  126. package/dist/ReportLabelStudio-g8PkqJWn.cjs +0 -1
  127. package/dist/ReportParamPanel-C7fZTllk.cjs +0 -1
  128. package/dist/ReportPreview-BoGBGyRr.cjs +0 -6
  129. package/dist/ReportPreview-QLONCyci.js +0 -6257
  130. package/dist/RuleEditor-BZUP9yvL.cjs +0 -1
  131. package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +0 -1
  132. package/dist/TemplateReviewPanel-Dijwm9YE.js +0 -593
  133. package/dist/assets-D2gHc4Mz.cjs +0 -1
  134. package/dist/assets-T_gDeFaz.js +0 -132
  135. package/dist/auto-BrPWo7Xm.cjs +0 -1
  136. package/dist/capabilities-DiBj4Qgl.cjs +0 -1
  137. package/dist/capabilities-pg7j7VLT.js +0 -106
  138. package/dist/data-bar-CeZuFmYl.cjs +0 -1
  139. package/dist/designer-BZoVWTgl.js +0 -7172
  140. package/dist/designer-zS2uKJmY.cjs +0 -2
  141. package/dist/dom-ChE5D-L-.cjs +0 -1
  142. package/dist/grid-strokes-Be24LGuV.cjs +0 -1
  143. package/dist/json-snapshot-DNiIbpOr.cjs +0 -2
  144. package/dist/prefill-PaAy6wLk.cjs +0 -1
  145. package/dist/prepared-CJy_qk7d.js +0 -94
  146. package/dist/prepared-D0yCSxSO.cjs +0 -1
  147. package/dist/progress-BXzlVbIp.js +0 -29
  148. package/dist/progress-ByiOxUD3.js +0 -250
  149. package/dist/progress-DJBd9Rb9.cjs +0 -1
  150. package/dist/progress-WomPRP3B.cjs +0 -1
  151. package/dist/protocol-BG16rz6D.js +0 -90
  152. package/dist/protocol-wzhl1Fim.cjs +0 -1
  153. package/dist/record-bindings-MBxbeBsi.cjs +0 -1
  154. package/dist/rich-text-layout-DK7A_a5r.cjs +0 -3
  155. package/dist/runtime-DYMOS_gz.cjs +0 -1
  156. package/dist/runtime-PiCax9zQ.js +0 -171
  157. package/dist/template-fragments-GVjpew_q.cjs +0 -1
  158. package/dist/template-registry-DI59PXVK.cjs +0 -1
  159. package/dist/textwrap-DEHqAjKZ.cjs +0 -4
package/dist/worker.d.cts CHANGED
@@ -93,6 +93,19 @@ export declare function createAutoReportExporter(options?: ReportExportExecution
93
93
  /** factory 每次返回全新 Worker,例如 () => new Worker(new URL('./worker.ts', import.meta.url), {type:'module'})。 */
94
94
  export declare function createBrowserReportExecutor(factory: () => BrowserReportWorker, options?: ReportWorkerOptions): ReportRuntimeExecutor;
95
95
 
96
+ /** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
97
+ declare interface DiagnosticSummary<T> {
98
+ readonly total: number;
99
+ readonly counts: Readonly<Record<string, number>>;
100
+ readonly entries: readonly T[];
101
+ readonly omitted: number;
102
+ /** Business value explanations form a separate presentation channel, including omitted locations. */
103
+ readonly explanations?: {
104
+ readonly total: number;
105
+ readonly counts: Readonly<Record<string, number>>;
106
+ };
107
+ }
108
+
96
109
  declare interface GridCell {
97
110
  /** Resolved visual only. Original value, text, editability and source are unchanged. */
98
111
  dataBar?: {
@@ -138,6 +151,26 @@ declare interface ImageMediaOptions {
138
151
  maxImageDimension?: number;
139
152
  }
140
153
 
154
+ declare interface OutputDiagnostic {
155
+ code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
156
+ severity: "warning";
157
+ format: OutputFormat;
158
+ pageIndex: number;
159
+ componentIndex: number;
160
+ /** Nested grid child location as repeating [rowIndex, columnIndex, childIndex] triples. */
161
+ componentPath?: readonly number[];
162
+ kind: string;
163
+ nid?: string;
164
+ /** Declarative extension identity only; no property values or business binding data enter diagnostics. */
165
+ extension?: {
166
+ id: string;
167
+ version: string;
168
+ };
169
+ message: string;
170
+ }
171
+
172
+ declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
173
+
141
174
  declare interface PlanComponent {
142
175
  /** Template-only aggregate binding, expanded into shared primitives during layout. */
143
176
  chartBinding?: ReportChartBinding;
@@ -212,6 +245,8 @@ declare interface PlanTableFragment {
212
245
  declare interface PreparedReport {
213
246
  plan: RenderPlan;
214
247
  diagnostics: ReportDiagnostic[];
248
+ /** Present when an explicit diagnosticLimit bounds the detail array. Totals include omitted locations. */
249
+ diagnosticSummary?: DiagnosticSummary<ReportDiagnostic>;
215
250
  stats: ReportRuntimeStats;
216
251
  revisions: Record<string, {
217
252
  revision?: string;
@@ -313,7 +348,7 @@ declare interface ReportDescription {
313
348
  };
314
349
  }
315
350
 
316
- declare interface ReportDiagnostic {
351
+ declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
317
352
  code: string;
318
353
  message: string;
319
354
  path?: string;
@@ -424,6 +459,15 @@ declare interface ReportPdfFontOptions {
424
459
  };
425
460
  }
426
461
 
462
+ /** One ordered query occurrence, shared by browser editing and Node preparation. */
463
+ declare interface ReportQuerySource {
464
+ reportId: string;
465
+ reportIndex: number;
466
+ reportScope: string;
467
+ revision?: string;
468
+ sourceToken?: string;
469
+ }
470
+
427
471
  declare interface ReportRuntime {
428
472
  describe(reportIds?: string[]): ReportDescription[];
429
473
  validate(input: Omit<ReportRuntimeInput, "signal">): ReportParamValidation;
@@ -477,6 +521,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
477
521
  reportIds: string[];
478
522
  params?: Record<string, string>;
479
523
  signal?: AbortSignal;
524
+ /** Explicit bounded diagnostic detail window (0–1000); default retains all details. */
525
+ diagnosticLimit?: number;
480
526
  /** Prepare using the same licensed font bytes later supplied to PDF output. */
481
527
  pdf?: ReportPdfFontOptions;
482
528
  }
@@ -488,18 +534,16 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
488
534
  layoutPolicy?: "verify" | "preserve";
489
535
  format: ReportRuntimeExportInput["format"];
490
536
  fidelity?: ReportRuntimeExportInput["fidelity"];
537
+ diagnosticLimit?: number;
491
538
  pdf?: ReportPdfFontOptions;
492
539
  xlsx?: ReportRuntimeExportInput["xlsx"];
493
540
  signal?: AbortSignal;
494
541
  }
495
542
 
496
543
  /** One query occurrence; repeated report IDs retain independent provenance. */
497
- declare interface ReportRuntimeSource {
498
- reportId: string;
499
- reportIndex: number;
500
- reportScope: string;
501
- revision?: string;
502
- sourceToken?: string;
544
+ declare interface ReportRuntimeSource extends ReportQuerySource {
545
+ /** Runtime provenance uses the same ordered occurrence scope as the query session. */
546
+ reportScope: ReportQuerySource["reportScope"];
503
547
  }
504
548
 
505
549
  declare interface ReportRuntimeStats {
@@ -537,6 +581,8 @@ export declare class ReportWorkerError extends Error {
537
581
  readonly path?: string;
538
582
  readonly issues?: unknown;
539
583
  readonly diagnostics?: unknown;
584
+ readonly diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
585
+ readonly issueSummary?: DiagnosticSummary<Record<string, string>>;
540
586
  constructor(error: SerializedReportError);
541
587
  }
542
588
 
@@ -579,6 +625,8 @@ declare interface SerializedReportError {
579
625
  path?: string;
580
626
  issues?: unknown;
581
627
  diagnostics?: unknown;
628
+ diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
629
+ issueSummary?: DiagnosticSummary<Record<string, string>>;
582
630
  }
583
631
 
584
632
  export declare function serveReportEncodingWorker(scope?: ReportWorkerScope): () => void;
package/dist/worker.d.ts CHANGED
@@ -93,6 +93,19 @@ export declare function createAutoReportExporter(options?: ReportExportExecution
93
93
  /** factory 每次返回全新 Worker,例如 () => new Worker(new URL('./worker.ts', import.meta.url), {type:'module'})。 */
94
94
  export declare function createBrowserReportExecutor(factory: () => BrowserReportWorker, options?: ReportWorkerOptions): ReportRuntimeExecutor;
95
95
 
96
+ /** Bounded detail window with exact occurrence totals. Unknown business codes beyond 128 buckets share `other`. */
97
+ declare interface DiagnosticSummary<T> {
98
+ readonly total: number;
99
+ readonly counts: Readonly<Record<string, number>>;
100
+ readonly entries: readonly T[];
101
+ readonly omitted: number;
102
+ /** Business value explanations form a separate presentation channel, including omitted locations. */
103
+ readonly explanations?: {
104
+ readonly total: number;
105
+ readonly counts: Readonly<Record<string, number>>;
106
+ };
107
+ }
108
+
96
109
  declare interface GridCell {
97
110
  /** Resolved visual only. Original value, text, editability and source are unchanged. */
98
111
  dataBar?: {
@@ -138,6 +151,26 @@ declare interface ImageMediaOptions {
138
151
  maxImageDimension?: number;
139
152
  }
140
153
 
154
+ declare interface OutputDiagnostic {
155
+ code: "invalid-image-data" | "image-budget-exceeded" | "component-render-failed" | "unsupported-text" | "output-degraded" | "missing-image" | "unsupported-component" | "unsupported-image-format" | "unsupported-style" | "rich-text-flattened" | "nested-components-omitted" | "async-image-required" | "image-decode-failed" | "asset-render-failed" | "asset-budget-exceeded";
156
+ severity: "warning";
157
+ format: OutputFormat;
158
+ pageIndex: number;
159
+ componentIndex: number;
160
+ /** Nested grid child location as repeating [rowIndex, columnIndex, childIndex] triples. */
161
+ componentPath?: readonly number[];
162
+ kind: string;
163
+ nid?: string;
164
+ /** Declarative extension identity only; no property values or business binding data enter diagnostics. */
165
+ extension?: {
166
+ id: string;
167
+ version: string;
168
+ };
169
+ message: string;
170
+ }
171
+
172
+ declare type OutputFormat = "dom" | "canvas" | "pdf" | "xlsx";
173
+
141
174
  declare interface PlanComponent {
142
175
  /** Template-only aggregate binding, expanded into shared primitives during layout. */
143
176
  chartBinding?: ReportChartBinding;
@@ -212,6 +245,8 @@ declare interface PlanTableFragment {
212
245
  declare interface PreparedReport {
213
246
  plan: RenderPlan;
214
247
  diagnostics: ReportDiagnostic[];
248
+ /** Present when an explicit diagnosticLimit bounds the detail array. Totals include omitted locations. */
249
+ diagnosticSummary?: DiagnosticSummary<ReportDiagnostic>;
215
250
  stats: ReportRuntimeStats;
216
251
  revisions: Record<string, {
217
252
  revision?: string;
@@ -313,7 +348,7 @@ declare interface ReportDescription {
313
348
  };
314
349
  }
315
350
 
316
- declare interface ReportDiagnostic {
351
+ declare interface ReportDiagnostic extends Partial<Pick<OutputDiagnostic, "format" | "pageIndex" | "componentIndex" | "componentPath" | "kind" | "nid" | "extension">> {
317
352
  code: string;
318
353
  message: string;
319
354
  path?: string;
@@ -424,6 +459,15 @@ declare interface ReportPdfFontOptions {
424
459
  };
425
460
  }
426
461
 
462
+ /** One ordered query occurrence, shared by browser editing and Node preparation. */
463
+ declare interface ReportQuerySource {
464
+ reportId: string;
465
+ reportIndex: number;
466
+ reportScope: string;
467
+ revision?: string;
468
+ sourceToken?: string;
469
+ }
470
+
427
471
  declare interface ReportRuntime {
428
472
  describe(reportIds?: string[]): ReportDescription[];
429
473
  validate(input: Omit<ReportRuntimeInput, "signal">): ReportParamValidation;
@@ -477,6 +521,8 @@ declare interface ReportRuntimeInput extends ReportTaskMonitoring {
477
521
  reportIds: string[];
478
522
  params?: Record<string, string>;
479
523
  signal?: AbortSignal;
524
+ /** Explicit bounded diagnostic detail window (0–1000); default retains all details. */
525
+ diagnosticLimit?: number;
480
526
  /** Prepare using the same licensed font bytes later supplied to PDF output. */
481
527
  pdf?: ReportPdfFontOptions;
482
528
  }
@@ -488,18 +534,16 @@ declare interface ReportRuntimePreparedExportInput extends ReportTaskMonitoring
488
534
  layoutPolicy?: "verify" | "preserve";
489
535
  format: ReportRuntimeExportInput["format"];
490
536
  fidelity?: ReportRuntimeExportInput["fidelity"];
537
+ diagnosticLimit?: number;
491
538
  pdf?: ReportPdfFontOptions;
492
539
  xlsx?: ReportRuntimeExportInput["xlsx"];
493
540
  signal?: AbortSignal;
494
541
  }
495
542
 
496
543
  /** One query occurrence; repeated report IDs retain independent provenance. */
497
- declare interface ReportRuntimeSource {
498
- reportId: string;
499
- reportIndex: number;
500
- reportScope: string;
501
- revision?: string;
502
- sourceToken?: string;
544
+ declare interface ReportRuntimeSource extends ReportQuerySource {
545
+ /** Runtime provenance uses the same ordered occurrence scope as the query session. */
546
+ reportScope: ReportQuerySource["reportScope"];
503
547
  }
504
548
 
505
549
  declare interface ReportRuntimeStats {
@@ -537,6 +581,8 @@ export declare class ReportWorkerError extends Error {
537
581
  readonly path?: string;
538
582
  readonly issues?: unknown;
539
583
  readonly diagnostics?: unknown;
584
+ readonly diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
585
+ readonly issueSummary?: DiagnosticSummary<Record<string, string>>;
540
586
  constructor(error: SerializedReportError);
541
587
  }
542
588
 
@@ -579,6 +625,8 @@ declare interface SerializedReportError {
579
625
  path?: string;
580
626
  issues?: unknown;
581
627
  diagnostics?: unknown;
628
+ diagnosticSummary?: DiagnosticSummary<Record<string, unknown>>;
629
+ issueSummary?: DiagnosticSummary<Record<string, string>>;
582
630
  }
583
631
 
584
632
  export declare function serveReportEncodingWorker(scope?: ReportWorkerScope): () => void;
package/dist/worker.js CHANGED
@@ -1,7 +1,7 @@
1
- import { i as a, r as R, R as p, a as n } from "./protocol-BG16rz6D.js";
2
- import { b as W } from "./protocol-BG16rz6D.js";
3
- import { R as g, c as k, a as u } from "./auto-BB99S802.js";
4
- import { s as x } from "./encoding-CEd-dq9A.js";
1
+ import { i as a, r as R, R as p, a as n } from "./protocol-DwtxjXzO.js";
2
+ import { b as W } from "./protocol-DwtxjXzO.js";
3
+ import { R as g, c as k, a as u } from "./auto-umW_ozwr.js";
4
+ import { s as x } from "./encoding-CEkBtlUP.js";
5
5
  function d(s, r = globalThis) {
6
6
  const t = (o) => {
7
7
  a(o.data) && R(s, o.data, (e) => r.postMessage({ protocol: p, id: o.data.id, type: "event", event: e })).then((e) => r.postMessage(e, n(e)));
@@ -2,9 +2,36 @@
2
2
 
3
3
  import { Writable } from 'node:stream';
4
4
 
5
+ declare interface ComponentStyle {
6
+ fontSizePx?: number;
7
+ fontSize?: number;
8
+ fontFamily?: string;
9
+ bold?: boolean;
10
+ italic?: boolean;
11
+ underline?: boolean;
12
+ color?: string;
13
+ backgroundColor?: string;
14
+ align?: "left" | "center" | "right" | "justify";
15
+ verticalAlign?: "top" | "middle" | "bottom";
16
+ lineColor?: string;
17
+ borderColor?: string;
18
+ lineWidthPt?: number;
19
+ borderTop?: boolean;
20
+ borderRight?: boolean;
21
+ borderBottom?: boolean;
22
+ borderLeft?: boolean;
23
+ lineHeight?: number;
24
+ letterSpacing?: number;
25
+ opacity?: number;
26
+ rotateDeg?: number;
27
+ }
28
+
29
+ /** auto:真实数字、显式数值格式、日期与布尔居中,其他内容居左。 */
30
+ declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
31
+
5
32
  /**
6
33
  * Commits each source row directly to ExcelJS WorkbookWriter. No RenderPlan, full row array,
7
- * Workbook or Buffer is retained. Styles are column-scoped; shared strings are disabled.
34
+ * Workbook or Buffer is retained. Alignment variants are reused; shared strings are disabled.
8
35
  * Destination is ended by the writer. An abort/error leaves a partial, unusable XLSX file.
9
36
  */
10
37
  export declare function writeRowsToXlsx<Row extends object>(rows: AsyncIterable<Row> | Iterable<Row>, options: XlsxStreamOptions<Row>): Promise<XlsxStreamProgress>;
@@ -16,6 +43,8 @@ export declare interface XlsxStreamColumn<Row> {
16
43
  header?: string;
17
44
  width?: number;
18
45
  numberFormat?: string;
46
+ /** Data alignment. Defaults to auto, centering numeric/date/boolean values. */
47
+ align?: ListAlignment;
19
48
  value?: (row: Row, rowIndex: number) => XlsxRowValue;
20
49
  }
21
50
 
@@ -2,9 +2,36 @@
2
2
 
3
3
  import { Writable } from 'node:stream';
4
4
 
5
+ declare interface ComponentStyle {
6
+ fontSizePx?: number;
7
+ fontSize?: number;
8
+ fontFamily?: string;
9
+ bold?: boolean;
10
+ italic?: boolean;
11
+ underline?: boolean;
12
+ color?: string;
13
+ backgroundColor?: string;
14
+ align?: "left" | "center" | "right" | "justify";
15
+ verticalAlign?: "top" | "middle" | "bottom";
16
+ lineColor?: string;
17
+ borderColor?: string;
18
+ lineWidthPt?: number;
19
+ borderTop?: boolean;
20
+ borderRight?: boolean;
21
+ borderBottom?: boolean;
22
+ borderLeft?: boolean;
23
+ lineHeight?: number;
24
+ letterSpacing?: number;
25
+ opacity?: number;
26
+ rotateDeg?: number;
27
+ }
28
+
29
+ /** auto:真实数字、显式数值格式、日期与布尔居中,其他内容居左。 */
30
+ declare type ListAlignment = NonNullable<ComponentStyle["align"]> | "auto";
31
+
5
32
  /**
6
33
  * Commits each source row directly to ExcelJS WorkbookWriter. No RenderPlan, full row array,
7
- * Workbook or Buffer is retained. Styles are column-scoped; shared strings are disabled.
34
+ * Workbook or Buffer is retained. Alignment variants are reused; shared strings are disabled.
8
35
  * Destination is ended by the writer. An abort/error leaves a partial, unusable XLSX file.
9
36
  */
10
37
  export declare function writeRowsToXlsx<Row extends object>(rows: AsyncIterable<Row> | Iterable<Row>, options: XlsxStreamOptions<Row>): Promise<XlsxStreamProgress>;
@@ -16,6 +43,8 @@ export declare interface XlsxStreamColumn<Row> {
16
43
  header?: string;
17
44
  width?: number;
18
45
  numberFormat?: string;
46
+ /** Data alignment. Defaults to auto, centering numeric/date/boolean values. */
47
+ align?: ListAlignment;
19
48
  value?: (row: Row, rowIndex: number) => XlsxRowValue;
20
49
  }
21
50