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.
- package/install.ps1 +7 -8
- 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
|
-
# ============
|
|
98
|
-
Write-Host "
|
|
99
|
-
|
|
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
|
-
|
|
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
|
|
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.
|
|
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
|
-
"@
|
|
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",
|