Skip to content

Commit d797f19

Browse files
authored
Merge pull request #19 from supermemoryai/12-19-move_to_code-chunk_name_fr
move to code-chunk name fr
2 parents bbb11bc + e841a05 commit d797f19

38 files changed

+27
-31
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to astchunk
1+
# Contributing to code-chunk
22

33
Thank you for your interest in contributing to our project! This guide will help you get started with the development process.
44

@@ -11,8 +11,8 @@ Thank you for your interest in contributing to our project! This guide will help
1111
### Getting Started
1212

1313
1. Fork the repository
14-
2. Clone your fork: `git clone https://github.com/supermemoryai/astchunk.git`
15-
3. Navigate to the project directory: `cd astchunk`
14+
2. Clone your fork: `git clone https://github.com/supermemoryai/code-chunk.git`
15+
3. Navigate to the project directory: `cd code-chunk`
1616
4. Install dependencies: `bun install`
1717
5. Start development: `bun run dev`
1818

@@ -53,6 +53,6 @@ Please be respectful and constructive in all interactions within our community.
5353

5454
## Questions?
5555

56-
If you have any questions, please [open an issue](https://github.com/supermemoryai/astchunk/issues/new) for discussion.
56+
If you have any questions, please [open an issue](https://github.com/supermemoryai/code-chunk/issues/new) for discussion.
5757

58-
Thank you for contributing to astchunk!
58+
Thank you for contributing to code-chunk!

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"overrides": [
3333
{
34-
"includes": ["**/test/**/*.ts", "packages/astchunk/test/**/*.ts"],
34+
"includes": ["**/test/**/*.ts", "packages/code-chunk/test/**/*.ts"],
3535
"linter": {
3636
"rules": {
3737
"style": {

bun.lock

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"configVersion": 1,
44
"workspaces": {
55
"": {
6-
"name": "astchunk-monorepo",
6+
"name": "code-chunk-monorepo",
77
"devDependencies": {
88
"@biomejs/biome": "^2.3.8",
99
"typescript": "^5.9.3",
1010
},
1111
},
12-
"packages/astchunk": {
12+
"packages/code-chunk": {
1313
"name": "code-chunk",
1414
"version": "0.1.0",
1515
"dependencies": {
@@ -75,7 +75,7 @@
7575

7676
"@bunup/dts": ["@bunup/[email protected]", "", { "dependencies": { "@babel/parser": "^7.28.4", "coffi": "^0.1.37", "oxc-minify": "^0.93.0", "oxc-resolver": "^11.9.0", "oxc-transform": "^0.93.0", "picocolors": "^1.1.1", "std-env": "^3.9.0", "ts-import-resolver": "^0.1.23" }, "peerDependencies": { "typescript": ">=4.5.0" }, "optionalPeers": ["typescript"] }, "sha512-ky/82sy2FLMvMTGxOhegB+EUvru5dH5xW+TkGpx4jmUlEa3IR8GxKOKlCgBmb5jmmcJitOagJrCh1LM6pguReQ=="],
7777

78-
"@bunup/shared": ["@bunup/[email protected].8", "", { "peerDependencies": { "typescript": "latest" }, "optionalPeers": ["typescript"] }, "sha512-HBh5RLjhBSKgWTooX1f9WUwIQVLxeGfcNKjpV+04U6z2BolxKLSMn7MxUgYOxU4Q8hfCG6HGVD+Ks5fcnh9wBw=="],
78+
"@bunup/shared": ["@bunup/[email protected].10", "", { "peerDependencies": { "typescript": "latest" }, "optionalPeers": ["typescript"] }, "sha512-XDrhTdLS9OnXguHDGDTqrdcce17zlndBF3vOuuyQ5Vy6+T3b8waqMq9cAeYYlvhSTSkNTtDsDGiyWVji0KNPKQ=="],
7979

8080
"@emnapi/core": ["@emnapi/[email protected]", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg=="],
8181

@@ -211,19 +211,19 @@
211211

212212
"bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-inmAYe2PFLs0SUbFOWSVD24sg1jFlMPxOjOSSCYqUgn4Hsc3rDc7dFvfVYjFPNHtov6kgUeulV4SxbuIV/stPw=="],
213213

214-
"bunup": ["[email protected].10", "", { "dependencies": { "@bunup/dts": "^0.14.37", "@bunup/shared": "0.16.8", "chokidar": "^4.0.3", "coffi": "^0.1.37", "lightningcss": "^1.30.2", "picocolors": "^1.1.1", "tinyexec": "^1.0.1", "tree-kill": "^1.2.2", "zlye": "^0.4.4" }, "peerDependencies": { "typescript": "latest" }, "optionalPeers": ["typescript"], "bin": { "bunup": "dist/cli/index.js" } }, "sha512-rG++Esy3K5BYmZc/cFE58KRlDnzX4kvUPCpTE9gFf8n8ly5SNnCXPgEHMILmZ2VH1+VwJp2uY3tbaOI65TAXHQ=="],
214+
"bunup": ["[email protected].11", "", { "dependencies": { "@bunup/dts": "^0.14.37", "@bunup/shared": "0.16.10", "chokidar": "^5.0.0", "coffi": "^0.1.37", "lightningcss": "^1.30.2", "picocolors": "^1.1.1", "tinyexec": "^1.0.1", "tree-kill": "^1.2.2", "zlye": "^0.4.4" }, "peerDependencies": { "typescript": "latest" }, "optionalPeers": ["typescript"], "bin": { "bunup": "dist/cli/index.js" } }, "sha512-hy8DeA4HAkG+exZJ92UYQoUd6g1ZCwFtZQKguedomMvnrv/k+5OhkSMetQTrUOb/qSlJFwqG0QyRXLeILU9hlg=="],
215215

216216
"c12": ["[email protected]", "", { "dependencies": { "chokidar": "^5.0.0", "confbox": "^0.2.2", "defu": "^6.1.4", "dotenv": "^17.2.3", "exsolve": "^1.0.8", "giget": "^2.0.0", "jiti": "^2.6.1", "ohash": "^2.0.11", "pathe": "^2.0.3", "perfect-debounce": "^2.0.0", "pkg-types": "^2.3.0", "rc9": "^2.1.2" }, "peerDependencies": { "magicast": "*" }, "optionalPeers": ["magicast"] }, "sha512-750hTRvgBy5kcMNPdh95Qo+XUBeGo8C7nsKSmedDmaQI+E0r82DwHeM6vBewDe4rGFbnxoa4V9pw+sPh5+Iz8Q=="],
217217

218218
"cac": ["[email protected]", "", {}, "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ=="],
219219

220220
"call-bind-apply-helpers": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
221221

222-
"chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
222+
"chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="],
223223

224224
"citty": ["[email protected]", "", { "dependencies": { "consola": "^3.2.3" } }, "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ=="],
225225

226-
"code-chunk": ["code-chunk@workspace:packages/astchunk"],
226+
"code-chunk": ["code-chunk@workspace:packages/code-chunk"],
227227

228228
"coffi": ["[email protected]", "", { "dependencies": { "strip-json-comments": "^5.0.3" } }, "sha512-ewO5Xis7sw7g54yI/3lJ/nNV90Er4ZnENeDORZjrs58T70MmwKFLZgevraNCz+RmB4KDKsYT1ui1wDB36iPWqQ=="],
229229

@@ -245,7 +245,7 @@
245245

246246
"dunder-proto": ["[email protected]", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
247247

248-
"effect": ["[email protected].12", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "fast-check": "^3.23.1" } }, "sha512-7F9RGTrCTC3D7nh9Zw+3VlJWwZgo5k33KA+476BAaD0rKIXKZsY/jQ+ipyhR/Avo239Fi6GqAVFs1mqM1IJ7yg=="],
248+
"effect": ["[email protected].13", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "fast-check": "^3.23.1" } }, "sha512-8MZ783YuHRwHZX2Mmm+bpGxq+7XPd88sWwYAz2Ysry80sEKpftDZXs2Hg9ZyjESi1IBTNHF0oDKe0zJRkUlyew=="],
249249

250250
"es-define-property": ["[email protected]", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
251251

@@ -363,7 +363,7 @@
363363

364364
"rc9": ["[email protected]", "", { "dependencies": { "defu": "^6.1.4", "destr": "^2.0.3" } }, "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg=="],
365365

366-
"readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="],
366+
"readdirp": ["readdirp@5.0.0", "", {}, "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ=="],
367367

368368
"semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q=="],
369369

@@ -411,10 +411,6 @@
411411

412412
"zlye": ["[email protected]", "", { "dependencies": { "picocolors": "^1.1.1" }, "peerDependencies": { "typescript": ">=4.5.0" }, "optionalPeers": ["typescript"] }, "sha512-fwpeC841X3ElOLYRMKXbwX29pitNrsm6nRNvEhDMrRXDl3BhR2i03Bkr0GNrpyYgZJuEzUsBylXAYzgGPXXOCQ=="],
413413

414-
"c12/chokidar": ["[email protected]", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="],
415-
416414
"tree-sitter-typescript/tree-sitter-javascript": ["[email protected]", "", { "dependencies": { "node-addon-api": "^8.2.2", "node-gyp-build": "^4.8.2" }, "peerDependencies": { "tree-sitter": "^0.21.1" }, "optionalPeers": ["tree-sitter"] }, "sha512-/bnhbrTD9frUYHQTiYnPcxyHORIw157ERBa6dqzaKxvR/x3PC4Yzd+D1pZIMS6zNg2v3a8BZ0oK7jHqsQo9fWA=="],
417-
418-
"c12/chokidar/readdirp": ["[email protected]", "", {}, "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ=="],
419415
}
420416
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "astchunk-monorepo",
2+
"name": "code-chunk-monorepo",
33
"private": true,
44
"workspaces": [
55
"packages/*"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"name": "code-chunk",
33
"version": "0.1.0",
44
"description": "AST-aware code chunking for semantic search and RAG",
5-
"homepage": "https://github.com/supermemoryai/astchunk#readme",
5+
"homepage": "https://github.com/supermemoryai/code-chunk#readme",
66
"bugs": {
7-
"url": "https://github.com/supermemoryai/astchunk/issues"
7+
"url": "https://github.com/supermemoryai/code-chunk/issues"
88
},
99
"license": "MIT",
1010
"files": [
1111
"dist"
1212
],
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/supermemoryai/astchunk.git"
15+
"url": "git+https://github.com/supermemoryai/code-chunk.git"
1616
},
1717
"scripts": {
1818
"build": "bunup",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const chunkEffect = (
115115
/**
116116
* Chunk source code into pieces with semantic context
117117
*
118-
* This is the main entry point for the astchunk library. It takes source code
118+
* This is the main entry point for the code-chunk library. It takes source code
119119
* and returns an array of chunks, each with contextual information about the
120120
* code's structure.
121121
*
@@ -128,7 +128,7 @@ const chunkEffect = (
128128
*
129129
* @example
130130
* ```ts
131-
* import { chunk } from 'astchunk'
131+
* import { chunk } from 'code-chunk'
132132
*
133133
* const chunks = await chunk('src/utils.ts', sourceCode)
134134
* for (const chunk of chunks) {
@@ -203,7 +203,7 @@ const prepareChunking = (
203203
*
204204
* @example
205205
* ```ts
206-
* import { chunkStreamEffect } from 'astchunk'
206+
* import { chunkStreamEffect } from 'code-chunk'
207207
* import { Effect, Stream } from 'effect'
208208
*
209209
* const program = Stream.runForEach(
@@ -268,7 +268,7 @@ export const chunkStreamEffect = (
268268
*
269269
* @example
270270
* ```ts
271-
* import { chunkStream } from 'astchunk'
271+
* import { chunkStream } from 'code-chunk'
272272
*
273273
* for await (const chunk of chunkStream('src/utils.ts', sourceCode)) {
274274
* console.log(chunk.text, chunk.context)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ChunkerImpl implements Chunker {
6262
*
6363
* @example
6464
* ```ts
65-
* import { createChunker } from 'astchunk'
65+
* import { createChunker } from 'code-chunk'
6666
*
6767
* const chunker = createChunker({ maxChunkSize: 2048 })
6868
*

0 commit comments

Comments
 (0)