From b7b53a937de25270d05253e7e9091cc38bbf0a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 4 Aug 2026 14:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=A7=92=E8=89=B2=E5=8A=A8?= =?UTF-8?q?=E4=BD=9C=E8=BF=81=E7=A7=BB=E5=8F=82=E6=95=B0=E7=BA=BF=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按生成绑定使用 expected_batch_sha_256 SATS 字段调用规范化 procedure。 同步更新 dry-run、apply 哈希绑定和批次顺序测试断言。 --- scripts/spacetime-normalize-editor-character-actions.mjs | 2 +- .../spacetime-normalize-editor-character-actions.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/spacetime-normalize-editor-character-actions.mjs b/scripts/spacetime-normalize-editor-character-actions.mjs index db7a0cad9..c798aa6bb 100644 --- a/scripts/spacetime-normalize-editor-character-actions.mjs +++ b/scripts/spacetime-normalize-editor-character-actions.mjs @@ -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, ), }; diff --git a/scripts/spacetime-normalize-editor-character-actions.test.ts b/scripts/spacetime-normalize-editor-character-actions.test.ts index ccbda298c..c4fa5fd02 100644 --- a/scripts/spacetime-normalize-editor-character-actions.test.ts +++ b/scripts/spacetime-normalize-editor-character-actions.test.ts @@ -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), ]);