@atlisp/mcp 1.0.11 → 1.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/mcp",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "MCP Server for @lisp on CAD",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cad-worker.js CHANGED
@@ -87,7 +87,7 @@ const cadSendWithResult = edge.func(function() {/*
87
87
  doc.SendCommand(lispCode + "\n");
88
88
  System.Threading.Thread.Sleep(500);
89
89
  if (System.IO.File.Exists(tempFile)) {
90
- string result = System.IO.File.ReadAllText(tempFile).Trim();
90
+ string result = System.Text.Encoding.GetEncoding("GBK").GetString(System.IO.File.ReadAllBytes(tempFile)).Trim();
91
91
  System.IO.File.Delete(tempFile);
92
92
  if (!string.IsNullOrEmpty(result)) {
93
93
  return new { success = true, result = result };
package/src/constants.js CHANGED
@@ -7,7 +7,7 @@ export const FILE_EXTENSIONS = {
7
7
 
8
8
  export const PROTOCOL_VERSION = '2024-11-05';
9
9
  export const SERVER_NAME = 'atlisp-mcp-server';
10
- export const SERVER_VERSION = '1.0.11';
10
+ export const SERVER_VERSION = '1.0.12';
11
11
 
12
12
  export const MOCK_PACKAGES = [
13
13
  { name: 'base', description: '基础函数库', version: '1.0.0' },