@moxt-ai/cli 0.3.2 → 0.3.3-moxt-run.1

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/README.md CHANGED
@@ -152,6 +152,41 @@ moxt memory search -w <workspace-id> --teammate-id <teammateId> <query>
152
152
  moxt memory search -w <workspace-id> -l 10 <query>
153
153
  ```
154
154
 
155
+ ### run
156
+
157
+ Run a local Codex or Claude Code process and capture the run as Moxt workspace context.
158
+
159
+ ```bash
160
+ # Local-only capture, no API key required
161
+ moxt run codex -- exec "summarize this repository"
162
+ moxt run claude -- -p "summarize this repository"
163
+
164
+ # Capture and upload source artifacts to the API key owner's personal space
165
+ moxt run -w <workspace-id> codex -- exec "summarize this repository"
166
+ moxt run -w <workspace-id> claude -- -p "summarize this repository"
167
+
168
+ # Or set a default workspace for repeated uploads
169
+ export MOXT_WORKSPACE_ID=<workspace-id>
170
+ moxt run codex -- exec "summarize this repository"
171
+ moxt run claude -- -p "summarize this repository"
172
+ ```
173
+
174
+ Uploaded files are stored by Moxt under `Local Agent Sessions/<run-id>/` in personal space. For upload mode, `-w, --workspace` takes precedence over `MOXT_WORKSPACE_ID`; when neither is set, `moxt run` only writes the local capture artifact. The command does not accept a workspace destination selector for run uploads; the server chooses the storage location. `moxt run` preserves the local agent's stdin/stdout/stderr behavior and returns the agent's exit code even when upload cleanup fails afterward.
175
+
176
+ Local run artifacts are written under the platform user data directory by default:
177
+ macOS `~/Library/Application Support/moxt/runs/<run-id>/`, Linux `${XDG_DATA_HOME:-~/.local/share}/moxt/runs/<run-id>/`, and Windows `%LOCALAPPDATA%\Moxt\runs\<run-id>`. For tests or local debugging, override with `MOXT_RUN_OUTPUT_ROOT` or `MOXT_RUN_OUTPUT_DIR`.
178
+
179
+ Real local-agent upload verification:
180
+
181
+ ```bash
182
+ MOXT_HOST=web-api.moxt.ws \
183
+ MOXT_API_KEY=moxt_... \
184
+ MOXT_WORKSPACE_ID=<workspace-id> \
185
+ pnpm --dir moxt-cli test:ai-e2e
186
+ ```
187
+
188
+ By default this starts both real `codex` and real `claude`. Set `MOXT_RUN_AI_E2E_AGENTS=codex` or `claude` to run only one. For `*.moxt.ws` hosts behind Cloudflare Access, the runner reads the local `cloudflared` `moxt.ws` token when present; alternatively set `MOXT_CF_ACCESS_TOKEN`, `CF_ACCESS_TOKEN`, or Cloudflare Access service-token env vars.
189
+
155
190
  #### File command options
156
191
 
157
192
  | Option | Description |
@@ -178,7 +213,10 @@ Set the following environment variables:
178
213
  | Variable | Description |
179
214
  |----------|-------------|
180
215
  | `MOXT_API_KEY` | Your Moxt API key |
216
+ | `MOXT_WORKSPACE_ID` | Default workspace ID for `moxt run` upload mode and AI E2E verification |
181
217
  | `MOXT_HOST` | API hostname (default: `api.moxt.ai`) |
218
+ | `MOXT_CF_ACCESS_TOKEN` / `CF_ACCESS_TOKEN` | Optional Cloudflare Access token for protected development or testing hosts |
219
+ | `MOXT_CF_ACCESS_CLIENT_ID` / `MOXT_CF_ACCESS_CLIENT_SECRET` | Optional Cloudflare Access service-token credentials |
182
220
  | `MOXT_TELEMETRY_DISABLED` | Set to `1` to disable anonymous usage telemetry |
183
221
  | `DO_NOT_TRACK` | Set to `1` to disable anonymous usage telemetry (community standard) |
184
222