From f13d18f7c4243e6dff4a9e5211a4dea516b94c58 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 27 Nov 2026 23:09:47 +0000 Subject: [PATCH] fix(notation): name the retired 43-character Orbit64 token A 43-character token is the old 5x5 state token. The reader already rejects it. The message now says Orbit64 V1 is no longer supported. --- src/core/capture/CaptureFlow.res | 4 +++- test/cube/notation/orbit64Token.test.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/capture/CaptureFlow.res b/src/core/capture/CaptureFlow.res index aaaf1dbe..abb5a102 100644 --- a/src/core/capture/CaptureFlow.res +++ b/src/core/capture/CaptureFlow.res @@ -148,7 +148,9 @@ let parseCubeInput = (input, selectedFormat: NotationOutput.notationFormat) => { | None => Unreadable({ message: isToken - ? "Invalid Orbit64 state token. Only Orbit64 V2 color state tokens of 2×2–15×15 cubes are supported." + ? String.length(trimmed) == 43 + ? "Orbit64 V1 is no longer supported" + : "Invalid Orbit64 state token. Only Orbit64 V2 color state tokens of 2×2–15×15 cubes are supported." : format == Wrg ? "Invalid facelets. Must be 6 space-separated blocks of equal, perfect-square length (9 for 3×3, 25 for 5×5, ...) using colors W, O, G, R, B, Y, in U R F D L B order." : "Invalid facelets. Must be 6 space-separated blocks of equal, perfect-square length (9 for 3×3, 25 for 5×5, ...) using letters U, R, F, D, L, B (the face each sticker matches when solved), in U R F D L B order.", diff --git a/test/cube/notation/orbit64Token.test.ts b/test/cube/notation/orbit64Token.test.ts index 68aafec3..148ed1b6 100644 --- a/test/cube/notation/orbit64Token.test.ts +++ b/test/cube/notation/orbit64Token.test.ts @@ -88,7 +88,8 @@ describe('Orbit64 token in the UI layer, sizes 2 to 15', () => { expect(decodeOrbit64Token(v1Five)).toBeNull() const refused = parseCubeInput(v1Five, 'urf') expect(refused.ok).toBe(false) - if (!refused.ok) expect(refused.message).toContain('2×2–15×15') + if (!refused.ok) + expect(refused.message).toBe('Orbit64 V1 is no longer supported') expect(decodeOrbit64Token('A'.repeat(7))).toBeNull() expect(encodeOrbit64Token('UUUU RRRR FFFF DDDD LLLL')).toBeNull() const sixteen = ['U', 'R', 'F', 'D', 'L', 'B']