@crvouga/homelab 0.23.13 → 0.24.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 (177) hide show
  1. package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/aube-lock.yaml +73 -297
  2. package/.mise/locks/npm-vercel/{68.0.0 → 68.2.0}/package.json +1 -1
  3. package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/aube-lock.yaml +42 -42
  4. package/.mise/locks/npm-wrangler/{4.169.0 → 4.170.0}/package.json +1 -1
  5. package/README.md +54 -76
  6. package/ansible/ubuntu/agent-tool.py +106 -1
  7. package/ansible/ubuntu/heavy.py +142 -0
  8. package/ansible/ubuntu/idle-reboot.py +125 -0
  9. package/ansible/ubuntu/policy.json +58 -3
  10. package/ansible/ubuntu/t3-desktop.yml +7 -0
  11. package/ansible/ubuntu/t3-hang-snapshot.sh +75 -0
  12. package/ansible/ubuntu/t3-headless.yml +7 -0
  13. package/ansible/ubuntu/t3-health.sh +71 -3
  14. package/ansible/ubuntu/t3-policy.yml +14 -5
  15. package/ansible/ubuntu/tasks/packages.yml +2 -0
  16. package/ansible/ubuntu/tasks/recovery.yml +16 -2
  17. package/ansible/ubuntu/tasks/resources.yml +25 -2
  18. package/ansible/ubuntu/tasks/unattended-upgrades.yml +24 -6
  19. package/ansible/ubuntu/tasks/updates.yml +59 -0
  20. package/ansible/ubuntu/wip-guard.py +141 -14
  21. package/bootstrap/doctor.ts +0 -4
  22. package/bootstrap/project-action.sh +4 -5
  23. package/bootstrap/shell-path.ts +17 -19
  24. package/cliproxy/README.md +5 -6
  25. package/cliproxy/config.template.yaml +1 -15
  26. package/cliproxy/docs/health-workflow.example.yml +6 -6
  27. package/cliproxy/docs/model-health.md +8 -8
  28. package/cliproxy/scripts/accounts.py +3 -4
  29. package/cliproxy/scripts/fleet_sync.py +2 -13
  30. package/cliproxy/scripts/ops +3 -21
  31. package/docs/authentication.md +21 -26
  32. package/docs/convergence.md +28 -32
  33. package/docs/declared.md +30 -31
  34. package/docs/durability.md +9 -0
  35. package/docs/github.md +0 -9
  36. package/docs/machine-setup.md +16 -17
  37. package/docs/manager-recovery.md +0 -2
  38. package/docs/operations.md +12 -11
  39. package/docs/releasing.md +18 -21
  40. package/docs/runbooks.md +22 -78
  41. package/docs/support-matrix.md +1 -1
  42. package/docs/ubuntu-sync.md +71 -65
  43. package/docs/worker-contract.md +112 -15
  44. package/examples/fleet.json +0 -1
  45. package/llms.txt +0 -2
  46. package/mise.lock +206 -780
  47. package/mise.toml +12 -27
  48. package/package.json +5 -6
  49. package/schema/check-ids.json +41 -482
  50. package/schema/fleet.schema.json +6 -57
  51. package/schema/roster.schema.json +0 -2
  52. package/src/agent-session-limit.ts +2 -7
  53. package/src/auth-checks.ts +1 -3
  54. package/src/check-owners.ts +0 -13
  55. package/src/check-registry.ts +13 -72
  56. package/src/cli/agent-guide.ts +3 -16
  57. package/src/cli/command-index.ts +0 -12
  58. package/src/cli/fleet-sync-manager.ts +4 -146
  59. package/src/cli/fleet-sync-output.ts +1 -4
  60. package/src/cli/fleet-sync-plan.ts +1 -24
  61. package/src/cli/fleet-sync-remote.ts +2 -1
  62. package/src/cli/fleet-sync-vault.ts +1 -2
  63. package/src/cli/fleet-sync.ts +8 -44
  64. package/src/cli/fleet.ts +1 -2
  65. package/src/cli/program.ts +3 -14
  66. package/src/cli/register-fleet.ts +1 -55
  67. package/src/cli/registry.ts +1 -43
  68. package/src/config.ts +0 -2
  69. package/src/definition.ts +8 -83
  70. package/src/fleet-config.ts +1 -1
  71. package/src/ide/definition.ts +2 -29
  72. package/src/ide/super.ts +4 -35
  73. package/src/ide/t3.ts +9 -38
  74. package/src/manager-sync.ts +1 -1
  75. package/src/node-converge-linux.ts +4 -47
  76. package/src/node-converge-shared.ts +1 -22
  77. package/src/{agents/toolchain.ts → pinned-path.ts} +0 -17
  78. package/src/platform/agent-oom-check.ts +104 -0
  79. package/src/platform/t3-policy.ts +23 -36
  80. package/src/platform/t3-service.ts +117 -0
  81. package/src/platform/wip-guard-check.ts +65 -0
  82. package/src/remote-entry.ts +2 -41
  83. package/src/repair-catalog.ts +0 -30
  84. package/src/schedule-check.ts +17 -4
  85. package/src/service-auth.ts +0 -50
  86. package/src/state/litestream.ts +1 -1
  87. package/src/t3/retire-providers.ts +79 -0
  88. package/src/t3/version.ts +1 -1
  89. package/src/transport.ts +2 -6
  90. package/src/types.ts +0 -2
  91. package/src/version-parity.ts +0 -8
  92. package/src/worker-access-checks.ts +0 -75
  93. package/src/worker-host-checks.ts +78 -1
  94. package/src/worker-policy.ts +0 -2
  95. package/src/worker-readiness.ts +2 -0
  96. package/src/worker-sizing.ts +25 -0
  97. package/.mise/locks/azure-cli/2.93.0~a837e014/pyproject.toml +0 -5
  98. package/.mise/locks/azure-cli/2.93.0~a837e014/uv.lock +0 -2841
  99. package/.mise/locks/gemini/0.71.1~84aac8e6/aube-lock.yaml +0 -124
  100. package/.mise/locks/gemini/0.71.1~84aac8e6/package.json +0 -12
  101. package/agents/antigravity-proxy.ts +0 -3
  102. package/agents/audit.md +0 -88
  103. package/agents/bin/agy +0 -10
  104. package/agents/bin/antigravity +0 -10
  105. package/agents/bin/claude +0 -10
  106. package/agents/bin/codex +0 -10
  107. package/agents/bin/grok +0 -10
  108. package/agents/bin/opencode +0 -10
  109. package/agents/claude-proxy +0 -5
  110. package/agents/claude-proxy.ts +0 -3
  111. package/agents/codex-proxy.ts +0 -3
  112. package/agents/grok-proxy.ts +0 -3
  113. package/agents/managed-proxy.ts +0 -109
  114. package/agents/opencode-proxy.ts +0 -3
  115. package/agents/registry.json +0 -209
  116. package/agents/registry.schema.json +0 -149
  117. package/agents/setup.md +0 -158
  118. package/agents/t3.json +0 -40
  119. package/ansible/agents/agents.yml +0 -135
  120. package/ansible/agents/commands.yml +0 -32
  121. package/ansible/agents/receipts.yml +0 -19
  122. package/ansible/agents/templates/antigravity.settings.json.j2 +0 -3
  123. package/ansible/agents/templates/claude.settings.json.j2 +0 -3
  124. package/ansible/agents/templates/codex.config.toml.j2 +0 -11
  125. package/ansible/agents/templates/gemini.settings.json.j2 +0 -14
  126. package/ansible/agents/templates/grok.config.toml.j2 +0 -25
  127. package/ansible/agents/templates/opencode.json.j2 +0 -24
  128. package/ansible/agents/templates/receipt.json.j2 +0 -10
  129. package/ansible/t3/provider-keys.yml +0 -24
  130. package/docs/accounts.md +0 -256
  131. package/src/accounts/checks.ts +0 -226
  132. package/src/accounts/context.ts +0 -77
  133. package/src/accounts/propagate.ts +0 -62
  134. package/src/accounts/roster.ts +0 -112
  135. package/src/accounts/selection.ts +0 -67
  136. package/src/accounts/sessions.ts +0 -354
  137. package/src/agents/account-relay.ts +0 -279
  138. package/src/agents/accounts.ts +0 -94
  139. package/src/agents/admission.ts +0 -65
  140. package/src/agents/audit.ts +0 -77
  141. package/src/agents/cli.ts +0 -13
  142. package/src/agents/command.ts +0 -257
  143. package/src/agents/commands.ts +0 -127
  144. package/src/agents/converge.ts +0 -339
  145. package/src/agents/doctor.ts +0 -107
  146. package/src/agents/errors.ts +0 -2
  147. package/src/agents/files.ts +0 -43
  148. package/src/agents/fleet-verify.ts +0 -195
  149. package/src/agents/launch.ts +0 -361
  150. package/src/agents/native-verify.ts +0 -738
  151. package/src/agents/provider-errors.ts +0 -57
  152. package/src/agents/registry.ts +0 -61
  153. package/src/agents/render.ts +0 -121
  154. package/src/agents/round-trip.ts +0 -192
  155. package/src/agents/secrets.ts +0 -48
  156. package/src/agents/verify-cache.ts +0 -164
  157. package/src/agents/verify.ts +0 -129
  158. package/src/cli/fleet-accounts.ts +0 -294
  159. package/src/cli/fleet-sync-accounts.ts +0 -62
  160. package/src/cli/node-deployment.ts +0 -34
  161. package/src/cli/node-sync.ts +0 -121
  162. package/src/cli/node-t3.ts +0 -35
  163. package/src/cli/t3/command.ts +0 -91
  164. package/src/cli/t3/register.ts +0 -56
  165. package/src/configure.ts +0 -271
  166. package/src/github/copilot.ts +0 -54
  167. package/src/t3/accounts.ts +0 -90
  168. package/src/t3/antigravity.ts +0 -93
  169. package/src/t3/desired.ts +0 -174
  170. package/src/t3/diagnostics.ts +0 -42
  171. package/src/t3/models.ts +0 -354
  172. package/src/t3/names-check.ts +0 -53
  173. package/src/t3/names.ts +0 -155
  174. package/src/t3/plan.ts +0 -106
  175. package/src/t3/provider-keys.ts +0 -49
  176. package/src/t3/providers.ts +0 -102
  177. package/src/t3/reconcile.ts +0 -133
