@devflow-tools/context-engine 0.19.18 → 0.19.19

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.
@@ -49,10 +49,10 @@ export class ContextEngine {
49
49
  query,
50
50
  projectId: projectId(this.dependencies.cg),
51
51
  contextHash: 'diagnostic-code-search',
52
- tokenBudget: request.maxTokens ?? 8_000,
52
+ tokenBudget: request.maxTokens ?? 2_000,
53
53
  now: Date.now(),
54
54
  });
55
- const selected = packCandidates(output.candidates, request.maxTokens ?? 8_000);
55
+ const selected = packCandidates(output.candidates, request.maxTokens ?? 2_000);
56
56
  return {
57
57
  files: selected.map(toSnippet),
58
58
  ...(request.includeGraph ? {
@@ -79,7 +79,7 @@ export class ContextEngine {
79
79
  const codeQueries = planned
80
80
  ? planned.requirement === 'prohibited' ? [] : [planned.typedQuery]
81
81
  : [directCodeQuery(queryText, options)];
82
- const budget = options.maxTokens ?? 8_000;
82
+ const budget = options.maxTokens ?? 2_000;
83
83
  const outputs = await Promise.all(codeQueries.map(query => this.runtime.search({
84
84
  query,
85
85
  projectId: projectId(this.dependencies.cg),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/context-engine",
3
- "version": "0.19.18",
3
+ "version": "0.19.19",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,10 +21,10 @@
21
21
  "clean": "rm -rf dist"
22
22
  },
23
23
  "dependencies": {
24
- "@colbymchenry/codegraph": "^1.1.1",
25
- "@devflow-tools/provider-runtime": "0.19.18",
26
- "@devflow-tools/sdk": "0.19.18",
27
- "@devflow-tools/telemetry": "0.19.18",
24
+ "@colbymchenry/codegraph": "^1.6.2",
25
+ "@devflow-tools/provider-runtime": "0.19.19",
26
+ "@devflow-tools/sdk": "0.19.19",
27
+ "@devflow-tools/telemetry": "0.19.19",
28
28
  "better-sqlite3": "^12.11.1",
29
29
  "sqlite-vec": "^0.1.9"
30
30
  },
@@ -35,7 +35,7 @@
35
35
  "files": [
36
36
  "dist"
37
37
  ],
38
- "gitHead": "7bf80da3705c96d15e6f258e0a632db62f245cdc",
38
+ "gitHead": "c54685fa08744a3160ef1d38b622e6f9b6ad9441",
39
39
  "description": "Budgeted task-context assembly across code, memory, knowledge, and semantic signals.",
40
40
  "license": "MIT",
41
41
  "repository": {