From 25784cd4e790a6290e2f719549a83f5f7a63b3e0 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Wed, 18 Nov 2026 10:02:07 -0500 Subject: [PATCH] fix(ci): refresh CLI decimal schema goldens --- .../cli-parity/llms-full-command-yaml.txt | 6 ++--- .../cli-parity/schema-command-json.txt | 2 +- .../fixtures/cli-parity/schema-command-md.txt | 24 +++++++++---------- tests/fixtures/cli-parity/schema-command.txt | 6 ++--- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/fixtures/cli-parity/llms-full-command-yaml.txt b/tests/fixtures/cli-parity/llms-full-command-yaml.txt index 88825e15dd..c2dfa373f7 100644 --- a/tests/fixtures/cli-parity/llms-full-command-yaml.txt +++ b/tests/fixtures/cli-parity/llms-full-command-yaml.txt @@ -27,7 +27,7 @@ commands: minimum: 256 maximum: 65536 - type: string - pattern: ^[0-9]+$ + pattern: ^0*(?:(?:2(?:5[6-9]|[6-8][0-9]|9[0-9])|[3-8][0-9]{2}|9[0-9]{2})|[1-9][0-9]{3}|(?:1[0-9]{4}|[2-5][0-9]{4}|6(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-4][0-9]{2}|5(?:0[0-9]|[1-2][0-9]|3[0-6])))))$ description: Power-of-two block size from 256 to 65536 bytes offset: default: 0 @@ -36,7 +36,7 @@ commands: minimum: 0 maximum: 9007199254740991 - type: string - pattern: ^[0-9]+$ + pattern: ^0*(?:[0-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-9][0-9]{3}|[1-9][0-9]{4}|[1-9][0-9]{5}|[1-9][0-9]{6}|[1-9][0-9]{7}|[1-9][0-9]{8}|[1-9][0-9]{9}|[1-9][0-9]{10}|[1-9][0-9]{11}|[1-9][0-9]{12}|[1-9][0-9]{13}|[1-9][0-9]{14}|(?:1[0-9]{15}|[2-8][0-9]{15}|900(?:0[0-9]{12}|[1-6][0-9]{12}|7(?:0[0-9]{11}|1(?:0[0-9]{10}|[1-8][0-9]{10}|9(?:0[0-9]{9}|[1-8][0-9]{9}|9(?:0[0-9]{8}|1[0-9]{8}|2(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-3][0-9]{4}|40(?:0[0-9]{2}|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-1])))))))))))))$ description: Window start as a decimal file byte offset length: anyOf: @@ -44,7 +44,7 @@ commands: minimum: 0 maximum: 9007199254740991 - type: string - pattern: ^[0-9]+$ + pattern: ^0*(?:[0-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-9][0-9]{3}|[1-9][0-9]{4}|[1-9][0-9]{5}|[1-9][0-9]{6}|[1-9][0-9]{7}|[1-9][0-9]{8}|[1-9][0-9]{9}|[1-9][0-9]{10}|[1-9][0-9]{11}|[1-9][0-9]{12}|[1-9][0-9]{13}|[1-9][0-9]{14}|(?:1[0-9]{15}|[2-8][0-9]{15}|900(?:0[0-9]{12}|[1-6][0-9]{12}|7(?:0[0-9]{11}|1(?:0[0-9]{10}|[1-8][0-9]{10}|9(?:0[0-9]{9}|[1-8][0-9]{9}|9(?:0[0-9]{8}|1[0-9]{8}|2(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-3][0-9]{4}|40(?:0[0-9]{2}|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-1])))))))))))))$ description: Window length in bytes; omit to extend through EOF additionalProperties: false globals: diff --git a/tests/fixtures/cli-parity/schema-command-json.txt b/tests/fixtures/cli-parity/schema-command-json.txt index 232421abc3..c76b5e72ff 100644 --- a/tests/fixtures/cli-parity/schema-command-json.txt +++ b/tests/fixtures/cli-parity/schema-command-json.txt @@ -1,7 +1,7 @@ $ rea inspect-byte-entropy --schema --format json exit: 0 --- stdout -{"args":{"type":"object","properties":{"path":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","description":"Local file"}},"required":["path"],"additionalProperties":false},"options":{"type":"object","properties":{"blockSize":{"default":4096,"anyOf":[{"type":"integer","minimum":256,"maximum":65536},{"type":"string","pattern":"^[0-9]+$"}],"description":"Power-of-two block size from 256 to 65536 bytes"},"offset":{"default":0,"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^[0-9]+$"}],"description":"Window start as a decimal file byte offset"},"length":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^[0-9]+$"}],"description":"Window length in bytes; omit to extend through EOF"}},"additionalProperties":false},"globals":{"type":"object","properties":{"timings":{"default":false,"description":"Write measured command timing to stderr.","type":"boolean"}},"required":["timings"],"additionalProperties":false}} +{"args":{"type":"object","properties":{"path":{"type":"string","minLength":1,"pattern":"^[^\\x00]*$","description":"Local file"}},"required":["path"],"additionalProperties":false},"options":{"type":"object","properties":{"blockSize":{"default":4096,"anyOf":[{"type":"integer","minimum":256,"maximum":65536},{"type":"string","pattern":"^0*(?:(?:2(?:5[6-9]|[6-8][0-9]|9[0-9])|[3-8][0-9]{2}|9[0-9]{2})|[1-9][0-9]{3}|(?:1[0-9]{4}|[2-5][0-9]{4}|6(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-4][0-9]{2}|5(?:0[0-9]|[1-2][0-9]|3[0-6])))))$"}],"description":"Power-of-two block size from 256 to 65536 bytes"},"offset":{"default":0,"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^0*(?:[0-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-9][0-9]{3}|[1-9][0-9]{4}|[1-9][0-9]{5}|[1-9][0-9]{6}|[1-9][0-9]{7}|[1-9][0-9]{8}|[1-9][0-9]{9}|[1-9][0-9]{10}|[1-9][0-9]{11}|[1-9][0-9]{12}|[1-9][0-9]{13}|[1-9][0-9]{14}|(?:1[0-9]{15}|[2-8][0-9]{15}|900(?:0[0-9]{12}|[1-6][0-9]{12}|7(?:0[0-9]{11}|1(?:0[0-9]{10}|[1-8][0-9]{10}|9(?:0[0-9]{9}|[1-8][0-9]{9}|9(?:0[0-9]{8}|1[0-9]{8}|2(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-3][0-9]{4}|40(?:0[0-9]{2}|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-1])))))))))))))$"}],"description":"Window start as a decimal file byte offset"},"length":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^0*(?:[0-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-9][0-9]{3}|[1-9][0-9]{4}|[1-9][0-9]{5}|[1-9][0-9]{6}|[1-9][0-9]{7}|[1-9][0-9]{8}|[1-9][0-9]{9}|[1-9][0-9]{10}|[1-9][0-9]{11}|[1-9][0-9]{12}|[1-9][0-9]{13}|[1-9][0-9]{14}|(?:1[0-9]{15}|[2-8][0-9]{15}|900(?:0[0-9]{12}|[1-6][0-9]{12}|7(?:0[0-9]{11}|1(?:0[0-9]{10}|[1-8][0-9]{10}|9(?:0[0-9]{9}|[1-8][0-9]{9}|9(?:0[0-9]{8}|1[0-9]{8}|2(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-3][0-9]{4}|40(?:0[0-9]{2}|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-1])))))))))))))$"}],"description":"Window length in bytes; omit to extend through EOF"}},"additionalProperties":false},"globals":{"type":"object","properties":{"timings":{"default":false,"description":"Write measured command timing to stderr.","type":"boolean"}},"required":["timings"],"additionalProperties":false}} --- stderr diff --git a/tests/fixtures/cli-parity/schema-command-md.txt b/tests/fixtures/cli-parity/schema-command-md.txt index a2adf62080..5513564adb 100644 --- a/tests/fixtures/cli-parity/schema-command-md.txt +++ b/tests/fixtures/cli-parity/schema-command-md.txt @@ -32,10 +32,10 @@ object ## options.properties.blockSize.anyOf -| type | minimum | maximum | pattern | -|---------|---------|---------|------------| -| integer | 256 | 65536 | | -| string | | | ^\[0-9\]+$ | +| type | minimum | maximum | pattern | +|---------|---------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| integer | 256 | 65536 | | +| string | | | ^0\*(?:(?:2(?:5\[6-9\]\|\[6-8\]\[0-9\]\|9\[0-9\])\|\[3-8\]\[0-9\]\{2\}\|9\[0-9\]\{2\})\|\[1-9\]\[0-9\]\{3\}\|(?:1\[0-9\]\{4\}\|\[2-5\]\[0-9\]\{4\}\|6(?:0\[0-9\]\{3\}\|\[1-4\]\[0-9\]\{3\}\|5(?:0\[0-9\]\{2\}\|\[1-4\]\[0-9\]\{2\}\|5(?:0\[0-9\]\|\[1-2\]\[0-9\]\|3\[0-6\])))))$ | ## options.properties.blockSize.description @@ -47,10 +47,10 @@ Power-of-two block size from 256 to 65536 bytes ## options.properties.offset.anyOf -| type | minimum | maximum | pattern | -|---------|---------|------------------|------------| -| integer | 0 | 9007199254740991 | | -| string | | | ^\[0-9\]+$ | +| type | minimum | maximum | pattern | +|---------|---------|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| integer | 0 | 9007199254740991 | | +| string | | | ^0\*(?:\[0-9\]\|\[1-9\]\[0-9\]\|\[1-9\]\[0-9\]\{2\}\|\[1-9\]\[0-9\]\{3\}\|\[1-9\]\[0-9\]\{4\}\|\[1-9\]\[0-9\]\{5\}\|\[1-9\]\[0-9\]\{6\}\|\[1-9\]\[0-9\]\{7\}\|\[1-9\]\[0-9\]\{8\}\|\[1-9\]\[0-9\]\{9\}\|\[1-9\]\[0-9\]\{10\}\|\[1-9\]\[0-9\]\{11\}\|\[1-9\]\[0-9\]\{12\}\|\[1-9\]\[0-9\]\{13\}\|\[1-9\]\[0-9\]\{14\}\|(?:1\[0-9\]\{15\}\|\[2-8\]\[0-9\]\{15\}\|900(?:0\[0-9\]\{12\}\|\[1-6\]\[0-9\]\{12\}\|7(?:0\[0-9\]\{11\}\|1(?:0\[0-9\]\{10\}\|\[1-8\]\[0-9\]\{10\}\|9(?:0\[0-9\]\{9\}\|\[1-8\]\[0-9\]\{9\}\|9(?:0\[0-9\]\{8\}\|1\[0-9\]\{8\}\|2(?:0\[0-9\]\{7\}\|\[1-4\]\[0-9\]\{7\}\|5(?:0\[0-9\]\{6\}\|\[1-3\]\[0-9\]\{6\}\|4(?:0\[0-9\]\{5\}\|\[1-6\]\[0-9\]\{5\}\|7(?:0\[0-9\]\{4\}\|\[1-3\]\[0-9\]\{4\}\|40(?:0\[0-9\]\{2\}\|\[1-8\]\[0-9\]\{2\}\|9(?:0\[0-9\]\|\[1-8\]\[0-9\]\|9\[0-1\])))))))))))))$ | ## options.properties.offset.description @@ -58,10 +58,10 @@ Window start as a decimal file byte offset ## options.properties.length.anyOf -| type | minimum | maximum | pattern | -|---------|---------|------------------|------------| -| integer | 0 | 9007199254740991 | | -| string | | | ^\[0-9\]+$ | +| type | minimum | maximum | pattern | +|---------|---------|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| integer | 0 | 9007199254740991 | | +| string | | | ^0\*(?:\[0-9\]\|\[1-9\]\[0-9\]\|\[1-9\]\[0-9\]\{2\}\|\[1-9\]\[0-9\]\{3\}\|\[1-9\]\[0-9\]\{4\}\|\[1-9\]\[0-9\]\{5\}\|\[1-9\]\[0-9\]\{6\}\|\[1-9\]\[0-9\]\{7\}\|\[1-9\]\[0-9\]\{8\}\|\[1-9\]\[0-9\]\{9\}\|\[1-9\]\[0-9\]\{10\}\|\[1-9\]\[0-9\]\{11\}\|\[1-9\]\[0-9\]\{12\}\|\[1-9\]\[0-9\]\{13\}\|\[1-9\]\[0-9\]\{14\}\|(?:1\[0-9\]\{15\}\|\[2-8\]\[0-9\]\{15\}\|900(?:0\[0-9\]\{12\}\|\[1-6\]\[0-9\]\{12\}\|7(?:0\[0-9\]\{11\}\|1(?:0\[0-9\]\{10\}\|\[1-8\]\[0-9\]\{10\}\|9(?:0\[0-9\]\{9\}\|\[1-8\]\[0-9\]\{9\}\|9(?:0\[0-9\]\{8\}\|1\[0-9\]\{8\}\|2(?:0\[0-9\]\{7\}\|\[1-4\]\[0-9\]\{7\}\|5(?:0\[0-9\]\{6\}\|\[1-3\]\[0-9\]\{6\}\|4(?:0\[0-9\]\{5\}\|\[1-6\]\[0-9\]\{5\}\|7(?:0\[0-9\]\{4\}\|\[1-3\]\[0-9\]\{4\}\|40(?:0\[0-9\]\{2\}\|\[1-8\]\[0-9\]\{2\}\|9(?:0\[0-9\]\|\[1-8\]\[0-9\]\|9\[0-1\])))))))))))))$ | ## options.properties.length.description diff --git a/tests/fixtures/cli-parity/schema-command.txt b/tests/fixtures/cli-parity/schema-command.txt index 14730063c4..05e2903452 100644 --- a/tests/fixtures/cli-parity/schema-command.txt +++ b/tests/fixtures/cli-parity/schema-command.txt @@ -21,7 +21,7 @@ options: minimum: 256 maximum: 65536 - type: string - pattern: "^[0-9]+$" + pattern: "^0*(?:(?:2(?:5[6-9]|[6-8][0-9]|9[0-9])|[3-8][0-9]{2}|9[0-9]{2})|[1-9][0-9]{3}|(?:1[0-9]{4}|[2-5][0-9]{4}|6(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-4][0-9]{2}|5(?:0[0-9]|[1-2][0-9]|3[0-6])))))$" description: Power-of-two block size from 256 to 65536 bytes offset: default: 0 @@ -30,7 +30,7 @@ options: minimum: 0 maximum: 9007199254740991 - type: string - pattern: "^[0-9]+$" + pattern: "^0*(?:[0-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-9][0-9]{3}|[1-9][0-9]{4}|[1-9][0-9]{5}|[1-9][0-9]{6}|[1-9][0-9]{7}|[1-9][0-9]{8}|[1-9][0-9]{9}|[1-9][0-9]{10}|[1-9][0-9]{11}|[1-9][0-9]{12}|[1-9][0-9]{13}|[1-9][0-9]{14}|(?:1[0-9]{15}|[2-8][0-9]{15}|900(?:0[0-9]{12}|[1-6][0-9]{12}|7(?:0[0-9]{11}|1(?:0[0-9]{10}|[1-8][0-9]{10}|9(?:0[0-9]{9}|[1-8][0-9]{9}|9(?:0[0-9]{8}|1[0-9]{8}|2(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-3][0-9]{4}|40(?:0[0-9]{2}|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-1])))))))))))))$" description: Window start as a decimal file byte offset length: anyOf[2]: @@ -38,7 +38,7 @@ options: minimum: 0 maximum: 9007199254740991 - type: string - pattern: "^[0-9]+$" + pattern: "^0*(?:[0-9]|[1-9][0-9]|[1-9][0-9]{2}|[1-9][0-9]{3}|[1-9][0-9]{4}|[1-9][0-9]{5}|[1-9][0-9]{6}|[1-9][0-9]{7}|[1-9][0-9]{8}|[1-9][0-9]{9}|[1-9][0-9]{10}|[1-9][0-9]{11}|[1-9][0-9]{12}|[1-9][0-9]{13}|[1-9][0-9]{14}|(?:1[0-9]{15}|[2-8][0-9]{15}|900(?:0[0-9]{12}|[1-6][0-9]{12}|7(?:0[0-9]{11}|1(?:0[0-9]{10}|[1-8][0-9]{10}|9(?:0[0-9]{9}|[1-8][0-9]{9}|9(?:0[0-9]{8}|1[0-9]{8}|2(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-3][0-9]{4}|40(?:0[0-9]{2}|[1-8][0-9]{2}|9(?:0[0-9]|[1-8][0-9]|9[0-1])))))))))))))$" description: Window length in bytes; omit to extend through EOF additionalProperties: false globals: