headson 0.5.0__cp310-abi3-win_amd64.whl → 0.5.2__cp310-abi3-win_amd64.whl

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.

Potentially problematic release.


This version of headson might be problematic. Click here for more details.

headson/headson.pyd CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: headson
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Classifier: Programming Language :: Python
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Rust
@@ -167,48 +167,14 @@ print(
167
167
 
168
168
  # Algorithm
169
169
 
170
- ```mermaid
171
- %%{init: {"themeCSS": ".cluster > rect { fill: transparent; stroke: transparent; } .clusterLabel > text { font-size: 16px; font-weight: 600; } .clusterLabel span { padding: 6px 10px; font-size: 16px; font-weight: 600; }"}}%%
172
- flowchart TD
173
- subgraph Deserialization
174
- direction TB
175
- A["Input file(s)"]
176
- A -- Single --> C["Parse into optimized tree (with array pre‑sampling) ¹"]
177
- A -- Multiple --> D["Parse each file and wrap into a fileset object"]
178
- D --> C
179
- end
180
- subgraph Prioritization
181
- direction TB
182
- E["Build priority order ²"]
183
- F["Choose top N nodes ³"]
184
- end
185
- subgraph Serialization
186
- direction TB
187
- G["Render attempt ⁴"]
188
- H["Output preview string"]
189
- end
190
- C --> E
191
- E --> F
192
- F --> G
193
- G --> F
194
- F --> H
195
- %% Color classes for categories
196
- classDef des fill:#eaf2ff,stroke:#3b82f6,stroke-width:1px,color:#0f172a;
197
- classDef prio fill:#ecfdf5,stroke:#10b981,stroke-width:1px,color:#064e3b;
198
- classDef ser fill:#fff1f2,stroke:#f43f5e,stroke-width:1px,color:#7f1d1d;
199
- class A,C,D des;
200
- class E,F prio;
201
- class G,H ser;
202
- style Deserialization fill:transparent,stroke:transparent
203
- style Prioritization fill:transparent,stroke:transparent
204
- style Serialization fill:transparent,stroke:transparent
205
- ```
170
+ ![Algorithm overview](docs/assets/algorithm.svg)
206
171
 
207
172
  ## Footnotes
208
173
  - <sup><b>[1]</b></sup> <b>Optimized tree representation</b>: An arena‑style tree stored in flat, contiguous buffers. Each node records its kind and value plus index ranges into shared child and key arrays. Arrays are ingested in a single pass and may be deterministically pre‑sampled: the first element is always kept; additional elements are selected via a fixed per‑index inclusion test; for kept elements, original indices are stored and full lengths are counted. This enables accurate omission info and internal gap markers later, while minimizing pointer chasing.
209
174
  - <sup><b>[2]</b></sup> <b>Priority order</b>: Nodes are scored so previews surface representative structure and values first. Arrays can favor head/mid/tail coverage (default) or strictly the head; tail preference flips head/tail when configured. Object properties are ordered by key, and strings expand by grapheme with early characters prioritized over very deep expansions.
210
175
  - <sup><b>[3]</b></sup> <b>Choose top N nodes (binary search)</b>: Iteratively picks N so that the rendered preview fits within the character budget, looping between “choose N” and a render attempt to converge quickly.
211
176
  - <sup><b>[4]</b></sup> <b>Render attempt</b>: Serializes the currently included nodes using the selected template. Omission summaries and per-file section headers appear in display templates (pseudo/js); json remains strict. For arrays, display templates may insert internal gap markers between non‑contiguous kept items using original indices.
177
+ - <sup><b>[5]</b></sup> <b>Diagram source</b>: The Algorithm diagram is generated from `docs/diagrams/algorithm.mmd`. Regenerate the SVG with `cargo make diagrams` before releasing.
212
178
 
213
179
  ## License
214
180
 
@@ -0,0 +1,6 @@
1
+ headson-0.5.2.dist-info/METADATA,sha256=dfKZOlLECoPwQIhJl5AGd8u9EgHTDaqyYS8kYPz0Kyo,8428
2
+ headson-0.5.2.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
3
+ headson-0.5.2.dist-info/licenses/LICENSE,sha256=85XxIce4vPe2JysuORWOYpzGI-ypir_79W6aOF8y534,1093
4
+ headson/__init__.py,sha256=8DXFB8ahlywyQXJsscl3w_wgbcQi7sj7zEuV28wR60E,187
5
+ headson/headson.pyd,sha256=eCoqQ6rBcPSa09qmupRyGhoiJI6V9niZLTPK5XREaf4,460288
6
+ headson-0.5.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- headson-0.5.0.dist-info/METADATA,sha256=z5RvPu6f8m2m4QF1L093FPL_rQQdvAfmw-8KABlgNOg,9571
2
- headson-0.5.0.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
3
- headson-0.5.0.dist-info/licenses/LICENSE,sha256=85XxIce4vPe2JysuORWOYpzGI-ypir_79W6aOF8y534,1093
4
- headson/__init__.py,sha256=8DXFB8ahlywyQXJsscl3w_wgbcQi7sj7zEuV28wR60E,187
5
- headson/headson.pyd,sha256=FrwkuC0dvcYzDSZxY_huBm6xBmdKTt8To1y5RFONKsc,460288
6
- headson-0.5.0.dist-info/RECORD,,