@qmediat.io/gemini-code-context-mcp 1.12.1 → 1.13.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/CHANGELOG.md +114 -0
- package/dist/cache/cache-manager.d.ts +20 -0
- package/dist/cache/cache-manager.d.ts.map +1 -1
- package/dist/cache/cache-manager.js +96 -16
- package/dist/cache/cache-manager.js.map +1 -1
- package/dist/cache/files-uploader.d.ts.map +1 -1
- package/dist/cache/files-uploader.js +57 -30
- package/dist/cache/files-uploader.js.map +1 -1
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/indexer/workspace-scanner.d.ts +63 -0
- package/dist/indexer/workspace-scanner.d.ts.map +1 -1
- package/dist/indexer/workspace-scanner.js +66 -7
- package/dist/indexer/workspace-scanner.js.map +1 -1
- package/dist/manifest/db.d.ts +101 -0
- package/dist/manifest/db.d.ts.map +1 -1
- package/dist/manifest/db.js +231 -10
- package/dist/manifest/db.js.map +1 -1
- package/dist/tools/ask.tool.d.ts +10 -0
- package/dist/tools/ask.tool.d.ts.map +1 -1
- package/dist/tools/ask.tool.js +68 -9
- package/dist/tools/ask.tool.js.map +1 -1
- package/dist/tools/code.tool.d.ts +10 -0
- package/dist/tools/code.tool.d.ts.map +1 -1
- package/dist/tools/code.tool.js +39 -1
- package/dist/tools/code.tool.js.map +1 -1
- package/dist/tools/reindex.tool.d.ts.map +1 -1
- package/dist/tools/reindex.tool.js +4 -0
- package/dist/tools/reindex.tool.js.map +1 -1
- package/dist/tools/status.tool.d.ts.map +1 -1
- package/dist/tools/status.tool.js +46 -0
- package/dist/tools/status.tool.js.map +1 -1
- package/dist/types.d.ts +36 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/run-pool.d.ts +15 -0
- package/dist/utils/run-pool.d.ts.map +1 -0
- package/dist/utils/run-pool.js +36 -0
- package/dist/utils/run-pool.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded-concurrency task pool — extracted from `cache/files-uploader.ts`
|
|
3
|
+
* (v1.13.0) so the workspace scanner can share the same primitive for
|
|
4
|
+
* parallel file hashing.
|
|
5
|
+
*
|
|
6
|
+
* Order of results matches order of items. Never throws — every failure is
|
|
7
|
+
* captured as a rejected `PromiseSettledResult` in the returned array.
|
|
8
|
+
*
|
|
9
|
+
* Caller is responsible for post-pool error propagation (e.g. abort signals)
|
|
10
|
+
* — the pool itself does not surface rejections beyond returning them in the
|
|
11
|
+
* result array, by design (originally added to support uploader's per-file
|
|
12
|
+
* retry-and-continue semantics; kept here for symmetry).
|
|
13
|
+
*/
|
|
14
|
+
export declare function runPool<T, R>(items: T[], concurrency: number, task: (item: T, index: number) => Promise<R>): Promise<PromiseSettledResult<R>[]>;
|
|
15
|
+
//# sourceMappingURL=run-pool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-pool.d.ts","sourceRoot":"","sources":["../../src/utils/run-pool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAsB,OAAO,CAAC,CAAC,EAAE,CAAC,EAChC,KAAK,EAAE,CAAC,EAAE,EACV,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAC3C,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,CAsBpC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounded-concurrency task pool — extracted from `cache/files-uploader.ts`
|
|
3
|
+
* (v1.13.0) so the workspace scanner can share the same primitive for
|
|
4
|
+
* parallel file hashing.
|
|
5
|
+
*
|
|
6
|
+
* Order of results matches order of items. Never throws — every failure is
|
|
7
|
+
* captured as a rejected `PromiseSettledResult` in the returned array.
|
|
8
|
+
*
|
|
9
|
+
* Caller is responsible for post-pool error propagation (e.g. abort signals)
|
|
10
|
+
* — the pool itself does not surface rejections beyond returning them in the
|
|
11
|
+
* result array, by design (originally added to support uploader's per-file
|
|
12
|
+
* retry-and-continue semantics; kept here for symmetry).
|
|
13
|
+
*/
|
|
14
|
+
export async function runPool(items, concurrency, task) {
|
|
15
|
+
const results = new Array(items.length);
|
|
16
|
+
let next = 0;
|
|
17
|
+
const workers = Array.from({ length: Math.max(1, Math.min(concurrency, items.length || 1)) }, async () => {
|
|
18
|
+
while (next < items.length) {
|
|
19
|
+
const i = next;
|
|
20
|
+
next += 1;
|
|
21
|
+
const item = items[i];
|
|
22
|
+
if (item === undefined)
|
|
23
|
+
continue;
|
|
24
|
+
try {
|
|
25
|
+
const value = await task(item, i);
|
|
26
|
+
results[i] = { status: 'fulfilled', value };
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
results[i] = { status: 'rejected', reason: err };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
await Promise.all(workers);
|
|
34
|
+
return results;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=run-pool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-pool.js","sourceRoot":"","sources":["../../src/utils/run-pool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,KAAU,EACV,WAAmB,EACnB,IAA4C;IAE5C,MAAM,OAAO,GAA8B,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnE,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CACxB,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,EACjE,KAAK,IAAI,EAAE;QACT,OAAO,IAAI,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,IAAI,CAAC;YACf,IAAI,IAAI,CAAC,CAAC;YACV,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACtB,IAAI,IAAI,KAAK,SAAS;gBAAE,SAAS;YACjC,IAAI,CAAC;gBACH,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;gBAClC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;YAC9C,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;YACnD,CAAC;QACH,CAAC;IACH,CAAC,CACF,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qmediat.io/gemini-code-context-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"mcpName": "io.github.qmediat/gemini-code-context-mcp",
|
|
5
5
|
"description": "MCP server that gives Claude Code persistent memory of your codebase, backed by Gemini's 2M-token context. Includes eager `ask`/`code` for cached repo Q&A and `ask_agentic` for agentic file access on repos that exceed the model's input-token limit.",
|
|
6
6
|
"keywords": [
|