@univerjs-pro/sheets-mcp 0.10.12 → 0.10.13-nightly.202510290902

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 _0x3553(_0x47579d,_0x319625){const _0x3cc5c3=_0x3cc5();return _0x3553=function(_0x355322,_0x3c0045){_0x355322=_0x355322-0x15e;let _0x5e05df=_0x3cc5c3[_0x355322];return _0x5e05df;},_0x3553(_0x47579d,_0x319625);}(function(_0x1944c7,_0x1a4bc9){const _0x181172=_0x3553,_0xc69367=_0x1944c7();while(!![]){try{const _0x310b0a=parseInt(_0x181172(0x15e))/0x1+parseInt(_0x181172(0x16c))/0x2+parseInt(_0x181172(0x162))/0x3*(parseInt(_0x181172(0x165))/0x4)+-parseInt(_0x181172(0x164))/0x5*(parseInt(_0x181172(0x166))/0x6)+-parseInt(_0x181172(0x16b))/0x7*(parseInt(_0x181172(0x16a))/0x8)+-parseInt(_0x181172(0x168))/0x9+parseInt(_0x181172(0x167))/0xa;if(_0x310b0a===_0x1a4bc9)break;else _0xc69367['push'](_0xc69367['shift']());}catch(_0x5b9b70){_0xc69367['push'](_0xc69367['shift']());}}}(_0x3cc5,0x4cbe3),function(_0x245fc9,_0x3fb45b){const _0xd645c3=_0x3553;typeof exports==_0xd645c3(0x15f)&&typeof module<'u'?_0x3fb45b(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade')):typeof define=='function'&&define[_0xd645c3(0x16e)]?define([_0xd645c3(0x16d),_0xd645c3(0x161),_0xd645c3(0x171)],_0x3fb45b):(_0x245fc9=typeof globalThis<'u'?globalThis:_0x245fc9||self,_0x3fb45b(_0x245fc9[_0xd645c3(0x160)]));}(this,function(_0x72653c){'use strict';const _0x5479dd=_0x3553;class _0x58a091 extends _0x72653c[_0x5479dd(0x169)]{async[_0x5479dd(0x170)](){const _0x161818=_0x5479dd,_0x10257f=this[_0x161818(0x16f)](),_0x3f8e9e=_0x10257f[_0x161818(0x163)](),_0x2000b6=await _0x10257f[_0x161818(0x172)]();return{'formulaErrors':_0x3f8e9e,'dataValidationErrors':_0x2000b6};}}_0x72653c[_0x5479dd(0x169)][_0x5479dd(0x173)](_0x58a091);}));function _0x3cc5(){const _0x1bac52=['@univerjs/sheets-data-validation/facade','getAllDataValidationErrorAsync','extend','266148uSpFKg','object','UniverCoreFacade','@univerjs/sheets-formula/facade','3105moCfBd','getAllFormulaError','395110GZNxNA','1820IAPDNn','24zNNPaG','2172320lMeOuS','1453716HyFbqy','FUniver','8jQiWKe','2190125TEMhlz','301042VDuNOA','@univerjs/core/facade','amd','getActiveWorkbook','getLintErrors'];_0x3cc5=function(){return _0x1bac52;};return _0x3cc5();}