feat: add shared dialog capture#142
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #141
Working session summaryImplemented and finalized PR 142: #142 Current head is Verified locally:
Current-head CI is green for JavaScript, Rust, and JS/Rust parity. PR 142 is now marked ready for review, and the working tree is clean. This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (1.9M + 53.0M cached) input tokens, 184.9K output tokens, $80.327119 cost 🤖 Models used:
📎 Log file uploaded as Gist (18428KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
Summary
Fixes #141.
web-capture shared-dialog <url>andGET /shared-dialog?url=<URL>to both JavaScript and Rust implementations.linear_conversationdata, omits visually hidden turns, and emits provider/source URL/capture method/conversation id/title/ordered turns/evidence/diagnostics.json,meta-language,demo-memory,markdown/md,txt/text, andhtmloutput formats.Reproduction and Regression Coverage
https://chatgpt.com/share/6a3825b9-8de4-83ee-9c24-52fd1eb38d24verifies exactly 4 visible turns fromlinear_conversationwith stable roles/content/evidence.https://share.google/aimode/VG0HhpnAXrBkC0QgPverifies anunsupportedresult withprovider_challenge_interstitialdiagnostics instead of a fabricated transcript.web-capture shared-dialog <url> --format demo-memory -o -writes clean structured stdout even when.lenvis loaded./streampreserves safe identityContent-Lengthand avoids the CIERR_STREAM_PREMATURE_CLOSEregression.web-capturefor JS/Rust parity; upstreammeta-languagecurrently publishes the latest package as a Rust crate but not as an npm package.Verification
cd js && npm run lintcd js && npm run format:checkcd js && npm run check:duplicationcd js && CI=true GITHUB_ACTIONS=true npx -y [email protected] --experimental-vm-modules ./node_modules/.bin/jest --runTestsByPath tests/e2e/process.test.js tests/unit/stream.test.js --runInBand --detectOpenHandlescd js && CI=true GITHUB_ACTIONS=true npx -y [email protected] --experimental-vm-modules ./node_modules/.bin/jest --testPathIgnorePatterns="docker.test.js"cd js && npm test -- tests/e2e/docker.test.jscd rust && cargo fmt --all -- --checkcd rust && cargo clippy --all-targets --all-features -- -D warningscd rust && cargo test --all-features --verbosecd rust && cargo test --doc --verbosenode scripts/validate-changeset.mjsnode scripts/check-publishable-changes.mjsnode scripts/check-js-rust-parity.mjsshared-dialog ... --capture api --format json -o -both returnstatus: okwith 4 turns.78225bc: JavaScript Checks and Release, Rust Checks and Release, and JS/Rust Parity all passed.