codock 0.0.0-stage → 0.6.12
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/LICENSE +21 -0
- package/README.md +103 -2
- package/bin/codock.js +27 -0
- package/package.json +22 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CoDock contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,104 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# CoDock
|
|
4
|
+
|
|
5
|
+
### 本地 Coding Agent 桌面工作台与终端集成中心
|
|
6
|
+
### Local Coding Agent Workbench & Unified Terminal Dock
|
|
7
|
+
|
|
8
|
+
[](https://github.com/juejijianghuaa/CoDock-Release/releases)
|
|
9
|
+
[](https://github.com/juejijianghuaa/CoDock-Release/releases)
|
|
10
|
+
[](https://github.com/juejijianghuaa/CoDock-Release/blob/main/LICENSE)
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<b>一个界面,聚合 9+ 个主流 Coding Agent</b><br/>
|
|
14
|
+
Claude Code · Codex · Gemini CLI · Antigravity (agy) · Grok · Pi · Opencode · CodeBuddy · Cline
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
[下载最新版本 (Releases)](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) • [提交 Bug / 需求反馈](https://github.com/juejijianghuaa/CoDock-Release/issues)
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 什么是 CoDock? / What is CoDock?
|
|
24
|
+
|
|
25
|
+
**CoDock** 是一个面向专业开发者的本地 Coding Agent 桌面工作台与终端控制台:
|
|
26
|
+
- **多 Agent 并行执行**:支持在一个窗口内多 Tab 运行 Claude Code、Codex、Gemini CLI、Antigravity、Grok Build、Pi、Opencode 等,告别杂乱的独立黑窗口。
|
|
27
|
+
- **全历史与用量看板**:本地直接解析各 Agent 的原生日志与 SQLite/JSONL 数据,聚合按项目、模型、日期的 Token 用量与成本统计。
|
|
28
|
+
- **专为 Coding 打造的终端增强**:基于 xterm.js 与原生 ConPTY 封装,支持滚轮穿透、图片快速粘贴、拖拽文件注入绝对路径、全局快捷键呼出。
|
|
29
|
+
- **Markdown Composer 独立浮窗**:专为长提示词编写设计的全功能 Markdown 输入层,支持模板复用、提示词优化与一键投递。
|
|
30
|
+
- **手机/平板与局域网协同**:自适应移动端 Web 交互、配对令牌安全门禁与受控只读/可写会话分享。
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 快速下载 / Downloads
|
|
35
|
+
|
|
36
|
+
请前往 [**Latest Release**](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) 下载适用于您操作系统的版本:
|
|
37
|
+
|
|
38
|
+
| 操作系统 | 推荐安装包 | 备用便携版 / 适用架构 |
|
|
39
|
+
| :--- | :--- | :--- |
|
|
40
|
+
| **Windows** (Win 10 1809+) | [**CoDock-Setup-x64.exe**](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) *(安装程序,含开始菜单/快捷方式)* | [**codock-windows-amd64.exe**](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) *(单文件绿色版)* |
|
|
41
|
+
| **macOS (Apple Silicon)** | [**codock-mac-arm64.dmg**](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) *(适用于 M1/M2/M3/M4 系列)* | 打开 dmg 拖入 Applications |
|
|
42
|
+
| **macOS (Intel)** | [**codock-mac-amd64.dmg**](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) *(适用于 Intel 处理器 Mac)* | 打开 dmg 拖入 Applications |
|
|
43
|
+
| **Linux (x64)** | [**codock-linux-amd64**](https://github.com/juejijianghuaa/CoDock-Release/releases/latest) *(独立二进制)* | `chmod +x codock-linux-amd64` |
|
|
44
|
+
|
|
45
|
+
### Server 版(无窗口,用浏览器访问)
|
|
46
|
+
|
|
47
|
+
不打开桌面窗口,在后台提供服务,用浏览器访问 `http://localhost:9527`;其它设备访问需先在应用内配对。适合没有桌面环境的机器,或想从别的电脑、手机上使用。
|
|
48
|
+
|
|
49
|
+
| 平台 | 文件 |
|
|
50
|
+
| :--- | :--- |
|
|
51
|
+
| macOS (Apple Silicon) | `codock-server-mac-arm64` |
|
|
52
|
+
| macOS (Intel) | `codock-server-mac-amd64` |
|
|
53
|
+
| Linux (x64) | `codock-server-linux-amd64` |
|
|
54
|
+
| Linux (ARM64) | `codock-server-linux-arm64` |
|
|
55
|
+
| Windows (x64) | `codock-server-windows-amd64.exe` |
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 安装与运行指引 / Installation & Tips
|
|
60
|
+
|
|
61
|
+
### Windows
|
|
62
|
+
1. 下载 `CoDock-Setup-<version>-x64.exe` 并运行安装。
|
|
63
|
+
2. Windows 桌面版内置了针对 Windows 10/11 优化的 ConPTY 驱动与无边框自绘标题栏,默认支持最小化到系统托盘运行。
|
|
64
|
+
3. 也可以在设置中启用 Windows 资源管理器右键菜单集成(在任意文件夹右键直接启动 CoDock 任务)。
|
|
65
|
+
|
|
66
|
+
### macOS
|
|
67
|
+
1. 下载对应芯片架构的 `.dmg` 文件,双击打开并将 `CoDock.app` 拖入 `Applications`(应用程序)目录。
|
|
68
|
+
2. 如遇 macOS 安全机制拦截提示“未验证的开发者”:
|
|
69
|
+
- 可以在“系统设置” -> “隐私与安全性”中点击“仍要打开”;
|
|
70
|
+
- 或在终端中执行解隔离命令:
|
|
71
|
+
```bash
|
|
72
|
+
xattr -cr /Applications/CoDock.app
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Linux
|
|
76
|
+
1. GUI 桌面版运行需要系统具备 `libwebkit2gtk-4.0` 运行环境(Ubuntu/Debian 执行 `sudo apt install libwebkit2gtk-4.0-37`)。
|
|
77
|
+
2. 没有 GUI 的服务器请下载 Server 版(见下)。
|
|
78
|
+
|
|
79
|
+
### Server 版
|
|
80
|
+
- macOS / Linux:
|
|
81
|
+
```bash
|
|
82
|
+
chmod +x codock-server-mac-arm64
|
|
83
|
+
# 仅 macOS:浏览器下载的文件会被系统隔离,先解除
|
|
84
|
+
xattr -d com.apple.quarantine codock-server-mac-arm64
|
|
85
|
+
./codock-server-mac-arm64 -addr :9527
|
|
86
|
+
```
|
|
87
|
+
- Windows:`.\codock-server-windows-amd64.exe -addr :9527`。不弹出窗口,启动后直接在后台运行;日志在 `%USERPROFILE%\.codock\app.log`,停止时在任务管理器里结束该进程。
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 安全与网络边界 / Security Notice
|
|
92
|
+
|
|
93
|
+
1. **本地运行优先**:CoDock 在您本机启动 PTY 会话,所有数据仅落盘在您本地目录(如 `~/.codock/`),不设远程数据中转。
|
|
94
|
+
2. **局域网配对门禁**:CoDock 默认开启局域网保护门禁。非本机回环(Loopback)访问时,必须携带配对令牌(可在应用内设置生成),防止局域网不可信设备直接访问控制台。
|
|
95
|
+
3. **Agent 自动确认机制**:CoDock 启动各 Agent CLI 时会遵循安全配置(例如跳过重复的权限弹窗)。请在受信任的开发环境中使用,切勿将端口未经认证映射到公开互联网。
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 问题反馈与交流 / Feedback & Community
|
|
100
|
+
|
|
101
|
+
本仓库为 **CoDock 官方发布与用户反馈仓库**。
|
|
102
|
+
- 如果您在日常使用中遇到 Bug、界面异常或终端交互问题,请前往 [**Issues -> New Issue**](https://github.com/juejijianghuaa/CoDock-Release/issues) 提交反馈。
|
|
103
|
+
- 提交 Issue 时请提供您的操作系统版本、使用的 Agent 种类以及复现步骤。
|
|
104
|
+
- 如果 CoDock 对您的日常 Coding 有帮助,欢迎给本仓库点一个 **Star ⭐️** 支持作者持续更新!
|
package/bin/codock.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// CoDock Server 的 npm 入口:找到本平台的二进制包(optionalDependencies 按 os/cpu 只装一个),
|
|
3
|
+
// 原样转交参数、标准输入输出与退出码。版本号与平台包由 scripts/npm-publish.sh 发布时填入。
|
|
4
|
+
'use strict'
|
|
5
|
+
const { spawnSync } = require('child_process')
|
|
6
|
+
|
|
7
|
+
const pkg = `@codock/server-${process.platform}-${process.arch}`
|
|
8
|
+
const exe = process.platform === 'win32' ? 'codock.exe' : 'codock'
|
|
9
|
+
|
|
10
|
+
let bin
|
|
11
|
+
try {
|
|
12
|
+
bin = require.resolve(`${pkg}/bin/${exe}`)
|
|
13
|
+
} catch {
|
|
14
|
+
console.error(
|
|
15
|
+
`codock: 没有找到 ${pkg}。\n` +
|
|
16
|
+
'当前平台可能不受支持(darwin-arm64/x64、linux-x64/arm64、win32-x64),' +
|
|
17
|
+
'或安装时跳过了可选依赖(--omit=optional / --no-optional),去掉后重装即可。'
|
|
18
|
+
)
|
|
19
|
+
process.exit(1)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const r = spawnSync(bin, process.argv.slice(2), { stdio: 'inherit' })
|
|
23
|
+
if (r.error) {
|
|
24
|
+
console.error(`codock: 启动失败:${r.error.message}`)
|
|
25
|
+
process.exit(1)
|
|
26
|
+
}
|
|
27
|
+
process.exit(r.status ?? 1)
|
package/package.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codock",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.6.12",
|
|
4
|
+
"description": "本地 Coding Agent 工作台(Server 版):在浏览器里同时运行 Claude Code、Codex、Gemini CLI 等",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/juejijianghuaa/CoDock-Release",
|
|
7
|
+
"bugs": "https://github.com/juejijianghuaa/CoDock-Release/issues",
|
|
8
|
+
"bin": {
|
|
9
|
+
"codock": "bin/codock.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=16"
|
|
16
|
+
},
|
|
17
|
+
"optionalDependencies": {
|
|
18
|
+
"@codock/server-darwin-arm64": "0.6.12",
|
|
19
|
+
"@codock/server-darwin-x64": "0.6.12",
|
|
20
|
+
"@codock/server-linux-x64": "0.6.12",
|
|
21
|
+
"@codock/server-linux-arm64": "0.6.12",
|
|
22
|
+
"@codock/server-win32-x64": "0.6.12"
|
|
23
|
+
}
|
|
24
|
+
}
|