code-graph-context 3.0.3 → 3.0.5

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.
@@ -15,7 +15,7 @@ const DEFAULT_CONFIG = {
15
15
  model: process.env.EMBEDDING_MODEL ?? 'codesage/codesage-base-v2',
16
16
  startupTimeoutMs: 120_000, // 2 min — first run downloads the model
17
17
  requestTimeoutMs: parseInt(process.env.EMBEDDING_REQUEST_TIMEOUT_MS ?? '', 10) || 120_000,
18
- idleTimeoutMs: 180_000, // 3 min — auto-shutdown after no requests
18
+ idleTimeoutMs: parseInt(process.env.EMBEDDING_IDLE_TIMEOUT_MS ?? '', 10) || 600_000, // 10 min — auto-shutdown after no requests
19
19
  };
20
20
  export class EmbeddingSidecar {
21
21
  process = null;
@@ -203,7 +203,7 @@ export const DEFAULTS = {
203
203
  maxResultsDisplayed: 30,
204
204
  codeSnippetLength: 500, // Reduced from 1000 to control output size
205
205
  chainSnippetLength: 700,
206
- maxEmbeddingChars: 30000, // ~7500 tokens, under 8192 limit for text-embedding-3-large
206
+ maxEmbeddingChars: 24000, // ~6000 tokens, safe margin for 8192 token limit on text-embedding-3-large
207
207
  };
208
208
  // Parsing Configuration
209
209
  export const PARSING = {
@@ -302,5 +302,5 @@ export const CONFIG_FILE_PATTERNS = {
302
302
  '**/yarn.lock',
303
303
  '**/pnpm-lock.yaml',
304
304
  ],
305
- maxFileSizeBytes: 512 * 1024, // 512 KB — skip large generated files
305
+ maxFileSizeBytes: 64 * 1024, // 64 KB — skip large config files (grafana dashboards, generated JSON, etc.)
306
306
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-graph-context",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "MCP server that builds code graphs to provide rich context to LLMs",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/andrew-hernandez-paragon/code-graph-context#readme",