easy-claude 1.3.0 → 1.3.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/CHANGELOG.md +11 -0
- package/README.md +5 -5
- package/README.zh-CN.md +5 -5
- package/native/Overlay.swift +2 -0
- package/native/build/EasyClaudeOverlay.app/Contents/Info.plist +1 -1
- package/native/build/EasyClaudeOverlay.app/Contents/MacOS/EasyClaudeOverlay +0 -0
- package/package.json +1 -1
- package/src/public-ip.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# 更新记录
|
|
2
2
|
|
|
3
|
+
## 1.3.2
|
|
4
|
+
|
|
5
|
+
- Increase public IP query timeouts to 10-second connect, 20-second total, and 30-second subprocess limit; keep ipinfo-to-ipify fallback, proxy routing, TLS/IP validation, and unknown fallback city/time zone.
|
|
6
|
+
|
|
7
|
+
## 1.3.1
|
|
8
|
+
|
|
9
|
+
- Shorten public IP connection/total timeouts to 3/5 seconds (7-second process limit), allowing faster ipinfo-to-ipify fallback. Preserve proxy routing, TLS/IP checks and unknown fallback city/time zone.
|
|
10
|
+
- Cover timeout, network failure, HTTP 429 and invalid response fallback; protection still checks the fallback IP against the allowlist.
|
|
11
|
+
|
|
12
|
+
- Show the running app version beside More settings / Less settings, including the collapsed panel.
|
|
13
|
+
|
|
3
14
|
## 1.3.0
|
|
4
15
|
|
|
5
16
|
- Add a persistent, editable Subscription day (1–31 or Not set) below automatic usage refresh, visible with settings collapsed.
|
package/README.md
CHANGED
|
@@ -18,12 +18,12 @@ Below Local proxy, click green Start Claude proxy to back up and configure Deskt
|
|
|
18
18
|
|
|
19
19
|
[Setup, proxy configuration and removal](docs/exit-ip-protection.md) · [Development verification](docs/版本/出口IP保护开发管理.md)
|
|
20
20
|
|
|
21
|
-
## v1.3.
|
|
21
|
+
## v1.3.2 release notes
|
|
22
22
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
23
|
+
- Increase each public IP query timeout to 20 seconds (10-second connection timeout, 30-second subprocess limit), then try ipify if ipinfo fails.
|
|
24
|
+
- Preserve proxy routing, TLS/IP validation, unknown fallback city/time zone, and existing query intervals (geography every 300 seconds; protection defaults to 60 seconds).
|
|
25
25
|
|
|
26
|
-
[Release history](CHANGELOG.md) · [1.3.
|
|
26
|
+
[Release history](CHANGELOG.md) · [1.3.2 verification](docs/版本/1.3.2开发管理.md)
|
|
27
27
|
|
|
28
28
|
## Install and run
|
|
29
29
|
|
|
@@ -70,7 +70,7 @@ The CLI uses the same saved preference. `EASY_LANGUAGE=en` or `EASY_LANGUAGE=zh`
|
|
|
70
70
|
|
|
71
71
|
## Network exit and IP time zone
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
The primary `https://ipinfo.io/json` reads the public IP, city and IANA time zone. On failure, `https://api.ipify.org?format=json` provides IP only; fallback city/time zone remain unknown. Each source has a 3-second connection and 5-second total timeout. The panel displays `City·IP`, refreshing at startup, every five minutes or on demand. A failed lookup shows an explicit error rather than an old IP. IP history is not saved.
|
|
74
74
|
|
|
75
75
|
**Follow IP time zone** is off by default. Enable it to hide manual zone choices and use the validated IP time zone and returned city. Failed lookups temporarily restore the saved manual time; successful lookups resume following. Disable it to restore manual choices. Proxy routing can make this exit differ from AI traffic; geolocation may be inaccurate or rate-limited.
|
|
76
76
|
|
package/README.zh-CN.md
CHANGED
|
@@ -20,12 +20,12 @@ Claude App 与 Claude Code CLI 共用固定本机代理 **http://127.0.0.1:18197
|
|
|
20
20
|
|
|
21
21
|
[安装、代理配置、关闭与卸载](docs/出口IP保护.md) · [开发验证记录](docs/版本/出口IP保护开发管理.md)
|
|
22
22
|
|
|
23
|
-
## v1.3.
|
|
23
|
+
## v1.3.2 更新说明
|
|
24
24
|
|
|
25
|
-
-
|
|
26
|
-
-
|
|
25
|
+
- 公网IP单源查询超时调整为20秒(连接10秒、子进程30秒兜底),ipinfo失败后切换ipify。
|
|
26
|
+
- 保留代理路由、TLS/IP校验、备用源不伪造城市/时区以及既有查询周期(地理查询300秒,保护默认60秒)。
|
|
27
27
|
|
|
28
|
-
历史见[CHANGELOG](CHANGELOG.md),本版见[开发与发布记录](docs/版本/1.3.
|
|
28
|
+
历史见[CHANGELOG](CHANGELOG.md),本版见[开发与发布记录](docs/版本/1.3.2开发管理.md)。
|
|
29
29
|
|
|
30
30
|
## 安装与使用
|
|
31
31
|
|
|
@@ -107,7 +107,7 @@ npm run build:overlay
|
|
|
107
107
|
|
|
108
108
|
## 公网IP与城市
|
|
109
109
|
|
|
110
|
-
菜单显示“城市名称·IP
|
|
110
|
+
菜单显示“城市名称·IP地址”,主源 `https://ipinfo.io/json` 同时获取IP、城市和时区;失败改用 `https://api.ipify.org?format=json`,备用仅返回IP、城市和时区未知。每个源连接超时3秒、总超时5秒;城市名称按接口返回显示。启动和每5分钟刷新,点击该菜单项可立即重查。IP取不到显示“IP异常”;城市取不到显示“城市未知”。
|
|
111
111
|
|
|
112
112
|
查询遵循已有HTTPS/ALL代理环境或macOS系统HTTPS代理。这里显示查询服务看到的网络出口;Clash分流时可能与AI请求不同,城市不代表电脑所在地,关闭“跟随IP时区”时不改变时钟时区。不主动保存IP历史,不发送账号凭据。
|
|
113
113
|
|
package/native/Overlay.swift
CHANGED
|
@@ -677,6 +677,8 @@ struct ControlPanelView: View {
|
|
|
677
677
|
Label(owner.controlsExpanded ? L("收起设置", "Less settings") : L("更多设置", "More settings"), systemImage: "gearshape")
|
|
678
678
|
}
|
|
679
679
|
.buttonStyle(.plain).accessibilityIdentifier("moreSettings")
|
|
680
|
+
Text("v\(owner.appVersion)").font(.system(size: 11)).foregroundStyle(.secondary)
|
|
681
|
+
.accessibilityIdentifier("appVersion")
|
|
680
682
|
Spacer()
|
|
681
683
|
Button { owner.launchClaudeApp() } label: { Label(L("启动 Claude", "Launch Claude"), systemImage: "play") }
|
|
682
684
|
.buttonStyle(.plain).accessibilityIdentifier("launchClaudeApp")
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<key>CFBundleIdentifier</key><string>com.unionschool.easy-claude.overlay</string>
|
|
6
6
|
<key>CFBundleName</key><string>Easy Claude Overlay</string>
|
|
7
7
|
<key>CFBundlePackageType</key><string>APPL</string>
|
|
8
|
-
<key>CFBundleShortVersionString</key><string>1.3.
|
|
8
|
+
<key>CFBundleShortVersionString</key><string>1.3.2</string>
|
|
9
9
|
<key>LSMinimumSystemVersion</key><string>14.0</string>
|
|
10
10
|
<key>CFBundleLocalizations</key><array><string>en</string><string>zh-Hans</string><string>zh-Hant</string></array>
|
|
11
11
|
<key>LSUIElement</key><true/>
|
|
Binary file
|
package/package.json
CHANGED
package/src/public-ip.js
CHANGED
|
@@ -10,10 +10,11 @@ export async function readPublicIP({ run = promisify(execFile), env = process.en
|
|
|
10
10
|
const { stdout } = await run('/usr/sbin/scutil', ['--proxy'], { timeout: 2000, maxBuffer: 65536 });
|
|
11
11
|
proxy = systemProxy(stdout);
|
|
12
12
|
}
|
|
13
|
+
// 限制主源等待,让备用仍有机会及时返回,不在同一源反复重试。
|
|
13
14
|
const request = async url => {
|
|
14
15
|
const { stdout } = await run('/usr/bin/curl', ['-q', '--silent', '--show-error', '--fail', '--proto', '=https',
|
|
15
|
-
'--connect-timeout', '
|
|
16
|
-
timeout:
|
|
16
|
+
'--connect-timeout', '10', '--max-time', '20', '--max-redirs', '0', url], {
|
|
17
|
+
timeout: 30000, maxBuffer: 8192, env: proxy ? { ...env, https_proxy: proxy } : env
|
|
17
18
|
});
|
|
18
19
|
return stdout;
|
|
19
20
|
};
|