@meowo/aproxy 0.1.0-alpha.7 → 0.1.0-alpha.8

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 (3) hide show
  1. package/README.md +4 -3
  2. package/bin/aproxy.js +12 -3
  3. package/package.json +10 -6
package/README.md CHANGED
@@ -14,9 +14,10 @@ the storm upstream; it only notices that the request took a little longer.
14
14
  npm install -g @meowo/aproxy
15
15
  ```
16
16
 
17
- The right platform binary (windows / linux-glibc / linux-musl / macOS, x64 or
18
- arm64) is installed automatically via `optionalDependencies` — no postinstall
19
- downloads, everything comes from the npm registry.
17
+ The right platform binary (windows x64/x86/arm64, linux x64/arm64 with glibc
18
+ or musl, macOS arm64/x64) is installed automatically via
19
+ `optionalDependencies` — no postinstall downloads, everything comes from the
20
+ npm registry.
20
21
 
21
22
  ## Quick start
22
23
 
package/bin/aproxy.js CHANGED
@@ -16,12 +16,21 @@ const PKG_PREFIX = '@meowo/aproxy-';
16
16
  // 平台 → 子包后缀。linux 需区分 glibc/musl(两套静态链接产物)。
17
17
  function platformPackage() {
18
18
  const { platform, arch } = process;
19
- if (platform === 'win32' && arch === 'x64') return PKG_PREFIX + 'windows-x64';
20
- if (platform === 'darwin' && arch === 'arm64') return PKG_PREFIX + 'darwin-arm64';
21
- if (platform === 'darwin' && arch === 'x64') return PKG_PREFIX + 'darwin-x64';
19
+ if (platform === 'win32') {
20
+ if (arch === 'x64') return PKG_PREFIX + 'windows-x64';
21
+ if (arch === 'ia32') return PKG_PREFIX + 'windows-ia32';
22
+ if (arch === 'arm64') return PKG_PREFIX + 'windows-arm64';
23
+ }
24
+ if (platform === 'darwin') {
25
+ if (arch === 'arm64') return PKG_PREFIX + 'darwin-arm64';
26
+ if (arch === 'x64') return PKG_PREFIX + 'darwin-x64';
27
+ }
22
28
  if (platform === 'linux' && arch === 'x64') {
23
29
  return PKG_PREFIX + 'linux-x64' + (isMusl() ? '-musl' : '');
24
30
  }
31
+ if (platform === 'linux' && arch === 'arm64') {
32
+ return PKG_PREFIX + 'linux-arm64' + (isMusl() ? '-musl' : '');
33
+ }
25
34
  return null;
26
35
  }
27
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meowo/aproxy",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.8",
4
4
  "description": "Local API proxy with infinite retries for agent workloads",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -16,10 +16,14 @@
16
16
  "node": ">=18"
17
17
  },
18
18
  "optionalDependencies": {
19
- "@meowo/aproxy-windows-x64": "0.1.0-alpha.7",
20
- "@meowo/aproxy-linux-x64": "0.1.0-alpha.7",
21
- "@meowo/aproxy-linux-x64-musl": "0.1.0-alpha.7",
22
- "@meowo/aproxy-darwin-arm64": "0.1.0-alpha.7",
23
- "@meowo/aproxy-darwin-x64": "0.1.0-alpha.7"
19
+ "@meowo/aproxy-windows-x64": "0.1.0-alpha.8",
20
+ "@meowo/aproxy-windows-ia32": "0.1.0-alpha.8",
21
+ "@meowo/aproxy-windows-arm64": "0.1.0-alpha.8",
22
+ "@meowo/aproxy-linux-x64": "0.1.0-alpha.8",
23
+ "@meowo/aproxy-linux-x64-musl": "0.1.0-alpha.8",
24
+ "@meowo/aproxy-linux-arm64": "0.1.0-alpha.8",
25
+ "@meowo/aproxy-linux-arm64-musl": "0.1.0-alpha.8",
26
+ "@meowo/aproxy-darwin-arm64": "0.1.0-alpha.8",
27
+ "@meowo/aproxy-darwin-x64": "0.1.0-alpha.8"
24
28
  }
25
29
  }