@grepai/cli 0.3.1 → 0.3.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.
Files changed (3) hide show
  1. package/README.md +51 -0
  2. package/bin/grepai +0 -0
  3. package/package.json +6 -6
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # @grepai/cli
2
+
3
+ Semantic code search CLI. It indexes your codebase using vector embeddings to enable natural language queries that find relevant code by meaning, regardless of naming conventions.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ bun add -g @grepai/cli
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ # Index your codebase (run whenever code changes)
15
+ grepai index
16
+
17
+ # Search using natural language
18
+ grepai search "how is user authentication handled?"
19
+
20
+ # Options: --topK (default 20)
21
+ grepai search "database config" --topK 50
22
+ ```
23
+
24
+ ## Configuration
25
+
26
+ Create a `.grepairc.json` or `grepai-config.json` in your project root. Supports `${ENV_VAR}` substitution.
27
+
28
+ ```json
29
+ {
30
+ "$schema": "https://raw.githubusercontent.com/bismuth1991/grepai-ts/refs/heads/main/packages/core/src/grepai-config-schema.json",
31
+ "storage": {
32
+ "type": "turso",
33
+ "url": "${TURSO_DB_URL}",
34
+ "authToken": "${TURSO_DB_AUTH_TOKEN}"
35
+ },
36
+ "embedding": {
37
+ "provider": "google",
38
+ "model": "gemini-embedding-001",
39
+ "apiKey": "${GEMINI_API_KEY}",
40
+ "dimensions": 3072
41
+ },
42
+ "include": ["src/**/*.ts"],
43
+ "exclude": ["node_modules", "dist", "**/*.test.ts"]
44
+ }
45
+ ```
46
+
47
+ Read `https://github.com/bismuth1991/grepai-ts/blob/main/packages/core/src/domain/config.ts` for full configuration details.
48
+
49
+ ## Links
50
+
51
+ [Repository](https://github.com/bismuth1991/grepai-ts) | [Issues](https://github.com/bismuth1991/grepai-ts/issues) | [License](LICENSE)
package/bin/grepai CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grepai/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "CLI for semantic code search. It uses vector embeddings to understand code meaning, enabling natural language queries that find relevant code—even when naming conventions vary.",
5
5
  "homepage": "https://github.com/bismuth1991/grepai-ts#readme",
6
6
  "bugs": {
@@ -24,12 +24,12 @@
24
24
  },
25
25
  "scripts": {
26
26
  "postinstall": "node install.js",
27
- "publish": "bun publish"
27
+ "publish:npm": "bun publish"
28
28
  },
29
29
  "optionalDependencies": {
30
- "@grepai/cli-darwin-arm64": "0.3.1",
31
- "@grepai/cli-linux-arm64-musl": "0.3.1",
32
- "@grepai/cli-linux-x64": "0.3.1",
33
- "@grepai/cli-linux-x64-musl": "0.3.1"
30
+ "@grepai/cli-darwin-arm64": "0.3.3",
31
+ "@grepai/cli-linux-arm64-musl": "0.3.3",
32
+ "@grepai/cli-linux-x64": "0.3.3",
33
+ "@grepai/cli-linux-x64-musl": "0.3.3"
34
34
  }
35
35
  }