anhedral 0.1.10 → 0.4.0

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 (87) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/CONTRIBUTING.md +73 -0
  3. package/LICENSE +196 -17
  4. package/README.md +202 -145
  5. package/SECURITY.md +37 -0
  6. package/SKILL.md +244 -0
  7. package/bin/anhedral.js +1 -1
  8. package/dist/architecture/contributions.d.ts +28 -0
  9. package/dist/architecture/contributions.js +125 -0
  10. package/dist/architecture/index.d.ts +12 -0
  11. package/dist/architecture/index.js +6 -0
  12. package/dist/architecture/manifest.d.ts +53 -0
  13. package/dist/architecture/manifest.js +283 -0
  14. package/dist/architecture/modules.d.ts +37 -0
  15. package/dist/architecture/modules.js +184 -0
  16. package/dist/architecture/plan.d.ts +58 -0
  17. package/dist/architecture/plan.js +145 -0
  18. package/dist/architecture/templates.d.ts +10 -0
  19. package/dist/architecture/templates.js +23 -0
  20. package/dist/bin.d.ts +2 -0
  21. package/dist/bin.js +179 -0
  22. package/dist/cli.d.ts +24 -2
  23. package/dist/cli.js +189 -21
  24. package/dist/composers/root.d.ts +6 -0
  25. package/dist/composers/root.js +35 -0
  26. package/dist/dependencies.d.ts +31 -9
  27. package/dist/dependencies.js +227 -60
  28. package/dist/index.d.ts +8 -2
  29. package/dist/index.js +5 -31
  30. package/dist/print.js +15 -0
  31. package/dist/prompts.d.ts +5 -0
  32. package/dist/prompts.js +19 -0
  33. package/dist/render.d.ts +11 -0
  34. package/dist/render.js +74 -0
  35. package/dist/scaffold.d.ts +64 -12
  36. package/dist/scaffold.js +1726 -1150
  37. package/dist/template-source.d.ts +20 -0
  38. package/dist/template-source.js +180 -0
  39. package/dist/templates/api.d.ts +2 -0
  40. package/dist/templates/api.js +3122 -0
  41. package/dist/templates/assets-private-proxy.d.ts +3 -0
  42. package/dist/templates/assets-private-proxy.js +277 -0
  43. package/dist/templates/desktop.d.ts +2 -0
  44. package/dist/templates/desktop.js +639 -0
  45. package/dist/templates/electron-updater.d.ts +3 -0
  46. package/dist/templates/electron-updater.js +358 -0
  47. package/dist/templates/extension.d.ts +1 -1
  48. package/dist/templates/extension.js +322 -248
  49. package/dist/templates/mobile.d.ts +2 -0
  50. package/dist/templates/mobile.js +720 -0
  51. package/dist/templates/shared.d.ts +2 -0
  52. package/dist/templates/shared.js +520 -0
  53. package/dist/templates/web.d.ts +2 -0
  54. package/dist/templates/web.js +412 -0
  55. package/dist/toolchain.d.ts +0 -8
  56. package/dist/toolchain.js +0 -21
  57. package/dist/transaction.d.ts +22 -0
  58. package/dist/transaction.js +822 -0
  59. package/dist/ui.d.ts +33 -0
  60. package/dist/ui.js +199 -0
  61. package/dist/util.d.ts +1 -5
  62. package/dist/util.js +70 -159
  63. package/dist/version.d.ts +2 -0
  64. package/dist/version.js +2 -0
  65. package/dist/workspace-config.d.ts +11 -0
  66. package/dist/workspace-config.js +372 -0
  67. package/docs/conventions.md +92 -0
  68. package/docs/master-stack-map.md +192 -0
  69. package/docs/output-tree-contract.md +482 -0
  70. package/docs/references/manual-scaffolding.md +403 -0
  71. package/docs/references/provisioning.md +220 -0
  72. package/package.json +57 -13
  73. package/templates/api-fastify/apps/api/tsconfig.json +20 -0
  74. package/templates/catalog.json +23 -0
  75. package/templates/db-drizzle/packages/db/tsconfig.json +14 -0
  76. package/templates/desktop-electron/apps/desktop/tsconfig.json +37 -0
  77. package/templates/extension-wxt/apps/extension/tsconfig.json +41 -0
  78. package/templates/mobile-expo/apps/mobile/expo-env.d.ts +1 -0
  79. package/templates/web-next/apps/web/next-env.d.ts +6 -0
  80. package/dist/branding.d.ts +0 -5
  81. package/dist/branding.js +0 -17
  82. package/dist/commands.d.ts +0 -7
  83. package/dist/commands.js +0 -24
  84. package/dist/templates/backend.d.ts +0 -2
  85. package/dist/templates/backend.js +0 -2115
  86. package/dist/templates/frontend.d.ts +0 -2
  87. package/dist/templates/frontend.js +0 -1268
