Repository navigation
Commit 2b267b7
feat(i18n): label the list_flow_runs chat step in every locale pack (#34379)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi97KVmecjyPpyMzgf4Ct9yt5)_
Fixes #34368
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:10 个内置语言包各加一条 `chatbot.tool.list_flow_runs` 聊天步骤标签(en「Check
automation runs」,zh-Hans「查看自动化运行记录」,zh-Hant 由生成器重生成);7481 标签覆盖测试的
`AHEAD_OF_PIN` 暂挂这个工具名。
- 为什么改:cloud 新增的 `list_flow_runs` 工具(读一个流程最近的运行记录)在中文等界面里显示成英文「List flow
runs」,用户看不懂。
- 风险与回滚:只加文案和一行测试名单,不动运行逻辑;回滚即撤本 PR。
-
先看:`ui/packages/i18n/src/locales/zh-Hans.ts`(新标签与改正的注释)、`ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts`(`AHEAD_OF_PIN`)。
- 两分钟验证:`pnpm --dir ui exec vitest run
packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts`,预期全部通过。
- 需要你做的:无,席位落地。
## What changes
- Every built-in locale pack
(`ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans}.ts`)
gains `chatbot.tool.list_flow_runs`, placed in the tool block's sorted
order. en `'Check automation runs'`, zh-Hans `'查看自动化运行记录'` as the card
asks; the other eight are a short verb-first sentence that names the
flow the way each pack's `test_flow` / `toggle_flow` neighbours already
do (no pack says "automation" in a user-facing value today).
- `zh-Hant.ts` is regenerated with `pnpm --filter @object-ui/i18n
gen:zh-hant`, not hand-edited.
- `toolLabels-locale-parity-7481.test.ts`: `AHEAD_OF_PIN` carries
`'list_flow_runs'`, the file's hatch for a tool the cloud registers
before the pinned `@objectstack/spec` lists it. Its header note no
longer says the list is empty. **Forced test edit**: this is the only
edit to a test, and it adds coverage (every pack must now carry the
label, and the zh case resolves it through the pack).
- The comment above each pack's `chatbot` block said `test_flow` /
`toggle_flow` are "newer than the registry". The 7481 suite's
`GRADUATED` list asserts they are in it, so that sentence is corrected
in the packs this PR already edits, and the suite name it cited is
spelled as the file is (`toolLabels-locale-parity-7481`).
- Changeset `.changeset/34368-list-flow-runs-label.md`:
`@object-ui/i18n` patch.
## Why
The cloud package `service-ai-studio` registers `list_flow_runs` so the
build agent can answer "did my automation work?" from a run's own error.
With no pack entry, `humanizeToolName` fell back to the English
title-caser, so the step read "List flow runs" in every language.
The registry half (`PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio']` in
`packages/spec`) is split off to the spec-lane card #34372, because it
widens what tool-reference validation accepts. When #34372 lands,
`list_flow_runs` moves from `AHEAD_OF_PIN` to `GRADUATED` in the 7481
suite; that suite's last case reds until it does. The cloud side deletes
its AHEAD entry for this name on the pin bump that carries the registry
entry; that is not done here.
## Tests
<details><summary>plugin-chatbot + i18n, head 0be35fa</summary>
```
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-chatbot/src/__tests__/ packages/i18n/
Test Files 201 passed (201)
Tests 2841 passed | 13 skipped (2854)
os-verify-lock: VERDICT command-exit 0
pnpm --dir ui exec vitest run --maxWorkers=2 (toolLabels-locale-parity-7481, toolLabels-sentences-12724, all-locales-key-parity, zh-hant-generated)
Test Files 4 passed (4)
Tests 89 passed (89)
os-verify-lock: VERDICT command-exit 0
```
</details>
No ablation: the diff adds data and one hand-held list entry; no tested
behaviour changed.
## Acceptance notes
- None filed. Eight packs name the flow with the word their `test_flow`
/ `toggle_flow` labels already use, while en and zh-Hans say
"automation" as the card asks.
## Verification
Local subset at head `0be35fa8`: `node scripts/pm/dispatch-gates.mjs
--commands --repo objectstack-ai/objectstack` derived 40 families from
this diff; all 40 ran and exited 0, and `--ran` reconciled them: "40
derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED". Every other
family (the repo-wide lint, type-check and UI build/E2E jobs) is CI's;
read this PR's check-runs.
<details><summary>40 derived gates, each with its exit code</summary>
```
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
node scripts/check-sdui-manifest.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0
```
</details>
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran; the
repo-wide `pnpm lint` was not run locally, CI's Lint jobs carry it.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmSeJvm9gZwTpkEMwzc)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent e2a4c66 commit 2b267b7
13 files changed
Lines changed: 89 additions & 89 deletions
File tree
- .changeset
- ui/packages
- i18n/src/locales
- plugin-chatbot/src/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4321 | 4321 | | |
4322 | 4322 | | |
4323 | 4323 | | |
4324 | | - | |
4325 | | - | |
4326 | | - | |
4327 | | - | |
4328 | | - | |
4329 | | - | |
4330 | | - | |
| 4324 | + | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
4331 | 4329 | | |
4332 | 4330 | | |
4333 | 4331 | | |
| |||
4392 | 4390 | | |
4393 | 4391 | | |
4394 | 4392 | | |
| 4393 | + | |
4395 | 4394 | | |
4396 | 4395 | | |
4397 | 4396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3984 | 3984 | | |
3985 | 3985 | | |
3986 | 3986 | | |
3987 | | - | |
3988 | | - | |
3989 | | - | |
3990 | | - | |
3991 | | - | |
3992 | | - | |
3993 | | - | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
3994 | 3992 | | |
3995 | 3993 | | |
3996 | 3994 | | |
| |||
4055 | 4053 | | |
4056 | 4054 | | |
4057 | 4055 | | |
| 4056 | + | |
4058 | 4057 | | |
4059 | 4058 | | |
4060 | 4059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4913 | 4913 | | |
4914 | 4914 | | |
4915 | 4915 | | |
4916 | | - | |
4917 | | - | |
4918 | | - | |
4919 | | - | |
4920 | | - | |
4921 | | - | |
4922 | | - | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
4923 | 4921 | | |
4924 | 4922 | | |
4925 | 4923 | | |
| |||
4985 | 4983 | | |
4986 | 4984 | | |
4987 | 4985 | | |
| 4986 | + | |
4988 | 4987 | | |
4989 | 4988 | | |
4990 | 4989 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4069 | 4069 | | |
4070 | 4070 | | |
4071 | 4071 | | |
4072 | | - | |
4073 | | - | |
4074 | | - | |
4075 | | - | |
4076 | | - | |
4077 | | - | |
4078 | | - | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
4079 | 4077 | | |
4080 | 4078 | | |
4081 | 4079 | | |
| |||
4140 | 4138 | | |
4141 | 4139 | | |
4142 | 4140 | | |
| 4141 | + | |
4143 | 4142 | | |
4144 | 4143 | | |
4145 | 4144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4065 | 4065 | | |
4066 | 4066 | | |
4067 | 4067 | | |
4068 | | - | |
4069 | | - | |
4070 | | - | |
4071 | | - | |
4072 | | - | |
4073 | | - | |
4074 | | - | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
4075 | 4073 | | |
4076 | 4074 | | |
4077 | 4075 | | |
| |||
4136 | 4134 | | |
4137 | 4135 | | |
4138 | 4136 | | |
| 4137 | + | |
4139 | 4138 | | |
4140 | 4139 | | |
4141 | 4140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3986 | 3986 | | |
3987 | 3987 | | |
3988 | 3988 | | |
3989 | | - | |
3990 | | - | |
3991 | | - | |
3992 | | - | |
3993 | | - | |
3994 | | - | |
3995 | | - | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
3996 | 3994 | | |
3997 | 3995 | | |
3998 | 3996 | | |
| |||
4057 | 4055 | | |
4058 | 4056 | | |
4059 | 4057 | | |
| 4058 | + | |
4060 | 4059 | | |
4061 | 4060 | | |
4062 | 4061 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3983 | 3983 | | |
3984 | 3984 | | |
3985 | 3985 | | |
3986 | | - | |
3987 | | - | |
3988 | | - | |
3989 | | - | |
3990 | | - | |
3991 | | - | |
3992 | | - | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
3993 | 3991 | | |
3994 | 3992 | | |
3995 | 3993 | | |
| |||
4054 | 4052 | | |
4055 | 4053 | | |
4056 | 4054 | | |
| 4055 | + | |
4057 | 4056 | | |
4058 | 4057 | | |
4059 | 4058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4064 | 4064 | | |
4065 | 4065 | | |
4066 | 4066 | | |
4067 | | - | |
4068 | | - | |
4069 | | - | |
4070 | | - | |
4071 | | - | |
4072 | | - | |
4073 | | - | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
4074 | 4072 | | |
4075 | 4073 | | |
4076 | 4074 | | |
| |||
4135 | 4133 | | |
4136 | 4134 | | |
4137 | 4135 | | |
| 4136 | + | |
4138 | 4137 | | |
4139 | 4138 | | |
4140 | 4139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4163 | 4163 | | |
4164 | 4164 | | |
4165 | 4165 | | |
4166 | | - | |
4167 | | - | |
4168 | | - | |
4169 | | - | |
4170 | | - | |
4171 | | - | |
4172 | | - | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
4173 | 4171 | | |
4174 | 4172 | | |
4175 | 4173 | | |
| |||
4234 | 4232 | | |
4235 | 4233 | | |
4236 | 4234 | | |
| 4235 | + | |
4237 | 4236 | | |
4238 | 4237 | | |
4239 | 4238 | | |
| |||
0 commit comments