kaos-pdf 0.1.0__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.
@@ -0,0 +1,13 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.pyo
4
+ .venv/
5
+ .pytest_cache/
6
+ .ruff_cache/
7
+ .mypy_cache/
8
+ .coverage
9
+ *.egg-info/
10
+ dist/
11
+ build/
12
+ htmlcov/
13
+ coverage.xml
@@ -0,0 +1,294 @@
1
+ # Changelog
2
+
3
+ All notable changes to `kaos-pdf` are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+
11
+ ## [0.1.0] — 2026-05-20
12
+
13
+ ### Released
14
+
15
+ - 0.1.0 GA — WU-L of GA plan. First stable release. Public API frozen.
16
+ - Pin floor raised to `>=0.1.0,<0.2` across all kaos-* runtime and
17
+ optional dependencies. Refreshed `uv.lock` to pick up the 0.1.0
18
+ line of every upstream.
19
+
20
+ ### Internal
21
+
22
+ - WU-L of the 0.1.0 GA plan
23
+ (`kaos-modules/docs/plans/2026-05-20-0.1.0-ga-plan.md`).
24
+
25
+
26
+ ## [0.1.0rc1] — 2026-05-20
27
+
28
+ ### Changed
29
+
30
+ - Pin floor raised to `>=0.1.0rc1,<0.2` across kaos-* runtime and
31
+ optional dependencies (`kaos-core`,
32
+ `kaos-content[images,layout,markdown]`, `kaos-nlp-core`).
33
+ Refreshed `uv.lock` to pick up the rc1 line of every upstream.
34
+
35
+ ### Internal
36
+
37
+ - WU-J of the 0.1.0 GA plan
38
+ (`kaos-modules/docs/plans/2026-05-20-0.1.0-ga-plan.md`).
39
+ Release candidate; freezes the public API for `kaos-pdf`
40
+ ahead of 0.1.0 GA.
41
+
42
+
43
+ ## [0.1.0a8] — 2026-05-20
44
+
45
+ ### Changed
46
+
47
+ - **kaos-core floor raised to `>=0.1.0a12`** (post-URI-redesign +
48
+ Capability type). WU-F.4 of the 0.1.0 GA plan; catch-up to
49
+ kaos-core 0.1.0a12. No public API changes in kaos-pdf.
50
+ - Refresh `uv.lock`: kaos-core 0.1.0a10 -> 0.1.0a12, kaos-content
51
+ 0.1.0a11 -> 0.1.0a12, kaos-nlp-core 0.1.0a2 -> 0.1.0a8, ruff
52
+ 0.15.12 -> 0.15.13, ty 0.0.34 -> 0.0.36.
53
+
54
+ ## [0.1.0a7] — 2026-05-18
55
+
56
+ ### Added
57
+
58
+ - **`kaos-pdf-search-document` result dicts** now include
59
+ `path: list[str]` per hit — the structural breadcrumb
60
+ (root-first, INCLUDING the immediate section). For PDFs with an
61
+ embedded outline the path carries the chain of enclosing heading
62
+ texts; for outline-less PDFs (the common case) the path is empty,
63
+ which is the explicit "no structural identifier available"
64
+ contract. Downstream agents MUST NOT invent section identifiers
65
+ for hits with empty `path`. See
66
+ `kaos-modules/docs/plans/persona-matrix-followups.md` §4.
67
+
68
+ ### Changed
69
+
70
+ - **kaos-content floor raised to `>=0.1.0a11`** to pick up the
71
+ structural-breadcrumb contract on `SearchResult.path` and
72
+ `DocumentView.block_path()`. Pass-through for kaos-pdf internals
73
+ (the search tool just forwards `r.path` through to its result
74
+ dict).
75
+
76
+ ## [0.1.0a6] — 2026-05-17
77
+
78
+ ### Changed
79
+
80
+ - **kaos-core floor raised to `>=0.1.0a10`** to pick up the URI
81
+ contract redesign (bare names route through
82
+ `context.default_vfs_namespace`; `file://` and `vfs://` schemes).
83
+ See `kaos-modules/docs/plans/uri-contract-redesign.md`. The 6
84
+ file-input PDF tools route through `resolve_input_path` as
85
+ pass-throughs.
86
+
87
+ ## [0.1.0a5] — 2026-05-17
88
+
89
+ ### Changed
90
+
91
+ - **All six file-input MCP tools now resolve their `path` argument
92
+ through `kaos_core.path_resolver.resolve_input_path()`** instead of
93
+ raw `Path(p).exists()` against the process CWD. The affected tools
94
+ are `kaos-pdf-extract-parse`, `kaos-pdf-extract-page-text`,
95
+ `kaos-pdf-render-page`, `kaos-pdf-metadata`, `kaos-pdf-get-outline`,
96
+ and `kaos-pdf-classify-page`. Each tool's `path` parameter now
97
+ accepts three input shapes — an absolute filesystem path
98
+ (unchanged), a `kaos://artifacts/<id>` URI returned by a previous
99
+ extract/materialise tool in the same session, or a relative path
100
+ that resolves through the session VFS (e.g. files uploaded through
101
+ a host UI's chat panel). The new
102
+ `kaos_pdf._path_resolver.resolve_pdf_input()` async context manager
103
+ centralises the call and constrains accepted mime types to
104
+ `application/pdf`. Existing absolute-path callers — every CLI
105
+ invocation, every fixture-based test — continue to work as a
106
+ passthrough; only the previously-broken VFS / artifact paths are
107
+ affected. `kaos-pdf-search-document` was already artifact-first via
108
+ `artifact_id` and is unchanged. (Stage 2 of
109
+ `kaos-modules/docs/plans/vfs-blind-tools-audit-and-fix-plan.md`,
110
+ filed after the production incident in single-user-chat session
111
+ `01KRVYAEA3B1HG95DBAG6H0DJ3` where five uploaded NDA `.docx` files
112
+ routed through the SPA returned `File not found` from every tool
113
+ call and the agent then fabricated a legal-analysis table citing
114
+ those files — the same failure class affected kaos-pdf for any
115
+ PDF uploaded into the session VFS.)
116
+
117
+ ### Added
118
+
119
+ - `kaos_pdf._path_resolver.resolve_pdf_input()` — internal async
120
+ context manager wrapping `kaos_core.path_resolver.resolve_input_path`
121
+ with the PDF mime allow-list and a stub `KaosContext` for CLI
122
+ callers. Tools call it instead of `Path(...).exists()`.
123
+ - `ParsePDFTool` now threads the source-artifact id (when the input
124
+ was a `kaos://artifacts/<id>` URI) into both the parsed-document
125
+ manifest's metadata (`source_artifact_id` / `source_body_uri`) and
126
+ the response `structured_content` so downstream tools can trace the
127
+ parsed `ContentDocument` back to its source PDF artifact without
128
+ having to re-resolve the original chat scrollback.
129
+ - Every refactored tool's `path` parameter schema now describes the
130
+ three accepted input shapes (absolute path, `kaos://artifacts/<id>`,
131
+ session-VFS relative path) so an LLM inspecting the schema can
132
+ discover that bare artifact URIs are accepted without reading the
133
+ source.
134
+
135
+ ### Dependencies
136
+
137
+ - Bumped `kaos-core` requirement from `>=0.1.0a3,<0.2` to
138
+ `>=0.1.0a9,<0.2` to pick up `kaos_core.path_resolver`.
139
+
140
+ ## [0.1.0a4] — 2026-05-15
141
+
142
+ ### Added — tool-group registration entry points (PRD PR 1)
143
+
144
+ - **`register_pdf_documents_tools(runtime)`** — registers the 7
145
+ read-only PDF tools (parsers, extractors, renderers, metadata
146
+ inspectors, outline + classification). This is the entry point a
147
+ consumer of the SessionToolSet `documents` group should call.
148
+ - **`register_pdf_authoring_tools(runtime)`** — public surface for
149
+ future `kaos-pdf-write-*` writers, mutators, redactors. Currently
150
+ registers 0 tools; the stable function exists so the
151
+ SessionToolSet `authoring` group has a registration entry point
152
+ before writers ship.
153
+ - **`register_pdf_tools(runtime)`** is now a backward-compatible
154
+ union of the two — callers that previously got 7 tools continue
155
+ to get 7. The wrapper composes the new entry points so a future
156
+ authoring writer registered into one half flows automatically
157
+ into the union.
158
+
159
+ The split is motivated by
160
+ `kaos-modules/docs/internal/dynamic-tool-planning-prd.md` §4
161
+ ("PR 1 — catalog expansion"). It is purely additive: no existing
162
+ function signature, tool name, schema, or behavior changes.
163
+
164
+ ## [0.1.0a3] — 2026-05-15
165
+
166
+ ### Fixed
167
+
168
+ - **`kaos-pdf-extract-parse`'s `pages` parameter now declares its
169
+ element type.** Previously the schema was `type=array` with no
170
+ `items` declaration, which OpenAI's strict JSON Schema validator
171
+ rejected with HTTP 400 `invalid_function_parameters`. The entire
172
+ tool catalog for the turn was lost, leaving the agent to
173
+ hallucinate answers. Now `items: {type: "integer", minimum: 0}` so
174
+ the LLM gets a precise contract (0-based page indices, no
175
+ negative values). kaos-core 0.1.0a7's defensive `items: {}` floor
176
+ is also in play as belt + suspenders.
177
+
178
+ ### Security
179
+
180
+ - **vulture (dead-code scan) now runs in pre-commit + CI alongside
181
+ the existing bandit job.** New `vulture` hook in
182
+ ``.pre-commit-config.yaml`` mirrored by a new ``vulture (dead-code
183
+ scan)`` job in ``security.yml``. `--min-confidence 100` with the
184
+ shared `--ignore-names` list for names vulture can't infer from
185
+ the import graph (framework callbacks, OAuth/OIDC field names,
186
+ signal handlers, MCP `_meta` keys). Also lands the existing
187
+ bandit hook in pre-commit (it was only in CI before). Both pass
188
+ clean. Mirrors the rollout from kaos-core.
189
+ ### Changed
190
+
191
+ - **uv.lock is now tracked in git.** Previously gitignored at v0.1.0a1
192
+ because the ``[mcp]`` optional extra (and the ``kaos-mcp`` dev
193
+ dependency) referenced a sibling not yet on PyPI; ``uv lock``
194
+ couldn't resolve them. ``kaos-mcp`` shipped (0.1.0a2), so the
195
+ original gating reason no longer applies. Tracking the lockfile
196
+ gives reproducible local dev environments, lets Dependabot surface
197
+ sibling-version bumps as PRs, and makes the supply-chain pin set
198
+ publicly auditable. Mirrors the org-wide convention being adopted
199
+ across all 16 kaos-* repos.
200
+
201
+ ## [0.1.0a2] — 2026-05-08
202
+
203
+ CI supply-chain hardening (audit-02 F7) and documentation accuracy
204
+ (audit-02 F8). No source code or public API changes.
205
+
206
+ ### Security
207
+
208
+ - **F7: CI supply-chain hardening.** `.github/workflows/security.yml`
209
+ pins the gitleaks Docker image to `v8.21.2` (no longer tracking
210
+ `:latest`), adds a Bandit static-analysis job (medium severity /
211
+ medium confidence, AST-level — `B101,B404,B603,B607` skipped because
212
+ pytest assertions, subprocess use, and known-safe partial-path
213
+ invocations are intentional), and runs the integration suite on
214
+ `schedule` and `workflow_dispatch` so cross-package regressions
215
+ surface against `main` even though the unit gate stays the PR fast
216
+ path. SHA-pinning of GitHub Actions themselves remains a follow-up;
217
+ the existing `.github/dependabot.yml` `github-actions` ecosystem PRs
218
+ continue to keep tag-pinned actions current.
219
+
220
+ ### Changed
221
+
222
+ - **F8: `SECURITY.md` rewritten to match the actual surface.** The
223
+ previous file was the cross-package template — it referenced
224
+ `ProgramOfThought`, `batch_run`, the semantic cache, and Program v3
225
+ envelope JSON, all of which live in `kaos-llm-core` / `kaos-agents`,
226
+ not `kaos-pdf`. The new file documents the real boundaries: PDF
227
+ input handling (malformed / encrypted / oversize / metadata),
228
+ Tool-layer validation, the global PDFium lock, OCR / table-extraction
229
+ subprocess wrappers, and the OIDC release pipeline. Out-of-scope
230
+ items now correctly list third-party dependencies (`pypdfium2`,
231
+ `pillow`, `pytesseract`, `camelot-py`, `tabula-py`) and the bundled
232
+ PDFium binary.
233
+
234
+ ## [0.1.0a1] — 2026-05-07
235
+
236
+ First public alpha. Apache-2.0. Earlier internal versions were proprietary.
237
+
238
+ ### Added
239
+
240
+ - **PDF extraction pipeline** built on `pypdfium2` (Apache-2.0): produces
241
+ a `kaos-content` `ContentDocument` AST with provenance (source URI,
242
+ 1-based page, bounding box, extractor name, confidence) on every node.
243
+ PDFium calls are serialised through a global lock so the library is
244
+ safe under threaded executors. See `docs/THREAD_SAFETY.md`.
245
+ - **Public Python API** — `extract_pdf`, `extract_pdf_bytes`,
246
+ `extract_pdf_with_tables`, `extract_page_text`, `render_page`,
247
+ `get_page_count`, `get_pdf_metadata`, `get_pdf_outline`,
248
+ `classify_document`, `classify_page`, plus the re-exported
249
+ `search_document` / `SearchResult` / `SearchResults` from
250
+ `kaos-content`. `kaos_pdf.__all__` enumerates the surface.
251
+ - **Typed result models** — `PdfMetadata` and `PdfOutlineEntry`
252
+ `@dataclass(frozen=True, slots=True)` types. Sparse `to_dict()`
253
+ (None fields omitted) preserves the wire format for JSON consumers.
254
+ `page_count` is carried directly on `PdfMetadata`.
255
+ - **Seven MCP tools** registered via `register_pdf_tools(runtime)`
256
+ (requires `kaos-mcp` from source until that package ships on PyPI):
257
+ `kaos-pdf-extract-parse`, `kaos-pdf-extract-page-text`,
258
+ `kaos-pdf-render-page`, `kaos-pdf-metadata`,
259
+ `kaos-pdf-search-document`, `kaos-pdf-get-outline`,
260
+ `kaos-pdf-classify-page`. All seven are read-only / idempotent /
261
+ non-destructive / non-open-world. Every `ToolResult.create_error()`
262
+ call site returns a three-part recovery hint (what / how to fix /
263
+ alternative tool) for LLM self-correction.
264
+ - **Optional extras**:
265
+ - `[ocr]` — `pytesseract` engine for scanned PDFs (requires the
266
+ system `tesseract` binary). `OCRMode` is the `extract_pdf(ocr=...)`
267
+ setting; `OCREngine` is the engine ABC; `TesseractEngine` is the
268
+ Apache-2.0 default. OCR paragraphs carry `Provenance.confidence`.
269
+ - `[tables]` — `pdfplumber` engine (MIT, pure Python — no Java, no
270
+ GPU) for borderless and multi-line tables. Extracted tables become
271
+ `TabularDocument` with typed columns; live in the body with
272
+ `Provenance.extractor = "kaos-pdf/tables/{engine}"`.
273
+ - `[nlp]` — `kaos-nlp-core` for BM25 sentence-level search via
274
+ `search_document(..., level="sentence")`.
275
+ - **Two CLI entry points** — `kaos-pdf` (admin) and `kaos-pdf-serve`
276
+ (MCP server, stdio + streamable HTTP). Every structured subcommand
277
+ supports `--json` for machine-readable output. CLI uses 1-based page
278
+ numbers; the Python API is 0-based.
279
+ - **Errors** — `KaosPdfError` base + `PdfNotFoundError`,
280
+ `PdfExtractionError`, `PdfRenderError`. Tools translate these into
281
+ `ToolResult.create_error()`.
282
+
283
+ ### Notes
284
+
285
+ - VLM page programs (describe / classify / VLM-OCR) live in
286
+ `kaos-llm-core[vision]` ≥ 0.1.0a3, not in `kaos-pdf`. The split
287
+ keeps the extraction → LLM dependency direction one-directional.
288
+ - `kaos-pdf` does not and will not depend on AGPL or GPL libraries.
289
+ This rules out Surya for OCR and camelot-lattice / Tabula for
290
+ tables.
291
+ - The `[mcp]` extra is intentionally not declared at 0.1.0a1 because
292
+ `kaos-mcp` is not yet on PyPI; `uv lock` refuses to resolve any
293
+ declared extra whose package is unresolvable. The extra returns
294
+ once `kaos-mcp` ships.
kaos_pdf-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 273 Ventures LLC
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
kaos_pdf-0.1.0/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ kaos-pdf
2
+ Copyright 2026 273 Ventures LLC.
3
+
4
+ This product includes software developed at 273 Ventures LLC
5
+ (https://273ventures.com).
6
+
7
+ Licensed under the Apache License, Version 2.0. See the LICENSE file
8
+ distributed with this software for the full text of the license.