my-singbox 2.0.0 → 3.0.0

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/dist/model.d.ts CHANGED
@@ -16,7 +16,6 @@ export interface Node {
16
16
  tag: string;
17
17
  port: number;
18
18
  };
19
- egress: 'direct' | 'isp-socks';
20
19
  creds: SsCreds | RealityCreds;
21
20
  }
22
21
  export interface IspSocks {
@@ -32,7 +31,9 @@ export interface Model {
32
31
  nodes: Node[];
33
32
  isp?: IspSocks;
34
33
  }
35
- export declare const SS_PORT = 8388, VLESS_PORT = 8443, SS_ISP_PORT = 13839, VLESS_ISP_PORT = 18444;
34
+ export declare const SS_PORT = 8388, VLESS_PORT = 8443;
35
+ /** @deprecated Legacy listener ports, retained for migration only. */
36
+ export declare const SS_ISP_PORT = 13839, VLESS_ISP_PORT = 18444;
36
37
  export declare const SS_TAG = "ss-in", VLESS_TAG = "vless-reality-in", SS_ISP_TAG = "ss-isp-in", VLESS_ISP_TAG = "vless-reality-isp-in", OUT_TAG = "isp-socks";
37
38
  export declare const NODE_SS = "shadowsocks", NODE_VLESS = "vless-reality", NODE_SS_ISP = "shadowsocks-isp", NODE_VLESS_ISP = "vless-reality-isp";
38
39
  export declare class ModelError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-singbox",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -34,7 +34,8 @@
34
34
  "LICENSE",
35
35
  "THIRD-PARTY-NOTICES.md",
36
36
  "README.md",
37
- "README_CN.md"
37
+ "README_CN.md",
38
+ "CHANGELOG.md"
38
39
  ],
39
40
  "scripts": {
40
41
  "build": "node tools/build.mjs",
@@ -46,5 +46,24 @@
46
46
  "type": "direct",
47
47
  "tag": "direct"
48
48
  }
49
- ]
49
+ ],
50
+ "route": {
51
+ "rules": [
52
+ {
53
+ "action": "sniff"
54
+ },
55
+ {
56
+ "domain_suffix": [
57
+ "anthropic.com",
58
+ "claude.ai",
59
+ "claude.com",
60
+ "claudeusercontent.com",
61
+ "http-intake.logs.us5.datadoghq.com",
62
+ "browser-intake-us5-datadoghq.com"
63
+ ],
64
+ "outbound": "isp-socks"
65
+ }
66
+ ],
67
+ "final": "direct"
68
+ }
50
69
  }