@moxt-ai/cli 0.3.3-moxt-run.2 → 0.3.3
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 +52 -34
- package/dist/index.js +1067 -2322
- package/dist/index.js.map +1 -1
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -152,40 +152,63 @@ 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
|
-
###
|
|
155
|
+
### workflow
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
Manage workflows, workflow definitions, tasks, and workflow agent runs.
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
#
|
|
161
|
-
moxt
|
|
162
|
-
moxt
|
|
163
|
-
|
|
164
|
-
#
|
|
165
|
-
moxt
|
|
166
|
-
moxt
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
# List workflows
|
|
161
|
+
moxt workflow list -w <workspace-id>
|
|
162
|
+
moxt workflow list -w <workspace-id> --scope owner_is_me
|
|
163
|
+
|
|
164
|
+
# Create, inspect, update, duplicate, and delete workflows
|
|
165
|
+
moxt workflow create -w <workspace-id> -p <path.workflow> [--desc-file <local-path>]
|
|
166
|
+
moxt workflow get -w <workspace-id> <workflow-file-id>
|
|
167
|
+
moxt workflow update -w <workspace-id> <workflow-file-id> --desc-file <local-path>
|
|
168
|
+
moxt workflow duplicate -w <workspace-id> <workflow-file-id>
|
|
169
|
+
moxt workflow delete -w <workspace-id> <workflow-file-id> [--message <message>]
|
|
170
|
+
|
|
171
|
+
# Manage workflow statuses
|
|
172
|
+
moxt workflow status create -w <workspace-id> <workflow-file-id> --name Todo --type 1
|
|
173
|
+
moxt workflow status update -w <workspace-id> <workflow-file-id> <status-id> --type 2
|
|
174
|
+
moxt workflow status move-after -w <workspace-id> <workflow-file-id> <status-id> --after <status-id>
|
|
175
|
+
moxt workflow status move-after -w <workspace-id> <workflow-file-id> <status-id> --first
|
|
176
|
+
moxt workflow status delete -w <workspace-id> <workflow-file-id> <status-id>
|
|
177
|
+
|
|
178
|
+
# Manage workflow transitions
|
|
179
|
+
moxt workflow transition create -w <workspace-id> <workflow-file-id> --from <status-id> --to <status-id>
|
|
180
|
+
moxt workflow transition delete -w <workspace-id> <workflow-file-id> --from <status-id> --to <status-id>
|
|
181
|
+
|
|
182
|
+
# Manage workflow tasks
|
|
183
|
+
moxt workflow task list -w <workspace-id> [--workflow-file-id <workflow-file-id>]
|
|
184
|
+
moxt workflow task get -w <workspace-id> <workflow-file-id> <task-id>
|
|
185
|
+
moxt workflow task create -w <workspace-id> <workflow-file-id> --title "Review draft" --status <status-id>
|
|
186
|
+
moxt workflow task update -w <workspace-id> <workflow-file-id> <task-id> --desc-file <local-path>
|
|
187
|
+
moxt workflow task add-linked-files -w <workspace-id> <workflow-file-id> <task-id> --file-ids <file-id>[,<file-id>...]
|
|
188
|
+
moxt workflow task remove-linked-files -w <workspace-id> <workflow-file-id> <task-id> --file-ids <file-id>[,<file-id>...]
|
|
189
|
+
moxt workflow task move -w <workspace-id> <workflow-file-id> <task-id> --status <status-id>
|
|
190
|
+
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --human-id <human-id>
|
|
191
|
+
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --assistant-id <assistant-id>
|
|
192
|
+
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --teammate-id <teammate-id>
|
|
193
|
+
moxt workflow task assign -w <workspace-id> <workflow-file-id> <task-id> --clear
|
|
194
|
+
moxt workflow task delete -w <workspace-id> <workflow-file-id> <task-id>
|
|
195
|
+
|
|
196
|
+
# Manage workflow task comments
|
|
197
|
+
moxt workflow comment create -w <workspace-id> <workflow-file-id> <task-id> --content-path <local-path>
|
|
198
|
+
moxt workflow comment list -w <workspace-id> <workflow-file-id> <task-id>
|
|
199
|
+
moxt workflow comment delete -w <workspace-id> <workflow-file-id> <task-id> <comment-id>
|
|
200
|
+
|
|
201
|
+
# Inspect or abort workflow agent runs
|
|
202
|
+
moxt workflow run status -w <workspace-id> <workflow-file-id> <trigger-id> [trigger-id...]
|
|
203
|
+
moxt workflow run output -w <workspace-id> <workflow-file-id> <trigger-id>
|
|
204
|
+
moxt workflow run abort -w <workspace-id> <workflow-file-id> <trigger-id>
|
|
172
205
|
```
|
|
173
206
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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.
|
|
207
|
+
Workflow, status, and task descriptions are read from local UTF-8 text files with `--desc-file`.
|
|
208
|
+
Inline `--desc` is not supported.
|
|
209
|
+
Workflow task comment content is read only from a local UTF-8 text file with `--content-path` and is limited to
|
|
210
|
+
5,000 characters. Inline `--content` is not supported.
|
|
211
|
+
Workflow status type values are `1=todo`, `2=in-progress`, and `3=done`.
|
|
189
212
|
|
|
190
213
|
#### File command options
|
|
191
214
|
|
|
@@ -213,12 +236,7 @@ Set the following environment variables:
|
|
|
213
236
|
| Variable | Description |
|
|
214
237
|
|----------|-------------|
|
|
215
238
|
| `MOXT_API_KEY` | Your Moxt API key |
|
|
216
|
-
| `MOXT_WORKSPACE_ID` | Default workspace ID for `moxt run` upload mode and AI E2E verification |
|
|
217
239
|
| `MOXT_HOST` | API hostname (default: `api.moxt.ai`) |
|
|
218
|
-
| `MOXT_RUN_UPLOAD_INTERVAL_MS` | Optional `moxt run` live-upload scan interval, default `5000`, minimum `250` |
|
|
219
|
-
| `MOXT_RUN_UPLOAD_TIMEOUT_MS` | Optional `moxt run` per-file upload timeout, default `30000`, minimum `100` |
|
|
220
|
-
| `MOXT_CF_ACCESS_TOKEN` / `CF_ACCESS_TOKEN` | Optional Cloudflare Access token for protected development or testing hosts |
|
|
221
|
-
| `MOXT_CF_ACCESS_CLIENT_ID` / `MOXT_CF_ACCESS_CLIENT_SECRET` | Optional Cloudflare Access service-token credentials |
|
|
222
240
|
| `MOXT_TELEMETRY_DISABLED` | Set to `1` to disable anonymous usage telemetry |
|
|
223
241
|
| `DO_NOT_TRACK` | Set to `1` to disable anonymous usage telemetry (community standard) |
|
|
224
242
|
|