Repository navigation
feat(i18n): label the list_flow_runs chat step in every locale pack - #34379
Merged
Merged
Conversation
…pack PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio'] gains list_flow_runs, the build agent's read-only reader of a flow's recent runs, and every built-in locale pack gains its chatbot.tool step label (zh-Hant regenerated). The packs' parity comment now says what holds today: the registry, plus the parity suite's AHEAD_OF_PIN list, is the set every pack must cover. Claude-Session: https://claude.ai/code/session_01ADHkmSeJvm9gZwTpkEMwzc Co-authored-by: Claude <noreply@anthropic.com>
…the pin The registry entry for list_flow_runs lands with its own spec change, so this branch keeps packages/spec untouched and lists the name on the parity suite's AHEAD_OF_PIN hatch until the registry carries it. Claude-Session: https://claude.ai/code/session_01ADHkmSeJvm9gZwTpkEMwzc Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmSeJvm9gZwTpkEMwzc Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi 维护者速读
席位意见用户读到的步骤标题不该等 spec 跟进,所以 席位核对 — ACCEPT · domain:ui#2 · head 0be35fa · 2026-11-16T11:17Z |
Nenzyz
pushed a commit
to Nenzyz/objectstack
that referenced
this pull request
Dec 1, 2026
…tools (objectstack-ai#38193) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuEKqL1r3otpmPGByaZzap4u)_ Fixes objectstack-ai#34372 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 搭建助手新增的「查看自动化运行记录」工具,现在登记进平台工具名表;技能里写上这个工具名,校验不再把它当成不存在的工具拒掉。 - 替云端搭建助手解决:它要回答「我的自动化跑成功了吗」,靠的就是这个工具。 - 只是多认一个工具名,不改任何已有工具;出问题直接撤回这个改动即可。 - 无。 ## What changes - `packages/spec/src/system/constants/platform-tool-names.ts`: `'list_flow_runs'` joins `PLATFORM_TOOLS_BY_PACKAGE['service-ai-studio']` in its alphabetical place (after `get_record_history`, before `list_metadata`), and the group's doc comment names it. `PLATFORM_PROVIDED_TOOL_NAMES` therefore carries it and `isPlatformProvidedToolName('list_flow_runs')` answers `true`, so a skill whose `tools[]` names it resolves under ADR-0109 reference integrity instead of being reported as `ai-skill-tool-unresolved`. - `ui/packages/plugin-chatbot/src/__tests__/toolLabels-locale-parity-7481.test.ts`: `list_flow_runs` moves from `AHEAD_OF_PIN` (now empty) to `GRADUATED`, per the file's own note. The ui half (objectstack-ai#34368, PR objectstack-ai#34379) already put its label in every locale pack. This move must ride with the registry entry: with the entry and without the move, the `AHEAD_OF_PIN carries only names the pinned registry still lacks` case turns red (plugin-chatbot reads `@objectstack/spec` as `workspace:^`). - Changeset: `@objectstack/spec` patch (`.changeset/34372-list-flow-runs-registry.md`). Contract review M1 (7235393865, seat revision 7235409030): `SkillSchema.tools` is a free string array, so what an author can write parses the same; the only behaviour change is that one advisory lint warning no longer fires. Same as the registry's earlier additions objectstack-ai#32668 and objectstack-ai#37989. - Resumed from `claude/project-thread-a7rk9c@f754db1` (release comment 6929523318): its two commits were cherry-picked onto current `main`; the old main merge was not reused. Two conflicts resolved by keeping both sides: the `service-ai-studio` doc comment (main had added `ask_which`, cloud#4773) and the spec test (main had added the `get_record_context` case). ## Tests - `platform-tool-names.test.ts`: new case, the group contains `list_flow_runs`, `isPlatformProvidedToolName('list_flow_runs')` is `true`, control `list_flow_run` is `false`. 13/13 pass. - `packages/lint/src/validate-ai-tool-references.test.ts`: new case, a skill naming `list_flow_runs` yields no finding; control, a fictional neighbour `retry_flow_run` in the same list is still reported at `skills[0].tools[1]`. 46/46 pass. - ui `toolLabels-locale-parity-7481.test.ts` + `toolLabels-sentences-12724.test.ts`: 30/30 pass at c5e44f0. Review N2, at 2c464d4: the zh case that looped over `AHEAD_OF_PIN` (now empty, so it asserted nothing) loops over `GRADUATED` with a non-empty guard; 7481 file 17/17. <details><summary>Ablation</summary> - Deleted the `'list_flow_runs',` registry line, rebuilt `@objectstack/spec`, re-ran: the spec case `lists the build agent's read-only flow-run reader` red (1 failed / 12 passed); the ui 7481 file red on `reads a non-empty coverage set` and `AHEAD_OF_PIN carries only names the pinned registry still lacks` (the GRADUATED guard). Restored from the index, rebuilt, green again. </details> ## Acceptance notes - No other enumerating reader of the registry: `git grep get_record_history` outside the registry hits only locale packs, changelogs and a release page. - Review N1 (nit, not taken): the jsdoc carries no cloud reference for `list_flow_runs`; no cloud issue number is named on objectstack-ai#34368 or this card, and the cloud repo is outside this session's reach. - The cloud side deletes its AHEAD entry for this name on the pin bump that carries this (card item 4, cloud repo, not in this PR). ## Verification - `pnpm --filter @objectstack/spec build && pnpm --filter @objectstack/spec exec vitest run src/system/constants/platform-tool-names.test.ts` — expect 13 passed. - Local derived gates (`dispatch-gates.mjs --commands`, 89 commands at c5e44f0): 86 exit 0 (two of them, `lint check:doc-formula-expressions` and `check:docs-transcript-drift`, after building the `@objectstack/lint` closure; first run was PREREQUISITE NOT MET). Not measured locally, CI runs them: `check:dual-build-cjs-loads` and `check:lean-entry-closure` (PREREQUISITE NOT MET: they load built output of packages this worktree did not build), and `pnpm --dir ui exec vitest run scripts/` (1 of 5146 red: `unit-registry-absence-collision` cannot resolve the unbuilt `@objectstack/client` entry; the closure-budget half wants a built console). No `!` in the title and no narrowing arm, so no dogfood battery is owed. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgXM39VND2qb8HbebbK)_ <!-- signed: repo:objectstack#2 · os-sales · session_01L6bhgXM39VND2qb8HbebbK --> --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steve · project thread
Fixes #34368
Clause-②: no
Metadata-protocol: none
维护者速读
chatbot.tool.list_flow_runs聊天步骤标签(en「Check automation runs」,zh-Hans「查看自动化运行记录」,zh-Hant 由生成器重生成);7481 标签覆盖测试的AHEAD_OF_PIN暂挂这个工具名。list_flow_runs工具(读一个流程最近的运行记录)在中文等界面里显示成英文「List flow runs」,用户看不懂。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
ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans}.ts) gainschatbot.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'stest_flow/toggle_flowneighbours already do (no pack says "automation" in a user-facing value today).zh-Hant.tsis regenerated withpnpm --filter @object-ui/i18n gen:zh-hant, not hand-edited.toolLabels-locale-parity-7481.test.ts:AHEAD_OF_PINcarries'list_flow_runs', the file's hatch for a tool the cloud registers before the pinned@objectstack/speclists 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).chatbotblock saidtest_flow/toggle_floware "newer than the registry". The 7481 suite'sGRADUATEDlist 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/34368-list-flow-runs-label.md:@object-ui/i18npatch.Why
The cloud package
service-ai-studioregisterslist_flow_runsso the build agent can answer "did my automation work?" from a run's own error. With no pack entry,humanizeToolNamefell 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']inpackages/spec) is split off to the spec-lane card #34372, because it widens what tool-reference validation accepts. When #34372 lands,list_flow_runsmoves fromAHEAD_OF_PINtoGRADUATEDin 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
plugin-chatbot + i18n, head 0be35fa
No ablation: the diff adds data and one hand-held list entry; no tested behaviour changed.
Acceptance notes
test_flow/toggle_flowlabels 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/objectstackderived 40 families from this diff; all 40 ran and exited 0, and--ranreconciled 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.40 derived gates, each with its exit code
Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (No formatter ran; the repo-widepnpm lintwas not run locally, CI's Lint jobs carry it.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code