Skip to content

update package structure - #6

Merged
sushobhit-lt merged 1 commit into
LambdaTest:stagefrom
sushobhit-lt:stage
Aug 12, 2023
Merged

update package structure#6
sushobhit-lt merged 1 commit into
LambdaTest:stagefrom
sushobhit-lt:stage

Conversation

@sushobhit-lt

Copy link
Copy Markdown
Collaborator

No description provided.

@sushobhit-lt
sushobhit-lt merged commit 3c04a1e into LambdaTest:stage Aug 12, 2023
shrinishLT added a commit to shrinishLT/smartui-cli that referenced this pull request Sep 8, 2026
upload-pdf now accepts --config and reads thresholds from the same file
exec uses, so one config.json serves web and PDF. Top-level
approvalThreshold/rejectionThreshold apply to both; a new optional `pdf`
block carries PDF-specific defaults and a per-file `thresholds` map keyed
by resolved PDF name. Precedence for a PDF: CLI flag, then pdf block,
then top-level config, then the project setting; the per-file map is
taken whole from the first source that sets it.

Strictly additive. `pdf` joins the schema's anyOf so a PDF-only file is
valid for upload-pdf, and ctxInit keeps every other command on the old
rule (web or mobile required) so exec behaves exactly as before. Unknown
keys inside `pdf` are still rejected. Values are carried as strings via
a helper that treats a numeric 0 as set, so an explicit 0 reaches the
backend rather than being dropped.

Verified against the built CLI: web-only, web+thresholds and web+pdf
files authenticate on both commands; pdf-only authenticates on
upload-pdf and is rejected by exec with the existing message; a typo
inside pdf and an out-of-range value fail with the schema messages.

The shared rejection<=approval check in ctxInit now also runs for PDF
configs; that rule is under review separately (LambdaTest#6 on the RFC).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QbnKfTzhr64osinPevTmVG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant