@sumrco/cli 0.4.10 → 0.5.0

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.
@@ -3,19 +3,19 @@
3
3
  "files": [
4
4
  {
5
5
  "file": "index.js",
6
- "sha256": "9ca44aba8aafc0c731406e8c520a46ca13c20f8f1a39f33b1fd494e4930bbbc6"
6
+ "sha256": "428718dbfaabbd76072438666dcbfc6a6a9eec7b5989695fc4c39f2c403ff1cb"
7
7
  },
8
8
  {
9
9
  "file": "index.js.jsc",
10
- "sha256": "2041ef843c3c37e82c54ce01b8b7baa51819daaf2ce7bab26ef4039f257aea70"
10
+ "sha256": "87e1093cae8aa4b0d237385b98a9b1f9dcb685d1acbd3eb9c9126469d2d7f7c9"
11
11
  },
12
12
  {
13
13
  "file": "THIRD_PARTY_NOTICES.md",
14
- "sha256": "93edcad9f1a609961129a02b59cd3eb59d30e0bfe14a8bd7ab905bc2ff105e94"
14
+ "sha256": "22f32c874c10f702e0546447e4b6b61430a06a3519660f39f6907dca6b9bc768"
15
15
  },
16
16
  {
17
17
  "file": "sbom.cdx.json",
18
- "sha256": "ef4001e33cfaf0de9bd4452f9d7f7148baf3e3d3c6d3acd692a8ee3d9e82fd4d"
18
+ "sha256": "6f7eea44480715234427af385bf1d4e4f7914817a7f43f13a97db3fd0453bfbe"
19
19
  }
20
20
  ],
21
21
  "schemaVersion": 1
@@ -51,7 +51,7 @@ Evidence: Bun metafile input
51
51
  License: Apache-2.0
52
52
  Source: git+https://github.com/asyncapi/spec-json-schemas.git
53
53
 
54
- ## @babel/runtime 7.29.13
54
+ ## @babel/runtime 7.29.14
55
55
 
56
56
  Evidence: Declared required dependency closure
57
57
  License: MIT
@@ -35,7 +35,11 @@ change. The only force-family flag is branch cleanup's `--force-with-lease`, pin
35
35
  verified commit, which makes the remote delete conditional.
36
36
 
37
37
  1. **`pr --create-draft` and `pr --create`** push the Mission branch and create a pull request after
38
- every PR gate passes.
38
+ every PR gate passes. In a terminal they ask first. Anywhere else they only print the creation
39
+ preview and its fingerprint; show that preview to the person, and after they approve it run the same
40
+ command with `--yes --fingerprint <fingerprint>`. It creates exactly the previewed pull request and
41
+ refuses when the repository, head, base, title, body, or mode changed. Never pass a fingerprint the
42
+ person did not approve.
39
43
  2. **`cleanup <key> --yes`** deletes a merged and deployed branch. Without `--yes` the command only
40
44
  previews. It runs only when every check passes:
41
45
  - for a flow with the `pr.ready` step, the latest `pr status` reading is `ready` at the pull request's
@@ -105,8 +105,10 @@ dispatch, and whether to use TDD, debugging protocols, or worktrees.
105
105
 
106
106
  Mission ledger, evidence-import, and finish commands never push, create or remove worktrees, delete
107
107
  branches, merge, or mutate a work provider. There are two explicit bounded external exceptions. The
108
- first is `pr --create-draft` and `pr --create`: after every PR safety gate passes, these commands ask
109
- for human approval before pushing and creating the remote PR. If the provider already merged a pull
108
+ first is `pr --create-draft` and `pr --create`: after every PR safety gate passes, these commands need
109
+ a person's approval before pushing and creating the remote PR: a prompt in a terminal, or elsewhere a
110
+ creation preview whose fingerprint the person approves and the command then receives as
111
+ `--yes --fingerprint <fingerprint>`. If the provider already merged a pull
110
112
  request from the Mission branch at the current HEAD, they record it instead, without asking or pushing.
111
113
  The second is `cleanup --yes`: after the pull request is merged, its deployment runs succeeded, and
112
114
  every other check passes, it removes the branch (and a recorded linked worktree) with git commands that never
@@ -24,6 +24,14 @@ separate bound approval command only after the user or trusted automation has ex
24
24
  the exact presented revision and fingerprint. Never ask for approval from a status summary or plan
25
25
  path alone.
26
26
 
27
+ `approve` records who approved as the verified login of the authenticated `gh` session
28
+ (`plan.acceptedBy`, with `plan.approver.source: github`). When `gh` reports no login the approval is
29
+ refused and nothing is written: ask the person to run `gh auth login`. Pass
30
+ `--unverified-approver <name>` only when the person tells you to record the approval without a
31
+ verified identity; it is stored as `approver.source: unverified`. The login names the account whose
32
+ session ran the command, so an agent using the owner's session records the owner's login: wait for the
33
+ person's approval before you run it.
34
+
27
35
  Before asking the user to approve, run `plan show --json` and render all of these fields in the
28
36
  conversation or native approval surface:
29
37
 
@@ -105,7 +105,7 @@ as the branch moves on. Mission records evidence and gates, it does not edit cod
105
105
  `sumr mission reopen` is for a QA rejection: it drops the validation and quality reports. What clears the
106
106
  recorded pull request is a new validation or quality report, a changed plan, or `sumr mission task reopen`
107
107
  (which also clears the finish disposition), and `pr status` then says Mission records no pull request.
108
- Walk the delivery again to `pr --create`, which asks for approval: the reports, the preview,
108
+ Walk the delivery again to `pr --create`, which needs approval (a prompt, or its previewed fingerprint): the reports, the preview,
109
109
  `--accept-preview`. The findings Mission imported, their resolutions, and the last reading stay, and the
110
110
  next `pr status` judges them at the new head. If the provider already has a pull request open for the
111
111
  branch, tell the person instead of working around it.
@@ -15,7 +15,9 @@ Use this workflow after implementation and validation evidence exists.
15
15
  4. Review and edit the generated PR body for scope drift, local-only paths, raw commit logs, and raw diff stats.
16
16
  5. Remove or split unrelated dependency, audit, tooling, infrastructure, or cleanup changes unless they are required for the issue.
17
17
  6. Record the reviewed body with `sumr mission pr <key> --accept-preview`.
18
- 7. Ask before `--create-draft` or `--create`. If the pull request was already merged from this branch at
18
+ 7. Ask before `--create-draft` or `--create`. Without a terminal, run the command once to print the
19
+ creation preview and its fingerprint, show the person that preview, and only after they approve it run
20
+ the command again with `--yes --fingerprint <fingerprint>`. If the pull request was already merged from this branch at
19
21
  HEAD, either command records it without pushing or creating anything.
20
22
 
21
23
  After the pull request exists, keep it ready before finishing: run `sumr mission pr status <key>`, fix