@yanzc/claude-pro 0.7.1 → 0.7.3
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/.env.example +24 -36
- package/README.md +317 -372
- package/package.json +2 -2
- package/src/agent.js +14 -2
- package/src/api.js +40 -173
- package/src/attach.js +14 -0
- package/src/background.js +102 -12
- package/src/checkpoints.js +4 -2
- package/src/commands.js +20 -85
- package/src/config.js +40 -151
- package/src/gateway.js +9 -3
- package/src/history.js +69 -0
- package/src/host.js +71 -14
- package/src/main.js +19 -2
- package/src/peers.js +3 -6
- package/src/print.js +1 -1
- package/src/prompts.js +1 -4
- package/src/ratelimit.js +6 -19
- package/src/remote.js +6 -40
- package/src/runtime.js +4 -2
- package/src/tools/peers.js +5 -9
- package/src/ui/repl.js +43 -215
- package/src/claude-code.js +0 -60
- package/src/codex/client.js +0 -310
- package/src/codex/translate-request.js +0 -239
- package/src/codex/translate-stream.js +0 -328
- package/src/oauth.js +0 -287
- package/src/transfer.js +0 -260
- package/src/utils/downloads.js +0 -83
package/.env.example
CHANGED
|
@@ -1,41 +1,29 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flash
|
|
1
|
+
# Optional gateway configuration. /login normally saves the key in
|
|
2
|
+
# ~/.claude-pro/gateway.json, so CLAUDE_PRO_GATEWAY_API_KEY is only needed for
|
|
3
|
+
# headless or automated runs.
|
|
4
|
+
CLAUDE_PRO_PROVIDER=gateway
|
|
5
|
+
CLAUDE_PRO_GATEWAY_URL=https://gw.predix.icu
|
|
6
|
+
CLAUDE_PRO_GATEWAY_API_KEY=gw-your-key
|
|
7
|
+
CLAUDE_PRO_GATEWAY_MODEL=opus
|
|
9
8
|
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
# CLAUDE_PRO_CLAUDE_CREDENTIALS_FILE=C:\Users\you\.claude\.credentials.json
|
|
21
|
-
# CLAUDE_PRO_CLAUDE_CODE_VERSION=2.1.289
|
|
22
|
-
# CLAUDE_CONFIG_DIR=C:\Users\you\.claude
|
|
23
|
-
# CLAUDE_PRO_DISABLE_TOPIC_TITLE=1 # tab title: keep the first message instead of the current topic (no small-model request per message)
|
|
24
|
-
# CLAUDE_PRO_AUTO_RESTART=0 # do not restart by itself when claude-pro's own source changed (/restart still works)
|
|
25
|
-
# CLAUDE_PRO_DISABLE_TOKEN_REFRESH=1 # claude-code provider: do not renew the expired login by itself
|
|
26
|
-
# CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
|
|
27
|
-
# MAX_THINKING_TOKENS=0 # 0 = disable thinking
|
|
28
|
-
# CLAUDE_CODE_PROMPT_CACHE_TTL=1h # prompt cache TTL of the conversation: 5m, or 1h (the default with CLAUDE_PRO_PROVIDER=claude-code, as in Claude Code; writes cost 2x, worth it when you often pause for more than 5 minutes)
|
|
29
|
-
# CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL=5m # ... of sub-agents, compaction and side queries
|
|
30
|
-
# ENABLE_PROMPT_CACHING_1H=1 # 1h for both (the two variables above win); FORCE_PROMPT_CACHING_5M=1 forces 5m for both
|
|
31
|
-
# DISABLE_PROMPT_CACHING=1 # send no cache_control at all (DISABLE_PROMPT_CACHING_HAIKU / _SONNET / _OPUS / _FABLE: one model only)
|
|
32
|
-
# CLAUDE_PRO_CLEAR_AFTER_IDLE=1 # back after more than 65 minutes: clear old tool results and thinking, as Claude Code does (default on for claude-code and api.anthropic.com, off for other endpoints)
|
|
9
|
+
# Reasoning and context tuning
|
|
10
|
+
# CLAUDE_CODE_EFFORT_LEVEL=high # default: the model's own
|
|
11
|
+
# CLAUDE_CODE_AUTO_COMPACT_WINDOW=250000 # default: the model's whole window
|
|
12
|
+
# CLAUDE_CODE_MAX_OUTPUT_TOKENS=48000 # gateway default
|
|
13
|
+
# MAX_THINKING_TOKENS=0 # 0 = disable thinking
|
|
14
|
+
# CLAUDE_CODE_PROMPT_CACHE_TTL=1h # 5m or 1h for the main conversation
|
|
15
|
+
# CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL=5m # sub-agents, compaction and side queries
|
|
16
|
+
# ENABLE_PROMPT_CACHING_1H=1 # 1h for both buckets
|
|
17
|
+
# FORCE_PROMPT_CACHING_5M=1 # force 5m for both buckets
|
|
18
|
+
# DISABLE_PROMPT_CACHING=1 # send no cache_control markers
|
|
33
19
|
# CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=90
|
|
34
20
|
# DISABLE_AUTOCOMPACT=1
|
|
21
|
+
|
|
22
|
+
# Request and tool limits
|
|
35
23
|
# API_TIMEOUT_MS=600000
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
-
# BASH_DEFAULT_TIMEOUT_MS=
|
|
39
|
-
# BASH_MAX_TIMEOUT_MS=
|
|
40
|
-
# BASH_MAX_OUTPUT_LENGTH=
|
|
24
|
+
# CLAUDE_PRO_MAX_RETRIES=6
|
|
25
|
+
# CLAUDE_PRO_RATE_LIMIT_MAX_WAIT_MS=21600000 # 0 = fail instead of waiting
|
|
26
|
+
# BASH_DEFAULT_TIMEOUT_MS=600000
|
|
27
|
+
# BASH_MAX_TIMEOUT_MS=3600000
|
|
28
|
+
# BASH_MAX_OUTPUT_LENGTH=60000
|
|
41
29
|
# CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
|