easy-claude 1.3.0 → 1.3.1
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 +7 -0
- package/README.md +5 -4
- package/README.zh-CN.md +5 -4
- 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,12 @@
|
|
|
1
1
|
# 更新记录
|
|
2
2
|
|
|
3
|
+
## 1.3.1
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
- Cover timeout, network failure, HTTP 429 and invalid response fallback; protection still checks the fallback IP against the allowlist.
|
|
7
|
+
|
|
8
|
+
- Show the running app version beside More settings / Less settings, including the collapsed panel.
|
|
9
|
+
|
|
3
10
|
## 1.3.0
|
|
4
11
|
|
|
5
12
|
- 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,13 @@ 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.1 release notes
|
|
22
22
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
23
|
+
- Reduce each public IP query timeout to 5 seconds (3-second connection timeout), then try ipify if ipinfo fails.
|
|
24
|
+
- Show the running version beside More settings / Less settings.
|
|
25
|
+
- Query intervals are unchanged: geography every 300 seconds; protection defaults to 60 seconds.
|
|
25
26
|
|
|
26
|
-
[Release history](CHANGELOG.md) · [1.3.
|
|
27
|
+
[Release history](CHANGELOG.md) · [1.3.1 verification](docs/版本/1.3.1开发管理.md)
|
|
27
28
|
|
|
28
29
|
## Install and run
|
|
29
30
|
|
package/README.zh-CN.md
CHANGED
|
@@ -20,12 +20,13 @@ 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.1 更新说明
|
|
24
24
|
|
|
25
|
-
-
|
|
26
|
-
-
|
|
25
|
+
- 公网IP单源查询超时缩短为5秒(连接3秒),ipinfo失败后切换ipify。
|
|
26
|
+
- “更多设置/收起设置”旁常驻显示当前版本号。
|
|
27
|
+
- 查询周期不变:地理查询300秒,保护默认60秒。
|
|
27
28
|
|
|
28
|
-
历史见[CHANGELOG](CHANGELOG.md),本版见[开发与发布记录](docs/版本/1.3.
|
|
29
|
+
历史见[CHANGELOG](CHANGELOG.md),本版见[开发与发布记录](docs/版本/1.3.1开发管理.md)。
|
|
29
30
|
|
|
30
31
|
## 安装与使用
|
|
31
32
|
|
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.1</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', '3', '--max-time', '5', '--max-redirs', '0', url], {
|
|
17
|
+
timeout: 7000, maxBuffer: 8192, env: proxy ? { ...env, https_proxy: proxy } : env
|
|
17
18
|
});
|
|
18
19
|
return stdout;
|
|
19
20
|
};
|