btca 0.0.5 → 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 CHANGED
@@ -1,5 +1,45 @@
1
1
  # The Better Context App
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
+
3
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...
4
44
 
5
45
  **_this is all scratch work right now, I'll remove this once it's more ready to go_**
@@ -21,6 +61,7 @@ bun run src/index.ts ask -t <tech> -q "<question>"
21
61
  ```
22
62
 
23
63
  Example:
64
+
24
65
  ```sh
25
66
  bun run src/index.ts ask -t effect -q "How does Effect.tap work?"
26
67
  ```
@@ -34,6 +75,7 @@ bun run src/index.ts serve -p <port>
34
75
  ```
35
76
 
36
77
  Example:
78
+
37
79
  ```sh
38
80
  bun run src/index.ts serve -p 8080
39
81
  ```
@@ -47,8 +89,9 @@ curl -X POST http://localhost:8080/question \
47
89
  ```
48
90
 
49
91
  Response:
92
+
50
93
  ```json
51
- {"answer": "..."}
94
+ { "answer": "..." }
52
95
  ```
53
96
 
54
97
  ### Help
Binary file
Binary file
Binary file
Binary file