mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
feat(ocm-cli): add remote indicator to TUI when attached to Manager (#313)
* feat(ocm-cli): add remote indicator to TUI when attached to Manager * chore(ocm-cli): bump version to 0.2.3 * feat(ocm-cli): show remote indicator on home screen and session prompt * feat(ocm-cli): remove arrow icon from remote indicator * docs: remove arrow icon from remote indicator description
This commit is contained in:
1 parent
7c7e9f3c77
commit
ed02ddabba
13 files changed
+1435
-37
No files matched your search
+7
-1
@@ -111,7 +111,9 @@ ocm --help Show this help
|
||||
Under the hood, `ocm` execs:
|
||||
|
||||
```bash
|
||||
opencode attach https://manager.example.com/api/opencode-proxy \
|
||||
OCM_REMOTE_MANAGER_URL=https://manager.example.com \
|
||||
OCM_REMOTE_REPO_NAME=my-repo \
|
||||
opencode attach https://manager.example.com/api/opencode-proxy \
|
||||
--dir /path/to/repo/on/manager \
|
||||
--password <manager-token> \
|
||||
--username opencode
|
||||
@@ -119,6 +121,8 @@ opencode attach https://manager.example.com/api/opencode-proxy \
|
||||
|
||||
The child takes over the terminal (`stdio: inherit`); closing the TUI exits `ocm` but leaves the Manager-side session intact.
|
||||
|
||||
When the TUI plugin is installed, these internal child-process variables add a `REMOTE <host> · <repo>` indicator to the bottom of Manager-attached TUI windows. Local launches show no indicator.
|
||||
|
||||
### Mirror commands
|
||||
|
||||
`ocm push` uses a fast git bundle + working-tree patch by default to sync `$PWD` to the matching Manager repo. Pass `--full` to use the legacy tarball mirror (skipping `node_modules`, `dist`, `.next`, `.venv`, `__pycache__`, `.turbo`, and anything matched by `.gitignore`). If the fast path fails, `ocm` prompts before reverting to the tarball mirror (and proceeds automatically when there is no TTY to prompt).
|
||||
@@ -142,6 +146,8 @@ Both can be used in place of `ocm login`:
|
||||
| Variable | Description |
|
||||
|---|---|
|
||||
| `OPENCODE_MANAGER_URL` | Manager base URL (e.g., `https://manager.example.com`). Not currently consumed by the CLI — use `ocm login`. |
|
||||
| `OCM_REMOTE_MANAGER_URL` | Internal child-process context set by `ocm attach`; controls the remote TUI indicator. Not a login setting. |
|
||||
| `OCM_REMOTE_REPO_NAME` | Internal child-process context set by `ocm attach`; labels the remote TUI indicator. Not a login setting. |
|
||||
| Keychain entry under `https://manager.example.com` | Token used for Bearer auth on Manager API calls and Basic auth on the OpenCode proxy. |
|
||||
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user