@crvouga/dev-fleet 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/.mise/locks/aws-cdk/2.1146.1/aube-lock.yaml +24 -0
  2. package/.mise/locks/aws-cdk/2.1146.1/package.json +7 -0
  3. package/.mise/locks/azure-cli/2.91.0~a837e014/pyproject.toml +5 -0
  4. package/.mise/locks/azure-cli/2.91.0~a837e014/uv.lock +2794 -0
  5. package/.mise/locks/gemini/0.66.0~84aac8e6/aube-lock.yaml +123 -0
  6. package/.mise/locks/gemini/0.66.0~84aac8e6/package.json +12 -0
  7. package/.mise/locks/npm-devcontainers-cli/0.90.0/aube-lock.yaml +24 -0
  8. package/.mise/locks/npm-devcontainers-cli/0.90.0/package.json +7 -0
  9. package/.mise/locks/npm-modelcontextprotocol-inspector/2.13.0~4c109bea/aube-lock.yaml +1432 -0
  10. package/.mise/locks/npm-modelcontextprotocol-inspector/2.13.0~4c109bea/package.json +7 -0
  11. package/.mise/locks/npm-vercel/65.8.0/aube-lock.yaml +3595 -0
  12. package/.mise/locks/npm-vercel/65.8.0/package.json +7 -0
  13. package/.mise/locks/npm-wrangler/4.156.0/aube-lock.yaml +895 -0
  14. package/.mise/locks/npm-wrangler/4.156.0/package.json +7 -0
  15. package/.mise/locks/npm-yarnpkg-cli-dist/4.18.1/aube-lock.yaml +24 -0
  16. package/.mise/locks/npm-yarnpkg-cli-dist/4.18.1/package.json +7 -0
  17. package/LICENSE +21 -0
  18. package/README.md +157 -2
  19. package/agents/antigravity-proxy.ts +3 -0
  20. package/agents/audit.md +89 -0
  21. package/agents/claude-proxy +5 -0
  22. package/agents/claude-proxy.ts +3 -0
  23. package/agents/codex-proxy.ts +3 -0
  24. package/agents/grok-proxy.ts +3 -0
  25. package/agents/managed-proxy.ts +55 -0
  26. package/agents/opencode-proxy.ts +3 -0
  27. package/agents/registry.json +209 -0
  28. package/agents/registry.schema.json +149 -0
  29. package/agents/setup.md +128 -0
  30. package/agents/t3.json +40 -0
  31. package/ansible/macos/manager.yml +30 -0
  32. package/ansible/macos/policy.json +17 -0
  33. package/ansible/monitoring/README.md +154 -0
  34. package/ansible/monitoring/agent-darwin.yml +198 -0
  35. package/ansible/monitoring/agent.yml +134 -0
  36. package/ansible/monitoring/beszel-agent.service +42 -0
  37. package/ansible/monitoring/compose.yml +74 -0
  38. package/ansible/monitoring/hub-darwin.yml +102 -0
  39. package/ansible/monitoring/lock.json +11 -0
  40. package/ansible/net/remote-probe.sh +13 -0
  41. package/ansible/ubuntu/authorize-sudo.sh +51 -0
  42. package/ansible/ubuntu/baseline.yml +89 -0
  43. package/ansible/ubuntu/disk-guard.py +104 -0
  44. package/ansible/ubuntu/policy.json +43 -0
  45. package/ansible/ubuntu/recovery.yml +15 -0
  46. package/ansible/ubuntu/t3/policy.json +7 -0
  47. package/ansible/ubuntu/t3-desktop.yml +220 -0
  48. package/ansible/ubuntu/t3-health.sh +33 -0
  49. package/ansible/ubuntu/t3-policy.yml +76 -0
  50. package/ansible/ubuntu/t3-route.yml +28 -0
  51. package/ansible/ubuntu/tailscale.yml +75 -0
  52. package/ansible/ubuntu/tasks/credentials.yml +47 -0
  53. package/ansible/ubuntu/tasks/docker.yml +31 -0
  54. package/ansible/ubuntu/tasks/packages.yml +56 -0
  55. package/ansible/ubuntu/tasks/power.yml +51 -0
  56. package/ansible/ubuntu/tasks/recovery.yml +39 -0
  57. package/ansible/ubuntu/tasks/resources.yml +252 -0
  58. package/ansible/ubuntu/tasks/services.yml +31 -0
  59. package/ansible/ubuntu/tasks/ssh.yml +71 -0
  60. package/ansible/ubuntu/tasks/user.yml +120 -0
  61. package/bin/devfleet.mjs +36 -0
  62. package/bootstrap/bootstrap.ps1 +50 -0
  63. package/bootstrap/bootstrap.sh +73 -0
  64. package/bootstrap/devfleet +7 -0
  65. package/bootstrap/docker-desktop.sh +33 -0
  66. package/bootstrap/doctor.ts +189 -0
  67. package/bootstrap/fleet-manager-run.sh +76 -0
  68. package/bootstrap/fleet-remote-bootstrap.sh +185 -0
  69. package/bootstrap/global-config.ts +113 -0
  70. package/bootstrap/install-launcher.sh +7 -0
  71. package/bootstrap/native-aws.ts +86 -0
  72. package/bootstrap/native-t3.ts +154 -0
  73. package/bootstrap/npm.ts +350 -0
  74. package/bootstrap/setup-status.ts +51 -0
  75. package/bootstrap/setup.ts +88 -0
  76. package/bootstrap/shell-path.ts +105 -0
  77. package/bootstrap/verify-t3-archive.py +49 -0
  78. package/bootstrap/worker-auth.ts +65 -0
  79. package/bootstrap/worker-github.ts +47 -0
  80. package/bootstrap/worker-tools.ts +24 -0
  81. package/cliproxy/AGENTS.md +11 -0
  82. package/cliproxy/README.md +269 -0
  83. package/cliproxy/clients/bootstrap.py +143 -0
  84. package/cliproxy/clients/launcher.py +57 -0
  85. package/cliproxy/compose.yaml +90 -0
  86. package/cliproxy/config.template.yaml +70 -0
  87. package/cliproxy/docs/cloud-adoption.md +16 -0
  88. package/cliproxy/docs/deployment.png +0 -0
  89. package/cliproxy/docs/deployment.svg +109 -0
  90. package/cliproxy/docs/health-workflow.example.yml +185 -0
  91. package/cliproxy/docs/migration.md +131 -0
  92. package/cliproxy/docs/model-health-report.schema.json +364 -0
  93. package/cliproxy/docs/model-health.md +393 -0
  94. package/cliproxy/image.lock.json +5 -0
  95. package/cliproxy/launchd/dev.devfleet.cliproxy-backup-check.plist +38 -0
  96. package/cliproxy/launchd/dev.devfleet.cliproxy-backup.plist +48 -0
  97. package/cliproxy/launchd/dev.devfleet.cliproxy-fleet.plist +32 -0
  98. package/cliproxy/launchd/dev.devfleet.cliproxy-gc.plist +38 -0
  99. package/cliproxy/launchd/dev.devfleet.cliproxy-monitor.plist +29 -0
  100. package/cliproxy/launchd/dev.devfleet.cliproxy-vault-renew.plist +31 -0
  101. package/cliproxy/models.json +1618 -0
  102. package/cliproxy/requirements.lock +78 -0
  103. package/cliproxy/scripts/accounts.py +38 -0
  104. package/cliproxy/scripts/audit.py +123 -0
  105. package/cliproxy/scripts/backup +234 -0
  106. package/cliproxy/scripts/check.py +34 -0
  107. package/cliproxy/scripts/checkpoint.py +226 -0
  108. package/cliproxy/scripts/cli.py +64 -0
  109. package/cliproxy/scripts/cliproxy_host.py +257 -0
  110. package/cliproxy/scripts/cloud_state.py +150 -0
  111. package/cliproxy/scripts/container-health +6 -0
  112. package/cliproxy/scripts/docker +24 -0
  113. package/cliproxy/scripts/external-health.py +79 -0
  114. package/cliproxy/scripts/fleet_config.py +43 -0
  115. package/cliproxy/scripts/fleet_sync.py +274 -0
  116. package/cliproxy/scripts/initialize +84 -0
  117. package/cliproxy/scripts/install-dependencies +48 -0
  118. package/cliproxy/scripts/install.py +406 -0
  119. package/cliproxy/scripts/model_health.py +16 -0
  120. package/cliproxy/scripts/modelhealth/__init__.py +5 -0
  121. package/cliproxy/scripts/modelhealth/checks.py +429 -0
  122. package/cliproxy/scripts/modelhealth/cli.py +117 -0
  123. package/cliproxy/scripts/modelhealth/config.py +186 -0
  124. package/cliproxy/scripts/modelhealth/emulator.py +536 -0
  125. package/cliproxy/scripts/modelhealth/expect.py +88 -0
  126. package/cliproxy/scripts/modelhealth/findings.py +183 -0
  127. package/cliproxy/scripts/modelhealth/protocol.py +330 -0
  128. package/cliproxy/scripts/modelhealth/redact.py +28 -0
  129. package/cliproxy/scripts/modelhealth/report.py +150 -0
  130. package/cliproxy/scripts/modelhealth/runner.py +390 -0
  131. package/cliproxy/scripts/modelhealth/scenario.py +131 -0
  132. package/cliproxy/scripts/modelhealth/schema.py +63 -0
  133. package/cliproxy/scripts/modelhealth/simulate.py +111 -0
  134. package/cliproxy/scripts/modelhealth/transport.py +213 -0
  135. package/cliproxy/scripts/monitor +68 -0
  136. package/cliproxy/scripts/ops +527 -0
  137. package/cliproxy/scripts/public-endpoint +127 -0
  138. package/cliproxy/scripts/recover_node.py +177 -0
  139. package/cliproxy/scripts/restore-verify +60 -0
  140. package/cliproxy/scripts/retention.py +144 -0
  141. package/cliproxy/scripts/service-start +7 -0
  142. package/cliproxy/scripts/validate-config +56 -0
  143. package/cliproxy/scripts/vault-access.py +57 -0
  144. package/cliproxy/scripts/vault-backup-login +55 -0
  145. package/cliproxy/scripts/vault-recovery +56 -0
  146. package/cliproxy/scripts/vault-renew +30 -0
  147. package/cliproxy/systemd/cliproxy-backup-check.service +10 -0
  148. package/cliproxy/systemd/cliproxy-backup-check.timer +8 -0
  149. package/cliproxy/systemd/cliproxy-backup.service +13 -0
  150. package/cliproxy/systemd/cliproxy-backup.timer +8 -0
  151. package/cliproxy/systemd/cliproxy-fleet.service +17 -0
  152. package/cliproxy/systemd/cliproxy-gc.service +13 -0
  153. package/cliproxy/systemd/cliproxy-gc.timer +8 -0
  154. package/cliproxy/systemd/cliproxy-monitor.service +8 -0
  155. package/cliproxy/systemd/cliproxy-monitor.timer +7 -0
  156. package/cliproxy/systemd/cliproxy-vault-renew.service +8 -0
  157. package/cliproxy/systemd/cliproxy-vault-renew.timer +7 -0
  158. package/cliproxy/vendor/LICENSE +22 -0
  159. package/cliproxy/vendor/config.upstream.yaml +1349 -0
  160. package/examples/fleet.json +95 -0
  161. package/examples/roster.json +13 -0
  162. package/mise.lock +1492 -0
  163. package/mise.toml +99 -0
  164. package/package.json +65 -4
  165. package/schema/fleet.schema.json +364 -0
  166. package/schema/roster.schema.json +77 -0
  167. package/src/agents/account-relay.ts +111 -0
  168. package/src/agents/accounts.ts +85 -0
  169. package/src/agents/audit.ts +77 -0
  170. package/src/agents/cli.ts +13 -0
  171. package/src/agents/command.ts +204 -0
  172. package/src/agents/converge.ts +123 -0
  173. package/src/agents/doctor.ts +107 -0
  174. package/src/agents/errors.ts +2 -0
  175. package/src/agents/files.ts +73 -0
  176. package/src/agents/fleet-verify.ts +156 -0
  177. package/src/agents/launch.ts +290 -0
  178. package/src/agents/native-verify.ts +226 -0
  179. package/src/agents/provider-errors.ts +50 -0
  180. package/src/agents/registry.ts +55 -0
  181. package/src/agents/render.ts +110 -0
  182. package/src/agents/round-trip.ts +192 -0
  183. package/src/agents/secrets.ts +13 -0
  184. package/src/agents/toolchain.ts +34 -0
  185. package/src/agents/verify-cache.ts +103 -0
  186. package/src/agents/verify.ts +127 -0
  187. package/src/auth-checks.ts +163 -0
  188. package/src/cli/agent-guide.ts +95 -0
  189. package/src/cli/app.ts +115 -0
  190. package/src/cli/cli.ts +21 -0
  191. package/src/cli/command-index.ts +50 -0
  192. package/src/cli/contracts.ts +25 -0
  193. package/src/cli/fleet-reference.ts +17 -0
  194. package/src/cli/fleet-sync-checkout.ts +91 -0
  195. package/src/cli/fleet-sync-enrollment.ts +144 -0
  196. package/src/cli/fleet-sync-forward.ts +134 -0
  197. package/src/cli/fleet-sync-manager.ts +193 -0
  198. package/src/cli/fleet-sync-monitoring.ts +185 -0
  199. package/src/cli/fleet-sync-output.ts +314 -0
  200. package/src/cli/fleet-sync-privilege.ts +27 -0
  201. package/src/cli/fleet-sync-progress.ts +109 -0
  202. package/src/cli/fleet-sync-remote.ts +236 -0
  203. package/src/cli/fleet-sync-report.ts +26 -0
  204. package/src/cli/fleet-sync-schedule.ts +138 -0
  205. package/src/cli/fleet-sync-vault.ts +166 -0
  206. package/src/cli/fleet-sync.ts +309 -0
  207. package/src/cli/fleet.ts +163 -0
  208. package/src/cli/managed-health.ts +219 -0
  209. package/src/cli/node-deployment.ts +34 -0
  210. package/src/cli/node-sync.ts +114 -0
  211. package/src/cli/node-t3.ts +31 -0
  212. package/src/cli/options.ts +141 -0
  213. package/src/cli/probe-source.ts +7 -0
  214. package/src/cli/program.ts +169 -0
  215. package/src/cli/register-fleet.ts +246 -0
  216. package/src/cli/registry.ts +158 -0
  217. package/src/cli/repair-apply.ts +67 -0
  218. package/src/cli/repair-guard.ts +11 -0
  219. package/src/cli/repair-inspect.ts +150 -0
  220. package/src/cli/repair-script.ts +76 -0
  221. package/src/cli/repair.ts +209 -0
  222. package/src/cli/roster.ts +89 -0
  223. package/src/cli/search.ts +35 -0
  224. package/src/cli/settings.ts +64 -0
  225. package/src/cli/source-operations.ts +78 -0
  226. package/src/cli/t3/command.ts +90 -0
  227. package/src/cli/t3/register.ts +55 -0
  228. package/src/cli/tailnet.ts +127 -0
  229. package/src/cli/ui-actions.ts +133 -0
  230. package/src/cli/ui-controller.ts +113 -0
  231. package/src/cli/ui-data.ts +106 -0
  232. package/src/cli/ui-execute.ts +163 -0
  233. package/src/cli/ui-repairs.ts +34 -0
  234. package/src/cli/ui-reports.ts +211 -0
  235. package/src/cli/ui-targets.ts +100 -0
  236. package/src/cli/ui-terminal.ts +109 -0
  237. package/src/cli/ui-types.ts +49 -0
  238. package/src/cli/ui-wizard.ts +101 -0
  239. package/src/cli/ui.ts +9 -0
  240. package/src/cli/worker-health-output.ts +37 -0
  241. package/src/config.ts +186 -0
  242. package/src/configure.ts +255 -0
  243. package/src/definition.ts +260 -0
  244. package/src/diagnostics.ts +92 -0
  245. package/src/doctor-check.ts +10 -0
  246. package/src/errors.ts +1 -0
  247. package/src/fingerprint.ts +120 -0
  248. package/src/fleet-config.ts +88 -0
  249. package/src/index.ts +6 -0
  250. package/src/input-hashes.ts +73 -0
  251. package/src/machine/local-source.ts +52 -0
  252. package/src/machine/lock-error.ts +2 -0
  253. package/src/machine/platform.ts +44 -0
  254. package/src/machine/source.ts +68 -0
  255. package/src/machine/state.ts +185 -0
  256. package/src/machine-health.ts +95 -0
  257. package/src/managed-source.ts +47 -0
  258. package/src/manager-failure.ts +48 -0
  259. package/src/manager-sync.ts +400 -0
  260. package/src/manager.ts +62 -0
  261. package/src/monitoring/apply.ts +171 -0
  262. package/src/monitoring/beszel.ts +191 -0
  263. package/src/monitoring/enroll.ts +110 -0
  264. package/src/monitoring/hub-access.ts +113 -0
  265. package/src/monitoring/hub-viewer.ts +142 -0
  266. package/src/monitoring/hub.ts +93 -0
  267. package/src/monitoring/manager-agent.ts +73 -0
  268. package/src/monitoring/manager-hub.ts +232 -0
  269. package/src/monitoring/remote.ts +65 -0
  270. package/src/network-definition.ts +83 -0
  271. package/src/node-converge-linux.ts +372 -0
  272. package/src/node-converge-shared.ts +83 -0
  273. package/src/node-converge.ts +40 -0
  274. package/src/onboard.ts +35 -0
  275. package/src/platform/ansible-receipt.ts +128 -0
  276. package/src/platform/ansible.ts +62 -0
  277. package/src/platform/darwin.ts +203 -0
  278. package/src/platform/detect.ts +11 -0
  279. package/src/platform/fallback.ts +110 -0
  280. package/src/platform/index.ts +38 -0
  281. package/src/platform/launchd.ts +98 -0
  282. package/src/platform/linux.ts +139 -0
  283. package/src/platform/ps.ts +45 -0
  284. package/src/platform/resource-verify.ts +128 -0
  285. package/src/platform/systemd-user.ts +95 -0
  286. package/src/platform/t3-policy.ts +137 -0
  287. package/src/platform/t3-route.ts +68 -0
  288. package/src/platform/t3-service.ts +75 -0
  289. package/src/platform/types.ts +123 -0
  290. package/src/platform/ubuntu-audit.ts +63 -0
  291. package/src/platform/ubuntu-verify.ts +105 -0
  292. package/src/platform/windows.ts +148 -0
  293. package/src/power-recovery.ts +55 -0
  294. package/src/probe.ts +51 -0
  295. package/src/protocol.ts +119 -0
  296. package/src/proxy-converge.ts +85 -0
  297. package/src/remote-bootstrap.ts +212 -0
  298. package/src/remote-entry.ts +89 -0
  299. package/src/remote-lock.ts +12 -0
  300. package/src/repair-catalog.ts +206 -0
  301. package/src/repair-plan.ts +78 -0
  302. package/src/repair-runner.ts +84 -0
  303. package/src/report.ts +71 -0
  304. package/src/runner.ts +104 -0
  305. package/src/secrets.ts +169 -0
  306. package/src/service-auth.ts +115 -0
  307. package/src/ssh.ts +135 -0
  308. package/src/sync.ts +104 -0
  309. package/src/t3/accounts.ts +81 -0
  310. package/src/t3/desired.ts +165 -0
  311. package/src/t3/files.ts +81 -0
  312. package/src/t3/names-check.ts +53 -0
  313. package/src/t3/names.ts +155 -0
  314. package/src/t3/plan.ts +82 -0
  315. package/src/t3/providers.ts +74 -0
  316. package/src/t3/reconcile.ts +123 -0
  317. package/src/t3-endpoint.ts +48 -0
  318. package/src/t3-linked-check.ts +101 -0
  319. package/src/tailnet-health.ts +231 -0
  320. package/src/tailnet-matching.ts +37 -0
  321. package/src/tailscale.ts +141 -0
  322. package/src/test-fixtures.ts +36 -0
  323. package/src/toolchain-checks.ts +83 -0
  324. package/src/topology.ts +24 -0
  325. package/src/transport.ts +122 -0
  326. package/src/types.ts +95 -0
  327. package/src/vault-config.ts +38 -0
  328. package/src/worker-access-checks.ts +115 -0
  329. package/src/worker-capacity.ts +34 -0
  330. package/src/worker-host-checks.ts +176 -0
  331. package/src/worker-policy.ts +64 -0
  332. package/src/worker-readiness.ts +64 -0
  333. package/src/workstation-checks.ts +29 -0
