mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-25 12:01:03 +02:00
Route the Mongo read path through one canonical request/result shape and remove the `as unknown as` narrowing flagged in review. - Add optional executeQuery to KtxScanConnector and narrow by capability in the runner, replacing the double cast with a driver + method guard. - Move KtxMongoQueryInput/KtxMongoQueryResult into context/scan/types.ts; delete the duplicate runner request type, the inline MCP-port input, and the KtxMongoQueryResponse alias. KtxMongoQueryArgs now extends the base. - Inline the pass-through executeMongoQuery wrapper. - Correct the --output default in the mongo-query and sql CLI docs: it is TTY/CI/KTX_OUTPUT-derived, not unconditionally pretty. - Add tests: database override, empty result, parseLimitOption bounds, bigint/plural-row/empty-header rendering, and mongo_query_completed telemetry fields on both outcomes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ga2tvQ2YCEphmY8HM5Guzq |
||
|---|---|---|
| .. | ||
| ktx-admin.mdx | ||
| ktx-completion.mdx | ||
| ktx-connection.mdx | ||
| ktx-ingest.mdx | ||
| ktx-mcp.mdx | ||
| ktx-mongo-query.mdx | ||
| ktx-setup.mdx | ||
| ktx-sl.mdx | ||
| ktx-sql.mdx | ||
| ktx-status.mdx | ||
| ktx-wiki.mdx | ||
| ktx.mdx | ||
| meta.json | ||