Repository navigation
feat: spicrawl feedback command and a report hint on failed requests (0.2.2) - #22
Merged
Merged
Conversation
- spicrawl feedback <request-id> [--up|--down] [--kind] [--impact] [--intent] [-m comment]: report a request that failed or returned the wrong content. Free; a thumbs-down on a request that cost credits refunds them, up to a daily cap. - When the API marks a failure as reportable, the error now prints "Report it: spicrawl feedback <id> ..." on stderr; --json errors always carry request_id and, when reportable, feedback_command. - Skill asset: a Report problems section. Version 0.2.2.
added 2 commits
November 28, 2026 12:42
…errors print the API's fix
…in the corrected request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents and people using the CLI can now report a request that failed or returned the wrong content.
What changes
spicrawl feedback <request-id>with--up/--down(default down),--kind,--impact,--intent,-m/--comment, validated before sending. Free; a thumbs-down on a request that cost credits refunds them, up to a daily cap.agentisspicrawl-cli/<version>plus$SPICRAWL_AGENT.Report it: spicrawl feedback <id> --kind broken --intent "...".--jsonerrors always includerequest_idand, when reportable,feedback_command. In JSON error documentsrequest_idnow comes last (key order only).Tests
internal/cmd/feedback_test.go: flag validation and limits, request body, human/JSON output for 201/200/404/409/429, hint present/absent, JSON error document,scrape -per-line errors. 19 golden files regenerated (key order).go build,go vet,go test ./...pass.Release
Merging publishes @spicrawl/cli 0.2.2.
Also in this release: request bodies
spicrawl scrape --method POST --request-body '<json or text>', or--request-body-file <path>(-reads stdin). A JSON object or array is sent as JSON; other text is sent as a string. The flags are named--request-body*, not--body, because--bodyalready merges JSON into the whole request (the first commit's subject says--body; the flag is--request-body).batch submitdoes not take them.fix, plain output printsCorrected request:with the JSON (a large body is shown as its size).--jsonoutput keepsfixin the problem document.go build,go vetandgo test ./...pass, with new tests for the flags and the corrected request.Ship after the Spicrawl API release that adds
bodyto/v1/scrape.