@bataitools/agent-cli 0.1.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/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @bataitools/agent-cli
2
+
3
+ Submit AI tools to [BAT AI Tools](https://bataitools.com) via CLI or Cursor Skill — multi-language, zero platform crawl.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ cd bat-agent && bun install && bun run build
9
+ ```
10
+
11
+ Or link globally from monorepo root after `bun install`.
12
+
13
+ ## Setup
14
+
15
+ ```bash
16
+ # 在 https://bataitools.com/submit 登录后生成 API Key(bat_…),然后:
17
+ bat-agent login <your-api-key>
18
+
19
+ # 本地开发任选其一:
20
+ export BAT_API_URL=https://api-dev.bataitools.com
21
+ # 或
22
+ bat-agent login <api-key> --api https://api-dev.bataitools.com
23
+ ```
24
+
25
+ ## Commands
26
+
27
+ ```bash
28
+ bat-agent init ./submit # scaffold base.json + i18n/en.json
29
+ bat-agent schema
30
+ bat-agent capture-screenshot --website https://example.com --merge ./submit/base.json
31
+ # ... fill base.json + i18n/en.json, then translate all 16 required languages
32
+ bat-agent pack ./submit -o submit.bundle.json
33
+ bat-agent validate -f submit.bundle.json
34
+ bat-agent submit -f submit.bundle.json
35
+ bat-agent publish --id 123
36
+ ```
37
+
38
+ See `prompts/01-generate-en.md` and `prompts/02-translate-i18n.md` for the **English-first, then translate** workflow.
39
+
40
+ ## Cursor Skill
41
+
42
+ Point Cursor Skills to `skills/cursor/SKILL.md` in this directory.
43
+
44
+ ## Architecture
45
+
46
+ - **bat-agent** (this package): CLI + Skill + prompts — independently distributable
47
+ - **bat-worker/src/agent/**: `/bat/agent/*` API backend