croo-cli 0.0.0-stage → 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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +107 -2
  3. package/dist/cli.js +1694 -0
  4. package/package.json +50 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Xander Taylor
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,108 @@
1
- # Temporary Holding Version
1
+ # Croo
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A quick, minimal, open-source terminal AI coding agent. Bring your own API key (or a local model) and let a small frog help you code.
4
+
5
+ ```
6
+ ▄▄▄ ▄▄▄ “ribbit. ready when you are.”
7
+ ██▄█▄▄▄█▄██ Croo v0.1.0
8
+ ▀█▄▀▀▀▀▀▄█▀ gpt-4o · openai
9
+ ▀▀ ▀▀ ~/projects/my-app
10
+ /help for commands
11
+ ```
12
+
13
+ - **Fully local.** No accounts, no login, no telemetry, no backend. Config lives in `~/.config/croo/config.json`.
14
+ - **Provider-agnostic.** OpenAI-compatible endpoints, Anthropic, and Google Gemini.
15
+ - **Tiny.** Zero runtime dependencies: native `fetch` and Node built-ins only.
16
+
17
+ Croo works with API keys and any OpenAI-compatible endpoint, including local models. It does not use anyone's consumer-subscription logins.
18
+
19
+ ## Install
20
+
21
+ ```bash
22
+ npm i -g croo-cli
23
+ ```
24
+
25
+ Requires Node 20+.
26
+
27
+ ## Quick start
28
+
29
+ ```bash
30
+ cd your-project
31
+ croo # first run walks you through setup
32
+ croo "add a --verbose flag to the CLI" # one-shot
33
+ croo --continue # resume the last session in this directory
34
+ croo --profile local # use a named profile
35
+ croo --yolo # skip permission prompts (be careful)
36
+ croo --no-pet # no frog
37
+ ```
38
+
39
+ Slash commands: `/help`, `/model` (list, `/model <name>` to switch, `/model add`), `/clear`, `/config`, `/exit`.
40
+ `Ctrl+C` cancels the current generation; a second `Ctrl+C` exits.
41
+
42
+ ## Configuration
43
+
44
+ `~/.config/croo/config.json` (created with mode 600). API keys may live here or in env vars: `CROO_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`. Priority is the profile's `apiKey`, then `CROO_API_KEY`, then the provider's own variable.
45
+
46
+ ```jsonc
47
+ {
48
+ "activeProfile": "openai",
49
+ "pet": true,
50
+ "animations": true,
51
+ "profiles": {
52
+ "openai": { "type": "openai", "model": "gpt-4o" },
53
+ "anthropic": { "type": "anthropic", "model": "claude-sonnet-4-5" },
54
+ "gemini": { "type": "gemini", "model": "gemini-2.5-pro" },
55
+ "openrouter": {
56
+ "type": "openai",
57
+ "baseUrl": "https://openrouter.ai/api/v1",
58
+ "model": "anthropic/claude-sonnet-4.5"
59
+ },
60
+ "ollama": {
61
+ "type": "openai",
62
+ "baseUrl": "http://localhost:11434/v1",
63
+ "model": "qwen2.5-coder"
64
+ }
65
+ }
66
+ }
67
+ ```
68
+
69
+ Optional per-profile `inputPerMTok` / `outputPerMTok` (USD per million tokens) adds a cost estimate to the status line.
70
+
71
+ ## Tools and permissions
72
+
73
+ | Tool | What it does | Asks first? |
74
+ | --- | --- | --- |
75
+ | `read_file` | Read a file with line numbers | no |
76
+ | `list_files` | List/glob files (respects `.gitignore`) | no |
77
+ | `grep` | Regex search (respects `.gitignore`) | no |
78
+ | `write_file` | Create or overwrite a file | yes, shows a diff |
79
+ | `edit_file` | Exact string replace | yes, shows a diff |
80
+ | `bash` | Run a shell command (120s timeout, truncated output) | yes, shows the command |
81
+
82
+ Prompts accept `y`, `n` or `a` (always, for that tool, this session). File tools cannot leave the current directory. Put project guidance in `CROO.md` or `AGENTS.md` and Croo will include it in its system prompt.
83
+
84
+ Sessions are saved as JSON under `~/.local/share/croo/sessions`.
85
+
86
+ ## Development
87
+
88
+ ```bash
89
+ npm install && npm test && npm run build
90
+ ```
91
+
92
+ See [CONTRIBUTING.md](CONTRIBUTING.md).
93
+
94
+ ## Roadmap
95
+
96
+ - Custom pets: the `Pet` interface in `src/ui/pet.ts` is designed so you can drop in your own frames
97
+ - Idle animation at the prompt
98
+ - Context window management and compaction
99
+ - MCP support
100
+ - More tools (web fetch, multi-edit)
101
+
102
+ ## License
103
+
104
+ MIT, see [LICENSE](LICENSE).
105
+
106
+ ---
107
+
108
+ An Entity of The Tizzle Collective