oh-my-fable 0.1.0 → 0.1.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.
- package/README.md +43 -2
- package/dist/cli.cjs +1370 -0
- package/dist/cli.js +1369 -0
- package/dist/index.cjs +232 -0
- package/dist/index.d.cts +77 -1
- package/dist/index.d.ts +77 -1
- package/dist/index.js +226 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -128,8 +128,49 @@ console.log(result.ctx.plan.steps);
|
|
|
128
128
|
npm i oh-my-fable # zero runtime dependencies
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
Node ≥ 18.
|
|
132
|
-
|
|
131
|
+
Node ≥ 18. Ships with `AnthropicProvider` and `OpenAICompatProvider` (works with
|
|
132
|
+
OpenAI, Ollama, LM Studio, OpenRouter, Groq… — `ollama("llama3.1")` for a local
|
|
133
|
+
model with no key), both over `fetch`, no SDK. Or bring any model by implementing
|
|
134
|
+
the `Provider` interface (three methods).
|
|
135
|
+
|
|
136
|
+
## Or use it from the terminal
|
|
137
|
+
|
|
138
|
+
Don't want to write code? It ships a CLI (zero extra deps):
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npx oh-my-fable demo # watch crash → resume, no API key
|
|
142
|
+
|
|
143
|
+
# already use Claude Code or Codex? drive it — uses that login, no separate key:
|
|
144
|
+
npx oh-my-fable run "outline a talk on durable agents" --provider claude
|
|
145
|
+
|
|
146
|
+
# or a LOCAL model (Ollama / LM Studio), also no key:
|
|
147
|
+
npx oh-my-fable run "outline a talk on durable agents" --provider ollama --model llama3.1
|
|
148
|
+
|
|
149
|
+
# or any hosted model:
|
|
150
|
+
export ANTHROPIC_API_KEY=sk-...
|
|
151
|
+
npx oh-my-fable run "summarize README.md into SUMMARY.md" --tools fs
|
|
152
|
+
|
|
153
|
+
npx oh-my-fable list # your saved runs
|
|
154
|
+
npx oh-my-fable resume run_abc123 # continue one from its checkpoint
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**You don't need an Anthropic API key.** Pick how it talks to a model:
|
|
158
|
+
|
|
159
|
+
| `--provider` | uses | key? |
|
|
160
|
+
| --- | --- | --- |
|
|
161
|
+
| `claude` / `codex` | your Claude Code / Codex CLI login | **none** — rides the CLI's auth |
|
|
162
|
+
| `ollama` | a local Ollama model | **none** |
|
|
163
|
+
| `--base-url <url>` | LM Studio / OpenRouter / Groq / any OpenAI-compatible | per that server |
|
|
164
|
+
| `openai` | OpenAI | `OPENAI_API_KEY` |
|
|
165
|
+
| *(default)* | Anthropic | `ANTHROPIC_API_KEY` |
|
|
166
|
+
|
|
167
|
+
(The CLI-driven providers are text-only — great for planning/reasoning runs; they
|
|
168
|
+
don't expose `--tools`.)
|
|
169
|
+
|
|
170
|
+
You watch the plan form and each step get reflected on, live. `--tools fs` gives
|
|
171
|
+
the agent a sandboxed `read_file`/`write_file`/`list_dir` (confined to the working
|
|
172
|
+
directory) so a terminal run can actually produce files; without it, runs are
|
|
173
|
+
pure-reasoning. Every run is checkpointed, so `resume <runId>` always works.
|
|
133
174
|
|
|
134
175
|
## Tools
|
|
135
176
|
|