@univerjs-pro/sheets-mcp 0.10.11 → 0.10.12-nightly.202510251119

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(_0x1d0814,_0x3e9dc1){const _0x46617a=_0x39c0,_0x5d2349=_0x1d0814();while(!![]){try{const _0x43b8d7=-parseInt(_0x46617a(0xe2))/0x1*(parseInt(_0x46617a(0xe8))/0x2)+parseInt(_0x46617a(0xe7))/0x3+-parseInt(_0x46617a(0xdd))/0x4+-parseInt(_0x46617a(0xdb))/0x5+parseInt(_0x46617a(0xdc))/0x6+parseInt(_0x46617a(0xe1))/0x7+parseInt(_0x46617a(0xde))/0x8;if(_0x43b8d7===_0x3e9dc1)break;else _0x5d2349['push'](_0x5d2349['shift']());}catch(_0x471048){_0x5d2349['push'](_0x5d2349['shift']());}}}(_0x44ea,0xd76ac),function(_0xade673,_0x12da49){const _0x288986=_0x39c0;typeof exports==_0x288986(0xe0)&&typeof module<'u'?_0x12da49(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade')):typeof define==_0x288986(0xda)&&define[_0x288986(0xe9)]?define(['@univerjs/core/facade',_0x288986(0xe6),_0x288986(0xe3)],_0x12da49):(_0xade673=typeof globalThis<'u'?globalThis:_0xade673||self,_0x12da49(_0xade673['UniverCoreFacade']));}(this,function(_0x1f7327){'use strict';const _0x56ce6a=_0x39c0;class _0x271191 extends _0x1f7327[_0x56ce6a(0xea)]{async[_0x56ce6a(0xe4)](){const _0x15b5b3=_0x56ce6a,_0x8dbfb4=this[_0x15b5b3(0xdf)](),_0x1d16e5=_0x8dbfb4[_0x15b5b3(0xd9)](),_0x5807cf=await _0x8dbfb4[_0x15b5b3(0xe5)]();return{'formulaErrors':_0x1d16e5,'dataValidationErrors':_0x5807cf};}}_0x1f7327[_0x56ce6a(0xea)]['extend'](_0x271191);}));function _0x39c0(_0x354e91,_0x429e88){const _0x44eaa5=_0x44ea();return _0x39c0=function(_0x39c09b,_0x30ad9d){_0x39c09b=_0x39c09b-0xd9;let _0x1fc9b4=_0x44eaa5[_0x39c09b];return _0x1fc9b4;},_0x39c0(_0x354e91,_0x429e88);}function _0x44ea(){const _0xc88649=['getActiveWorkbook','object','3811885KROoRf','6gVNQAl','@univerjs/sheets-data-validation/facade','getLintErrors','getAllDataValidationErrorAsync','@univerjs/sheets-formula/facade','593127URQhYc','322682LzRLGW','amd','FUniver','getAllFormulaError','function','3877935uAWSAu','4651830yLDJbC','437900xmWdjA','9743096xoXoBk'];_0x44ea=function(){return _0xc88649;};return _0x44ea();}