@mcampa/claude-context-core 0.1.3 → 0.2.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.
- package/README.md +9 -6
- package/dist/.tsbuildinfo +1 -1
- package/dist/context.d.ts +4 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +11 -20
- package/dist/context.js.map +1 -1
- package/package.json +2 -2
- package/dist/utils/git.d.ts +0 -11
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js +0 -46
- package/dist/utils/git.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @mcampa/claude-context-core
|
|
2
2
|

|
|
3
3
|
|
|
4
4
|
The core indexing engine for Claude Context - a powerful tool for semantic search and analysis of codebases using vector embeddings and AI.
|
|
5
5
|
|
|
6
|
-
[](https://www.npmjs.com/package/@mcampa/claude-context-core)
|
|
7
|
+
[](https://www.npmjs.com/package/@mcampa/claude-context-core)
|
|
8
8
|
|
|
9
9
|
> 📖 **New to Claude Context?** Check out the [main project README](../../README.md) for an overview and quick start guide.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install @
|
|
14
|
+
npm install @mcampa/claude-context-core
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
### Prepare Environment Variables
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
Context,
|
|
52
52
|
OpenAIEmbedding,
|
|
53
53
|
MilvusVectorDatabase
|
|
54
|
-
} from '@
|
|
54
|
+
} from '@mcampa/claude-context-core';
|
|
55
55
|
|
|
56
56
|
// Initialize embedding provider
|
|
57
57
|
const embedding = new OpenAIEmbedding({
|
|
@@ -67,6 +67,7 @@ const vectorDatabase = new MilvusVectorDatabase({
|
|
|
67
67
|
|
|
68
68
|
// Create context instance
|
|
69
69
|
const context = new Context({
|
|
70
|
+
name: 'my-context',
|
|
70
71
|
embedding,
|
|
71
72
|
vectorDatabase
|
|
72
73
|
});
|
|
@@ -193,7 +194,7 @@ interface SemanticSearchResult {
|
|
|
193
194
|
### Using VoyageAI Embeddings
|
|
194
195
|
|
|
195
196
|
```typescript
|
|
196
|
-
import { Context, MilvusVectorDatabase, VoyageAIEmbedding } from '@
|
|
197
|
+
import { Context, MilvusVectorDatabase, VoyageAIEmbedding } from '@mcampa/claude-context-core';
|
|
197
198
|
|
|
198
199
|
// Initialize with VoyageAI embedding provider
|
|
199
200
|
const embedding = new VoyageAIEmbedding({
|
|
@@ -207,6 +208,7 @@ const vectorDatabase = new MilvusVectorDatabase({
|
|
|
207
208
|
});
|
|
208
209
|
|
|
209
210
|
const context = new Context({
|
|
211
|
+
name: 'my-context',
|
|
210
212
|
embedding,
|
|
211
213
|
vectorDatabase
|
|
212
214
|
});
|
|
@@ -216,6 +218,7 @@ const context = new Context({
|
|
|
216
218
|
|
|
217
219
|
```typescript
|
|
218
220
|
const context = new Context({
|
|
221
|
+
name: 'my-context',
|
|
219
222
|
embedding,
|
|
220
223
|
vectorDatabase,
|
|
221
224
|
supportedExtensions: ['.ts', '.js', '.py', '.java'],
|