Use when schema updates must reflect the current HEAD in ~/Projects/Personal/sing-box as the authoritative source of truth.
Align local Zod definitions with the live checkout at ~/Projects/Personal/sing-box, treating that repository's HEAD as the upstream source of truth instead of any fixed tag.
title, title_zh, description, description_zh) with the current docs or option structs in the upstream repo.src/schema/** and the latest config structs or docs in the checked-out sing-box repository.Start from the checked-out sing-box repository
~/Projects/Personal/sing-box is up to date and on the desired branch; use git fetch/git pull as needed and verify HEAD is clean.Trace the relevant upstream sources at HEAD
option/*.go, template docs in docs/configuration/**, and any prose that explains new fields.src/schema/** and plan changes that reuse existing shared fragments.Update schemas with bilingual metadata
export const X = z.object(...), export type X = z.infer<typeof X>)..meta(...), preserving both English and Chinese titles/descriptions when upstream provides both..zh docs are absent, translate from the official English text and keep terminology consistent with nearby fields or shared fragments.Verify and document
bun run typecheck, bun run lint, bun run build (when exports change) and confirm generated schema outputs (e.g., schema.json, schema.zh.json) reflect the updates.zh metadata (a grep-style metadata check is optional) and patch any uncovered holes, noting where upstream lacks bilingual text.src/index.ts exports match any new modules or schema symbols.service/*dns/server/*endpoint/tailscalecertificate/indexshared/udp-over-tcp~/Projects/Personal/sing-box before copying field metadata.src/index.ts, leading to missing public entry points.