package/CHANGELOG.md ADDED
@@ -0,0 +1,119 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## Unreleased
8
+
9
+ ## 0.4.0 - 2026-07-22
10
+
11
+ ### Added
12
+
13
+ - Add the `electron-updater` feature module, including packaged-app update checks, private R2 storage, a read-only bound Cloudflare Worker on a custom domain, ordered architecture-specific publishing commands, and a complete generated release runbook.
14
+ - Make the `anhedral-init` coding-agent skill the recommended setup path, with project/domain intake, Computer Use and subagent orchestration, provider provisioning order, authentication and secret-generation stops, and verified Cloudflare/Vercel domain handoffs.
15
+ - Add the canonical fixed-width master stack map to the published documentation and route the coding-agent skill through it for whole-platform planning and explanation.
16
+ - Add a transactional project-upgrade path so compatible 0.3 projects can adopt 0.4 without regeneration.
17
+ - Add a focused default development loop for the primary web and API surfaces, with `dev:all` available for intentionally launching every selected client.
18
+
19
+ ### Changed
20
+
21
+ - Make generated onboarding follow the real environment, managed-Neon, verification, and framework source layout instead of promising an unconfigured one-command boot.
22
+ - Treat developer extension points as user-owned source while retaining conflict protection for generated wiring and mergeable workspace configuration.
23
+ - Publish the skill's provisioning references from their canonical `docs/references` location and validate every packed local documentation link.
24
+ - Upgrade GitHub artifact transfer actions to their Node.js 24-native releases and keep manual npm publication routed through the trusted-publisher workflow identity.
25
+
26
+ ### Fixed
27
+
28
+ - Canonicalize module ordering when an incremental feature contributes a previously absent dependency.
29
+ - Attach release integrity metadata beside the npm tarball in GitHub Releases.
30
+
31
+ ## 0.3.0 - 2026-07-21
32
+
33
+ ### Added
34
+
35
+ - Add a unified `anhedral ui add` workflow that routes DOM clients to shadcn/ui and Expo clients to React Native Reusables.
36
+ - Add interactive starter-component selection after app surfaces and feature sets, with NativeWind or Uniwind selection for Expo.
37
+ - Add React Native Reusables-ready Expo configuration, theme CSS, aliases, utilities, Metro integration, and portal hosting.
38
+ - Add manifest schema v5 UI configuration and per-client component installation records.
39
+ - Add staged provider execution, dry-run plans, duplicate-install detection, target validation, and provider routing tests.
40
+ - Add `anhedral new <directory>` as the primary complete-stack creation flow while retaining `init` for an empty current directory.
41
+ - Generate selection-aware `README.md`, `docs/DEVELOPMENT.md`, `docs/STACK.md`, and `SKILL.md` guidance that maps product tasks to ordinary framework source.
42
+ - Publish the repository skill, manual scaffolding reference, conventions, and output-tree contract with the npm package.
43
+
44
+ ### Changed
45
+
46
+ - Pin the component installer to shadcn 4.13.0 and run all provider mutations inside Anhedral transaction staging.
47
+ - Preserve Anhedral's exact Expo SDK dependency while resolving React Native Reusables registry dependencies before the root workspace install.
48
+ - Present Anhedral as a readable TypeScript stack generator with native Next.js, Expo, Fastify, Drizzle, Electron, and WXT conventions rather than a proprietary application runtime.
49
+ - Use argument-vector process execution for workspace installation instead of invoking a command through a shell.
50
+ - Remove the retired one-app compiler experiment from the production CLI and package surface.
51
+
52
+ ### Security
53
+
54
+ - Reject symbolic-link scaffold roots before creating transaction metadata or modifying their targets.
55
+ - Override vulnerable `shell-quote` and `sharp` dependency ranges in generated workspaces.
56
+
57
+ ## 0.2.1 - 2026-07-16
58
+
59
+ ### Added
60
+
61
+ - Add integrity-checked bundled framework substrates, typed module contributions, deterministic root composers, and manifest schema v4 template provenance.
62
+ - Add template tamper, symbolic-link, package-content, and contribution-composition regression tests.
63
+ - Add exact-artifact portability checks at the minimum Node.js 20 and 22 releases and the pinned Node.js 24 release on macOS and Windows.
64
+ - Add scheduled and release-gated Electron, WXT, and Expo native runtime acceptance lanes.
65
+ - Add deterministic workflow, Renovate extraction, release declaration, registry recovery, and module-topology policy tests.
66
+
67
+ ### Security
68
+
69
+ - Reject altered template catalogs, mismatched substrate digests, symbolic links, forbidden generated artifacts, and oversized template trees before transactional commit.
70
+ - Scan all tracked text, built output, and final package tarballs for high-confidence secret formats before publication.
71
+ - Clarify that public package availability grants no installation, execution, or generated-output rights without a separate written agreement.
72
+
73
+ ## 0.2.0 - 2026-07-15
74
+
75
+ ### Added
76
+
77
+ - Add manifest schema v3 with deterministic module dependency resolution, file ownership, hashes, modes, and an explicit toolchain channel.
78
+ - Add transactional `init` and `add` operations with locking, journaling, rollback, dry-run plans, and JSON output.
79
+ - Add the `anhedral doctor` command.
80
+ - Add deterministic output-tree contracts for representative scaffold combinations.
81
+
82
+ ### Changed
83
+
84
+ - Generate only the dependencies, source files, environment keys, apps, and shared packages required by selected modules.
85
+ - Align Vercel Services output with the current `services` schema and mount Fastify routes under the preserved `/api` path.
86
+ - Refresh the verified Next.js, Expo, Clerk, Electron, WXT, Vite, and RevenueCat integration matrix.
87
+ - Separate the side-effect-free package API from the executable CLI entry point.
88
+ - Preserve user-owned documentation, workflows, package fields, and mergeable root configuration during incremental adds.
89
+ - Build from a clean `dist/` directory before tests and packaging.
90
+ - Publish one verified tarball and compare its integrity with npm before tagging.
91
+ - Pin the release Node.js/npm packer so recovery rebuilds remain reproducible.
92
+ - Install the exact release artifact and run its `.bin/anhedral` shim in package smoke tests.
93
+ - Enforce an explicit npm package allowlist and artifact size policy.
94
+ - Test the CLI on Node.js 20, 22, and 24 in CI.
95
+ - Wire Clerk controls and token-aware API helpers into web and mobile templates, and make the desktop account action open Clerk sign-in or profile UI.
96
+ - Bootstrap RevenueCat only for `native-subscriptions`, connect native purchases to the authenticated user, and expose a native paywall action.
97
+ - Put pnpm overrides, build permissions, and peer policy in `pnpm-workspace.yaml`, with conflict-safe structural merges.
98
+ - Keep public API GET requests simple by omitting unused platform and content-type headers.
99
+ - Remove unused provider dependencies and environment placeholders from generated clients.
100
+ - Wire Tailwind CSS v4 into generated web and desktop builds, including semantic shadcn color tokens.
101
+ - Keep canonical module IDs and valid RFC 3986 URI schemes in generated project metadata and documentation.
102
+ - Refresh generator-owned Node.js and pnpm policy during incremental adds when the recorded package manifest is unmodified.
103
+
104
+ ### Removed
105
+
106
+ - Remove pre-schema-v3 manifest migration, generated-layout adoption, deprecated module aliases, and duplicate `stack.json` output. Projects must be generated with the current CLI and use canonical module IDs.
107
+
108
+ ### Security
109
+
110
+ - Reject modified managed files and unowned path collisions before committing incremental changes.
111
+ - Validate recovery journals, reject symlink traversal, and persist transaction intent before moving files.
112
+ - Audit every locked CLI dependency through OSV after pnpm's retired audit endpoint became unavailable.
113
+ - Make RevenueCat webhook processing fail closed and persist idempotency records when billing is selected.
114
+ - Scope npm credentials to the single publish step in the protected release job.
115
+ - Separate read-only release verification from npm publication and Git tag creation.
116
+ - Pin GitHub Actions to verified upstream commit SHAs.
117
+ - Default Fastify proxy trust to off, require an explicit bounded trusted-hop count, and minimize conditional Chrome permissions.
118
+ - Reconcile exact package versions against detailed OSV advisory ranges when the batch index is over-broad.
119
+ - Reject manifest-recorded directories and other non-regular paths during project health checks.
@@ -0,0 +1,73 @@
1
+ # Contributing
2
+
3
+ ## Local setup
4
+
5
+ Anhedral requires Node.js 20.19+ or 22.12+ and pnpm 10.34.5.
6
+
7
+ ```sh
8
+ pnpm install --frozen-lockfile
9
+ pnpm build
10
+ pnpm lint
11
+ pnpm check:security
12
+ pnpm check:release-policy
13
+ pnpm audit:osv
14
+ pnpm test
15
+ ```
16
+
17
+ ## Before opening a pull request
18
+
19
+ Run the checks relevant to the files you changed:
20
+
21
+ ```sh
22
+ pnpm typecheck
23
+ pnpm test
24
+ pnpm test:pack
25
+ pnpm test:packlist
26
+ pnpm test:release-tooling
27
+ ```
28
+
29
+ Changes to generated templates or dependency pins should also run:
30
+
31
+ ```sh
32
+ pnpm test:deps
33
+ pnpm test:e2e
34
+ ```
35
+
36
+ The E2E test installs upstream packages in a disposable operating-system temp directory, so it requires network access and may take several minutes. It removes the workspace in a `finally` block; set `ANHEDRAL_E2E_KEEP=1` only when you intentionally need to inspect a failed or completed run.
37
+
38
+ After an intentional scaffold-output change, regenerate and review the path/mode/SHA-256 contracts and generated tree documentation:
39
+
40
+ ```sh
41
+ pnpm build
42
+ node tests/update-output-tree-contracts.js
43
+ ```
44
+
45
+ ## Package changes
46
+
47
+ - Keep the public package allowlist narrow.
48
+ - Do not commit `dist/`, tarballs, `release-artifact/`, or temporary E2E/demo workspaces.
49
+ - Add or update a regression test for CLI behavior and generated configuration changes.
50
+ - Keep stable toolchain commands pinned; mutable upstream versions belong only in the `latest` lane.
51
+ - Run the OSV audit against a newly installed representative generated lockfile when changing framework or runtime pins.
52
+
53
+ ## Ownership and required review
54
+
55
+ Repository administrators must map the following roles to real maintainers in branch protection, the protected `npm` environment, private vulnerability reporting, and workflow-failure notifications:
56
+
57
+ - **Generator owner:** core architecture, transactions, manifests, and generated-file ownership.
58
+ - **Runtime owner:** application templates, provider integrations, and the stable dependency manifest.
59
+ - **Release owner:** package metadata, CI workflows, registry publication, tags, and recovery.
60
+ - **Security responder:** vulnerability intake, secret-exposure response, and supply-chain incidents.
61
+
62
+ No `CODEOWNERS` file is committed until an actual GitHub user or team slug is selected. A placeholder would create false confidence without enforcing review. Require at least one appropriate owner review for generator/runtime changes and a release-owner review for `.github/workflows/`, `scripts/`, `package.json`, `renovate.json`, `SECURITY.md`, or `docs/RELEASING.md`.
63
+
64
+ Scheduled Toolchain Drift failures and release-workflow failures must alert the release owner. Security-policy, secret-scan, or OSV failures must additionally alert the security responder. Configure those routes in repository notification settings and test them after changing ownership.
65
+
66
+ ## Releases
67
+
68
+ Do not run `npm publish` from a development checkout. Version changes are reviewed before release, and CI publishes the verified tarball. See [docs/RELEASING.md](docs/RELEASING.md).
69
+
70
+ This repository and package are licensed under the Apache License 2.0. Unless
71
+ explicitly stated otherwise, contributions intentionally submitted for
72
+ inclusion in Anhedral are provided under the same license, as described in
73
+ Section 5 of [LICENSE](LICENSE).
package/LICENSE CHANGED
@@ -1,22 +1,201 @@
1
- All Rights Reserved
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
2
4
 
3
- Copyright (c) 2026 Anhedral, Inc.
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4
6
 
5
- THE CONTENTS OF THIS PROJECT ARE PROPRIETARY AND CONFIDENTIAL.
6
- UNAUTHORIZED COPYING, TRANSFERRING OR REPRODUCTION OF THE CONTENTS
7
- OF THIS PROJECT, VIA ANY MEDIUM, IS STRICTLY PROHIBITED.
7
+ 1. Definitions.
8
8
 
9
- The receipt or possession of the source code and/or any parts thereof
10
- does not convey or imply any right to use them for any purpose other
11
- than the purpose for which they were provided to you.
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
12
11
 
13
- The software is provided "AS IS", without warranty of any kind,
14
- express or implied, including but not limited to the warranties of
15
- merchantability, fitness for a particular purpose and noninfringement.
16
- In no event shall the authors or copyright holders be liable for any
17
- claim, damages or other liability, whether in an action of contract,
18
- tort or otherwise, arising from, out of or in connection with the
19
- software or the use or other dealings in the software.
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
20
14
 
21
- The above copyright notice and this permission notice shall be
22
- included in all copies or substantial portions of the software.
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 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
+ 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 Anhedral, Inc.
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.