anti-trace 0.1.0 → 0.1.4
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 +129 -154
- package/README.md +129 -153
- package/byok.providers.example.json +81 -81
- package/dist/harness/compaction.js +88 -88
- package/dist/harness/prompt.js +16 -16
- package/dist/harness/tools/powershell.js +11 -11
- package/package.json +68 -66
- package/dist/cli/input/stash/cli-prompt.d.ts +0 -28
- package/dist/cli/input/stash/cli-prompt.js +0 -289
- package/dist/cli/input/stash/cli-prompt.js.map +0 -1
- package/dist/cli/input/stash/cli-renderer.d.ts +0 -24
- package/dist/cli/input/stash/cli-renderer.js +0 -221
- package/dist/cli/input/stash/cli-renderer.js.map +0 -1
- package/dist/cli/input/stash/draft.d.ts +0 -40
- package/dist/cli/input/stash/draft.js +0 -278
- package/dist/cli/input/stash/draft.js.map +0 -1
- package/dist/cli/input/stash/paste-burst.d.ts +0 -39
- package/dist/cli/input/stash/paste-burst.js +0 -120
- package/dist/cli/input/stash/paste-burst.js.map +0 -1
- package/dist/cli/input/stash/terminal.d.ts +0 -62
- package/dist/cli/input/stash/terminal.js +0 -353
- package/dist/cli/input/stash/terminal.js.map +0 -1
- package/dist/cli/utils/image.d.ts +0 -15
- package/dist/cli/utils/image.js +0 -175
- package/dist/cli/utils/image.js.map +0 -1
- package/dist/tui/permissions/permission-policy.d.ts +0 -42
- package/dist/tui/permissions/permission-policy.js +0 -144
- package/dist/tui/permissions/permission-policy.js.map +0 -1
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 1,
|
|
3
|
-
"connections": {
|
|
4
|
-
"openai": {"preset": "openai", "apiKeyEnv": "OPENAI_API_KEY"},
|
|
5
|
-
"openai-chat": {"preset": "openai-chat", "apiKeyEnv": "OPENAI_API_KEY"},
|
|
6
|
-
"anthropic": {"preset": "anthropic", "apiKeyEnv": "ANTHROPIC_API_KEY"},
|
|
7
|
-
"deepseek": {"preset": "deepseek", "apiKeyEnv": "DEEPSEEK_API_KEY"},
|
|
8
|
-
"kimi-cn": {"preset": "kimi-cn", "apiKeyEnv": "KIMI_CN_API_KEY"},
|
|
9
|
-
"kimi-global": {"preset": "kimi-global", "apiKeyEnv": "KIMI_GLOBAL_API_KEY"},
|
|
10
|
-
"glm-cn": {"preset": "glm-cn", "apiKeyEnv": "GLM_CN_API_KEY"},
|
|
11
|
-
"glm-global": {"preset": "glm-global", "apiKeyEnv": "GLM_GLOBAL_API_KEY"},
|
|
12
|
-
"glm-coding-cn": {"preset": "glm-coding-cn", "apiKeyEnv": "GLM_CODING_CN_API_KEY"},
|
|
13
|
-
"glm-coding-global": {"preset": "glm-coding-global", "apiKeyEnv": "GLM_CODING_GLOBAL_API_KEY"},
|
|
14
|
-
"minimax-cn": {"preset": "minimax-cn", "apiKeyEnv": "MINIMAX_CN_API_KEY"},
|
|
15
|
-
"minimax-global": {"preset": "minimax-global", "apiKeyEnv": "MINIMAX_GLOBAL_API_KEY"},
|
|
16
|
-
"qwen-cn": {"preset": "qwen-cn", "apiKeyEnv": "QWEN_CN_API_KEY"},
|
|
17
|
-
"qwen-global": {"preset": "qwen-global", "apiKeyEnv": "QWEN_GLOBAL_API_KEY"},
|
|
18
|
-
"qwen-us": {"preset": "qwen-us", "apiKeyEnv": "QWEN_US_API_KEY"},
|
|
19
|
-
"grok": {"preset": "grok", "apiKeyEnv": "XAI_API_KEY"},
|
|
20
|
-
"gemini": {"preset": "gemini", "apiKeyEnv": "GEMINI_API_KEY"},
|
|
21
|
-
"deepseek-responses": {"preset": "deepseek-responses", "apiKeyEnv": "DEEPSEEK_API_KEY"},
|
|
22
|
-
"deepseek-anthropic": {"preset": "deepseek-anthropic", "apiKeyEnv": "DEEPSEEK_API_KEY"},
|
|
23
|
-
"kimi-cn-responses": {"preset": "kimi-cn-responses", "apiKeyEnv": "KIMI_CN_API_KEY"},
|
|
24
|
-
"kimi-cn-anthropic": {"preset": "kimi-cn-anthropic", "apiKeyEnv": "KIMI_CN_API_KEY"},
|
|
25
|
-
"kimi-global-responses": {"preset": "kimi-global-responses", "apiKeyEnv": "KIMI_GLOBAL_API_KEY"},
|
|
26
|
-
"kimi-global-anthropic": {"preset": "kimi-global-anthropic", "apiKeyEnv": "KIMI_GLOBAL_API_KEY"},
|
|
27
|
-
"glm-cn-responses": {"preset": "glm-cn-responses", "apiKeyEnv": "GLM_CN_API_KEY"},
|
|
28
|
-
"glm-cn-anthropic": {"preset": "glm-cn-anthropic", "apiKeyEnv": "GLM_CN_API_KEY"},
|
|
29
|
-
"glm-global-anthropic": {"preset": "glm-global-anthropic", "apiKeyEnv": "GLM_GLOBAL_API_KEY"},
|
|
30
|
-
"minimax-cn-responses": {"preset": "minimax-cn-responses", "apiKeyEnv": "MINIMAX_CN_API_KEY"},
|
|
31
|
-
"minimax-global-responses": {"preset": "minimax-global-responses", "apiKeyEnv": "MINIMAX_GLOBAL_API_KEY"},
|
|
32
|
-
"minimax-cn-anthropic": {"preset": "minimax-cn-anthropic", "apiKeyEnv": "MINIMAX_CN_API_KEY"},
|
|
33
|
-
"minimax-global-anthropic": {"preset": "minimax-global-anthropic", "apiKeyEnv": "MINIMAX_GLOBAL_API_KEY"},
|
|
34
|
-
"qwen-cn-responses": {"preset": "qwen-cn-responses", "apiKeyEnv": "QWEN_CN_API_KEY"},
|
|
35
|
-
"qwen-global-responses": {"preset": "qwen-global-responses", "apiKeyEnv": "QWEN_GLOBAL_API_KEY"},
|
|
36
|
-
"qwen-us-responses": {"preset": "qwen-us-responses", "apiKeyEnv": "QWEN_US_API_KEY"},
|
|
37
|
-
"qwen-cn-anthropic": {"preset": "qwen-cn-anthropic", "apiKeyEnv": "QWEN_CN_API_KEY"},
|
|
38
|
-
"qwen-global-anthropic": {"preset": "qwen-global-anthropic", "apiKeyEnv": "QWEN_GLOBAL_API_KEY"},
|
|
39
|
-
"grok-responses": {"preset": "grok-responses", "apiKeyEnv": "XAI_API_KEY"}
|
|
40
|
-
},
|
|
41
|
-
"models": {
|
|
42
|
-
"openai": {"connection": "openai", "id": "gpt-5.2", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
43
|
-
"openai-chat": {"connection": "openai-chat", "id": "gpt-5.2", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
44
|
-
"claude": {"connection": "anthropic", "id": "claude-sonnet-4-6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
45
|
-
"deepseek": {"connection": "deepseek", "id": "deepseek-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
46
|
-
"kimi-cn": {"connection": "kimi-cn", "id": "kimi-k2.6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
47
|
-
"kimi-global": {"connection": "kimi-global", "id": "kimi-k2.6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
48
|
-
"glm-cn": {"connection": "glm-cn", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
49
|
-
"glm-global": {"connection": "glm-global", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
50
|
-
"glm-coding-cn": {"connection": "glm-coding-cn", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
51
|
-
"glm-coding-global": {"connection": "glm-coding-global", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
52
|
-
"minimax-cn": {"connection": "minimax-cn", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
53
|
-
"minimax-global": {"connection": "minimax-global", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
54
|
-
"qwen-cn": {"connection": "qwen-cn", "id": "qwen3.5-plus", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
55
|
-
"qwen-global": {"connection": "qwen-global", "id": "qwen3.5-plus", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
56
|
-
"qwen-us": {"connection": "qwen-us", "id": "qwen3.5-plus", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
57
|
-
"grok": {"connection": "grok", "id": "grok-4.6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
58
|
-
"gemini": {"connection": "gemini", "id": "gemini-2.5-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
59
|
-
"deepseek-responses": {"connection": "deepseek-responses", "id": "deepseek-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
60
|
-
"deepseek-anthropic": {"connection": "deepseek-anthropic", "id": "deepseek-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
61
|
-
"kimi-cn-responses": {"connection": "kimi-cn-responses", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
62
|
-
"kimi-cn-anthropic": {"connection": "kimi-cn-anthropic", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
63
|
-
"kimi-global-responses": {"connection": "kimi-global-responses", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
64
|
-
"kimi-global-anthropic": {"connection": "kimi-global-anthropic", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
65
|
-
"glm-cn-responses": {"connection": "glm-cn-responses", "id": "glm-5.3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
66
|
-
"glm-cn-anthropic": {"connection": "glm-cn-anthropic", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
67
|
-
"glm-global-anthropic": {"connection": "glm-global-anthropic", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
68
|
-
"minimax-cn-responses": {"connection": "minimax-cn-responses", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
69
|
-
"minimax-global-responses": {"connection": "minimax-global-responses", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
70
|
-
"minimax-cn-anthropic": {"connection": "minimax-cn-anthropic", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
71
|
-
"minimax-global-anthropic": {"connection": "minimax-global-anthropic", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
72
|
-
"qwen-cn-responses": {"connection": "qwen-cn-responses", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
73
|
-
"qwen-global-responses": {"connection": "qwen-global-responses", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
74
|
-
"qwen-us-responses": {"connection": "qwen-us-responses", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
75
|
-
"qwen-cn-anthropic": {"connection": "qwen-cn-anthropic", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
76
|
-
"qwen-global-anthropic": {"connection": "qwen-global-anthropic", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
77
|
-
"grok-responses": {"connection": "grok-responses", "id": "grok-4.7", "contextWindow": 128000, "maxOutputTokens": 16384}
|
|
78
|
-
},
|
|
79
|
-
"currentModel": "deepseek",
|
|
80
|
-
"thinking": {"effort": "medium"}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"connections": {
|
|
4
|
+
"openai": {"preset": "openai", "apiKeyEnv": "OPENAI_API_KEY"},
|
|
5
|
+
"openai-chat": {"preset": "openai-chat", "apiKeyEnv": "OPENAI_API_KEY"},
|
|
6
|
+
"anthropic": {"preset": "anthropic", "apiKeyEnv": "ANTHROPIC_API_KEY"},
|
|
7
|
+
"deepseek": {"preset": "deepseek", "apiKeyEnv": "DEEPSEEK_API_KEY"},
|
|
8
|
+
"kimi-cn": {"preset": "kimi-cn", "apiKeyEnv": "KIMI_CN_API_KEY"},
|
|
9
|
+
"kimi-global": {"preset": "kimi-global", "apiKeyEnv": "KIMI_GLOBAL_API_KEY"},
|
|
10
|
+
"glm-cn": {"preset": "glm-cn", "apiKeyEnv": "GLM_CN_API_KEY"},
|
|
11
|
+
"glm-global": {"preset": "glm-global", "apiKeyEnv": "GLM_GLOBAL_API_KEY"},
|
|
12
|
+
"glm-coding-cn": {"preset": "glm-coding-cn", "apiKeyEnv": "GLM_CODING_CN_API_KEY"},
|
|
13
|
+
"glm-coding-global": {"preset": "glm-coding-global", "apiKeyEnv": "GLM_CODING_GLOBAL_API_KEY"},
|
|
14
|
+
"minimax-cn": {"preset": "minimax-cn", "apiKeyEnv": "MINIMAX_CN_API_KEY"},
|
|
15
|
+
"minimax-global": {"preset": "minimax-global", "apiKeyEnv": "MINIMAX_GLOBAL_API_KEY"},
|
|
16
|
+
"qwen-cn": {"preset": "qwen-cn", "apiKeyEnv": "QWEN_CN_API_KEY"},
|
|
17
|
+
"qwen-global": {"preset": "qwen-global", "apiKeyEnv": "QWEN_GLOBAL_API_KEY"},
|
|
18
|
+
"qwen-us": {"preset": "qwen-us", "apiKeyEnv": "QWEN_US_API_KEY"},
|
|
19
|
+
"grok": {"preset": "grok", "apiKeyEnv": "XAI_API_KEY"},
|
|
20
|
+
"gemini": {"preset": "gemini", "apiKeyEnv": "GEMINI_API_KEY"},
|
|
21
|
+
"deepseek-responses": {"preset": "deepseek-responses", "apiKeyEnv": "DEEPSEEK_API_KEY"},
|
|
22
|
+
"deepseek-anthropic": {"preset": "deepseek-anthropic", "apiKeyEnv": "DEEPSEEK_API_KEY"},
|
|
23
|
+
"kimi-cn-responses": {"preset": "kimi-cn-responses", "apiKeyEnv": "KIMI_CN_API_KEY"},
|
|
24
|
+
"kimi-cn-anthropic": {"preset": "kimi-cn-anthropic", "apiKeyEnv": "KIMI_CN_API_KEY"},
|
|
25
|
+
"kimi-global-responses": {"preset": "kimi-global-responses", "apiKeyEnv": "KIMI_GLOBAL_API_KEY"},
|
|
26
|
+
"kimi-global-anthropic": {"preset": "kimi-global-anthropic", "apiKeyEnv": "KIMI_GLOBAL_API_KEY"},
|
|
27
|
+
"glm-cn-responses": {"preset": "glm-cn-responses", "apiKeyEnv": "GLM_CN_API_KEY"},
|
|
28
|
+
"glm-cn-anthropic": {"preset": "glm-cn-anthropic", "apiKeyEnv": "GLM_CN_API_KEY"},
|
|
29
|
+
"glm-global-anthropic": {"preset": "glm-global-anthropic", "apiKeyEnv": "GLM_GLOBAL_API_KEY"},
|
|
30
|
+
"minimax-cn-responses": {"preset": "minimax-cn-responses", "apiKeyEnv": "MINIMAX_CN_API_KEY"},
|
|
31
|
+
"minimax-global-responses": {"preset": "minimax-global-responses", "apiKeyEnv": "MINIMAX_GLOBAL_API_KEY"},
|
|
32
|
+
"minimax-cn-anthropic": {"preset": "minimax-cn-anthropic", "apiKeyEnv": "MINIMAX_CN_API_KEY"},
|
|
33
|
+
"minimax-global-anthropic": {"preset": "minimax-global-anthropic", "apiKeyEnv": "MINIMAX_GLOBAL_API_KEY"},
|
|
34
|
+
"qwen-cn-responses": {"preset": "qwen-cn-responses", "apiKeyEnv": "QWEN_CN_API_KEY"},
|
|
35
|
+
"qwen-global-responses": {"preset": "qwen-global-responses", "apiKeyEnv": "QWEN_GLOBAL_API_KEY"},
|
|
36
|
+
"qwen-us-responses": {"preset": "qwen-us-responses", "apiKeyEnv": "QWEN_US_API_KEY"},
|
|
37
|
+
"qwen-cn-anthropic": {"preset": "qwen-cn-anthropic", "apiKeyEnv": "QWEN_CN_API_KEY"},
|
|
38
|
+
"qwen-global-anthropic": {"preset": "qwen-global-anthropic", "apiKeyEnv": "QWEN_GLOBAL_API_KEY"},
|
|
39
|
+
"grok-responses": {"preset": "grok-responses", "apiKeyEnv": "XAI_API_KEY"}
|
|
40
|
+
},
|
|
41
|
+
"models": {
|
|
42
|
+
"openai": {"connection": "openai", "id": "gpt-5.2", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
43
|
+
"openai-chat": {"connection": "openai-chat", "id": "gpt-5.2", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
44
|
+
"claude": {"connection": "anthropic", "id": "claude-sonnet-4-6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
45
|
+
"deepseek": {"connection": "deepseek", "id": "deepseek-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
46
|
+
"kimi-cn": {"connection": "kimi-cn", "id": "kimi-k2.6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
47
|
+
"kimi-global": {"connection": "kimi-global", "id": "kimi-k2.6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
48
|
+
"glm-cn": {"connection": "glm-cn", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
49
|
+
"glm-global": {"connection": "glm-global", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
50
|
+
"glm-coding-cn": {"connection": "glm-coding-cn", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
51
|
+
"glm-coding-global": {"connection": "glm-coding-global", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
52
|
+
"minimax-cn": {"connection": "minimax-cn", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
53
|
+
"minimax-global": {"connection": "minimax-global", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
54
|
+
"qwen-cn": {"connection": "qwen-cn", "id": "qwen3.5-plus", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
55
|
+
"qwen-global": {"connection": "qwen-global", "id": "qwen3.5-plus", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
56
|
+
"qwen-us": {"connection": "qwen-us", "id": "qwen3.5-plus", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
57
|
+
"grok": {"connection": "grok", "id": "grok-4.6", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
58
|
+
"gemini": {"connection": "gemini", "id": "gemini-2.5-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
59
|
+
"deepseek-responses": {"connection": "deepseek-responses", "id": "deepseek-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
60
|
+
"deepseek-anthropic": {"connection": "deepseek-anthropic", "id": "deepseek-flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
61
|
+
"kimi-cn-responses": {"connection": "kimi-cn-responses", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
62
|
+
"kimi-cn-anthropic": {"connection": "kimi-cn-anthropic", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
63
|
+
"kimi-global-responses": {"connection": "kimi-global-responses", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
64
|
+
"kimi-global-anthropic": {"connection": "kimi-global-anthropic", "id": "kimi-k3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
65
|
+
"glm-cn-responses": {"connection": "glm-cn-responses", "id": "glm-5.3", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
66
|
+
"glm-cn-anthropic": {"connection": "glm-cn-anthropic", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
67
|
+
"glm-global-anthropic": {"connection": "glm-global-anthropic", "id": "glm-4.7", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
68
|
+
"minimax-cn-responses": {"connection": "minimax-cn-responses", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
69
|
+
"minimax-global-responses": {"connection": "minimax-global-responses", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
70
|
+
"minimax-cn-anthropic": {"connection": "minimax-cn-anthropic", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
71
|
+
"minimax-global-anthropic": {"connection": "minimax-global-anthropic", "id": "MiniMax-M3.1-Flash", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
72
|
+
"qwen-cn-responses": {"connection": "qwen-cn-responses", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
73
|
+
"qwen-global-responses": {"connection": "qwen-global-responses", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
74
|
+
"qwen-us-responses": {"connection": "qwen-us-responses", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
75
|
+
"qwen-cn-anthropic": {"connection": "qwen-cn-anthropic", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
76
|
+
"qwen-global-anthropic": {"connection": "qwen-global-anthropic", "id": "qwen3.8-max", "contextWindow": 128000, "maxOutputTokens": 16384},
|
|
77
|
+
"grok-responses": {"connection": "grok-responses", "id": "grok-4.7", "contextWindow": 128000, "maxOutputTokens": 16384}
|
|
78
|
+
},
|
|
79
|
+
"currentModel": "deepseek",
|
|
80
|
+
"thinking": {"effort": "medium"}
|
|
81
|
+
}
|
|
@@ -92,96 +92,96 @@ export function findCutIndex(messages, keepRecentTokens) {
|
|
|
92
92
|
// therefore answer with a tool call; `isToolCallReply` lets the caller fail that attempt.
|
|
93
93
|
// ---------------------------------------------------------------------------
|
|
94
94
|
// ZCode / Claude Code list their own tool names here; adapted to this project's four tools.
|
|
95
|
-
const NO_TOOLS_PREAMBLE = `CRITICAL: Respond with TEXT ONLY. Do NOT call any tools.
|
|
96
|
-
|
|
97
|
-
- Do NOT use read, bash, edit, write, or ANY other tool.
|
|
98
|
-
- You already have all the context you need in the conversation above.
|
|
99
|
-
- Tool calls will be REJECTED and will waste your only turn — you will fail the task.
|
|
100
|
-
- Your entire response must be plain text: an <analysis> block followed by a <summary> block.
|
|
101
|
-
|
|
95
|
+
const NO_TOOLS_PREAMBLE = `CRITICAL: Respond with TEXT ONLY. Do NOT call any tools.
|
|
96
|
+
|
|
97
|
+
- Do NOT use read, bash, edit, write, or ANY other tool.
|
|
98
|
+
- You already have all the context you need in the conversation above.
|
|
99
|
+
- Tool calls will be REJECTED and will waste your only turn — you will fail the task.
|
|
100
|
+
- Your entire response must be plain text: an <analysis> block followed by a <summary> block.
|
|
101
|
+
|
|
102
102
|
`;
|
|
103
103
|
const NO_TOOLS_TRAILER = "\n\nREMINDER: Do NOT call any tools. Respond with plain text only — " +
|
|
104
104
|
"an <analysis> block followed by a <summary> block. " +
|
|
105
105
|
"Tool calls will be rejected and you will fail the task.";
|
|
106
|
-
const BASE_COMPACT_PROMPT = `Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.
|
|
107
|
-
This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.
|
|
108
|
-
|
|
109
|
-
Before providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:
|
|
110
|
-
|
|
111
|
-
1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
|
|
112
|
-
- The user's explicit requests and intents
|
|
113
|
-
- Your approach to addressing the user's requests
|
|
114
|
-
- Key decisions, technical concepts and code patterns
|
|
115
|
-
- Specific details like:
|
|
116
|
-
- file names
|
|
117
|
-
- full code snippets
|
|
118
|
-
- function signatures
|
|
119
|
-
- file edits
|
|
120
|
-
- Errors that you ran into and how you fixed them
|
|
121
|
-
- Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
|
|
122
|
-
2. Double-check for technical accuracy and completeness, addressing each required element thoroughly.
|
|
123
|
-
|
|
124
|
-
Your summary should include the following sections:
|
|
125
|
-
|
|
126
|
-
1. Primary Request and Intent: Capture all of the user's explicit requests and intents in detail
|
|
127
|
-
2. Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.
|
|
128
|
-
3. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
|
|
129
|
-
4. Errors and fixes: List all errors that you ran into, and how you fixed them. Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
|
|
130
|
-
5. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.
|
|
131
|
-
6. All user messages: List ALL user messages that are not tool results. These are critical for understanding the users' feedback and changing intent.
|
|
132
|
-
7. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.
|
|
133
|
-
8. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
|
|
134
|
-
9. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's most recent explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests or really old requests that were already completed without confirming with the user first.
|
|
135
|
-
|
|
136
|
-
Here's an example of how your output should be structured:
|
|
137
|
-
|
|
138
|
-
<example>
|
|
139
|
-
<analysis>
|
|
140
|
-
[Your thought process, ensuring all points are covered thoroughly and accurately]
|
|
141
|
-
</analysis>
|
|
142
|
-
|
|
143
|
-
<summary>
|
|
144
|
-
1. Primary Request and Intent:
|
|
145
|
-
[Detailed description]
|
|
146
|
-
|
|
147
|
-
2. Key Technical Concepts:
|
|
148
|
-
- [Concept 1]
|
|
149
|
-
- [Concept 2]
|
|
150
|
-
- [...]
|
|
151
|
-
|
|
152
|
-
3. Files and Code Sections:
|
|
153
|
-
- [File Name 1]
|
|
154
|
-
- [Summary of why this file is important]
|
|
155
|
-
- [Summary of the changes made to this file, if any]
|
|
156
|
-
- [Important Code Snippet]
|
|
157
|
-
- [...]
|
|
158
|
-
|
|
159
|
-
4. Errors and fixes:
|
|
160
|
-
- [Detailed description of error 1]:
|
|
161
|
-
- [How you fixed the error]
|
|
162
|
-
- [User feedback on the error if any]
|
|
163
|
-
- [...]
|
|
164
|
-
|
|
165
|
-
5. Problem Solving:
|
|
166
|
-
[Description of solved problems and ongoing troubleshooting]
|
|
167
|
-
|
|
168
|
-
6. All user messages:
|
|
169
|
-
- [Detailed non tool use user message]
|
|
170
|
-
- [...]
|
|
171
|
-
|
|
172
|
-
7. Pending Tasks:
|
|
173
|
-
- [Task 1]
|
|
174
|
-
- [Task 2]
|
|
175
|
-
- [...]
|
|
176
|
-
|
|
177
|
-
8. Current Work:
|
|
178
|
-
[Precise description of current work]
|
|
179
|
-
|
|
180
|
-
9. Optional Next Step:
|
|
181
|
-
[Optional Next step to take]
|
|
182
|
-
</summary>
|
|
183
|
-
</example>
|
|
184
|
-
|
|
106
|
+
const BASE_COMPACT_PROMPT = `Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.
|
|
107
|
+
This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.
|
|
108
|
+
|
|
109
|
+
Before providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:
|
|
110
|
+
|
|
111
|
+
1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
|
|
112
|
+
- The user's explicit requests and intents
|
|
113
|
+
- Your approach to addressing the user's requests
|
|
114
|
+
- Key decisions, technical concepts and code patterns
|
|
115
|
+
- Specific details like:
|
|
116
|
+
- file names
|
|
117
|
+
- full code snippets
|
|
118
|
+
- function signatures
|
|
119
|
+
- file edits
|
|
120
|
+
- Errors that you ran into and how you fixed them
|
|
121
|
+
- Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
|
|
122
|
+
2. Double-check for technical accuracy and completeness, addressing each required element thoroughly.
|
|
123
|
+
|
|
124
|
+
Your summary should include the following sections:
|
|
125
|
+
|
|
126
|
+
1. Primary Request and Intent: Capture all of the user's explicit requests and intents in detail
|
|
127
|
+
2. Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.
|
|
128
|
+
3. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
|
|
129
|
+
4. Errors and fixes: List all errors that you ran into, and how you fixed them. Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
|
|
130
|
+
5. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.
|
|
131
|
+
6. All user messages: List ALL user messages that are not tool results. These are critical for understanding the users' feedback and changing intent.
|
|
132
|
+
7. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.
|
|
133
|
+
8. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
|
|
134
|
+
9. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's most recent explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests or really old requests that were already completed without confirming with the user first.
|
|
135
|
+
|
|
136
|
+
Here's an example of how your output should be structured:
|
|
137
|
+
|
|
138
|
+
<example>
|
|
139
|
+
<analysis>
|
|
140
|
+
[Your thought process, ensuring all points are covered thoroughly and accurately]
|
|
141
|
+
</analysis>
|
|
142
|
+
|
|
143
|
+
<summary>
|
|
144
|
+
1. Primary Request and Intent:
|
|
145
|
+
[Detailed description]
|
|
146
|
+
|
|
147
|
+
2. Key Technical Concepts:
|
|
148
|
+
- [Concept 1]
|
|
149
|
+
- [Concept 2]
|
|
150
|
+
- [...]
|
|
151
|
+
|
|
152
|
+
3. Files and Code Sections:
|
|
153
|
+
- [File Name 1]
|
|
154
|
+
- [Summary of why this file is important]
|
|
155
|
+
- [Summary of the changes made to this file, if any]
|
|
156
|
+
- [Important Code Snippet]
|
|
157
|
+
- [...]
|
|
158
|
+
|
|
159
|
+
4. Errors and fixes:
|
|
160
|
+
- [Detailed description of error 1]:
|
|
161
|
+
- [How you fixed the error]
|
|
162
|
+
- [User feedback on the error if any]
|
|
163
|
+
- [...]
|
|
164
|
+
|
|
165
|
+
5. Problem Solving:
|
|
166
|
+
[Description of solved problems and ongoing troubleshooting]
|
|
167
|
+
|
|
168
|
+
6. All user messages:
|
|
169
|
+
- [Detailed non tool use user message]
|
|
170
|
+
- [...]
|
|
171
|
+
|
|
172
|
+
7. Pending Tasks:
|
|
173
|
+
- [Task 1]
|
|
174
|
+
- [Task 2]
|
|
175
|
+
- [...]
|
|
176
|
+
|
|
177
|
+
8. Current Work:
|
|
178
|
+
[Precise description of current work]
|
|
179
|
+
|
|
180
|
+
9. Optional Next Step:
|
|
181
|
+
[Optional Next step to take]
|
|
182
|
+
</summary>
|
|
183
|
+
</example>
|
|
184
|
+
|
|
185
185
|
Please provide your summary based on the conversation so far, following this structure and ensuring precision and thoroughness in your response.`;
|
|
186
186
|
/**
|
|
187
187
|
* Build the instruction appended as the final user message of the summary request.
|
|
@@ -279,8 +279,8 @@ export async function summarizeConversation(options) {
|
|
|
279
279
|
}
|
|
280
280
|
/** Wrap a summary as the replacement for the compacted history, telling the model to just continue. */
|
|
281
281
|
export function buildCompactSummaryMessage(summary, options = {}) {
|
|
282
|
-
let message = `This session is continuing after earlier messages were compacted. The summary below covers those earlier messages.
|
|
283
|
-
|
|
282
|
+
let message = `This session is continuing after earlier messages were compacted. The summary below covers those earlier messages.
|
|
283
|
+
|
|
284
284
|
${formatSummary(summary)}`;
|
|
285
285
|
if (options.transcriptPath) {
|
|
286
286
|
message += `\n\nIf you need specific details from before compaction (like exact code snippets, error messages, or content you generated), read the full session file at: ${options.transcriptPath}`;
|
package/dist/harness/prompt.js
CHANGED
|
@@ -4,18 +4,18 @@ export function buildSystemPrompt(options) {
|
|
|
4
4
|
function promptHeader(options) {
|
|
5
5
|
const cwd = options.cwd.replace(/\\/g, "/");
|
|
6
6
|
const toolsList = options.toolNames.length > 0 ? options.toolNames.map((name) => `- ${name}`).join("\n") : "(none)";
|
|
7
|
-
return `You are Anti-trace, a CLI coding assistant.
|
|
8
|
-
|
|
9
|
-
Working directory: ${cwd}
|
|
10
|
-
|
|
11
|
-
Available tools:
|
|
7
|
+
return `You are Anti-trace, a CLI coding assistant.
|
|
8
|
+
|
|
9
|
+
Working directory: ${cwd}
|
|
10
|
+
|
|
11
|
+
Available tools:
|
|
12
12
|
${toolsList}`;
|
|
13
13
|
}
|
|
14
14
|
function buildPosixSystemPrompt(options) {
|
|
15
|
-
return `${promptHeader(options)}
|
|
16
|
-
|
|
17
|
-
Use read to examine files. Use edit for unique text replacements in an existing file. Use write to create or overwrite a whole file. Use bash to list files and run commands.
|
|
18
|
-
|
|
15
|
+
return `${promptHeader(options)}
|
|
16
|
+
|
|
17
|
+
Use read to examine files. Use edit for unique text replacements in an existing file. Use write to create or overwrite a whole file. Use bash to list files and run commands.
|
|
18
|
+
|
|
19
19
|
Be concise.`;
|
|
20
20
|
}
|
|
21
21
|
function buildWindowsSystemPrompt(options) {
|
|
@@ -28,13 +28,13 @@ function buildWindowsSystemPrompt(options) {
|
|
|
28
28
|
}
|
|
29
29
|
if (options.toolNames.includes("bash"))
|
|
30
30
|
shellRules.push("Use bash for Bash scripts or POSIX-specific commands. It runs Git Bash, not CMD; use Bash syntax and forward-slash paths.");
|
|
31
|
-
return `${promptHeader(options)}
|
|
32
|
-
|
|
33
|
-
Platform: Windows.
|
|
34
|
-
|
|
35
|
-
Use read to examine files. Use edit for unique text replacements in an existing file. Use write to create or overwrite a whole file.
|
|
36
|
-
${shellRules.join("\n")}
|
|
37
|
-
|
|
31
|
+
return `${promptHeader(options)}
|
|
32
|
+
|
|
33
|
+
Platform: Windows.
|
|
34
|
+
|
|
35
|
+
Use read to examine files. Use edit for unique text replacements in an existing file. Use write to create or overwrite a whole file.
|
|
36
|
+
${shellRules.join("\n")}
|
|
37
|
+
|
|
38
38
|
Be concise.`;
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=prompt.js.map
|
|
@@ -15,17 +15,17 @@ export function createPowerShellTool(cwd, config = getShellEnvironment().powersh
|
|
|
15
15
|
export function powerShellArgs(command) {
|
|
16
16
|
// Set this before New-Object auto-loads modules: Windows PowerShell 5.1
|
|
17
17
|
// otherwise serializes initialization progress as CLIXML on stderr.
|
|
18
|
-
const script = `$ProgressPreference = 'SilentlyContinue'
|
|
19
|
-
[Console]::OutputEncoding = New-Object System.Text.UTF8Encoding($false)
|
|
20
|
-
$OutputEncoding = [Console]::OutputEncoding
|
|
21
|
-
$LASTEXITCODE = $null
|
|
22
|
-
try {
|
|
23
|
-
${command}
|
|
24
|
-
$commandSucceeded = $?
|
|
25
|
-
if ($null -ne $LASTEXITCODE) { exit $LASTEXITCODE }
|
|
26
|
-
if (-not $commandSucceeded) { exit 1 }
|
|
27
|
-
exit 0
|
|
28
|
-
} catch { [Console]::Error.WriteLine($_.ToString()); exit 1 }
|
|
18
|
+
const script = `$ProgressPreference = 'SilentlyContinue'
|
|
19
|
+
[Console]::OutputEncoding = New-Object System.Text.UTF8Encoding($false)
|
|
20
|
+
$OutputEncoding = [Console]::OutputEncoding
|
|
21
|
+
$LASTEXITCODE = $null
|
|
22
|
+
try {
|
|
23
|
+
${command}
|
|
24
|
+
$commandSucceeded = $?
|
|
25
|
+
if ($null -ne $LASTEXITCODE) { exit $LASTEXITCODE }
|
|
26
|
+
if (-not $commandSucceeded) { exit 1 }
|
|
27
|
+
exit 0
|
|
28
|
+
} catch { [Console]::Error.WriteLine($_.ToString()); exit 1 }
|
|
29
29
|
`;
|
|
30
30
|
return ["-NoLogo", "-NoProfile", "-NonInteractive", "-InputFormat", "Text", "-OutputFormat", "Text", "-EncodedCommand", Buffer.from(script, "utf16le").toString("base64")];
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "anti-trace",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"description": "Terminal AI coding agent with bring-your-own-key model support",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/sadgsk/Anti-trace.git"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/sadgsk/Anti-trace#readme",
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/sadgsk/Anti-trace/issues"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist/",
|
|
16
|
-
"README.en.md",
|
|
17
|
-
"byok.example.json",
|
|
18
|
-
"byok.providers.example.json",
|
|
19
|
-
"docs/assets/target-architecture.svg"
|
|
20
|
-
],
|
|
21
|
-
"publishConfig": {
|
|
22
|
-
"access": "public",
|
|
23
|
-
"registry": "https://registry.npmjs.org/"
|
|
24
|
-
},
|
|
25
|
-
"type": "module",
|
|
26
|
-
"bin": {
|
|
27
|
-
"ati": "dist/cli/bin.js",
|
|
28
|
-
"anti-trace": "dist/cli/bin.js"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"start": "tsx src/cli/main.ts",
|
|
32
|
-
"typecheck": "tsc --noEmit",
|
|
33
|
-
"build": "tsc",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"test
|
|
37
|
-
"test:
|
|
38
|
-
"test:
|
|
39
|
-
"test:
|
|
40
|
-
"test:
|
|
41
|
-
"test:
|
|
42
|
-
"test:
|
|
43
|
-
"test:
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"react
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"@types/
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "anti-trace",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "Terminal AI coding agent with bring-your-own-key model support",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/sadgsk/Anti-trace.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/sadgsk/Anti-trace#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/sadgsk/Anti-trace/issues"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/",
|
|
16
|
+
"README.en.md",
|
|
17
|
+
"byok.example.json",
|
|
18
|
+
"byok.providers.example.json",
|
|
19
|
+
"docs/assets/target-architecture.svg"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public",
|
|
23
|
+
"registry": "https://registry.npmjs.org/"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"bin": {
|
|
27
|
+
"ati": "dist/cli/bin.js",
|
|
28
|
+
"anti-trace": "dist/cli/bin.js"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"start": "tsx src/cli/main.ts",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
35
|
+
"prepack": "npm run clean && npm run build",
|
|
36
|
+
"test": "node scripts/run-tests.mjs",
|
|
37
|
+
"test:unit": "node scripts/run-tests.mjs unit",
|
|
38
|
+
"test:integration": "node scripts/run-tests.mjs integration regressions",
|
|
39
|
+
"test:tui": "node scripts/run-tests.mjs tui",
|
|
40
|
+
"test:e2e": "node scripts/run-tests.mjs e2e",
|
|
41
|
+
"test:watch": "node scripts/run-tests.mjs --watch",
|
|
42
|
+
"test:types": "tsc --project tsconfig.test.json",
|
|
43
|
+
"test:coverage": "c8 node scripts/run-tests.mjs",
|
|
44
|
+
"test:live": "node scripts/run-live-tests.mjs",
|
|
45
|
+
"check": "npm run typecheck && npm run test:types && npm test && npm run build"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=22"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"diff": "9.0.0",
|
|
52
|
+
"highlight.js": "11.12.0",
|
|
53
|
+
"ink": "6.5.1",
|
|
54
|
+
"marked": "18.1.2",
|
|
55
|
+
"react": "19.2.4",
|
|
56
|
+
"react-devtools-core": "6.1.2",
|
|
57
|
+
"string-width": "8.3.0",
|
|
58
|
+
"typebox": "1.3.7"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/node": "22.19.19",
|
|
62
|
+
"@types/react": "19.2.18",
|
|
63
|
+
"@xterm/headless": "6.0.0",
|
|
64
|
+
"c8": "12.0.0",
|
|
65
|
+
"tsx": "4.21.0",
|
|
66
|
+
"typescript": "5.9.3"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { WriteStream } from "node:tty";
|
|
2
|
-
import { type TerminalInputStream } from "./terminal.ts";
|
|
3
|
-
export type PromptResult = {
|
|
4
|
-
type: "submit";
|
|
5
|
-
text: string;
|
|
6
|
-
} | {
|
|
7
|
-
type: "interrupt";
|
|
8
|
-
} | {
|
|
9
|
-
type: "end";
|
|
10
|
-
};
|
|
11
|
-
export interface CliPromptOptions {
|
|
12
|
-
input?: TerminalInputStream;
|
|
13
|
-
output?: WriteStream;
|
|
14
|
-
/** Returns a notice such as `[Image #1]` after reading the clipboard. */
|
|
15
|
-
onImagePaste?: () => string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Temporary line-oriented CLI adapter. TerminalInput, PasteBurst, and DraftEditor
|
|
19
|
-
* have no dependency on this renderer and can be reused by the future TUI.
|
|
20
|
-
*/
|
|
21
|
-
export declare class CliPrompt {
|
|
22
|
-
#private;
|
|
23
|
-
constructor(options?: CliPromptOptions);
|
|
24
|
-
read(label: string, options?: {
|
|
25
|
-
allowPasteMode?: boolean;
|
|
26
|
-
}): Promise<PromptResult>;
|
|
27
|
-
dispose(): void;
|
|
28
|
-
}
|