lmer 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.
- lmer-0.1.0/LICENSE +202 -0
- lmer-0.1.0/MANIFEST.in +7 -0
- lmer-0.1.0/PKG-INFO +247 -0
- lmer-0.1.0/README.md +211 -0
- lmer-0.1.0/pyproject.toml +95 -0
- lmer-0.1.0/setup.cfg +4 -0
- lmer-0.1.0/src/gitlab_reviewer/__init__.py +6 -0
- lmer-0.1.0/src/gitlab_reviewer/cli.py +1009 -0
- lmer-0.1.0/src/gitlab_reviewer/client.py +1017 -0
- lmer-0.1.0/src/lmer.egg-info/PKG-INFO +247 -0
- lmer-0.1.0/src/lmer.egg-info/SOURCES.txt +78 -0
- lmer-0.1.0/src/lmer.egg-info/dependency_links.txt +1 -0
- lmer-0.1.0/src/lmer.egg-info/entry_points.txt +6 -0
- lmer-0.1.0/src/lmer.egg-info/requires.txt +14 -0
- lmer-0.1.0/src/lmer.egg-info/top_level.txt +3 -0
- lmer-0.1.0/src/lmer_cli/__init__.py +9 -0
- lmer-0.1.0/src/lmer_cli/build.py +231 -0
- lmer-0.1.0/src/lmer_cli/cli.py +997 -0
- lmer-0.1.0/src/lmer_cli/container/__init__.py +8 -0
- lmer-0.1.0/src/lmer_cli/container/clone_and_exec.py +733 -0
- lmer-0.1.0/src/lmer_cli/container_home.py +103 -0
- lmer-0.1.0/src/lmer_cli/gates.py +907 -0
- lmer-0.1.0/src/lmer_cli/gitlab_pipeline.py +362 -0
- lmer-0.1.0/src/lmer_cli/log.py +62 -0
- lmer-0.1.0/src/lmer_cli/mounts.py +340 -0
- lmer-0.1.0/src/lmer_cli/pipe.py +257 -0
- lmer-0.1.0/src/lmer_cli/resolve.py +199 -0
- lmer-0.1.0/src/lmer_cli/runtime.py +203 -0
- lmer-0.1.0/src/lmer_cli/service.py +149 -0
- lmer-0.1.0/src/lmer_cli/supervisor.py +576 -0
- lmer-0.1.0/src/lmer_cli/tokens.py +172 -0
- lmer-0.1.0/src/lmer_cli/util.py +92 -0
- lmer-0.1.0/src/work_repo/__init__.py +17 -0
- lmer-0.1.0/src/work_repo/cli.py +355 -0
- lmer-0.1.0/src/work_repo/git_ops.py +109 -0
- lmer-0.1.0/src/work_repo/info_reader.py +97 -0
- lmer-0.1.0/src/work_repo/loggers.py +123 -0
- lmer-0.1.0/src/work_repo/utils.py +150 -0
- lmer-0.1.0/taskdef/chat/instructions.txt +32 -0
- lmer-0.1.0/tests/test_build.py +347 -0
- lmer-0.1.0/tests/test_consistency.py +100 -0
- lmer-0.1.0/tests/test_container_build.py +191 -0
- lmer-0.1.0/tests/test_containerfile.py +112 -0
- lmer-0.1.0/tests/test_fips_compliance.py +135 -0
- lmer-0.1.0/tests/test_followup_hook.py +212 -0
- lmer-0.1.0/tests/test_gates.py +1056 -0
- lmer-0.1.0/tests/test_hooks.py +173 -0
- lmer-0.1.0/tests/test_human_identity.py +367 -0
- lmer-0.1.0/tests/test_installed_mode.py +168 -0
- lmer-0.1.0/tests/test_integration.py +132 -0
- lmer-0.1.0/tests/test_lmer_cli_container_home.py +173 -0
- lmer-0.1.0/tests/test_lmer_cli_env_sources.py +122 -0
- lmer-0.1.0/tests/test_lmer_cli_gitlab_pipeline.py +461 -0
- lmer-0.1.0/tests/test_lmer_cli_log.py +99 -0
- lmer-0.1.0/tests/test_lmer_cli_mounts.py +382 -0
- lmer-0.1.0/tests/test_lmer_cli_resolve.py +229 -0
- lmer-0.1.0/tests/test_lmer_cli_runtime.py +264 -0
- lmer-0.1.0/tests/test_lmer_cli_service.py +124 -0
- lmer-0.1.0/tests/test_lmer_cli_token_injection.py +341 -0
- lmer-0.1.0/tests/test_lmer_features.py +91 -0
- lmer-0.1.0/tests/test_lmer_integration.py +99 -0
- lmer-0.1.0/tests/test_lmer_reasoning_effort.py +145 -0
- lmer-0.1.0/tests/test_no_tests_directory.py +52 -0
- lmer-0.1.0/tests/test_parse_repo_url.py +154 -0
- lmer-0.1.0/tests/test_performance.py +78 -0
- lmer-0.1.0/tests/test_pipe.py +361 -0
- lmer-0.1.0/tests/test_provision_documentation.py +436 -0
- lmer-0.1.0/tests/test_rules_structure.py +63 -0
- lmer-0.1.0/tests/test_security.py +124 -0
- lmer-0.1.0/tests/test_self_dev.py +112 -0
- lmer-0.1.0/tests/test_ssh_check.py +126 -0
- lmer-0.1.0/tests/test_start_hook.py +209 -0
- lmer-0.1.0/tests/test_supervisor.py +455 -0
- lmer-0.1.0/tests/test_work_repo_cli.py +288 -0
- lmer-0.1.0/tests/test_work_repo_git_ops.py +159 -0
- lmer-0.1.0/tests/test_work_repo_info_reader.py +305 -0
- lmer-0.1.0/tests/test_work_repo_loggers.py +133 -0
- lmer-0.1.0/tests/test_work_repo_redact.py +322 -0
- lmer-0.1.0/tests/test_work_repo_taskdefs.py +267 -0
- lmer-0.1.0/tests/test_work_repo_utils.py +126 -0
lmer-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 20C, LLC
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
lmer-0.1.0/MANIFEST.in
ADDED
lmer-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lmer
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Containerized harness for running Claude Code against external repositories
|
|
5
|
+
Author-email: "20C, LLC" <info@20c.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/lmer2/lmer
|
|
8
|
+
Project-URL: Repository, https://github.com/lmer2/lmer
|
|
9
|
+
Project-URL: Documentation, https://github.com/lmer2/lmer/tree/main/docs
|
|
10
|
+
Project-URL: Issues, https://github.com/lmer2/lmer/issues
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development
|
|
18
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
23
|
+
Requires-Dist: pre-commit>=3.5.0
|
|
24
|
+
Requires-Dist: requests>=2.25.0
|
|
25
|
+
Requires-Dist: pyyaml>=6.0
|
|
26
|
+
Requires-Dist: jinja2>=3.1.6
|
|
27
|
+
Requires-Dist: fastapi>=0.110.0
|
|
28
|
+
Requires-Dist: uvicorn>=0.27.0
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=7.4.0; extra == "dev"
|
|
31
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
|
|
32
|
+
Requires-Dist: flake8>=3.8.0; extra == "dev"
|
|
33
|
+
Requires-Dist: black>=21.0.0; extra == "dev"
|
|
34
|
+
Requires-Dist: mypy>=0.800; extra == "dev"
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
|
|
37
|
+
# lmer
|
|
38
|
+
|
|
39
|
+
**lmer** is a containerized harness for running [Claude Code](https://docs.anthropic.com/en/docs/claude-code) against external repositories.
|
|
40
|
+
|
|
41
|
+
It clones a target repo into a sandbox container, mounts a known set of development rules and slash commands, and hands the session to Claude with a task-shaped prompt. Tests, pre-commit, and git operations all run inside the container, so the host stays clean and credentials never leak into the target repo's working tree.
|
|
42
|
+
|
|
43
|
+
Only `chat` ships as a built-in task in [taskdef/](taskdef/). Additional tasks can be loaded from the work-repo or from directories listed in `LMER_TASKDEF_PATHS` — see [docs/TASKDEFS.md](docs/TASKDEFS.md).
|
|
44
|
+
|
|
45
|
+
> **Note on GitLab vs GitHub support:** Up to this point the priority has been making lmer behave nicely against GitLab — the `gitlab-review` toolset does a lot of heavy lifting to smooth that integration. GitHub generally works, but with this GitHub release the next focus is bringing GitHub interaction up to the same level of polish. Expect rough edges on the GitHub side until that work lands.
|
|
46
|
+
|
|
47
|
+
## What you get
|
|
48
|
+
|
|
49
|
+
- A reproducible container image (Oracle Linux 9 Slim, FIPS-capable) with `claude`, `git`, `uv`, and a pinned Python toolchain pre-installed.
|
|
50
|
+
- A consistent ruleset (`AGENTS.md` + `rules/`) injected into Claude's system prompt so behavior is the same across projects: tests before commits, no force-push, show command output, pytest-only, etc.
|
|
51
|
+
- Gate commands (`gate-check`, `gate-commit`, `gate-push`) that enforce those rules at commit-time.
|
|
52
|
+
- Task-specific workflows that load instructions, set up the work environment, and (optionally) drive a follow-up review cycle on the resulting MR.
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
The `lmer` CLI provides a safe, containerized environment for AI-assisted development. The typical setup uses an existing Claude.ai subscription (no API key required) and installs from the `prep-release` branch for the latest features.
|
|
57
|
+
|
|
58
|
+
### 1. Authenticate Claude on the host (subscription users)
|
|
59
|
+
|
|
60
|
+
If you already use Claude Code with a Claude.ai subscription, run `/login` once on your host machine:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
claude # then run /login inside the Claude Code session
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
This creates `~/.claude/.credentials.json`, which `lmer` automatically mounts into the container — no API key needed.
|
|
67
|
+
|
|
68
|
+
If you instead authenticate via API key, place it in `~/.lmer/.env` (see [API key alternative](#api-key-alternative) below).
|
|
69
|
+
|
|
70
|
+
### 2. Install lmer
|
|
71
|
+
|
|
72
|
+
Pick the branch that matches your needs:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Latest features — may be unstable
|
|
76
|
+
uv tool install lmer --from git+https://github.com/lmer2/lmer@prep-release
|
|
77
|
+
|
|
78
|
+
# Stable release
|
|
79
|
+
uv tool install lmer --from git+https://github.com/lmer2/lmer@main
|
|
80
|
+
|
|
81
|
+
# Local / editable (developer mode)
|
|
82
|
+
uv tool install -e lmer --from .
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
To upgrade later: `uv tool upgrade lmer`.
|
|
86
|
+
|
|
87
|
+
The container image is pulled automatically on first run from `ghcr.io/lmer2/lmer` — no manual build step is needed. If you can't reach GHCR, or want to develop on the container itself, build it locally from a clone:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
git clone https://github.com/lmer2/lmer /tmp/lmer-src
|
|
91
|
+
lmer build --local /tmp/lmer-src
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Override the pull source with `LMER_REGISTRY=<host>/<path>` for self-hosted registries.
|
|
95
|
+
|
|
96
|
+
### 3. Configure a work repo
|
|
97
|
+
|
|
98
|
+
`lmer` requires a **work repo** — a git repository it uses to persist worklogs, gate-check results, and per-project notes across sessions. The `work` CLI inside the container actively `pull`s and `push`es to it, so a remote git repository is required (a bind-mounted local directory would have nothing to push to).
|
|
99
|
+
|
|
100
|
+
Set up:
|
|
101
|
+
|
|
102
|
+
1. Create an empty repository on a git host you can read/write — GitLab (cloud or self-hosted) or GitHub both work. A personal/private repo is fine.
|
|
103
|
+
2. Point `lmer` at it and supply a token the container will use for clone/pull/push, via `~/.lmer/.env`:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
mkdir -p ~/.lmer
|
|
107
|
+
cat >> ~/.lmer/.env <<'EOF'
|
|
108
|
+
LMER_WORK_REPO=git@github.com:<you>/lmer-work.git
|
|
109
|
+
|
|
110
|
+
# Dedicated work-repo token. Provider-agnostic — works for GitLab,
|
|
111
|
+
# GitHub, or self-hosted. Highest-priority lookup for the work repo,
|
|
112
|
+
# so it stays isolated from any per-host tokens used to clone the
|
|
113
|
+
# target repos you point `lmer chat` at.
|
|
114
|
+
LMER_WORK_REPO_TOKEN=<your-pat>
|
|
115
|
+
EOF
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The token needs read + write on the work repo. lmer will rewrite the SSH URL to HTTPS-with-token automatically when a token is present.
|
|
119
|
+
|
|
120
|
+
SSH instead of HTTPS works too — keep the `git@…` URL, drop the token line, and forward an SSH agent into the container (lmer prints the exact commands when no key is configured).
|
|
121
|
+
|
|
122
|
+
Subsequent `lmer chat <repo>` runs will clone the work repo into the container at `/work` and push updates back at the end of the session.
|
|
123
|
+
|
|
124
|
+
### Common options
|
|
125
|
+
|
|
126
|
+
Targets can be a repo URL, a PR/MR/issue URL (lmer extracts the base repo), a local git path, or omitted to infer from the current directory's git remote:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
# Remote repo
|
|
130
|
+
lmer chat https://gitlab.com/group/project.git
|
|
131
|
+
|
|
132
|
+
# GitHub PR or GitLab MR/issue URL — base repo is auto-extracted
|
|
133
|
+
lmer chat https://github.com/org/repo/pull/123
|
|
134
|
+
lmer chat https://gitlab.com/group/project/-/merge_requests/456
|
|
135
|
+
lmer chat https://gitlab.com/group/project/-/issues/31
|
|
136
|
+
|
|
137
|
+
# Local checkout (extracts remote URL)
|
|
138
|
+
lmer chat /path/to/repo
|
|
139
|
+
|
|
140
|
+
# Infer from current directory
|
|
141
|
+
cd /path/to/repo && lmer chat
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Other useful flags:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
# Checkout specific branch or ref
|
|
148
|
+
lmer chat https://gitlab.com/group/project.git --branch feature/x
|
|
149
|
+
|
|
150
|
+
# Get shell access
|
|
151
|
+
lmer chat https://gitlab.com/group/project.git --exec -- bash
|
|
152
|
+
|
|
153
|
+
# Match host UID for SSH agent permissions
|
|
154
|
+
lmer chat https://gitlab.com/group/project.git --match-uid --exec -- bash
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
See [docs/LMER-CLI.md](docs/LMER-CLI.md) for complete CLI documentation.
|
|
158
|
+
|
|
159
|
+
### API key alternative
|
|
160
|
+
|
|
161
|
+
If you don't have a Claude subscription, place your API key in `~/.lmer/.env`:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
mkdir -p ~/.lmer
|
|
165
|
+
cat > ~/.lmer/.env <<'EOF'
|
|
166
|
+
CLAUDE_API_KEY=your-claude-key
|
|
167
|
+
GITLAB_TOKEN=your-gitlab-token
|
|
168
|
+
EOF
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
See [docs/AUTHENTICATION.md](docs/AUTHENTICATION.md) for the full authentication reference.
|
|
172
|
+
|
|
173
|
+
See [docs/CONTAINER.md](docs/CONTAINER.md) for detailed container documentation.
|
|
174
|
+
|
|
175
|
+
### Why Oracle Linux 9 / FIPS?
|
|
176
|
+
|
|
177
|
+
The container is built on `oraclelinux:9-slim-fips`. This base satisfies a FIPS 140-2 compliance requirement: cryptographic operations (TLS, hashing for signed commits, etc.) inside the container must run against a validated module. Oracle Linux 9 ships a validated OpenSSL and exposes `/proc/sys/crypto/fips_enabled`, which `make fips-check` verifies.
|
|
178
|
+
|
|
179
|
+
If you do not need FIPS, the image still works fine — it just trades a smaller base layer for a validated one. Slimmer Debian/Alpine-based images are not currently supported out of the box; the Containerfile is the single source of truth and contributions for an opt-in alternative base are welcome.
|
|
180
|
+
|
|
181
|
+
## Developer setup
|
|
182
|
+
|
|
183
|
+
For working on lmer itself (rather than just using it), clone the repo and build from source:
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
git clone https://github.com/lmer2/lmer ~/Agents/global
|
|
187
|
+
cd ~/Agents/global
|
|
188
|
+
|
|
189
|
+
# Container workflow (FIPS-compliant)
|
|
190
|
+
make build # Build the container image
|
|
191
|
+
make lmer # Run lmer with Claude in a fresh container
|
|
192
|
+
make test # Run tests locally
|
|
193
|
+
make help # See all targets
|
|
194
|
+
|
|
195
|
+
# Or local Python environment
|
|
196
|
+
uv sync
|
|
197
|
+
uv run pre-commit install
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
> **Path note:** `~/Agents/global` is the conventional host checkout location. Hooks and scripts inside the container refer to `/Agents/global` — that's the **in-container** mount path, populated by lmer at start. You do not need to create `/Agents/global` on the host.
|
|
201
|
+
|
|
202
|
+
### Rules outside lmer
|
|
203
|
+
|
|
204
|
+
Rules are injected automatically when running via `lmer` (which uses [libexec/claude-runner.sh](libexec/claude-runner.sh) internally). For standalone `claude` sessions, pass the rules file explicitly:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
claude --append-system-prompt-file ~/Agents/global/AGENTS.md
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
User-specific additions: create `~/.lmer/AGENTS.md` — the runner appends it after the workspace config automatically.
|
|
211
|
+
|
|
212
|
+
## Releasing
|
|
213
|
+
|
|
214
|
+
Releases to [PyPI](https://pypi.org/project/lmer/) are driven by git tags on `lmer2/lmer`. The full pipeline lives in `.github/workflows/release.yml`.
|
|
215
|
+
|
|
216
|
+
To cut a release:
|
|
217
|
+
|
|
218
|
+
1. Bump `version` in `pyproject.toml` (e.g. `0.1.0` → `0.1.1`).
|
|
219
|
+
2. Update `CHANGELOG.yaml` with the release notes.
|
|
220
|
+
3. Commit and merge to `main` through the normal PR flow.
|
|
221
|
+
4. Tag the merge commit and push the tag:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
git switch main && git pull --ff-only
|
|
225
|
+
git tag v0.1.1
|
|
226
|
+
git push origin v0.1.1
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
5. Watch the `Release to PyPI` workflow in the Actions tab. It will:
|
|
230
|
+
- Verify the tag version matches `pyproject.toml`.
|
|
231
|
+
- Re-run `pre-commit` and `pytest`.
|
|
232
|
+
- Build the wheel and sdist with `uv build`.
|
|
233
|
+
- Publish to PyPI using Trusted Publishing (no stored secrets).
|
|
234
|
+
- Create a GitHub Release with the artifacts attached.
|
|
235
|
+
|
|
236
|
+
### Prerequisites (one-time)
|
|
237
|
+
|
|
238
|
+
- A PyPI **Trusted Publisher** binding must exist for project `lmer` pointing at workflow `release.yml` on `lmer2/lmer`, environment `pypi`. Configure at https://pypi.org/manage/project/lmer/settings/publishing/.
|
|
239
|
+
- A GitHub **environment** named `pypi` must exist on `lmer2/lmer` (Settings → Environments).
|
|
240
|
+
|
|
241
|
+
Both are set up by the maintainer; they don't need to be touched per release.
|
|
242
|
+
|
|
243
|
+
## Documentation
|
|
244
|
+
|
|
245
|
+
See [docs/INDEX.md](docs/INDEX.md) for the full documentation index. Common starting points: [LMER-CLI.md](docs/LMER-CLI.md), [CONTAINER.md](docs/CONTAINER.md), [AUTHENTICATION.md](docs/AUTHENTICATION.md), [TASKDEFS.md](docs/TASKDEFS.md).
|
|
246
|
+
|
|
247
|
+
The rules Claude follows live in [AGENTS.md](AGENTS.md) and [rules/](rules/) (split by topic: git, testing, code-quality, security, documentation, ci-cd, dependencies). Rule-reading and commit-gate commands (`rgr`, `rgr-git`, `rgrpc`, `pc`, …) are documented in [hooks/README.md](hooks/README.md).
|
lmer-0.1.0/README.md
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# lmer
|
|
2
|
+
|
|
3
|
+
**lmer** is a containerized harness for running [Claude Code](https://docs.anthropic.com/en/docs/claude-code) against external repositories.
|
|
4
|
+
|
|
5
|
+
It clones a target repo into a sandbox container, mounts a known set of development rules and slash commands, and hands the session to Claude with a task-shaped prompt. Tests, pre-commit, and git operations all run inside the container, so the host stays clean and credentials never leak into the target repo's working tree.
|
|
6
|
+
|
|
7
|
+
Only `chat` ships as a built-in task in [taskdef/](taskdef/). Additional tasks can be loaded from the work-repo or from directories listed in `LMER_TASKDEF_PATHS` — see [docs/TASKDEFS.md](docs/TASKDEFS.md).
|
|
8
|
+
|
|
9
|
+
> **Note on GitLab vs GitHub support:** Up to this point the priority has been making lmer behave nicely against GitLab — the `gitlab-review` toolset does a lot of heavy lifting to smooth that integration. GitHub generally works, but with this GitHub release the next focus is bringing GitHub interaction up to the same level of polish. Expect rough edges on the GitHub side until that work lands.
|
|
10
|
+
|
|
11
|
+
## What you get
|
|
12
|
+
|
|
13
|
+
- A reproducible container image (Oracle Linux 9 Slim, FIPS-capable) with `claude`, `git`, `uv`, and a pinned Python toolchain pre-installed.
|
|
14
|
+
- A consistent ruleset (`AGENTS.md` + `rules/`) injected into Claude's system prompt so behavior is the same across projects: tests before commits, no force-push, show command output, pytest-only, etc.
|
|
15
|
+
- Gate commands (`gate-check`, `gate-commit`, `gate-push`) that enforce those rules at commit-time.
|
|
16
|
+
- Task-specific workflows that load instructions, set up the work environment, and (optionally) drive a follow-up review cycle on the resulting MR.
|
|
17
|
+
|
|
18
|
+
## Quick Start
|
|
19
|
+
|
|
20
|
+
The `lmer` CLI provides a safe, containerized environment for AI-assisted development. The typical setup uses an existing Claude.ai subscription (no API key required) and installs from the `prep-release` branch for the latest features.
|
|
21
|
+
|
|
22
|
+
### 1. Authenticate Claude on the host (subscription users)
|
|
23
|
+
|
|
24
|
+
If you already use Claude Code with a Claude.ai subscription, run `/login` once on your host machine:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
claude # then run /login inside the Claude Code session
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This creates `~/.claude/.credentials.json`, which `lmer` automatically mounts into the container — no API key needed.
|
|
31
|
+
|
|
32
|
+
If you instead authenticate via API key, place it in `~/.lmer/.env` (see [API key alternative](#api-key-alternative) below).
|
|
33
|
+
|
|
34
|
+
### 2. Install lmer
|
|
35
|
+
|
|
36
|
+
Pick the branch that matches your needs:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Latest features — may be unstable
|
|
40
|
+
uv tool install lmer --from git+https://github.com/lmer2/lmer@prep-release
|
|
41
|
+
|
|
42
|
+
# Stable release
|
|
43
|
+
uv tool install lmer --from git+https://github.com/lmer2/lmer@main
|
|
44
|
+
|
|
45
|
+
# Local / editable (developer mode)
|
|
46
|
+
uv tool install -e lmer --from .
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
To upgrade later: `uv tool upgrade lmer`.
|
|
50
|
+
|
|
51
|
+
The container image is pulled automatically on first run from `ghcr.io/lmer2/lmer` — no manual build step is needed. If you can't reach GHCR, or want to develop on the container itself, build it locally from a clone:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
git clone https://github.com/lmer2/lmer /tmp/lmer-src
|
|
55
|
+
lmer build --local /tmp/lmer-src
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Override the pull source with `LMER_REGISTRY=<host>/<path>` for self-hosted registries.
|
|
59
|
+
|
|
60
|
+
### 3. Configure a work repo
|
|
61
|
+
|
|
62
|
+
`lmer` requires a **work repo** — a git repository it uses to persist worklogs, gate-check results, and per-project notes across sessions. The `work` CLI inside the container actively `pull`s and `push`es to it, so a remote git repository is required (a bind-mounted local directory would have nothing to push to).
|
|
63
|
+
|
|
64
|
+
Set up:
|
|
65
|
+
|
|
66
|
+
1. Create an empty repository on a git host you can read/write — GitLab (cloud or self-hosted) or GitHub both work. A personal/private repo is fine.
|
|
67
|
+
2. Point `lmer` at it and supply a token the container will use for clone/pull/push, via `~/.lmer/.env`:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
mkdir -p ~/.lmer
|
|
71
|
+
cat >> ~/.lmer/.env <<'EOF'
|
|
72
|
+
LMER_WORK_REPO=git@github.com:<you>/lmer-work.git
|
|
73
|
+
|
|
74
|
+
# Dedicated work-repo token. Provider-agnostic — works for GitLab,
|
|
75
|
+
# GitHub, or self-hosted. Highest-priority lookup for the work repo,
|
|
76
|
+
# so it stays isolated from any per-host tokens used to clone the
|
|
77
|
+
# target repos you point `lmer chat` at.
|
|
78
|
+
LMER_WORK_REPO_TOKEN=<your-pat>
|
|
79
|
+
EOF
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The token needs read + write on the work repo. lmer will rewrite the SSH URL to HTTPS-with-token automatically when a token is present.
|
|
83
|
+
|
|
84
|
+
SSH instead of HTTPS works too — keep the `git@…` URL, drop the token line, and forward an SSH agent into the container (lmer prints the exact commands when no key is configured).
|
|
85
|
+
|
|
86
|
+
Subsequent `lmer chat <repo>` runs will clone the work repo into the container at `/work` and push updates back at the end of the session.
|
|
87
|
+
|
|
88
|
+
### Common options
|
|
89
|
+
|
|
90
|
+
Targets can be a repo URL, a PR/MR/issue URL (lmer extracts the base repo), a local git path, or omitted to infer from the current directory's git remote:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Remote repo
|
|
94
|
+
lmer chat https://gitlab.com/group/project.git
|
|
95
|
+
|
|
96
|
+
# GitHub PR or GitLab MR/issue URL — base repo is auto-extracted
|
|
97
|
+
lmer chat https://github.com/org/repo/pull/123
|
|
98
|
+
lmer chat https://gitlab.com/group/project/-/merge_requests/456
|
|
99
|
+
lmer chat https://gitlab.com/group/project/-/issues/31
|
|
100
|
+
|
|
101
|
+
# Local checkout (extracts remote URL)
|
|
102
|
+
lmer chat /path/to/repo
|
|
103
|
+
|
|
104
|
+
# Infer from current directory
|
|
105
|
+
cd /path/to/repo && lmer chat
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Other useful flags:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Checkout specific branch or ref
|
|
112
|
+
lmer chat https://gitlab.com/group/project.git --branch feature/x
|
|
113
|
+
|
|
114
|
+
# Get shell access
|
|
115
|
+
lmer chat https://gitlab.com/group/project.git --exec -- bash
|
|
116
|
+
|
|
117
|
+
# Match host UID for SSH agent permissions
|
|
118
|
+
lmer chat https://gitlab.com/group/project.git --match-uid --exec -- bash
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
See [docs/LMER-CLI.md](docs/LMER-CLI.md) for complete CLI documentation.
|
|
122
|
+
|
|
123
|
+
### API key alternative
|
|
124
|
+
|
|
125
|
+
If you don't have a Claude subscription, place your API key in `~/.lmer/.env`:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
mkdir -p ~/.lmer
|
|
129
|
+
cat > ~/.lmer/.env <<'EOF'
|
|
130
|
+
CLAUDE_API_KEY=your-claude-key
|
|
131
|
+
GITLAB_TOKEN=your-gitlab-token
|
|
132
|
+
EOF
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
See [docs/AUTHENTICATION.md](docs/AUTHENTICATION.md) for the full authentication reference.
|
|
136
|
+
|
|
137
|
+
See [docs/CONTAINER.md](docs/CONTAINER.md) for detailed container documentation.
|
|
138
|
+
|
|
139
|
+
### Why Oracle Linux 9 / FIPS?
|
|
140
|
+
|
|
141
|
+
The container is built on `oraclelinux:9-slim-fips`. This base satisfies a FIPS 140-2 compliance requirement: cryptographic operations (TLS, hashing for signed commits, etc.) inside the container must run against a validated module. Oracle Linux 9 ships a validated OpenSSL and exposes `/proc/sys/crypto/fips_enabled`, which `make fips-check` verifies.
|
|
142
|
+
|
|
143
|
+
If you do not need FIPS, the image still works fine — it just trades a smaller base layer for a validated one. Slimmer Debian/Alpine-based images are not currently supported out of the box; the Containerfile is the single source of truth and contributions for an opt-in alternative base are welcome.
|
|
144
|
+
|
|
145
|
+
## Developer setup
|
|
146
|
+
|
|
147
|
+
For working on lmer itself (rather than just using it), clone the repo and build from source:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
git clone https://github.com/lmer2/lmer ~/Agents/global
|
|
151
|
+
cd ~/Agents/global
|
|
152
|
+
|
|
153
|
+
# Container workflow (FIPS-compliant)
|
|
154
|
+
make build # Build the container image
|
|
155
|
+
make lmer # Run lmer with Claude in a fresh container
|
|
156
|
+
make test # Run tests locally
|
|
157
|
+
make help # See all targets
|
|
158
|
+
|
|
159
|
+
# Or local Python environment
|
|
160
|
+
uv sync
|
|
161
|
+
uv run pre-commit install
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
> **Path note:** `~/Agents/global` is the conventional host checkout location. Hooks and scripts inside the container refer to `/Agents/global` — that's the **in-container** mount path, populated by lmer at start. You do not need to create `/Agents/global` on the host.
|
|
165
|
+
|
|
166
|
+
### Rules outside lmer
|
|
167
|
+
|
|
168
|
+
Rules are injected automatically when running via `lmer` (which uses [libexec/claude-runner.sh](libexec/claude-runner.sh) internally). For standalone `claude` sessions, pass the rules file explicitly:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
claude --append-system-prompt-file ~/Agents/global/AGENTS.md
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
User-specific additions: create `~/.lmer/AGENTS.md` — the runner appends it after the workspace config automatically.
|
|
175
|
+
|
|
176
|
+
## Releasing
|
|
177
|
+
|
|
178
|
+
Releases to [PyPI](https://pypi.org/project/lmer/) are driven by git tags on `lmer2/lmer`. The full pipeline lives in `.github/workflows/release.yml`.
|
|
179
|
+
|
|
180
|
+
To cut a release:
|
|
181
|
+
|
|
182
|
+
1. Bump `version` in `pyproject.toml` (e.g. `0.1.0` → `0.1.1`).
|
|
183
|
+
2. Update `CHANGELOG.yaml` with the release notes.
|
|
184
|
+
3. Commit and merge to `main` through the normal PR flow.
|
|
185
|
+
4. Tag the merge commit and push the tag:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
git switch main && git pull --ff-only
|
|
189
|
+
git tag v0.1.1
|
|
190
|
+
git push origin v0.1.1
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
5. Watch the `Release to PyPI` workflow in the Actions tab. It will:
|
|
194
|
+
- Verify the tag version matches `pyproject.toml`.
|
|
195
|
+
- Re-run `pre-commit` and `pytest`.
|
|
196
|
+
- Build the wheel and sdist with `uv build`.
|
|
197
|
+
- Publish to PyPI using Trusted Publishing (no stored secrets).
|
|
198
|
+
- Create a GitHub Release with the artifacts attached.
|
|
199
|
+
|
|
200
|
+
### Prerequisites (one-time)
|
|
201
|
+
|
|
202
|
+
- A PyPI **Trusted Publisher** binding must exist for project `lmer` pointing at workflow `release.yml` on `lmer2/lmer`, environment `pypi`. Configure at https://pypi.org/manage/project/lmer/settings/publishing/.
|
|
203
|
+
- A GitHub **environment** named `pypi` must exist on `lmer2/lmer` (Settings → Environments).
|
|
204
|
+
|
|
205
|
+
Both are set up by the maintainer; they don't need to be touched per release.
|
|
206
|
+
|
|
207
|
+
## Documentation
|
|
208
|
+
|
|
209
|
+
See [docs/INDEX.md](docs/INDEX.md) for the full documentation index. Common starting points: [LMER-CLI.md](docs/LMER-CLI.md), [CONTAINER.md](docs/CONTAINER.md), [AUTHENTICATION.md](docs/AUTHENTICATION.md), [TASKDEFS.md](docs/TASKDEFS.md).
|
|
210
|
+
|
|
211
|
+
The rules Claude follows live in [AGENTS.md](AGENTS.md) and [rules/](rules/) (split by topic: git, testing, code-quality, security, documentation, ci-cd, dependencies). Rule-reading and commit-gate commands (`rgr`, `rgr-git`, `rgrpc`, `pc`, …) are documented in [hooks/README.md](hooks/README.md).
|