daft-physical-ai 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.
Files changed (36) hide show
  1. daft_physical_ai-0.1.0/.github/release-drafter.yml +77 -0
  2. daft_physical_ai-0.1.0/.github/workflows/pr-test-suite.yml +36 -0
  3. daft_physical_ai-0.1.0/.github/workflows/publish-package.yml +37 -0
  4. daft_physical_ai-0.1.0/.github/workflows/release-drafter.yml +36 -0
  5. daft_physical_ai-0.1.0/.gitignore +29 -0
  6. daft_physical_ai-0.1.0/.pre-commit-config.yaml +48 -0
  7. daft_physical_ai-0.1.0/.ruff.toml +61 -0
  8. daft_physical_ai-0.1.0/AGENTS.md +81 -0
  9. daft_physical_ai-0.1.0/CLAUDE.md +1 -0
  10. daft_physical_ai-0.1.0/LICENSE +190 -0
  11. daft_physical_ai-0.1.0/PKG-INFO +190 -0
  12. daft_physical_ai-0.1.0/README.md +135 -0
  13. daft_physical_ai-0.1.0/TESTING.md +93 -0
  14. daft_physical_ai-0.1.0/daft_physical_ai/__init__.py +12 -0
  15. daft_physical_ai-0.1.0/daft_physical_ai/_render.py +577 -0
  16. daft_physical_ai-0.1.0/daft_physical_ai/cli/__init__.py +37 -0
  17. daft_physical_ai-0.1.0/daft_physical_ai/cli/hands.py +209 -0
  18. daft_physical_ai-0.1.0/daft_physical_ai/hands/__init__.py +72 -0
  19. daft_physical_ai-0.1.0/daft_physical_ai/hands/_mediapipe.py +87 -0
  20. daft_physical_ai-0.1.0/daft_physical_ai/hands/_wilor.py +204 -0
  21. daft_physical_ai-0.1.0/daft_physical_ai/hands/schema.py +24 -0
  22. daft_physical_ai-0.1.0/daft_physical_ai/py.typed +0 -0
  23. daft_physical_ai-0.1.0/daft_physical_ai/templates/script_modal.py.tmpl +43 -0
  24. daft_physical_ai-0.1.0/docs/mano.md +31 -0
  25. daft_physical_ai-0.1.0/examples/README.md +32 -0
  26. daft_physical_ai-0.1.0/examples/demo.ipynb +537 -0
  27. daft_physical_ai-0.1.0/examples/demo.md +217 -0
  28. daft_physical_ai-0.1.0/examples/demo.py +180 -0
  29. daft_physical_ai-0.1.0/examples/demo_keypoints.png +0 -0
  30. daft_physical_ai-0.1.0/pyproject.toml +92 -0
  31. daft_physical_ai-0.1.0/scripts/regen_demo.py +182 -0
  32. daft_physical_ai-0.1.0/tests/__init__.py +0 -0
  33. daft_physical_ai-0.1.0/tests/test_cli.py +218 -0
  34. daft_physical_ai-0.1.0/tests/test_hands_mediapipe.py +26 -0
  35. daft_physical_ai-0.1.0/tests/test_hands_wilor.py +54 -0
  36. daft_physical_ai-0.1.0/uv.lock +3407 -0
