@singbox-iac/cli 0.1.5 → 0.1.7
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/README-en.md +22 -2
- package/README.md +22 -2
- package/dist/cli/command-helpers.js +1 -1
- package/dist/cli/command-helpers.js.map +1 -1
- package/dist/cli/commands/apply.js +21 -9
- package/dist/cli/commands/apply.js.map +1 -1
- package/dist/cli/commands/author.d.ts +28 -0
- package/dist/cli/commands/author.js +119 -121
- package/dist/cli/commands/author.js.map +1 -1
- package/dist/cli/commands/build.js +7 -34
- package/dist/cli/commands/build.js.map +1 -1
- package/dist/cli/commands/go.d.ts +2 -0
- package/dist/cli/commands/go.js +38 -0
- package/dist/cli/commands/go.js.map +1 -0
- package/dist/cli/commands/history.d.ts +2 -0
- package/dist/cli/commands/history.js +21 -0
- package/dist/cli/commands/history.js.map +1 -0
- package/dist/cli/commands/rollback.d.ts +2 -0
- package/dist/cli/commands/rollback.js +38 -0
- package/dist/cli/commands/rollback.js.map +1 -0
- package/dist/cli/commands/update.js +16 -2
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/use.d.ts +2 -0
- package/dist/cli/commands/use.js +45 -0
- package/dist/cli/commands/use.js.map +1 -0
- package/dist/cli/commands/verify.js +72 -20
- package/dist/cli/commands/verify.js.map +1 -1
- package/dist/cli/index.js +45 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/domain/dns-plan.d.ts +27 -0
- package/dist/domain/dns-plan.js +2 -0
- package/dist/domain/dns-plan.js.map +1 -0
- package/dist/domain/intent.d.ts +61 -0
- package/dist/domain/intent.js +2 -0
- package/dist/domain/intent.js.map +1 -0
- package/dist/domain/transaction.d.ts +12 -0
- package/dist/domain/transaction.js +2 -0
- package/dist/domain/transaction.js.map +1 -0
- package/dist/domain/verification-plan.d.ts +34 -0
- package/dist/domain/verification-plan.js +2 -0
- package/dist/domain/verification-plan.js.map +1 -0
- package/dist/modules/authoring/index.d.ts +2 -0
- package/dist/modules/authoring/index.js +32 -17
- package/dist/modules/authoring/index.js.map +1 -1
- package/dist/modules/build/index.d.ts +3 -0
- package/dist/modules/build/index.js +8 -1
- package/dist/modules/build/index.js.map +1 -1
- package/dist/modules/compiler/index.d.ts +2 -2
- package/dist/modules/compiler/index.js +45 -60
- package/dist/modules/compiler/index.js.map +1 -1
- package/dist/modules/dns-plan/index.d.ts +10 -0
- package/dist/modules/dns-plan/index.js +104 -0
- package/dist/modules/dns-plan/index.js.map +1 -0
- package/dist/modules/fetcher/index.d.ts +1 -0
- package/dist/modules/fetcher/index.js +66 -19
- package/dist/modules/fetcher/index.js.map +1 -1
- package/dist/modules/intent/index.d.ts +7 -0
- package/dist/modules/intent/index.js +101 -0
- package/dist/modules/intent/index.js.map +1 -0
- package/dist/modules/manager/index.d.ts +1 -0
- package/dist/modules/manager/index.js +15 -0
- package/dist/modules/manager/index.js.map +1 -1
- package/dist/modules/natural-language/index.js +2 -1
- package/dist/modules/natural-language/index.js.map +1 -1
- package/dist/modules/transactions/index.d.ts +20 -0
- package/dist/modules/transactions/index.js +150 -0
- package/dist/modules/transactions/index.js.map +1 -0
- package/dist/modules/update/index.d.ts +2 -0
- package/dist/modules/update/index.js +25 -6
- package/dist/modules/update/index.js.map +1 -1
- package/dist/modules/verification/index.d.ts +57 -0
- package/dist/modules/verification/index.js +326 -23
- package/dist/modules/verification/index.js.map +1 -1
- package/dist/modules/verification-plan/index.d.ts +9 -0
- package/dist/modules/verification-plan/index.js +117 -0
- package/dist/modules/verification-plan/index.js.map +1 -0
- package/docs/runtime-on-macos.md +21 -5
- package/examples/builder.config.yaml +7 -26
- package/package.json +1 -1
package/docs/runtime-on-macos.md
CHANGED
|
@@ -19,12 +19,19 @@ The target runtime is a headless macOS deployment:
|
|
|
19
19
|
## Current CLI Flow
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
singbox-iac
|
|
23
|
-
singbox-iac
|
|
24
|
-
singbox-iac
|
|
22
|
+
singbox-iac go '<url>' '<一句话策略>'
|
|
23
|
+
singbox-iac use '<新的需求描述>'
|
|
24
|
+
singbox-iac update
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Advanced commands remain available for debugging or fine-grained control:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
singbox-iac quickstart
|
|
31
|
+
singbox-iac setup
|
|
32
|
+
singbox-iac author
|
|
25
33
|
singbox-iac build
|
|
26
34
|
singbox-iac verify
|
|
27
|
-
singbox-iac update
|
|
28
35
|
singbox-iac schedule install
|
|
29
36
|
```
|
|
30
37
|
|
|
@@ -47,9 +54,18 @@ The tool must never overwrite the live config with an unchecked file.
|
|
|
47
54
|
For npm-installed users, the preferred onboarding path is now:
|
|
48
55
|
|
|
49
56
|
```bash
|
|
50
|
-
singbox-iac
|
|
57
|
+
singbox-iac go '<url>' '<一句话策略>'
|
|
51
58
|
```
|
|
52
59
|
|
|
53
60
|
That flow avoids manually chaining `init`, local ruleset downloads, route verification, and the first publish.
|
|
54
61
|
|
|
62
|
+
After onboarding, the preferred day-to-day commands are:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
singbox-iac use '<新的需求描述>'
|
|
66
|
+
singbox-iac update
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`update` now reloads `sing-box` automatically when the configured runtime target is already running.
|
|
70
|
+
|
|
55
71
|
If the prompt includes process-aware intent such as `Proxifier`, `进程级`, `Antigravity`, or `Cursor`, the onboarding flow should also generate `~/.config/singbox-iac/proxifier/` helper files so the user can set up process-level routing without manually reverse-engineering app process names.
|
|
@@ -79,6 +79,7 @@ groups:
|
|
|
79
79
|
- "JP"
|
|
80
80
|
- "HK"
|
|
81
81
|
defaultTarget: "US"
|
|
82
|
+
defaultNodePattern: "OnlyAI"
|
|
82
83
|
aiOut:
|
|
83
84
|
type: "selector"
|
|
84
85
|
includes:
|
|
@@ -115,34 +116,14 @@ rules:
|
|
|
115
116
|
|
|
116
117
|
verification:
|
|
117
118
|
scenarios:
|
|
118
|
-
- id: "
|
|
119
|
-
name: "
|
|
120
|
-
url: "https://
|
|
119
|
+
- id: "proxifier-google-favicon"
|
|
120
|
+
name: "Proxifier Google traffic stays on the dedicated US path"
|
|
121
|
+
url: "https://www.google.com/favicon.ico"
|
|
121
122
|
inbound: "in-proxifier"
|
|
122
123
|
expectedOutbound: "Process-Proxy"
|
|
123
|
-
- id: "
|
|
124
|
-
name: "
|
|
125
|
-
url: "https://
|
|
126
|
-
inbound: "in-proxifier"
|
|
127
|
-
expectedOutbound: "Process-Proxy"
|
|
128
|
-
- id: "antigravity-docs"
|
|
129
|
-
name: "Antigravity docs via proxifier stay on the dedicated US path"
|
|
130
|
-
url: "https://antigravity.google/docs"
|
|
131
|
-
inbound: "in-proxifier"
|
|
132
|
-
expectedOutbound: "Process-Proxy"
|
|
133
|
-
- id: "antigravity-rules-docs"
|
|
134
|
-
name: "Antigravity rules docs via proxifier stay on the dedicated US path"
|
|
135
|
-
url: "https://antigravity.google/docs/rules"
|
|
136
|
-
inbound: "in-proxifier"
|
|
137
|
-
expectedOutbound: "Process-Proxy"
|
|
138
|
-
- id: "antigravity-mcp-docs"
|
|
139
|
-
name: "Antigravity MCP docs via proxifier stay on the dedicated US path"
|
|
140
|
-
url: "https://antigravity.google/docs/mcp"
|
|
141
|
-
inbound: "in-proxifier"
|
|
142
|
-
expectedOutbound: "Process-Proxy"
|
|
143
|
-
- id: "antigravity-google-apis"
|
|
144
|
-
name: "Antigravity Google API discovery traffic via proxifier stays on the dedicated US path"
|
|
145
|
-
url: "https://www.googleapis.com/discovery/v1/apis"
|
|
124
|
+
- id: "proxifier-google-204"
|
|
125
|
+
name: "Proxifier Google connectivity uses the dedicated US path"
|
|
126
|
+
url: "https://www.gstatic.com/generate_204"
|
|
146
127
|
inbound: "in-proxifier"
|
|
147
128
|
expectedOutbound: "Process-Proxy"
|
|
148
129
|
- id: "stitch-us"
|