package/mise.toml ADDED
@@ -0,0 +1,99 @@
1
+ # Shared workstation toolchain. Bootstrap installs this globally; projects may override it.
2
+ # See bootstrap/README.md. Commit mise.lock whenever changing these pins.
3
+ min_version = "2026.10.24"
4
+
5
+ [settings]
6
+ lockfile = true
7
+ lockfile_platforms = ["linux-x64", "linux-arm64", "macos-x64", "macos-arm64", "windows-x64"]
8
+
9
+ [tools]
10
+ gh = "2.103.3"
11
+ shellcheck = "0.11.0"
12
+ actionlint = "1.7.12"
13
+ opentofu = "1.13.0"
14
+ bun = "1.4.4"
15
+ node = "26.13.0"
16
+ atlas = { version = "1.3.0", os = ["linux", "macos"], lazy = true }
17
+ azure-cli = { version = "2.91.0", lazy = true }
18
+ # CLI proxy backups on the manager (cliproxy/scripts/install-dependencies).
19
+ restic = { version = "0.19.1", os = ["linux", "macos"], lazy = true }
20
+ pnpm = "12.16.1"
21
+ "npm:@yarnpkg/cli-dist" = "4.18.1"
22
+ deno = "2.9.8"
23
+ python = "3.15.2"
24
+ uv = "0.13.6"
25
+ go = "1.27.3"
26
+ jq = "1.8.2"
27
+ yq = "4.54.1"
28
+ ripgrep = "15.2.0"
29
+ fd = "10.5.0"
30
+ fzf = "0.74.5"
31
+ bat = "0.26.1"
32
+ delta = "0.18.2"
33
+ git-lfs = "3.8.1"
34
+ docker-cli = "29.9.2"
35
+ "npm:vercel" = "65.8.0"
36
+ "npm:wrangler" = "4.156.0"
37
+ railway = "5.71.0"
38
+ "aqua:anomalyco/opencode" = "1.19.5"
39
+ vault = "2.2.1"
40
+ claude = "2.1.314"
41
+ codex = "0.166.0"
42
+ gemini = { version = "0.66.0", allow_builds = ["@lydell/node-pty"] }
43
+ copilot = "1.0.105"
44
+ # Agent CLIs without a registry backend: exact vendor artifacts, checksums in mise.lock.
45
+ "http:grok" = { version = "1.0.77", os = ["linux", "macos"], bin = "grok", platforms = { linux-x64 = { url = "https://x.ai/cli/grok-{{version}}-linux-x86_64" }, linux-arm64 = { url = "https://x.ai/cli/grok-{{version}}-linux-aarch64" }, macos-x64 = { url = "https://x.ai/cli/grok-{{version}}-macos-x86_64" }, macos-arm64 = { url = "https://x.ai/cli/grok-{{version}}-macos-aarch64" } } }
46
+ "http:antigravity" = { version = "1.5.3", os = ["linux", "macos"], bin = "antigravity", platforms = { linux-x64 = { url = "https://storage.googleapis.com/antigravity-public/antigravity-cli/1.5.3-6604829099950080/linux-x64/cli_linux_x64.tar.gz" }, linux-arm64 = { url = "https://storage.googleapis.com/antigravity-public/antigravity-cli/1.5.3-6604829099950080/linux-arm/cli_linux_arm64.tar.gz" }, macos-x64 = { url = "https://storage.googleapis.com/antigravity-public/antigravity-cli/1.5.3-6604829099950080/darwin-x64/cli_mac_x64.tar.gz" }, macos-arm64 = { url = "https://storage.googleapis.com/antigravity-public/antigravity-cli/1.5.3-6604829099950080/darwin-arm/cli_mac_arm64.tar.gz" } } }
47
+
48
+ "aws" = { version = "2.39.2", os = ["linux", "macos"] }
49
+ "rust" = "1.99.1"
50
+ "cmake" = "4.4.5"
51
+ "ninja" = "1.13.2"
52
+ "just" = "1.59.0"
53
+ "gitleaks" = "8.30.1"
54
+ "shfmt" = "3.14.1"
55
+ "sops" = "3.13.3"
56
+ "age" = "1.3.2"
57
+ "kubectl" = "1.37.2"
58
+ "helm" = "4.3.1"
59
+ "xh" = "0.26.3"
60
+ "usql" = "0.21.6"
61
+ "java" = { version = "temurin-25.0.5+8.0.LTS", lazy = true }
62
+ "dotnet" = { version = "10.0.403", lazy = true, lazy_bins = ["dotnet"] }
63
+ "gcloud" = { version = "591.0.0", lazy = true }
64
+ "npm:@devcontainers/cli" = "0.90.0"
65
+ # pino's 9.x backport was manually published; integrity and all published JS
66
+ # were checked against pinojs/pino v9.14.0. Keep the exception version-specific.
67
+ "npm:@modelcontextprotocol/inspector" = { version = "2.13.0", lazy = true, lazy_bins = ["mcp-inspector", "inspector", "mcpdo"], trust_policy_excludes = ["pino@9.14.0"] }
68
+ "aws-cdk" = { version = "2.1146.1", lazy = true }
69
+ "aws-sam" = { version = "1.171.0", lazy = true, os = ["linux", "macos"] }
70
+
71
+ # Keep self-updaters from bypassing the reviewed toolchain lock.
72
+ [env]
73
+ DISABLE_AUTOUPDATER = "1"
74
+ COPILOT_AUTO_UPDATE = "false"
75
+ GROK_DISABLE_AUTOUPDATER = "1"
76
+ # Antigravity ignores "1"; only "true" stops its in-place self-updater.
77
+ AGY_CLI_DISABLE_AUTO_UPDATE = "true"
78
+
79
+ [vars]
80
+ # Official native Ubuntu server distribution; bootstrap/native-t3.ts owns installation.
81
+ t3_version = "0.1.8-nightly.20261106.4262"
82
+ t3_linux_x64_sha256 = "5df94ca15c4f68f749fa5540fbb9d5ca879ca8750ac43dd2704f6a18899ed6d5"
83
+ t3_linux_arm64_sha256 = "0649615c4a294eee40bc753c8668e4a83c5c3620794f2163758f8dc48a39b880"
84
+ # Official T3 Code desktop .deb (same release). Workers run this GUI app as their
85
+ # only T3 process; it embeds the server. Upstream SHA256SUMS omits .deb files,
86
+ # so these digests were computed from the release assets.
87
+ t3_desktop_amd64_sha256 = "952703bd48b87029a4f9a2b275aeeb79bc74eacf01867784ab6878adecaf03d7"
88
+ t3_desktop_arm64_sha256 = "ae8a32a71a32760831af40a16cae9aabe8683b7021df6b899b57e8d559a7e777"
89
+ # Official AWS v2 Windows MSI, same version as tools.aws; checked before execution.
90
+ aws_windows_msi_sha256 = "c7857d5981e68396852e8b7eca0b1772f1c99b34d4938075857d45ec9c232113"
91
+ # Docker Desktop supplies the macOS engine, Compose and Buildx as one vendor bundle.
92
+ # Official release/checksums: https://docs.docker.com/desktop/release-notes/#4980
93
+ docker_desktop_version = "4.98.0"
94
+ docker_desktop_build = "245422"
95
+ docker_desktop_arm64_sha256 = "9c6f13ce4edda2abf20d801552b6acb96acd3d64b3e91b50c4484353802758b5"
96
+ docker_desktop_amd64_sha256 = "96b53f9a4a807b6be6207d18f360b9778ff481e1d94b5027bdf1ae2a22d837cb"
97
+
98
+ # Minimal remote development baseline; versions are resolved exclusively by tools + mise.lock.
99
+ worker_tools = "bun,node,gh,python,uv,docker-cli,vault,jq,codex,claude,aqua:anomalyco/opencode,gemini,copilot,http:grok,http:antigravity"
package/package.json CHANGED
@@ -1,6 +1,67 @@
1
1
  {
2
2
  "name": "@crvouga/dev-fleet",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Keeps a set of development machines in sync: one manager and many workers",
5
+ "license": "MIT",
6
+ "repository": "github:crvouga/dev-fleet",
7
+ "homepage": "https://github.com/crvouga/dev-fleet#readme",
8
+ "type": "module",
9
+ "bin": {
10
+ "devfleet": "./bin/devfleet.mjs"
11
+ },
12
+ "files": [
13
+ "bin",
14
+ "src",
15
+ "agents",
16
+ "ansible",
17
+ "bootstrap",
18
+ "cliproxy",
19
+ "schema",
20
+ "examples",
21
+ ".mise",
22
+ "mise.toml",
23
+ "mise.lock",
24
+ "!**/*.test.ts",
25
+ "!**/test_*.py",
26
+ "!**/tests",
27
+ "!**/__pycache__"
28
+ ],
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "scripts": {
33
+ "devfleet": "bun src/cli/cli.ts",
34
+ "bootstrap": "bun bootstrap/npm.ts",
35
+ "tc": "tsc --noEmit",
36
+ "lint": "eslint . --max-warnings 0",
37
+ "format": "prettier --check .",
38
+ "test": "bun test",
39
+ "test:cliproxy": "DEVFLEET_CONFIG=$PWD/examples/fleet.json python3 -B -m unittest discover -s cliproxy/tests -p \"test_*.py\"",
40
+ "lint:cliproxy": "DEVFLEET_CONFIG=$PWD/examples/fleet.json python3 -B cliproxy/scripts/check.py",
41
+ "check": "bun run format && bun run tc && bun run lint && bun test && bun run lint:cliproxy && bun run test:cliproxy"
42
+ },
43
+ "dependencies": {
44
+ "@inquirer/prompts": "8.7.5",
45
+ "boxen": "9.0.0",
46
+ "bun": "1.4.4",
47
+ "chalk": "6.0.1",
48
+ "cli-table3": "0.6.5",
49
+ "commander": "15.0.0",
50
+ "fuse.js": "7.5.0",
51
+ "ora": "10.0.0",
52
+ "yaml": "^2.8.0"
53
+ },
54
+ "devDependencies": {
55
+ "@eslint/js": "^9.25.0",
56
+ "@types/bun": "^1.3.9",
57
+ "@types/node": "^22.15.29",
58
+ "eslint": "^9.25.0",
59
+ "prettier": "^3.8.1",
60
+ "typescript": "~5.9.2",
61
+ "typescript-eslint": "^8.58.0"
62
+ },
63
+ "packageManager": "bun@1.4.4",
64
+ "engines": {
65
+ "node": ">=22"
66
+ }
67
+ }
@@ -0,0 +1,364 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Fleet topology: one manager (the human's machine, which runs every singleton service) and stateless Linux workers. Local paths remain in roster overrides.",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "version",
8
+ "manager",
9
+ "workers",
10
+ "services",
11
+ "ubuntu",
12
+ "source",
13
+ "secrets"
14
+ ],
15
+ "properties": {
16
+ "$schema": {
17
+ "type": "string"
18
+ },
19
+ "version": {
20
+ "const": 3
21
+ },
22
+ "manager": {
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "description": "The singleton manager: the human's machine that runs fleet-sync and hosts every singleton service (CLI proxy, Beszel hub).",
26
+ "required": ["id", "os", "network", "neverSleepOnPower"],
27
+ "properties": {
28
+ "id": {
29
+ "type": "string",
30
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
31
+ },
32
+ "os": {
33
+ "const": "macOS"
34
+ },
35
+ "network": {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": ["tailscaleName", "user"],
39
+ "properties": {
40
+ "tailscaleName": {
41
+ "type": "string",
42
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
43
+ },
44
+ "user": {
45
+ "type": "string",
46
+ "pattern": "^[a-z_][a-z0-9_.-]{0,31}$"
47
+ }
48
+ }
49
+ },
50
+ "neverSleepOnPower": {
51
+ "const": true,
52
+ "description": "Workers depend on the manager's singleton services, so it never sleeps on AC power."
53
+ }
54
+ }
55
+ },
56
+ "workers": {
57
+ "type": "array",
58
+ "minItems": 1,
59
+ "maxItems": 64,
60
+ "items": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": ["id", "ssh", "os"],
64
+ "properties": {
65
+ "id": {
66
+ "type": "string",
67
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
68
+ },
69
+ "ssh": {
70
+ "type": "string",
71
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
72
+ },
73
+ "os": {
74
+ "const": "linux",
75
+ "description": "Workers are the Linux boxes: stateless, replaceable, never hosting a singleton service."
76
+ },
77
+ "network": {
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": ["tailscaleName", "user", "sshPort", "t3Port"],
81
+ "properties": {
82
+ "tailscaleName": {
83
+ "type": "string",
84
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
85
+ },
86
+ "user": {
87
+ "type": "string",
88
+ "pattern": "^[a-z_][a-z0-9_-]{0,31}$"
89
+ },
90
+ "sshPort": {
91
+ "type": "integer",
92
+ "minimum": 1,
93
+ "maximum": 65535
94
+ },
95
+ "t3Port": {
96
+ "type": "integer",
97
+ "minimum": 1,
98
+ "maximum": 65535
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ },
105
+ "services": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "required": ["proxy", "monitoring"],
109
+ "description": "Singleton services. Every one runs on the manager; workers are clients only.",
110
+ "properties": {
111
+ "proxy": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": ["endpoint"],
115
+ "properties": {
116
+ "endpoint": {
117
+ "type": "string",
118
+ "pattern": "^https://[A-Za-z0-9.-]+$",
119
+ "description": "Public HTTPS origin of the CLI proxy every node uses."
120
+ }
121
+ }
122
+ },
123
+ "monitoring": {
124
+ "type": "object",
125
+ "additionalProperties": false,
126
+ "required": [
127
+ "hubPort",
128
+ "publicUrl",
129
+ "managerAccount",
130
+ "viewerAccount"
131
+ ],
132
+ "properties": {
133
+ "hubPort": {
134
+ "const": 8443
135
+ },
136
+ "publicUrl": {
137
+ "type": "string",
138
+ "pattern": "^https://[A-Za-z0-9.-]+$",
139
+ "description": "Public dashboard origin."
140
+ },
141
+ "managerAccount": {
142
+ "type": "string",
143
+ "format": "email",
144
+ "description": "Beszel account the manager enrolls nodes with."
145
+ },
146
+ "viewerAccount": {
147
+ "type": "string",
148
+ "format": "email",
149
+ "description": "Read-only Beszel account visitors are signed in as."
150
+ }
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "ubuntu": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": ["release", "architectures"],
159
+ "properties": {
160
+ "release": {
161
+ "const": "26.04"
162
+ },
163
+ "architectures": {
164
+ "const": ["amd64", "arm64"]
165
+ }
166
+ }
167
+ },
168
+ "worker": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": [
172
+ "requiredCapabilities",
173
+ "githubLogin",
174
+ "vaultUser",
175
+ "toolchain",
176
+ "agentProfile",
177
+ "unattendedSudo",
178
+ "persistentT3",
179
+ "neverSleep"
180
+ ],
181
+ "properties": {
182
+ "requiredCapabilities": {
183
+ "type": "array",
184
+ "uniqueItems": true,
185
+ "items": {
186
+ "enum": [
187
+ "github",
188
+ "vault",
189
+ "t3",
190
+ "toolchain",
191
+ "workstation",
192
+ "worker"
193
+ ]
194
+ }
195
+ },
196
+ "githubLogin": {
197
+ "type": "string",
198
+ "pattern": "^[a-zA-Z0-9-]{1,39}$"
199
+ },
200
+ "vaultUser": {
201
+ "type": "string",
202
+ "pattern": "^[a-zA-Z0-9_.-]{1,64}$"
203
+ },
204
+ "toolchain": {
205
+ "const": "mise.lock"
206
+ },
207
+ "agentProfile": {
208
+ "const": "proxy"
209
+ },
210
+ "unattendedSudo": {
211
+ "const": true
212
+ },
213
+ "persistentT3": {
214
+ "const": true
215
+ },
216
+ "neverSleep": {
217
+ "const": true
218
+ }
219
+ }
220
+ },
221
+ "source": {
222
+ "type": "object",
223
+ "additionalProperties": false,
224
+ "required": ["repository"],
225
+ "description": "The Git repository that holds this fleet's configuration and pins. Nodes only accept source from it.",
226
+ "properties": {
227
+ "repository": {
228
+ "type": "string",
229
+ "pattern": "^https://[A-Za-z0-9.-]+/[A-Za-z0-9._/-]+\\.git$"
230
+ }
231
+ }
232
+ },
233
+ "secrets": {
234
+ "description": "Where this fleet keeps its secrets. env: DEVFLEET_SECRET_<NAME>; file: one file per secret; sops: one encrypted document; vault: a KV v2 location per secret.",
235
+ "oneOf": [
236
+ {
237
+ "type": "object",
238
+ "additionalProperties": false,
239
+ "required": ["provider"],
240
+ "properties": {
241
+ "provider": {
242
+ "const": "env"
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "type": "object",
248
+ "additionalProperties": false,
249
+ "required": ["provider"],
250
+ "properties": {
251
+ "provider": {
252
+ "const": "file"
253
+ },
254
+ "directory": {
255
+ "type": "string"
256
+ }
257
+ }
258
+ },
259
+ {
260
+ "type": "object",
261
+ "additionalProperties": false,
262
+ "required": ["provider", "file"],
263
+ "properties": {
264
+ "provider": {
265
+ "const": "sops"
266
+ },
267
+ "file": {
268
+ "type": "string"
269
+ }
270
+ }
271
+ },
272
+ {
273
+ "type": "object",
274
+ "additionalProperties": false,
275
+ "required": ["provider", "address", "mount", "locations"],
276
+ "properties": {
277
+ "provider": {
278
+ "const": "vault"
279
+ },
280
+ "address": {
281
+ "type": "string",
282
+ "pattern": "^https://[A-Za-z0-9.-]+$"
283
+ },
284
+ "mount": {
285
+ "type": "string"
286
+ },
287
+ "locations": {
288
+ "type": "object",
289
+ "additionalProperties": false,
290
+ "required": [
291
+ "proxy-client-key",
292
+ "monitoring-account-password",
293
+ "monitoring-tunnel-token",
294
+ "proxy-tunnel-token"
295
+ ],
296
+ "properties": {
297
+ "proxy-client-key": {
298
+ "type": "object",
299
+ "additionalProperties": false,
300
+ "required": ["path", "field"],
301
+ "properties": {
302
+ "path": {
303
+ "type": "string",
304
+ "pattern": "^[A-Za-z0-9._/-]+$"
305
+ },
306
+ "field": {
307
+ "type": "string",
308
+ "pattern": "^[A-Za-z0-9_]+$"
309
+ }
310
+ }
311
+ },
312
+ "monitoring-account-password": {
313
+ "type": "object",
314
+ "additionalProperties": false,
315
+ "required": ["path", "field"],
316
+ "properties": {
317
+ "path": {
318
+ "type": "string",
319
+ "pattern": "^[A-Za-z0-9._/-]+$"
320
+ },
321
+ "field": {
322
+ "type": "string",
323
+ "pattern": "^[A-Za-z0-9_]+$"
324
+ }
325
+ }
326
+ },
327
+ "monitoring-tunnel-token": {
328
+ "type": "object",
329
+ "additionalProperties": false,
330
+ "required": ["path", "field"],
331
+ "properties": {
332
+ "path": {
333
+ "type": "string",
334
+ "pattern": "^[A-Za-z0-9._/-]+$"
335
+ },
336
+ "field": {
337
+ "type": "string",
338
+ "pattern": "^[A-Za-z0-9_]+$"
339
+ }
340
+ }
341
+ },
342
+ "proxy-tunnel-token": {
343
+ "type": "object",
344
+ "additionalProperties": false,
345
+ "required": ["path", "field"],
346
+ "properties": {
347
+ "path": {
348
+ "type": "string",
349
+ "pattern": "^[A-Za-z0-9._/-]+$"
350
+ },
351
+ "field": {
352
+ "type": "string",
353
+ "pattern": "^[A-Za-z0-9_]+$"
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ ]
362
+ }
363
+ }
364
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Developer fleet roster (not infrastructure inventory)",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["version", "nodes"],
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string"
10
+ },
11
+ "version": {
12
+ "const": 1
13
+ },
14
+ "nodes": {
15
+ "type": "array",
16
+ "minItems": 1,
17
+ "maxItems": 64,
18
+ "items": {
19
+ "type": "object",
20
+ "additionalProperties": false,
21
+ "required": ["id", "ssh", "workspace"],
22
+ "properties": {
23
+ "id": {
24
+ "type": "string",
25
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
26
+ },
27
+ "ssh": {
28
+ "type": "string",
29
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
30
+ },
31
+ "workspace": {
32
+ "type": "string",
33
+ "maxLength": 4096,
34
+ "pattern": "^/[^\\u0000-\\u001f\\u007f]*$"
35
+ },
36
+ "runtime": {
37
+ "type": "string",
38
+ "maxLength": 4096,
39
+ "pattern": "^/[^\\u0000-\\u001f\\u007f]*$"
40
+ },
41
+ "required": {
42
+ "type": "array",
43
+ "uniqueItems": true,
44
+ "default": ["github", "vault", "t3", "toolchain"],
45
+ "items": {
46
+ "enum": [
47
+ "github",
48
+ "vault",
49
+ "t3",
50
+ "vscode",
51
+ "toolchain",
52
+ "codex",
53
+ "claude",
54
+ "services",
55
+ "workstation",
56
+ "worker"
57
+ ]
58
+ }
59
+ },
60
+ "tailscaleId": {
61
+ "type": "string",
62
+ "pattern": "^[a-zA-Z0-9:_-]{1,128}$",
63
+ "description": "Explicitly enrolled stable Tailscale device ID; replacements require reenrollment."
64
+ },
65
+ "bootstrapViaSsh": {
66
+ "type": "boolean",
67
+ "description": "Explicit permission to bootstrap an enrolled node over its trusted SSH route while Tailscale is unavailable; does not accept host keys or replace device identities."
68
+ },
69
+ "t3EnvironmentId": {
70
+ "type": "string",
71
+ "pattern": "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$"
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }