foliko 1.0.22 → 1.0.23

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.
Files changed (2) hide show
  1. package/install.ps1 +7 -8
  2. package/package.json +2 -2
package/install.ps1 CHANGED
@@ -75,10 +75,8 @@ if (Get-Command uv -ErrorAction SilentlyContinue) {
75
75
  } else {
76
76
  Write-Host "uv not found, installing..." -ForegroundColor Yellow
77
77
 
78
- Write-Host "Downloading uv..." -ForegroundColor Cyan
79
- $uvInstaller = "$env:TEMP\uv-installer.pyz"
80
-
81
78
  try {
79
+ Write-Host "Downloading uv..." -ForegroundColor Cyan
82
80
  Invoke-WebRequest -Uri "https://astral.sh/uv/install.ps1" -OutFile "$env:TEMP\install-uv.ps1" -UseBasicParsing
83
81
  powershell -ExecutionPolicy Bypass -File "$env:TEMP\install-uv.ps1" -Version "0.4.0" -PowerShell -Admin
84
82
  Remove-Item "$env:TEMP\install-uv.ps1" -Force -ErrorAction SilentlyContinue
@@ -94,11 +92,12 @@ if (Get-Command uv -ErrorAction SilentlyContinue) {
94
92
  }
95
93
  Write-Host ""
96
94
 
97
- # ============ Install Foliko ============
98
- Write-Host "Installing Foliko..."
99
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
95
+ # ============ Clean npm cache and install Foliko ============
96
+ Write-Host "Cleaning npm cache..." -ForegroundColor Cyan
97
+ npm cache clean --force 2>$null | Out-Null
100
98
 
101
- npm install -g foliko
99
+ Write-Host "Installing Foliko..." -ForegroundColor Cyan
100
+ npm install -g foliko --ignore-scripts
102
101
 
103
102
  if (Get-Command foliko -ErrorAction SilentlyContinue) {
104
103
  Write-Host ""
@@ -106,5 +105,5 @@ if (Get-Command foliko -ErrorAction SilentlyContinue) {
106
105
  Write-Host "Run: foliko chat"
107
106
  } else {
108
107
  Write-Host ""
109
- Write-Host "Installation may have failed. Try manually: npm install -g foliko" -ForegroundColor Yellow
108
+ Write-Host "Installation failed. Try manually: npm install -g foliko" -ForegroundColor Yellow
110
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foliko",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "简约的插件化 Agent 框架",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "@ai-sdk/openai-compatible": "^2.0.35",
27
27
  "@anthropic-ai/sdk": "^0.39.0",
28
28
  "@modelcontextprotocol/sdk": "^1.27.1",
29
- "@pinixai/weixin-bot": "https://github.com/chnak/weixin-bot.git",
29
+ "@chnak/weixin-bot": "^1.2.0",
30
30
  "ai": "^6.0.116",
31
31
  "dotenv": "^17.3.1",
32
32
  "imap": "^0.8.19",