@remits/remits-cli 0.1.130 → 0.1.133
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 +2 -0
- package/index.js +828 -98
- package/package.json +1 -1
- package/skills/remits-cli/references/branch-variants.md +10 -4
- package/skills/remits-cli/references/command-reference.md +27 -1
- package/skills/remits-cli/references/development-loop.md +19 -0
- package/skills/remits-cli/references/tool-reference.md +4 -3
package/package.json
CHANGED
|
@@ -170,8 +170,9 @@ resolves `X`.
|
|
|
170
170
|
|
|
171
171
|
**Subscribing to a branch and resolving through it are different facts.** An account subscribes on an
|
|
172
172
|
edge; a *request* resolves through that edge only when something named the path (`--as-account`, the
|
|
173
|
-
edge's own host, an explicit `--variant-branch`)
|
|
174
|
-
|
|
173
|
+
edge's own host, an explicit `--variant-branch`), or when its links leave no doubt — a single upward link, or
|
|
174
|
+
several with exactly one carrying a branch, which every account beneath it inherits too. An account whose
|
|
175
|
+
several links carry several branches refuses to guess a path. So this is a normal, explainable state:
|
|
175
176
|
|
|
176
177
|
```
|
|
177
178
|
"componentBranch": null, // this token resolves TRUNK
|
|
@@ -421,9 +422,14 @@ a confirm-gated override when the removal guard refuses. Preview there is the sa
|
|
|
421
422
|
- A test/tool response reports `testComponentSource` as `staged` | `variant` | `db`, so you can see which
|
|
422
423
|
layer the run resolved without reading logs.
|
|
423
424
|
|
|
424
|
-
> **A
|
|
425
|
+
> **A trunk lane never overrides a variant.** Staged edits from your account's trunk branch do not reach an
|
|
426
|
+
> account whose branch overrides that component — production behaves the same way — so `test run` and `token`
|
|
427
|
+
> list them under **NOT RUN FOR THIS ACCOUNT** (`stagedMaskedByVariant`). To change what that account runs, edit
|
|
428
|
+
> the component on its variant branch.
|
|
429
|
+
>
|
|
430
|
+
> **A populated NON-trunk staging lane makes a variant look broken.** Anything carrying a CLI `TestMode` — a
|
|
425
431
|
> `remits-cli token` URL, `/s/<tokenKey>/...`, an `X-Auth-Token` request, a script-loader embed — resolves
|
|
426
|
-
>
|
|
432
|
+
> a variant-branch or feature-branch lane's STAGED layer, which outranks the variant. So with components staged under the same branch/user, a
|
|
427
433
|
> tokenized page reports `Component Branch: <branch>` but `Variant Applied: none` and renders trunk, while
|
|
428
434
|
> an anonymous `?account_id=` request to the same page reports the variant. That is the documented
|
|
429
435
|
> precedence (staged -> variant -> trunk) working correctly, and it reads exactly like "tokens break
|
|
@@ -173,6 +173,8 @@ remits-cli agent work [--wait SECONDS] [--json]
|
|
|
173
173
|
remits-cli agent status [--state idle|working|paused] [--ticket ID] [--activity "..."] [--step "..."]
|
|
174
174
|
remits-cli agent list [--account-id ID] [--json]
|
|
175
175
|
remits-cli agent map [--account-ids 1,4] [--json] # who is EDITING which repository, from which checkout/branch/staging lane
|
|
176
|
+
remits-cli agent inspect [--account-id ID] [--scope self|children] [--user-id ID|--user-email EMAIL] [--limit N] [--json]
|
|
177
|
+
remits-cli activity inspect [--account-id ID] [--scope self|children] [--user-id ID|--user-email EMAIL] [--limit N] [--json]
|
|
176
178
|
remits-cli agent release
|
|
177
179
|
remits-cli ticket read|accept|status|progress|complete|release|reopen|assign|planning --ticket ID [--status S] [--resolution "..."] [--summary "..."] [--category C] [--assignee EMAIL] [--workstream VALUE] [--planned-in VALUE] [--board-stage VALUE] [--rank N] [--size VALUE] [--blocked-by VALUE] [--notes "..."]
|
|
178
180
|
remits-cli ticket lease|unlease|force-unlease --ticket ID [--reason "..."] # force-unlease breaks SOMEBODY ELSE'S lease; operator only
|
|
@@ -236,7 +238,7 @@ remits-cli token inspect --token <token|tokenKey|URL> # inspect
|
|
|
236
238
|
remits-cli tools [--branch <name>] [--data-mode test|prod] [--variant-branch <name|none>]
|
|
237
239
|
remits-cli tool --name <toolName> [--branch <name>] [--input "{...}"] [--data-mode test|prod] [--variant-branch <name|none>] [--timeout-ms 60000] [--async true --wait true]
|
|
238
240
|
remits-cli tool status --call-id <callId> [--data-mode test|prod]
|
|
239
|
-
remits-cli verify start --summary "..." [--manifest file.json] [--ticket ID]
|
|
241
|
+
remits-cli verify start --summary "..." [--manifest file.json] [--ticket ID] [--data-mode test|prod] # default: test
|
|
240
242
|
remits-cli verify list [--max 50] [--json]
|
|
241
243
|
remits-cli verify use <envelopeId>
|
|
242
244
|
remits-cli verify current
|
|
@@ -261,6 +263,30 @@ remits-cli verify abandon --envelope ID --reason "..."
|
|
|
261
263
|
remits-cli verify supersede --envelope ID --superseded-by <envelopeId> [--reason "..."]
|
|
262
264
|
```
|
|
263
265
|
|
|
266
|
+
### Activity inspection
|
|
267
|
+
|
|
268
|
+
`remits-cli activity inspect` is a read-only operator view for understanding an agent or account
|
|
269
|
+
workstream without touching a checkout or staging lane. It joins the current staging-lane registry,
|
|
270
|
+
verification envelopes, durable Test runs, corpus measurements, and live CLI agent presence, then adds
|
|
271
|
+
heuristic smell signals such as shared lanes, broad overlays, retained staged entries, unfinished
|
|
272
|
+
verification, current evidence failures, repeated test failures, corpus failures, and tests that were run
|
|
273
|
+
outside a verification envelope.
|
|
274
|
+
|
|
275
|
+
Use it from the platform repo when a remote agent fleet is looping or a human reports that work is going
|
|
276
|
+
around in circles:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
remits-cli activity inspect --account-id 4 --scope children --data-mode test
|
|
280
|
+
remits-cli activity inspect --account-id 4 --scope children --user-email jason@example.com --json
|
|
281
|
+
remits-cli agent inspect --account-id 1742 --limit 50
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
`--scope children` expands from the selected account to its hierarchy children, which is usually the right
|
|
285
|
+
shape for platform-level review. `--user-id` / `--user-email` filters the stream to one CLI user when the
|
|
286
|
+
platform can identify them from staged lanes, envelopes, tests, or live agent registration. `--json`
|
|
287
|
+
returns the full structured payload for deeper analysis; the text view is intentionally compact and
|
|
288
|
+
human-readable.
|
|
289
|
+
|
|
264
290
|
### Verification envelopes
|
|
265
291
|
|
|
266
292
|
Use a verification envelope for workflow-shaped work: concrete user journeys, browser-facing changes,
|
|
@@ -84,6 +84,25 @@ command world. While active, `components stage`, `components status`, `test run`
|
|
|
84
84
|
`--verify-envelope <id>` to name one explicitly or `--no-verify-envelope` when a command should not be
|
|
85
85
|
attached.
|
|
86
86
|
|
|
87
|
+
`verify start` proves in the **test** lane unless you pass `--data-mode prod` (your session's lane does not
|
|
88
|
+
decide it). One envelope is active per checkout world (host, account, git branch, workspace); the data lane
|
|
89
|
+
is not part of that selection.
|
|
90
|
+
|
|
91
|
+
Before stage, test run, token, tool, sync or commit runs, the CLI asks the platform whether its evidence
|
|
92
|
+
would count for the active envelope:
|
|
93
|
+
|
|
94
|
+
- **attach**: same world, so the evidence attaches.
|
|
95
|
+
- **refuse**: different world and a required evidence item could use this packet. Nothing ran, and the
|
|
96
|
+
refusal names the fix (`--data-mode prod`, `--as-account 21`, `--workspace x`, ...). Apply the fix that
|
|
97
|
+
matches your intent. Use `--no-verify-envelope` when the run is not meant as proof, or `verify start` when
|
|
98
|
+
it is different work. `--allow-wrong-world-evidence` only records context; that evidence never satisfies
|
|
99
|
+
anything.
|
|
100
|
+
- **detach**: different world and nothing in the manifest could use it. The command runs and one line says
|
|
101
|
+
nothing was attached.
|
|
102
|
+
|
|
103
|
+
`verify current` / `verify use` print whether a plain `test run` from this checkout would attach, so you can
|
|
104
|
+
catch a mismatch before the first run.
|
|
105
|
+
|
|
87
106
|
Use the wrappers when you want the intent to be unmistakable:
|
|
88
107
|
|
|
89
108
|
```bash
|
|
@@ -237,9 +237,10 @@ client accounts beneath it:
|
|
|
237
237
|
> is a fully supported shape: it resolves the branch, **and so do all of its descendants**. You do not need
|
|
238
238
|
> to make the subscriber a structural child of its owner.
|
|
239
239
|
>
|
|
240
|
-
>
|
|
241
|
-
>
|
|
242
|
-
>
|
|
240
|
+
> Several upward links are fine when exactly one carries the branch: the account and its descendants roll up
|
|
241
|
+
> through that subscription. What is NOT resolved by default is genuine **ambiguity** — several links and no
|
|
242
|
+
> single subscription among them. That account (and its descendants) resolve nothing above it until a request
|
|
243
|
+
> names the path: `--as-account`, `--variant-branch`, or the edge's own host.
|
|
243
244
|
> An account that has a `parentId` **and** a separate membership edge carrying the branch is this case: the
|
|
244
245
|
> `parentId` wins, so put the branch on the link the account actually inherits through.
|
|
245
246
|
>
|