@rulemetric/proxy 0.7.0 → 0.7.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.
@@ -0,0 +1,49 @@
1
+ {
2
+ "_doc": [
3
+ "Canonical interception scope for the capture proxy (mitmdump --allow-hosts).",
4
+ "Each entry is a Python regex matched by mitmproxy against 'host:port' of a",
5
+ "CONNECT. Hosts that match NOTHING here are tunneled untouched — no TLS",
6
+ "interception, no CA involvement — so bundled-CA tools (pip/certifi, gcloud,",
7
+ "node without NODE_EXTRA_CA_CERTS) keep working while the machine-wide",
8
+ "HTTPS_PROXY is pinned. The list must cover every host detect_provider()",
9
+ "(providers.py) and the usage-research adapters can capture; the pytest",
10
+ "sync-guard test_allow_hosts.py enforces that. Escape hatches (read by",
11
+ "`rulemetric proxy start`): RULEMETRIC_PROXY_ALL_HOSTS=1 restores",
12
+ "intercept-everything (needed for generic OpenAI-compatible endpoints on",
13
+ "arbitrary self-hosted domains — the detect_provider catch-all);",
14
+ "RULEMETRIC_PROXY_EXTRA_HOSTS=<comma-separated regexes> extends this list."
15
+ ],
16
+ "allow": [
17
+ "(^|\\.)api\\.anthropic\\.com:",
18
+ "(^|\\.)generativelanguage\\.googleapis\\.com:",
19
+ "bedrock-runtime[^:]*:",
20
+ "\\.snowflakecomputing\\.com:",
21
+ "(^|\\.)copilot-proxy\\.githubusercontent\\.com:",
22
+ "\\.openai\\.azure\\.com:",
23
+ "\\.models\\.ai\\.azure\\.com:",
24
+ "(^|\\.)api\\.cloudflare\\.com:",
25
+ "\\.cloud\\.databricks\\.com:",
26
+ "(^|\\.)api\\.openai\\.com:",
27
+ "(^|\\.)api\\.groq\\.com:",
28
+ "(^|\\.)api\\.together\\.xyz:",
29
+ "(^|\\.)api\\.fireworks\\.ai:",
30
+ "(^|\\.)api\\.deepseek\\.com:",
31
+ "(^|\\.)api\\.perplexity\\.ai:",
32
+ "(^|\\.)api\\.cerebras\\.ai:",
33
+ "(^|\\.)api\\.sambanova\\.ai:",
34
+ "(^|\\.)api\\.x\\.ai:",
35
+ "(^|\\.)api\\.mistral\\.ai:",
36
+ "(^|\\.)integrate\\.api\\.nvidia\\.com:",
37
+ "(^|\\.)api\\.ai21\\.com:",
38
+ "(^|\\.)api\\.cohere\\.com:",
39
+ "(^|\\.)openrouter\\.ai:",
40
+ "(^|\\.)openai-proxy\\.replicate\\.com:",
41
+ "(^|\\.)api\\.githubcopilot\\.com:",
42
+ "(^|\\.)api\\.individual\\.githubcopilot\\.com:",
43
+ "(^|\\.)api\\.business\\.githubcopilot\\.com:",
44
+ "(^|\\.)api\\.enterprise\\.githubcopilot\\.com:",
45
+ "(^|\\.)chatgpt\\.com:",
46
+ "^localhost:",
47
+ "^127\\.0\\.0\\.1:"
48
+ ]
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulemetric/proxy",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",