wachiman 1.14.0 → 1.16.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.
- package/README.md +2 -1
- package/package.json +4 -2
- package/src/accounts/commands.ts +3 -2
- package/src/accounts/confirm.ts +63 -4
- package/src/accounts/profile-list.ts +24 -0
- package/src/cli.ts +161 -142
- package/src/config.ts +19 -6
- package/src/connectors/local-git.ts +47 -0
- package/src/doctor/checks.ts +106 -1
- package/src/doctor/run.ts +9 -1
- package/src/engine.ts +294 -97
- package/src/help.ts +637 -0
- package/src/init/args.ts +5 -2
- package/src/init/github-login.ts +13 -0
- package/src/init/options.ts +31 -3
- package/src/init/prompt.ts +46 -15
- package/src/init/run.ts +238 -32
- package/src/init/settings.ts +127 -0
- package/src/init/write.ts +16 -102
- package/src/ledger-read/command.ts +106 -0
- package/src/ledger-read/credentials.ts +103 -0
- package/src/ledger-read/files.ts +141 -0
- package/src/ledger-read/pull.ts +69 -0
- package/src/ledger-read/rows.ts +60 -0
- package/src/ledger-read/types.ts +127 -0
- package/src/ledger.ts +34 -18
- package/src/local-ask.ts +5 -4
- package/src/local.ts +55 -10
- package/src/loop/command.ts +5 -5
- package/src/pr-template/adopt.ts +434 -0
- package/src/pr-template/catalog.ts +429 -0
- package/src/pr-template/check-run.ts +328 -0
- package/src/pr-template/check.ts +338 -0
- package/src/pr-template/describe.ts +368 -0
- package/src/pr-template/format.ts +399 -0
- package/src/pr-template/gh.ts +159 -0
- package/src/pr-template/install.ts +288 -0
- package/src/pr-template/legacy-guides.ts +50 -0
- package/src/pr-template/pr-risk.ts +426 -0
- package/src/pr-template/render.ts +302 -0
- package/src/pr-template/resolve.ts +65 -0
- package/src/pr-template/run.ts +88 -0
- package/src/pr-template/strip.ts +171 -0
- package/src/pr-template/write.ts +139 -0
- package/src/providers/claude-code.ts +7 -8
- package/src/providers/codex.ts +4 -4
- package/src/providers/spawn.ts +95 -0
- package/src/providers/types.ts +5 -2
- package/src/repo-settings.ts +159 -0
- package/src/setup/prompt.ts +49 -33
- package/src/setup/run.ts +58 -16
- package/src/sinks/common.ts +10 -3
- package/src/sinks/markdown.ts +3 -2
- package/src/sinks/terminal.ts +3 -2
- package/src/spend/report.ts +349 -0
- package/src/status/command.ts +150 -36
- package/src/store/command.ts +20 -3
- package/src/store/html.ts +205 -8
- package/src/store/index.ts +64 -5
- package/src/store/rows.ts +103 -0
- package/src/upgrade/command.ts +286 -0
- package/src/upgrade/pin.ts +112 -0
- package/src/wizard/interactive.ts +11 -0
- package/src/wizard/launcher.ts +340 -0
- package/src/wizard/load.ts +30 -0
- package/src/wizard/mascot.ts +228 -0
- package/src/wizard/prompt-fancy.ts +135 -0
- package/src/wizard/prompt.ts +108 -61
- package/src/wizard/style.ts +93 -13
- package/src/wizard/tone.ts +11 -0
- package/src/wizard/ui.ts +80 -0
- package/templates/pr/sections.json +163 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"intro": "PR description template, generated by `wachiman pr-template`; edit .github/pr-template.json, not this file. The headings and their order come from the template, and `wachiman pr-template check` enforces them; to add a section, edit .github/pr-template.json. Anything that fits no section goes in Notes.",
|
|
4
|
+
"sections": [
|
|
5
|
+
{
|
|
6
|
+
"id": "type",
|
|
7
|
+
"kind": "status-row",
|
|
8
|
+
"label": "Type",
|
|
9
|
+
"required": true,
|
|
10
|
+
"guide": "One of: Feature, Fix, Refactor, Docs, Chore, CI"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": "issue",
|
|
14
|
+
"kind": "status-row",
|
|
15
|
+
"label": "Issue",
|
|
16
|
+
"required": true,
|
|
17
|
+
"guide": "[ABC-123: issue title](link), or None"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "risk",
|
|
21
|
+
"kind": "status-row",
|
|
22
|
+
"label": "Risk",
|
|
23
|
+
"locked": true,
|
|
24
|
+
"rule": "risk-floor",
|
|
25
|
+
"guide": "🟢 Low, 🟡 Medium or 🔴 High, then the reason in a few words. Start from `wachiman pr-template risk`; raise it if you know more, never lower it. Risk is what the change touches, not whether it is right: a small, correct change to authentication is still High; whether it is right is the reviewer's grade."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "rollout",
|
|
29
|
+
"kind": "status-row",
|
|
30
|
+
"label": "Rollout",
|
|
31
|
+
"required": true,
|
|
32
|
+
"guide": "When this reaches users. One of: Direct on deploy (no flag) / New flag `NAME` (default OFF, production OFF) / Existing flag `NAME` (production ON) / Manual step: which / No production effect"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "release",
|
|
36
|
+
"kind": "status-row",
|
|
37
|
+
"label": "Release",
|
|
38
|
+
"required": true,
|
|
39
|
+
"guide": "What the release tool will do: No release, patch, minor. Major only if the owner asked for it"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "evidence-status",
|
|
43
|
+
"kind": "status-row",
|
|
44
|
+
"label": "Evidence",
|
|
45
|
+
"required": true,
|
|
46
|
+
"guide": "What kind exists: Screenshots, Video, Command output, or Not verified: reason. Detail in ## Evidence"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "decisions-status",
|
|
50
|
+
"kind": "status-row",
|
|
51
|
+
"label": "Decisions",
|
|
52
|
+
"required": true,
|
|
53
|
+
"guide": "Each decision in a few words with a link to its record, or None"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "needs-you",
|
|
57
|
+
"kind": "section",
|
|
58
|
+
"heading": "Needs you",
|
|
59
|
+
"locked": true,
|
|
60
|
+
"rule": "not-empty",
|
|
61
|
+
"guide": "Everything only the owner can do or decide: text to read, a decision to accept or veto, a manual step, a secret to set. Checkboxes, with the link or the command. If there is nothing: \"Nothing. Merge when checks are green.\"",
|
|
62
|
+
"body": ["**Before merge**", "", "- [ ]", "", "**After merge**", "", "- [ ]"]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "what",
|
|
66
|
+
"kind": "section",
|
|
67
|
+
"heading": "What",
|
|
68
|
+
"required": true,
|
|
69
|
+
"guide": "What changed and the result someone can observe. Two or three sentences, in the reader's terms. No file list."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "why",
|
|
73
|
+
"kind": "section",
|
|
74
|
+
"heading": "Why",
|
|
75
|
+
"required": true,
|
|
76
|
+
"guide": "The problem this solves and why it was needed now. For a defect: the concrete failure."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "evidence",
|
|
80
|
+
"kind": "section",
|
|
81
|
+
"heading": "Evidence",
|
|
82
|
+
"required": true,
|
|
83
|
+
"guide": "One row per acceptance criterion of the issue; with no issue, one row per claim this PR makes. Evidence is something the owner can open: a screenshot, a recording, an output, a CI check by name. A row with no evidence says \"not verified: reason\". Do not list commands CI already runs.",
|
|
84
|
+
"body": ["| Criterion | Evidence |", "|---|---|"]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "screenshots",
|
|
88
|
+
"kind": "section",
|
|
89
|
+
"heading": "Screenshots",
|
|
90
|
+
"required": true,
|
|
91
|
+
"default": false,
|
|
92
|
+
"guide": "Screenshots or a recording of the change on screen, before and after when something existed before. Say which screen, viewport and theme each one shows."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"id": "decisions",
|
|
96
|
+
"kind": "section",
|
|
97
|
+
"heading": "Decisions",
|
|
98
|
+
"guide": "Only decisions a later reader will ask \"why this and not that\" about. Say what was decided, link the record by title, and mark the ones the owner may want to veto. Delete this section when there are none (the status table then says None).",
|
|
99
|
+
"body": ["| Decision | Why | Record | Your call? |", "|---|---|---|---|"]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "changes",
|
|
103
|
+
"kind": "details",
|
|
104
|
+
"summary": "Changes",
|
|
105
|
+
"summarySuffix": ": N facts, F files, +A −D",
|
|
106
|
+
"rule": "max-rows:7",
|
|
107
|
+
"guide": "One row per thing that is now true, not per file. At most seven rows; group the rest. Mechanical bulk is one row (\"212 files renamed, no behaviour change\").",
|
|
108
|
+
"body": ["| Change | Before | After | Where to look |", "|---|---|---|---|"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "how-to-test",
|
|
112
|
+
"kind": "details",
|
|
113
|
+
"summary": "How to test",
|
|
114
|
+
"guide": "How the owner reproduces the result: directory, environment, command, input, steps and the expected result. Highest risk first."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "rollback",
|
|
118
|
+
"kind": "details",
|
|
119
|
+
"summary": "Rollback",
|
|
120
|
+
"default": false,
|
|
121
|
+
"guide": "How to undo this change if it goes wrong after it reaches users: the flag to turn off, the revert, the data to restore, and what cannot be undone."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "not-verified",
|
|
125
|
+
"kind": "details",
|
|
126
|
+
"summary": "Not verified",
|
|
127
|
+
"summarySuffix": " (N)",
|
|
128
|
+
"guide": "What was not run or checked, and why. Anything here that the owner must act on also appears in Needs you."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "checks",
|
|
132
|
+
"kind": "details",
|
|
133
|
+
"summary": "Checks",
|
|
134
|
+
"guide": "Only commands CI does not run, with their exit codes."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "agent-context",
|
|
138
|
+
"kind": "details",
|
|
139
|
+
"summary": "Agent context",
|
|
140
|
+
"guide": "How autonomous this change was (written by hand, agent with review at each step, or agent unattended), which agent and model wrote it, and which skills it used. Delete this block when a person wrote the whole change."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "notes",
|
|
144
|
+
"kind": "details",
|
|
145
|
+
"summary": "Notes",
|
|
146
|
+
"guide": "Context that fits no other section."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "wachiman",
|
|
150
|
+
"kind": "block",
|
|
151
|
+
"locked": true,
|
|
152
|
+
"start": "<!-- wachiman:confidence:start -->",
|
|
153
|
+
"end": "<!-- wachiman:confidence:end -->"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "footer",
|
|
157
|
+
"kind": "footer",
|
|
158
|
+
"locked": true,
|
|
159
|
+
"rule": "commit-is-head",
|
|
160
|
+
"text": "Describes commit {sha}."
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|