@open-mercato/core 0.6.6-develop.6536.1.799f7f795b → 0.6.6-develop.6540.1.ae856df1ec

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ import readline from 'node:readline/promises'
10
10
  import { stdin as input, stdout as output } from 'node:process'
11
11
  import { isTenantDataEncryptionEnabled } from '@open-mercato/shared/lib/encryption/toggles'
12
12
  import { parseBooleanToken } from '@open-mercato/shared/lib/boolean'
13
+ import { parseCommaSeparatedList } from '@open-mercato/shared/lib/string'
13
14
  import { createKmsService, type KmsService, type TenantDek } from '@open-mercato/shared/lib/encryption/kms'
14
15
  import {
15
16
  decryptWithAesGcm,
@@ -193,7 +194,7 @@ const addField: ModuleCli = {
193
194
  let options: string[] | undefined
194
195
  if (kind === 'select') {
195
196
  const raw = (args.options as string) || await ask('Options (comma-separated)', 'low,medium,high')
196
- options = raw.split(',').map((s) => s.trim()).filter(Boolean)
197
+ options = parseCommaSeparatedList(raw)
197
198
  }
198
199
  let defaultValue: any = undefined
199
200
  const defRaw = (args.default as string) ?? (args.defaultValue as string)