@@ -1,124 +0,0 @@
1
- lockfileVersion: '9.0'
2
-
3
- settings:
4
- autoInstallPeers: true
5
- excludeLinksFromLockfile: false
6
-
7
- importers:
8
-
9
- .:
10
- dependencies:
11
- '@google/gemini-cli':
12
- specifier: 0.71.1
13
- version: 0.71.1
14
-
15
- packages:
16
-
17
- '@github/keytar@7.10.6':
18
- resolution: {integrity: sha512-mRW6cUsSG+nj4jp5gp8e91zPySaT73r+2JM6VyMZfrEgksjPmjSMr+tPGNOK3HUHV+GUU9B1LAiiYy/wmAnIxA==}
19
- deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
20
-
21
- '@google/gemini-cli@0.71.1':
22
- resolution: {integrity: sha512-FYDTjU+9BFPYKBcFS3vCjJol8pFyV0iHVigUNr2wZqk4vYNFgacGB5ubyrySFGM5jWxCK+1EFdcDJiEQjNomaw==}
23
- engines: {node: '>=20'}
24
- hasBin: true
25
-
26
- '@lydell/node-pty-darwin-arm64@1.1.0':
27
- resolution: {integrity: sha512-7kFD+owAA61qmhJCtoMbqj3Uvff3YHDiU+4on5F2vQdcMI3MuwGi7dM6MkFG/yuzpw8LF2xULpL71tOPUfxs0w==}
28
- cpu: [arm64]
29
- os: [darwin]
30
-
31
- '@lydell/node-pty-darwin-x64@1.1.0':
32
- resolution: {integrity: sha512-XZdvqj5FjAMjH8bdp0YfaZjur5DrCIDD1VYiE9EkkYVMDQqRUPHYV3U8BVEQVT9hYfjmpr7dNaELF2KyISWSNA==}
33
- cpu: [x64]
34
- os: [darwin]
35
-
36
- '@lydell/node-pty-linux-arm64@1.1.0':
37
- resolution: {integrity: sha512-yyDBmalCfHpLiQMT2zyLcqL2Fay4Xy7rIs8GH4dqKLnEviMvPGOK7LADVkKAsbsyXBSISL3Lt1m1MtxhPH6ckg==}
38
- cpu: [arm64]
39
- os: [linux]
40
-
41
- '@lydell/node-pty-linux-x64@1.1.0':
42
- resolution: {integrity: sha512-NcNqRTD14QT+vXcEuqSSvmWY+0+WUBn2uRE8EN0zKtDpIEr9d+YiFj16Uqds6QfcLCHfZmC+Ls7YzwTaqDnanA==}
43
- cpu: [x64]
44
- os: [linux]
45
-
46
- '@lydell/node-pty-win32-arm64@1.1.0':
47
- resolution: {integrity: sha512-JOMbCou+0fA7d/m97faIIfIU0jOv8sn2OR7tI45u3AmldKoKoLP8zHY6SAvDDnI3fccO1R2HeR1doVjpS7HM0w==}
48
- cpu: [arm64]
49
- os: [win32]
50
-
51
- '@lydell/node-pty-win32-x64@1.1.0':
52
- resolution: {integrity: sha512-3N56BZ+WDFnUMYRtsrr7Ky2mhWGl9xXcyqR6cexfuCqcz9RNWL+KoXRv/nZylY5dYaXkft4JaR1uVu+roiZDAw==}
53
- cpu: [x64]
54
- os: [win32]
55
-
56
- '@lydell/node-pty@1.1.0':
57
- resolution: {integrity: sha512-VDD8LtlMTOrPKWMXUAcB9+LTktzuunqrMwkYR1DMRBkS6LQrCt+0/Ws1o2rMml/n3guePpS7cxhHF7Nm5K4iMw==}
58
-
59
- nan@2.30.0:
60
- resolution: {integrity: sha512-P5mokDkSvCGBz6mZDD/2l+w9QoICRXdCyZ9ONGmTePr40oihJg3Kpn0YU3twKd6PJnwSlLBWNQeOT6yWEV2c4A==}
61
-
62
- node-addon-api@8.9.2:
63
- resolution: {integrity: sha512-VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==}
64
- engines: {node: ^18 || ^20 || >= 21}
65
-
66
- node-pty@1.0.0:
67
- resolution: {integrity: sha512-wtBMWWS7dFZm/VgqElrTvtfMq4GzJ6+edFI0Y0zyzygUSZMgZdraDUMUhCIvkjhJjme15qWmbyJbtAx4ot4uZA==}
68
-
69
- snapshots:
70
-
71
- '@github/keytar@7.10.6':
72
- dependencies:
73
- node-addon-api: 8.9.2
74
- optional: true
75
-
76
- '@google/gemini-cli@0.71.1':
77
- optionalDependencies:
78
- '@github/keytar': 7.10.6
79
- '@lydell/node-pty': 1.1.0
80
- '@lydell/node-pty-darwin-arm64': 1.1.0
81
- '@lydell/node-pty-darwin-x64': 1.1.0
82
- '@lydell/node-pty-linux-x64': 1.1.0
83
- '@lydell/node-pty-win32-arm64': 1.1.0
84
- '@lydell/node-pty-win32-x64': 1.1.0
85
- node-pty: 1.0.0
86
-
87
- '@lydell/node-pty-darwin-arm64@1.1.0':
88
- optional: true
89
-
90
- '@lydell/node-pty-darwin-x64@1.1.0':
91
- optional: true
92
-
93
- '@lydell/node-pty-linux-arm64@1.1.0':
94
- optional: true
95
-
96
- '@lydell/node-pty-linux-x64@1.1.0':
97
- optional: true
98
-
99
- '@lydell/node-pty-win32-arm64@1.1.0':
100
- optional: true
101
-
102
- '@lydell/node-pty-win32-x64@1.1.0':
103
- optional: true
104
-
105
- '@lydell/node-pty@1.1.0':
106
- optionalDependencies:
107
- '@lydell/node-pty-darwin-arm64': 1.1.0
108
- '@lydell/node-pty-darwin-x64': 1.1.0
109
- '@lydell/node-pty-linux-arm64': 1.1.0
110
- '@lydell/node-pty-linux-x64': 1.1.0
111
- '@lydell/node-pty-win32-arm64': 1.1.0
112
- '@lydell/node-pty-win32-x64': 1.1.0
113
- optional: true
114
-
115
- nan@2.30.0:
116
- optional: true
117
-
118
- node-addon-api@8.9.2:
119
- optional: true
120
-
121
- node-pty@1.0.0:
122
- dependencies:
123
- nan: 2.30.0
124
- optional: true
@@ -1,12 +0,0 @@
1
- {
2
- "name": "mise-npm-install",
3
- "private": true,
4
- "aube": {
5
- "allowBuilds": {
6
- "@lydell/node-pty": true
7
- }
8
- },
9
- "dependencies": {
10
- "@google/gemini-cli": "0.71.1"
11
- }
12
- }
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { runManagedProxy } from './managed-proxy';
3
- await runManagedProxy('antigravity');
package/agents/audit.md DELETED
@@ -1,88 +0,0 @@
1
- # Agent configuration audit and ownership
2
-
3
- Audited against the checked-in tool pins and client source, installed T3 source
4
- `322f6544dfad0a3c8a0c8cbecf2c7f7874b14268`, and linked vendor documentation.
5
- This is a compatibility inventory, not a claim that all desktop apps or fleet
6
- nodes were inspected or authenticated. The execution host exposes Codex, Claude
7
- and T3 on PATH; the mise catalog additionally includes Gemini, Copilot and OpenCode.
8
- Cursor and Antigravity are desktop prerequisites, not mise-managed binaries.
9
-
10
- | Source/owner | Installed destination | Scope |
11
- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
12
- | `mise.toml`, `mise.lock`, `.mise/locks/`; bootstrap | Global mise config, shims and installed tools | Versions; no authentication |
13
- | `agents/registry.json`; homelab | Dedicated profile outputs described below | Endpoint, models, secret references, node model overrides |
14
- | `ansible/agents/templates/` (specified by `src/agents/render.ts`); `ansible/agents/agents.yml` | `ROOT/NODE/codex/{direct,proxy}/config.toml` | Separate CODEX_HOME, Responses HTTP/SSE provider declaration |
15
- | same | `ROOT/NODE/claude/{direct,proxy}/settings.json` | Passed using native --settings; process environment routes proxy |
16
- | same | `ROOT/NODE/opencode/{direct,proxy}/opencode.json` | OPENCODE_CONFIG, environment key placeholder |
17
- | same | `ROOT/NODE/gemini/direct/.gemini/settings.json` | GEMINI_CLI_HOME is the profile root; independent native login |
18
- | `src/agents/converge.ts` decides, `ansible/agents/agents.yml` writes | Each profile's receipt.json; ROOT/backups | Nonsecret fingerprints/revision; private migration backups |
19
- | Existing `opencode/provider-secrets.ts`, OpenRouter package; homelab | Platform OpenCode directory/opencode.json | Vault provider catalog, OpenRouter auto policy; existing sync embeds private keys with mode 0600 |
20
- | Existing OpenCode plugins/bin and cli/lib/links.ts; homelab | Platform OpenCode plugins/bin, tui.json, notifier files | Notification plugins, sounds, platform-derived app paths |
21
- | `agents/codex-proxy.ts`; homelab | T3 binaryPath points directly into reviewed Git checkout | Runtime Vault injection; WS_AGENT_NODE is a declared machine value |
22
- | `agents/t3.json`; personal T3 reconciler | T3CODE_HOME/userdata/settings.json | Owned provider instances only; plan/apply/import/cleanup and private ownership state |
23
- | `../fleet/definition.json`, cli/lib/net; homelab | Managed SSH block and VS Code Remote-SSH settings | Existing machine aliases, OS/user/identity public paths and T3 ports; no private keys |
24
- | `.agents/commands/*.md`; agents:sync | Harness command symlinks | Canonical agent commands; do not edit copies |
25
- | Root AGENTS.md, CLAUDE.md, GEMINI.md, .github/copilot-instructions.md | Repository instruction discovery | Same canonical repository rules |
26
- | Existing cliproxy clients/bootstrap.py and launcher.py | ~/.config/cliproxy-fleet; ~/.local/bin/*-fleet | Legacy opt-in migration boundary; native settings preserved |
27
- | Fleet configure | checkout/node_modules/.fleet-revisions/SHA; .fleet-configuration/*.json | Pinned Git deployment worktrees and per-selection rollout receipts |
28
-
29
- ROOT is `~/.config/personal/agents` on macOS/Linux and
30
- `%USERPROFILE%\AppData\Local\personal\agents` on native Windows. Home and platform
31
- are documented machine-derived inputs. The explicit `--node` ID selects checked-in
32
- `nodes[ID][TOOL].direct` or `.proxy` model overrides over shared defaults. The local
33
- fleet roster contains connection aliases/paths, not configuration values or secrets.
34
-
35
- The registry is the portable profile source. Native project settings, organization
36
- policies, MCP servers, skills and plugins can still affect tools through their
37
- vendor precedence. These are not silently imported from a home directory. Existing
38
- home MCP definitions, user skills, marketplace caches and desktop settings remain
39
- unmanaged until reviewed and added to an appropriate canonical repository source.
40
- Do not treat the registry as a complete export of arbitrary installed applications.
41
- Usage tracking in CLIProxyAPI/T3 is independent from the inference route.
42
-
43
- ## Compatibility and authentication evidence
44
-
45
- - [Codex configuration](https://learn.chatgpt.com/docs/config-file/config-reference):
46
- CODEX_HOME, model_providers, env_key and wire_api. Direct profiles have separate
47
- login state. T3 source confirms homePath and binaryPath per provider instance.
48
- - [Claude gateway](https://code.claude.com/docs/en/llm-gateway-connect) and
49
- [settings](https://code.claude.com/docs/en/settings): native settings-file override
50
- plus ANTHROPIC_BASE_URL/AUTH_TOKEN. The registry declares `claude-sonnet-4-6`; availability and authentication are checked separately.
51
- - [OpenCode](https://opencode.ai/docs/config/): OPENCODE_CONFIG merges with native
52
- configuration; environment placeholders avoid persisting the proxy key. Direct
53
- OpenRouter defaults remain owned by the existing provider sync.
54
- - [Gemini CLI](https://geminicli.com/docs/reference/configuration/): native settings,
55
- GEMINI_CLI_HOME and Google/API-key/Vertex authentication are distinct. Pinned 0.66.0 also supports `gateway` authentication, `GOOGLE_GEMINI_BASE_URL` and a runtime `GEMINI_API_KEY`; the managed proxy adapter uses those native interfaces. Live native-client acceptance remains unverified.
56
- - [Cursor](https://prod.cursor.com/help/models-and-usage/api-keys): supported API-key
57
- setup uses Settings > Models; some features continue through Cursor. No supported
58
- unattended portable credential/settings adapter was established; no SQLite edits.
59
- - [Antigravity](https://antigravity.google/docs/settings): native Google identity and
60
- settings are distinct from Gemini CLI. No verified arbitrary proxy-routing adapter.
61
- - [Copilot](https://docs.github.com/en/copilot/how-tos/copilot-cli): native independent
62
- GitHub authentication. No proxy integration is claimed.
63
-
64
- Runtime OAuth, auth.json, keychains, T3 pairing/control-plane tokens, SSH private
65
- keys, session databases, conversations, histories, caches and plugin downloaded
66
- state are never profile source. Never export or copy them between nodes. Backups
67
- may preserve preexisting local contents and therefore stay private, outside Git.
68
- New proxy profiles read only Vault `secret/data/personal/prd` field
69
- `CLIPROXY_FLEET_CLIENT_API_KEY`; neither generated configs nor receipts contain it.
70
- Missing access fails without retaining Vault responses. No secret is seeded here.
71
-
72
- ## Fleet provider routes
73
-
74
- The registry’s `proxy.routes` declares the shared accounts (Claude, Codex,
75
- Gemini, Grok, Muse, Antigravity). Grok Build and the Antigravity CLI are pinned
76
- native clients with proxy profiles (Grok: `GROK_HOME/config.toml` custom model
77
- with `env_key`; Antigravity: Gemini API-key mode with `GOOGLE_GEMINI_BASE_URL`).
78
- Muse runs through the OpenCode harness: native Muse Code only talks to Meta's
79
- own catalog endpoint. Cursor is not managed (it cannot use the proxy). T3's
80
- Antigravity instance uses the managed launcher, which reads the proxy key from Vault at launch. Fleet sync refreshes each account's models through T3 to open an authenticated ACP session. See the fleet guide's "Agents on every node".
81
- Version-specific source evidence:
82
- [Gemini 0.66.0 gateway interface](https://github.com/google-gemini/gemini-cli/blob/v0.66.0/packages/core/src/core/contentGenerator.ts),
83
- [CLIProxyAPI 8.0.55 catalog](https://github.com/router-for-me/CLIProxyAPI/blob/v8.0.55/internal/registry/models/models.json).
84
- A catalog entry is only a supported identifier, not proof that Chris has an
85
- active account for it. Fleet verifies authenticated availability, inference,
86
- stream completion and a harmless echo-tool round trip. Native application/T3
87
- acceptance is recorded separately. Runtime Vault access must work without an
88
- interactive shell; missing renewal authorization remains action required.
package/agents/bin/agy DELETED
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
- # The `agy` command of a worker: the fleet's launcher, which signs in through
3
- # the CLI proxy. ~/.local/share/personal/fleet/agent-commands links to this
4
- # directory and every shell of a worker has it first on its PATH, so an app
5
- # that starts `agy` over SSH uses the proxy's accounts. Nothing is copied.
6
- set -eu
7
- self=$(readlink -f "$0")
8
- # The launcher starts the pinned antigravity, never this file again.
9
- export PATH="$HOME/.local/share/mise/shims:$PATH"
10
- exec bun "${self%/*}/../antigravity-proxy.ts" "$@"
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
- # The `antigravity` command of a worker: the fleet's launcher, which signs in through
3
- # the CLI proxy. ~/.local/share/personal/fleet/agent-commands links to this
4
- # directory and every shell of a worker has it first on its PATH, so an app
5
- # that starts `antigravity` over SSH uses the proxy's accounts. Nothing is copied.
6
- set -eu
7
- self=$(readlink -f "$0")
8
- # The launcher starts the pinned antigravity, never this file again.
9
- export PATH="$HOME/.local/share/mise/shims:$PATH"
10
- exec bun "${self%/*}/../antigravity-proxy.ts" "$@"
package/agents/bin/claude DELETED
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
- # The `claude` command of a worker: the fleet's launcher, which signs in through
3
- # the CLI proxy. ~/.local/share/personal/fleet/agent-commands links to this
4
- # directory and every shell of a worker has it first on its PATH, so an app
5
- # that starts `claude` over SSH uses the proxy's accounts. Nothing is copied.
6
- set -eu
7
- self=$(readlink -f "$0")
8
- # The launcher starts the pinned claude, never this file again.
9
- export PATH="$HOME/.local/share/mise/shims:$PATH"
10
- exec bun "${self%/*}/../claude-proxy.ts" "$@"
package/agents/bin/codex DELETED
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
- # The `codex` command of a worker: the fleet's launcher, which signs in through
3
- # the CLI proxy. ~/.local/share/personal/fleet/agent-commands links to this
4
- # directory and every shell of a worker has it first on its PATH, so an app
5
- # that starts `codex` over SSH uses the proxy's accounts. Nothing is copied.
6
- set -eu
7
- self=$(readlink -f "$0")
8
- # The launcher starts the pinned codex, never this file again.
9
- export PATH="$HOME/.local/share/mise/shims:$PATH"
10
- exec bun "${self%/*}/../codex-proxy.ts" "$@"
package/agents/bin/grok DELETED
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
- # The `grok` command of a worker: the fleet's launcher, which signs in through
3
- # the CLI proxy. ~/.local/share/personal/fleet/agent-commands links to this
4
- # directory and every shell of a worker has it first on its PATH, so an app
5
- # that starts `grok` over SSH uses the proxy's accounts. Nothing is copied.
6
- set -eu
7
- self=$(readlink -f "$0")
8
- # The launcher starts the pinned grok, never this file again.
9
- export PATH="$HOME/.local/share/mise/shims:$PATH"
10
- exec bun "${self%/*}/../grok-proxy.ts" "$@"
@@ -1,10 +0,0 @@
1
- #!/bin/sh
2
- # The `opencode` command of a worker: the fleet's launcher, which signs in through
3
- # the CLI proxy. ~/.local/share/personal/fleet/agent-commands links to this
4
- # directory and every shell of a worker has it first on its PATH, so an app
5
- # that starts `opencode` over SSH uses the proxy's accounts. Nothing is copied.
6
- set -eu
7
- self=$(readlink -f "$0")
8
- # The launcher starts the pinned opencode, never this file again.
9
- export PATH="$HOME/.local/share/mise/shims:$PATH"
10
- exec bun "${self%/*}/../opencode-proxy.ts" "$@"
@@ -1,5 +0,0 @@
1
- #!/bin/sh
2
- # T3 binaryPath for Claude. The Claude Agent SDK runs any path ending in .ts
3
- # with node, so T3 needs an extension-less executable; this runs the tracked
4
- # Bun launcher beside it. No generated copy: this file lives in Git.
5
- exec bun "${0%/*}/claude-proxy.ts" "$@"
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { runManagedProxy } from './managed-proxy';
3
- await runManagedProxy('claude');
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { runManagedProxy } from './managed-proxy';
3
- await runManagedProxy('codex');
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { runManagedProxy } from './managed-proxy';
3
- await runManagedProxy('grok');
@@ -1,109 +0,0 @@
1
- /** T3 binaryPath adapter. This file remains in Git; no generated executable copies. */
2
- import { homedir } from 'node:os';
3
- import { currentPlatform } from '../src/platform';
4
- import { agentRoot } from '../src/agents/render';
5
- import { select } from '../src/agents/registry';
6
- import { plan } from '../src/agents/converge';
7
- import { launchProfile } from '../src/agents/launch';
8
- import { renderedNode } from '../src/agents/commands';
9
- import { AgentConfigurationError } from '../src/agents/errors';
10
- import { pinnedPath } from '../src/agents/toolchain';
11
- import { REFUSED_EXIT_CODE, admission, refusal } from '../src/agents/admission';
12
-
13
- /** What a person does next. A missing proxy account is a login on the
14
- * manager; `homelab accounts` propagates it to the fleet. Every other
15
- * refusal from this launcher is drift `homelab converge` repairs.
16
- */
17
- export function managedRepairHint(reason: string): string {
18
- if (reason.includes('not signed in on the CLI proxy'))
19
- return 'On the manager, run homelab accounts. Signing that account in is the one step a person does (homelab accounts --relogin PROVIDER INDEX). The fleet then offers it on every machine.';
20
- return 'Run homelab converge from a terminal to repair this machine.';
21
- }
22
-
23
- export function managedUpdateRemedy(tool: string, args: string[]) {
24
- const command = args[0];
25
- if (
26
- ((tool === 'grok' || tool === 'claude') && command === 'update') ||
27
- (tool === 'opencode' && command === 'upgrade')
28
- )
29
- return 'Provider versions come from the pinned homelab release. Update the project dependency and run homelab converge.';
30
- return undefined;
31
- }
32
-
33
- export async function runManagedProxy(
34
- tool: 'codex' | 'opencode' | 'claude' | 'grok' | 'antigravity'
35
- ): Promise<void> {
36
- const args = process.argv.slice(2);
37
- const update = managedUpdateRemedy(tool, args);
38
- if (update) {
39
- process.stderr.write(update + '\n');
40
- process.exitCode = 1;
41
- return;
42
- }
43
- // Version probes need no credentials; answering them lets T3 report the real
44
- // launch error instead of "unable to determine version".
45
- if (args.length === 1 && ['--version', '-v'].includes(args[0]!)) {
46
- process.exitCode = await Bun.spawn([tool, ...args], {
47
- env: { ...process.env, PATH: pinnedPath() },
48
- stdio: ['inherit', 'inherit', 'inherit'],
49
- }).exited;
50
- return;
51
- }
52
- // Above the worker's declared limit on agent sessions, say so and stop:
53
- // T3 reports only that the provider exited, with this in its server log.
54
- const waiting = admission();
55
- const refused = waiting && refusal(waiting);
56
- if (refused) {
57
- process.stderr.write(refused + '\n');
58
- process.exitCode = REFUSED_EXIT_CODE;
59
- return;
60
- }
61
- await startManaged(tool, args);
62
- }
63
-
64
- async function startManaged(
65
- tool: Parameters<typeof runManagedProxy>[0],
66
- args: string[]
67
- ): Promise<void> {
68
- try {
69
- const root = agentRoot(homedir(), currentPlatform().name);
70
- // T3 names the node; an agent command of a worker (agents/bin) is
71
- // started from a shell and runs as the node this machine is.
72
- const selection = select(
73
- process.env['WS_AGENT_NODE'] || renderedNode(root),
74
- tool,
75
- 'proxy'
76
- );
77
- const result = await plan({ root, selection, revision: 'unverified' });
78
- if (result.files.some((file) => file.state === 'conflict')) {
79
- process.stderr.write(
80
- `Review the modified ${tool} proxy profile. To back it up and replace it, run bun src/agents/cli.ts --yes agents apply --node ${selection.node} --tool ${tool} --profile proxy --adopt from the fleet-owned checkout on this machine.\n`
81
- );
82
- process.exitCode = 1;
83
- return;
84
- }
85
- if (
86
- !result.previous ||
87
- result.previous.fingerprint !== result.fingerprint ||
88
- result.files.some((file) => file.state !== 'unchanged')
89
- )
90
- throw new AgentConfigurationError(
91
- `The ${tool} proxy profile for node ${selection.node} is missing or out of date.`
92
- );
93
- // T3 sets WS_AGENT_ACCOUNT on a provider that is pinned to one account.
94
- process.exitCode = await launchProfile(
95
- root,
96
- selection,
97
- args,
98
- process.env['WS_AGENT_ACCOUNT'] || undefined
99
- );
100
- } catch (error) {
101
- // Configuration errors carry curated, secret-free messages; others do not.
102
- const reason =
103
- error instanceof AgentConfigurationError
104
- ? error.message
105
- : 'Managed provider proxy unavailable.';
106
- process.stderr.write(`${reason} ${managedRepairHint(reason)}\n`);
107
- process.exitCode = 1;
108
- }
109
- }
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { runManagedProxy } from './managed-proxy';
3
- await runManagedProxy('opencode');
@@ -1,209 +0,0 @@
1
- {
2
- "$schema": "./registry.schema.json",
3
- "version": 1,
4
- "defaults": {
5
- "codex": {
6
- "model": "gpt-6.1-sol"
7
- },
8
- "claude": {
9
- "model": "sonnet"
10
- },
11
- "opencode": {
12
- "model": "openrouter/auto"
13
- },
14
- "gemini": {
15
- "model": "auto"
16
- },
17
- "grok": {
18
- "model": "grok-4.7"
19
- },
20
- "antigravity": {
21
- "model": "gemini-3.8-flash"
22
- }
23
- },
24
- "proxy": {
25
- "models": {
26
- "codex": "gpt-6.1-sol",
27
- "claude": "claude-sonnet-4-6",
28
- "opencode": "gpt-6.1-sol",
29
- "gemini": "gemini-3-flash",
30
- "grok": "grok-4.7",
31
- "antigravity": "gemini-3.8-flash"
32
- },
33
- "accounts": {
34
- "claude": {
35
- "provider": "claude",
36
- "models": ["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"]
37
- },
38
- "codex": {
39
- "provider": "codex",
40
- "models": ["gpt-6.1-sol", "gpt-6-luna"]
41
- },
42
- "antigravity": {
43
- "provider": "antigravity",
44
- "models": ["gemini-3.8-flash"]
45
- }
46
- },
47
- "routes": {
48
- "claude": {
49
- "model": "claude-sonnet-4-6",
50
- "native": "claude",
51
- "harness": "opencode"
52
- },
53
- "codex": {
54
- "model": "gpt-6.1-sol",
55
- "native": "codex",
56
- "harness": "opencode"
57
- },
58
- "gemini": {
59
- "model": "gemini-3-flash",
60
- "native": "gemini",
61
- "harness": "opencode"
62
- },
63
- "grok": {
64
- "model": "grok-4.7",
65
- "native": "grok",
66
- "harness": "opencode"
67
- },
68
- "muse": {
69
- "model": "devin/muse-wonder-1-0",
70
- "native": null,
71
- "harness": "opencode"
72
- },
73
- "antigravity": {
74
- "model": "gemini-3.8-flash",
75
- "native": "antigravity",
76
- "harness": "opencode"
77
- }
78
- }
79
- },
80
- "nodes": {},
81
- "tools": {
82
- "codex": {
83
- "binary": "codex",
84
- "config": "CODEX_HOME/config.toml",
85
- "authentication": "Independent codex login for direct; Vault environment key for proxy",
86
- "proxy": "responses",
87
- "source": "https://learn.chatgpt.com/docs/config-file/config-reference",
88
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
89
- "capabilities": {
90
- "streaming": "unverified on fleet nodes",
91
- "toolCalls": "unverified on fleet nodes",
92
- "usageTracking": "independent native/runtime state",
93
- "unattendedProfile": true
94
- }
95
- },
96
- "claude": {
97
- "binary": "claude",
98
- "config": "--settings FILE",
99
- "authentication": "Independent claude auth login for direct; ANTHROPIC_AUTH_TOKEN for proxy",
100
- "proxy": "messages",
101
- "source": "https://code.claude.com/docs/en/llm-gateway-connect",
102
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
103
- "capabilities": {
104
- "streaming": "unverified on fleet nodes",
105
- "toolCalls": "unverified on fleet nodes",
106
- "usageTracking": "independent native/runtime state",
107
- "unattendedProfile": true
108
- }
109
- },
110
- "opencode": {
111
- "binary": "opencode",
112
- "config": "OPENCODE_CONFIG",
113
- "authentication": "Existing homelab opencode sync/Vault; runtime environment key for proxy",
114
- "proxy": "responses",
115
- "source": "https://opencode.ai/docs/config/",
116
- "directEndpoint": "Existing homelab OpenCode provider catalog and OpenRouter auto policy",
117
- "capabilities": {
118
- "streaming": "unverified on fleet nodes",
119
- "toolCalls": "unverified on fleet nodes",
120
- "usageTracking": "independent native/runtime state",
121
- "unattendedProfile": true
122
- }
123
- },
124
- "gemini": {
125
- "binary": "gemini",
126
- "config": "GEMINI_CLI_HOME/.gemini/settings.json",
127
- "authentication": "Native Google login for direct; supported gateway authentication with runtime Vault key for proxy",
128
- "proxy": "generateContent",
129
- "source": "https://github.com/google-gemini/gemini-cli/blob/v0.66.0/packages/core/src/core/contentGenerator.ts",
130
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
131
- "capabilities": {
132
- "streaming": "unverified on fleet nodes",
133
- "toolCalls": "unverified on fleet nodes",
134
- "usageTracking": "independent native/runtime state",
135
- "unattendedProfile": true
136
- }
137
- },
138
- "t3": {
139
- "binary": "t3",
140
- "config": "T3CODE_HOME/userdata/settings.json providerInstances",
141
- "authentication": "Independent t3 up --connect and peer pairing",
142
- "proxy": null,
143
- "source": "Installed T3 contracts/settings.ts and providerInstance.ts; see audit.md",
144
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
145
- "capabilities": {
146
- "streaming": "unverified on fleet nodes",
147
- "toolCalls": "unverified on fleet nodes",
148
- "usageTracking": "independent native/runtime state",
149
- "unattendedProfile": false
150
- }
151
- },
152
- "cursor": {
153
- "binary": "cursor",
154
- "config": "OS-specific Cursor User/settings.json and .cursor/mcp.json",
155
- "authentication": "Interactive Cursor Settings > Models; credentials stay in application storage",
156
- "proxy": null,
157
- "source": "https://prod.cursor.com/help/models-and-usage/api-keys",
158
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
159
- "capabilities": {
160
- "streaming": "unverified on fleet nodes",
161
- "toolCalls": "unverified on fleet nodes",
162
- "usageTracking": "independent native/runtime state",
163
- "unattendedProfile": false
164
- }
165
- },
166
- "antigravity": {
167
- "binary": "antigravity",
168
- "config": "Profile --gemini-dir (antigravity-cli/settings.json, modelProvider gemini)",
169
- "authentication": "Shared CLI proxy: GEMINI_API_KEY (Vault) with GOOGLE_GEMINI_BASE_URL; no Google sign-in",
170
- "proxy": "generateContent",
171
- "source": "https://antigravity.google/docs/install/",
172
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
173
- "capabilities": {
174
- "streaming": "unverified on fleet nodes",
175
- "toolCalls": "unverified on fleet nodes",
176
- "usageTracking": "independent native/runtime state",
177
- "unattendedProfile": true
178
- }
179
- },
180
- "copilot": {
181
- "binary": "copilot",
182
- "config": "Native config and repository .github/copilot-instructions.md",
183
- "authentication": "Independent native GitHub login",
184
- "proxy": null,
185
- "source": "https://docs.github.com/en/copilot/how-tos/copilot-cli",
186
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
187
- "capabilities": {
188
- "streaming": "unverified on fleet nodes",
189
- "toolCalls": "unverified on fleet nodes",
190
- "usageTracking": "independent native/runtime state",
191
- "unattendedProfile": false
192
- }
193
- },
194
- "grok": {
195
- "binary": "grok",
196
- "config": "GROK_HOME/config.toml",
197
- "authentication": "Shared CLI proxy: custom [model.*] entry with env_key CLIPROXY_API_KEY (Vault); no grok login",
198
- "proxy": "chat_completions",
199
- "source": "https://docs.x.ai/build/settings/reference",
200
- "directEndpoint": "Native vendor/account configuration; no portable endpoint override is applied",
201
- "capabilities": {
202
- "streaming": "unverified on fleet nodes",
203
- "toolCalls": "unverified on fleet nodes",
204
- "usageTracking": "independent native/runtime state",
205
- "unattendedProfile": true
206
- }
207
- }
208
- }
209
- }