@remits/remits-cli 0.1.92 → 0.1.93
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/package.json +1 -1
- package/skills/remits-cli/SKILL.md +46 -4
package/package.json
CHANGED
|
@@ -95,6 +95,7 @@ description: Use remits-cli for fast branch-scoped component staging, test execu
|
|
|
95
95
|
- Line 2169: `mcp_run_agent`
|
|
96
96
|
- Line 2205: `mcp_system_logs`
|
|
97
97
|
- Line 2228: `mcp_performance_trace`
|
|
98
|
+
- Line 2260: `mcp_event_diagnostics`
|
|
98
99
|
- Line 2263: `mcp_component_view`
|
|
99
100
|
- Line 2286: `mcp_component_grep`
|
|
100
101
|
- Line 2299: `mcp_support_ticket`
|
|
@@ -1747,7 +1748,13 @@ Before starting an investigation outside the confirmed current repo:
|
|
|
1747
1748
|
**Stuck / failed / recovered Event:**
|
|
1748
1749
|
|
|
1749
1750
|
Do **not** open the Action source first. The platform records each attempt's delivery envelope (which
|
|
1750
|
-
queue delivered it, which delivery attempt this was, and how long it was ever allowed to run) and will classify the failure for you. From
|
|
1751
|
+
queue delivered it, which delivery attempt this was, and how long it was ever allowed to run) and will classify the failure for you. From remits-cli / MCP, use `mcp_event_diagnostics` first:
|
|
1752
|
+
|
|
1753
|
+
```bash
|
|
1754
|
+
remits-cli tool --name mcp_event_diagnostics --input '{"accountId":49,"eventId":18838}' --data-mode prod
|
|
1755
|
+
```
|
|
1756
|
+
|
|
1757
|
+
From a Test or any component, the same platform classifier is available directly:
|
|
1751
1758
|
|
|
1752
1759
|
```groovy
|
|
1753
1760
|
eventDiagnostics(18838)
|
|
@@ -1771,6 +1778,8 @@ Read `classification` before anything else:
|
|
|
1771
1778
|
non-idempotent side effect may have run more than once — check for duplicate records before concluding
|
|
1772
1779
|
the component "ran twice for no reason".
|
|
1773
1780
|
|
|
1781
|
+
`mcp_event_diagnostics` returns the same classification, `delivery.threadGroupingId`, and ready-to-run
|
|
1782
|
+
`pivots` for `mcp_performance_trace`, `mcp_system_logs`, `mcp_record_listing`, and `mcp_object_activity`.
|
|
1774
1783
|
`delivery.threadGroupingId` is the same id everything else uses, so you can pivot straight into
|
|
1775
1784
|
`mcp_performance_trace` (`action:"trace"`) or `mcp_system_logs` with it. `logQuery` in the response
|
|
1776
1785
|
carries ready-made Cloud Logging filters, including the container-lifecycle and 504 queries.
|
|
@@ -1896,9 +1905,10 @@ account).
|
|
|
1896
1905
|
tells you when the fields shown belong to a different account.
|
|
1897
1906
|
- `action: 'account_update'` — write Account-schema configuration `fields`, and/or `name`/`status`
|
|
1898
1907
|
(`ACTIVE`/`ON_HOLD`/`PENDING`).
|
|
1899
|
-
- `action: 'user_update'` — write User-schema `fields` under the named account
|
|
1900
|
-
member or you pass `addAccount: true`, because the
|
|
1901
|
-
|
|
1908
|
+
- `action: 'user_update'` — write User-schema `fields` under the named account, plus `name`/`enabled` and
|
|
1909
|
+
membership add/remove. Refused unless the user is a member or you pass `addAccount: true`, because the
|
|
1910
|
+
write would otherwise land on another account. If an email does not exist globally, `addAccount: true`
|
|
1911
|
+
intentionally creates that user first, then binds them to the named account before writing fields.
|
|
1902
1912
|
|
|
1903
1913
|
**Building an account hierarchy** (the structural writes — this is how a coding agent provisions accounts
|
|
1904
1914
|
without a browser):
|
|
@@ -2339,6 +2349,38 @@ Reading rule: first use `slowest` to get candidate trace ids, then call `trace`
|
|
|
2339
2349
|
unaccounted wall time is itself a finding: check cold compile, queueing, blocking I/O, or missing
|
|
2340
2350
|
`measure(...)` instrumentation.
|
|
2341
2351
|
|
|
2352
|
+
### `mcp_event_diagnostics`
|
|
2353
|
+
Diagnose one Event's infrastructure outcome through the same `eventDiagnostics(eventId)` DSL described in
|
|
2354
|
+
`docs/guides/features/observability.md`. Use this before opening Action source when an Event is stuck,
|
|
2355
|
+
recovered, timed out, retried, or appears to have been killed.
|
|
2356
|
+
|
|
2357
|
+
```bash
|
|
2358
|
+
remits-cli tool --name mcp_event_diagnostics --input '{"accountId":49,"eventId":18838}' --data-mode prod
|
|
2359
|
+
```
|
|
2360
|
+
|
|
2361
|
+
| Parameter | Required | Description |
|
|
2362
|
+
|-----------|----------|-------------|
|
|
2363
|
+
| `accountId` | yes | Tenant scope. The Event must belong to this account unless `includeChildren:true`. |
|
|
2364
|
+
| `eventId` / `id` | yes | Event primary key to diagnose. |
|
|
2365
|
+
| `includeChildren` | no | Allow the Event to belong to the requested account or one of its child accounts. Default: `false`. |
|
|
2366
|
+
|
|
2367
|
+
Read `classification` first:
|
|
2368
|
+
|
|
2369
|
+
- `APPLICATION_FAILURE` — the Action failed in application code; read `event.errorMessage`, correlated
|
|
2370
|
+
alerts, and the producing component.
|
|
2371
|
+
- `ORPHANED_*` / `RECOVERED_*` — the attempt was abandoned; read `abandonmentCause`.
|
|
2372
|
+
- `REQUEST_TIMEOUT_LIKELY` means the work likely used its whole deadline, so split it into resumable batches.
|
|
2373
|
+
- `PROCESS_TERMINATED_LIKELY` means the worker likely disappeared before its deadline; inspect JVM/node
|
|
2374
|
+
health and container lifecycle logs.
|
|
2375
|
+
- `UNKNOWN_NO_DEADLINE_EVIDENCE` means the platform refuses to guess; use the returned `logQuery` filters.
|
|
2376
|
+
- `AWAITING_DELIVERY` means the Event has not been claimed; check queue delivery and action-node health.
|
|
2377
|
+
- `IN_FLIGHT_HEALTHY` means the Event is still heartbeating; inspect trace/logs before interrupting.
|
|
2378
|
+
|
|
2379
|
+
The response returns `threadGroupingId`, the full `result` map, `diagnosisHints`, and `pivots` containing
|
|
2380
|
+
ready-to-run inputs for `mcp_performance_trace`, `mcp_system_logs`, `mcp_record_listing`, and
|
|
2381
|
+
`mcp_object_activity` when those handles are present. For a performance question, open the returned
|
|
2382
|
+
`mcp_performance_trace` pivot next; for raw failure context, open logs and records by `threadGroupingId`.
|
|
2383
|
+
|
|
2342
2384
|
### `mcp_component_view`
|
|
2343
2385
|
Read component field content with line numbers.
|
|
2344
2386
|
|