Repository navigation
docs(workflow): finish the Tools wording left over from #1535 (#1548) - #1589
Conversation
… (replay of #1560) Replay of #1560 onto main ac7a916: the original head lives on a fork we cannot push to. Docs-not-needed: docs/subsystems/workflow.md invariant 6 already says every node Bot has a normal Bot's full access and node.tools names connectors only (#1535). This replay only makes the Settings label, the delivery template and the README say the same — no behavior changes, so the subsystem doc is already correct.
|
Verdict: PASS at dbcea23 Ran at this tip: Red first, one file: Checks at tip: Reviewed as the replay of #1560 onto |
Fixes #1548
Owner: Dev
Reviewer: Reviewer
Replay of #1560: the original head is on a fork we cannot push to (maintainer_can_modify=false), so this PR carries the same change replayed onto current main; the original is closed as superseded.
Replayed onto
mainac7a916bb8b77fef6483d88f4d9061abe4b109a6from the original headb9ee22471e54bc5027d7243bbf87df2e5fa862bb(basea2213067, 14 commits behind). Four of the eight files were touched bymaintoo:plugins/workflow/client.js,plugins/workflow/README.md,plugins/workflow/test/ephemeral.test.jsandplugins/workflow/test/client.test.js. On the first three,mainmoved around those lines without rewriting them, so the original's edits apply unchanged; onclient.test.jsmainappended 339 lines of newer tests, so the one new test now sits at the file's new tail. Nothingmainlanded was reverted.patches/ds-bot/files/was regenerated bynode scripts/ds-bot-patches.mjs generate, not hand-edited.The original carried
Owner: Dev-1; this replay carriesOwner: Dev, because the in-repository enqueue guard reads that line againstwritersandDev-1is not a name it knows (the original was a fork PR, which that guard exempts).What changed (8 files, +45/−11)
plugins/workflow/client.js— the Settings → Details row: the English key and its Chinese translation go fromEach Bot's own permission/跟随各个 Bot 的权限toFull access, same as a normal Bot/完全访问,与普通 Bot 相同, and the row that renders it uses the new key; the old key is removed, not orphaned.plugins/workflow/test/client.test.js— one new test: the Details list has a Permissions row, it must not claim a per-Bot permission, it must say full access and same as a normal Bot, andtr()translates the new key.plugins/workflow/src/template.js— the delivery template: Coder'stoolsbecomes['github'](bash,read,editwere never connectors), and the Tester'stools: ['bash']is removed, so the Tester names nothing.plugins/workflow/test/ephemeral.test.js— the two assertions that pin those template lists: Coder['github'], Tester[].core/test/workflow-node-connectors.test.js— the core-side assertion that the built-in tester names no connector:['bash']becomesundefined, plus its comment.patches/ds-bot/files/test/workflow-node-connectors.test.js— the byte-for-byte mirror of the file above, ascore/ == ds-bot/ + patchesrequires.plugins/workflow/README.md— the delivery-template sentence: Coder, Reviewer and Deployer namegithub; the Tester names none, becausebashis not a connector and grants nothing here (fix(workflow): a node's tools selects connectors instead of granting everything #1535).changelog.d/1548-workflow-tools-wording.changed.md— the fragment.Out of scope on purpose: the Tools field's
placeholder(github, bash, read, edit...) stays with #1520.What I ran at dbcea23
TZ=UTCin amaintree with the eight files overwritten:Not run: the red-first measurement (the review node does it), the full
npm run verify, the smoke bench and a browser screenshot. The diff moves a label, the template word list, two assertions and prose — nocore/src/host/and no client bundle source.Docs-not-needed: docs/subsystems/workflow.md invariant 6 already says every node Bot has a normal Bot's full access and node.tools names connectors only (#1535). This replay only makes the Settings label, the delivery template and the README say the same — no behavior changes, so the subsystem doc is already correct.
Checkpoint
{ "pr": 1589, "claim": "Dev", "issue": 1548, "summary": "Settings → Details printed each Bot's own permission and the delivery template listed bash, read and edit on the Coder and bash on the Tester — stale after #1535. The row now says full access, same as a normal Bot, because every node Bot gets a normal Bot's danger-full-access preset. The template names github on the Coder and nothing on the Tester, and the README says naming bash grants nothing. This replay carries the same eight files onto main ac7a916b.", "files": [ "plugins/workflow/client.js", "plugins/workflow/src/template.js", "plugins/workflow/test/client.test.js", "plugins/workflow/test/ephemeral.test.js", "core/test/workflow-node-connectors.test.js", "changelog.d/1548-workflow-tools-wording.changed.md" ], "checks": { "ran": "npm test (plugins/workflow) 176 pass; core workflow-node-connectors.test.js 2 pass; ds-bot-patches check; changelog.mjs check", "result": "green", "at": "dbcea23150c8e823e7a3f636a91f7e0c35217ba2" }, "next": "none — ready for review. The review node measures the red first; the Tools placeholder stays with #1520." }