btca 0.0.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/LICENSE.md ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2025 Ben Davis
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # The Better Context App
2
+
3
+ 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
+
5
+ **_this is all scratch work right now, I'll remove this once it's more ready to go_**
6
+
7
+ ## Installation
8
+
9
+ ```sh
10
+ bun i
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### CLI - Ask a question
16
+
17
+ Ask a question about a specific technology directly from the command line:
18
+
19
+ ```sh
20
+ bun run src/index.ts ask -t <tech> -q "<question>"
21
+ ```
22
+
23
+ Example:
24
+ ```sh
25
+ bun run src/index.ts ask -t effect -q "How does Effect.tap work?"
26
+ ```
27
+
28
+ ### HTTP Server
29
+
30
+ Start the HTTP server to accept questions via API:
31
+
32
+ ```sh
33
+ bun run src/index.ts serve -p <port>
34
+ ```
35
+
36
+ Example:
37
+ ```sh
38
+ bun run src/index.ts serve -p 8080
39
+ ```
40
+
41
+ Then make POST requests to `/question`:
42
+
43
+ ```sh
44
+ curl -X POST http://localhost:8080/question \
45
+ -H "Content-Type: application/json" \
46
+ -d '{"tech":"effect","question":"How does Effect.tap work?"}'
47
+ ```
48
+
49
+ Response:
50
+ ```json
51
+ {"answer": "..."}
52
+ ```
53
+
54
+ ### Help
55
+
56
+ ```sh
57
+ bun run src/index.ts --help
58
+ bun run src/index.ts ask --help
59
+ bun run src/index.ts serve --help
60
+ ```