silas 0.1.0

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +86 -0
  3. package/dist/cli.js +107947 -0
  4. package/package.json +51 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 David Turnbull
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # silas
2
+
3
+ CLI and MCP server for answering questions about library source code.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g silas
9
+ ```
10
+
11
+ Or run directly with npx:
12
+
13
+ ```bash
14
+ npx silas --help
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ### Ask questions about a package
20
+
21
+ Ask questions about any package from supported ecosystems:
22
+
23
+ ```bash
24
+ silas ask --package react --ecosystem npm "How do hooks work?"
25
+ silas ask -p express -e npm "How does routing work?"
26
+ silas ask -p requests -e pypi --version 2.31.0 "How are sessions handled?"
27
+ ```
28
+
29
+ ### Ask questions about a repository
30
+
31
+ Ask questions about any git repository:
32
+
33
+ ```bash
34
+ silas ask --repo https://github.com/facebook/react --ref main "How does the reconciler work?"
35
+ ```
36
+
37
+ ### Resolve a package
38
+
39
+ Resolve package metadata without invoking an agent:
40
+
41
+ ```bash
42
+ silas resolve --package lodash --ecosystem npm
43
+ silas resolve --repo https://github.com/expressjs/express --ref v4.18.2
44
+ ```
45
+
46
+ ### Manage the cache
47
+
48
+ silas caches cloned repositories locally to speed up repeated queries:
49
+
50
+ ```bash
51
+ silas cache status # Show cache usage
52
+ silas cache prune # Remove old checkouts to free space
53
+ silas cache clear -y # Delete all cached data
54
+ ```
55
+
56
+ ### MCP Server
57
+
58
+ Start the Model Context Protocol server for integration with Claude and other AI assistants:
59
+
60
+ ```bash
61
+ silas serve
62
+ ```
63
+
64
+ ## Supported Ecosystems
65
+
66
+ - **npm** - Node.js packages
67
+ - **pypi** - Python packages
68
+ - **cargo** - Rust crates
69
+ - **go** - Go modules
70
+ - **rubygems** - Ruby gems
71
+
72
+ ## Configuration
73
+
74
+ Configuration is stored at `~/.config/shelf/config.yaml`:
75
+
76
+ ```yaml
77
+ cache:
78
+ maxSizeGb: 10
79
+
80
+ agent:
81
+ type: claude-code # or: codex, aider, goose, custom
82
+ ```
83
+
84
+ ## License
85
+
86
+ MIT