tako-cli 0.2.58 → 0.2.60

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 +151 -0
  3. package/dist/index.js +488 -280
  4. package/package.json +2 -2
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,151 @@
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
+ ## Quick Install / 快速安装
17
+
18
+ ```bash
19
+ curl -fsSL https://cdn.jsdelivr.net/npm/tako-cli/install.sh | bash
20
+ ```
21
+
22
+ Or via npm / 或通过 npm:
23
+
24
+ ```bash
25
+ npm install -g tako-cli
26
+ ```
27
+
28
+ > China users: Tako automatically detects your region and uses npmmirror for fast installs.
29
+ > 国内用户:Tako 自动检测网络环境并使用 npmmirror 镜像加速安装。
30
+
31
+ ---
32
+
33
+ ## Usage / 使用方式
34
+
35
+ ```bash
36
+ tako # Interactive TUI launcher / 交互式启动器
37
+ tako --claude # Quick-launch Claude Code / 快速启动 Claude Code
38
+ tako --codex # Quick-launch Codex / 快速启动 Codex
39
+ tako --gemini # Quick-launch Gemini CLI / 快速启动 Gemini
40
+ ```
41
+
42
+ ### TUI Shortcuts / TUI 快捷键
43
+
44
+ | Key | Action |
45
+ |-----|--------|
46
+ | `←→` | Switch between tools / 切换工具 |
47
+ | `↑↓` | Navigate projects & options / 选择项目和选项 |
48
+ | `Enter` | Launch / 启动 |
49
+ | `a` | Agent management / Agent 管理 |
50
+ | `p` | Provider settings / 服务商管理 |
51
+ | `q` | Quit / 退出 |
52
+
53
+ ---
54
+
55
+ ## Agent Session Management / Agent 会话管理
56
+
57
+ Manage persistent AI agent sessions from CLI or TUI. Sessions survive shell restarts.
58
+
59
+ 从 CLI 或 TUI 管理持久化的 AI agent 会话。会话跨 shell 重启保持。
60
+
61
+ ```bash
62
+ tako agent start claude --model claude-sonnet-4-6 # Create session / 创建会话
63
+ tako agent list # List sessions / 列出会话
64
+ tako agent send <sid> "your prompt" # Send message / 发送消息
65
+ tako agent attach <sid> # Live-tail log / 实时跟踪
66
+ tako agent cancel <sid> # Cancel current turn / 中止当前轮
67
+ tako agent close <sid> [--purge] # Close session / 关闭会话
68
+ ```
69
+
70
+ **Advanced / 高级:**
71
+
72
+ ```bash
73
+ tako agent start codex --approval external # External approval mode / 外置审批
74
+ tako agent approve <sid> <id> allow --rule "^curl" # Approve + whitelist / 审批+加白
75
+ tako agent wait <sid> --json # Block until decision point / 阻塞到决策点
76
+ tako agent policy <sid> show # View policy / 查看策略
77
+ ```
78
+
79
+ In TUI, press `a` to open the Agent page — create, monitor, send messages, and approve tool calls visually.
80
+
81
+ 在 TUI 中按 `a` 进入 Agent 管理页 — 可视化创建、监控、发送消息和审批工具调用。
82
+
83
+ ---
84
+
85
+ ## Skills / 技能
86
+
87
+ Tako bundles reusable skills that enhance Claude Code's capabilities. Install them to your project and Claude Code picks them up automatically.
88
+
89
+ Tako 内置可复用技能,增强 Claude Code 的能力。安装到项目后 Claude Code 自动识别。
90
+
91
+ ### Install via CLI / 通过 CLI 安装
92
+
93
+ ```bash
94
+ tako skill list # List available skills / 列出可用技能
95
+ tako skill install --all # Install all / 全部安装
96
+ tako skill install tako-agent # Install specific / 安装指定技能
97
+ ```
98
+
99
+ ### Install via GitHub / 通过 GitHub 安装
100
+
101
+ Copy the skill file directly from this repo into your project:
102
+
103
+ 直接从仓库复制 skill 文件到你的项目:
104
+
105
+ ```bash
106
+ # tako-agent skill
107
+ mkdir -p .claude/skills/tako-agent
108
+ curl -fsSL https://raw.githubusercontent.com/tako-dev/cli/main/skills/tako-agent/SKILL.md \
109
+ -o .claude/skills/tako-agent/SKILL.md
110
+
111
+ # model-benchmark skill
112
+ mkdir -p .claude/skills/model-benchmark
113
+ curl -fsSL https://raw.githubusercontent.com/tako-dev/cli/main/skills/model-benchmark/SKILL.md \
114
+ -o .claude/skills/model-benchmark/SKILL.md
115
+ ```
116
+
117
+ ### Available Skills / 可用技能
118
+
119
+ | Skill | Description | 描述 |
120
+ |-------|-------------|------|
121
+ | 🤖 `tako-agent` | Agent session management — start/resume/monitor/close sessions | Agent 会话管理 — 启动/续接/监控/关闭会话 |
122
+ | 📊 `model-benchmark` | Model capability scores from E2E testing across 16 models | 16 模型端到端评测能力评分 |
123
+
124
+ ---
125
+
126
+ ## Features / 功能特性
127
+
128
+ | Feature | Description |
129
+ |---------|-------------|
130
+ | 🚀 **Unified Launcher** | One TUI for Claude Code, Codex, Gemini |
131
+ | 🤖 **Agent Sessions** | Multi-session, persistent, approval workflow |
132
+ | 🔄 **Model Switching** | Per-session via env var, doesn't pollute global settings |
133
+ | 🔌 **Provider Management** | Tako API, Anthropic, DeepSeek, Xiaomi, custom |
134
+ | 📦 **Bundled Skills** | Install to `.claude/skills/` for agent enhancement |
135
+ | 🇨🇳 **China Optimized** | Auto mirror detection, npmmirror acceleration |
136
+
137
+ ---
138
+
139
+ ## Development / 开发
140
+
141
+ ```bash
142
+ bun install
143
+ bun run build
144
+ bun test
145
+ ```
146
+
147
+ ---
148
+
149
+ ## License
150
+
151
+ MIT