bindery-cli 0.63.0__tar.gz → 0.63.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/PKG-INFO +1 -1
  2. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/patchnotes.md +21 -0
  3. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/pyproject.toml +1 -1
  4. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/roadmap.md +4 -0
  5. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/__init__.py +1 -1
  6. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/cli.py +1 -0
  7. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/epub.py +1 -0
  8. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/uv.lock +1 -1
  9. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/.github/FUNDING.yml +0 -0
  10. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/.github/workflows/ci.yml +0 -0
  11. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/.github/workflows/publish.yml +0 -0
  12. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/.gitignore +0 -0
  13. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/AGENTS.md +0 -0
  14. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/LICENSE +0 -0
  15. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/OBSERVE-RESEARCH.md +0 -0
  16. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/README.md +0 -0
  17. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/docs/screenshots/library-sweep.png +0 -0
  18. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/logo.svg +0 -0
  19. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/plugin/__init__.py +0 -0
  20. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/project.done +0 -0
  21. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/run_tests.sh +0 -0
  22. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/scripts/FastSweep.java +0 -0
  23. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/scripts/build_plugin.py +0 -0
  24. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/scripts/fast_sweep.py +0 -0
  25. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/spec.md +0 -0
  26. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/__main__.py +0 -0
  27. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/audit.py +0 -0
  28. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/library.py +0 -0
  29. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/observe.py +0 -0
  30. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/pagination.py +0 -0
  31. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/reserialize.py +0 -0
  32. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/transforms.py +0 -0
  33. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/validate.py +0 -0
  34. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/src/bindery/watermark.py +0 -0
  35. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_audit.py +0 -0
  36. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_cli.py +0 -0
  37. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_comment_hyphens.py +0 -0
  38. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_contamination.py +0 -0
  39. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_cover_tocdrift.py +0 -0
  40. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_epub.py +0 -0
  41. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_flags_real_core.py +0 -0
  42. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_flags_wiring.py +0 -0
  43. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_help.py +0 -0
  44. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_library.py +0 -0
  45. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_matcher_hardening.py +0 -0
  46. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_observe.py +0 -0
  47. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_pagination.py +0 -0
  48. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_plugin.py +0 -0
  49. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_reserialize.py +0 -0
  50. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_space_renames.py +0 -0
  51. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_spine_guard.py +0 -0
  52. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_transforms.py +0 -0
  53. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_validate.py +0 -0
  54. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_version.py +0 -0
  55. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_watermark.py +0 -0
  56. {bindery_cli-0.63.0 → bindery_cli-0.63.1}/tests/test_xml_hardening.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: bindery-cli
3
- Version: 0.63.0
3
+ Version: 0.63.1
4
4
  Summary: Audit EPUB body text and repair broken EPUBs with deterministic, epubcheck-gated fixes; atomic in-place replacement in a Calibre library.
5
5
  Project-URL: Homepage, https://github.com/VirInvictus/bindery-cli
6
6
  Project-URL: Repository, https://github.com/VirInvictus/bindery-cli
@@ -1,5 +1,26 @@
1
1
  # bindery-cli Patch Notes
2
2
 
3
+ ## v0.63.1 (2026-11-04)
4
+
5
+ ### Two single-flag live-verification catches
6
+
7
+ Running each v0.63.0 flag alone against its real carriers caught two
8
+ wiring slips the --all-sized sweeps could never see:
9
+
10
+ - **`--encode-ref-brackets` alone was a silent no-op**: the encode reads
11
+ `present` (the archive existence set), but `present` only fills when
12
+ one of the prune/anchors/media-types/declare/prune-NCX flags asked for
13
+ it -- the new flag wasn't in that guard, so the set stayed empty, every
14
+ reference resolved to nothing, and the flag answered "no applicable
15
+ fixes" on a book whose NCX carries 59 bracket srcs (The Given Day:
16
+ `Dennis_Lehane_-_The_Given_Day_[html]_split_000.html`). The guard now
17
+ includes the flag; the live apply encodes 59 NCX srcs, zero raw left.
18
+ - **The audit CLI's `--only` choices lacked `shell`**: the analyzer
19
+ shipped in v0.63.0 but `bindery audit --only shell` died at argparse
20
+ (invalid choice). The choice is registered.
21
+
22
+ Suite: 913 tests.
23
+
3
24
  ## v0.63.0 (2026-11-04)
4
25
 
5
26
  ### The harvest census: two new flags, the id scope, and the shell detector
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bindery-cli"
7
- version = "0.63.0"
7
+ version = "0.63.1"
8
8
  description = "Audit EPUB body text and repair broken EPUBs with deterministic, epubcheck-gated fixes; atomic in-place replacement in a Calibre library."
