@aeolus-fleet/trierarch 0.18.0 → 0.20.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.
- package/LICENSE +201 -0
- package/README.md +11 -11
- package/dist/adapters/claude-code.d.ts +5 -3
- package/dist/adapters/claude-code.js +2 -0
- package/dist/adapters/claude-code.js.map +1 -1
- package/dist/adapters/codex.d.ts +5 -3
- package/dist/adapters/codex.js +2 -0
- package/dist/adapters/codex.js.map +1 -1
- package/dist/adapters/flags.d.ts +2 -2
- package/dist/adapters/flags.js +2 -2
- package/dist/adapters/git-workspace.js +2 -2
- package/dist/adapters/git-workspace.js.map +1 -1
- package/dist/adapters/harnesses.d.ts +6 -4
- package/dist/adapters/harnesses.js +11 -5
- package/dist/adapters/harnesses.js.map +1 -1
- package/dist/adapters/json-state.d.ts +6 -4
- package/dist/adapters/json-state.js +28 -23
- package/dist/adapters/json-state.js.map +1 -1
- package/dist/adapters/rest-fleet.d.ts +4 -3
- package/dist/adapters/rest-fleet.js +24 -13
- package/dist/adapters/rest-fleet.js.map +1 -1
- package/dist/adapters/service.js +1 -1
- package/dist/adapters/style.d.ts +3 -3
- package/dist/adapters/style.js +1 -2
- package/dist/adapters/style.js.map +1 -1
- package/dist/cli/config-check.d.ts +3 -3
- package/dist/cli/config-check.js +1 -1
- package/dist/cli/config-check.js.map +1 -1
- package/dist/cli/init.d.ts +2 -2
- package/dist/cli/init.js +1 -1
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/list.d.ts +4 -3
- package/dist/cli/list.js +1 -1
- package/dist/cli/list.js.map +1 -1
- package/dist/cli/main.js +2 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/run.d.ts +12 -7
- package/dist/cli/run.js +53 -26
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/status.d.ts +3 -2
- package/dist/cli/status.js +6 -5
- package/dist/cli/status.js.map +1 -1
- package/dist/core/check-settings.d.ts +25 -0
- package/dist/core/check-settings.js +52 -0
- package/dist/core/check-settings.js.map +1 -0
- package/dist/core/entry.d.ts +24 -29
- package/dist/core/entry.js +3 -1
- package/dist/core/entry.js.map +1 -1
- package/dist/core/handle-delivery.d.ts +9 -14
- package/dist/core/handle-delivery.js +4 -133
- package/dist/core/handle-delivery.js.map +1 -1
- package/dist/core/machine.d.ts +12 -0
- package/dist/core/machine.js +15 -0
- package/dist/core/machine.js.map +1 -0
- package/dist/core/options-schema.d.ts +7 -0
- package/dist/core/options-schema.js +10 -0
- package/dist/core/options-schema.js.map +1 -0
- package/dist/core/ports.d.ts +72 -9
- package/dist/core/reconciler.d.ts +50 -12
- package/dist/core/reconciler.js +129 -25
- package/dist/core/reconciler.js.map +1 -1
- package/dist/core/report-self.d.ts +16 -0
- package/dist/core/report-self.js +52 -0
- package/dist/core/report-self.js.map +1 -0
- package/dist/core/run-pass.d.ts +8 -7
- package/dist/core/run-pass.js +140 -70
- package/dist/core/run-pass.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
- package/dist/core/answers.d.ts +0 -4
- package/dist/core/answers.js +0 -32
- package/dist/core/answers.js.map +0 -1
- package/dist/core/check-want.d.ts +0 -32
- package/dist/core/check-want.js +0 -80
- package/dist/core/check-want.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for 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 [yyyy] [name of copyright owner]
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @aeolus-fleet/trierarch
|
|
2
2
|
|
|
3
|
-
Keeps the ships
|
|
3
|
+
Keeps the ships whose crew requests are assigned to it crewed on the machine it runs on: it starts, restarts, wakes and stops their sessions, and writes each request's status. It crews with `crew:run`, which reaches only the ships assigned to it; it never commissions, retires or picks them. The trierarch plugin assigns them. What a trierarch does is in [docs/trierarch.md](../../docs/trierarch.md); how this package is built is in [docs/architecture.md](../../docs/architecture.md#the-trierarch). Optional, like squadrons.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -12,8 +12,8 @@ npm install --global @aeolus-fleet/trierarch
|
|
|
12
12
|
|
|
13
13
|
That gives the command `aeolus-trierarch`.
|
|
14
14
|
|
|
15
|
-
1.
|
|
16
|
-
2. Set up the machine:
|
|
15
|
+
1. Join the machine through the trierarch plugin (`machines.join`): it commissions the trierarch's own ship, type `trierarch` with `crew:run`, and answers its starting prompt and a setup line, `npx @aeolus-fleet/trierarch init --fleet-url <url> --ship-id <id> --secret <secret>`, shown once.
|
|
16
|
+
2. Set up the machine with that line, or with `init` alone, which asks for what is missing:
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
19
|
aeolus-trierarch init
|
|
@@ -25,7 +25,7 @@ That gives the command `aeolus-trierarch`.
|
|
|
25
25
|
- where `codex` runs or Codex is configured already: whether to offer Codex, and whether it launches with `--dangerously-bypass-approvals-and-sandbox` (no unless you say yes). Every Codex session launches with `--no-daemon` whatever the flags, so stopping it stops its work;
|
|
26
26
|
- the repositories it may make worktrees of, by name and path;
|
|
27
27
|
- the folders it may crew a ship in as they are, by name and path. It trusts each one, so a session there starts with no trust question;
|
|
28
|
-
- the caps: how many ships
|
|
28
|
+
- the caps: how many ships it takes, how many sessions run at once.
|
|
29
29
|
|
|
30
30
|
It writes `~/.aeolus/trierarch/config.json`, with `config.schema.json` beside it so an editor checks it. When the configuration offers Codex, it answers Codex's one-time questions ahead too, through `codex app-server` as Codex's own dialogs do: it trusts each configured repository and folder in `~/.codex/config.toml` (a repository covers its worktrees), and trusts the aeolus plugin's hooks, without which a Codex session marks no turn and is never woken. A plugin update changes the hooks: run `aeolus-trierarch init` again after updating the aeolus plugin for Codex. It answers Claude Code's one-time questions ahead, so a session nobody watches never waits on one: it trusts the worktree root in `~/.claude.json`, which covers every worktree under it, and each configured folder (on every run, so a folder added since is trusted too), and, when the sessions skip permissions, offers to accept bypass permissions mode in `~/.claude/settings.json`. Then it offers to install and start the service: a launchd agent on macOS (`~/Library/LaunchAgents/dev.aeolus-fleet.trierarch.plist`), a systemd user unit on Linux (`aeolus-trierarch.service`), started at login and again whenever it stops.
|
|
31
31
|
|
|
@@ -38,14 +38,14 @@ That gives the command `aeolus-trierarch`.
|
|
|
38
38
|
| Command | What it does |
|
|
39
39
|
| --- | --- |
|
|
40
40
|
| `aeolus-trierarch status` | The installed version, and the one the service runs when it differs (then it says to restart), the service (running, pid, since), the fleet and the trierarch's own lease, the caps in use, the entries by state, kept worktrees and orphans |
|
|
41
|
-
| `aeolus-trierarch list` | The
|
|
42
|
-
| `aeolus-trierarch logs [--lines <n>] [--follow]` | The last lines of `~/.aeolus/trierarch/logs/trierarch.log`, and with `--follow` each new one. The log holds one JSON record per line: each action the loop takes for a ship (crew, launch, wake, report, release,
|
|
41
|
+
| `aeolus-trierarch list` | The ships it crews: ship, state, harness, workspace, since, restarts |
|
|
42
|
+
| `aeolus-trierarch logs [--lines <n>] [--follow]` | The last lines of `~/.aeolus/trierarch/logs/trierarch.log`, and with `--follow` each new one. The log holds one JSON record per line: each action the loop takes for a ship (crew, launch, wake, report, release, confirm, forget, leave, stop) as `{ time, shipId, shipName, action, outcome, next }`, where `next` says what happens after a failure, or a message as `{ time, level, message }`. `logs` renders them as text, and `--json` gives the records as they are (a line that is no record as `{ line }`). `run` in a terminal writes the text |
|
|
43
43
|
| `aeolus-trierarch config check` | Checks the configuration and gives the flags each harness launches with, and each option value's flags. Then the command each harness launches on a first start and on a restart, with each flag marked `(configuration)` or `(adapter)` when the adapter adds it itself (`--no-daemon` for Codex, `--continue` on a Claude Code restart, the remote-control session name) |
|
|
44
44
|
| `aeolus-trierarch start`, `stop`, `restart` | The service. `stop` returns once the trierarch has exited; a stopped one starts again at the next login. Restart it after you change the configuration |
|
|
45
45
|
| `aeolus-trierarch upgrade [version]` | Installs the given version, or the latest on npm, globally and pinned to it. Then it stops the old process and starts the new one, and shows `status`. Sessions keep running: the new process takes them over. If the install fails, the old version keeps running. It never upgrades on its own |
|
|
46
46
|
| `aeolus-trierarch install [--no-load]` | Installs the service; over a running one it waits for the old process to exit, then loads it again. With `--no-load` it only writes its file |
|
|
47
47
|
| `aeolus-trierarch uninstall` | Removes the service and stops every session. It deletes nothing else: it lists the worktrees it leaves, and keeps its own files under `~/.aeolus/trierarch/` |
|
|
48
|
-
| `aeolus-trierarch run` | What the service runs: keeps the
|
|
48
|
+
| `aeolus-trierarch run` | What the service runs: keeps the ships assigned to it crewed until stopped |
|
|
49
49
|
| `aeolus-trierarch --version`, `-v` | The installed version |
|
|
50
50
|
|
|
51
51
|
Every command takes `--json`, so a ship can read what it says, and `--config <path>`. `status`, `list` and `logs` read what is on the machine and send no message; `status` asks the fleet `whoami` once, for the lease.
|
|
@@ -79,10 +79,10 @@ To stop the trierarch: `aeolus-trierarch stop`, or `aeolus-trierarch uninstall`
|
|
|
79
79
|
}
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
- **caps**: how many ships it
|
|
83
|
-
- **repositories**: by name. A
|
|
82
|
+
- **caps**: how many ships it takes (the trierarch plugin assigns it no more), and how many sessions run at once.
|
|
83
|
+
- **repositories**: by name. A crew request for a worktree of one gets a git worktree under `~/.aeolus/trierarch/worktrees/<repository>/<ship>`, detached at the settings' ref or the repository's HEAD. It fetches the repository first, and a ref `origin` has a branch for checks out that remote branch (`origin/<ref>`), so a ship starts from current code; when the fetch fails it uses what the repository has. `worktreeRoot` moves that root.
|
|
84
84
|
- **folders**: by name, used as they are, one ship per folder, never removed.
|
|
85
|
-
- **harnesses**: `claude-code`, `codex` or both: the flags every launch gets, and named options. A
|
|
85
|
+
- **harnesses**: `claude-code`, `codex` or both: the flags every launch gets, and named options. A crew request's settings pick option values by name; they never add a flag or carry a path. There is no policy on which flags: put `--dangerously-skip-permissions` in `flags` if you want it. The trierarch never adds a flag by itself. With `--remote-control` and no name after it, each session is named `[<repository or folder>] <ship>`, such as `[aeolus-fleet] trial-1`, so it is easy to find among your remote-control sessions.
|
|
86
86
|
|
|
87
87
|
`aeolus-trierarch init` writes caps, repositories, folders, and Claude Code's and Codex's flags; edit the file for options and `worktreeRoot`, then `aeolus-trierarch config check` and `aeolus-trierarch restart`.
|
|
88
88
|
|
|
@@ -91,7 +91,7 @@ The trierarch finds the aeolus plugin in each offered harness's plugin cache (th
|
|
|
91
91
|
## What is here
|
|
92
92
|
|
|
93
93
|
- **Core** (`src/core`), with no framework, adapter or clock of its own:
|
|
94
|
-
- the
|
|
94
|
+
- its entries, one per ship it crews, and the settings it rechecks before crewing;
|
|
95
95
|
- a pure Reconciler, carried out by the run pass;
|
|
96
96
|
- the restart policy: 5 s, 30 s, 2 min, then 10 min, with a budget of 5 restarts an hour;
|
|
97
97
|
- the ports.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { HarnessPort } from '../core/ports.js';
|
|
1
|
+
import type { TrierarchConfiguration } from '@aeolus-fleet/common';
|
|
2
|
+
import type { AdapterFlag, HarnessPort } from '../core/ports.js';
|
|
3
3
|
import { type CommandPart } from './command-line.js';
|
|
4
4
|
import { type AeolusPlugin } from './plugin-identity.js';
|
|
5
5
|
import type { Tmux } from './tmux.js';
|
|
@@ -11,7 +11,9 @@ import type { Tmux } from './tmux.js';
|
|
|
11
11
|
* files.
|
|
12
12
|
*/
|
|
13
13
|
export declare const WAKE_PROMPT = "/aeolus:wake";
|
|
14
|
-
export declare const CLAUDE_CODE_ADAPTER_FLAGS: readonly
|
|
14
|
+
export declare const CLAUDE_CODE_ADAPTER_FLAGS: readonly AdapterFlag[];
|
|
15
|
+
/** The flags of Claude Code that are risky: it then runs every tool without asking (#326). */
|
|
16
|
+
export declare const CLAUDE_CODE_RISKY_FLAGS: readonly string[];
|
|
15
17
|
/** `claude`, the flags, `--continue` on a restart, then the prompt last after `--`: no flag takes it (`--remote-control [name]` has an optional value), and it never reads as a flag. */
|
|
16
18
|
export declare function claudeCodeCommandLine(at: {
|
|
17
19
|
flags: readonly string[];
|
|
@@ -13,6 +13,8 @@ const REMOTE_CONTROL = '--remote-control';
|
|
|
13
13
|
const CONTINUE = '--continue';
|
|
14
14
|
const END_OF_FLAGS = '--';
|
|
15
15
|
export const CLAUDE_CODE_ADAPTER_FLAGS = [{ flag: CONTINUE, when: 'restart' }];
|
|
16
|
+
/** The flags of Claude Code that are risky: it then runs every tool without asking (#326). */
|
|
17
|
+
export const CLAUDE_CODE_RISKY_FLAGS = ['--dangerously-skip-permissions'];
|
|
16
18
|
/**
|
|
17
19
|
* The configured flags, with a name for the remote-control session where the
|
|
18
20
|
* operator gave `--remote-control` without one: `[<repository or folder>]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAC;AAG/E;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAC1C,MAAM,QAAQ,GAAG,YAAY,CAAC;AAC9B,MAAM,YAAY,GAAG,IAAI,CAAC;AAE1B,MAAM,CAAC,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAC9E,OAAO,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CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,QAAQ,EAAE;gBACrG,MAAM;gBACN,YAAY;gBACZ,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,SAAS,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;aACnE,CAAC,CAAC;YACH,MAAM,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QACD,IAAI,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YACzB,MAAM,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;QACrD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/adapters/codex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { HarnessPort } from '../core/ports.js';
|
|
1
|
+
import type { TrierarchConfiguration } from '@aeolus-fleet/common';
|
|
2
|
+
import type { AdapterFlag, HarnessPort } from '../core/ports.js';
|
|
3
3
|
import { type CommandPart } from './command-line.js';
|
|
4
4
|
import { type AeolusPlugin } from './plugin-identity.js';
|
|
5
5
|
import type { Tmux } from './tmux.js';
|
|
@@ -16,7 +16,9 @@ export declare const WAKE_PROMPT = "$aeolus-wake";
|
|
|
16
16
|
* right after fast typing as part of a paste, a newline, and submits nothing.
|
|
17
17
|
*/
|
|
18
18
|
export declare const CODEX_TYPING_SETTLE_MS = 1000;
|
|
19
|
-
export declare const CODEX_ADAPTER_FLAGS: readonly
|
|
19
|
+
export declare const CODEX_ADAPTER_FLAGS: readonly AdapterFlag[];
|
|
20
|
+
/** The flags of Codex that are risky: it then runs every command without approval and outside its sandbox (#326). */
|
|
21
|
+
export declare const CODEX_RISKY_FLAGS: readonly string[];
|
|
20
22
|
/** `codex`, or `codex resume --last` on a restart, then the configured flags, --no-daemon once, and the prompt last after `--`, so it never reads as a flag. */
|
|
21
23
|
export declare function codexCommandLine(at: {
|
|
22
24
|
flags: readonly string[];
|
package/dist/adapters/codex.js
CHANGED
|
@@ -22,6 +22,8 @@ export const CODEX_TYPING_SETTLE_MS = 1000;
|
|
|
22
22
|
const NO_DAEMON = '--no-daemon';
|
|
23
23
|
const END_OF_FLAGS = '--';
|
|
24
24
|
export const CODEX_ADAPTER_FLAGS = [{ flag: NO_DAEMON, when: 'always' }];
|
|
25
|
+
/** The flags of Codex that are risky: it then runs every command without approval and outside its sandbox (#326). */
|
|
26
|
+
export const CODEX_RISKY_FLAGS = ['--dangerously-bypass-approvals-and-sandbox'];
|
|
25
27
|
/** `codex`, or `codex resume --last` on a restart, then the configured flags, --no-daemon once, and the prompt last after `--`, so it never reads as a flag. */
|
|
26
28
|
export function codexCommandLine(at) {
|
|
27
29
|
const program = at.program ?? 'codex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/adapters/codex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAC;AAG/E;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C;;;;GAIG;AACH,MAAM,SAAS,GAAG,aAAa,CAAC;AAChC,MAAM,YAAY,GAAG,IAAI,CAAC;AAE1B,MAAM,CAAC,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/adapters/codex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,OAAO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nessConfiguration = TrierarchConfiguration['harnesses'][string];
|
|
3
3
|
/**
|
|
4
4
|
* The flags a launch gets: the harness's own, then each option's value as the
|
|
5
|
-
*
|
|
5
|
+
* settings picked it, or its default. Settings pick names only; the flags come
|
|
6
6
|
* from the configuration alone.
|
|
7
7
|
*/
|
|
8
8
|
export declare function effectiveFlags(harness: HarnessConfiguration, options: Readonly<Record<string, string>>): string[];
|
|
9
|
-
/** What `config check` prints: per harness, the flags
|
|
9
|
+
/** What `config check` prints: per harness, the flags settings with no options launch with, and each option's values. */
|
|
10
10
|
export declare function describeFlags(configuration: TrierarchConfiguration): string;
|
|
11
11
|
export {};
|
package/dist/adapters/flags.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The flags a launch gets: the harness's own, then each option's value as the
|
|
3
|
-
*
|
|
3
|
+
* settings picked it, or its default. Settings pick names only; the flags come
|
|
4
4
|
* from the configuration alone.
|
|
5
5
|
*/
|
|
6
6
|
export function effectiveFlags(harness, options) {
|
|
@@ -10,7 +10,7 @@ export function effectiveFlags(harness, options) {
|
|
|
10
10
|
});
|
|
11
11
|
return [...harness.flags, ...picked];
|
|
12
12
|
}
|
|
13
|
-
/** What `config check` prints: per harness, the flags
|
|
13
|
+
/** What `config check` prints: per harness, the flags settings with no options launch with, and each option's values. */
|
|
14
14
|
export function describeFlags(configuration) {
|
|
15
15
|
return Object.entries(configuration.harnesses)
|
|
16
16
|
.map(([name, harness]) => {
|
|
@@ -4,7 +4,7 @@ import { runCommand } from './run-command.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* Workspaces (docs/architecture.md, "First adapters"): a git worktree of a
|
|
6
6
|
* configured repository under the worktree root, one folder per ship
|
|
7
|
-
* (`<root>/<repository>/<ship>`), detached at the
|
|
7
|
+
* (`<root>/<repository>/<ship>`), detached at the settings' ref or the
|
|
8
8
|
* repository's HEAD; or a configured folder used as it is. The repository is
|
|
9
9
|
* fetched first, and a ref the remote has a branch for is that remote branch,
|
|
10
10
|
* so a ship starts from current code, not from a stale local branch. A fetch
|
|
@@ -64,7 +64,7 @@ export function createGitWorkspace(options) {
|
|
|
64
64
|
const found = [];
|
|
65
65
|
for (const repository of await readdir(root).catch(() => [])) {
|
|
66
66
|
for (const ship of await readdir(join(root, repository)).catch(() => [])) {
|
|
67
|
-
found.push({ path: join(root, repository, ship) });
|
|
67
|
+
found.push({ path: join(root, repository, ship), repository, name: ship });
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
return found;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-workspace.js","sourceRoot":"","sources":["../../src/adapters/git-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAKhD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;GAQG;AAEH,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxB,MAAM,UAAU,kBAAkB,CAAC,OAAgE;IACjG,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACxC,MAAM,GAAG,GAAG,KAAK,EAAE,IAAuB,EAAmB,EAAE;QAC7D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC3E,CAAC;QACD,OAAO,MAAM,CAAC,MAAM,CAAC;IACvB,CAAC,CAAC;IACF,oFAAoF;IACpF,MAAM,OAAO,GAAG,KAAK,EAAE,UAA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I,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC7E,CAAC;YACH,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { HarnessPort } from '../core/ports.js';
|
|
1
|
+
import type { TrierarchConfiguration } from '@aeolus-fleet/common';
|
|
2
|
+
import type { AdapterFlag, HarnessPort } from '../core/ports.js';
|
|
3
3
|
import type { CommandPart } from './command-line.js';
|
|
4
4
|
import type { AeolusPlugin } from './plugin-identity.js';
|
|
5
5
|
import type { Tmux } from './tmux.js';
|
|
6
6
|
/** The flags each configured harness's adapter adds itself, for describe. */
|
|
7
|
-
export declare function adapterFlagsOf(configuration: TrierarchConfiguration): Record<string, readonly
|
|
7
|
+
export declare function adapterFlagsOf(configuration: TrierarchConfiguration): Record<string, readonly AdapterFlag[]>;
|
|
8
|
+
/** The flags each configured harness's adapter calls risky, for the report (#326). */
|
|
9
|
+
export declare function riskyFlagsOf(configuration: TrierarchConfiguration): Record<string, readonly string[]>;
|
|
8
10
|
/** What a harness launches with the given flags, on a first start and a restart, for config check; undefined without an adapter. */
|
|
9
11
|
export declare function commandLinesOf(harness: string, flags: readonly string[]): {
|
|
10
12
|
firstStart: CommandPart[];
|
|
@@ -15,7 +17,7 @@ export declare function commandLinesOf(harness: string, flags: readonly string[]
|
|
|
15
17
|
* the aeolus plugin its harness installed. A plugin is looked for only for a
|
|
16
18
|
* harness on offer, so a machine without Codex needs no Codex plugin. A
|
|
17
19
|
* configured harness this trierarch has no adapter for is refused at start,
|
|
18
|
-
* so no
|
|
20
|
+
* so no request for it is ever crewed.
|
|
19
21
|
*/
|
|
20
22
|
export declare function createHarnesses(at: {
|
|
21
23
|
configuration: TrierarchConfiguration;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { CLAUDE_CODE_ADAPTER_FLAGS, claudeCodeCommandLine, createClaudeCodeHarness, WAKE_PROMPT as CLAUDE_CODE_WAKE_PROMPT } from './claude-code.js';
|
|
2
|
-
import { CODEX_ADAPTER_FLAGS, codexCommandLine, createCodexHarness, WAKE_PROMPT as CODEX_WAKE_PROMPT } from './codex.js';
|
|
1
|
+
import { CLAUDE_CODE_ADAPTER_FLAGS, CLAUDE_CODE_RISKY_FLAGS, claudeCodeCommandLine, createClaudeCodeHarness, WAKE_PROMPT as CLAUDE_CODE_WAKE_PROMPT } from './claude-code.js';
|
|
2
|
+
import { CODEX_ADAPTER_FLAGS, CODEX_RISKY_FLAGS, codexCommandLine, createCodexHarness, WAKE_PROMPT as CODEX_WAKE_PROMPT } from './codex.js';
|
|
3
3
|
import { findAeolusPlugin } from './plugin.js';
|
|
4
|
-
/** What
|
|
4
|
+
/** What the settings' first prompt and a ship's session name stand for where config check shows a command line. */
|
|
5
5
|
const FIRST_PROMPT = '<first prompt>';
|
|
6
6
|
const SESSION_NAME = '[<repository or folder>] <ship>';
|
|
7
|
-
/** Per harness this trierarch has an adapter for: the flags it adds itself, and its command line for given flags. */
|
|
7
|
+
/** Per harness this trierarch has an adapter for: the flags it adds itself, its risky flags, and its command line for given flags. */
|
|
8
8
|
const ADAPTERS = {
|
|
9
9
|
'claude-code': {
|
|
10
10
|
adapterFlags: CLAUDE_CODE_ADAPTER_FLAGS,
|
|
11
|
+
riskyFlags: CLAUDE_CODE_RISKY_FLAGS,
|
|
11
12
|
commandLine: ({ flags, isFirstStart }) => claudeCodeCommandLine({ flags, sessionName: SESSION_NAME, prompt: isFirstStart ? FIRST_PROMPT : CLAUDE_CODE_WAKE_PROMPT, isFirstStart }),
|
|
12
13
|
},
|
|
13
14
|
codex: {
|
|
14
15
|
adapterFlags: CODEX_ADAPTER_FLAGS,
|
|
16
|
+
riskyFlags: CODEX_RISKY_FLAGS,
|
|
15
17
|
commandLine: ({ flags, isFirstStart }) => codexCommandLine({ flags, prompt: isFirstStart ? FIRST_PROMPT : CODEX_WAKE_PROMPT, isFirstStart }),
|
|
16
18
|
},
|
|
17
19
|
};
|
|
@@ -19,6 +21,10 @@ const ADAPTERS = {
|
|
|
19
21
|
export function adapterFlagsOf(configuration) {
|
|
20
22
|
return Object.fromEntries(Object.keys(configuration.harnesses).map((name) => [name, ADAPTERS[name]?.adapterFlags ?? []]));
|
|
21
23
|
}
|
|
24
|
+
/** The flags each configured harness's adapter calls risky, for the report (#326). */
|
|
25
|
+
export function riskyFlagsOf(configuration) {
|
|
26
|
+
return Object.fromEntries(Object.keys(configuration.harnesses).map((name) => [name, ADAPTERS[name]?.riskyFlags ?? []]));
|
|
27
|
+
}
|
|
22
28
|
/** What a harness launches with the given flags, on a first start and a restart, for config check; undefined without an adapter. */
|
|
23
29
|
export function commandLinesOf(harness, flags) {
|
|
24
30
|
const adapter = ADAPTERS[harness];
|
|
@@ -29,7 +35,7 @@ export function commandLinesOf(harness, flags) {
|
|
|
29
35
|
* the aeolus plugin its harness installed. A plugin is looked for only for a
|
|
30
36
|
* harness on offer, so a machine without Codex needs no Codex plugin. A
|
|
31
37
|
* configured harness this trierarch has no adapter for is refused at start,
|
|
32
|
-
* so no
|
|
38
|
+
* so no request for it is ever crewed.
|
|
33
39
|
*/
|
|
34
40
|
export async function createHarnesses(at) {
|
|
35
41
|
const { configuration, homeDirectory, env, sessions } = at;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harnesses.js","sourceRoot":"","sources":["../../src/adapters/harnesses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,WAAW,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"harnesses.js","sourceRoot":"","sources":["../../src/adapters/harnesses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,WAAW,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC9K,OAAO,EAAE,mB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,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9J,CAAC;IACD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -2,9 +2,11 @@ import type { StatePort } from '../core/ports.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* The state store: `~/.aeolus/trierarch/state.json`, written whole and
|
|
4
4
|
* atomically (a temporary file, then a rename), so a stop mid-write leaves the
|
|
5
|
-
* last state. It holds no secret.
|
|
6
|
-
*
|
|
5
|
+
* last state. It holds no secret. A state file of the 0.17 trierarch, whose
|
|
6
|
+
* ships are not migrated (decision 0013), is moved aside to
|
|
7
|
+
* `state.0.17.json` and the trierarch starts empty: its sessions are then
|
|
8
|
+
* strays, stopped by the loop.
|
|
7
9
|
*/
|
|
8
|
-
/**
|
|
9
|
-
export declare const
|
|
10
|
+
/** Where a 0.17 state file is moved, beside the new one. */
|
|
11
|
+
export declare const OLD_STATE_FILE = "state.0.17.json";
|
|
10
12
|
export declare function createJsonState(path: string): StatePort;
|