@univerjs-pro/sheets-mcp 0.10.12 → 0.10.13

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.
@@ -0,0 +1,23 @@
1
+ import { ISheetFormulaError } from '@univerjs/engine-formula';
2
+ import { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
3
+ import { FUniver } from '@univerjs/core/facade';
4
+ import '@univerjs/sheets-formula/facade';
5
+ import '@univerjs/sheets-data-validation/facade';
6
+ interface ILintErrorReport {
7
+ formulaErrors: ISheetFormulaError[];
8
+ dataValidationErrors: IDataValidationError[];
9
+ }
10
+ /**
11
+ * @ignore
12
+ */
13
+ export interface IFUniverLintMCP {
14
+ getLintErrors(): Promise<ILintErrorReport>;
15
+ }
16
+ export declare class FUniverLintMCPMixin extends FUniver implements IFUniverLintMCP {
17
+ getLintErrors(): Promise<ILintErrorReport>;
18
+ }
19
+ declare module '@univerjs/core/facade' {
20
+ interface FUniver extends IFUniverLintMCP {
21
+ }
22
+ }
23
+ export {};
@@ -0,0 +1 @@
1
+ import './f-univer';
@@ -11,20 +11,20 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
11
11
  colorScale: "colorScale";
12
12
  }>>;
13
13
  min_type: z.ZodOptional<z.ZodEnum<{
14
- formula: "formula";
15
- num: "num";
14
+ percent: "percent";
16
15
  min: "min";
17
16
  max: "max";
18
- percent: "percent";
17
+ formula: "formula";
18
+ num: "num";
19
19
  percentile: "percentile";
20
20
  }>>;
21
21
  min_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
22
22
  max_type: z.ZodOptional<z.ZodEnum<{
23
- formula: "formula";
24
- num: "num";
23
+ percent: "percent";
25
24
  min: "min";
26
25
  max: "max";
27
- percent: "percent";
26
+ formula: "formula";
27
+ num: "num";
28
28
  percentile: "percentile";
29
29
  }>>;
30
30
  max_value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
@@ -38,11 +38,11 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
38
38
  index: z.ZodNumber;
39
39
  color: z.ZodString;
40
40
  value_type: z.ZodEnum<{
41
- formula: "formula";
42
- num: "num";
41
+ percent: "percent";
43
42
  min: "min";
44
43
  max: "max";
45
- percent: "percent";
44
+ formula: "formula";
45
+ num: "num";
46
46
  percentile: "percentile";
47
47
  }>;
48
48
  value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
@@ -50,12 +50,12 @@ export declare const ZodConditionalFormatRuleSchema: z.ZodObject<{
50
50
  sub_type: z.ZodOptional<z.ZodEnum<{
51
51
  number: "number";
52
52
  text: "text";
53
+ formula: "formula";
53
54
  uniqueValues: "uniqueValues";
54
55
  duplicateValues: "duplicateValues";
55
56
  rank: "rank";
56
57
  timePeriod: "timePeriod";
57
58
  average: "average";
58
- formula: "formula";
59
59
  }>>;
60
60
  operator: z.ZodOptional<z.ZodEnum<{
61
61
  endsWith: "endsWith";
@@ -2,9 +2,10 @@ import { ISheetFormulaError } from '@univerjs/engine-formula';
2
2
  import { IDataValidationError } from '@univerjs/sheets-data-validation/facade';
3
3
  /**
4
4
  * Get lint errors from formula errors and data validation errors
5
+ * @returns YAML formatted error report
5
6
  */
6
7
  export declare function getLintErrors(formulaErrors: ISheetFormulaError[], dataValidationErrors: IDataValidationError[]): string;
7
8
  /**
8
9
  * Get comprehensive lint errors from workbook
9
10
  */
10
- export declare function getWorkbookLintErrors(): Promise<string>;
11
+ export declare function getWorkbookLintErrors(univerAPI: any): Promise<string>;
@@ -0,0 +1 @@
1
+ function _0x2dbe(_0x3d7476,_0x4abbf2){const _0x21cfac=_0x21cf();return _0x2dbe=function(_0x2dbe42,_0x53644c){_0x2dbe42=_0x2dbe42-0xa1;let _0x141062=_0x21cfac[_0x2dbe42];return _0x141062;},_0x2dbe(_0x3d7476,_0x4abbf2);}function _0x21cf(){const _0x27eaec=['object','9PeeuBQ','@univerjs/sheets-formula/facade','amd','getLintErrors','96bWJYdJ','@univerjs/sheets-data-validation/facade','832760zRCwcb','FUniver','getActiveWorkbook','4660AJNxNH','extend','getAllDataValidationErrorAsync','1271028yCfUGL','2887520FwxXXD','322992bqVGVi','function','getAllFormulaError','1105047uFyESw','28eHFSpW','2793492WdOIRs'];_0x21cf=function(){return _0x27eaec;};return _0x21cf();}(function(_0x1dc912,_0x2e4918){const _0x3c4ee7=_0x2dbe,_0x6322dc=_0x1dc912();while(!![]){try{const _0x3e5e99=parseInt(_0x3c4ee7(0xa1))/0x1+-parseInt(_0x3c4ee7(0xa8))/0x2+parseInt(_0x3c4ee7(0xa6))/0x3+parseInt(_0x3c4ee7(0xa2))/0x4+parseInt(_0x3c4ee7(0xb3))/0x5*(parseInt(_0x3c4ee7(0xae))/0x6)+parseInt(_0x3c4ee7(0xa7))/0x7*(-parseInt(_0x3c4ee7(0xa3))/0x8)+-parseInt(_0x3c4ee7(0xaa))/0x9*(parseInt(_0x3c4ee7(0xb0))/0xa);if(_0x3e5e99===_0x2e4918)break;else _0x6322dc['push'](_0x6322dc['shift']());}catch(_0x2a6431){_0x6322dc['push'](_0x6322dc['shift']());}}}(_0x21cf,0xb35bb),function(_0x34817b,_0x583e7c){const _0x18012f=_0x2dbe;typeof exports==_0x18012f(0xa9)&&typeof module<'u'?_0x583e7c(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade')):typeof define==_0x18012f(0xa4)&&define[_0x18012f(0xac)]?define(['@univerjs/core/facade',_0x18012f(0xab),_0x18012f(0xaf)],_0x583e7c):(_0x34817b=typeof globalThis<'u'?globalThis:_0x34817b||self,_0x583e7c(_0x34817b['UniverCoreFacade']));}(this,function(_0xc1562c){'use strict';const _0x4c6012=_0x2dbe;class _0x2b3a5c extends _0xc1562c[_0x4c6012(0xb1)]{async[_0x4c6012(0xad)](){const _0x2cbd7a=_0x4c6012,_0x21b970=this[_0x2cbd7a(0xb2)](),_0x545d22=_0x21b970[_0x2cbd7a(0xa5)](),_0x28f12c=await _0x21b970[_0x2cbd7a(0xb5)]();return{'formulaErrors':_0x545d22,'dataValidationErrors':_0x28f12c};}}_0xc1562c[_0x4c6012(0xb1)][_0x4c6012(0xb4)](_0x2b3a5c);}));