docs(gateway): gateway 剩余文件注释改中文(逐行 1:1,代码零字节改动)
主人 2026-10-03 拍板「注释一律中文」;gateway 至此整包注释中文化完成(本会话共 3 批: 已推库 16 个文件 + 本批剩余文件)。 校验:机械校验(非注释改动行)= 空;剥注释后代码文本逐行比对全等(不一致文件数 0); 全树 go test ./... 58 包 ok / 0 FAIL;交叉编译绿。
This commit is contained in:
1 parent
91e8d7a029
commit
074ffc4ebf
73 files changed
+2529
-2529
No files matched your search
@@ -9,11 +9,11 @@ import (
|
||||
"git.yeij.top/AskaEth/Cyrene_v2/internal/persona/loader"
|
||||
)
|
||||
|
||||
// TestPersonaUpsertRequest_ThinkingRoundTripsThroughYAML pins the admin persona
|
||||
// write path for the optional `thinking` block: the hand-written DTO maps into
|
||||
// the loader struct, yaml.Marshal emits the documented keys, and the reload of
|
||||
// that YAML yields the same values — i.e. the field really round-trips instead of
|
||||
// being dropped by an un-whitelisted DTO.
|
||||
// TestPersonaUpsertRequest_ThinkingRoundTripsThroughYAML 钉住管理侧人格
|
||||
// 写路径对可选 `thinking` 块的处理:手写 DTO 映射进
|
||||
// loader 结构体,yaml.Marshal 输出文档化的键,重载
|
||||
// 该 YAML 得到相同的值 —— 即该字段真的往返成功,
|
||||
// 而不是被未列入白名单的 DTO 丢弃。
|
||||
func TestPersonaUpsertRequest_ThinkingRoundTripsThroughYAML(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@@ -42,9 +42,9 @@ func TestPersonaUpsertRequest_ThinkingRoundTripsThroughYAML(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestPersonaUpsertRequest_ThinkingInvalidRejected asserts an invalid thinking
|
||||
// block is rejected through the same validation the loader uses, so the admin API
|
||||
// cannot persist a mode the runtime would refuse to load.
|
||||
// TestPersonaUpsertRequest_ThinkingInvalidRejected 断言非法的 thinking
|
||||
// 块会经由 loader 所用的同一套校验被拒绝,因此管理 API
|
||||
// 无法持久化运行时拒绝加载的模式。
|
||||
func TestPersonaUpsertRequest_ThinkingInvalidRejected(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@@ -60,9 +60,9 @@ func TestPersonaUpsertRequest_ThinkingInvalidRejected(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestPersonaUpsertRequest_NoThinkingBlockOmitsTheKey asserts a request without a
|
||||
// thinking block produces none in the YAML, so no existing persona file gains a
|
||||
// noise section.
|
||||
// TestPersonaUpsertRequest_NoThinkingBlockOmitsTheKey 断言不带 thinking
|
||||
// 块的请求在 YAML 中不产出它,因此既有人格文件不会多出
|
||||
// 一段噪声。
|
||||
func TestPersonaUpsertRequest_NoThinkingBlockOmitsTheKey(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@@ -75,9 +75,9 @@ func TestPersonaUpsertRequest_NoThinkingBlockOmitsTheKey(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestApplyThinkingEdit_PreservesOnOmission is the non-destructive update rule: a
|
||||
// client that omits `thinking` keeps the stored block, an explicit block replaces
|
||||
// it, and an all-default block clears it.
|
||||
// TestApplyThinkingEdit_PreservesOnOmission 是非破坏性更新规则:
|
||||
// 省略 `thinking` 的客户端保留已存块,显式给出块则替换
|
||||
// 它,全默认值的块清除它。
|
||||
func TestApplyThinkingEdit_PreservesOnOmission(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in new issue
Block a user