feat: cut examples over to API version 2026-06-07 (facts-only progress)#3
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the demo CLI and language examples to use LexSelect API version 2026-06-07, aligning polling/status handling with the new “facts-only” processing progress fields (stage, pages_done, pages_total, total_known, progress_details) and removing reliance on legacy progress fields.
Changes:
- Bumped pinned API version to
2026-06-07across README, CLI config, TypeScript example, and Python notebook. - Updated polling/status output to display
stageandpages_done/pages_total(with+whentotal_known=false) instead of a computed percentage. - Updated CLI upload completion messaging to use
pages_totalrather than legacypage_count.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents the new processing status shape and polling guidance for 2026-06-07 (and legacy pin escape hatch). |
| examples/typescript/upload-and-poll.ts | Pins the new API version and updates polling output + completion pages field. |
| examples/python/sync-polling.ipynb | Pins the new API version and updates polling cell to use facts-only progress fields. |
| cli/README.md | Documents facts-only processing status fields and CLI rendering behavior. |
| cli/config/config.go | Updates the CLI default API version to 2026-06-07. |
| cli/cmd/upload.go | Switches upload completion output from page_count to pages_total. |
| cli/cmd/status.go | Replaces legacy progress fields with stage and rendered pages_done/pages_total[+] output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Per PR review: the bracketed progress was appended on every poll, growing the line indefinitely. The status is now rewritten in place with \r (with trailing spaces to clear longer previous renders), including the waiting-for-first-status state. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Nick-Belhovskyi
approved these changes
Jun 10, 2026
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.
Cuts the demo over to the latest API version (
2026-06-07), whereGET /documents/{id}/processing/latestreports progress as facts —progress_details[]+pages_done/pages_total/total_known/stage— and drops the legacyprocessing_progress/page_count.2026-06-07(CLI config, README badge, notebook, TypeScript example).statusrendersStage+Pages: done/total(with+ (total not final)whentotal_known=false— counts, never a fabricated percentage);uploadcompletion readspages_total.stage: done/total[+].2026-03-06pin as the legacy escape hatch./parsereads untouched — itspage_count/total_pagesare response-batch metadata on all versions.Server-side counterpart: LexSelect/lexselect#1010 (gates the legacy field by version on list/get, pins the real webhook payloads, updates the published OpenAPI contract).
A fresh clone's poll loop now works against the default API version — previously the examples taught the deprecated shape and would hit dead field reads without the pin.
🤖 Generated with Claude Code