feat(search): drop description from human output and e2e expectations - #50
Conversation
The API no longer returns a description field on search results; snippet remains the text preview. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PR Summary by QodoRemove
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
The API's snippet now falls back to the page description server-side. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Fold a legacy server's description into snippet (search) and drop it from fetch responses, so YAML and pretty output never carry the field regardless of backend version. e2e asserts absence. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Companion to keenableai/keenable-backend-ts#260, which removes the
descriptionfield from/v1/searchand/v1/fetchresponses and makessnippetfall back to the page description server-side.The CLI now guarantees
descriptionis never output as a separate field, regardless of backend version:descriptionis folded intosnippetwhen no snippet exists, then the field is dropped. Fetch responses dropdescriptionoutright. Covers both YAML (stdout) and pretty output.kn search -phuman output printssnippet(whitespace-flattened, truncated to 200 chars) instead of the removeddescription.descriptionremoved from required result fields and the semantic text blob; search and fetch tests now assert the field is absent.Verified against the live API (pre-deploy backend, still returning
description): YAML output contains nodescriptionfield. Safe to merge independently of the backend PR.🤖 Generated with Claude Code