@@ -0,0 +1,77 @@
1
+ name-template: v$NEXT_PATCH_VERSION
2
+ tag-template: v$NEXT_PATCH_VERSION
3
+
4
+ categories:
5
+ - title: '💥 Breaking Changes'
6
+ labels:
7
+ - 'breaking change'
8
+ - 'breaking'
9
+
10
+ - title: '✨ Features'
11
+ labels:
12
+ - 'feat'
13
+ - 'feature'
14
+ - 'enhancement'
15
+
16
+ - title: '🐛 Bug Fixes'
17
+ labels:
18
+ - 'fix'
19
+ - 'bug'
20
+
21
+ - title: '🚀 Performance'
22
+ labels:
23
+ - 'perf'
24
+ - 'performance'
25
+
26
+ - title: '♻️ Refactor'
27
+ labels:
28
+ - 'refactor'
29
+
30
+ - title: '📖 Documentation'
31
+ labels:
32
+ - 'docs'
33
+ - 'documentation'
34
+
35
+ - title: '✅ Tests'
36
+ labels:
37
+ - 'test'
38
+ - 'testing'
39
+
40
+ - title: '👷 CI'
41
+ labels:
42
+ - 'ci'
43
+
44
+ - title: '🔧 Maintenance'
45
+ labels:
46
+ - 'chore'
47
+
48
+ - title: '⏪ Reverts'
49
+ labels:
50
+ - 'revert'
51
+
52
+ - title: '⬆️ Dependencies'
53
+ collapse-after: 3
54
+ labels:
55
+ - 'dependencies'
56
+ - 'deps'
57
+
58
+ version-resolver:
59
+ major:
60
+ labels:
61
+ - 'breaking'
62
+ minor:
63
+ labels:
64
+ - 'feat'
65
+ - 'feature'
66
+ - 'enhancement'
67
+ default: patch
68
+
69
+ change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
70
+ change-title-escapes: '\<*_&' # Escapes to prevent mentions and markdown formatting
71
+
72
+ template: |
73
+ ## What's Changed 🚀
74
+
75
+ $CHANGES
76
+
77
+ **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$NEXT_PATCH_VERSION
@@ -0,0 +1,36 @@
1
+ name: PR Test Suite
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ style:
11
+ runs-on: ubuntu-latest
12
+ timeout-minutes: 15
13
+ env:
14
+ UV_PYTHON: "3.10"
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v7
18
+ - uses: actions/cache@v4
19
+ with:
20
+ path: ~/.cache/pre-commit
21
+ key: ${{ runner.os }}-python-${{ env.UV_PYTHON }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
22
+ - name: Run style checks
23
+ run: uv run pre-commit run --all-files
24
+
25
+ test:
26
+ runs-on: ubuntu-latest
27
+ strategy:
28
+ matrix:
29
+ python-version: ["3.10", "3.13"]
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - uses: astral-sh/setup-uv@v7
33
+ with:
34
+ python-version: ${{ matrix.python-version }}
35
+ - name: Run tests
36
+ run: uv run pytest tests/ -v
@@ -0,0 +1,37 @@
1
+ name: Publish Package
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+
8
+ workflow_dispatch:
9
+ inputs:
10
+ test-pypi:
11
+ description: Publish to TestPyPI instead of PyPI
12
+ type: boolean
13
+ default: false
14
+
15
+ jobs:
16
+ publish:
17
+ runs-on: ubuntu-latest
18
+ environment: ${{ github.event_name == 'workflow_dispatch' && inputs.test-pypi && 'testpypi' || 'pypi' }}
19
+ permissions:
20
+ id-token: write
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ with:
24
+ fetch-depth: 0
25
+ - uses: astral-sh/setup-uv@v7
26
+ - name: Build wheel and sdist
27
+ run: uv build --sdist --wheel
28
+
29
+ - name: Publish to TestPyPI
30
+ if: github.event_name == 'workflow_dispatch' && inputs.test-pypi
31
+ uses: pypa/gh-action-pypi-publish@release/v1
32
+ with:
33
+ repository-url: https://test.pypi.org/legacy/
34
+
35
+ - name: Publish to PyPI
36
+ if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && !inputs.test-pypi)
37
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,36 @@
1
+ # Adapted from: https://github.com/release-drafter/release-drafter#readme
2
+
3
+ name: Release Drafter
4
+
5
+ on:
6
+ push:
7
+ # branches to consider in the event; optional, defaults to all
8
+ branches:
9
+ - main
10
+ workflow_dispatch:
11
+
12
+
13
+ permissions:
14
+ # write permission is required to create a github release
15
+ contents: write
16
+ # write permission is required for autolabeler (which we don't use here)
17
+ # otherwise, read permission is required at least
18
+ pull-requests: read
19
+
20
+ jobs:
21
+ update_release_draft:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ # (Optional) GitHub Enterprise requires GHE_HOST variable set
25
+ #- name: Set GHE_HOST
26
+ # run: |
27
+ # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
28
+
29
+ # Drafts your next Release notes as Pull Requests are merged into "master"
30
+ - uses: release-drafter/release-drafter@v7
31
+ # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
32
+ # with:
33
+ # config-name: my-config.yml
34
+ # disable-autolabeler: true
35
+ env:
36
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,29 @@
1
+ # Python
2
+ **/__pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ *.so
8
+ *.dylib
9
+ *.pyd
10
+ .python-version
11
+ **/.ipynb_checkpoints/
12
+ .mypy_cache
13
+ .ruff_cache
14
+ .coverage
15
+ .env
16
+ .venv/
17
+
18
+ # IDE
19
+ .idea/
20
+ .vscode/
21
+ *.swp
22
+
23
+ # OS
24
+ .DS_Store
25
+
26
+ # Agent Prompting Templates
27
+ CLAUDE.local.md
28
+ .claude/**/*.md
29
+ .claude/worktrees/
@@ -0,0 +1,48 @@
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ # General file hygiene and linting
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v5.0.0
7
+ hooks:
8
+ - id: trailing-whitespace # Strip trailing whitespace from all files
9
+ - id: end-of-file-fixer # Ensure files end with a newline
10
+ - id: check-yaml # Validate YAML syntax
11
+ - id: check-toml # Validate TOML syntax (pyproject.toml)
12
+ - id: check-added-large-files # Prevent accidental commit of large files
13
+ exclude: uv.lock
14
+ - id: check-merge-conflict # Check for remaining merge conflicts
15
+ - id: detect-private-key # Block commits containing private keys
16
+
17
+ # TOML and YAML formatting
18
+ - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
19
+ rev: v2.15.0
20
+ hooks:
21
+ - id: pretty-format-toml
22
+ args: [--autofix, --no-sort]
23
+ exclude: uv.lock
24
+ - id: pretty-format-yaml
25
+ args: [--autofix, --preserve-quotes]
26
+
27
+ # Python linting and formatting
28
+ - repo: https://github.com/astral-sh/ruff-pre-commit
29
+ rev: v0.15.20
30
+ hooks:
31
+ - id: ruff-check # Lint Python files and auto-fix safe issues
32
+ args: [--fix, --exit-non-zero-on-fix, --show-fixes]
33
+ - id: ruff-format # Format Python files
34
+ name: Python code Formatting
35
+
36
+ # Python type checking
37
+ - repo: https://github.com/pre-commit/mirrors-mypy
38
+ rev: v2.1.0
39
+ hooks:
40
+ - id: mypy # Static type checker for Python
41
+ additional_dependencies: [daft>=0.7.5]
42
+ exclude: ^examples/ # generated demo code (uses the nightly-only lerobot reader)
43
+
44
+ # Check that uv.lock is up to date with pyproject.toml
45
+ - repo: https://github.com/astral-sh/uv-pre-commit
46
+ rev: 0.11.2
47
+ hooks:
48
+ - id: uv-lock
@@ -0,0 +1,61 @@
1
+ fix = true
2
+ indent-width = 4
3
+ line-length = 120
4
+ # examples/ holds CLI-generated demo code - don't impose package conventions
5
+ # (required __future__ import, docstring punctuation, ...) on it.
6
+ extend-exclude = ["examples"]
7
+
8
+ [format]
9
+ docstring-code-format = true
10
+ # Like Black, indent with spaces, rather than tabs.
11
+ indent-style = "space"
12
+ # Like Black, automatically detect the appropriate line ending.
13
+ line-ending = "auto"
14
+ # Like Black, use double quotes for strings.
15
+ quote-style = "double"
16
+ # Like Black, respect magic trailing commas.
17
+ skip-magic-trailing-comma = false
18
+
19
+ [lint]
20
+ extend-select = [
21
+ "UP", # pyupgrade
22
+ "LOG", # flake8-logging
23
+ "G", # flake8-logging-format
24
+ "I", # isort
25
+ "D", # pydocstyle rules
26
+ "RUF010", # Use explicit conversion flag
27
+ "RUF013", # PEP 484 prohibits implicit Optional
28
+ "RUF015", # Prefer next({iterable}) over single element slice
29
+ "RUF017", # Avoid quadratic list summation
30
+ "RUF022", # __all__ is not sorted
31
+ "RUF032", # Decimal() called with float literal argument
32
+ "RUF034", # Useless if-else condition
33
+ "RUF041", # Unnecessary nested Literal
34
+ "RUF100", # unused-noqa
35
+ "T10" # flake8-debugger
36
+ ]
37
+ ignore = [
38
+ "E402", # Module level import not at top of file [TODO(sammy): We want to fix this]
39
+ "D417", # requires documentation for every function parameter.
40
+ "D100", # Missing docstring in public module
41
+ "D101", # Missing docstring in public class
42
+ "D102", # Missing docstring in public method
43
+ "D103", # Missing docstring in public function
44
+ "D104", # Missing docstring in public package
45
+ "D105", # Missing docstring in magic method
46
+ "D106", # Missing docstring in public nested class
47
+ "D107" # Missing docstring in __init__
48
+ ]
49
+ preview = true
50
+
51
+ [lint.isort]
52
+ known-first-party = ["daft_ext_template"]
53
+ known-third-party = ["daft"]
54
+ required-imports = ["from __future__ import annotations"]
55
+
56
+ [lint.per-file-ignores]
57
+ # Do not enforce usage and import order rules in init files
58
+ "__init__.py" = ["E402", "F401", "I"]
59
+
60
+ [lint.pydocstyle]
61
+ convention = "google"
@@ -0,0 +1,81 @@
1
+ # Resources
2
+
3
+ - https://docs.daft.ai for the user-facing API docs for Daft
4
+ - https://docs.daft.ai/en/stable/extensions/authoring/ for writing Daft extensions
5
+ - - https://docs.daft.ai/en/stable/api/udf/ for `@daft.func`, `@daft.cls`, and `@daft.udaf`
6
+
7
+
8
+ # Dev Workflow
9
+
10
+ 1. Set up Python environment, install dependencies, and build dev package: `uv sync`
11
+ 2. Activate .venv: `source .venv/bin/activate`
12
+ 3. Run tests: `uv run pytest tests/ -v`
13
+ 4. The LeRobot reader (`daft.datasets.lerobot`, with the batched video decode
14
+ from [Daft #7184](https://github.com/Eventual-Inc/Daft/pull/7184)) is not in
15
+ a stable Daft release yet (latest is v0.7.17), so `uv sync` resolves daft
16
+ from the nightly index (`daft-nightly` in `pyproject.toml`) - no manual
17
+ install step needed.
18
+
19
+ # Roadmap
20
+
21
+ Working implementations to port from: multibase `src/post7_hand_tracking/egodex_daft/`
22
+ (`mediapipe_egodex_daft.py`, `wilor_egodex_daft.py`), already on the native
23
+ `daft.datasets.lerobot` reader.
24
+
25
+ ## Now
26
+
27
+ - [ ] **Implement `hands/` - MediaPipe first** (easiest: CPU, permissive license,
28
+ no weights to supply). `_mediapipe.py` `@daft.cls` + the `track_hands(method="mediapipe")`
29
+ facade, returning the shared output schema.
30
+ - [ ] **Implement WiLoR** (`method="wilor"`): GPU, 3D MANO keypoints, user-supplied
31
+ `mano_path`. Port the `@daft.cls` from multibase.
32
+ - [ ] **Test both thoroughly and document how** (a `TESTING.md`): capture the
33
+ commands + observed hand counts. MediaPipe locally on CPU; WiLoR on Modal (see
34
+ Testing & GPU below).
35
+ - [ ] **Add tests + align with the template**: real `tests/` (replace the
36
+ placeholder `greet`), confirm `track_hands` returns a Daft expression, lock the
37
+ output schema.
38
+ - [ ] **CLI + demo**: the `daft-physical-ai` console script + demo notebook/script.
39
+
40
+ ## Later
41
+
42
+ - [ ] **Publish to PyPI.** Tag a release (`v0.1.0`) to trigger
43
+ `.github/workflows/publish-package.yml` (trusted publishing). This also unblocks
44
+ generated Modal demos, which `pip install daft-physical-ai`.
45
+ - [ ] Switch off the Daft nightly once the LeRobot reader (with
46
+ [Daft #7184](https://github.com/Eventual-Inc/Daft/pull/7184)'s batched decode)
47
+ ships in a release (> v0.7.17): bump the `daft` floor in `pyproject.toml`,
48
+ drop the `daft-nightly` index and `tool.uv.sources` pin, and re-run `uv lock`.
49
+
50
+ # Regenerating the examples demo
51
+
52
+ `examples/{demo.py,demo.ipynb,demo.md,demo_keypoints.png}` are **generated** -
53
+ don't hand-edit them. They all render from one shared cell list in
54
+ `daft_physical_ai/_render.py`, so editing the source keeps the three formats in
55
+ sync. To rebuild them:
56
+
57
+ ```bash
58
+ python scripts/regen_demo.py # render -> execute the notebook -> derive md + image
59
+ ```
60
+
61
+ The script renders the notebook (empty), executes it headless
62
+ (`nbconvert --execute`, `DAFT_PROGRESS_BAR=0`), then derives everything else from
63
+ that one executed copy: the figure is written to `demo_keypoints.png`, printed
64
+ output is fenced, and the `.show()` HTML table becomes a markdown table. The
65
+ executing step needs the full inference env (a Daft with the LeRobot reader +
66
+ mediapipe + scipy + opencv + matplotlib + nbconvert; see the nightly-Daft note
67
+ above). `--skip-exec --source <nb>` reuses an already-executed notebook to rebuild
68
+ just the markdown/image (no inference env needed) - handy for tweaking the
69
+ conversion.
70
+
71
+ # Testing & GPU
72
+
73
+ - **MediaPipe runs on CPU** - testable locally and in CI.
74
+ - **WiLoR requires CUDA.** There is no local NVIDIA GPU (dev box is Apple Silicon /
75
+ Metal only), so test WiLoR on **Modal**. CI can't run it - mark WiLoR tests as
76
+ integration / Modal-gated, not part of the default CPU test run.
77
+
78
+ # PR Conventions
79
+
80
+ - Titles: Conventional Commits format; enforced by `.github/workflows/pr-labeller.yml`.
81
+ - Descriptions: follow `.github/pull_request_template.md`.
@@ -0,0 +1 @@
1
+ AGENTS.md
@@ -0,0 +1,190 @@
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 the 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 the 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 any 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 reasonable and customary use in describing the
141
+ origin of the Work and 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
+ Copyright 2026 Garrett Weaver
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.