Repository navigation
[API_V1] keenable fetch: several URLs and the v1 options over POST /v1/fetch - #119
Draft
KGKallasmaa wants to merge 5 commits into
Draft
KGKallasmaa wants to merge 5 commits into
KGKallasmaa wants to merge 5 commits into
Conversation
`keenable fetch` takes one or more URLs. More than one URL, or any of --offset, --no-text, --summary, --schema-file, --highlights, --links, --images, --max-age or --timeout, sends POST /v1/fetch (preview, behind the fetch_post org flag); a single URL with only today's flags keeps using GET. The daemon and the direct path both gain a fetch_post command. Exit code 6 when every URL failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /v1/fetch now returns results[i] for urls[i] and puts a failed page's error on its entry (no top-level errors). The human view warns per entry, and exit code 6 means every entry failed to read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sends cache_only: true; conflicts with --live and refuses --max-age 0s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
keenable fetchnow takes one or more URLs and the v1 Fetch options, sent toPOST /v1/fetch.Do not merge or release until
POST /v1/fetchis public. It sits behind the per-orgfetch_postflag (backend stack #772 → #773 → #774 → #776 → #777 → #778, plus #775).Behaviour
--offset,--no-text,--summary,--schema-file,--highlights [QUERY],--links N,--images N,--max-age, or--timeout.--live,--prompt,--max-chars,--session-id) keeps callingGET /v1/fetch, so nothing changes for current users.--promptbecomes the summary instruction, and--livebecomesmax_age: "0s".--schema-file PATH: must hold a JSON object; it's sent ascontent.summary.output_schema. A bad file exits 2.-pprints each page (text, or the summary, pretty-printed when it's JSON), a hint with--offsetwhen there's more text, and one warning per failed URL.fetch_postcommand that POSTs the JSON body. Daemon and client builds must match, so an older daemon refuses the request and gets restarted.Checks
-D warnings,cargo test) is the build check here.build_fetch_body(defaults, every option, no text with default highlights),every_url_failedandread_schema_file.tests/e2e/test_fetch.py, once the flag is on for the e2e key's org.Linear: KEE-1403 (Fetch POST) and KEE-1438 (CLI).
🤖 Generated with Claude Code