@virtengine/openfleet 0.25.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/.env.example +914 -0
- package/LICENSE +190 -0
- package/README.md +500 -0
- package/agent-endpoint.mjs +918 -0
- package/agent-hook-bridge.mjs +230 -0
- package/agent-hooks.mjs +1188 -0
- package/agent-pool.mjs +2403 -0
- package/agent-prompts.mjs +689 -0
- package/agent-sdk.mjs +141 -0
- package/anomaly-detector.mjs +1195 -0
- package/autofix.mjs +1294 -0
- package/claude-shell.mjs +708 -0
- package/cli.mjs +906 -0
- package/codex-config.mjs +1274 -0
- package/codex-model-profiles.mjs +135 -0
- package/codex-shell.mjs +762 -0
- package/config-doctor.mjs +613 -0
- package/config.mjs +1720 -0
- package/conflict-resolver.mjs +248 -0
- package/container-runner.mjs +450 -0
- package/copilot-shell.mjs +827 -0
- package/daemon-restart-policy.mjs +56 -0
- package/diff-stats.mjs +282 -0
- package/error-detector.mjs +829 -0
- package/fetch-runtime.mjs +34 -0
- package/fleet-coordinator.mjs +838 -0
- package/get-telegram-chat-id.mjs +71 -0
- package/git-safety.mjs +170 -0
- package/github-reconciler.mjs +403 -0
- package/hook-profiles.mjs +651 -0
- package/kanban-adapter.mjs +4491 -0
- package/lib/logger.mjs +645 -0
- package/maintenance.mjs +828 -0
- package/merge-strategy.mjs +1171 -0
- package/monitor.mjs +12207 -0
- package/openfleet.config.example.json +115 -0
- package/openfleet.schema.json +465 -0
- package/package.json +203 -0
- package/postinstall.mjs +187 -0
- package/pr-cleanup-daemon.mjs +978 -0
- package/preflight.mjs +408 -0
- package/prepublish-check.mjs +90 -0
- package/presence.mjs +328 -0
- package/primary-agent.mjs +282 -0
- package/publish.mjs +151 -0
- package/repo-root.mjs +29 -0
- package/restart-controller.mjs +100 -0
- package/review-agent.mjs +557 -0
- package/rotate-agent-logs.sh +133 -0
- package/sdk-conflict-resolver.mjs +973 -0
- package/session-tracker.mjs +880 -0
- package/setup.mjs +3937 -0
- package/shared-knowledge.mjs +410 -0
- package/shared-state-manager.mjs +841 -0
- package/shared-workspace-cli.mjs +199 -0
- package/shared-workspace-registry.mjs +537 -0
- package/shared-workspaces.json +18 -0
- package/startup-service.mjs +1070 -0
- package/sync-engine.mjs +1063 -0
- package/task-archiver.mjs +801 -0
- package/task-assessment.mjs +550 -0
- package/task-claims.mjs +924 -0
- package/task-complexity.mjs +581 -0
- package/task-executor.mjs +5111 -0
- package/task-store.mjs +753 -0
- package/telegram-bot.mjs +9281 -0
- package/telegram-sentinel.mjs +2010 -0
- package/ui/app.js +867 -0
- package/ui/app.legacy.js +1464 -0
- package/ui/app.monolith.js +2488 -0
- package/ui/components/charts.js +226 -0
- package/ui/components/chat-view.js +567 -0
- package/ui/components/command-palette.js +587 -0
- package/ui/components/diff-viewer.js +190 -0
- package/ui/components/forms.js +327 -0
- package/ui/components/kanban-board.js +451 -0
- package/ui/components/session-list.js +305 -0
- package/ui/components/shared.js +473 -0
- package/ui/index.html +70 -0
- package/ui/modules/api.js +297 -0
- package/ui/modules/icons.js +461 -0
- package/ui/modules/router.js +81 -0
- package/ui/modules/settings-schema.js +261 -0
- package/ui/modules/state.js +679 -0
- package/ui/modules/telegram.js +331 -0
- package/ui/modules/utils.js +270 -0
- package/ui/styles/animations.css +140 -0
- package/ui/styles/base.css +98 -0
- package/ui/styles/components.css +1915 -0
- package/ui/styles/kanban.css +286 -0
- package/ui/styles/layout.css +809 -0
- package/ui/styles/sessions.css +827 -0
- package/ui/styles/variables.css +188 -0
- package/ui/styles.css +141 -0
- package/ui/styles.monolith.css +1046 -0
- package/ui/tabs/agents.js +1417 -0
- package/ui/tabs/chat.js +74 -0
- package/ui/tabs/control.js +887 -0
- package/ui/tabs/dashboard.js +515 -0
- package/ui/tabs/infra.js +537 -0
- package/ui/tabs/logs.js +783 -0
- package/ui/tabs/settings.js +1487 -0
- package/ui/tabs/tasks.js +1385 -0
- package/ui-server.mjs +4073 -0
- package/update-check.mjs +465 -0
- package/utils.mjs +172 -0
- package/ve-kanban.mjs +654 -0
- package/ve-kanban.ps1 +1365 -0
- package/ve-kanban.sh +18 -0
- package/ve-orchestrator.mjs +340 -0
- package/ve-orchestrator.ps1 +6546 -0
- package/ve-orchestrator.sh +18 -0
- package/vibe-kanban-wrapper.mjs +41 -0
- package/vk-error-resolver.mjs +470 -0
- package/vk-log-stream.mjs +914 -0
- package/whatsapp-channel.mjs +520 -0
- package/workspace-monitor.mjs +581 -0
- package/workspace-reaper.mjs +405 -0
- package/workspace-registry.mjs +238 -0
- package/worktree-manager.mjs +1266 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to 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
|
+
Copyright 2018 DET-IO Pty. Ltd..
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
# @virtengine/openfleet
|
|
2
|
+
|
|
3
|
+
Autonomous supervisor for AI coding workflows.
|
|
4
|
+
|
|
5
|
+
`openfleet` watches task execution, routes work across agent executors, handles retries/failover, automates PR lifecycle, and keeps you in control through Telegram (with optional WhatsApp and container isolation).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Why openfleet
|
|
10
|
+
|
|
11
|
+
AI coding agents are fast, but unattended loops are expensive:
|
|
12
|
+
|
|
13
|
+
- silent failures
|
|
14
|
+
- repeated retries with no progress
|
|
15
|
+
- stale worktrees and merge drift
|
|
16
|
+
- disconnected notifications
|
|
17
|
+
|
|
18
|
+
`openfleet` is the control plane that keeps delivery moving:
|
|
19
|
+
|
|
20
|
+
- task routing and executor failover
|
|
21
|
+
- monitored orchestration and auto-recovery
|
|
22
|
+
- conflict/PR lifecycle automation
|
|
23
|
+
- live bot control (`/status`, `/tasks`, `/pause`, `/resume`, etc.)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -g @virtengine/openfleet
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Requires:
|
|
34
|
+
|
|
35
|
+
- Node.js 18+
|
|
36
|
+
- git
|
|
37
|
+
- Linux, macOS, and Windows are fully supported
|
|
38
|
+
- Shell runtime for your selected orchestrator wrapper:
|
|
39
|
+
- Bash for `.sh` wrappers
|
|
40
|
+
- PowerShell (`pwsh`) for `.ps1` wrappers
|
|
41
|
+
- GitHub CLI (`gh`) recommended
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Quick start
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cd your-repo
|
|
49
|
+
openfleet
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
First run launches setup automatically.
|
|
53
|
+
|
|
54
|
+
You can also run setup directly:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
openfleet --setup
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Setup modes (new)
|
|
63
|
+
|
|
64
|
+
The setup wizard now starts with two modes:
|
|
65
|
+
|
|
66
|
+
- **Recommended**
|
|
67
|
+
- prompts only for important decisions (project identity, executor preset/model profile, AI provider, Telegram, board/execution mode)
|
|
68
|
+
- keeps advanced knobs on proven defaults
|
|
69
|
+
- writes a standardized `.env` based on `.env.example` so all options remain documented
|
|
70
|
+
- auto-generates repository `.vscode/settings.json` with Copilot agent/subagent/MCP/autonomous defaults
|
|
71
|
+
|
|
72
|
+
- **Advanced**
|
|
73
|
+
- full control over repository layout, failover/distribution, hook targets/overrides, orchestrator path, VK wiring details, and optional channels
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## How openfleet can run
|
|
78
|
+
|
|
79
|
+
### 1) Standard foreground supervisor
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
openfleet
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 2) Daemon mode
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
openfleet --daemon
|
|
89
|
+
openfleet --daemon-status
|
|
90
|
+
openfleet --stop-daemon
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 3) Startup service (auto-start on login)
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
openfleet --enable-startup
|
|
97
|
+
openfleet --startup-status
|
|
98
|
+
openfleet --disable-startup
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### 4) Interactive shell mode
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
openfleet --shell
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### 5) Sentinel companion mode (Telegram watchdog)
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
openfleet --sentinel
|
|
111
|
+
openfleet --sentinel-status
|
|
112
|
+
openfleet --sentinel-stop
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Execution architecture modes
|
|
118
|
+
|
|
119
|
+
Configured by `EXECUTOR_MODE`:
|
|
120
|
+
|
|
121
|
+
- `internal` (recommended)
|
|
122
|
+
- tasks run through internal agent pool in monitor process
|
|
123
|
+
- `vk`
|
|
124
|
+
- task execution delegated to VK orchestrator flow
|
|
125
|
+
- `hybrid`
|
|
126
|
+
- internal + VK behavior for mixed/overflow scenarios
|
|
127
|
+
|
|
128
|
+
Task board backend (`KANBAN_BACKEND`):
|
|
129
|
+
|
|
130
|
+
- `internal` - local task-store source of truth (default)
|
|
131
|
+
- `vk` - Vibe-Kanban adapter
|
|
132
|
+
- `github` - GitHub Issues with shared state persistence
|
|
133
|
+
- `jira` - Jira Issues with status/shared-state parity
|
|
134
|
+
|
|
135
|
+
Sync policy (`KANBAN_SYNC_POLICY`):
|
|
136
|
+
|
|
137
|
+
- `internal-primary` - internal task-store remains source of truth (default)
|
|
138
|
+
- `bidirectional` - external status changes may update internal tasks
|
|
139
|
+
|
|
140
|
+
Autonomous runtime defaults:
|
|
141
|
+
|
|
142
|
+
- Copilot shell runs with experimental mode + allow-all + no-ask-user by default
|
|
143
|
+
- Codex config enforces critical feature flags (`child_agents_md`, `memory_tool`, collaboration)
|
|
144
|
+
- Setup configures common MCP servers automatically (`context7`, `sequential-thinking`, `playwright`, `microsoft-docs`)
|
|
145
|
+
|
|
146
|
+
Experimental autonomous backlog replenishment:
|
|
147
|
+
|
|
148
|
+
- `INTERNAL_EXECUTOR_REPLENISH_ENABLED=true|false`
|
|
149
|
+
- `INTERNAL_EXECUTOR_REPLENISH_MIN_NEW_TASKS=1|2`
|
|
150
|
+
- `INTERNAL_EXECUTOR_REPLENISH_MAX_NEW_TASKS=1..3`
|
|
151
|
+
- `PROJECT_REQUIREMENTS_PROFILE=simple-feature|feature|large-feature|system|multi-system`
|
|
152
|
+
|
|
153
|
+
**GitHub adapter enhancements:**
|
|
154
|
+
The GitHub Issues adapter now supports multi-agent coordination via structured state persistence:
|
|
155
|
+
|
|
156
|
+
- Claim tracking with `codex:claimed`, `codex:working`, `codex:stale` labels
|
|
157
|
+
- Heartbeat mechanism to detect stale/abandoned claims
|
|
158
|
+
- Task exclusion via `codex:ignore` label
|
|
159
|
+
- Structured comments with JSON state for agent coordination
|
|
160
|
+
|
|
161
|
+
See [KANBAN_GITHUB_ENHANCEMENT.md](./KANBAN_GITHUB_ENHANCEMENT.md) for details.
|
|
162
|
+
|
|
163
|
+
### GitHub Projects v2 backend (Phase 1 + 2)
|
|
164
|
+
|
|
165
|
+
`openfleet` now supports GitHub Projects v2 as a first-class kanban source and sync target:
|
|
166
|
+
|
|
167
|
+
- Phase 1 (read): read tasks directly from a Projects v2 board (`GITHUB_PROJECT_MODE=kanban`)
|
|
168
|
+
- Phase 2 (write): sync task status updates back to the board `Status` field
|
|
169
|
+
- Bidirectional mapping between codex statuses and project status options
|
|
170
|
+
- Safe fallback to issues mode when project metadata is missing or unavailable
|
|
171
|
+
|
|
172
|
+
Enable with env config:
|
|
173
|
+
|
|
174
|
+
```env
|
|
175
|
+
KANBAN_BACKEND=github
|
|
176
|
+
GITHUB_PROJECT_MODE=kanban
|
|
177
|
+
GITHUB_PROJECT_OWNER=your-org-or-user
|
|
178
|
+
GITHUB_PROJECT_NUMBER=3
|
|
179
|
+
GITHUB_PROJECT_AUTO_SYNC=true
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Status mapping overrides (optional):
|
|
183
|
+
|
|
184
|
+
```env
|
|
185
|
+
GITHUB_PROJECT_STATUS_TODO=Todo
|
|
186
|
+
GITHUB_PROJECT_STATUS_INPROGRESS=In Progress
|
|
187
|
+
GITHUB_PROJECT_STATUS_INREVIEW=In Review
|
|
188
|
+
GITHUB_PROJECT_STATUS_DONE=Done
|
|
189
|
+
GITHUB_PROJECT_STATUS_CANCELLED=Cancelled
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Projects v2 docs:
|
|
193
|
+
|
|
194
|
+
- [GITHUB_PROJECTS_V2_QUICKSTART.md](./GITHUB_PROJECTS_V2_QUICKSTART.md)
|
|
195
|
+
- [GITHUB_PROJECTS_V2_API.md](./GITHUB_PROJECTS_V2_API.md)
|
|
196
|
+
- [GITHUB_PROJECTS_V2_MONITORING.md](./GITHUB_PROJECTS_V2_MONITORING.md)
|
|
197
|
+
- [GITHUB_PROJECTS_V2_IMPLEMENTATION_CHECKLIST.md](./GITHUB_PROJECTS_V2_IMPLEMENTATION_CHECKLIST.md)
|
|
198
|
+
|
|
199
|
+
**Jira adapter parity config:**
|
|
200
|
+
Jira supports the same openfleet status vocabulary and shared-state fields,
|
|
201
|
+
with explicit mapping via env vars:
|
|
202
|
+
|
|
203
|
+
```env
|
|
204
|
+
KANBAN_BACKEND=jira
|
|
205
|
+
JIRA_BASE_URL=https://your-domain.atlassian.net
|
|
206
|
+
JIRA_EMAIL=you@example.com
|
|
207
|
+
JIRA_API_TOKEN=***
|
|
208
|
+
|
|
209
|
+
JIRA_STATUS_TODO=To Do
|
|
210
|
+
JIRA_STATUS_INPROGRESS=In Progress
|
|
211
|
+
JIRA_STATUS_INREVIEW=In Review
|
|
212
|
+
JIRA_STATUS_DONE=Done
|
|
213
|
+
JIRA_STATUS_CANCELLED=Cancelled
|
|
214
|
+
|
|
215
|
+
JIRA_CUSTOM_FIELD_OWNER_ID=customfield_10042
|
|
216
|
+
JIRA_CUSTOM_FIELD_ATTEMPT_TOKEN=customfield_10043
|
|
217
|
+
JIRA_CUSTOM_FIELD_ATTEMPT_STARTED=customfield_10044
|
|
218
|
+
JIRA_CUSTOM_FIELD_HEARTBEAT=customfield_10045
|
|
219
|
+
JIRA_CUSTOM_FIELD_RETRY_COUNT=customfield_10046
|
|
220
|
+
JIRA_CUSTOM_FIELD_IGNORE_REASON=customfield_10047
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Setup wizard note: running `openfleet --setup` and selecting Jira will
|
|
224
|
+
open the Atlassian API token page (opt-in), list projects, and guide you
|
|
225
|
+
through project/issue type selection interactively.
|
|
226
|
+
|
|
227
|
+
See [JIRA_INTEGRATION.md](./JIRA_INTEGRATION.md) for full configuration and examples.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Channels and control surfaces
|
|
232
|
+
|
|
233
|
+
### Telegram (primary control channel)
|
|
234
|
+
|
|
235
|
+
Core controls include:
|
|
236
|
+
|
|
237
|
+
- `/help` (inline keyboard)
|
|
238
|
+
- `/status`, `/tasks`, `/agents`, `/threads`, `/worktrees`
|
|
239
|
+
- `/pause`, `/resume`, `/restart`, `/retry`
|
|
240
|
+
- `/executor`, `/sdk`, `/kanban`, `/maxparallel`
|
|
241
|
+
|
|
242
|
+
### Telegram Mini App (Control Center)
|
|
243
|
+
|
|
244
|
+
A full interactive web UI that runs inside Telegram as a Mini App. Enable it with two env vars:
|
|
245
|
+
|
|
246
|
+
```env
|
|
247
|
+
TELEGRAM_MINIAPP_ENABLED=true
|
|
248
|
+
TELEGRAM_UI_PORT=3080
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Once enabled, the server auto-detects your LAN IP and sets the bot menu button.
|
|
252
|
+
Access the Mini App from Telegram via:
|
|
253
|
+
|
|
254
|
+
- **`/app`** command — sends an inline button to open the Control Center
|
|
255
|
+
- **Menu button** — tap the bot's menu button (set automatically)
|
|
256
|
+
- **Browser** — open `http://<your-lan-ip>:3080` directly
|
|
257
|
+
|
|
258
|
+
The Mini App provides 7 tabs: Dashboard, Tasks, Agents, Infra, Control, Logs, and Settings — all with real-time WebSocket updates, haptic feedback, and native Telegram theming.
|
|
259
|
+
|
|
260
|
+
**For public/remote access**, set up a tunnel (ngrok, Cloudflare Tunnel) and configure:
|
|
261
|
+
|
|
262
|
+
```env
|
|
263
|
+
TELEGRAM_UI_BASE_URL=https://your-tunnel-domain.example.com
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**For local browser testing** (without Telegram auth):
|
|
267
|
+
|
|
268
|
+
```env
|
|
269
|
+
TELEGRAM_UI_ALLOW_UNSAFE=true
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### WhatsApp (optional)
|
|
273
|
+
|
|
274
|
+
Enable in env and authenticate:
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
openfleet --whatsapp-auth
|
|
278
|
+
# or
|
|
279
|
+
openfleet --whatsapp-auth --pairing-code
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Telegram status commands include:
|
|
283
|
+
|
|
284
|
+
- `/whatsapp`
|
|
285
|
+
- `/container`
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## Container isolation (optional)
|
|
290
|
+
|
|
291
|
+
`container-runner` can isolate agent executions with:
|
|
292
|
+
|
|
293
|
+
- Docker
|
|
294
|
+
- Podman
|
|
295
|
+
- Apple Container (`container`) on macOS
|
|
296
|
+
|
|
297
|
+
Key env vars:
|
|
298
|
+
|
|
299
|
+
- `CONTAINER_ENABLED=1`
|
|
300
|
+
- `CONTAINER_RUNTIME=auto|docker|podman|container`
|
|
301
|
+
- `CONTAINER_IMAGE=node:22-slim`
|
|
302
|
+
- `MAX_CONCURRENT_CONTAINERS=3`
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
## Configuration model
|
|
307
|
+
|
|
308
|
+
Load order (highest priority first):
|
|
309
|
+
|
|
310
|
+
1. CLI flags
|
|
311
|
+
2. environment variables
|
|
312
|
+
3. `.env`
|
|
313
|
+
4. `openfleet.config.json`
|
|
314
|
+
5. built-in defaults
|
|
315
|
+
|
|
316
|
+
### Files
|
|
317
|
+
|
|
318
|
+
- `.env` — runtime/environment settings
|
|
319
|
+
- `openfleet.config.json` — structured config (executors, failover, repos, profiles)
|
|
320
|
+
- `.openfleet/agents/*.md` — prompt templates scaffolded by setup
|
|
321
|
+
|
|
322
|
+
### SDK transport defaults
|
|
323
|
+
|
|
324
|
+
`openfleet` supports explicit transport selectors per SDK shell:
|
|
325
|
+
|
|
326
|
+
- `CODEX_TRANSPORT=sdk|auto|cli`
|
|
327
|
+
- `COPILOT_TRANSPORT=sdk|auto|cli|url`
|
|
328
|
+
- `CLAUDE_TRANSPORT=sdk|auto|cli`
|
|
329
|
+
|
|
330
|
+
Setup now defaults all three to `sdk` for predictable persistent-session behavior.
|
|
331
|
+
`auto` remains available when you intentionally want endpoint/CLI auto-detection.
|
|
332
|
+
|
|
333
|
+
### Recommended profile split
|
|
334
|
+
|
|
335
|
+
- Local development profile:
|
|
336
|
+
- `DEVMODE=true`
|
|
337
|
+
- `DEVMODE_MONITOR_MONITOR_ENABLED=true`
|
|
338
|
+
- `*_TRANSPORT=sdk`
|
|
339
|
+
- End-user stability profile:
|
|
340
|
+
- `DEVMODE=false`
|
|
341
|
+
- `DEVMODE_MONITOR_MONITOR_ENABLED=false`
|
|
342
|
+
- `*_TRANSPORT=sdk`
|
|
343
|
+
|
|
344
|
+
---
|
|
345
|
+
|
|
346
|
+
## Recommended configuration path
|
|
347
|
+
|
|
348
|
+
If you want a strong baseline with minimal decisions:
|
|
349
|
+
|
|
350
|
+
1. Run `openfleet --setup`
|
|
351
|
+
2. Pick **Recommended** mode
|
|
352
|
+
3. Choose executor preset that matches your token budget and speed goals
|
|
353
|
+
4. Configure AI provider credentials
|
|
354
|
+
5. Configure Telegram
|
|
355
|
+
6. Keep defaults for hooks/VK/orchestrator unless you already have a custom flow
|
|
356
|
+
|
|
357
|
+
This gives you a standardized `.env` with full inline documentation and sane defaults.
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## Advanced configuration path
|
|
362
|
+
|
|
363
|
+
Use **Advanced** mode when you need:
|
|
364
|
+
|
|
365
|
+
- custom multi-repo topology
|
|
366
|
+
- custom failover/distribution behavior
|
|
367
|
+
- manual orchestrator path/args
|
|
368
|
+
- custom hook policy and event overrides
|
|
369
|
+
- explicit VK URL/port and wiring behavior
|
|
370
|
+
- explicit optional channel/runtime tuning
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
## Key config examples
|
|
375
|
+
|
|
376
|
+
### Executor config (`openfleet.config.json`)
|
|
377
|
+
|
|
378
|
+
```json
|
|
379
|
+
{
|
|
380
|
+
"$schema": "./openfleet.schema.json",
|
|
381
|
+
"projectName": "my-project",
|
|
382
|
+
"executors": [
|
|
383
|
+
{
|
|
384
|
+
"name": "copilot-claude",
|
|
385
|
+
"executor": "COPILOT",
|
|
386
|
+
"variant": "CLAUDE_OPUS_4_6",
|
|
387
|
+
"weight": 50,
|
|
388
|
+
"role": "primary",
|
|
389
|
+
"enabled": true
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "codex-default",
|
|
393
|
+
"executor": "CODEX",
|
|
394
|
+
"variant": "DEFAULT",
|
|
395
|
+
"weight": 50,
|
|
396
|
+
"role": "backup",
|
|
397
|
+
"enabled": true
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"failover": {
|
|
401
|
+
"strategy": "next-in-line",
|
|
402
|
+
"maxRetries": 3,
|
|
403
|
+
"cooldownMinutes": 5,
|
|
404
|
+
"disableOnConsecutiveFailures": 3
|
|
405
|
+
},
|
|
406
|
+
"distribution": "weighted"
|
|
407
|
+
}
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Env shorthand for executors
|
|
411
|
+
|
|
412
|
+
```env
|
|
413
|
+
EXECUTORS=COPILOT:CLAUDE_OPUS_4_6:50,CODEX:DEFAULT:50
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### Minimal local env
|
|
417
|
+
|
|
418
|
+
```env
|
|
419
|
+
PROJECT_NAME=my-project
|
|
420
|
+
GITHUB_REPO=myorg/myrepo
|
|
421
|
+
KANBAN_BACKEND=internal
|
|
422
|
+
KANBAN_SYNC_POLICY=internal-primary
|
|
423
|
+
EXECUTOR_MODE=internal
|
|
424
|
+
INTERNAL_EXECUTOR_REPLENISH_ENABLED=false
|
|
425
|
+
PROJECT_REQUIREMENTS_PROFILE=feature
|
|
426
|
+
VK_BASE_URL=http://127.0.0.1:54089
|
|
427
|
+
VK_RECOVERY_PORT=54089
|
|
428
|
+
MAX_PARALLEL=6
|
|
429
|
+
TELEGRAM_BOT_TOKEN=
|
|
430
|
+
TELEGRAM_CHAT_ID=
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
For full variable documentation see `.env.example`.
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
|
|
437
|
+
## Useful commands
|
|
438
|
+
|
|
439
|
+
```bash
|
|
440
|
+
openfleet --help
|
|
441
|
+
openfleet --setup
|
|
442
|
+
openfleet --doctor
|
|
443
|
+
openfleet --update
|
|
444
|
+
openfleet --no-update-check
|
|
445
|
+
openfleet --no-auto-update
|
|
446
|
+
openfleet --no-telegram-bot
|
|
447
|
+
openfleet --telegram-commands
|
|
448
|
+
openfleet --no-vk-spawn
|
|
449
|
+
openfleet --vk-ensure-interval 60000
|
|
450
|
+
openfleet --script ./my-orchestrator.sh
|
|
451
|
+
openfleet --args "-MaxParallel 6"
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
`--doctor` validates effective config (.env + config JSON + process env overrides), reports actionable fixes, and exits non-zero when blocking issues are found.
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Validation and tests
|
|
459
|
+
|
|
460
|
+
From `scripts/openfleet`:
|
|
461
|
+
|
|
462
|
+
```bash
|
|
463
|
+
npm run syntax:check
|
|
464
|
+
npm run test
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
Focused tests (example):
|
|
468
|
+
|
|
469
|
+
```bash
|
|
470
|
+
npx vitest run tests/whatsapp-channel.test.mjs tests/container-runner.test.mjs tests/telegram-buttons.test.mjs
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
## Notes on generated `.env`
|
|
476
|
+
|
|
477
|
+
The setup wizard now standardizes `.env` generation by applying your selected values onto `.env.example`.
|
|
478
|
+
|
|
479
|
+
Benefits:
|
|
480
|
+
|
|
481
|
+
- all options stay documented in your generated file
|
|
482
|
+
- chosen values are explicitly activated/uncommented
|
|
483
|
+
- unchosen options remain visible as commented documentation
|
|
484
|
+
- easier upgrades over time as new options are added
|
|
485
|
+
|
|
486
|
+
---
|
|
487
|
+
|
|
488
|
+
## Troubleshooting quick checks
|
|
489
|
+
|
|
490
|
+
- `openfleet --help` for supported flags
|
|
491
|
+
- `openfleet --setup` to re-run configuration safely
|
|
492
|
+
- verify `.env` + `openfleet.config.json` are in your config directory
|
|
493
|
+
- verify `gh auth status` for PR operations
|
|
494
|
+
- verify Telegram token/chat id with `openfleet-chat-id`
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## License
|
|
499
|
+
|
|
500
|
+
Apache 2.0
|