oh-my-fable 0.1.0 → 0.1.1
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 +20 -0
- package/dist/cli.cjs +1189 -0
- package/dist/cli.js +1188 -0
- package/dist/index.cjs +64 -0
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +63 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -131,6 +131,26 @@ npm i oh-my-fable # zero runtime dependencies
|
|
|
131
131
|
Node ≥ 18. The `AnthropicProvider` talks to the API over `fetch` — no SDK. Bring
|
|
132
132
|
any model by implementing the `Provider` interface (three methods).
|
|
133
133
|
|
|
134
|
+
## Or use it from the terminal
|
|
135
|
+
|
|
136
|
+
Don't want to write code? It ships a CLI (zero extra deps):
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
npx oh-my-fable demo # watch crash → resume, no API key
|
|
140
|
+
|
|
141
|
+
export ANTHROPIC_API_KEY=sk-...
|
|
142
|
+
npx oh-my-fable run "summarize README.md into SUMMARY.md" --tools fs
|
|
143
|
+
npx oh-my-fable run "outline a talk on durable agents" --success "5 sections"
|
|
144
|
+
|
|
145
|
+
npx oh-my-fable list # your saved runs
|
|
146
|
+
npx oh-my-fable resume run_abc123 # continue one from its checkpoint
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
You watch the plan form and each step get reflected on, live. `--tools fs` gives
|
|
150
|
+
the agent a sandboxed `read_file`/`write_file`/`list_dir` (confined to the working
|
|
151
|
+
directory) so a terminal run can actually produce files; without it, runs are
|
|
152
|
+
pure-reasoning. Every run is checkpointed, so `resume <runId>` always works.
|
|
153
|
+
|
|
134
154
|
## Tools
|
|
135
155
|
|
|
136
156
|
```ts
|