dimcode 0.0.62 → 0.0.64-beta.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/bin/dim.mjs +180 -0
- package/dist/ink.mjs +1296 -0
- package/package.json +12 -69
- package/README.md +0 -128
- package/cli.mjs +0 -99
- package/dist/aihubmix.json +0 -1
- package/dist/anthropic.json +0 -1
- package/dist/ark-code.json +0 -1
- package/dist/bailian-coding-plan.json +0 -1
- package/dist/cli.mjs +0 -1244
- package/dist/custom-provider.json +0 -1
- package/dist/deepseek.json +0 -1
- package/dist/google.json +0 -1
- package/dist/kimi-for-coding.json +0 -1
- package/dist/lm-studio.json +0 -1
- package/dist/minimax-cn-coding-plan.json +0 -1
- package/dist/minimax-cn.json +0 -1
- package/dist/minimax-coding-plan.json +0 -1
- package/dist/minimax.json +0 -1
- package/dist/models/aihubmix.json +0 -1
- package/dist/models/custom-provider.json +0 -1
- package/dist/models/openrouter.json +0 -1
- package/dist/models/siliconflow-com.json +0 -1
- package/dist/models/siliconflow.json +0 -1
- package/dist/models/zenmux.json +0 -1
- package/dist/moonshot-ai.json +0 -1
- package/dist/moonshot.json +0 -1
- package/dist/next-api-oauth.json +0 -1
- package/dist/ollama.json +0 -1
- package/dist/openai.json +0 -1
- package/dist/openrouter.json +0 -1
- package/dist/ppinfra.json +0 -1
- package/dist/siliconflow-com.json +0 -1
- package/dist/siliconflow.json +0 -1
- package/dist/xai.json +0 -1
- package/dist/zai-coding-plan.json +0 -1
- package/dist/zai.json +0 -1
- package/dist/zenmux.json +0 -1
- package/dist/zhipuai-coding-plan.json +0 -1
- package/dist/zhipuai.json +0 -1
- package/icon.png +0 -0
package/package.json
CHANGED
|
@@ -1,78 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dimcode",
|
|
3
|
+
"version": "0.0.64-beta.0",
|
|
4
|
+
"description": "AI coding agent CLI and terminal coding assistant with an interactive TUI (beta channel)",
|
|
3
5
|
"type": "module",
|
|
4
|
-
"version": "0.0.62",
|
|
5
|
-
"description": "AI coding agent CLI and terminal coding assistant with an interactive TUI",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": {
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"import": "./dist/index.js"
|
|
10
|
-
},
|
|
11
|
-
"./cli": {
|
|
12
|
-
"types": "./dist/cli.d.ts",
|
|
13
|
-
"import": "./dist/cli.js"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"imports": {
|
|
17
|
-
"#cli/*": "./src/*"
|
|
18
|
-
},
|
|
19
|
-
"main": "./dist/index.js",
|
|
20
|
-
"types": "./dist/index.d.ts",
|
|
21
6
|
"bin": {
|
|
22
|
-
"dim": "./
|
|
23
|
-
"dimcode": "./
|
|
7
|
+
"dim": "./bin/dim.mjs",
|
|
8
|
+
"dimcode": "./bin/dim.mjs"
|
|
24
9
|
},
|
|
25
10
|
"files": [
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"dist",
|
|
29
|
-
"icon.png"
|
|
11
|
+
"bin",
|
|
12
|
+
"dist"
|
|
30
13
|
],
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"build:binary:linux": "bun run build.mjs --binary --target=bun-linux-x64",
|
|
38
|
-
"build:binary:linux-arm64": "bun run build.mjs --binary --target=bun-linux-arm64",
|
|
39
|
-
"build:binary:windows": "bun run build.mjs --binary --target=bun-windows-x64",
|
|
40
|
-
"typecheck": "node ../../scripts/check-public-agent-imports.mjs ./src && tsc --noEmit",
|
|
41
|
-
"cli": "bun scripts/cli-watch.mjs",
|
|
42
|
-
"cli:run": "esno src/cli.ts",
|
|
43
|
-
"cli:run:node": "node --enable-source-maps --import tsx src/cli.ts",
|
|
44
|
-
"bench:scroll": "bun scripts/scroll-benchmark.ts",
|
|
45
|
-
"bench:layout": "bun scripts/layout-benchmark.ts",
|
|
46
|
-
"bench:stdout": "bun scripts/stdout-benchmark.ts",
|
|
47
|
-
"test": "bun test --preload ./test/setup.ts",
|
|
48
|
-
"smoke": "bun run build && bun dist/cli.mjs --help",
|
|
49
|
-
"lint": "eslint src/**/*.ts",
|
|
50
|
-
"lint:fix": "eslint src/**/*.ts --fix",
|
|
51
|
-
"prepack": "bun run build",
|
|
52
|
-
"fix-package": "bun run fix-package.mjs",
|
|
53
|
-
"restore-package": "bun run restore-package.mjs",
|
|
54
|
-
"release": "bumpp --commit --no-verify --no-tag --no-push && bun run build && bun publish",
|
|
55
|
-
"release:npm": "bumpp --commit --no-verify --no-tag --no-push && bun run build:npm && npm publish"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"cross-spawn": "^7.0.6",
|
|
59
|
-
"nanoid": "^5.1.7",
|
|
60
|
-
"node-notifier": "^10.0.1",
|
|
61
|
-
"semver": "^7.7.4",
|
|
62
|
-
"shiki": "^3.23.0",
|
|
63
|
-
"undici": "^6.21.0",
|
|
64
|
-
"vue": "^3.5.30"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@simon_he/vue-tui": "0.0.7",
|
|
68
|
-
"@types/node": "^18.19.130",
|
|
69
|
-
"@types/node-notifier": "^8.0.5",
|
|
70
|
-
"@types/semver": "^7.7.1",
|
|
71
|
-
"chokidar": "^4.0.3",
|
|
72
|
-
"happy-dom": "^17.6.3",
|
|
73
|
-
"bun-types": "latest",
|
|
74
|
-
"tsdown": "^0.20.3",
|
|
75
|
-
"typescript": "^5.9.3",
|
|
76
|
-
"vitest": "^4.1.0"
|
|
14
|
+
"optionalDependencies": {
|
|
15
|
+
"dimcode-darwin-arm64": "0.0.64-beta.0",
|
|
16
|
+
"dimcode-darwin-x64": "0.0.64-beta.0",
|
|
17
|
+
"dimcode-linux-arm64": "0.0.64-beta.0",
|
|
18
|
+
"dimcode-linux-x64": "0.0.64-beta.0",
|
|
19
|
+
"dimcode-windows-x64": "0.0.64-beta.0"
|
|
77
20
|
}
|
|
78
21
|
}
|
package/README.md
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Dimcode
|
|
2
|
-
|
|
3
|
-
AI 编程助手 CLI。支持交互式 TUI、单次执行、多会话管理、MCP 扩展、多家主流大模型提供商。
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g dimcode
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
安装后可通过 `dim` 或 `dimcode` 运行。
|
|
12
|
-
|
|
13
|
-
## 快速开始
|
|
14
|
-
|
|
15
|
-
### 启动交互式 TUI
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
dim
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
进入 TUI 后,直接输入任务或问题即可开始对话。
|
|
22
|
-
|
|
23
|
-
### 执行单次命令
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
dim "帮我写一个 Python 函数,计算斐波那契数列"
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
dim --cwd ./my-project --no-interaction "运行测试并修复报错"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
单次执行模式下工具会自动批准,执行完成后自动退出。配合 `--no-interaction` 可在 CI/脚本中使用。
|
|
34
|
-
|
|
35
|
-
## 常用交互命令
|
|
36
|
-
|
|
37
|
-
在 TUI 中输入以下命令(以 `/` 开头)可快速操作:
|
|
38
|
-
|
|
39
|
-
| 命令 | 说明 |
|
|
40
|
-
| -------------------- | --------------------------------------------- |
|
|
41
|
-
| `/new` | 开始新会话 |
|
|
42
|
-
| `/sessions` | 列出或切换会话 |
|
|
43
|
-
| `/connect` | 连接大模型提供商(配置 API Key / Base URL) |
|
|
44
|
-
| `/models` | 选择当前使用的模型 |
|
|
45
|
-
| `/approvals` | 设置工具审批模式(auto / normal / strict) |
|
|
46
|
-
| `/mcp` | 配置 MCP 服务器与扩展 |
|
|
47
|
-
| `/settings` | 自定义提供商参数 |
|
|
48
|
-
| `/language` | 切换界面语言 |
|
|
49
|
-
| `/theme` | 切换界面主题(浅色 / 深色) |
|
|
50
|
-
| `/timeline` 或 `/tl` | 跳转到指定用户消息 |
|
|
51
|
-
| `/compact` | 压缩会话上下文,节省 Token |
|
|
52
|
-
| `/rename <名称>` | 重命名当前会话 |
|
|
53
|
-
| `/resume` | 恢复已暂停的队列 |
|
|
54
|
-
| `/retry` | 重试上一条用户消息 |
|
|
55
|
-
| `/redo` | 基于当前消息重做 |
|
|
56
|
-
| `/pin` / `/pins` | 置顶上一条消息 / 打开置顶列表 |
|
|
57
|
-
| `/status` | 切换状态栏详情 |
|
|
58
|
-
| `/skills` | 查看已加载的 Skills |
|
|
59
|
-
| `/plugins` | 管理插件 |
|
|
60
|
-
| `/debug` | 管理 SDK observability JSONL 日志与 Auto 模式 |
|
|
61
|
-
| `/toolsettings` | 管理工具级设置 |
|
|
62
|
-
| `/review` | 审查当前代码变更 |
|
|
63
|
-
| `/init` | 初始化或改进 AGENTS.md |
|
|
64
|
-
| `/help` | 查看帮助与快捷键 |
|
|
65
|
-
| `/exit` | 退出程序 |
|
|
66
|
-
|
|
67
|
-
在聊天中选中某条消息后,可按回车复制消息文本到剪贴板。
|
|
68
|
-
|
|
69
|
-
## 子命令
|
|
70
|
-
|
|
71
|
-
除交互式 TUI 外,还支持以下子命令:
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
dim version # 查看版本信息
|
|
75
|
-
dim upgrade [version] # 升级 CLI
|
|
76
|
-
dim acp # 启动 ACP Server(供编辑器集成,如 Zed)
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## 配置说明
|
|
80
|
-
|
|
81
|
-
Dimcode 的数据默认保存在 `~/.dimcode/` 目录下。你可以通过设置环境变量修改存储位置:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
export DIMCODE_HOME=/path/to/config
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
**日常配置不需要手动编辑文件**。在 TUI 中使用以下入口即可图形化配置:
|
|
88
|
-
|
|
89
|
-
- `/connect` — 添加或切换提供商,输入 API Key 与 Base URL
|
|
90
|
-
- `/models` — 选择当前会话使用的模型
|
|
91
|
-
- `/settings` — 调整上下文窗口、温度、最大 Token 等高级参数
|
|
92
|
-
- `/mcp` — 编辑 `mcp.json` 并加载 MCP 工具
|
|
93
|
-
- `/debug` — 选择 Off / On / Auto,并配置 Auto 使用的日志目录;文件按会话写入 `<目录>/<session-id>.jsonl`
|
|
94
|
-
|
|
95
|
-
配置、会话历史、用户缓存会自动保存。
|
|
96
|
-
|
|
97
|
-
## 命令行选项
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
dim [选项] [命令或提示]
|
|
101
|
-
|
|
102
|
-
选项:
|
|
103
|
-
--approvals auto|normal|strict 工具审批模式(默认 normal)
|
|
104
|
-
--auto-approve, --yes, -y 等价于 --approvals auto
|
|
105
|
-
--no-interaction 单次执行时禁用交互式追问
|
|
106
|
-
--cwd <dir> 指定工作目录(单次执行)
|
|
107
|
-
--session <id> 指定会话 ID(单次执行)
|
|
108
|
-
--debug <dir> 本次执行启用 SDK observability,写入 <dir>/<session-id>.jsonl
|
|
109
|
-
-h, --help 显示帮助
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
## 快捷键
|
|
113
|
-
|
|
114
|
-
| 快捷键 | 功能 |
|
|
115
|
-
| ------------------------ | --------------------------- |
|
|
116
|
-
| `Ctrl+C` / `Esc` | 取消当前操作 / 退出 |
|
|
117
|
-
| `Ctrl+P` | 打开命令面板 |
|
|
118
|
-
| `F1` | 打开帮助 |
|
|
119
|
-
| `Tab` | 切换模式或焦点 |
|
|
120
|
-
| `↑/↓` | 浏览历史输入或列表 |
|
|
121
|
-
| `Ctrl+O` | 展开/收起工具输出与思考过程 |
|
|
122
|
-
| `Ctrl+K` | 打开设置 |
|
|
123
|
-
| `Shift+Enter` / `Ctrl+J` | 输入框换行 |
|
|
124
|
-
|
|
125
|
-
## 获取帮助
|
|
126
|
-
|
|
127
|
-
- 在 TUI 中输入 `/help`
|
|
128
|
-
- 运行 `dim --help`
|
package/cli.mjs
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { spawn, spawnSync } from 'node:child_process'
|
|
4
|
-
import { existsSync } from 'node:fs'
|
|
5
|
-
import path from 'node:path'
|
|
6
|
-
import process from 'node:process'
|
|
7
|
-
import { fileURLToPath } from 'node:url'
|
|
8
|
-
|
|
9
|
-
const cliPath = fileURLToPath(import.meta.url)
|
|
10
|
-
const cliDir = path.dirname(cliPath)
|
|
11
|
-
const sourceEntry = path.join(cliDir, 'src', 'cli.ts')
|
|
12
|
-
const bundledEntry = path.join(cliDir, 'dist', 'cli.mjs')
|
|
13
|
-
const sourceEntryUrl = new URL('./src/cli.ts', import.meta.url).href
|
|
14
|
-
const bundledEntryUrl = new URL('./dist/cli.mjs', import.meta.url).href
|
|
15
|
-
|
|
16
|
-
function resolveBunCommand() {
|
|
17
|
-
return process.env.BUN_BIN?.trim() || 'bun'
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function canRelayToBunSource() {
|
|
21
|
-
if (typeof globalThis.Bun !== 'undefined')
|
|
22
|
-
return false
|
|
23
|
-
if (!existsSync(sourceEntry))
|
|
24
|
-
return false
|
|
25
|
-
|
|
26
|
-
const probe = spawnSync(resolveBunCommand(), ['--version'], { stdio: 'ignore' })
|
|
27
|
-
return probe.status === 0
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
async function installEnvProxyDispatcher() {
|
|
31
|
-
// Node's native fetch (undici) ignores HTTP_PROXY/HTTPS_PROXY env vars unless
|
|
32
|
-
// a proxy-aware dispatcher is installed. Bun's fetch honors them natively, so
|
|
33
|
-
// this is only needed on the Node-bundled path. Skip silently if no proxy env
|
|
34
|
-
// is set, or if undici is unavailable.
|
|
35
|
-
const env = process.env
|
|
36
|
-
const hasProxyEnv = Boolean(
|
|
37
|
-
env.HTTP_PROXY || env.http_proxy
|
|
38
|
-
|| env.HTTPS_PROXY || env.https_proxy
|
|
39
|
-
|| env.NO_PROXY || env.no_proxy,
|
|
40
|
-
)
|
|
41
|
-
if (!hasProxyEnv)
|
|
42
|
-
return
|
|
43
|
-
try {
|
|
44
|
-
const { setGlobalDispatcher, EnvHttpProxyAgent } = await import('undici')
|
|
45
|
-
setGlobalDispatcher(new EnvHttpProxyAgent())
|
|
46
|
-
}
|
|
47
|
-
catch (err) {
|
|
48
|
-
if (env.DIMCODE_DEBUG === '1' || env.DIMCODE_DEBUG === 'true') {
|
|
49
|
-
console.error(
|
|
50
|
-
'[dimcode] failed to install EnvHttpProxyAgent:',
|
|
51
|
-
err instanceof Error ? err.message : String(err),
|
|
52
|
-
)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
async function relayToBunSource() {
|
|
58
|
-
const child = spawn(resolveBunCommand(), [cliPath, ...process.argv.slice(2)], {
|
|
59
|
-
stdio: 'inherit',
|
|
60
|
-
env: process.env,
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
const forwardSignal = (signal) => {
|
|
64
|
-
if (!child.killed)
|
|
65
|
-
child.kill(signal)
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP'])
|
|
69
|
-
process.on(signal, () => forwardSignal(signal))
|
|
70
|
-
|
|
71
|
-
child.on('error', (error) => {
|
|
72
|
-
console.error(error)
|
|
73
|
-
process.exit(1)
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
await new Promise((resolve) => {
|
|
77
|
-
child.on('exit', (code) => {
|
|
78
|
-
process.exit(code ?? 1)
|
|
79
|
-
})
|
|
80
|
-
child.on('close', () => resolve())
|
|
81
|
-
})
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (typeof globalThis.Bun !== 'undefined') {
|
|
85
|
-
if (existsSync(bundledEntry))
|
|
86
|
-
await import(bundledEntryUrl)
|
|
87
|
-
else {
|
|
88
|
-
const { main } = await import(sourceEntryUrl)
|
|
89
|
-
await main()
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
else if (canRelayToBunSource()) {
|
|
93
|
-
// In source checkouts, prefer Bun so `node .../cli.mjs` uses the current TS sources.
|
|
94
|
-
await relayToBunSource()
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
await installEnvProxyDispatcher()
|
|
98
|
-
await import(bundledEntryUrl)
|
|
99
|
-
}
|
package/dist/aihubmix.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"aihubmix","name":"Aihubmix","api":"https://aihubmix.com/v1","adapter":"openai","modelsFile":"models/aihubmix.json","defaultModelId":"deepseek-v4-flash"}
|
package/dist/anthropic.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"anthropic","name":"Anthropic","api":"https://api.anthropic.com","adapter":"anthropic","models":[{"id":"claude-3-sonnet-20240229","name":"Claude Sonnet 3","family":"claude-sonnet","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2023-08-31","release_date":"2024-03-04","last_updated":"2024-03-04","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":0.3},"limit":{"context":200000,"output":4096},"display_name":"Claude Sonnet 3","type":"chat"},{"id":"claude-haiku-4-5","name":"Claude Haiku 4.5 (latest)","family":"claude-haiku","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-02-28","release_date":"2025-10-15","last_updated":"2025-10-15","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":1,"output":5,"cache_read":0.1,"cache_write":1.25},"limit":{"context":200000,"output":64000},"display_name":"Claude Haiku 4.5 (latest)","type":"chat","extra_capabilities":{"reasoning":{"supported":true}}},{"id":"claude-opus-4-5-20251101","name":"Claude Opus 4.5","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-11-01","last_updated":"2025-11-01","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":0.5,"cache_write":6.25},"limit":{"context":200000,"output":64000},"display_name":"Claude Opus 4.5","type":"chat"},{"id":"claude-3-opus-20240229","name":"Claude Opus 3","family":"claude-opus","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2023-08-31","release_date":"2024-02-29","last_updated":"2024-02-29","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":15,"output":75,"cache_read":1.5,"cache_write":18.75},"limit":{"context":200000,"output":4096},"display_name":"Claude Opus 3","type":"chat"},{"id":"claude-3-5-haiku-20241022","name":"Claude Haiku 3.5","family":"claude-haiku","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-07-31","release_date":"2024-10-22","last_updated":"2024-10-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":0.8,"output":4,"cache_read":0.08,"cache_write":1},"limit":{"context":200000,"output":8192},"display_name":"Claude Haiku 3.5","type":"chat"},{"id":"claude-3-5-sonnet-20241022","name":"Claude Sonnet 3.5 v2","family":"claude-sonnet","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-04-30","release_date":"2024-10-22","last_updated":"2024-10-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":8192},"display_name":"Claude Sonnet 3.5 v2","type":"chat"},{"id":"claude-sonnet-4-6","name":"Claude Sonnet 4.6","family":"claude-sonnet","attachment":true,"reasoning":{"supported":true,"default":false},"tool_call":true,"temperature":true,"knowledge":"2025-08-31","release_date":"2026-02-17","last_updated":"2026-03-13","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":1000000,"output":64000},"display_name":"Claude Sonnet 4.6","type":"chat","extra_capabilities":{"reasoning":{"supported":true,"default_enabled":false,"mode":"mixed","budget":{"min":1024,"unit":"tokens"},"effort":"medium","effort_options":["low","medium","high","max"],"interleaved":true,"summaries":true,"visibility":"summary","continuation":["thinking_blocks"],"notes":["Anthropic recommends adaptive thinking with effort for Claude 4.6; budget_tokens remains a deprecated compatibility path."]}}},{"id":"claude-opus-4-0","name":"Claude Opus 4 (latest)","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-05-22","last_updated":"2025-05-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":15,"output":75,"cache_read":1.5,"cache_write":18.75},"limit":{"context":200000,"output":32000},"display_name":"Claude Opus 4 (latest)","type":"chat"},{"id":"claude-opus-4-7","name":"Claude Opus 4.7","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":false},"tool_call":true,"temperature":false,"knowledge":"2026-01-31","release_date":"2026-04-16","last_updated":"2026-04-16","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":0.5,"cache_write":6.25},"limit":{"context":1000000,"output":128000},"display_name":"Claude Opus 4.7","type":"chat","extra_capabilities":{"reasoning":{"supported":true,"default_enabled":false,"mode":"effort","effort":"high","effort_options":["low","medium","high","xhigh","max"],"interleaved":true,"summaries":true,"visibility":"omitted","continuation":["thinking_blocks"],"notes":["Claude Opus 4.7 requires thinking.type = \"adaptive\" to enable thinking explicitly.","Manual budget_tokens requests return 400 on Claude Opus 4.7.","task_budget is separate from thinking control and should not be treated as a thinking budget."]}}},{"id":"claude-3-haiku-20240307","name":"Claude Haiku 3","family":"claude-haiku","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2023-08-31","release_date":"2024-03-13","last_updated":"2024-03-13","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":0.25,"output":1.25,"cache_read":0.03,"cache_write":0.3},"limit":{"context":200000,"output":4096},"display_name":"Claude Haiku 3","type":"chat"},{"id":"claude-sonnet-4-5-20250929","name":"Claude Sonnet 4.5","family":"claude-sonnet","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07-31","release_date":"2025-09-29","last_updated":"2025-09-29","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":64000},"display_name":"Claude Sonnet 4.5","type":"chat"},{"id":"claude-3-5-haiku-latest","name":"Claude Haiku 3.5 (latest)","family":"claude-haiku","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-07-31","release_date":"2024-10-22","last_updated":"2024-10-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":0.8,"output":4,"cache_read":0.08,"cache_write":1},"limit":{"context":200000,"output":8192},"display_name":"Claude Haiku 3.5 (latest)","type":"chat"},{"id":"claude-opus-4-1","name":"Claude Opus 4.1 (latest)","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-08-05","last_updated":"2025-08-05","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":15,"output":75,"cache_read":1.5,"cache_write":18.75},"limit":{"context":200000,"output":32000},"display_name":"Claude Opus 4.1 (latest)","type":"chat","extra_capabilities":{"reasoning":{"supported":true}}},{"id":"claude-sonnet-4-0","name":"Claude Sonnet 4 (latest)","family":"claude-sonnet","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-05-22","last_updated":"2025-05-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":64000},"display_name":"Claude Sonnet 4 (latest)","type":"chat","extra_capabilities":{"reasoning":{"supported":true}}},{"id":"claude-3-5-sonnet-20240620","name":"Claude Sonnet 3.5","family":"claude-sonnet","attachment":true,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2024-04-30","release_date":"2024-06-20","last_updated":"2024-06-20","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":8192},"display_name":"Claude Sonnet 3.5","type":"chat"},{"id":"claude-opus-4-5","name":"Claude Opus 4.5 (latest)","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-11-24","last_updated":"2025-11-24","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":0.5,"cache_write":6.25},"limit":{"context":200000,"output":64000},"display_name":"Claude Opus 4.5 (latest)","type":"chat","extra_capabilities":{"reasoning":{"supported":true}}},{"id":"claude-opus-4-1-20250805","name":"Claude Opus 4.1","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-08-05","last_updated":"2025-08-05","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":15,"output":75,"cache_read":1.5,"cache_write":18.75},"limit":{"context":200000,"output":32000},"display_name":"Claude Opus 4.1","type":"chat"},{"id":"claude-haiku-4-5-20251001","name":"Claude Haiku 4.5","family":"claude-haiku","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-02-28","release_date":"2025-10-15","last_updated":"2025-10-15","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":1,"output":5,"cache_read":0.1,"cache_write":1.25},"limit":{"context":200000,"output":64000},"display_name":"Claude Haiku 4.5","type":"chat"},{"id":"claude-sonnet-4-20250514","name":"Claude Sonnet 4","family":"claude-sonnet","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-05-22","last_updated":"2025-05-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":64000},"display_name":"Claude Sonnet 4","type":"chat"},{"id":"claude-opus-4-6","name":"Claude Opus 4.6","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":false},"tool_call":true,"temperature":true,"knowledge":"2025-05-31","release_date":"2026-02-05","last_updated":"2026-03-13","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":5,"output":25,"cache_read":0.5,"cache_write":6.25},"limit":{"context":1000000,"output":128000},"experimental":{"modes":{"fast":{"cost":{"input":30,"output":150,"cache_read":3,"cache_write":37.5},"provider":{"body":{"speed":"fast"},"headers":{"anthropic-beta":"fast-mode-2026-02-01"}}}}},"display_name":"Claude Opus 4.6","type":"chat","extra_capabilities":{"reasoning":{"supported":true,"default_enabled":false,"mode":"mixed","budget":{"min":1024,"unit":"tokens"},"effort":"medium","effort_options":["low","medium","high","max"],"interleaved":true,"summaries":true,"visibility":"summary","continuation":["thinking_blocks"],"notes":["Anthropic recommends adaptive thinking with effort for Claude 4.6; budget_tokens remains a deprecated compatibility path."]}}},{"id":"claude-3-7-sonnet-20250219","name":"Claude Sonnet 3.7","family":"claude-sonnet","attachment":true,"reasoning":{"supported":true,"default":false},"tool_call":true,"temperature":true,"knowledge":"2024-10-31","release_date":"2025-02-19","last_updated":"2025-02-19","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":64000},"display_name":"Claude Sonnet 3.7","type":"chat","extra_capabilities":{"reasoning":{"supported":true,"default_enabled":false,"mode":"budget","budget":{"min":1024,"unit":"tokens"},"interleaved":false,"summaries":false,"visibility":"full","continuation":["thinking_blocks"],"notes":["Anthropic uses thinking budget tokens"]}}},{"id":"claude-sonnet-4-5","name":"Claude Sonnet 4.5 (latest)","family":"claude-sonnet","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-07-31","release_date":"2025-09-29","last_updated":"2025-09-29","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":3,"output":15,"cache_read":0.3,"cache_write":3.75},"limit":{"context":200000,"output":64000},"display_name":"Claude Sonnet 4.5 (latest)","type":"chat","extra_capabilities":{"reasoning":{"supported":true}}},{"id":"claude-opus-4-20250514","name":"Claude Opus 4","family":"claude-opus","attachment":true,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-03-31","release_date":"2025-05-22","last_updated":"2025-05-22","modalities":{"input":["text","image","pdf"],"output":["text"]},"open_weights":false,"cost":{"input":15,"output":75,"cache_read":1.5,"cache_write":18.75},"limit":{"context":200000,"output":32000},"display_name":"Claude Opus 4","type":"chat"}],"defaultModelId":"claude-haiku-4-5"}
|
package/dist/ark-code.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"ark-code","name":"Ark Code","api":"https://ark.cn-beijing.volces.com/api/coding/v3","models":[{"id":"ark-code-latest","name":"ark-code-latest","tool_call":true,"temperature":true,"modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0,"output":0,"cache_read":0,"cache_write":0},"limit":{"context":204800,"output":60000},"display_name":"ark code","type":"chat"}]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"bailian-coding-plan","name":"Model Studio Coding Plan","api":"https://coding.dashscope.aliyuncs.com/v1","adapter":"openai","models":[{"id":"qwen3.5-plus","name":"Qwen3.5 Plus","family":"qwen","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2026-02-16","last_updated":"2026-02-16","modalities":{"input":["text","image"],"output":["text"]},"open_weights":false,"cost":{"input":0.1096,"output":0.6576,"cache_read":0.01096},"limit":{"context":991000,"output":991000},"display_name":"Qwen3.5 Plus","type":"chat"},{"id":"qwen3-max-2026-01-23","name":"Qwen3 Max 2026-01-23","family":"qwen","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.34246,"output":1.36984,"cache_read":0.34246},"limit":{"context":252000,"output":252000},"display_name":"Qwen3 Max 2026-01-23","type":"chat"},{"id":"qwen3-coder-next","name":"Qwen3 Coder Next","family":"qwen","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"release_date":"2026-02-02","last_updated":"2026-02-08","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.137,"output":0.548,"cache_read":0.137},"limit":{"context":2000000,"output":2000000},"display_name":"Qwen3 Coder Next","type":"chat"},{"id":"qwen3-coder-plus","name":"Qwen3 Coder Plus","family":"qwen","attachment":false,"reasoning":{"supported":false},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-07-23","last_updated":"2025-07-23","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.54,"output":2.16,"cache_read":0.108},"limit":{"context":1048576,"output":1048576},"display_name":"Qwen3 Coder Plus","type":"chat"},{"id":"MiniMax-M2.5","name":"MiniMax M2.5","family":"minimax","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":false,"temperature":true,"knowledge":"2025-01","release_date":"2026-02-12","last_updated":"2026-02-12","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.288,"output":1.152},"limit":{"context":204800,"output":204800},"display_name":"MiniMax M2.5","type":"chat"},{"id":"glm-5","name":"GLM-5","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":false,"temperature":true,"knowledge":"2025-04","release_date":"2026-02-11","last_updated":"2026-02-11","modalities":{"input":["text"],"output":["text"]},"open_weights":false,"cost":{"input":0.88,"output":2.816,"cache_read":0.176},"limit":{"context":202752,"output":202752},"display_name":"GLM-5","type":"chat"},{"id":"glm-4.7","name":"GLM-4.7","family":"glm","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":true,"knowledge":"2025-04","release_date":"2025-12-22","last_updated":"2025-12-22","modalities":{"input":["text"],"output":["text"]},"open_weights":true,"cost":{"input":0.273974,"output":1.095896,"cache_read":0.054795},"limit":{"context":200000,"output":200000},"display_name":"GLM-4.7","type":"chat"},{"id":"kimi-k2.5","name":"Kimi K2.5","family":"kimi","attachment":false,"reasoning":{"supported":true,"default":true},"tool_call":true,"temperature":false,"knowledge":"2025-01","release_date":"2026-01","last_updated":"2026-01","modalities":{"input":["text","image"],"output":["text"]},"open_weights":true,"cost":{"input":0.6,"output":3,"cache_read":0.105},"limit":{"context":256000,"output":256000},"display_name":"Kimi K2.5","type":"chat"}],"defaultModelId":"qwen3.5-plus"}
|