tako-cli 0.2.61 → 0.3.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +208 -0
  3. package/dist/index.js +452 -298
  4. package/package.json +26 -5
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Tako Dev
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 ADDED
@@ -0,0 +1,208 @@
1
+ <p align="center">
2
+ <img src="https://img.shields.io/npm/v/tako-cli?color=blue&label=version" alt="version" />
3
+ <img src="https://img.shields.io/npm/dm/tako-cli?color=green" alt="downloads" />
4
+ <img src="https://img.shields.io/github/license/tako-dev/cli" alt="license" />
5
+ </p>
6
+
7
+ <h1 align="center">🐙 Tako CLI</h1>
8
+
9
+ <p align="center">
10
+ <b>AI Coding Tools Launcher</b> — unified interface for Claude Code, Codex, Gemini & more<br/>
11
+ <b>AI 编码工具启动器</b> — 统一管理 Claude Code、Codex、Gemini 等 AI 开发工具
12
+ </p>
13
+
14
+ ---
15
+
16
+ ## Why Tako? / 为什么用 Tako
17
+
18
+ - 🚀 **One launcher, every tool** — switch between Claude Code, Codex, Gemini in one TUI; no more juggling separate installs / 一个启动器管所有工具,不用分别折腾安装
19
+ - 🤖 **Multi-agent sessions** — run, monitor, and approve persistent agent sessions from the CLI; perfect for fan-out tasks / 多 agent 会话,CLI 里批量派活/监控/审批,适合并行任务
20
+ - 🔄 **Per-session model switching** — swap models via env var without polluting global config / 按会话切模型,不污染全局配置
21
+ - 🔌 **Provider-agnostic** — Tako API, Anthropic, DeepSeek, Xiaomi, or your own endpoint / 任意服务商,含自定义端点
22
+ - 🇨🇳 **China-optimized** — auto mirror detection + npmmirror acceleration / 自动镜像检测加速
23
+
24
+ ## Table of Contents / 目录
25
+
26
+ - [Quick Install / 快速安装](#quick-install--快速安装)
27
+ - [Usage / 使用方式](#usage--使用方式)
28
+ - [Agent Session Management / Agent 会话管理](#agent-session-management--agent-会话管理)
29
+ - [Skills / 技能](#skills--技能)
30
+ - [Features / 功能特性](#features--功能特性)
31
+ - [Documentation / 文档](#documentation--文档)
32
+ - [Development / 开发](#development--开发)
33
+
34
+ ## What it looks like / 效果一览
35
+
36
+ ```console
37
+ $ tako
38
+ 🐙 Tako — AI Coding Tools Launcher
39
+
40
+ ▸ Claude Code claude-sonnet-4-6 ● ready
41
+ Codex gpt-5.5 ● ready
42
+ Gemini gemini-2.5-pro ● ready
43
+
44
+ [←→] switch [↑↓] projects [a] agents [p] providers [Enter] launch
45
+
46
+ $ tako agent run claude --name fix-tests --json \
47
+ --prompt "find and fix the failing auth tests"
48
+ → run a1b2c3d4 (claude claude-sonnet-4-6)
49
+ $ go test ./...
50
+ ✗ FAILED (exit 1)
51
+ ◀ turn done
52
+ {"sid":"a1b2c3d4-...","status":"ok","text":"Fixed 2 tests in auth_test.go"}
53
+ ```
54
+
55
+ ---
56
+
57
+ ## Quick Install / 快速安装
58
+
59
+ ```bash
60
+ curl -fsSL https://cdn.jsdelivr.net/npm/tako-cli/install.sh | bash
61
+ ```
62
+
63
+ Or via npm / 或通过 npm:
64
+
65
+ ```bash
66
+ npm install -g tako-cli
67
+ ```
68
+
69
+ > China users: Tako automatically detects your region and uses npmmirror for fast installs.
70
+ > 国内用户:Tako 自动检测网络环境并使用 npmmirror 镜像加速安装。
71
+
72
+ ---
73
+
74
+ ## Usage / 使用方式
75
+
76
+ ```bash
77
+ tako # Interactive TUI launcher / 交互式启动器
78
+ tako --claude # Quick-launch Claude Code / 快速启动 Claude Code
79
+ tako --codex # Quick-launch Codex / 快速启动 Codex
80
+ tako --gemini # Quick-launch Gemini CLI / 快速启动 Gemini
81
+ ```
82
+
83
+ ### TUI Shortcuts / TUI 快捷键
84
+
85
+ | Key | Action |
86
+ |-----|--------|
87
+ | `←→` | Switch between tools / 切换工具 |
88
+ | `↑↓` | Navigate projects & options / 选择项目和选项 |
89
+ | `Enter` | Launch / 启动 |
90
+ | `a` | Agent management / Agent 管理 |
91
+ | `p` | Provider settings / 服务商管理 |
92
+ | `q` | Quit / 退出 |
93
+
94
+ ---
95
+
96
+ ## Agent Session Management / Agent 会话管理
97
+
98
+ Manage persistent AI agent sessions from CLI or TUI. Sessions survive shell restarts.
99
+
100
+ 从 CLI 或 TUI 管理持久化的 AI agent 会话。会话跨 shell 重启保持。
101
+
102
+ ```bash
103
+ tako agent run claude --prompt "fix the failing tests" --json # One-shot task / 一次性任务
104
+ tako agent start claude --model claude-sonnet-4-6 # Create session / 创建会话
105
+ tako agent list [--status idle --name-prefix fg-] # List + filter / 列出+筛选
106
+ tako agent send <sid> "your prompt" # Send message / 发送消息
107
+ tako agent attach <sid> # Live-tail log / 实时跟踪
108
+ tako agent show <sid> --errors-only # Inspect failures / 查看失败详情
109
+ tako agent cancel <sid> # Cancel current turn / 中止当前轮
110
+ tako agent close <sid> [--purge] # Close session / 关闭会话
111
+ ```
112
+
113
+ **Advanced / 高级:**
114
+
115
+ ```bash
116
+ tako agent start codex --approval external # External approval mode / 外置审批
117
+ tako agent approve <sid> <id> allow --rule "^curl" # Approve + whitelist / 审批+加白
118
+ tako agent wait <sid> --json # Block until decision point / 阻塞到决策点
119
+ tako agent policy <sid> show # View policy / 查看策略
120
+ ```
121
+
122
+ In TUI, press `a` to open the Agent page — create, monitor, send messages, and approve tool calls visually.
123
+
124
+ 在 TUI 中按 `a` 进入 Agent 管理页 — 可视化创建、监控、发送消息和审批工具调用。
125
+
126
+ ---
127
+
128
+ ## Skills / 技能
129
+
130
+ Tako bundles reusable skills that enhance Claude Code's capabilities. Install them to your project and Claude Code picks them up automatically.
131
+
132
+ Tako 内置可复用技能,增强 Claude Code 的能力。安装到项目后 Claude Code 自动识别。
133
+
134
+ ### Install via CLI / 通过 CLI 安装
135
+
136
+ ```bash
137
+ tako skill list # List available skills / 列出可用技能
138
+ tako skill install --all # Install all / 全部安装
139
+ tako skill install tako-agent # Install specific / 安装指定技能
140
+ ```
141
+
142
+ ### Install via GitHub / 通过 GitHub 安装
143
+
144
+ Copy the skill file directly from this repo into your project:
145
+
146
+ 直接从仓库复制 skill 文件到你的项目:
147
+
148
+ ```bash
149
+ # tako-agent skill
150
+ mkdir -p .claude/skills/tako-agent
151
+ curl -fsSL https://raw.githubusercontent.com/tako-dev/cli/main/skills/tako-agent/SKILL.md \
152
+ -o .claude/skills/tako-agent/SKILL.md
153
+
154
+ # model-benchmark skill
155
+ mkdir -p .claude/skills/model-benchmark
156
+ curl -fsSL https://raw.githubusercontent.com/tako-dev/cli/main/skills/model-benchmark/SKILL.md \
157
+ -o .claude/skills/model-benchmark/SKILL.md
158
+ ```
159
+
160
+ ### Available Skills / 可用技能
161
+
162
+ | Skill | Description | 描述 |
163
+ |-------|-------------|------|
164
+ | 🤖 `tako-agent` | Agent session management — start/resume/monitor/close sessions | Agent 会话管理 — 启动/续接/监控/关闭会话 |
165
+ | 📊 `model-benchmark` | Model capability scores from E2E testing across 16 models | 16 模型端到端评测能力评分 |
166
+
167
+ ---
168
+
169
+ ## Features / 功能特性
170
+
171
+ | Feature | Description |
172
+ |---------|-------------|
173
+ | 🚀 **Unified Launcher** | One TUI for Claude Code, Codex, Gemini |
174
+ | 🤖 **Agent Sessions** | Multi-session, persistent, approval workflow |
175
+ | 🔄 **Model Switching** | Per-session via env var, doesn't pollute global settings |
176
+ | 🔌 **Provider Management** | Tako API, Anthropic, DeepSeek, Xiaomi, custom |
177
+ | 📦 **Bundled Skills** | Install to `.claude/skills/` for agent enhancement |
178
+ | 🇨🇳 **China Optimized** | Auto mirror detection, npmmirror acceleration |
179
+
180
+ ---
181
+
182
+ ## Documentation / 文档
183
+
184
+ | Topic | Link |
185
+ |-------|------|
186
+ | 📖 Agent module design / Agent 模块设计 | [`docs/agent/DESIGN.md`](docs/agent/DESIGN.md) |
187
+ | 🧪 Agent test plan / 测试计划 | [`docs/agent/TESTPLAN.md`](docs/agent/TESTPLAN.md) |
188
+ | 🤖 tako-agent skill | [`skills/tako-agent/SKILL.md`](skills/tako-agent/SKILL.md) |
189
+ | 📊 Model benchmark & picker / 选模型指南 | [`skills/model-benchmark/SKILL.md`](skills/model-benchmark/SKILL.md) |
190
+ | 🐛 Issues & feedback | [GitHub Issues](https://github.com/tako-dev/cli/issues) |
191
+
192
+ ---
193
+
194
+ ## Development / 开发
195
+
196
+ ```bash
197
+ bun install
198
+ bun run build
199
+ bun test
200
+ ```
201
+
202
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full workflow. / 完整流程见 CONTRIBUTING.md。
203
+
204
+ ---
205
+
206
+ ## License
207
+
208
+ MIT