9
9
  readme = "README.md"
10
10
  classifiers = [
@@ -59,6 +59,7 @@ The plugin vendors the core and never gates (the epubcheck latency ruling).
59
59
  | 0.62.1 | `--fix-double-colon-tags`: the pseudo-tag escape for the last library fatal -- an XML name carries at most one colon, so a `::`-named pseudo-tag is never markup (fatal RSC-016; the Book of Debugging's C++ samples), and escaping both ends restores the author's text; nested templates escape inner-first, real markup is unreachable by construction; also closes the spec.md drift (the four v0.62.0 flags had not joined the inventory) | v0.62.1 |
60
60
  | 0.62.2 | The review batch (three-reviewer pass over the v0.62.x range): the item-properties insertion branch emitted malformed XML on the self-closed shape (attribute after the solidus; no test drove the branch -- every fixture pre-carried properties), now appends before the solidus with an ET-parsed pin; the missing-title empty-fill is head-scoped (an empty SVG `<title>` is visible text); the double-colon tail is bounded at 120 chars (the escaped-bracket runaway); the unverified on\* handler disjunct left the census; `_scan_doctype_span` refuses unterminated declarations; the guide-prune docstring matches the code; and the documentation inventories caught up (README's seven missing flags, spec.md's four behavioral bullets + body counts + the safe-opt-in section, AGENTS.md's inventory) | v0.62.2 |
61
61
  | 0.63 | The harvest census (the honest dig into the remaining 14,109): `--strip-presentational-attrs` (the largest attribute family; rendering-caveat approved), `--encode-ref-brackets` (the issue #19 mechanism applied to brackets without spaces; the 59-book RSC-020 lane), `--fix-id-colons` broadened to every NCName failure (digit-led scraped ids; the apostrophe charset blind spot closed), and the audit battery's `shell` analyzer (the Wandering Inn detector: spine-missing fraction at or over 50% reads SHELL, re-source never repair) | v0.63.0 |
62
+ | 0.63.1 | Two single-flag live-verification catches: `--encode-ref-brackets` alone was a silent no-op (`present` only filled under the other flags' guard -- The Given Day's 59 NCX bracket srcs encoded, zero raw left, once the guard included the flag), and the audit CLI's `--only` choices lacked `shell` | v0.63.1 |
62
63
 
63
64
  ## Open work
64
65
 
@@ -70,6 +71,9 @@ The plugin vendors the core and never gates (the epubcheck latency ruling).
70
71
  gate refuses a book that is otherwise repaired. Needs the same
71
72
  entry-and-reference coordination as the space renames, with the
72
73
  decode-before-lookup epubcheck rule verified per character class.
74
+ *v0.63.0 narrowed this: `--encode-ref-brackets` ships the bracket
75
+ slice (the decode-before-lookup rule verified for `%5B`/`%5D`); the
76
+ comma and remaining classes stay open.*
73
77
  *(Narrowed v0.58.0: renamed references now percent-encode `[`/`]`
74
78
  (issue #19), so a book whose bracket-named entries carry spaces
75
79
  repairs cleanly. The no-rename shape remains: entries with brackets
@@ -11,7 +11,7 @@ Calibre plugin built from this core.
11
11
  Single source of truth for the version. pyproject.toml must match VERSION below.
12
12
  """
13
13
 
14
- VERSION = "0.63.0"
14
+ VERSION = "0.63.1"
15
15
  __version__ = VERSION
16
16
 
17
17
  from .epub import RepairReport, repair_epub # noqa: E402
@@ -2484,6 +2484,7 @@ def build_parser() -> argparse.ArgumentParser:
2484
2484
  "cover",
2485
2485
  "tocdrift",
2486
2486
  "contamination",
2487
+ "shell",
2487
2488
  "all",
2488
2489
  ),
2489
2490
  help="which audit to run",
@@ -2531,6 +2531,7 @@ def repair_epub(
2531
2531
  or flags.fix_media_types
2532
2532
  or flags.declare_missing
2533
2533
  or flags.prune_ncx_targets
2534
+ or flags.encode_ref_brackets
2534
2535
  ):
2535
2536
  for n in zin.namelist():
2536
2537
  norm_to_raw.setdefault(_norm_path(space_renames.get(n, n)), n)
@@ -8,7 +8,7 @@ resolution-markers = [
8
8
 
9
9
  [[package]]
10
10
  name = "bindery-cli"
11
- version = "0.63.0"
11
+ version = "0.63.1"
12
12
  source = { editable = "." }
13
13
  dependencies = [
14
14
  { name = "cquarry", marker = "python_full_version >= '3.14'" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes