wtt-connect 0.2.61 → 0.2.62

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/runner.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wtt-connect",
3
- "version": "0.2.61",
3
+ "version": "0.2.62",
4
4
  "private": false,
5
5
  "description": "WTT-native connector daemon for Codex, Claude Code, Cursor, Gemini, ACP, and other coding agent surfaces.",
6
6
  "type": "module",
package/src/runner.js CHANGED
@@ -82,7 +82,8 @@ export class Runner {
82
82
  if (!meta || meta.kb_mode !== true) return '';
83
83
  const kbTaskId = String(meta.kb_task_id || meta.kbTaskId || '').trim();
84
84
  if (!kbTaskId) return '';
85
- const result = await this.api.searchKnowledgeContext(kbTaskId, query, { limit: 8 });
85
+ const explicitQuery = String(meta.kb_query || meta.kbQuery || '').trim();
86
+ const result = await this.api.searchKnowledgeContext(kbTaskId, explicitQuery || query, { limit: 8 });
86
87
  return renderKnowledgeContextBlock(result?.results || [], {
87
88
  taskId: kbTaskId,
88
89
  scope: meta.kb_scope || meta.kbScope || 'personal',