bailey 0.0.1__py3-none-any.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.
bailey/__init__.py ADDED
@@ -0,0 +1,13 @@
1
+ """Bailey: an open-source AI assistant that runs ready-made solutions.
2
+
3
+ A solution is a complete, versioned package for one job: instructions, skills,
4
+ tools, knowledge and small apps. Bailey installs one in a step, runs it on the
5
+ user's own machine with the user's own AI key, and asks before a tool changes
6
+ anything.
7
+
8
+ This first release carries one command, ``bailey doctor``, which checks that a
9
+ machine has what the assistant will need. It reads the local machine only and
10
+ makes no network call.
11
+ """
12
+
13
+ __version__ = "0.0.1"
bailey/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ """``python -m bailey``, the same as the ``bailey`` command."""
2
+
3
+ from bailey.cli import main
4
+
5
+ raise SystemExit(main())
bailey/cli.py ADDED
@@ -0,0 +1,41 @@
1
+ """``bailey``: the command line."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import json
7
+ import sys
8
+ from collections.abc import Sequence
9
+
10
+ from bailey import __version__
11
+ from bailey.doctor import ready, render, run_checks
12
+
13
+
14
+ def build_parser() -> argparse.ArgumentParser:
15
+ parser = argparse.ArgumentParser(
16
+ prog="bailey",
17
+ description="An open-source AI assistant that runs ready-made solutions on your own machine.",
18
+ )
19
+ parser.add_argument("--version", action="version", version=f"bailey {__version__}")
20
+ commands = parser.add_subparsers(dest="command", required=True)
21
+ doctor = commands.add_parser(
22
+ "doctor",
23
+ help="check that this machine has what Bailey needs",
24
+ description=(
25
+ "Check that this machine has what Bailey needs: a recent Python, SQLite with full-text search, "
26
+ "and a loopback address for the app's local server; and, for some solutions, uv and Node.js. "
27
+ "Reads this machine only. Exits 1 when a required check fails."
28
+ ),
29
+ )
30
+ doctor.add_argument("--json", action="store_true", help="print the checks as JSON")
31
+ return parser
32
+
33
+
34
+ def main(argv: Sequence[str] | None = None) -> int:
35
+ args = build_parser().parse_args(argv)
36
+ checks = run_checks()
37
+ if args.json:
38
+ sys.stdout.write(json.dumps([check.as_dict() for check in checks], indent=2) + "\n")
39
+ else:
40
+ sys.stdout.write(render(checks, version=__version__))
41
+ return 0 if ready(checks) else 1
bailey/doctor.py ADDED
@@ -0,0 +1,203 @@
1
+ """``bailey doctor``: does this machine have what Bailey needs?
2
+
3
+ Each check says what it found, what Bailey uses it for, and what to do when it
4
+ is missing. A *required* check is one the assistant cannot start without. The
5
+ others are needed by some solutions only: a tool published as an npm package
6
+ needs Node.js, and nothing else does. So they are reported, and they never
7
+ fail the command.
8
+
9
+ It reads this machine and nothing else: no network call, no file written, and
10
+ no environment variable printed. Every check takes what it probes as an
11
+ argument, so the tests can hand it a machine that lacks something.
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import shutil
17
+ import socket
18
+ import sys
19
+ from collections.abc import Callable, Sequence
20
+ from dataclasses import asdict, dataclass
21
+ from typing import Any
22
+
23
+ try:
24
+ import sqlite3
25
+ except ImportError: # a Python compiled without SQLite's headers, which some source builds are
26
+ sqlite3 = None # type: ignore[assignment]
27
+
28
+ MINIMUM_PYTHON = (3, 11)
29
+
30
+ GET_PYTHON = "Install Python from python.org or with `uv python install`, then run `bailey doctor` again to confirm."
31
+
32
+
33
+ @dataclass(frozen=True)
34
+ class Check:
35
+ name: str
36
+ ok: bool
37
+ found: str
38
+ needed_for: str
39
+ required: bool
40
+ fix: str = ""
41
+
42
+ def as_dict(self) -> dict[str, Any]:
43
+ return asdict(self)
44
+
45
+
46
+ def check_python(version_info: Sequence[int] = sys.version_info) -> Check:
47
+ ok = tuple(version_info[:2]) >= MINIMUM_PYTHON
48
+ return Check(
49
+ name="Python",
50
+ ok=ok,
51
+ found=".".join(str(part) for part in version_info[:3]),
52
+ needed_for="Bailey itself",
53
+ required=True,
54
+ fix="" if ok else "Install Python 3.11 or newer, or start Bailey with `uvx`, which fetches one.",
55
+ )
56
+
57
+
58
+ def _without_sqlite(name: str, needed_for: str, *, required: bool) -> Check:
59
+ return Check(
60
+ name=name,
61
+ ok=False,
62
+ found="this Python has no sqlite3 module",
63
+ needed_for=needed_for,
64
+ required=required,
65
+ fix="This Python was built without SQLite. " + GET_PYTHON,
66
+ )
67
+
68
+
69
+ def check_full_text_search(connect: Callable[[str], Any] | None = None) -> Check:
70
+ """FTS5 is the keyword half of document search, and a compile-time option of SQLite."""
71
+
72
+ name, needed_for = "SQLite full-text search", "searching your documents by keyword"
73
+ if connect is None:
74
+ if sqlite3 is None:
75
+ return _without_sqlite(name, needed_for, required=True)
76
+ connect = sqlite3.connect
77
+ version = sqlite3.sqlite_version if sqlite3 is not None else "unknown"
78
+ connection = connect(":memory:")
79
+ try:
80
+ connection.execute("CREATE VIRTUAL TABLE probe USING fts5(body)")
81
+ found = f"SQLite {version} with FTS5"
82
+ ok = True
83
+ except Exception as error: # the probe's only question is whether this statement runs
84
+ found = f"SQLite {version} without FTS5 ({error})"
85
+ ok = False
86
+ finally:
87
+ connection.close()
88
+ return Check(
89
+ name=name,
90
+ ok=ok,
91
+ found=found,
92
+ needed_for=needed_for,
93
+ required=True,
94
+ fix="" if ok else "This Python's SQLite was built without FTS5. " + GET_PYTHON,
95
+ )
96
+
97
+
98
+ def check_extension_loading(connection_type: type | None = None) -> Check:
99
+ """The vector index is a SQLite extension, and loading one is also a build option."""
100
+
101
+ name, needed_for = "SQLite extensions", "the vector index, which finds passages by meaning rather than by word"
102
+ if connection_type is None:
103
+ if sqlite3 is None:
104
+ return _without_sqlite(name, needed_for, required=False)
105
+ connection_type = sqlite3.Connection
106
+ ok = hasattr(connection_type, "enable_load_extension")
107
+ return Check(
108
+ name=name,
109
+ ok=ok,
110
+ found="can be loaded" if ok else "cannot be loaded",
111
+ needed_for=needed_for,
112
+ required=False,
113
+ fix=""
114
+ if ok
115
+ else (
116
+ "This Python was built without SQLite extension loading (the Python that ships with macOS is one). "
117
+ "Keyword search still works; for search by meaning, run Bailey on a Python that allows extensions."
118
+ ),
119
+ )
120
+
121
+
122
+ def check_uv(which: Callable[[str], str | None] = shutil.which) -> Check:
123
+ path = which("uvx") or which("uv")
124
+ return Check(
125
+ name="uv",
126
+ ok=bool(path),
127
+ found=path or "not found",
128
+ needed_for="tools published as Python packages, which start with `uvx`",
129
+ required=False,
130
+ fix="" if path else "Install uv: https://docs.astral.sh/uv/getting-started/installation/",
131
+ )
132
+
133
+
134
+ def check_node(which: Callable[[str], str | None] = shutil.which) -> Check:
135
+ path = which("npx")
136
+ return Check(
137
+ name="Node.js",
138
+ ok=bool(path),
139
+ found=path or "not found",
140
+ needed_for="tools published as npm packages, which start with `npx`",
141
+ required=False,
142
+ fix="" if path else "Install Node.js, which includes `npx`, if a solution you use has such a tool.",
143
+ )
144
+
145
+
146
+ def check_loopback(socket_factory: Callable[..., socket.socket] = socket.socket) -> Check:
147
+ """The app is a server on 127.0.0.1. Binding port 0 asks for any free port."""
148
+
149
+ try:
150
+ with socket_factory(socket.AF_INET, socket.SOCK_STREAM) as probe:
151
+ probe.bind(("127.0.0.1", 0))
152
+ ok = True
153
+ except OSError:
154
+ ok = False
155
+ return Check(
156
+ name="Loopback",
157
+ ok=ok,
158
+ found="127.0.0.1 is available" if ok else "cannot listen on 127.0.0.1",
159
+ needed_for="the app's local server, which only this computer can reach",
160
+ required=True,
161
+ fix=""
162
+ if ok
163
+ else "Something on this machine refuses local connections; a firewall may need to let Python listen on 127.0.0.1.",
164
+ )
165
+
166
+
167
+ def run_checks() -> list[Check]:
168
+ return [
169
+ check_python(),
170
+ check_full_text_search(),
171
+ check_extension_loading(),
172
+ check_uv(),
173
+ check_node(),
174
+ check_loopback(),
175
+ ]
176
+
177
+
178
+ def ready(checks: Sequence[Check]) -> bool:
179
+ return all(check.ok for check in checks if check.required)
180
+
181
+
182
+ def render(checks: Sequence[Check], *, version: str) -> str:
183
+ lines = [f"Bailey {version} doctor", ""]
184
+ for check in checks:
185
+ mark = "ok" if check.ok else ("FAIL" if check.required else "--")
186
+ lines.append(f" {mark:<5}{check.name}: {check.found}")
187
+ lines.append(f" needed for {check.needed_for}" + ("" if check.required else " (optional)"))
188
+ if not check.ok and check.fix:
189
+ lines.append(f" {check.fix}")
190
+ lines.append("")
191
+ failed = [check.name for check in checks if check.required and not check.ok]
192
+ optional = [check.name for check in checks if not check.required and not check.ok]
193
+ if failed:
194
+ lines.append("This machine is missing what Bailey requires: " + ", ".join(failed) + ".")
195
+ else:
196
+ lines.append("This machine has everything Bailey requires.")
197
+ if optional:
198
+ lines.append(
199
+ "Optional and missing: "
200
+ + ", ".join(optional)
201
+ + ". They matter only to a solution whose tools use them."
202
+ )
203
+ return "\n".join(lines) + "\n"
@@ -0,0 +1,80 @@
1
+ Metadata-Version: 2.5
2
+ Name: bailey
3
+ Version: 0.0.1
4
+ Summary: An open-source AI assistant that runs ready-made solutions on your own machine, with your own AI key. This first release ships `bailey doctor`.
5
+ Project-URL: Homepage, https://github.com/sigrix-io/bailey
6
+ Project-URL: Issues, https://github.com/sigrix-io/bailey/issues
7
+ Project-URL: Changelog, https://github.com/sigrix-io/bailey/blob/main/CHANGELOG.md
8
+ Author: Sigrix
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ License-File: NOTICE
12
+ Keywords: agent,agent-skills,ai,assistant,local-first,mcp,rag
13
+ Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: End Users/Desktop
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Requires-Python: >=3.11
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=8; extra == 'dev'
24
+ Requires-Dist: ruff>=0.6; extra == 'dev'
25
+ Description-Content-Type: text/markdown
26
+
27
+ # Bailey
28
+
29
+ An open-source AI assistant that runs ready-made solutions: on your own machine, with your own AI key.
30
+
31
+ > **Early days.** This is release 0.0.1. It installs one command, `bailey doctor`, which checks that your computer has what the assistant will need. The assistant itself arrives in 0.1.
32
+
33
+ ## What Bailey is for
34
+
35
+ Getting AI to do one real job reliably is still a project. Someone writes the instructions, connects the tools, supplies the documents and the keys, checks that it works, and keeps it working when something changes.
36
+
37
+ Bailey runs **solutions** instead: complete, versioned packages for one job, such as answering customer emails, qualifying leads or writing a weekly report. A solution carries its instructions, skills, tools, knowledge and small apps. Bailey installs it in one step and asks only for the keys it needs.
38
+
39
+ - **Your machine, your key.** It runs locally and opens in your browser, with the AI provider you choose: Anthropic, OpenAI, or any OpenAI-compatible endpoint, local models included.
40
+ - **It asks before it acts.** Every tool is either read or write, and a write tool asks before it runs: once, always for this assistant, or no.
41
+ - **Your documents stay yours.** Files you add are indexed on your computer, and answers cite the passage they came from.
42
+ - **Open formats.** Skills are Agent Skills, tools are MCP servers, apps speak [Postern](https://github.com/sigrix-io/postern), and a solution is an Agent Plugins folder, so its parts also load in other clients.
43
+ - **No telemetry.**
44
+
45
+ Solutions can be free, or bought on [Sigrix](https://sigrix.io), where builders sell what they make for Bailey.
46
+
47
+ ## Check your machine
48
+
49
+ ```sh
50
+ uvx bailey doctor
51
+ ```
52
+
53
+ `pipx run bailey doctor` works as well. It checks, and says how to fix what is missing:
54
+
55
+ | Check | Why Bailey needs it | Required |
56
+ | --- | --- | --- |
57
+ | Python 3.11 or newer | Bailey itself | yes |
58
+ | SQLite with full-text search (FTS5) | searching your documents by keyword | yes |
59
+ | A loopback address | the app's local server, which only this computer can reach | yes |
60
+ | SQLite extension loading | the vector index, which finds passages by meaning | no |
61
+ | uv | tools published as Python packages, which start with `uvx` | no |
62
+ | Node.js | tools published as npm packages, which start with `npx` | no |
63
+
64
+ It exits 1 when a required check fails, and `bailey doctor --json` prints the same answers for a script. It reads your machine only: no network call, no file written.
65
+
66
+ ## What comes next
67
+
68
+ - **0.1: the app.** Chat, assistants, skills loaded when needed, tools with approval, knowledge from your own documents with citations, apps, and installing a solution from a file.
69
+ - **0.2: the store.** Sign in, browse, install and update solutions, and publish your own.
70
+
71
+ ## Development
72
+
73
+ ```sh
74
+ pip install -e ".[dev]"
75
+ ruff check . && ruff format --check . && pytest
76
+ ```
77
+
78
+ ## Licence
79
+
80
+ Apache-2.0. The Sigrix name and logo are not covered by the licence; see `NOTICE`.
@@ -0,0 +1,10 @@
1
+ bailey/__init__.py,sha256=7N0Gff18GPsJqCvMMuhxwLRSCubD0tjSyeQdAXMRR6E,526
2
+ bailey/__main__.py,sha256=zJXwS9vNn6hiV0DoKoTikW9FkjKHD4gtDsV02oXCEPg,119
3
+ bailey/cli.py,sha256=aO2L8YRJdvfxrgUalE6Ozb87J9khOn7yVVTiWefwuVY,1502
4
+ bailey/doctor.py,sha256=SA5X-D-o38o5rMwSSK-_xaEyz7fhZnnyt8dBnUct-HQ,7153
5
+ bailey-0.0.1.dist-info/METADATA,sha256=hdALsSiQbIgYg_wmDhp1Cf0mZu8nqPd3UF5ZgubkT2w,4064
6
+ bailey-0.0.1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ bailey-0.0.1.dist-info/entry_points.txt,sha256=DHkxioHeXh5bnQKIJIIZcPlFhZD9JlHS_abM5-gHZCs,43
8
+ bailey-0.0.1.dist-info/licenses/LICENSE,sha256=oHcgULuYGIbHR4QEnAgN4_coCdJLwrsNUQ6_TGdOHEk,11336
9
+ bailey-0.0.1.dist-info/licenses/NOTICE,sha256=Uc08NlnedaPO35UGqkTmzvu6aKJz7k7-cm4Od3xApnY,320
10
+ bailey-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ bailey = bailey.cli:main
@@ -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 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 Sigrix
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.
@@ -0,0 +1,8 @@
1
+ Bailey
2
+ Copyright 2026 Sigrix
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Trademarks. "Sigrix" and the Sigrix logo are trademarks of Sigrix. The Apache
7
+ License does not grant permission to use them. A fork or a derived work must
8
+ not present itself as Sigrix or as published by Sigrix.