@atlisp/agent 0.1.17 → 0.1.18

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/config.js CHANGED
@@ -62,11 +62,11 @@ function getDefaultConfig() {
62
62
  verbose: false,
63
63
  },
64
64
  llm: {
65
- provider: 'deepseek',
66
- baseURL: '',
67
- model: 'deepseek-v4-flash',
65
+ provider: 'openai',
66
+ baseURL: 'http://atlisp.org:11434/v1',
67
+ model: 'minimax-m2.5:cloud',
68
68
  apiKey: '',
69
- temperature: 0.7,
69
+ temperature: 0.1,
70
70
  maxTokens: 65536,
71
71
  },
72
72
  mcp: {
package/install.ps1 CHANGED
@@ -227,10 +227,16 @@ function Install-Package {
227
227
  }
228
228
 
229
229
  Write-Host "Installing $packageName from npm registry..." -ForegroundColor Cyan
230
+ $installFailed = $false
230
231
  npm install -g @atlisp/agent --silent
231
232
 
232
233
  if ($LASTEXITCODE -ne 0) {
233
- Write-Host "Error: npm install failed" -ForegroundColor Red
234
+ Write-Host "Error: npm install @atlisp/agent failed, cleaning up..." -ForegroundColor Red
235
+ npm uninstall -g @atlisp/mcp --silent
236
+ $installFailed = $true
237
+ }
238
+
239
+ if ($installFailed) {
234
240
  exit 1
235
241
  }
236
242
 
@@ -246,7 +252,10 @@ function Install-Package {
246
252
 
247
253
  $runMcp = Read-Host "Start atlisp-agent now? (Y/N)"
248
254
  if ($runMcp -eq "Y" -or $runMcp -eq "y") {
249
- $env:Path = "$env:APPDATA\npm;" + $env:Path
255
+ $npmPath = (npm root -g).ToString()
256
+ if ($npmPath -and ($env:Path -notlike "*$npmPath*")) {
257
+ $env:Path = "$npmPath;" + $env:Path
258
+ }
250
259
  Write-Host "Starting atlisp-agent ..." -ForegroundColor Cyan
251
260
  atlisp-agent chat
252
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlisp/agent",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "AI Agent for @lisp - Connects to MCP Server for CAD operations",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -43,9 +43,6 @@ export class DeepseekProvider {
43
43
 
44
44
  throw new Error('No response content from DeepSeek');
45
45
  } catch (error) {
46
- if (error.message.includes('fetch')) {
47
- throw new Error(`无法连接到 DeepSeek: ${error.message}`);
48
- }
49
46
  throw error;
50
47
  }
51
48
  }
@@ -53,9 +53,6 @@ export class MinimaxProvider {
53
53
 
54
54
  throw new Error('No response content from Minimax: ' + JSON.stringify(data));
55
55
  } catch (error) {
56
- if (error.message.includes('fetch')) {
57
- throw new Error(`无法连接到 Minimax API: ${error.message}`);
58
- }
59
56
  throw error;
60
57
  }
61
58
  }
@@ -48,9 +48,6 @@ export class OpenAIProvider {
48
48
 
49
49
  throw new Error('No response content from OpenAI');
50
50
  } catch (error) {
51
- if (error.message.includes('fetch')) {
52
- throw new Error(`无法连接到 OpenAI 兼容 API: ${error.message}`);
53
- }
54
51
  throw error;
55
52
  }
56
53
  }
package/providers/vllm.js CHANGED
@@ -43,9 +43,6 @@ export class VllmProvider {
43
43
 
44
44
  throw new Error('No response content from vLLM');
45
45
  } catch (error) {
46
- if (error.message.includes('fetch')) {
47
- throw new Error(`无法连接到 vLLM: ${error.message}`);
48
- }
49
46
  throw error;
50
47
  }
51
48
  }