decolua and Cursor
633b66dcb6
refactor(translator): P4 concern #5 buildUsage — apply to kiro/ollama/commandcode
...
- Replace 3 inline {prompt,completion,total} usage objects with buildUsage()
- Preserves ?? vs total fallback semantics (commandcode)
- Golden tests pass, identical output
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-13 21:27:22 +07:00
decolua and Cursor
4cc667253a
refactor(translator): P4 concern #6 finishReasonMap — switch-by-format, default common
...
- concerns/finishReasonMap.js: toOpenAIFinish/fromOpenAIFinish, switch special formats, default passthrough
- Replace 3 inline switch maps (claude→oai, oai→claude, commandcode→oai)
- Golden translator tests pass, behavior identical
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-13 21:20:22 +07:00
decolua and Cursor
6597b81e5e
refactor(open-sse): add reasoningDelta helper, dedup thinking deltas (B4)
...
Centralize the reasoning_content delta shape (optional assistant role) used by
claude/gemini/kiro/codex/commandcode response translators. Keeps the cross-format
convention consistent for future translators. Output byte-for-byte identical;
golden + gate clean. Ollama left as-is (mutates existing delta object).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-13 18:21:46 +07:00
decolua and Cursor
17202f7111
refactor(open-sse): extract chunkBuilder, dedup chat.completion.chunk (B1)
...
Add helpers/chunkBuilder.js; apply to claude/gemini/kiro/ollama/commandcode/
openai-responses response translators. Caller supplies id/created/model so each
keeps exact id-generation + usage semantics. Extend golden response stream to
openai-responses (codex). No behavior change; gate: no regression.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-13 17:05:42 +07:00
decolua
ad661c1286
feat: enhance CommandCode integration with improved message handling
2026-05-07 23:02:07 +07:00
decolua
b72a443bd3
feat: add CommandCode provider support
2026-05-07 23:01:33 +07:00