a-calc 3.0.0-beta.20260105 → 3.0.0-beta.20260124.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.
- package/README.md +83 -379
- package/a-calc.versions.js +56 -52
- package/browser/index.js +4 -2
- package/calc.d.ts +163 -22
- package/cjs/index.js +4 -2
- package/es/index.js +4 -2
- package/mcp-server/README.md +204 -0
- package/mcp-server/package.json +26 -0
- package/mcp-server/src/index.js +1360 -0
- package/package.json +20 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "a-calc",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.20260124.1",
|
|
4
4
|
"description": "A very powerful and easy-to-use number precision calculation and formatting library.",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"types": "./calc.d.ts",
|
|
19
19
|
"require": "./cjs/index.js",
|
|
20
20
|
"default": "./cjs/index.js"
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
|
+
"./mcp-server/src/index.js": "./mcp-server/src/index.js"
|
|
22
23
|
},
|
|
23
24
|
"browser": "browser/index.js",
|
|
24
25
|
"module": "es/index.js",
|
|
@@ -31,19 +32,26 @@
|
|
|
31
32
|
"build-test": "rollup -c --environment build:build & npm run test",
|
|
32
33
|
"build-only": "rollup -c --environment build:build",
|
|
33
34
|
"build:w": "rollup -c -w --environment build:build",
|
|
34
|
-
"
|
|
35
|
+
"build:docs": "pnpm install --frozen-lockfile=false && vitepress build docs",
|
|
36
|
+
"test": "vitest run",
|
|
35
37
|
"test:type": "tsc --noEmit type-check.ts",
|
|
36
38
|
"gen:version": "node gen_version_info.cjs",
|
|
37
39
|
"docs:dev": "vitepress dev docs",
|
|
38
40
|
"docs:build": "vitepress build docs",
|
|
39
41
|
"docs:preview": "vitepress preview docs"
|
|
40
42
|
},
|
|
43
|
+
"bin": {
|
|
44
|
+
"a-calc-mcp": "./mcp-server/src/index.js"
|
|
45
|
+
},
|
|
41
46
|
"files": [
|
|
42
47
|
"es",
|
|
43
48
|
"cjs",
|
|
44
49
|
"browser",
|
|
45
50
|
"calc.d.ts",
|
|
46
|
-
"a-calc.versions.js"
|
|
51
|
+
"a-calc.versions.js",
|
|
52
|
+
"mcp-server/src",
|
|
53
|
+
"mcp-server/package.json",
|
|
54
|
+
"mcp-server/README.md"
|
|
47
55
|
],
|
|
48
56
|
"repository": {
|
|
49
57
|
"type": "git",
|
|
@@ -93,8 +101,8 @@
|
|
|
93
101
|
"@rollup/plugin-json": "^6.0.1",
|
|
94
102
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
95
103
|
"@rollup/plugin-terser": "^0.4.4",
|
|
104
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
96
105
|
"a-calc": "^2.2.15",
|
|
97
|
-
"ava": "^4.3.3",
|
|
98
106
|
"benchmark": "^2.1.4",
|
|
99
107
|
"bignumber.js": "^9.3.1",
|
|
100
108
|
"codemirror": "^6.0.2",
|
|
@@ -102,6 +110,7 @@
|
|
|
102
110
|
"decimal.js": "^10.6.0",
|
|
103
111
|
"fast-deep-equal": "^3.1.3",
|
|
104
112
|
"glob": "^8.1.0",
|
|
113
|
+
"husky": "^9.1.7",
|
|
105
114
|
"json-stringify-safe": "^5.0.1",
|
|
106
115
|
"lodash-es": "^4.17.21",
|
|
107
116
|
"math-expression-evaluator": "^2.0.7",
|
|
@@ -112,10 +121,12 @@
|
|
|
112
121
|
"rollup-plugin-serve": "^1.1.0",
|
|
113
122
|
"typescript": "^5.1.6",
|
|
114
123
|
"vitepress": "^1.6.4",
|
|
115
|
-
"
|
|
124
|
+
"vitest": "^2.1.0",
|
|
125
|
+
"vue": "^3.5.25",
|
|
126
|
+
"@uiw/codemirror-themes-all": "^4.25.4"
|
|
116
127
|
},
|
|
117
128
|
"dependencies": {
|
|
118
|
-
"
|
|
119
|
-
"
|
|
129
|
+
"typescript-treasure": "0.0.9",
|
|
130
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
120
131
|
}
|
|
121
|
-
}
|
|
132
|
+
}
|