btca 0.1.1 → 0.1.3

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 CHANGED
@@ -1,103 +1,15 @@
1
- # The Better Context App
1
+ # cli
2
2
 
3
- ```
4
- bun add -g btca@latest
5
- ```
6
-
7
- ```
8
- btca ask -t svelte -q "How does the inspect rune work?"
9
- ```
10
-
11
- **out of the box this uses grok code from open code because it's free, but if you have opencode installed you can customize the model and provider in the config file at ~/.config/btca/btca.json**
12
-
13
- I recommend haiku 4.5...
14
-
15
- ```json
16
- {
17
- "promptsDirectory": "~/.config/btca/prompts",
18
- "reposDirectory": "~/.config/btca/repos",
19
- "port": 3420,
20
- "maxInstances": 5,
21
- "repos": [
22
- {
23
- "name": "svelte",
24
- "url": "https://github.com/sveltejs/svelte.dev",
25
- "branch": "main"
26
- },
27
- {
28
- "name": "effect",
29
- "url": "https://github.com/Effect-TS/effect",
30
- "branch": "main"
31
- },
32
- {
33
- "name": "nextjs",
34
- "url": "https://github.com/vercel/next.js",
35
- "branch": "canary"
36
- }
37
- ],
38
- "model": "claude-haiku-4-5",
39
- "provider": "anthropic"
40
- }
41
- ```
42
-
43
- This is an evolution of: https://github.com/bmdavis419/opencode-hosted-docs-nonsense. Eventually I want to have this be the easiest way to pass in a piece of tech (ie. Svelte) and a question (ie. "How do remote functions work?") and get an up to date answer based on the latest version of the tech using the latest version of the docs/source code...
44
-
45
- **_this is all scratch work right now, I'll remove this once it's more ready to go_**
46
-
47
- ## Installation
48
-
49
- ```sh
50
- bun i
51
- ```
52
-
53
- ## Usage
54
-
55
- ### CLI - Ask a question
3
+ To install dependencies:
56
4
 
57
- Ask a question about a specific technology directly from the command line:
58
-
59
- ```sh
60
- bun run src/index.ts ask -t <tech> -q "<question>"
61
- ```
62
-
63
- Example:
64
-
65
- ```sh
66
- bun run src/index.ts ask -t effect -q "How does Effect.tap work?"
67
- ```
68
-
69
- ### HTTP Server
70
-
71
- Start the HTTP server to accept questions via API:
72
-
73
- ```sh
74
- bun run src/index.ts serve -p <port>
5
+ ```bash
6
+ bun install
75
7
  ```
76
8
 
77
- Example:
9
+ To run:
78
10
 
79
- ```sh
80
- bun run src/index.ts serve -p 8080
11
+ ```bash
12
+ bun run index.ts
81
13
  ```
82
14
 
83
- Then make POST requests to `/question`:
84
-
85
- ```sh
86
- curl -X POST http://localhost:8080/question \
87
- -H "Content-Type: application/json" \
88
- -d '{"tech":"effect","question":"How does Effect.tap work?"}'
89
- ```
90
-
91
- Response:
92
-
93
- ```json
94
- { "answer": "..." }
95
- ```
96
-
97
- ### Help
98
-
99
- ```sh
100
- bun run src/index.ts --help
101
- bun run src/index.ts ask --help
102
- bun run src/index.ts serve --help
103
- ```
15
+ This project was created using `bun init` in bun v1.3.3. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
Binary file
Binary file
Binary file
Binary file