@cc-claw/peri 0.2.0 → 0.2.2
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.js +6 -1
- package/package.json +4 -1
package/install.js
CHANGED
|
@@ -66,7 +66,7 @@ function downloadViaProxy(url, proxyUrl) {
|
|
|
66
66
|
const target = new URL(url);
|
|
67
67
|
const proxy = new URL(proxyUrl);
|
|
68
68
|
|
|
69
|
-
const isHttps = proxy.protocol === "https:" || proxy.protocol === "
|
|
69
|
+
const isHttps = proxy.protocol === "https:" || proxy.protocol === "HTTPS:";
|
|
70
70
|
const proxyModule = isHttps ? require("https") : require("http");
|
|
71
71
|
|
|
72
72
|
const proxyOpts = {
|
|
@@ -156,6 +156,11 @@ async function main() {
|
|
|
156
156
|
chmodSync(finalPath, 0o755);
|
|
157
157
|
const wrapperPath = join(__dirname, "bin", "peri");
|
|
158
158
|
if (existsSync(wrapperPath)) chmodSync(wrapperPath, 0o755);
|
|
159
|
+
} else {
|
|
160
|
+
// Generate Windows batch wrapper so npm's peri.cmd/peri.ps1 can invoke it
|
|
161
|
+
const binDirPath = join(__dirname, "bin");
|
|
162
|
+
writeFileSync(join(binDirPath, "peri.cmd"), `@echo off\r\n"%~dp0peri.exe" %*\r\n`);
|
|
163
|
+
writeFileSync(join(binDirPath, "peri.ps1"), `$basedir = Split-Path $MyInvocation.MyCommand.Definition -Parent\r\n& "$basedir\\peri.exe" @args\r\nexit $LASTEXITCODE\r\n`);
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
console.log(`peri ${VERSION} installed successfully.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cc-claw/peri",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Terminal coding agent powered by open-source models — Rust-built, Claude Code compatible",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -36,5 +36,8 @@
|
|
|
36
36
|
],
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=16"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"adm-zip": "^0.5.16"
|
|
39
42
|
}
|
|
40
43
|
}
|