Repository navigation
PR title - #76
Open
dogancanbakir wants to merge 3 commits into
Open
PR title#76dogancanbakir wants to merge 3 commits into
dogancanbakir wants to merge 3 commits into
Conversation
Process a list of URLs from a file:
dit run --list urls.txt
Reads one URL per line (blank lines and "#" comments are skipped),
loads the model once, classifies every page, and streams one JSON
result per line to stdout. Fetch or classification errors are reported
per URL in the output stream without aborting the batch. Works with
--proba, --render, and --model.
Clears the repo-wide Govulncheck CI failure; identical to the bump in the sibling PRs, merges cleanly in any order.
Member
Author
|
@recepgunes1 fixed — the Govulncheck failure was repo-wide: CI installs the toolchain from go.mod, and go1.26.9 is affected by GO-2026-6809. This branch now carries the one-line |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Member
|
@dogancanbakir ci fails pls check it |
13 tasks
Same security bump as the dedicated fix PR; identical changes merge cleanly in any order.
dogancanbakir
force-pushed
the
claude/issue-4-batch
branch
from
November 2, 2026 05:23
69bc143 to
3b5c313
Compare
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.
feat: add batch mode for multiple URLs via --list
PR body
Closes #4
What
Adds a
--listflag todit runto process a list of URLs from a file:The file holds one URL per line (blank lines and
#comments are skipped). The model is loaded once, every URL is fetched and classified, and results are streamed to stdout as newline-delimited JSON — one object per URL:{"url":"https://example.com/login","page":{"type":"login","forms":[...]}} {"url":"https://bad.example","error":"fetch URL: ..."}Fetch or classification errors are reported per URL in the stream without aborting the batch, so long runs survive individual failures.
--proba,--render,--timeout, and--modelall apply in batch mode. Combining--listwith a positional argument is rejected.Changes
internal/cli/run.go: new--listflag;runBatch(opens the list file, loads the model once, streamsbatchResultlines viajson.Encoder);readURLList(line parsing with blank/comment skipping);classifyTarget(page classification with forms-only fallback, mirroring the single-target logic); help-text example.internal/cli/run_test.go(new): unit tests forreadURLList(comment/blank skipping, trimming, empty list).README.md: documented batch mode.The single-target code path is untouched, so existing behavior and output are unchanged.
Testing
go build ./...andgo vet ./...pass.go test ./...: all packages pass, including the newinternal/cliunit tests; the only failures are the two pre-existing root-package functional tests that need to download the pretrained model from Hugging Face, which was blocked in my sandbox (they fail identically onmainthere).--listwith a positional arg, a missing list file, and a list with no URLs each produce clear errors; a valid list proceeds to model loading (blocked only by the sandbox network).