import { VersionInfo } from '@start9labs/start-sdk'

// Redaction engine fix: the amount/magnitude regex no longer swallows the first
// letter of a following word. '$5,000,000 but' was scrubbing to '[AMOUNT_1]ut'
// because the single-letter 'b' (billion) suffix matched the 'b' of 'but'; a word
// boundary after the magnitude restores it. Round-trips were already lossless; this
// keeps the *outbound* (to-Claude) text from losing a word. No data migration.
export const v_0_1_0_57 = VersionInfo.of({
  version: '0.1.0:57',
  releaseNotes: {
    en_US: [
      'Redaction fix: a dollar amount immediately followed by a word (e.g. "$5,000,000',
      'but") no longer eats the first letter of that word when de-identifying text sent',
      'to the Architect. Real magnitude suffixes ($5m, $5b, $3-5M) still tokenize.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
