修正角色动作迁移参数线名

按生成绑定使用 expected_batch_sha_256 SATS 字段调用规范化 procedure。
同步更新 dry-run、apply 哈希绑定和批次顺序测试断言。
This commit is contained in:
2026-08-04 14:36:04 +08:00
parent da42876c63
commit b7b53a937d
2 changed files with 4 additions and 4 deletions
@@ -93,7 +93,7 @@ export function buildNormalizationInput({
cursor: encodeSpacetimeCliOption(cursor),
limit,
dry_run: dryRun,
expected_batch_sha256: encodeSpacetimeCliOption(
expected_batch_sha_256: encodeSpacetimeCliOption(
dryRun ? null : expectedBatchSha256,
),
};
@@ -34,7 +34,7 @@ describe('角色动作元数据规范化脚本', () => {
cursor: [0, 'asset-25'],
limit: 25,
dry_run: true,
expected_batch_sha256: null,
expected_batch_sha_256: null,
});
expect(() =>
buildNormalizationInput({
@@ -67,7 +67,7 @@ describe('角色动作元数据规范化脚本', () => {
cursor: null,
limit: 25,
dry_run: false,
expected_batch_sha256: [0, 'a'.repeat(64)],
expected_batch_sha_256: [0, 'a'.repeat(64)],
});
});
@@ -133,7 +133,7 @@ describe('角色动作元数据规范化脚本', () => {
showcase: 'c',
canvas: 'd',
}[scope]!;
expect(apply.expected_batch_sha256).toEqual([
expect(apply.expected_batch_sha_256).toEqual([
0,
hashDigit.repeat(64),
]);