@lovrabet/lovrabet-cli 2.3.8 → 2.3.9

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.
Files changed (186) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet/guides/development-intent-handoff.md +7 -5
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a13_0x113877=a13_0x46a9;(function(_0x3c8672,_0x4f66f8){const _0x30bda4=a13_0x46a9,_0x1c496f=_0x3c8672();while(!![]){try{const _0x58b460=-parseInt(_0x30bda4(0x9e))/0x1+-parseInt(_0x30bda4(0xcc))/0x2+-parseInt(_0x30bda4(0x80))/0x3*(parseInt(_0x30bda4(0xb6))/0x4)+-parseInt(_0x30bda4(0x93))/0x5+-parseInt(_0x30bda4(0x86))/0x6+parseInt(_0x30bda4(0xa9))/0x7*(-parseInt(_0x30bda4(0xbd))/0x8)+-parseInt(_0x30bda4(0xc1))/0x9*(-parseInt(_0x30bda4(0xc3))/0xa);if(_0x58b460===_0x4f66f8)break;else _0x1c496f['push'](_0x1c496f['shift']());}catch(_0x2a8b64){_0x1c496f['push'](_0x1c496f['shift']());}}}(a13_0xf71b,0xf1236));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a13_0xf71b(){const _0x3e35bf=['\x20auth\x20status','=ak_xxx','bool','authRequired','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','stdout','Invalid\x20accessKey\x20format.','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','nonInteractive','7oACqMl','Tip:\x20you\x20can\x20also\x20run:','\x20(via\x20','logout','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','ACCESS_KEY','envName','\x20doctor','login','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','boolean','push','join','4tLYlNs','Option\x20B:\x20apps\x20config\x20(','\x20config.\x20Nothing\x20to\x20clear.','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','isTTY','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','14244952dRlayG','stdin','Use\x20`','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','9jyUQjY','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','82365210NYMrJk','success','access-key','string','AccessKey\x20cleared\x20from\x20','validation','production','accessKey','ClientAk','3003176vbVrhJ','cancelled','read','str','Shorthand\x20for\x20--access-key','yes','project','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Show\x20current\x20authentication\x20status','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','write','1269687YjFRKF','scope','AccessKey\x20saved\x20to\x20','env','\x20config.','\x20Verify:\x20','7520910MDUEgR','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Status:\x20valid','test','global\x20config','AccessKey:\x20','accessKeyCreatePath','global','check','trim','development','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','userCenterDisplayName','9172850OfNdjX','expired','\x20env\x20var','status','\x20\x20export\x20','\x20config','access_key','code','Clear\x20from\x20global\x20config\x20(default)','auth','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','455328kfsZQF','`auth\x20login`\x20does\x20not\x20support\x20--yes.'];a13_0xf71b=function(){return _0x3e35bf;};return a13_0xf71b();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';import{maskCliAccessKey}from'../../utils/access-key-redaction.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(_0x3bddf4=USER_ACCESS_KEY_CREATE_URL){const _0x43cb62=a13_0x46a9;writeCliSideChannelLine(_0x43cb62(0xad)+PRODUCT_CONFIG[_0x43cb62(0x92)]+':'),writeCliSideChannelLine('\x0a'+_0x3bddf4+'\x0a'),writeCliSideChannelLine(_0x43cb62(0xaa)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x43cb62(0xbb));}function a13_0x46a9(_0x58fe08,_0xc7b960){_0x58fe08=_0x58fe08-0x79;const _0xf71bc9=a13_0xf71b();let _0x46a98d=_0xf71bc9[_0x58fe08];return _0x46a98d;}function buildAccessKeySetupGuide(_0x1ee1d7=USER_ACCESS_KEY_CREATE_URL){const _0xb18ae6=a13_0x46a9;return[_0xb18ae6(0xad)+PRODUCT_CONFIG[_0xb18ae6(0x92)]+':',_0x1ee1d7,_0xb18ae6(0x7d)+CLI_BIN_NAME+_0xb18ae6(0xb9)][_0xb18ae6(0xb5)]('\x0a');}function canPromptForAccessKey(_0x1564a0){const _0x154493=a13_0x46a9;return!_0x1564a0[_0x154493(0xa8)]&&process[_0x154493(0xbe)][_0x154493(0xba)]!==![]&&process[_0x154493(0xa5)][_0x154493(0xba)]!==![];}function resolveAuthScopeFlags(_0x29ac04){const _0x2abdbf=a13_0x46a9;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x29ac04[_0x2abdbf(0xa2)](_0x2abdbf(0x8d)),'explicitProject':_0x29ac04[_0x2abdbf(0xa2)](_0x2abdbf(0x7a)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x27922c){const _0x191db3=a13_0x46a9;let _0x58bc14=(_0x27922c['str'](_0x191db3(0xc5))||_0x27922c[_0x191db3(0xcf)]('ak')||'')[_0x191db3(0x8f)]();const _0x5c1371=(_0x27922c['str'](_0x191db3(0x83))||'')[_0x191db3(0x8f)](),_0x2d407f=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x58bc14&&canPromptForAccessKey(_0x27922c))try{showAccessKeyCreateHint(_0x2d407f),_0x58bc14=await promptAccessKey('');}catch(_0x1fee79){if(isAbortPrompt(_0x1fee79))throw CliErrors[_0x191db3(0xcd)]();throw _0x1fee79;}if(!_0x58bc14)throw CliErrors[_0x191db3(0xc8)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x2d407f));if(!ACCESS_KEY_PATTERN[_0x191db3(0x89)](_0x58bc14))throw CliErrors[_0x191db3(0xc8)](_0x191db3(0xa6),'Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x5c1371)return{'accessKey':_0x58bc14};const _0x58ea63=normalizeEnv(_0x5c1371);return{'accessKey':_0x58bc14,'env':isDaily(_0x58ea63)?'daily':isDev(_0x58ea63)?_0x191db3(0x90):_0x191db3(0xc9)};}export const authDefinitions=[{'service':'auth','command':a13_0x113877(0xb1),'description':a13_0x113877(0x91),'risk':a13_0x113877(0x7f),'confirmationDescription':'Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a13_0x113877(0xc6),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a13_0x113877(0xc6),'description':a13_0x113877(0xd0)},{'name':'global','type':a13_0x113877(0xb3),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x113877(0x7a),'type':a13_0x113877(0xb3),'description':a13_0x113877(0xa4),'default':![]}],async 'execute'(_0x3d8c7b){const _0x43eac8=a13_0x113877;if(_0x3d8c7b[_0x43eac8(0xa2)](_0x43eac8(0x79)))throw CliErrors[_0x43eac8(0xc8)](_0x43eac8(0x9f),_0x43eac8(0xbf)+CLI_BIN_NAME+_0x43eac8(0xa7)+CLI_BIN_NAME+_0x43eac8(0x7e));const _0x3127c2=(_0x3d8c7b[_0x43eac8(0xcf)](_0x43eac8(0xc5))||_0x3d8c7b[_0x43eac8(0xcf)]('ak')||'')['trim']();if(!_0x3127c2&&_0x3d8c7b[_0x43eac8(0xa8)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x43eac8(0x8c)])};const _0x2bdcc1=await resolveAuthWriteInput(_0x3d8c7b),_0x1492b1=resolveAuthScopeFlags(_0x3d8c7b),_0x40b205=readScopedConfig(_0x1492b1);_0x40b205[_0x43eac8(0xca)]=_0x2bdcc1[_0x43eac8(0xca)];_0x2bdcc1[_0x43eac8(0x83)]&&(_0x40b205['env']=_0x2bdcc1[_0x43eac8(0x83)]);writeScopedConfig(_0x40b205,_0x1492b1);const _0x14ec1d=_0x1492b1[_0x43eac8(0x8d)]?_0x43eac8(0x8d):_0x43eac8(0x7a),_0x191fbf=_0x40b205[_0x43eac8(0x83)]?'\x20Current\x20env:\x20'+_0x40b205[_0x43eac8(0x83)]+'.':'';return{'ok':!![],'message':_0x43eac8(0x82)+_0x14ec1d+_0x43eac8(0x84)+_0x191fbf+_0x43eac8(0x85)+CLI_BIN_NAME+_0x43eac8(0xa0)};}},{'service':a13_0x113877(0x9c),'command':a13_0x113877(0xac),'description':'Clear\x20the\x20AccessKey\x20from\x20config','risk':a13_0x113877(0x7f),'confirmationDescription':a13_0x113877(0xbc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x113877(0x8d),'type':a13_0x113877(0xb3),'description':a13_0x113877(0x9b),'default':!![]},{'name':a13_0x113877(0x7a),'type':a13_0x113877(0xb3),'description':a13_0x113877(0xc0),'default':![]}],async 'execute'(_0x5c40e9){const _0x1980c0=a13_0x113877,_0x4befbb=resolveAuthScopeFlags(_0x5c40e9),_0x1a219f=readScopedConfig(_0x4befbb),_0x27ac25=!!_0x1a219f[_0x1980c0(0xca)];delete _0x1a219f[_0x1980c0(0xca)],writeScopedConfig(_0x1a219f,_0x4befbb);const _0x778103=_0x4befbb[_0x1980c0(0x8d)]?_0x1980c0(0x8d):_0x1980c0(0x7a);if(_0x27ac25)return{'ok':!![],'message':_0x1980c0(0xc7)+_0x778103+_0x1980c0(0x84)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x778103+_0x1980c0(0xb8)};}},{'service':a13_0x113877(0x9c),'command':a13_0x113877(0x96),'description':a13_0x113877(0x7c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x113877(0x8d),'type':a13_0x113877(0xb3),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x113877(0x7a),'type':a13_0x113877(0xb3),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a13_0x113877(0x8e),'type':'boolean','description':a13_0x113877(0xb2),'default':![]}],async 'execute'(_0x406e9c){const _0xd855c1=a13_0x113877,_0x56d13e=resolveAuthScopeFlags(_0x406e9c),_0x46a7ab=readScopedConfig(_0x56d13e),_0x2dc1c0=productEnvName(_0xd855c1(0xae)),_0x51cebd=productEnv(_0xd855c1(0xae))||undefined,_0x588cf6=_0x46a7ab['accessKey']||undefined,_0x53d3e4=_0x51cebd||_0x588cf6,_0x1edc72=_0x51cebd?_0x2dc1c0+_0xd855c1(0x95):_0x588cf6?(_0x56d13e['global']?_0xd855c1(0x8d):'project')+_0xd855c1(0x98):null,_0x5353c2=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x53d3e4){const _0x1ad0ad=maskCliAccessKey(_0x53d3e4);_0x5353c2[_0xd855c1(0xb4)]('AccessKey:\x20'+_0x1ad0ad+(_0x1edc72?_0xd855c1(0xab)+_0x1edc72+')':'')),_0x5353c2[_0xd855c1(0xb4)](_0xd855c1(0x88));}if(!_0x53d3e4){_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x5353c2['push'](''),_0x5353c2[_0xd855c1(0xb4)]('Option\x20A:\x20'+CLI_BIN_NAME+_0xd855c1(0x9d)),_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2[_0xd855c1(0xb4)](_0xd855c1(0xb7)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x5353c2[_0xd855c1(0xb4)](_0xd855c1(0x7b)),_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2['push']('Option\x20C:\x20environment\x20variable'),_0x5353c2['push'](_0xd855c1(0x97)+_0x2dc1c0+_0xd855c1(0xa1)),_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2[_0xd855c1(0xb4)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0xd855c1(0xa0)),_0x5353c2['push'](_0xd855c1(0x87)+CLI_BIN_NAME+_0xd855c1(0xb0));if(_0x406e9c[_0xd855c1(0xa2)](_0xd855c1(0x8e))){const _0x104f78=readStoredDeviceCode();if(_0x104f78&&!isStoredDeviceCodeExpired(_0x104f78)){const _0x1ff2ed=getUserDomain(),_0x5ca824=await fetchDeviceToken(_0x1ff2ed,_0x104f78[_0xd855c1(0x9a)]);if(_0x5ca824['status']===_0xd855c1(0xc4)&&_0x5ca824[_0xd855c1(0x99)]){const _0xab901a={'global':_0x104f78[_0xd855c1(0x81)]===_0xd855c1(0x8d)},_0x57c55d=readScopedConfig(_0xab901a);_0x57c55d[_0xd855c1(0xca)]=_0x5ca824[_0xd855c1(0x99)],writeScopedConfig(_0x57c55d,_0xab901a),deleteStoredDeviceCode();const _0x107dea=_0x5ca824['access_key'],_0x1a4b5f=maskCliAccessKey(_0x107dea),_0x857732=_0x104f78['scope']===_0xd855c1(0x8d)?_0xd855c1(0x8a):'project\x20config';return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0xd855c1(0xcb)],_0xd855c1(0x8b)+_0x1a4b5f+_0xd855c1(0xab)+_0x857732+')',_0xd855c1(0x88)]['join']('\x0a')};}_0x5ca824['status']===_0xd855c1(0x94)&&deleteStoredDeviceCode();throw CliErrors[_0xd855c1(0xa3)](_0xd855c1(0xc2));}throw CliErrors['authRequired'](_0x5353c2[_0xd855c1(0xb5)]('\x0a'));}}return{'ok':!![],'message':_0x5353c2[_0xd855c1(0xb5)]('\x0a')};}},{'service':a13_0x113877(0x9c),'command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a13_0x113877(0xce),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x53c656){const _0x2b3ca7=a13_0x113877,_0x168464=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x168464,'meta':{'env':_0x53c656[_0x2b3ca7(0xaf)]??'production'}}};}},authDeviceDefinition];
1
+ const a13_0x523900=a13_0x3d7f;(function(_0x59ce27,_0x373abb){const _0xe96c20=a13_0x3d7f,_0x4dacdf=_0x59ce27();while(!![]){try{const _0x4d1938=-parseInt(_0xe96c20(0x131))/0x1+-parseInt(_0xe96c20(0x162))/0x2+parseInt(_0xe96c20(0x13c))/0x3+parseInt(_0xe96c20(0x17b))/0x4+parseInt(_0xe96c20(0x13f))/0x5+parseInt(_0xe96c20(0x14e))/0x6*(-parseInt(_0xe96c20(0x12b))/0x7)+parseInt(_0xe96c20(0x16f))/0x8;if(_0x4d1938===_0x373abb)break;else _0x4dacdf['push'](_0x4dacdf['shift']());}catch(_0x4aea69){_0x4dacdf['push'](_0x4dacdf['shift']());}}}(a13_0x5ea7,0x74ce4));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a13_0x3d7f(_0xc1058e,_0x3ae091){_0xc1058e=_0xc1058e-0x125;const _0x5ea72b=a13_0x5ea7();let _0x3d7fe1=_0x5ea72b[_0xc1058e];return _0x3d7fe1;}import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';import{maskCliAccessKey}from'../../utils/access-key-redaction.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(_0xc71894=USER_ACCESS_KEY_CREATE_URL){const _0x64e230=a13_0x3d7f;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x64e230(0x135)]+':'),writeCliSideChannelLine('\x0a'+_0xc71894+'\x0a'),writeCliSideChannelLine(_0x64e230(0x147)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x64e230(0x15b));}function buildAccessKeySetupGuide(_0x2e32a7=USER_ACCESS_KEY_CREATE_URL){const _0x89e7=a13_0x3d7f;return[_0x89e7(0x16c)+PRODUCT_CONFIG[_0x89e7(0x135)]+':',_0x2e32a7,_0x89e7(0x171)+CLI_BIN_NAME+_0x89e7(0x16b)]['join']('\x0a');}function canPromptForAccessKey(_0x671579){const _0x3bc2cc=a13_0x3d7f;return!_0x671579['nonInteractive']&&process['stdin']['isTTY']!==![]&&process[_0x3bc2cc(0x165)][_0x3bc2cc(0x12c)]!==![];}function a13_0x5ea7(){const _0x3a87bf=['Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','ClientAk','project','Clear\x20the\x20AccessKey\x20from\x20config','development','str','AccessKey\x20(ak_xxx...)','ACCESS_KEY','Clear\x20from\x20global\x20config\x20(default)','join','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','validation','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Option\x20B:\x20apps\x20config\x20(','Option\x20A:\x20','read','3334709cDcFKh','isTTY','\x20config','AccessKey\x20saved\x20to\x20','trim','Invalid\x20accessKey\x20format.','384959XHKGlB','bool','Show\x20current\x20authentication\x20status','expired','userCenterDisplayName','authRequired','yes','code','string','scope','AccessKey:\x20','2773608SDFEYx','\x20env\x20var','No\x20AccessKey\x20found\x20in\x20','1985530LENITH','accessKey','boolean','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','success','Write\x20to\x20global\x20config\x20(default)','push','status','Tip:\x20you\x20can\x20also\x20run:','Missing\x20accessKey.','Read\x20from\x20global\x20config\x20(default)','auth','access-key','\x20config.','info','6iZpmIu','envName','logout','AccessKey\x20cleared\x20from\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','global','login','production','\x20(via\x20','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Then\x20verify\x20with:\x20','nonInteractive','\x20auth\x20login\x20--access-key\x20<ak_xxx>','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20Verify:\x20','Option\x20C:\x20environment\x20variable','Auth\x20mode:\x20','\x20\x20export\x20','\x20doctor','959410lBfmhE','\x20Current\x20env:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','stdout','accessKeyCreatePath','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','global-default','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','write','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','1327744raLNag','env','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','`auth\x20login`\x20does\x20not\x20support\x20--yes.','access_key','\x20config.\x20Nothing\x20to\x20clear.','Shorthand\x20for\x20--access-key','project\x20config','Status:\x20valid','\x20auth\x20status','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','daily','1327508BrnGmV','check'];a13_0x5ea7=function(){return _0x3a87bf;};return a13_0x5ea7();}function resolveAuthScopeFlags(_0x4eaa06){const _0xc42ed5=a13_0x3d7f;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x4eaa06[_0xc42ed5(0x132)](_0xc42ed5(0x154)),'explicitProject':_0x4eaa06[_0xc42ed5(0x132)](_0xc42ed5(0x17f)),'policy':_0xc42ed5(0x16a)}));}async function resolveAuthWriteInput(_0x4bac67){const _0x56cd51=a13_0x3d7f;let _0x25a04f=(_0x4bac67[_0x56cd51(0x182)]('access-key')||_0x4bac67['str']('ak')||'')[_0x56cd51(0x12f)]();const _0x98516c=(_0x4bac67[_0x56cd51(0x182)](_0x56cd51(0x170))||'')[_0x56cd51(0x12f)](),_0x2c7ea6=''+getUserDomain()+PRODUCT_CONFIG[_0x56cd51(0x166)];if(!_0x25a04f&&canPromptForAccessKey(_0x4bac67))try{showAccessKeyCreateHint(_0x2c7ea6),_0x25a04f=await promptAccessKey('');}catch(_0x597d5b){if(isAbortPrompt(_0x597d5b))throw CliErrors['cancelled']();throw _0x597d5b;}if(!_0x25a04f)throw CliErrors[_0x56cd51(0x126)](_0x56cd51(0x148),buildAccessKeySetupGuide(_0x2c7ea6));if(!ACCESS_KEY_PATTERN['test'](_0x25a04f))throw CliErrors[_0x56cd51(0x126)](_0x56cd51(0x130),_0x56cd51(0x153));if(!_0x98516c)return{'accessKey':_0x25a04f};const _0x44229d=normalizeEnv(_0x98516c);return{'accessKey':_0x25a04f,'env':isDaily(_0x44229d)?_0x56cd51(0x17a):isDev(_0x44229d)?_0x56cd51(0x181):_0x56cd51(0x156)};}export const authDefinitions=[{'service':a13_0x523900(0x14a),'command':a13_0x523900(0x155),'description':a13_0x523900(0x125),'risk':a13_0x523900(0x16d),'confirmationDescription':a13_0x523900(0x17d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x523900(0x14b),'type':a13_0x523900(0x139),'description':a13_0x523900(0x183)},{'name':'ak','type':a13_0x523900(0x139),'description':a13_0x523900(0x175)},{'name':'global','type':a13_0x523900(0x141),'description':a13_0x523900(0x144),'default':!![]},{'name':a13_0x523900(0x17f),'type':'boolean','description':a13_0x523900(0x16e),'default':![]}],async 'execute'(_0x143571){const _0xc7d806=a13_0x523900;if(_0x143571[_0xc7d806(0x132)](_0xc7d806(0x137)))throw CliErrors['validation'](_0xc7d806(0x172),'Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0xc7d806(0x142));const _0x1b160f=(_0x143571[_0xc7d806(0x182)]('access-key')||_0x143571[_0xc7d806(0x182)]('ak')||'')[_0xc7d806(0x12f)]();if(!_0x1b160f&&_0x143571[_0xc7d806(0x15a)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0xc7d806(0x166)])};const _0x9e328=await resolveAuthWriteInput(_0x143571),_0x394e48=resolveAuthScopeFlags(_0x143571),_0x22b5f0=readScopedConfig(_0x394e48);_0x22b5f0['accessKey']=_0x9e328['accessKey'];_0x9e328[_0xc7d806(0x170)]&&(_0x22b5f0[_0xc7d806(0x170)]=_0x9e328['env']);writeScopedConfig(_0x22b5f0,_0x394e48);const _0x4600fd=_0x394e48[_0xc7d806(0x154)]?_0xc7d806(0x154):_0xc7d806(0x17f),_0x10fa94=_0x22b5f0['env']?_0xc7d806(0x163)+_0x22b5f0[_0xc7d806(0x170)]+'.':'';return{'ok':!![],'message':_0xc7d806(0x12e)+_0x4600fd+_0xc7d806(0x14c)+_0x10fa94+_0xc7d806(0x15d)+CLI_BIN_NAME+_0xc7d806(0x178)};}},{'service':a13_0x523900(0x14a),'command':a13_0x523900(0x150),'description':a13_0x523900(0x180),'risk':a13_0x523900(0x16d),'confirmationDescription':a13_0x523900(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x523900(0x154),'type':a13_0x523900(0x141),'description':a13_0x523900(0x185),'default':!![]},{'name':'project','type':a13_0x523900(0x141),'description':a13_0x523900(0x179),'default':![]}],async 'execute'(_0x500c2c){const _0x301b76=a13_0x523900,_0x3f7eff=resolveAuthScopeFlags(_0x500c2c),_0x4a4543=readScopedConfig(_0x3f7eff),_0x4b0bb6=!!_0x4a4543[_0x301b76(0x140)];delete _0x4a4543[_0x301b76(0x140)],writeScopedConfig(_0x4a4543,_0x3f7eff);const _0x3a5051=_0x3f7eff[_0x301b76(0x154)]?_0x301b76(0x154):_0x301b76(0x17f);if(_0x4b0bb6)return{'ok':!![],'message':_0x301b76(0x151)+_0x3a5051+'\x20config.'};return{'ok':!![],'message':_0x301b76(0x13e)+_0x3a5051+_0x301b76(0x174)};}},{'service':a13_0x523900(0x14a),'command':a13_0x523900(0x146),'description':a13_0x523900(0x133),'risk':a13_0x523900(0x12a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a13_0x523900(0x141),'description':a13_0x523900(0x149),'default':!![]},{'name':a13_0x523900(0x17f),'type':'boolean','description':a13_0x523900(0x164),'default':![]},{'name':a13_0x523900(0x17c),'type':'boolean','description':a13_0x523900(0x169),'default':![]}],async 'execute'(_0x479ae1){const _0x3c525a=a13_0x523900,_0x399257=resolveAuthScopeFlags(_0x479ae1),_0x1a4024=readScopedConfig(_0x399257),_0x4a74a3=productEnvName(_0x3c525a(0x184)),_0x4a4544=productEnv(_0x3c525a(0x184))||undefined,_0x56e5a1=_0x1a4024['accessKey']||undefined,_0x3b0c89=_0x4a4544||_0x56e5a1,_0x510a3a=_0x4a4544?_0x4a74a3+_0x3c525a(0x13d):_0x56e5a1?(_0x399257[_0x3c525a(0x154)]?_0x3c525a(0x154):'project')+_0x3c525a(0x12d):null,_0x5dac1d=[_0x3c525a(0x15f)+AUTH_MODE[_0x3c525a(0x17e)]];if(_0x3b0c89){const _0x168337=maskCliAccessKey(_0x3b0c89);_0x5dac1d['push'](_0x3c525a(0x13b)+_0x168337+(_0x510a3a?'\x20(via\x20'+_0x510a3a+')':'')),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x177));}if(!_0x3b0c89){_0x5dac1d[_0x3c525a(0x145)](''),_0x5dac1d['push'](_0x3c525a(0x152)),_0x5dac1d[_0x3c525a(0x145)](''),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x129)+CLI_BIN_NAME+_0x3c525a(0x167)),_0x5dac1d[_0x3c525a(0x145)](''),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x128)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x15c)),_0x5dac1d[_0x3c525a(0x145)](''),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x15e)),_0x5dac1d['push'](_0x3c525a(0x160)+_0x4a74a3+'=ak_xxx'),_0x5dac1d[_0x3c525a(0x145)](''),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x159)+CLI_BIN_NAME+'\x20auth\x20status'),_0x5dac1d[_0x3c525a(0x145)](_0x3c525a(0x127)+CLI_BIN_NAME+_0x3c525a(0x161));if(_0x479ae1[_0x3c525a(0x132)](_0x3c525a(0x17c))){const _0xbb1963=readStoredDeviceCode();if(_0xbb1963&&!isStoredDeviceCodeExpired(_0xbb1963)){const _0x4cd188=getUserDomain(),_0x412db0=await fetchDeviceToken(_0x4cd188,_0xbb1963[_0x3c525a(0x138)]);if(_0x412db0[_0x3c525a(0x146)]===_0x3c525a(0x143)&&_0x412db0['access_key']){const _0x48a4c2={'global':_0xbb1963[_0x3c525a(0x13a)]===_0x3c525a(0x154)},_0x262893=readScopedConfig(_0x48a4c2);_0x262893[_0x3c525a(0x140)]=_0x412db0[_0x3c525a(0x173)],writeScopedConfig(_0x262893,_0x48a4c2),deleteStoredDeviceCode();const _0x15a60a=_0x412db0[_0x3c525a(0x173)],_0x4d9cc8=maskCliAccessKey(_0x15a60a),_0x21a03a=_0xbb1963[_0x3c525a(0x13a)]===_0x3c525a(0x154)?'global\x20config':_0x3c525a(0x176);return{'ok':!![],'message':[_0x3c525a(0x15f)+AUTH_MODE[_0x3c525a(0x17e)],_0x3c525a(0x13b)+_0x4d9cc8+_0x3c525a(0x157)+_0x21a03a+')',_0x3c525a(0x177)][_0x3c525a(0x186)]('\x0a')};}_0x412db0[_0x3c525a(0x146)]===_0x3c525a(0x134)&&deleteStoredDeviceCode();throw CliErrors[_0x3c525a(0x136)]('Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.');}throw CliErrors['authRequired'](_0x5dac1d['join']('\x0a'));}}return{'ok':!![],'message':_0x5dac1d[_0x3c525a(0x186)]('\x0a')};}},{'service':a13_0x523900(0x14a),'command':a13_0x523900(0x14d),'description':a13_0x523900(0x158),'risk':a13_0x523900(0x12a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4a7931){const _0x344628=a13_0x523900,_0x389bfa=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x389bfa,'meta':{'env':_0x4a7931[_0x344628(0x14f)]??_0x344628(0x156)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x58176f,_0x525766){const _0x4de24d=a14_0x3c31,_0x1f1c9d=_0x58176f();while(!![]){try{const _0x41491b=-parseInt(_0x4de24d(0xaf))/0x1+-parseInt(_0x4de24d(0xc0))/0x2*(-parseInt(_0x4de24d(0xbc))/0x3)+parseInt(_0x4de24d(0xb4))/0x4+parseInt(_0x4de24d(0xc2))/0x5*(parseInt(_0x4de24d(0xac))/0x6)+-parseInt(_0x4de24d(0xb7))/0x7*(parseInt(_0x4de24d(0xb1))/0x8)+parseInt(_0x4de24d(0xc1))/0x9*(parseInt(_0x4de24d(0xbb))/0xa)+parseInt(_0x4de24d(0xb0))/0xb*(parseInt(_0x4de24d(0xbf))/0xc);if(_0x41491b===_0x525766)break;else _0x1f1c9d['push'](_0x1f1c9d['shift']());}catch(_0x4664e0){_0x1f1c9d['push'](_0x1f1c9d['shift']());}}}(a14_0x17a5,0xc85e9));function a14_0x17a5(){const _0x287c49=['1256529wwfbZC','8691947PNeorS','245176LLqZYl','trim','User\x20aborted\x20prompt','1663428DafQLp','once','name','273BrjguT','SIGINT','):\x20','close','4037450IgNKVg','12TCgUMn','AbortPrompt','AccessKey\x20(paste\x20ak_...):\x20','12PiLNdB','531028oHdzAl','9mKaizy','37540bBhWzy','480zXtjTL','race','stdin'];a14_0x17a5=function(){return _0x287c49;};return a14_0x17a5();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1527e7=a14_0x3c31;super(_0x1527e7(0xb3)),this[_0x1527e7(0xb6)]=_0x1527e7(0xbd);}}function a14_0x3c31(_0x5c6353,_0x241165){_0x5c6353=_0x5c6353-0xac;const _0x17a517=a14_0x17a5();let _0x3c3115=_0x17a517[_0x5c6353];return _0x3c3115;}function createSafeRl(){const _0x552357=a14_0x3c31,_0x368a77=createInterface({'input':process[_0x552357(0xae)],'output':process['stdout']});let _0x1e3668;const _0x31db37=new Promise((_0x5a1fde,_0x34d0b3)=>{const _0x20f852=_0x552357;_0x1e3668=()=>{const _0x1fd6b7=a14_0x3c31;_0x1e3668&&(_0x368a77['removeListener']('SIGINT',_0x1e3668),_0x1e3668=undefined);try{_0x368a77[_0x1fd6b7(0xba)]();}catch{}_0x34d0b3(new AbortPrompt());},_0x368a77[_0x20f852(0xb5)](_0x20f852(0xb8),_0x1e3668);}),_0x3ac29e=()=>{const _0xad633=_0x552357;_0x1e3668&&(_0x368a77['removeListener'](_0xad633(0xb8),_0x1e3668),_0x1e3668=undefined);try{_0x368a77[_0xad633(0xba)]();}catch{}};return{'rl':_0x368a77,'abortPromise':_0x31db37,'disposeSuccess':_0x3ac29e};}export async function promptAccessKey(_0x1688aa=''){const _0xdf11f=a14_0x3c31,{rl:_0x36cf6a,abortPromise:_0x3095a6,disposeSuccess:_0x1723a6}=createSafeRl(),_0x49de4d=new Promise(_0x382f15=>{const _0x202448=a14_0x3c31,_0x5ea1db=_0x1688aa?'AccessKey\x20('+_0x1688aa+_0x202448(0xb9):_0x202448(0xbe);_0x36cf6a['question'](_0x5ea1db,_0xdd354a=>{const _0x2b426e=_0x202448;_0x1723a6(),_0x382f15(_0xdd354a[_0x2b426e(0xb2)]()||_0x1688aa);});});return Promise[_0xdf11f(0xad)]([_0x49de4d,_0x3095a6]);}export function isAbortPrompt(_0x4931ec){const _0x56a94=a14_0x3c31;return _0x4931ec instanceof Error&&_0x4931ec[_0x56a94(0xb6)]===_0x56a94(0xbd);}
1
+ (function(_0xc1e602,_0x23e6e5){const _0x55b318=a14_0x200b,_0xb1db31=_0xc1e602();while(!![]){try{const _0xea90d2=parseInt(_0x55b318(0xd5))/0x1+parseInt(_0x55b318(0xd4))/0x2+parseInt(_0x55b318(0xcc))/0x3+-parseInt(_0x55b318(0xd1))/0x4*(parseInt(_0x55b318(0xda))/0x5)+-parseInt(_0x55b318(0xcf))/0x6*(parseInt(_0x55b318(0xcd))/0x7)+parseInt(_0x55b318(0xd3))/0x8+-parseInt(_0x55b318(0xd0))/0x9;if(_0xea90d2===_0x23e6e5)break;else _0xb1db31['push'](_0xb1db31['shift']());}catch(_0x3156ff){_0xb1db31['push'](_0xb1db31['shift']());}}}(a14_0x5730,0x990ad));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x5545ac=a14_0x200b;super('User\x20aborted\x20prompt'),this[_0x5545ac(0xd8)]=_0x5545ac(0xd6);}}function createSafeRl(){const _0x19e109=a14_0x200b,_0xa7461d=createInterface({'input':process['stdin'],'output':process[_0x19e109(0xd2)]});let _0x41ee3d;const _0x5c8ada=new Promise((_0x3894d9,_0x17645a)=>{const _0x2922fc=_0x19e109;_0x41ee3d=()=>{const _0xa11cdd=a14_0x200b;_0x41ee3d&&(_0xa7461d[_0xa11cdd(0xd7)](_0xa11cdd(0xcb),_0x41ee3d),_0x41ee3d=undefined);try{_0xa7461d['close']();}catch{}_0x17645a(new AbortPrompt());},_0xa7461d['once'](_0x2922fc(0xcb),_0x41ee3d);}),_0x42bead=()=>{const _0x58b6c2=_0x19e109;_0x41ee3d&&(_0xa7461d['removeListener'](_0x58b6c2(0xcb),_0x41ee3d),_0x41ee3d=undefined);try{_0xa7461d[_0x58b6c2(0xc9)]();}catch{}};return{'rl':_0xa7461d,'abortPromise':_0x5c8ada,'disposeSuccess':_0x42bead};}function a14_0x5730(){const _0x2e2407=['):\x20','SIGINT','3370761SFRkQO','371lALuPO','question','5298RaAEVg','13345875yhixFK','784xGXjaL','stdout','9062048tDKDwu','1208818fwWnGl','297931gtJHIa','AbortPrompt','removeListener','name','AccessKey\x20(paste\x20ak_...):\x20','25565iCcKsk','close'];a14_0x5730=function(){return _0x2e2407;};return a14_0x5730();}function a14_0x200b(_0x14674d,_0x5d7344){_0x14674d=_0x14674d-0xc9;const _0x573052=a14_0x5730();let _0x200b4c=_0x573052[_0x14674d];return _0x200b4c;}export async function promptAccessKey(_0x403bcf=''){const {rl:_0x2ced6d,abortPromise:_0x4bdbf3,disposeSuccess:_0x50935a}=createSafeRl(),_0x27d180=new Promise(_0x227c3d=>{const _0xd28d3b=a14_0x200b,_0x2f8580=_0x403bcf?'AccessKey\x20('+_0x403bcf+_0xd28d3b(0xca):_0xd28d3b(0xd9);_0x2ced6d[_0xd28d3b(0xce)](_0x2f8580,_0x3a0299=>{_0x50935a(),_0x227c3d(_0x3a0299['trim']()||_0x403bcf);});});return Promise['race']([_0x27d180,_0x4bdbf3]);}export function isAbortPrompt(_0x5c0246){const _0x68e40a=a14_0x200b;return _0x5c0246 instanceof Error&&_0x5c0246[_0x68e40a(0xd8)]===_0x68e40a(0xd6);}
@@ -1 +1 @@
1
- const a15_0x2704d7=a15_0x6fa6;(function(_0x2be057,_0x533633){const _0x477c25=a15_0x6fa6,_0x5b0d1b=_0x2be057();while(!![]){try{const _0x4780d5=-parseInt(_0x477c25(0x1e6))/0x1+parseInt(_0x477c25(0x1de))/0x2*(-parseInt(_0x477c25(0x1da))/0x3)+-parseInt(_0x477c25(0x1e2))/0x4+-parseInt(_0x477c25(0x1d9))/0x5+-parseInt(_0x477c25(0x1d8))/0x6*(parseInt(_0x477c25(0x1e7))/0x7)+parseInt(_0x477c25(0x1db))/0x8+parseInt(_0x477c25(0x1e3))/0x9;if(_0x4780d5===_0x533633)break;else _0x5b0d1b['push'](_0x5b0d1b['shift']());}catch(_0xab6fe3){_0x5b0d1b['push'](_0x5b0d1b['shift']());}}}(a15_0x1f0b,0x3c61e));function a15_0x1f0b(){const _0x5b7524=['3865240nMhEBd','read','name','386RnsnNr','detail','appCode','gmtModified','1743220VVsssa','7039368eefhhB','description','Backend\x20Function\x20name','63262TSOxEj','140vULWFm','95196RTeQzr','704960GRYwtu','942DTJPWs'];a15_0x1f0b=function(){return _0x5b7524;};return a15_0x1f0b();}import{getBffEndpointContract}from'../../core/api-client.js';function a15_0x6fa6(_0x269b06,_0x2ed07d){_0x269b06=_0x269b06-0x1d8;const _0x1f0b71=a15_0x1f0b();let _0x6fa68f=_0x1f0b71[_0x269b06];return _0x6fa68f;}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a15_0x2704d7(0x1df),'description':'Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','risk':a15_0x2704d7(0x1dc),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x2704d7(0x1e5)}],async 'execute'(_0x2b2975){const _0x298e21=a15_0x2704d7,_0x4c2fff=await getBffEndpointContract(_0x2b2975[_0x298e21(0x1e0)],_0x2b2975['str'](_0x298e21(0x1dd)));return{'ok':!![],'data':{'appCode':_0x4c2fff['appCode'],'functionName':_0x4c2fff['functionName'],'description':_0x4c2fff[_0x298e21(0x1e4)]||'(none)','version':_0x4c2fff['version'],'gmtModified':_0x4c2fff[_0x298e21(0x1e1)]}};}};
1
+ const a15_0x4c5fd0=a15_0x50e5;function a15_0x2541(){const _0xcfc442=['7598810xfatog','42mUwvbQ','1080wtLlHx','appCode','63151ygzBCp','10496BmPEIj','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','name','gmtModified','2161005EqUYYy','93sYzXVM','version','description','bff','2484280UUaxdv','detail','4896CjIhfm','189LxtPMv','read','functionName','622295TAMbhp','9DXadFO'];a15_0x2541=function(){return _0xcfc442;};return a15_0x2541();}(function(_0x11b4e2,_0x1fcfbd){const _0x370133=a15_0x50e5,_0x28d03b=_0x11b4e2();while(!![]){try{const _0x1867e0=-parseInt(_0x370133(0x191))/0x1*(-parseInt(_0x370133(0x18c))/0x2)+-parseInt(_0x370133(0x190))/0x3+parseInt(_0x370133(0x195))/0x4+-parseInt(_0x370133(0x185))/0x5*(parseInt(_0x370133(0x188))/0x6)+parseInt(_0x370133(0x182))/0x7*(parseInt(_0x370133(0x197))/0x8)+parseInt(_0x370133(0x186))/0x9*(parseInt(_0x370133(0x187))/0xa)+-parseInt(_0x370133(0x18b))/0xb*(-parseInt(_0x370133(0x189))/0xc);if(_0x1867e0===_0x1fcfbd)break;else _0x28d03b['push'](_0x28d03b['shift']());}catch(_0x2a89eb){_0x28d03b['push'](_0x28d03b['shift']());}}}(a15_0x2541,0xc5eb9));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a15_0x50e5(_0x41a614,_0x548c5b){_0x41a614=_0x41a614-0x182;const _0x2541f6=a15_0x2541();let _0x50e5d0=_0x2541f6[_0x41a614];return _0x50e5d0;}export const bffDetail={'service':a15_0x4c5fd0(0x194),'command':a15_0x4c5fd0(0x196),'description':a15_0x4c5fd0(0x18d),'risk':a15_0x4c5fd0(0x183),'flags':[{...NAME_FLAG,'required':!![],'description':'Backend\x20Function\x20name'}],async 'execute'(_0x4df19d){const _0x52b424=a15_0x4c5fd0,_0x316a62=await getBffEndpointContract(_0x4df19d[_0x52b424(0x18a)],_0x4df19d['str'](_0x52b424(0x18e)));return{'ok':!![],'data':{'appCode':_0x316a62['appCode'],'functionName':_0x316a62[_0x52b424(0x184)],'description':_0x316a62[_0x52b424(0x193)]||'(none)','version':_0x316a62[_0x52b424(0x192)],'gmtModified':_0x316a62[_0x52b424(0x18f)]}};}};
@@ -1 +1 @@
1
- function a16_0x46c7(_0x1f5185,_0x10a819){_0x1f5185=_0x1f5185-0x1de;const _0x3be42d=a16_0x3be4();let _0x46c760=_0x3be42d[_0x1f5185];return _0x46c760;}const a16_0x4c7b1c=a16_0x46c7;(function(_0x1e1042,_0xabcd21){const _0x163a76=a16_0x46c7,_0x232ece=_0x1e1042();while(!![]){try{const _0x463ea0=parseInt(_0x163a76(0x1df))/0x1+parseInt(_0x163a76(0x1ea))/0x2+-parseInt(_0x163a76(0x1ed))/0x3+parseInt(_0x163a76(0x1de))/0x4+-parseInt(_0x163a76(0x1eb))/0x5*(-parseInt(_0x163a76(0x1e5))/0x6)+-parseInt(_0x163a76(0x1ec))/0x7*(-parseInt(_0x163a76(0x1e2))/0x8)+-parseInt(_0x163a76(0x1e3))/0x9*(parseInt(_0x163a76(0x1e0))/0xa);if(_0x463ea0===_0xabcd21)break;else _0x232ece['push'](_0x232ece['shift']());}catch(_0x38ac04){_0x232ece['push'](_0x232ece['shift']());}}}(a16_0x3be4,0x4e730));function a16_0x3be4(){const _0x55cd50=['1467112EocXRL','524819ECiiWN','3110VmyhwM','name','24vXzPWA','29529IsoYut','bff','210060WGGiHb','read','Backend\x20Function\x20executed\x20in\x20','Backend\x20Function\x20name\x20to\x20execute','exec','22580JYCSkE','55ANcTpK','1459703ktlzAC','1715595vOffmk','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','str'];a16_0x3be4=function(){return _0x55cd50;};return a16_0x3be4();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a16_0x4c7b1c(0x1e4),'command':a16_0x4c7b1c(0x1e9),'description':a16_0x4c7b1c(0x1ee),'risk':a16_0x4c7b1c(0x1e6),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x4c7b1c(0x1e8)},PARAMS_FLAG],async 'execute'(_0x3289f7){const _0x4a50b3=a16_0x4c7b1c,_0xe3dd68=parseJsonParams(_0x3289f7[_0x4a50b3(0x1ef)]('params')),_0xc7cec3=Date['now'](),_0x171718=await executeSdkBff(_0x3289f7[_0x4a50b3(0x1ef)](_0x4a50b3(0x1e1)),_0xe3dd68),_0x5c246c=Date['now']()-_0xc7cec3;return{'ok':!![],'data':{'result':_0x171718,'elapsed':_0x5c246c},'message':_0x4a50b3(0x1e7)+_0x5c246c+'ms'};}};
1
+ const a16_0x9ef501=a16_0x4f84;(function(_0x3c8eb8,_0x2b0156){const _0x18e1df=a16_0x4f84,_0x522cf0=_0x3c8eb8();while(!![]){try{const _0x7255ea=-parseInt(_0x18e1df(0x78))/0x1*(-parseInt(_0x18e1df(0x6e))/0x2)+parseInt(_0x18e1df(0x70))/0x3*(parseInt(_0x18e1df(0x72))/0x4)+parseInt(_0x18e1df(0x69))/0x5+parseInt(_0x18e1df(0x6f))/0x6+parseInt(_0x18e1df(0x7a))/0x7+parseInt(_0x18e1df(0x74))/0x8*(parseInt(_0x18e1df(0x77))/0x9)+parseInt(_0x18e1df(0x6d))/0xa*(-parseInt(_0x18e1df(0x67))/0xb);if(_0x7255ea===_0x2b0156)break;else _0x522cf0['push'](_0x522cf0['shift']());}catch(_0x24b9ca){_0x522cf0['push'](_0x522cf0['shift']());}}}(a16_0x43cc,0xa4eb6));import{executeSdkBff}from'../../core/sdk-client.js';function a16_0x4f84(_0x3e3875,_0xd15eff){_0x3e3875=_0x3e3875-0x67;const _0x43cc58=a16_0x43cc();let _0x4f84c9=_0x43cc58[_0x3e3875];return _0x4f84c9;}function a16_0x43cc(){const _0x283890=['params','71523eMGasd','5QQEQEp','str','6707652lQPSgK','52066498vXQWOz','Backend\x20Function\x20name\x20to\x20execute','6200700yrCQvc','read','now','name','10VXjWSu','337076jCBPjI','6044418rVlsWg','333LkJhAz','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','32412VFwrHG','Backend\x20Function\x20executed\x20in\x20','464eSxWYP','bff'];a16_0x43cc=function(){return _0x283890;};return a16_0x43cc();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a16_0x9ef501(0x75),'command':'exec','description':a16_0x9ef501(0x71),'risk':a16_0x9ef501(0x6a),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x9ef501(0x68)},PARAMS_FLAG],async 'execute'(_0x39a110){const _0x262f2c=a16_0x9ef501,_0x3c52bc=parseJsonParams(_0x39a110[_0x262f2c(0x79)](_0x262f2c(0x76))),_0x3dcf1b=Date['now'](),_0x2322ef=await executeSdkBff(_0x39a110[_0x262f2c(0x79)](_0x262f2c(0x6c)),_0x3c52bc),_0x22661c=Date[_0x262f2c(0x6b)]()-_0x3dcf1b;return{'ok':!![],'data':{'result':_0x2322ef,'elapsed':_0x22661c},'message':_0x262f2c(0x73)+_0x22661c+'ms'};}};
@@ -1 +1 @@
1
- function a17_0x5038(){const _0xa5a156=['5oJsOmz','8898540tHwpTr','7254928XlvbDV','5297704AqDLcl','38568249cnEdcI','879850SXICqd','305466XyWOGn','6680TPyTCe','693giqWUz'];a17_0x5038=function(){return _0xa5a156;};return a17_0x5038();}(function(_0x25ea79,_0x4f14d7){const _0x5f402c=a17_0x1813,_0x1b2243=_0x25ea79();while(!![]){try{const _0x4551fe=parseInt(_0x5f402c(0x18d))/0x1+-parseInt(_0x5f402c(0x18f))/0x2*(parseInt(_0x5f402c(0x190))/0x3)+-parseInt(_0x5f402c(0x18b))/0x4*(parseInt(_0x5f402c(0x191))/0x5)+parseInt(_0x5f402c(0x18e))/0x6+-parseInt(_0x5f402c(0x192))/0x7+-parseInt(_0x5f402c(0x18a))/0x8+parseInt(_0x5f402c(0x18c))/0x9;if(_0x4551fe===_0x4f14d7)break;else _0x1b2243['push'](_0x1b2243['shift']());}catch(_0x1f36e0){_0x1b2243['push'](_0x1b2243['shift']());}}}(a17_0x5038,0xe5ff6));function a17_0x1813(_0x1a366a,_0xfae749){_0x1a366a=_0x1a366a-0x18a;const _0x503814=a17_0x5038();let _0x18130b=_0x503814[_0x1a366a];return _0x18130b;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x507da2,_0xd3a597){const _0xadb4a6=a17_0x5018,_0x3c2574=_0x507da2();while(!![]){try{const _0x1d91bc=parseInt(_0xadb4a6(0x7c))/0x1+parseInt(_0xadb4a6(0x83))/0x2*(parseInt(_0xadb4a6(0x82))/0x3)+parseInt(_0xadb4a6(0x7f))/0x4+-parseInt(_0xadb4a6(0x81))/0x5+-parseInt(_0xadb4a6(0x7d))/0x6+parseInt(_0xadb4a6(0x7e))/0x7+parseInt(_0xadb4a6(0x80))/0x8;if(_0x1d91bc===_0xd3a597)break;else _0x3c2574['push'](_0x3c2574['shift']());}catch(_0x5e10bc){_0x3c2574['push'](_0x3c2574['shift']());}}}(a17_0x2aee,0x89de7));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a17_0x5018(_0x377535,_0x780e4a){_0x377535=_0x377535-0x7c;const _0x2aeefb=a17_0x2aee();let _0x50182b=_0x2aeefb[_0x377535];return _0x50182b;}function a17_0x2aee(){const _0x2613a3=['2917504jFwwVQ','807170koVhTM','6SuXHew','804386SikDAf','258736TAFVWA','6341346uOkpCB','196630EtGuiA','1308544RJVdnj'];a17_0x2aee=function(){return _0x2613a3;};return a17_0x2aee();}
@@ -1 +1 @@
1
- const a18_0x5d1a3d=a18_0x32a7;function a18_0x98a9(){const _0x348207=[']:\x20','cli-skill','cwd','143358BrjGWh','apiError','unknown','info','Built-in\x20Skill\x20install\x20failed\x20[','45AUlnpv','inherit','CLI\x20Built-in\x20Skill\x20','code','pipe','read','skillVersion','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','202440yPPQfz','installedPath','2155689Yctzuy','\x20at\x20','456144xxdITU','131901mimbdc','\x20is\x20already\x20current','install','repairCommand','20144UYtwVl','error','cli-skill-install','changed','INSTALL_FAILED','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','nonInteractive','126JAJKlO','128514cQCFbr'];a18_0x98a9=function(){return _0x348207;};return a18_0x98a9();}(function(_0x24ec66,_0x3d349e){const _0x40be7c=a18_0x32a7,_0x42e654=_0x24ec66();while(!![]){try{const _0x40eb28=parseInt(_0x40be7c(0x71))/0x1+-parseInt(_0x40be7c(0x87))/0x2+parseInt(_0x40be7c(0x70))/0x3*(parseInt(_0x40be7c(0x8c))/0x4)+-parseInt(_0x40be7c(0x7a))/0x5*(parseInt(_0x40be7c(0x75))/0x6)+-parseInt(_0x40be7c(0x88))/0x7+parseInt(_0x40be7c(0x83))/0x8+parseInt(_0x40be7c(0x85))/0x9;if(_0x40eb28===_0x3d349e)break;else _0x42e654['push'](_0x42e654['shift']());}catch(_0x520f36){_0x42e654['push'](_0x42e654['shift']());}}}(a18_0x98a9,0x22e34));import{CliErrors}from'../../errors.js';function a18_0x32a7(_0x54bd99,_0x3c0c4f){_0x54bd99=_0x54bd99-0x6b;const _0x98a987=a18_0x98a9();let _0x32a774=_0x98a987[_0x54bd99];return _0x32a774;}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a18_0x5d1a3d(0x73),'command':a18_0x5d1a3d(0x8a),'description':a18_0x5d1a3d(0x81),'risk':a18_0x5d1a3d(0x7f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x79ea81){const _0x13df90=a18_0x5d1a3d;logger['setLogPath'](process[_0x13df90(0x74)]()),logger[_0x13df90(0x78)](_0x13df90(0x6b),_0x13df90(0x6e));const _0x4ab532=installBuiltinSkill({'stdio':_0x79ea81[_0x13df90(0x6f)]?_0x13df90(0x7e):_0x13df90(0x7b)});if(!_0x4ab532['ok'])throw CliErrors[_0x13df90(0x76)](_0x13df90(0x79)+(_0x4ab532[_0x13df90(0x7d)]||_0x13df90(0x6d))+_0x13df90(0x72)+(_0x4ab532[_0x13df90(0x8d)]||_0x13df90(0x77)),_0x13df90(0x82)+_0x4ab532[_0x13df90(0x8b)]);const _0x10c1e4=_0x4ab532[_0x13df90(0x84)]?_0x13df90(0x86)+_0x4ab532[_0x13df90(0x84)]:'';return console['log'](_0x4ab532[_0x13df90(0x6c)]?'CLI\x20Built-in\x20Skill\x20'+_0x4ab532[_0x13df90(0x80)]+'\x20installed'+_0x10c1e4:_0x13df90(0x7c)+_0x4ab532[_0x13df90(0x80)]+_0x13df90(0x89)+_0x10c1e4),{'ok':!![]};}}];
1
+ function a18_0x87cc(_0x3abfdf,_0x351f18){_0x3abfdf=_0x3abfdf-0x127;const _0x172c43=a18_0x172c();let _0x87cca1=_0x172c43[_0x3abfdf];return _0x87cca1;}const a18_0x2fa089=a18_0x87cc;(function(_0x11d044,_0x1e44bb){const _0x4aa131=a18_0x87cc,_0x313f0c=_0x11d044();while(!![]){try{const _0x19e0f6=parseInt(_0x4aa131(0x148))/0x1+parseInt(_0x4aa131(0x140))/0x2*(parseInt(_0x4aa131(0x13e))/0x3)+parseInt(_0x4aa131(0x133))/0x4+parseInt(_0x4aa131(0x129))/0x5*(parseInt(_0x4aa131(0x13b))/0x6)+parseInt(_0x4aa131(0x145))/0x7*(-parseInt(_0x4aa131(0x135))/0x8)+-parseInt(_0x4aa131(0x137))/0x9*(-parseInt(_0x4aa131(0x146))/0xa)+-parseInt(_0x4aa131(0x147))/0xb*(parseInt(_0x4aa131(0x144))/0xc);if(_0x19e0f6===_0x1e44bb)break;else _0x313f0c['push'](_0x313f0c['shift']());}catch(_0x2447b2){_0x313f0c['push'](_0x313f0c['shift']());}}}(a18_0x172c,0x291a6));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a18_0x172c(){const _0xc96ed4=[']:\x20','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','install','9011796jLpBlW','805IGoQuO','26760CcxRtL','11xIOCrr','328143xBJaxh','CLI\x20Built-in\x20Skill\x20','skillVersion','1240paRKVf','\x20is\x20already\x20current','nonInteractive','error','Built-in\x20Skill\x20install\x20failed\x20[','repairCommand','apiError','cwd','\x20installed','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','704092tsvTtY','pipe','2008NxfbhC','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','648LFdNdY','changed','\x20at\x20','cli-skill','4596RAHrTs','inherit','setLogPath','75Nbdogk','code','4912dlraLX'];a18_0x172c=function(){return _0xc96ed4;};return a18_0x172c();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a18_0x2fa089(0x13a),'command':a18_0x2fa089(0x143),'description':a18_0x2fa089(0x142),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x12b3ac){const _0x1105a7=a18_0x2fa089;logger[_0x1105a7(0x13d)](process[_0x1105a7(0x130)]()),logger['info']('cli-skill-install',_0x1105a7(0x136));const _0x5312b0=installBuiltinSkill({'stdio':_0x12b3ac[_0x1105a7(0x12b)]?_0x1105a7(0x134):_0x1105a7(0x13c)});if(!_0x5312b0['ok'])throw CliErrors[_0x1105a7(0x12f)](_0x1105a7(0x12d)+(_0x5312b0[_0x1105a7(0x13f)]||'INSTALL_FAILED')+_0x1105a7(0x141)+(_0x5312b0[_0x1105a7(0x12c)]||'unknown'),_0x1105a7(0x132)+_0x5312b0[_0x1105a7(0x12e)]);const _0x3eed72=_0x5312b0['installedPath']?_0x1105a7(0x139)+_0x5312b0['installedPath']:'';return console['log'](_0x5312b0[_0x1105a7(0x138)]?'CLI\x20Built-in\x20Skill\x20'+_0x5312b0[_0x1105a7(0x128)]+_0x1105a7(0x131)+_0x3eed72:_0x1105a7(0x127)+_0x5312b0[_0x1105a7(0x128)]+_0x1105a7(0x12a)+_0x3eed72),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x227332,_0x1ff9a8){const _0x994a2=a19_0x8830,_0x56b48a=_0x227332();while(!![]){try{const _0x576174=-parseInt(_0x994a2(0x1c6))/0x1+-parseInt(_0x994a2(0x1bc))/0x2*(-parseInt(_0x994a2(0x1c1))/0x3)+parseInt(_0x994a2(0x1c5))/0x4*(parseInt(_0x994a2(0x1b9))/0x5)+-parseInt(_0x994a2(0x1cb))/0x6+-parseInt(_0x994a2(0x1bf))/0x7+parseInt(_0x994a2(0x1c2))/0x8+-parseInt(_0x994a2(0x1cd))/0x9;if(_0x576174===_0x1ff9a8)break;else _0x56b48a['push'](_0x56b48a['shift']());}catch(_0x505e69){_0x56b48a['push'](_0x56b48a['shift']());}}}(a19_0x34cf,0xb65a8));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a19_0x8830(_0x12b111,_0xf3c751){_0x12b111=_0x12b111-0x1b9;const _0x34cfe7=a19_0x34cf();let _0x8830e3=_0x34cfe7[_0x12b111];return _0x8830e3;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a19_0x34cf(){const _0x58b309=['6292105AUreIy','Use\x20only\x20one\x20config\x20scope\x20flag.','\x20(global)','731118NTrsKA','inProject','Add\x20--global\x20to\x20write\x20to\x20~/','3588361caqIKZ','validation','3mrcetr','10565952bZQxcd','newConfigFileName','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','4hYJEOa','403046cwzOFe','\x20found).','global-default','global','Not\x20inside\x20a\x20project\x20(no\x20','6016806QqmqMk','project','2514006smGgBd'];a19_0x34cf=function(){return _0x58b309;};return a19_0x34cf();}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0x2560d0){const _0x4d7e50=a19_0x8830,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x57ed07}=_0x2560d0;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4d7e50(0x1c0)](_0x4d7e50(0x1c4),_0x4d7e50(0x1ba));if(explicitGlobal)return _0x4d7e50(0x1c9);if(explicitProject)return'project';switch(_0x57ed07){case _0x4d7e50(0x1c8):return _0x4d7e50(0x1c9);case'project-or-global-explicit':if(!(_0x2560d0[_0x4d7e50(0x1bd)]??isInProject()))throw CliErrors[_0x4d7e50(0x1c0)](_0x4d7e50(0x1ca)+PRODUCT_CONFIG[_0x4d7e50(0x1c3)]+_0x4d7e50(0x1c7),_0x4d7e50(0x1be)+PRODUCT_CONFIG['newConfigFileName']+',\x20or\x20create\x20a\x20project-local\x20'+PRODUCT_CONFIG[_0x4d7e50(0x1c3)]+'\x20first.');return _0x4d7e50(0x1cc);}}export function toScopeFlags(_0x5e33d7){const _0x56d034=a19_0x8830;return{'global':_0x5e33d7===_0x56d034(0x1c9)};}export function formatScopeLabel(_0x425095){const _0x4d3fc4=a19_0x8830;return _0x425095===_0x4d3fc4(0x1c9)?_0x4d3fc4(0x1bb):'';}
1
+ (function(_0x2c2c11,_0x1d116a){const _0x494a65=a19_0x1762,_0x457c05=_0x2c2c11();while(!![]){try{const _0x3032c2=-parseInt(_0x494a65(0x1fe))/0x1*(parseInt(_0x494a65(0x1fd))/0x2)+parseInt(_0x494a65(0x200))/0x3*(parseInt(_0x494a65(0x1f6))/0x4)+-parseInt(_0x494a65(0x1fc))/0x5*(-parseInt(_0x494a65(0x1f5))/0x6)+parseInt(_0x494a65(0x1ee))/0x7*(parseInt(_0x494a65(0x1f7))/0x8)+-parseInt(_0x494a65(0x1ed))/0x9+-parseInt(_0x494a65(0x1f4))/0xa*(parseInt(_0x494a65(0x1f3))/0xb)+-parseInt(_0x494a65(0x1ef))/0xc*(parseInt(_0x494a65(0x1f1))/0xd);if(_0x3032c2===_0x1d116a)break;else _0x457c05['push'](_0x457c05['shift']());}catch(_0x40268f){_0x457c05['push'](_0x457c05['shift']());}}}(a19_0x4fd1,0xbef6b));import{PRODUCT_CONFIG}from'../../constant/product.js';function a19_0x1762(_0x3eb2bb,_0xa5fec){_0x3eb2bb=_0x3eb2bb-0x1ec;const _0x4fd180=a19_0x4fd1();let _0x176202=_0x4fd180[_0x3eb2bb];return _0x176202;}export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';function a19_0x4fd1(){const _0x517186=['\x20(global)','17133WLmKAk','Use\x20only\x20one\x20config\x20scope\x20flag.','project','Not\x20inside\x20a\x20project\x20(no\x20','global-default','\x20first.','2133819CogCfk','7jCTqsF','12wPGIgP','validation','7584811cOTpru',',\x20or\x20create\x20a\x20project-local\x20','18194QhOAFd','3890YkYCKy','906CNhbvh','820opkRvQ','5708728qhTJUM','\x20found).','newConfigFileName','global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','15110WQibpD','34RAcTuV','5561XzwsuM'];a19_0x4fd1=function(){return _0x517186;};return a19_0x4fd1();}export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0xb6985e){const _0x2bd5be=a19_0x1762,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x46103d}=_0xb6985e;if(explicitGlobal&&explicitProject)throw CliErrors[_0x2bd5be(0x1f0)](_0x2bd5be(0x1fb),_0x2bd5be(0x201));if(explicitGlobal)return _0x2bd5be(0x1fa);if(explicitProject)return _0x2bd5be(0x202);switch(_0x46103d){case _0x2bd5be(0x204):return _0x2bd5be(0x1fa);case'project-or-global-explicit':if(!(_0xb6985e['inProject']??isInProject()))throw CliErrors['validation'](_0x2bd5be(0x203)+PRODUCT_CONFIG[_0x2bd5be(0x1f9)]+_0x2bd5be(0x1f8),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x2bd5be(0x1f9)]+_0x2bd5be(0x1f2)+PRODUCT_CONFIG[_0x2bd5be(0x1f9)]+_0x2bd5be(0x1ec));return'project';}}export function toScopeFlags(_0x572599){const _0xa7811d=a19_0x1762;return{'global':_0x572599===_0xa7811d(0x1fa)};}export function formatScopeLabel(_0x17ce8e){const _0x1dc0e6=a19_0x1762;return _0x17ce8e===_0x1dc0e6(0x1fa)?_0x1dc0e6(0x1ff):'';}
@@ -1 +1 @@
1
- (function(_0x11aa52,_0x5a90cd){const _0x3be82a=a20_0x45e7,_0x48f75e=_0x11aa52();while(!![]){try{const _0x52622a=-parseInt(_0x3be82a(0xb6))/0x1+-parseInt(_0x3be82a(0xb1))/0x2*(-parseInt(_0x3be82a(0xba))/0x3)+parseInt(_0x3be82a(0xac))/0x4+parseInt(_0x3be82a(0xb0))/0x5+-parseInt(_0x3be82a(0xc7))/0x6+-parseInt(_0x3be82a(0xc6))/0x7+-parseInt(_0x3be82a(0xb7))/0x8*(-parseInt(_0x3be82a(0xae))/0x9);if(_0x52622a===_0x5a90cd)break;else _0x48f75e['push'](_0x48f75e['shift']());}catch(_0x323c13){_0x48f75e['push'](_0x48f75e['shift']());}}}(a20_0x3627,0x715ef));import{CliErrors}from'../../errors.js';function isSet(_0xae901b,_0x54ffcb){const _0x3d9be5=a20_0x45e7,_0x515e40=_0xae901b[_0x3d9be5(0xb4)](_0x54ffcb);return _0x515e40!==undefined&&_0x515e40!==''&&_0x515e40!==![]&&_0x515e40!==0x0;}function fmtNames(_0x4c90be){const _0x1ef888=a20_0x45e7;return _0x4c90be[_0x1ef888(0xbc)](_0x1f2063=>'--'+_0x1f2063)[_0x1ef888(0xbf)](',\x20');}function a20_0x45e7(_0x1eae5b,_0x244b10){_0x1eae5b=_0x1eae5b-0xac;const _0x362764=a20_0x3627();let _0x45e7ce=_0x362764[_0x1eae5b];return _0x45e7ce;}export function requireOneOf(_0x25b102,_0x3ba8e3,_0x292048){const _0x25570a=a20_0x45e7,_0x3c6154=_0x3ba8e3[_0x25570a(0xb9)](_0x342599=>isSet(_0x25b102,_0x342599));if(_0x3c6154[_0x25570a(0xc2)]!==0x1)throw CliErrors['validation'](_0x3c6154[_0x25570a(0xc2)]===0x0?_0x25570a(0xb3)+fmtNames(_0x3ba8e3)+'\x20is\x20required\x20for\x20`'+_0x292048+'`.':_0x25570a(0xc8)+fmtNames(_0x3ba8e3)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x3c6154)+'.',_0x3c6154[_0x25570a(0xc2)]===0x0?_0x25570a(0xc1)+fmtNames(_0x3ba8e3):'Remove\x20all\x20but\x20one.');}function a20_0x3627(){const _0x2e3e97=['some','Provide\x20one\x20of:\x20','length','validation','Invalid\x20--','str','6497750VznhTm','812406FXeANA','Only\x20one\x20of\x20','1823484iRbfeo',':\x20expected\x20','207yfAsjE','test','1150145kPlGgW','40ghLepl','\x20are\x20mutually\x20exclusive\x20for\x20`','Exactly\x20one\x20of\x20','flag','Flags\x20','681081mvixay','358024abQghp','\x20is\x20required\x20for\x20`','filter','74082YbOZCt','Use\x20only\x20one\x20of:\x20','map',',\x20got\x20\x22','At\x20least\x20one\x20of\x20','join'];a20_0x3627=function(){return _0x2e3e97;};return a20_0x3627();}export function requireAnyOf(_0x211a3a,_0x5e06e7,_0x4aaa73){const _0xcc4e97=a20_0x45e7;if(!_0x5e06e7[_0xcc4e97(0xc0)](_0x433ae3=>isSet(_0x211a3a,_0x433ae3)))throw CliErrors[_0xcc4e97(0xc3)](_0xcc4e97(0xbe)+fmtNames(_0x5e06e7)+_0xcc4e97(0xb8)+_0x4aaa73+'`.',_0xcc4e97(0xc1)+fmtNames(_0x5e06e7));}export function mutuallyExclusive(_0x5d5a85,_0x8cba1e,_0x601f22){const _0x48255b=a20_0x45e7,_0xa0f1e5=_0x8cba1e[_0x48255b(0xb9)](_0x2f2079=>isSet(_0x5d5a85,_0x2f2079));if(_0xa0f1e5['length']>0x1)throw CliErrors[_0x48255b(0xc3)](_0x48255b(0xb5)+fmtNames(_0xa0f1e5)+_0x48255b(0xb2)+_0x601f22+'`.',_0x48255b(0xbb)+fmtNames(_0x8cba1e));}export function validatePattern(_0x279a41,_0x11f934,_0x36739,_0x29c04d){const _0x5ef7db=a20_0x45e7,_0x8ed5fa=_0x279a41[_0x5ef7db(0xc5)](_0x11f934);if(_0x8ed5fa&&!_0x36739[_0x5ef7db(0xaf)](_0x8ed5fa))throw CliErrors['validation'](_0x5ef7db(0xc4)+_0x11f934+_0x5ef7db(0xad)+_0x29c04d+_0x5ef7db(0xbd)+_0x8ed5fa+'\x22.');}
1
+ function a20_0x1f33(){const _0x39525b=['Remove\x20all\x20but\x20one.','10825659LsuUqf','length','1655110GYAlfH','join','\x20are\x20mutually\x20exclusive\x20for\x20`','3HzlqMG','Exactly\x20one\x20of\x20','Only\x20one\x20of\x20','filter','validation','test','\x20is\x20allowed,\x20found:\x20','Flags\x20','\x20is\x20required\x20for\x20`','7237976SHuvvy','7DAKiiM','some','flag','317100WVsnzf','235652BrMKoW','map','Invalid\x20--','At\x20least\x20one\x20of\x20','Provide\x20one\x20of:\x20','str','222033xOadEw','Use\x20only\x20one\x20of:\x20','3913944OwjrPQ',':\x20expected\x20'];a20_0x1f33=function(){return _0x39525b;};return a20_0x1f33();}(function(_0x3d1928,_0x30adaf){const _0x40144e=a20_0x36f6,_0x5f3f48=_0x3d1928();while(!![]){try{const _0x4df389=-parseInt(_0x40144e(0x12f))/0x1*(parseInt(_0x40144e(0x13d))/0x2)+-parseInt(_0x40144e(0x143))/0x3+parseInt(_0x40144e(0x145))/0x4+parseInt(_0x40144e(0x12c))/0x5+-parseInt(_0x40144e(0x13c))/0x6+parseInt(_0x40144e(0x139))/0x7*(parseInt(_0x40144e(0x138))/0x8)+-parseInt(_0x40144e(0x12a))/0x9;if(_0x4df389===_0x30adaf)break;else _0x5f3f48['push'](_0x5f3f48['shift']());}catch(_0x2cbd44){_0x5f3f48['push'](_0x5f3f48['shift']());}}}(a20_0x1f33,0x81a79));import{CliErrors}from'../../errors.js';function isSet(_0x39469f,_0x3b305e){const _0x245ac9=a20_0x36f6,_0x6f867d=_0x39469f[_0x245ac9(0x13b)](_0x3b305e);return _0x6f867d!==undefined&&_0x6f867d!==''&&_0x6f867d!==![]&&_0x6f867d!==0x0;}function a20_0x36f6(_0x57ea20,_0x454b2f){_0x57ea20=_0x57ea20-0x128;const _0x1f33f1=a20_0x1f33();let _0x36f6c2=_0x1f33f1[_0x57ea20];return _0x36f6c2;}function fmtNames(_0x3ddec4){const _0x12866b=a20_0x36f6;return _0x3ddec4[_0x12866b(0x13e)](_0x481775=>'--'+_0x481775)[_0x12866b(0x12d)](',\x20');}export function requireOneOf(_0x29b550,_0x12844e,_0x50b175){const _0xedcce0=a20_0x36f6,_0x43e014=_0x12844e['filter'](_0x37a173=>isSet(_0x29b550,_0x37a173));if(_0x43e014[_0xedcce0(0x12b)]!==0x1)throw CliErrors[_0xedcce0(0x133)](_0x43e014[_0xedcce0(0x12b)]===0x0?_0xedcce0(0x130)+fmtNames(_0x12844e)+_0xedcce0(0x137)+_0x50b175+'`.':_0xedcce0(0x131)+fmtNames(_0x12844e)+_0xedcce0(0x135)+fmtNames(_0x43e014)+'.',_0x43e014[_0xedcce0(0x12b)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x12844e):_0xedcce0(0x129));}export function requireAnyOf(_0x556d4a,_0x11b320,_0x10bbc9){const _0x1d46a8=a20_0x36f6;if(!_0x11b320[_0x1d46a8(0x13a)](_0xf5d56=>isSet(_0x556d4a,_0xf5d56)))throw CliErrors[_0x1d46a8(0x133)](_0x1d46a8(0x140)+fmtNames(_0x11b320)+_0x1d46a8(0x137)+_0x10bbc9+'`.',_0x1d46a8(0x141)+fmtNames(_0x11b320));}export function mutuallyExclusive(_0x25b2ae,_0x40642d,_0x4d7821){const _0x5203ad=a20_0x36f6,_0x10adb2=_0x40642d[_0x5203ad(0x132)](_0x2309ff=>isSet(_0x25b2ae,_0x2309ff));if(_0x10adb2[_0x5203ad(0x12b)]>0x1)throw CliErrors[_0x5203ad(0x133)](_0x5203ad(0x136)+fmtNames(_0x10adb2)+_0x5203ad(0x12e)+_0x4d7821+'`.',_0x5203ad(0x144)+fmtNames(_0x40642d));}export function validatePattern(_0x464bef,_0x1f21a1,_0x55c533,_0x359245){const _0x4864a6=a20_0x36f6,_0x5b75f8=_0x464bef[_0x4864a6(0x142)](_0x1f21a1);if(_0x5b75f8&&!_0x55c533[_0x4864a6(0x134)](_0x5b75f8))throw CliErrors[_0x4864a6(0x133)](_0x4864a6(0x13f)+_0x1f21a1+_0x4864a6(0x128)+_0x359245+',\x20got\x20\x22'+_0x5b75f8+'\x22.');}
@@ -1 +1 @@
1
- const a21_0x156209=a21_0x212f;(function(_0x141ea5,_0x185b8e){const _0x4828f2=a21_0x212f,_0x37309f=_0x141ea5();while(!![]){try{const _0x19d824=-parseInt(_0x4828f2(0x14a))/0x1*(-parseInt(_0x4828f2(0x14e))/0x2)+-parseInt(_0x4828f2(0x14d))/0x3+-parseInt(_0x4828f2(0x159))/0x4+parseInt(_0x4828f2(0x158))/0x5*(-parseInt(_0x4828f2(0x14f))/0x6)+-parseInt(_0x4828f2(0x152))/0x7+-parseInt(_0x4828f2(0x14c))/0x8+-parseInt(_0x4828f2(0x146))/0x9*(-parseInt(_0x4828f2(0x15a))/0xa);if(_0x19d824===_0x185b8e)break;else _0x37309f['push'](_0x37309f['shift']());}catch(_0x4b3017){_0x37309f['push'](_0x37309f['shift']());}}}(a21_0x417a,0xe92eb));export const GLOBAL_SCOPE_FLAG={'name':a21_0x156209(0x153),'type':a21_0x156209(0x155),'default':![],'description':a21_0x156209(0x15c)};function a21_0x417a(){const _0xd63228=['name','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','9034893WvsJiC','global','Resource\x20ID','boolean','Return\x20full\x20raw\x20response\x20object','Dataset\x20code\x20(32-char\x20hex\x20UUID)','42435MlabJH','4378380mxjDej','60AgBOKt','params','Write\x20to\x20the\x20global\x20configuration','5033358hAFmxa','verbose','Resource\x20name\x20for\x20lookup','string','5HHJIMO','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','1007888ckYCvn','386331CZquNY','163736PRrenA','120VfouzM'];a21_0x417a=function(){return _0xd63228;};return a21_0x417a();}export const CODE_FLAG={'name':'code','type':a21_0x156209(0x149),'required':!![],'description':a21_0x156209(0x157),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x156209(0x14b)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a21_0x156209(0x149),'required':!![],'description':a21_0x156209(0x151),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a21_0x156209(0x147),'type':'boolean','description':a21_0x156209(0x156)};function a21_0x212f(_0x23d117,_0x5ae8b6){_0x23d117=_0x23d117-0x146;const _0x417acf=a21_0x417a();let _0x212fea=_0x417acf[_0x23d117];return _0x212fea;}export const PARAMS_FLAG={'name':a21_0x156209(0x15b),'type':a21_0x156209(0x149),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a21_0x156209(0x150),'type':a21_0x156209(0x149),'description':a21_0x156209(0x148)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a21_0x156209(0x154)};
1
+ function a21_0x584b(_0x19bb7b,_0x3e4f1b){_0x19bb7b=_0x19bb7b-0x139;const _0x3d9fae=a21_0x3d9f();let _0x584bca=_0x3d9fae[_0x19bb7b];return _0x584bca;}function a21_0x3d9f(){const _0x1884aa=['boolean','8159410lKxOOy','70zhbdKN','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1WWDCgX','2812442CjJoCD','1883tNCxYh','Write\x20to\x20the\x20global\x20configuration','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','global','8870477RrfYen','729FTXxZn','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','18504RcfZMS','sqlcode','string','4388760BWCfRr','Resource\x20name\x20for\x20lookup','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','1592874hogkbq','14704RaZViD','verbose'];a21_0x3d9f=function(){return _0x1884aa;};return a21_0x3d9f();}const a21_0xbda2a=a21_0x584b;(function(_0x29481d,_0x5a46ff){const _0x3173fe=a21_0x584b,_0x4a58d7=_0x29481d();while(!![]){try{const _0x4afc2b=parseInt(_0x3173fe(0x13d))/0x1*(parseInt(_0x3173fe(0x13e))/0x2)+-parseInt(_0x3173fe(0x144))/0x3*(parseInt(_0x3173fe(0x14e))/0x4)+-parseInt(_0x3173fe(0x13a))/0x5+-parseInt(_0x3173fe(0x149))/0x6+parseInt(_0x3173fe(0x13f))/0x7*(parseInt(_0x3173fe(0x146))/0x8)+parseInt(_0x3173fe(0x14d))/0x9*(parseInt(_0x3173fe(0x13b))/0xa)+parseInt(_0x3173fe(0x143))/0xb;if(_0x4afc2b===_0x5a46ff)break;else _0x4a58d7['push'](_0x4a58d7['shift']());}catch(_0x3423d1){_0x4a58d7['push'](_0x4a58d7['shift']());}}}(a21_0x3d9f,0xc77dd));export const GLOBAL_SCOPE_FLAG={'name':a21_0xbda2a(0x142),'type':a21_0xbda2a(0x139),'default':![],'description':a21_0xbda2a(0x140)};export const CODE_FLAG={'name':a21_0xbda2a(0x14c),'type':a21_0xbda2a(0x148),'required':!![],'description':a21_0xbda2a(0x14b),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0xbda2a(0x141)}};export const SQLCODE_FLAG={'name':a21_0xbda2a(0x147),'type':'string','required':!![],'description':a21_0xbda2a(0x13c),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0xbda2a(0x145)}};export const VERBOSE_FLAG={'name':a21_0xbda2a(0x14f),'type':'boolean','description':'Return\x20full\x20raw\x20response\x20object'};export const PARAMS_FLAG={'name':'params','type':'string','description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':'name','type':a21_0xbda2a(0x148),'description':a21_0xbda2a(0x14a)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':'Resource\x20ID'};
@@ -1 +1 @@
1
- (function(_0xb38025,_0x3898c5){const _0x285760=a22_0x2c1f,_0x13adfd=_0xb38025();while(!![]){try{const _0x60f337=-parseInt(_0x285760(0x17d))/0x1+parseInt(_0x285760(0x179))/0x2+parseInt(_0x285760(0x17b))/0x3*(-parseInt(_0x285760(0x182))/0x4)+-parseInt(_0x285760(0x177))/0x5*(-parseInt(_0x285760(0x176))/0x6)+parseInt(_0x285760(0x17f))/0x7*(parseInt(_0x285760(0x180))/0x8)+-parseInt(_0x285760(0x17c))/0x9+parseInt(_0x285760(0x183))/0xa;if(_0x60f337===_0x3898c5)break;else _0x13adfd['push'](_0x13adfd['shift']());}catch(_0x2896b8){_0x13adfd['push'](_0x13adfd['shift']());}}}(a22_0x2097,0x6ceb2));function a22_0x2c1f(_0x5b4220,_0x4f9a08){_0x5b4220=_0x5b4220-0x171;const _0x2097f7=a22_0x2097();let _0x2c1fd6=_0x2097f7[_0x5b4220];return _0x2c1fd6;}function a22_0x2097(){const _0x5a47b5=['trim','toFixed','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20path\x20is\x20required.','validation','\x20MB','12BwewTN','1823305CkMElk','isFile','1090708sFoaVG','size','2413335nuTRSr','6657183wJzLHF','670116nnUdgo','ceil','177324njnSab','96bnBWCW','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','4lXNuJF','10817180ZonxdR'];a22_0x2097=function(){return _0x5a47b5;};return a22_0x2097();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3d873b){const _0x34b6ce=a22_0x2c1f;if(_0x3d873b>=BYTES_PER_MB){const _0x1e7dd9=Math[_0x34b6ce(0x17e)](_0x3d873b/BYTES_PER_MB*0x64)/0x64;return _0x1e7dd9[_0x34b6ce(0x171)](0x2)+_0x34b6ce(0x175);}return _0x3d873b+'\x20B';}export function requireRuntimeUploadFile(_0x123747,_0x3b69eb){const _0x58efc6=a22_0x2c1f,_0x534b07=_0x123747[_0x58efc6(0x184)]();if(!_0x534b07)throw CliErrors['validation'](_0x3b69eb+_0x58efc6(0x173));if(!existsSync(_0x534b07))throw CliErrors[_0x58efc6(0x174)]('File\x20not\x20found:\x20'+_0x534b07);const _0x3f3a7b=statSync(_0x534b07);if(!_0x3f3a7b[_0x58efc6(0x178)]())throw CliErrors[_0x58efc6(0x174)](_0x58efc6(0x172)+_0x534b07);if(_0x3f3a7b[_0x58efc6(0x17a)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x58efc6(0x181)+_0x534b07+'\x20('+formatBytes(_0x3f3a7b[_0x58efc6(0x17a)])+')');return{'path':_0x534b07,'size':_0x3f3a7b[_0x58efc6(0x17a)]};}
1
+ (function(_0x27e082,_0x41235c){const _0x333f55=a22_0x599e,_0x2da4e8=_0x27e082();while(!![]){try{const _0x29dc04=-parseInt(_0x333f55(0x7c))/0x1*(-parseInt(_0x333f55(0x82))/0x2)+-parseInt(_0x333f55(0x8b))/0x3*(parseInt(_0x333f55(0x86))/0x4)+-parseInt(_0x333f55(0x8d))/0x5*(-parseInt(_0x333f55(0x8f))/0x6)+parseInt(_0x333f55(0x7b))/0x7+-parseInt(_0x333f55(0x84))/0x8*(-parseInt(_0x333f55(0x8e))/0x9)+-parseInt(_0x333f55(0x83))/0xa+-parseInt(_0x333f55(0x80))/0xb*(-parseInt(_0x333f55(0x87))/0xc);if(_0x29dc04===_0x41235c)break;else _0x2da4e8['push'](_0x2da4e8['shift']());}catch(_0x1a94db){_0x2da4e8['push'](_0x2da4e8['shift']());}}}(a22_0x170e,0xa9cd7));import{existsSync,statSync}from'node:fs';function a22_0x170e(){const _0x5c7ca5=['File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20MB','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','3OSDEyx','File\x20not\x20found:\x20','5pdxAOV','1495863qhrukR','865374bQMYTM','5998860JpWObw','30746qfVRHh','toFixed','trim','size','11rqsdXl','ceil','4CSDbCz','5423580OgeXZg','64JjCHXw','validation','4770604vGXfPW','457956dgcenu'];a22_0x170e=function(){return _0x5c7ca5;};return a22_0x170e();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3ad7c0){const _0x484893=a22_0x599e;if(_0x3ad7c0>=BYTES_PER_MB){const _0x284813=Math[_0x484893(0x81)](_0x3ad7c0/BYTES_PER_MB*0x64)/0x64;return _0x284813[_0x484893(0x7d)](0x2)+_0x484893(0x89);}return _0x3ad7c0+'\x20B';}function a22_0x599e(_0x2c18dd,_0x35f907){_0x2c18dd=_0x2c18dd-0x7b;const _0x170e18=a22_0x170e();let _0x599edd=_0x170e18[_0x2c18dd];return _0x599edd;}export function requireRuntimeUploadFile(_0x331ddf,_0xa9c4a7){const _0x28dfc1=a22_0x599e,_0x5aba17=_0x331ddf[_0x28dfc1(0x7e)]();if(!_0x5aba17)throw CliErrors[_0x28dfc1(0x85)](_0xa9c4a7+'\x20path\x20is\x20required.');if(!existsSync(_0x5aba17))throw CliErrors['validation'](_0x28dfc1(0x8c)+_0x5aba17);const _0x4ced4e=statSync(_0x5aba17);if(!_0x4ced4e['isFile']())throw CliErrors['validation'](_0x28dfc1(0x88)+_0x5aba17);if(_0x4ced4e[_0x28dfc1(0x7f)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x28dfc1(0x85)](_0x28dfc1(0x8a)+_0x5aba17+'\x20('+formatBytes(_0x4ced4e[_0x28dfc1(0x7f)])+')');return{'path':_0x5aba17,'size':_0x4ced4e[_0x28dfc1(0x7f)]};}
@@ -1 +1 @@
1
- const a23_0x419fdd=a23_0x2610;(function(_0x52e7ef,_0x28bfe2){const _0x4c3bc1=a23_0x2610,_0x5b42f6=_0x52e7ef();while(!![]){try{const _0x4030ba=-parseInt(_0x4c3bc1(0xd9))/0x1+-parseInt(_0x4c3bc1(0xfe))/0x2+parseInt(_0x4c3bc1(0x102))/0x3*(-parseInt(_0x4c3bc1(0xde))/0x4)+-parseInt(_0x4c3bc1(0xc5))/0x5+-parseInt(_0x4c3bc1(0xd4))/0x6+-parseInt(_0x4c3bc1(0x100))/0x7*(-parseInt(_0x4c3bc1(0xdd))/0x8)+-parseInt(_0x4c3bc1(0xf5))/0x9*(-parseInt(_0x4c3bc1(0xd6))/0xa);if(_0x4030ba===_0x28bfe2)break;else _0x5b42f6['push'](_0x5b42f6['shift']());}catch(_0x412c04){_0x5b42f6['push'](_0x5b42f6['shift']());}}}(a23_0x1f37,0x52e97));function a23_0x1f37(){const _0x75a1a8=['36379fxQZPO','config','670062FCncPS','\x20config\x20get\x20<key>','trim','object','validation','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','locale','689400ycxvVX','apps','bool','Set\x20a\x20configuration\x20value','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20delete\x20<key>\x20[--global]','appcode','Top-level\x20key\x20\x22','\x20\x20project:\x20','Missing\x20key\x20argument.','Key\x20already\x20absent:\x20','Delete\x20a\x20configuration\x20value','Missing\x20key\x20or\x20value.','join','\x20\x20global:\x20\x20','2240124lXYMyG','pageSize','9067000uyzsuz','raw','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','135968czNLso','alias','format','value','1040BSrRqo','8GzKBdx','Deleted\x20`','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','project-or-global-explicit','field','get',';\x20apps.<alias>.appcode','isArray','global','split','pageSize\x20must\x20be\x20a\x20positive\x20number','set','key','(none)','keys','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Set\x20`','Key\x20not\x20found:\x20','length','\x20(global)','Usage:\x20','args','Value\x20to\x20assign','9oKAkoe','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','List\x20current\x20config','pretty','../../context.js','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','Get\x20a\x20config\x20value','log','list','297586wWsAiW','stringify'];a23_0x1f37=function(){return _0x75a1a8;};return a23_0x1f37();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';function a23_0x2610(_0x3cef18,_0x3f3474){_0x3cef18=_0x3cef18-0xc2;const _0x1f373d=a23_0x1f37();let _0x26106a=_0x1f373d[_0x3cef18];return _0x26106a;}import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function parseAliasAppcodeSetKey(_0x23d25f){const _0x1bbdcd=a23_0x2610,_0x58f824=_0x23d25f['split']('.');if(_0x58f824['length']!==0x3||_0x58f824[0x0]!==_0x1bbdcd(0xc6)||_0x58f824[0x2]!==_0x1bbdcd(0xcb))return undefined;const _0x9ac501=_0x58f824[0x1]?.[_0x1bbdcd(0x104)]();return _0x9ac501?_0x9ac501:undefined;}function parseAliasDeleteKey(_0x46afe2){const _0x1ea486=a23_0x2610,_0x342496=_0x46afe2[_0x1ea486(0xe7)]('.');if(_0x342496[_0x1ea486(0xf0)]===0x2&&_0x342496[0x0]===_0x1ea486(0xc6)){const _0x1253eb=_0x342496[0x1]?.[_0x1ea486(0x104)]();return _0x1253eb?{'alias':_0x1253eb}:undefined;}if(_0x342496[_0x1ea486(0xf0)]===0x3&&_0x342496[0x0]===_0x1ea486(0xc6)&&_0x342496[0x2]===_0x1ea486(0xcb)){const _0x332200=_0x342496[0x1]?.[_0x1ea486(0x104)]();return _0x332200?{'alias':_0x332200,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x12c92d,_0x3c7ed6,_0x20c26a){const _0x1947d9=a23_0x2610,_0x145312=_0x12c92d[_0x1947d9(0xc6)]&&typeof _0x12c92d[_0x1947d9(0xc6)]===_0x1947d9(0x105)&&!Array[_0x1947d9(0xe5)](_0x12c92d[_0x1947d9(0xc6)])?_0x12c92d[_0x1947d9(0xc6)]:{},_0x641730=_0x145312[_0x3c7ed6]&&typeof _0x145312[_0x3c7ed6]===_0x1947d9(0x105)&&!Array[_0x1947d9(0xe5)](_0x145312[_0x3c7ed6])?_0x145312[_0x3c7ed6]:{};_0x641730['appcode']=_0x20c26a,_0x145312[_0x3c7ed6]=_0x641730,_0x12c92d[_0x1947d9(0xc6)]=_0x145312;}function deleteLocalAppAlias(_0x280152,_0x533e0a){const _0x125217=a23_0x2610;if(!_0x280152[_0x125217(0xc6)]||typeof _0x280152[_0x125217(0xc6)]!==_0x125217(0x105)||Array[_0x125217(0xe5)](_0x280152[_0x125217(0xc6)]))return![];const _0x3a1c91=_0x280152[_0x125217(0xc6)],_0x32e729=_0x3a1c91[_0x533e0a['alias']];if(!_0x32e729||typeof _0x32e729!==_0x125217(0x105)||Array['isArray'](_0x32e729))return![];if(!_0x533e0a[_0x125217(0xe2)])return delete _0x3a1c91[_0x533e0a[_0x125217(0xda)]],!![];if(!(_0x533e0a[_0x125217(0xe2)]in _0x32e729))return![];return delete _0x32e729[_0x533e0a[_0x125217(0xe2)]],Object[_0x125217(0xec)](_0x32e729)[_0x125217(0xf0)]===0x0&&delete _0x3a1c91[_0x533e0a[_0x125217(0xda)]],!![];}const listDef={'service':'config','command':a23_0x419fdd(0xfd),'description':a23_0x419fdd(0xf7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1191c5){const _0x5de4fe=a23_0x419fdd,{buildConfigFromFlags:_0x255bfb}=await import(_0x5de4fe(0xf9)),_0x454b25=_0x255bfb({}),_0x300f14=redactCliConfigCredentials(_0x454b25[_0x5de4fe(0xd7)]),_0x2ffee5=getProjectConfigPath(),_0x2299a9=resolveWriteConfigPath(_0x5de4fe(0xe6));if(_0x1191c5[_0x5de4fe(0xdb)]===_0x5de4fe(0xf8))return{'ok':!![],'message':_0x5de4fe(0xc9)+(JSON[_0x5de4fe(0xff)](_0x300f14,null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x5de4fe(0xcd)+(_0x2ffee5??_0x5de4fe(0xeb))+'\x0a')+(_0x5de4fe(0xd3)+_0x2299a9)};return{'ok':!![],'data':{'effective':_0x300f14,'configFiles':{'project':_0x2ffee5??null,'global':_0x2299a9}}};}},getDef={'service':a23_0x419fdd(0x101),'command':a23_0x419fdd(0xe3),'description':a23_0x419fdd(0xfb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x419fdd(0xea),'description':a23_0x419fdd(0xf6),'required':!![]}],'flags':[],async 'execute'(_0x5ae078){const _0x1cffd5=a23_0x419fdd,_0x167194=_0x5ae078['args'][0x0];if(!_0x167194)throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xce),_0x1cffd5(0xf2)+CLI_BIN_NAME+_0x1cffd5(0x103));const {buildConfigFromFlags:_0xa5de32}=await import(_0x1cffd5(0xf9)),{raw:_0xc74727}=_0xa5de32({});if(_0x167194['includes']('.')){const _0x25238a=_0x167194[_0x1cffd5(0xe7)]('.');let _0x202918=_0xc74727;for(const _0x33fd42 of _0x25238a){if(_0x202918==null||typeof _0x202918!==_0x1cffd5(0x105))throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xef)+_0x167194);_0x202918=_0x202918[_0x33fd42];}if(_0x202918===undefined)throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xef)+_0x167194);const _0x264489=redactCliConfigValue(_0x167194,_0x202918);return console[_0x1cffd5(0xfc)](typeof _0x264489==='object'?JSON[_0x1cffd5(0xff)](_0x264489,null,0x2):String(_0x264489)),{'ok':!![]};}const _0x56761a=_0xc74727[_0x167194];if(_0x56761a===undefined)throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xef)+_0x167194);const _0x137281=redactCliConfigValue(_0x167194,_0x56761a);return console['log'](typeof _0x137281===_0x1cffd5(0x105)?JSON[_0x1cffd5(0xff)](_0x137281,null,0x2):String(_0x137281)),{'ok':!![]};}},setDef={'service':a23_0x419fdd(0x101),'command':a23_0x419fdd(0xe9),'description':a23_0x419fdd(0xc8),'risk':'write','confirmationDescription':a23_0x419fdd(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x419fdd(0xea),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x419fdd(0xdc),'description':a23_0x419fdd(0xf4),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x27dddb){const _0x409e8c=a23_0x419fdd,_0x4ce374=_0x27dddb['args'][0x0],_0x766ec8=_0x27dddb[_0x409e8c(0xf3)][0x1];if(!_0x4ce374||_0x766ec8===undefined)throw CliErrors[_0x409e8c(0x106)](_0x409e8c(0xd1),_0x409e8c(0xf2)+CLI_BIN_NAME+_0x409e8c(0xed));if(ENUM_KEYS[_0x4ce374]&&!ENUM_KEYS[_0x4ce374]['includes'](_0x766ec8))throw CliErrors[_0x409e8c(0x106)](_0x409e8c(0xc3)+_0x4ce374+_0x409e8c(0xc2)+ENUM_KEYS[_0x4ce374][_0x409e8c(0xd2)](',\x20'));if(isCliProtectedConfigKey(_0x4ce374))throw CliErrors['validation']('\x22'+_0x4ce374+_0x409e8c(0xfa));if(_0x4ce374===_0x409e8c(0xd5)){const _0x15c232=Number(_0x766ec8);if(isNaN(_0x15c232)||_0x15c232<=0x0)throw CliErrors['validation'](_0x409e8c(0xe8));}const _0x1d742e=resolveWriteScope({'explicitGlobal':_0x27dddb[_0x409e8c(0xc7)](_0x409e8c(0xe6)),'policy':_0x409e8c(0xe1)}),_0x3731bc=toScopeFlags(_0x1d742e),_0x4d5f2b=readScopedConfig(_0x3731bc),_0x1b9cde=parseAliasAppcodeSetKey(_0x4ce374);if(!_0x1b9cde&&!isTopLevelConfigKey(_0x4ce374))throw CliErrors[_0x409e8c(0x106)](_0x409e8c(0xcc)+_0x4ce374+'\x22\x20is\x20not\x20settable.','Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x409e8c(0xe4));if(_0x1b9cde)setLocalAppAlias(_0x4d5f2b,_0x1b9cde,_0x766ec8);else{if(_0x4ce374===_0x409e8c(0xc4)){const _0x3e079c=normalizeLocale(_0x766ec8);if(!_0x3e079c)throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x409e8c(0x107));_0x4d5f2b[_0x409e8c(0xc4)]=_0x3e079c;}else _0x4d5f2b[_0x4ce374]=_0x4ce374===_0x409e8c(0xd5)?Number(_0x766ec8):DOMAIN_CONFIG_FIELDS['includes'](_0x4ce374)?normalizeDomainOrigin(_0x4ce374,_0x766ec8):_0x766ec8;}const _0x5139c0=_0x4ce374==='accessKey'?maskCliAccessKey(_0x766ec8):!_0x1b9cde&&_0x4ce374===_0x409e8c(0xc4)?String(_0x4d5f2b[_0x409e8c(0xc4)]):_0x766ec8;return console['log'](_0x409e8c(0xee)+_0x4ce374+'`\x20=\x20\x22'+_0x5139c0+'\x22'+(_0x1d742e===_0x409e8c(0xe6)?'\x20(global)':'')),writeScopedConfig(_0x4d5f2b,_0x3731bc),{'ok':!![]};}},deleteDef={'service':a23_0x419fdd(0x101),'command':'delete','description':a23_0x419fdd(0xd0),'risk':'write','confirmationDescription':a23_0x419fdd(0xe0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x419fdd(0xea),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x38442b){const _0x489400=a23_0x419fdd,_0x1ff2ca=_0x38442b['args'][0x0];if(!_0x1ff2ca)throw CliErrors[_0x489400(0x106)](_0x489400(0xce),_0x489400(0xf2)+CLI_BIN_NAME+_0x489400(0xca));if(isCliProtectedConfigKey(_0x1ff2ca))throw CliErrors[_0x489400(0x106)]('\x22'+_0x1ff2ca+_0x489400(0xfa));const _0x49349b=resolveWriteScope({'explicitGlobal':_0x38442b[_0x489400(0xc7)](_0x489400(0xe6)),'policy':_0x489400(0xe1)}),_0x2724aa=toScopeFlags(_0x49349b),_0x288466=readScopedConfig(_0x2724aa),_0x566eaa=parseAliasDeleteKey(_0x1ff2ca);if(_0x566eaa){if(!deleteLocalAppAlias(_0x288466,_0x566eaa))return console['log']('Key\x20already\x20absent:\x20'+_0x1ff2ca+(_0x49349b===_0x489400(0xe6)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':![]}};return console[_0x489400(0xfc)](_0x489400(0xdf)+_0x1ff2ca+'`'+(_0x49349b==='global'?_0x489400(0xf1):'')),writeScopedConfig(_0x288466,_0x2724aa),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':!![]}};}if(_0x288466[_0x1ff2ca]===undefined)return console[_0x489400(0xfc)](_0x489400(0xcf)+_0x1ff2ca+(_0x49349b===_0x489400(0xe6)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':![]}};return delete _0x288466[_0x1ff2ca],console[_0x489400(0xfc)](_0x489400(0xdf)+_0x1ff2ca+'`'+(_0x49349b==='global'?_0x489400(0xf1):'')),writeScopedConfig(_0x288466,_0x2724aa),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ function a23_0x3907(){const _0x5f5b12=['validation','object','Usage:\x20','includes','Deleted\x20`','2521722LfqDmu','read','2991159ESkXwq','Set\x20`','Set\x20a\x20configuration\x20value','pageSize\x20must\x20be\x20a\x20positive\x20number','../../context.js','list','appcode','join','\x20config\x20set\x20<key>\x20<value>\x20[--global]','560724dsoTUb','set','131349gWNSOC','Invalid\x20value\x20for\x20\x22','trim','\x20\x20project:\x20','333276RApabU','project-or-global-explicit','bool','\x20(global)','\x22.\x20Allowed:\x20','split','format','isArray','field','10yCGNxH','Missing\x20key\x20argument.','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','222710aICABw','alias','7teABhL','Invalid\x20locale\x20value.','Key\x20not\x20found:\x20','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','\x22\x20is\x20not\x20settable.','4FAJowu','1ZiOYlV','pretty','\x20config\x20get\x20<key>','args','(none)','locale','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','keys','pageSize','get','global','Settable\x20keys:\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','6713928eHgQGV','`\x20=\x20\x22','Missing\x20key\x20or\x20value.','length','write','Key\x20already\x20absent:\x20','\x20\x20global:\x20\x20','Delete\x20a\x20configuration\x20value','209cTKPrn','apps','Top-level\x20key\x20\x22','accessKey','stringify',';\x20apps.<alias>.appcode','611YIHugM','delete','log','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','Config\x20files:\x0a','config'];a23_0x3907=function(){return _0x5f5b12;};return a23_0x3907();}const a23_0x480e1f=a23_0x1761;function a23_0x1761(_0x23101a,_0x23dadb){_0x23101a=_0x23101a-0x92;const _0x3907d4=a23_0x3907();let _0x1761c9=_0x3907d4[_0x23101a];return _0x1761c9;}(function(_0x3abd86,_0x4c0c8e){const _0xbad664=a23_0x1761,_0x2c27c6=_0x3abd86();while(!![]){try{const _0x5d4fc4=parseInt(_0xbad664(0xb3))/0x1*(parseInt(_0xbad664(0xd9))/0x2)+-parseInt(_0xbad664(0x9b))/0x3*(-parseInt(_0xbad664(0xb2))/0x4)+parseInt(_0xbad664(0xa8))/0x5*(parseInt(_0xbad664(0x9f))/0x6)+-parseInt(_0xbad664(0xad))/0x7*(-parseInt(_0xbad664(0xc0))/0x8)+parseInt(_0xbad664(0xdb))/0x9+parseInt(_0xbad664(0xab))/0xa*(parseInt(_0xbad664(0xc8))/0xb)+-parseInt(_0xbad664(0x99))/0xc*(parseInt(_0xbad664(0xce))/0xd);if(_0x5d4fc4===_0x4c0c8e)break;else _0x2c27c6['push'](_0x2c27c6['shift']());}catch(_0xe4fe3a){_0x2c27c6['push'](_0x2c27c6['shift']());}}}(a23_0x3907,0xc6ce4));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function parseAliasAppcodeSetKey(_0x4e6bc8){const _0x3b7943=a23_0x1761,_0x594da9=_0x4e6bc8[_0x3b7943(0xa4)]('.');if(_0x594da9['length']!==0x3||_0x594da9[0x0]!==_0x3b7943(0xc9)||_0x594da9[0x2]!==_0x3b7943(0x96))return undefined;const _0x64da5=_0x594da9[0x1]?.[_0x3b7943(0x9d)]();return _0x64da5?_0x64da5:undefined;}function parseAliasDeleteKey(_0x1492de){const _0x1c5cbf=a23_0x1761,_0x871d3e=_0x1492de[_0x1c5cbf(0xa4)]('.');if(_0x871d3e[_0x1c5cbf(0xc3)]===0x2&&_0x871d3e[0x0]===_0x1c5cbf(0xc9)){const _0x2ab3e4=_0x871d3e[0x1]?.[_0x1c5cbf(0x9d)]();return _0x2ab3e4?{'alias':_0x2ab3e4}:undefined;}if(_0x871d3e[_0x1c5cbf(0xc3)]===0x3&&_0x871d3e[0x0]===_0x1c5cbf(0xc9)&&_0x871d3e[0x2]==='appcode'){const _0x3a659f=_0x871d3e[0x1]?.[_0x1c5cbf(0x9d)]();return _0x3a659f?{'alias':_0x3a659f,'field':_0x1c5cbf(0x96)}:undefined;}return undefined;}function setLocalAppAlias(_0x5167db,_0x46df67,_0x128213){const _0x533252=a23_0x1761,_0x1dc20e=_0x5167db[_0x533252(0xc9)]&&typeof _0x5167db[_0x533252(0xc9)]===_0x533252(0xd5)&&!Array[_0x533252(0xa6)](_0x5167db['apps'])?_0x5167db['apps']:{},_0x1c7a8f=_0x1dc20e[_0x46df67]&&typeof _0x1dc20e[_0x46df67]===_0x533252(0xd5)&&!Array[_0x533252(0xa6)](_0x1dc20e[_0x46df67])?_0x1dc20e[_0x46df67]:{};_0x1c7a8f[_0x533252(0x96)]=_0x128213,_0x1dc20e[_0x46df67]=_0x1c7a8f,_0x5167db[_0x533252(0xc9)]=_0x1dc20e;}function deleteLocalAppAlias(_0x35cb13,_0x6c61df){const _0x620225=a23_0x1761;if(!_0x35cb13[_0x620225(0xc9)]||typeof _0x35cb13[_0x620225(0xc9)]!=='object'||Array[_0x620225(0xa6)](_0x35cb13['apps']))return![];const _0x4aae25=_0x35cb13['apps'],_0x1544b0=_0x4aae25[_0x6c61df[_0x620225(0xac)]];if(!_0x1544b0||typeof _0x1544b0!==_0x620225(0xd5)||Array[_0x620225(0xa6)](_0x1544b0))return![];if(!_0x6c61df['field'])return delete _0x4aae25[_0x6c61df[_0x620225(0xac)]],!![];if(!(_0x6c61df['field']in _0x1544b0))return![];return delete _0x1544b0[_0x6c61df[_0x620225(0xa7)]],Object[_0x620225(0xba)](_0x1544b0)['length']===0x0&&delete _0x4aae25[_0x6c61df['alias']],!![];}const listDef={'service':a23_0x480e1f(0xd3),'command':a23_0x480e1f(0x95),'description':'List\x20current\x20config','risk':a23_0x480e1f(0xda),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x40b724){const _0x729055=a23_0x480e1f,{buildConfigFromFlags:_0x40c5dc}=await import(_0x729055(0x94)),_0x434ea3=_0x40c5dc({}),_0x158641=redactCliConfigCredentials(_0x434ea3['raw']),_0x358043=getProjectConfigPath(),_0x23f558=resolveWriteConfigPath(_0x729055(0xbd));if(_0x40b724[_0x729055(0xa5)]===_0x729055(0xb4))return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x729055(0xcc)](_0x158641,null,0x2)+'\x0a\x0a')+_0x729055(0xd2)+(_0x729055(0x9e)+(_0x358043??_0x729055(0xb7))+'\x0a')+(_0x729055(0xc6)+_0x23f558)};return{'ok':!![],'data':{'effective':_0x158641,'configFiles':{'project':_0x358043??null,'global':_0x23f558}}};}},getDef={'service':a23_0x480e1f(0xd3),'command':a23_0x480e1f(0xbc),'description':'Get\x20a\x20config\x20value','risk':a23_0x480e1f(0xda),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a23_0x480e1f(0xaa),'required':!![]}],'flags':[],async 'execute'(_0x28fbc8){const _0x9c72b3=a23_0x480e1f,_0xfb50a6=_0x28fbc8['args'][0x0];if(!_0xfb50a6)throw CliErrors[_0x9c72b3(0xd4)](_0x9c72b3(0xa9),_0x9c72b3(0xd6)+CLI_BIN_NAME+_0x9c72b3(0xb5));const {buildConfigFromFlags:_0x34585f}=await import(_0x9c72b3(0x94)),{raw:_0x54f8dc}=_0x34585f({});if(_0xfb50a6['includes']('.')){const _0x3fc9c=_0xfb50a6[_0x9c72b3(0xa4)]('.');let _0x50e73e=_0x54f8dc;for(const _0x1db1b8 of _0x3fc9c){if(_0x50e73e==null||typeof _0x50e73e!==_0x9c72b3(0xd5))throw CliErrors[_0x9c72b3(0xd4)](_0x9c72b3(0xaf)+_0xfb50a6);_0x50e73e=_0x50e73e[_0x1db1b8];}if(_0x50e73e===undefined)throw CliErrors[_0x9c72b3(0xd4)](_0x9c72b3(0xaf)+_0xfb50a6);const _0x40ffd3=redactCliConfigValue(_0xfb50a6,_0x50e73e);return console[_0x9c72b3(0xd0)](typeof _0x40ffd3===_0x9c72b3(0xd5)?JSON[_0x9c72b3(0xcc)](_0x40ffd3,null,0x2):String(_0x40ffd3)),{'ok':!![]};}const _0x2a1984=_0x54f8dc[_0xfb50a6];if(_0x2a1984===undefined)throw CliErrors[_0x9c72b3(0xd4)]('Key\x20not\x20found:\x20'+_0xfb50a6);const _0xa6d6d5=redactCliConfigValue(_0xfb50a6,_0x2a1984);return console[_0x9c72b3(0xd0)](typeof _0xa6d6d5===_0x9c72b3(0xd5)?JSON[_0x9c72b3(0xcc)](_0xa6d6d5,null,0x2):String(_0xa6d6d5)),{'ok':!![]};}},setDef={'service':a23_0x480e1f(0xd3),'command':a23_0x480e1f(0x9a),'description':a23_0x480e1f(0x92),'risk':'write','confirmationDescription':a23_0x480e1f(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x11f512){const _0x41f518=a23_0x480e1f,_0x239400=_0x11f512[_0x41f518(0xb6)][0x0],_0x3edd37=_0x11f512[_0x41f518(0xb6)][0x1];if(!_0x239400||_0x3edd37===undefined)throw CliErrors['validation'](_0x41f518(0xc2),'Usage:\x20'+CLI_BIN_NAME+_0x41f518(0x98));if(ENUM_KEYS[_0x239400]&&!ENUM_KEYS[_0x239400][_0x41f518(0xd7)](_0x3edd37))throw CliErrors[_0x41f518(0xd4)](_0x41f518(0x9c)+_0x239400+_0x41f518(0xa3)+ENUM_KEYS[_0x239400][_0x41f518(0x97)](',\x20'));if(isCliProtectedConfigKey(_0x239400))throw CliErrors[_0x41f518(0xd4)]('\x22'+_0x239400+_0x41f518(0xb0));if(_0x239400===_0x41f518(0xbb)){const _0x24a605=Number(_0x3edd37);if(isNaN(_0x24a605)||_0x24a605<=0x0)throw CliErrors[_0x41f518(0xd4)](_0x41f518(0x93));}const _0x440ac4=resolveWriteScope({'explicitGlobal':_0x11f512[_0x41f518(0xa1)]('global'),'policy':_0x41f518(0xa0)}),_0x4bf83b=toScopeFlags(_0x440ac4),_0x3ee247=readScopedConfig(_0x4bf83b),_0x487d20=parseAliasAppcodeSetKey(_0x239400);if(!_0x487d20&&!isTopLevelConfigKey(_0x239400))throw CliErrors[_0x41f518(0xd4)](_0x41f518(0xca)+_0x239400+_0x41f518(0xb1),_0x41f518(0xbe)+getTopLevelConfigKeySummary()+_0x41f518(0xcd));if(_0x487d20)setLocalAppAlias(_0x3ee247,_0x487d20,_0x3edd37);else{if(_0x239400==='locale'){const _0x537e3e=normalizeLocale(_0x3edd37);if(!_0x537e3e)throw CliErrors[_0x41f518(0xd4)](_0x41f518(0xae),_0x41f518(0xbf));_0x3ee247[_0x41f518(0xb8)]=_0x537e3e;}else _0x3ee247[_0x239400]=_0x239400===_0x41f518(0xbb)?Number(_0x3edd37):DOMAIN_CONFIG_FIELDS[_0x41f518(0xd7)](_0x239400)?normalizeDomainOrigin(_0x239400,_0x3edd37):_0x3edd37;}const _0x4b4d5c=_0x239400===_0x41f518(0xcb)?maskCliAccessKey(_0x3edd37):!_0x487d20&&_0x239400==='locale'?String(_0x3ee247[_0x41f518(0xb8)]):_0x3edd37;return console['log'](_0x41f518(0xdc)+_0x239400+_0x41f518(0xc1)+_0x4b4d5c+'\x22'+(_0x440ac4===_0x41f518(0xbd)?_0x41f518(0xa2):'')),writeScopedConfig(_0x3ee247,_0x4bf83b),{'ok':!![]};}},deleteDef={'service':'config','command':a23_0x480e1f(0xcf),'description':a23_0x480e1f(0xc7),'risk':a23_0x480e1f(0xc4),'confirmationDescription':a23_0x480e1f(0xb9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x2d1a3f){const _0xe522ab=a23_0x480e1f,_0x4b80e9=_0x2d1a3f[_0xe522ab(0xb6)][0x0];if(!_0x4b80e9)throw CliErrors[_0xe522ab(0xd4)](_0xe522ab(0xa9),_0xe522ab(0xd6)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0x4b80e9))throw CliErrors[_0xe522ab(0xd4)]('\x22'+_0x4b80e9+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');const _0x5f31c8=resolveWriteScope({'explicitGlobal':_0x2d1a3f[_0xe522ab(0xa1)](_0xe522ab(0xbd)),'policy':_0xe522ab(0xa0)}),_0x3e465c=toScopeFlags(_0x5f31c8),_0x4893ac=readScopedConfig(_0x3e465c),_0x4c9b45=parseAliasDeleteKey(_0x4b80e9);if(_0x4c9b45){if(!deleteLocalAppAlias(_0x4893ac,_0x4c9b45))return console[_0xe522ab(0xd0)](_0xe522ab(0xc5)+_0x4b80e9+(_0x5f31c8===_0xe522ab(0xbd)?_0xe522ab(0xa2):'')),{'ok':!![],'data':{'key':_0x4b80e9,'scope':_0x5f31c8,'changed':![]}};return console[_0xe522ab(0xd0)](_0xe522ab(0xd8)+_0x4b80e9+'`'+(_0x5f31c8===_0xe522ab(0xbd)?_0xe522ab(0xa2):'')),writeScopedConfig(_0x4893ac,_0x3e465c),{'ok':!![],'data':{'key':_0x4b80e9,'scope':_0x5f31c8,'changed':!![]}};}if(_0x4893ac[_0x4b80e9]===undefined)return console[_0xe522ab(0xd0)](_0xe522ab(0xc5)+_0x4b80e9+(_0x5f31c8===_0xe522ab(0xbd)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x4b80e9,'scope':_0x5f31c8,'changed':![]}};return delete _0x4893ac[_0x4b80e9],console[_0xe522ab(0xd0)](_0xe522ab(0xd8)+_0x4b80e9+'`'+(_0x5f31c8===_0xe522ab(0xbd)?_0xe522ab(0xa2):'')),writeScopedConfig(_0x4893ac,_0x3e465c),{'ok':!![],'data':{'key':_0x4b80e9,'scope':_0x5f31c8,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- const a24_0x346207=a24_0x72c4;(function(_0x14ead8,_0x73b7f7){const _0x1744ac=a24_0x72c4,_0x18fd5f=_0x14ead8();while(!![]){try{const _0x85713=-parseInt(_0x1744ac(0x11a))/0x1+parseInt(_0x1744ac(0xfe))/0x2*(-parseInt(_0x1744ac(0x116))/0x3)+-parseInt(_0x1744ac(0x10a))/0x4+-parseInt(_0x1744ac(0x114))/0x5*(parseInt(_0x1744ac(0x118))/0x6)+parseInt(_0x1744ac(0x110))/0x7*(parseInt(_0x1744ac(0x101))/0x8)+parseInt(_0x1744ac(0x105))/0x9+-parseInt(_0x1744ac(0x10e))/0xa*(-parseInt(_0x1744ac(0xfd))/0xb);if(_0x85713===_0x73b7f7)break;else _0x18fd5f['push'](_0x18fd5f['shift']());}catch(_0xf3b5aa){_0x18fd5f['push'](_0x18fd5f['shift']());}}}(a24_0x1fdf,0xd6633));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';function a24_0x72c4(_0x2f6c3f,_0x45da2c){_0x2f6c3f=_0x2f6c3f-0xf9;const _0x1fdf36=a24_0x1fdf();let _0x72c4e3=_0x1fdf36[_0x2f6c3f];return _0x72c4e3;}import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';const domainFlags=[{'name':'domain-config','type':a24_0x346207(0x112),'description':a24_0x346207(0x10b)},{'name':a24_0x346207(0x111),'type':a24_0x346207(0x112),'description':a24_0x346207(0x11c)},{'name':a24_0x346207(0x102),'type':a24_0x346207(0x112),'description':a24_0x346207(0x129)},{'name':'runtime-domain','type':a24_0x346207(0x112),'description':a24_0x346207(0x121)},{'name':a24_0x346207(0x108),'type':'string','description':a24_0x346207(0x119)},{'name':a24_0x346207(0xfb),'type':'string','description':a24_0x346207(0x11e)}];export const configInitFlags=[{'name':a24_0x346207(0x10f),'type':a24_0x346207(0x112),'description':a24_0x346207(0xfa)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x3980a8){const _0x43de7a=a24_0x346207,_0x4e3550=_0x3980a8[_0x43de7a(0xf9)](_0x43de7a(0x10f));if(_0x4e3550){if(!isEnabledLovrabetRegion(_0x4e3550))throw CliErrors[_0x43de7a(0x12a)]('Region\x20\x22'+_0x4e3550+_0x43de7a(0x127),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x43de7a(0x103)](',\x20'));return _0x4e3550;}if(_0x3980a8['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x43de7a(0x107),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x43de7a(0xfc)](_0x494402=>({'name':OFFICIAL_ROUTING_PROFILES[_0x494402][_0x43de7a(0x117)]+'\x20('+_0x494402+')','value':_0x494402}))});}catch(_0x315a68){if(_0x315a68?.[_0x43de7a(0x125)]===_0x43de7a(0x11f))throw CliErrors[_0x43de7a(0x123)]();throw _0x315a68;}}function a24_0x1fdf(){const _0xbe8740=['write','3550820WFzcBP','region','7vyuTXt','user-domain','string','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','6430taauWo','length','976398jdPWJY','label','4638LeTpoz','Custom\x20SkillHub\x20HTTPS\x20origin','177581mLaMcN','independent','Custom\x20User\x20HTTPS\x20origin','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Custom\x20KB\x20Service\x20HTTPS\x20origin','ExitPromptError','routing','Custom\x20Runtime\x20HTTPS\x20origin','mode','cancelled','enterprise-v1','name','config','\x22\x20is\x20not\x20currently\x20available.','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','Custom\x20platform\x20API\x20HTTPS\x20origin','validation','str','Official\x20Lovrabet\x20region:\x20','kb-service-domain','map','99RiWinp','6EDEwbO','init','official','2149752SlSgWG','api-domain','join','keys','7155612JgTbna','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Select\x20Lovrabet\x20region','skill-domain','manifestDomains','4933348WUXBYp','Independent-deployment\x20Domain\x20JSON\x20file','domains'];a24_0x1fdf=function(){return _0xbe8740;};return a24_0x1fdf();}export async function executeConfigInit(_0x3aa9f3){const _0x894c39=a24_0x346207,_0x576e3c=resolveDomainConfigInput(_0x3aa9f3),_0x3a7fec=_0x576e3c[_0x894c39(0x10c)],_0x4a79be=Object[_0x894c39(0x104)](_0x3a7fec)[_0x894c39(0x115)]>0x0;if(_0x4a79be&&_0x3aa9f3[_0x894c39(0xf9)](_0x894c39(0x10f)))throw CliErrors[_0x894c39(0x12a)](_0x894c39(0x113));const _0x335ab8={'global':!![]},_0x4523be=readScopedConfig(_0x335ab8);for(const _0x34ed51 of DOMAIN_CONFIG_FIELDS)delete _0x4523be[_0x34ed51];for(const _0x3e28b8 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4523be[_0x3e28b8];delete _0x4523be[_0x894c39(0x120)];let _0x4c010a=null;if(_0x4a79be)delete _0x4523be[_0x894c39(0x10f)],_0x576e3c['mode']===_0x894c39(0x124)?_0x4523be[_0x894c39(0x120)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x576e3c[_0x894c39(0x109)]}:Object['assign'](_0x4523be,_0x3a7fec);else{_0x4c010a=await resolveRegion(_0x3aa9f3);if(_0x4c010a===DEFAULT_LOVRABET_REGION)delete _0x4523be[_0x894c39(0x10f)];else _0x4523be[_0x894c39(0x10f)]=_0x4c010a;}return writeScopedConfig(_0x4523be,_0x335ab8),{'ok':!![],'message':_0x4a79be?_0x894c39(0x106)+Object['keys'](_0x576e3c[_0x894c39(0x122)]===_0x894c39(0x124)?_0x576e3c['manifestDomains']:_0x3a7fec)[_0x894c39(0x103)](',\x20')+'.':_0x894c39(0x128)+_0x4c010a+'.','data':{'mode':_0x4a79be?_0x894c39(0x11b):_0x894c39(0x100),'protocol':_0x576e3c[_0x894c39(0x122)]===_0x894c39(0x124)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4c010a,'domains':_0x3a7fec}};}export const configInitDefinition={'service':a24_0x346207(0x126),'command':a24_0x346207(0xff),'description':a24_0x346207(0x11d),'risk':a24_0x346207(0x10d),'confirmationDescription':'Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a24_0x4b0769=a24_0x36e0;(function(_0x19da02,_0x270b66){const _0x2e3097=a24_0x36e0,_0x475f5d=_0x19da02();while(!![]){try{const _0x3994df=parseInt(_0x2e3097(0x155))/0x1*(-parseInt(_0x2e3097(0x13a))/0x2)+parseInt(_0x2e3097(0x157))/0x3+-parseInt(_0x2e3097(0x141))/0x4+-parseInt(_0x2e3097(0x13e))/0x5*(-parseInt(_0x2e3097(0x156))/0x6)+-parseInt(_0x2e3097(0x147))/0x7+-parseInt(_0x2e3097(0x14c))/0x8*(parseInt(_0x2e3097(0x15a))/0x9)+parseInt(_0x2e3097(0x152))/0xa;if(_0x3994df===_0x270b66)break;else _0x475f5d['push'](_0x475f5d['shift']());}catch(_0x3b244f){_0x475f5d['push'](_0x475f5d['shift']());}}}(a24_0x4dfc,0x6fd7e));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';function a24_0x36e0(_0x24ed21,_0x116ea5){_0x24ed21=_0x24ed21-0x13a;const _0x4dfc97=a24_0x4dfc();let _0x36e04e=_0x4dfc97[_0x24ed21];return _0x36e04e;}import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a24_0x4dfc(){const _0x150509=['1100728kboRSo','nonInteractive','\x22\x20is\x20not\x20currently\x20available.','skill-domain','region','join','2938243sptDvB','mode','init','domains','keys','8cwzVed','ExitPromptError','str','validation','Region\x20\x22','config','6349560QXxAxU','string','independent','807118dbGWuD','743790CiQFUr','2185440BQvFQV','routing','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','1323603TuOJMV','Custom\x20User\x20HTTPS\x20origin','user-domain','enterprise-v1','Available\x20regions:\x20','manifestDomains','Custom\x20Runtime\x20HTTPS\x20origin','Custom\x20SkillHub\x20HTTPS\x20origin','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','length','2IUEdsI','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','api-domain','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','30rJSbns','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','name'];a24_0x4dfc=function(){return _0x150509;};return a24_0x4dfc();}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';const domainFlags=[{'name':'domain-config','type':a24_0x4b0769(0x153),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':a24_0x4b0769(0x15c),'type':a24_0x4b0769(0x153),'description':a24_0x4b0769(0x15b)},{'name':a24_0x4b0769(0x13c),'type':a24_0x4b0769(0x153),'description':'Custom\x20platform\x20API\x20HTTPS\x20origin'},{'name':'runtime-domain','type':a24_0x4b0769(0x153),'description':a24_0x4b0769(0x160)},{'name':a24_0x4b0769(0x144),'type':a24_0x4b0769(0x153),'description':a24_0x4b0769(0x161)},{'name':'kb-service-domain','type':a24_0x4b0769(0x153),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'}];export const configInitFlags=[{'name':'region','type':'string','description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a24_0x4b0769(0x146)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x54c0a8){const _0x262388=a24_0x4b0769,_0x161dc2=_0x54c0a8[_0x262388(0x14e)](_0x262388(0x145));if(_0x161dc2){if(!isEnabledLovrabetRegion(_0x161dc2))throw CliErrors['validation'](_0x262388(0x150)+_0x161dc2+_0x262388(0x143),_0x262388(0x15e)+ENABLED_LOVRABET_REGION_VALUES[_0x262388(0x146)](',\x20'));return _0x161dc2;}if(_0x54c0a8[_0x262388(0x142)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':'Select\x20Lovrabet\x20region','default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x1bb4fe=>({'name':OFFICIAL_ROUTING_PROFILES[_0x1bb4fe]['label']+'\x20('+_0x1bb4fe+')','value':_0x1bb4fe}))});}catch(_0x188294){if(_0x188294?.[_0x262388(0x140)]===_0x262388(0x14d))throw CliErrors['cancelled']();throw _0x188294;}}export async function executeConfigInit(_0x21b8e9){const _0x568e95=a24_0x4b0769,_0x1e85e6=resolveDomainConfigInput(_0x21b8e9),_0x10137f=_0x1e85e6[_0x568e95(0x14a)],_0x1a826f=Object[_0x568e95(0x14b)](_0x10137f)[_0x568e95(0x163)]>0x0;if(_0x1a826f&&_0x21b8e9[_0x568e95(0x14e)](_0x568e95(0x145)))throw CliErrors[_0x568e95(0x14f)](_0x568e95(0x13f));const _0x3c1e84={'global':!![]},_0x433357=readScopedConfig(_0x3c1e84);for(const _0x4ebb0d of DOMAIN_CONFIG_FIELDS)delete _0x433357[_0x4ebb0d];for(const _0xc03ca4 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x433357[_0xc03ca4];delete _0x433357[_0x568e95(0x158)];let _0x38a2ac=null;if(_0x1a826f)delete _0x433357[_0x568e95(0x145)],_0x1e85e6[_0x568e95(0x148)]===_0x568e95(0x15d)?_0x433357[_0x568e95(0x158)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x1e85e6[_0x568e95(0x15f)]}:Object['assign'](_0x433357,_0x10137f);else{_0x38a2ac=await resolveRegion(_0x21b8e9);if(_0x38a2ac===DEFAULT_LOVRABET_REGION)delete _0x433357[_0x568e95(0x145)];else _0x433357[_0x568e95(0x145)]=_0x38a2ac;}return writeScopedConfig(_0x433357,_0x3c1e84),{'ok':!![],'message':_0x1a826f?_0x568e95(0x13b)+Object[_0x568e95(0x14b)](_0x1e85e6[_0x568e95(0x148)]===_0x568e95(0x15d)?_0x1e85e6[_0x568e95(0x15f)]:_0x10137f)[_0x568e95(0x146)](',\x20')+'.':_0x568e95(0x162)+_0x38a2ac+'.','data':{'mode':_0x1a826f?_0x568e95(0x154):'official','protocol':_0x1e85e6[_0x568e95(0x148)]===_0x568e95(0x15d)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x38a2ac,'domains':_0x10137f}};}export const configInitDefinition={'service':a24_0x4b0769(0x151),'command':a24_0x4b0769(0x149),'description':a24_0x4b0769(0x13d),'risk':'write','confirmationDescription':a24_0x4b0769(0x159),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- (function(_0x3c1cf3,_0x168dac){var _0x2ff3da=a25_0x46f8,_0x508dc2=_0x3c1cf3();while(!![]){try{var _0x200c80=parseInt(_0x2ff3da(0x12f))/0x1+-parseInt(_0x2ff3da(0x12e))/0x2*(parseInt(_0x2ff3da(0x135))/0x3)+parseInt(_0x2ff3da(0x133))/0x4+parseInt(_0x2ff3da(0x131))/0x5+-parseInt(_0x2ff3da(0x137))/0x6*(parseInt(_0x2ff3da(0x134))/0x7)+parseInt(_0x2ff3da(0x132))/0x8+parseInt(_0x2ff3da(0x130))/0x9*(-parseInt(_0x2ff3da(0x136))/0xa);if(_0x200c80===_0x168dac)break;else _0x508dc2['push'](_0x508dc2['shift']());}catch(_0x42f231){_0x508dc2['push'](_0x508dc2['shift']());}}}(a25_0x5c24,0xc51f8));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a25_0x46f8(_0x393433,_0x45dfb0){_0x393433=_0x393433-0x12e;var _0x5c24f7=a25_0x5c24();var _0x46f8b7=_0x5c24f7[_0x393433];return _0x46f8b7;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';function a25_0x5c24(){var _0x4642f7=['12519368vBLGBV','4733040jEofPr','34538tQDWfo','56031YQEjXx','50zUqbvA','1344SqInrY','86ggDBzf','705893WOPNsK','2216547EyaYyS','2465420ztSWoI'];a25_0x5c24=function(){return _0x4642f7;};return a25_0x5c24();}
1
+ (function(_0x455b42,_0x2fcf16){var _0x4f1eda=a25_0x2932,_0x5d81c9=_0x455b42();while(!![]){try{var _0x8ef53d=-parseInt(_0x4f1eda(0xa8))/0x1+-parseInt(_0x4f1eda(0xa1))/0x2+-parseInt(_0x4f1eda(0xa7))/0x3*(-parseInt(_0x4f1eda(0xa0))/0x4)+-parseInt(_0x4f1eda(0xa9))/0x5*(parseInt(_0x4f1eda(0xa5))/0x6)+-parseInt(_0x4f1eda(0xa2))/0x7+parseInt(_0x4f1eda(0xaa))/0x8*(parseInt(_0x4f1eda(0xa3))/0x9)+parseInt(_0x4f1eda(0xa6))/0xa*(parseInt(_0x4f1eda(0xa4))/0xb);if(_0x8ef53d===_0x2fcf16)break;else _0x5d81c9['push'](_0x5d81c9['shift']());}catch(_0x65e5e5){_0x5d81c9['push'](_0x5d81c9['shift']());}}}(a25_0x3c92,0xc71ac));function a25_0x3c92(){var _0x5d6be5=['2143936uFBtkI','5192908oCIFHg','144iiNNxx','6837413IWFpHg','2328MzxDLP','40LvuRuw','27507PINzfe','110227xIsNpF','9185drRrjY','432568CPbzPR','44efIoDL'];a25_0x3c92=function(){return _0x5d6be5;};return a25_0x3c92();}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a25_0x2932(_0x975e28,_0x2bb612){_0x975e28=_0x975e28-0xa0;var _0x3c9258=a25_0x3c92();var _0x293267=_0x3c9258[_0x975e28];return _0x293267;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a26_0x5d7a93=a26_0x1364;(function(_0x56eee8,_0x6b537){const _0x1f5080=a26_0x1364,_0x2c338b=_0x56eee8();while(!![]){try{const _0x8cd3d4=-parseInt(_0x1f5080(0x21d))/0x1+-parseInt(_0x1f5080(0x214))/0x2+-parseInt(_0x1f5080(0x1e7))/0x3+parseInt(_0x1f5080(0x1e8))/0x4*(parseInt(_0x1f5080(0x201))/0x5)+-parseInt(_0x1f5080(0x1e6))/0x6*(-parseInt(_0x1f5080(0x208))/0x7)+-parseInt(_0x1f5080(0x20e))/0x8+parseInt(_0x1f5080(0x1c9))/0x9;if(_0x8cd3d4===_0x6b537)break;else _0x2c338b['push'](_0x2c338b['shift']());}catch(_0x3c5a38){_0x2c338b['push'](_0x2c338b['shift']());}}}(a26_0x1011,0x23094));import{readFile,realpath}from'node:fs/promises';function a26_0x1011(){const _0x108598=['batch-size','.\x20Validate\x20fields\x20and\x20confirmed\x20unique\x20business\x20keys,\x20convert\x20Excel\x20rows\x20to\x20JSON,\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20limits.\x20Preview\x20one\x20batch\x20with\x20lovrabet\x20data\x20batchCreate\x20--appcode\x20','media','schemaFingerprint','import-excel','bool','rows','utf8','schemaVersion','.lock.recovery','file','object','.import-report.json','339558LFVVJz','10377DzoXrr','19564vbvuOC','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','all','toString','reduce','max','Mapping\x20file\x20exceeds\x201\x20MB.','isInteger','string','map','rowNumber','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','--file\x20and\x20--mapping\x20are\x20required.','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','Excel\x20contains\x20','checkpoint','some','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','/client/','size','report','Imported\x20and\x20verified\x20','header-row','write','mappingFile','185rJcxTp','.import-checkpoint.json','errors','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','\x20--code\x20','resume','imageFields','21WKdIUN','length','DB_TABLE','batchSize','isArray','Import\x20one\x20XLSX\x20worksheet\x20into\x20METADATA\x20with\x20checkpoint\x20recovery.\x20DB_TABLE\x20uses\x20lovrabet\x20data\x20batchCreate\x20after\x20mapping\x20and\x20validation;\x20that\x20route\x20has\x20no\x20import\x20checkpoint\x20or\x20--resume.','2174656moxrpd','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','maxBatchSize','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','number','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','158948HJMTyC','mapping','slice','code','values','imageCells','num','succeeded','METADATA','60798bRMpPx','1874925HJrJdv','boolean','data','invalid','str','emptyRows','appCode','Excel\x20import\x20failed.','\x20--params\x20\x27<JSON\x20array>\x27\x20--dry-run\x20using\x20the\x20target\x20app\x27s\x20User\x20AK\x20and\x20runtime\x20permissions.\x20Dry-run\x20only\x20previews\x20the\x20request;\x20verify\x20written\x20rows\x20before\x20advancing\x20and\x20reconcile\x20unknown\x20outcomes\x20before\x20retrying.\x20This\x20DB_TABLE\x20route\x20does\x20not\x20support\x20import\x20checkpoints\x20or\x20--resume.\x20See\x20references/lovrabet-db-table-excel-import.md\x20in\x20the\x20built-in\x20Skill.\x20No\x20import\x20request\x20was\x20sent.','warnings','sheet','\x20records.','1-based\x20Excel\x20header\x20row','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','validation','.lock'];a26_0x1011=function(){return _0x108598;};return a26_0x1011();}import{resolve}from'node:path';import{CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,getDatasetImportContract,createDatasetImportBatch,readDatasetImportRows,readDatasetImportTaskRows,uploadDatasetImportImage,readDatasetImportImage}from'../../core/api-client.js';import{getRuntimeDomain}from'../../constant/domain.js';import{CliError,CliErrors}from'../../errors.js';import{buildExcelManifest,normalizeImportFields}from'../../services/dataset-import/excel-reader.js';import{assertImportContract,assertImportPaths,runExcelImport,saveImportJson,resolveImportOutputPath}from'../../services/dataset-import/runner.js';import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';function a26_0x1364(_0x52fb79,_0x23e751){_0x52fb79=_0x52fb79-0x1c9;const _0x10112e=a26_0x1011();let _0x1364f0=_0x10112e[_0x52fb79];return _0x1364f0;}import{runAutoIdExcelImport}from'../../services/dataset-import/auto-id-runner.js';import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function input(_0xf7bb44){const _0x5442da=a26_0x1364,_0x489cb3=_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x1e3)),_0x25728c=_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x215));if(!_0x489cb3||!_0x25728c)throw CliErrors[_0x5442da(0x1d7)](_0x5442da(0x1f4));const _0x3292af=_0xf7bb44[_0x5442da(0x21a)](_0x5442da(0x1fe),0x1),_0x524939=_0xf7bb44[_0x5442da(0x21a)](_0x5442da(0x1d9),0x1f4);if(!Number[_0x5442da(0x1ef)](_0x3292af)||_0x3292af<0x1||!Number[_0x5442da(0x1ef)](_0x524939)||_0x524939<0x1||_0x524939>0x1f4)throw CliErrors[_0x5442da(0x1d7)]('Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.');const _0x119551=resolve(_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x1f7))||_0x489cb3+_0x5442da(0x202)),_0x3e18fa=resolve(_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x1fc))||_0x489cb3+_0x5442da(0x1e5)),_0x5ce617=[resolve(_0x489cb3),resolve(_0x25728c),_0x119551,_0x3e18fa];if(new Set(_0x5ce617)['size']!==_0x5ce617[_0x5442da(0x209)])throw CliErrors[_0x5442da(0x1d7)]('Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.');return{'file':resolve(_0x489cb3),'mappingFile':resolve(_0x25728c),'headerRow':_0x3292af,'batchSize':_0x524939,'checkpoint':_0x119551,'report':_0x3e18fa,'sheet':_0xf7bb44[_0x5442da(0x1cd)]('sheet')||undefined,'resume':_0xf7bb44[_0x5442da(0x1de)](_0x5442da(0x206))};}async function prepare(_0x4707bc){const _0x353de1=a26_0x1364,_0xf627da=input(_0x4707bc),_0x3c5a88=_0x4707bc['str'](_0x353de1(0x217));[_0xf627da[_0x353de1(0x1e3)],_0xf627da[_0x353de1(0x200)],_0xf627da[_0x353de1(0x1f7)],_0xf627da[_0x353de1(0x1fc)]]=await Promise[_0x353de1(0x1ea)]([realpath(_0xf627da[_0x353de1(0x1e3)]),realpath(_0xf627da[_0x353de1(0x200)]),resolveImportOutputPath(_0xf627da[_0x353de1(0x1f7)]),resolveImportOutputPath(_0xf627da['report'])]),assertImportPaths(_0xf627da[_0x353de1(0x1f7)],_0xf627da[_0x353de1(0x1fc)],[_0xf627da[_0x353de1(0x1e3)],_0xf627da['mappingFile']]);let _0x605fa3;const _0xc462b6=await readFile(_0xf627da[_0x353de1(0x200)]);if(_0xc462b6[_0x353de1(0x209)]>0x400*0x400)throw CliErrors[_0x353de1(0x1d7)](_0x353de1(0x1ee));try{_0x605fa3=JSON['parse'](_0xc462b6[_0x353de1(0x1eb)](_0x353de1(0x1e0)));}catch{throw CliErrors['validation'](_0x353de1(0x1f9));}if(!_0x605fa3||typeof _0x605fa3!==_0x353de1(0x1e4)||Array[_0x353de1(0x20c)](_0x605fa3)||Object[_0x353de1(0x218)](_0x605fa3)[_0x353de1(0x1f8)](_0x4a3baa=>typeof _0x4a3baa!=='string'))throw CliErrors['validation'](_0x353de1(0x20f));const _0x3c933c=await getDatasetDetail(_0x3c5a88),_0x24c87e=assertDatasetImportTarget(_0x3c933c,_0x4707bc[_0x353de1(0x1cf)],_0x3c5a88);if(_0x24c87e===_0x353de1(0x20a))throw CliErrors[_0x353de1(0x1d7)]('DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20'+_0x3c5a88+_0x353de1(0x1da)+_0x4707bc[_0x353de1(0x1cf)]+_0x353de1(0x205)+_0x3c5a88+_0x353de1(0x1d1));if(_0x24c87e!==_0x353de1(0x21c))throw CliErrors[_0x353de1(0x1d7)]('Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.');const _0xb84edb=await buildExcelManifest({..._0xf627da,'mapping':_0x605fa3,'fields':normalizeImportFields(_0x3c933c)}),_0x4eab52=await getDatasetImportContract(_0x4707bc[_0x353de1(0x1cf)],_0x3c5a88);assertImportContract(_0x4eab52,_0x4707bc[_0x353de1(0x1cf)],_0x3c5a88),assertImageImportCapability(_0x4eab52,_0xb84edb);if(_0xb84edb[_0x353de1(0x207)]?.[_0x353de1(0x209)]){const _0x72bbb=await resolveImportOutputPath(_0xf627da['checkpoint']+'.rows.json'),_0x5122b8=await Promise[_0x353de1(0x1ea)]([_0x72bbb,_0x72bbb+_0x353de1(0x1d8),_0x72bbb+_0x353de1(0x1e2),_0xf627da[_0x353de1(0x1f7)]+'.lock',_0xf627da[_0x353de1(0x1f7)]+_0x353de1(0x1e2)][_0x353de1(0x1f1)](resolveImportOutputPath));assertImportPaths(_0xf627da['checkpoint'],_0xf627da['report'],[_0xf627da[_0x353de1(0x1e3)],_0xf627da['mappingFile'],..._0x5122b8[_0x353de1(0x216)](0x0,0x3)]);}if(_0xf627da['batchSize']>_0x4eab52[_0x353de1(0x210)])throw CliErrors[_0x353de1(0x1d7)](_0x353de1(0x213));return{'args':_0xf627da,'manifest':_0xb84edb,'contract':_0x4eab52,'code':_0x3c5a88};}async function checked(_0x544b69){const _0x2b08ea=a26_0x1364;try{return await _0x544b69();}catch(_0x32e7c2){if(_0x32e7c2 instanceof CliError)throw _0x32e7c2;throw CliErrors[_0x2b08ea(0x1d7)](_0x32e7c2['message']||_0x2b08ea(0x1d0));}}export const dataImportExcel={'service':a26_0x5d7a93(0x1cb),'command':a26_0x5d7a93(0x1dd),'risk':a26_0x5d7a93(0x1ff),'description':a26_0x5d7a93(0x20d),'confirmationDescription':'Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','flags':[CODE_FLAG,{'name':a26_0x5d7a93(0x1e3),'type':a26_0x5d7a93(0x1f0),'required':!![],'description':'Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)'},{'name':a26_0x5d7a93(0x215),'type':a26_0x5d7a93(0x1f0),'required':!![],'description':a26_0x5d7a93(0x1f3)},{'name':a26_0x5d7a93(0x1d3),'type':a26_0x5d7a93(0x1f0),'description':a26_0x5d7a93(0x1d6)},{'name':a26_0x5d7a93(0x1fe),'type':a26_0x5d7a93(0x212),'default':0x1,'description':a26_0x5d7a93(0x1d5)},{'name':a26_0x5d7a93(0x1d9),'type':a26_0x5d7a93(0x212),'default':0x1f4,'description':'Maximum\x20records\x20per\x20request\x20(1..500)'},{'name':'checkpoint','type':a26_0x5d7a93(0x1f0),'description':a26_0x5d7a93(0x211)},{'name':a26_0x5d7a93(0x1fc),'type':'string','description':a26_0x5d7a93(0x204)},{'name':a26_0x5d7a93(0x206),'type':a26_0x5d7a93(0x1ca),'description':'Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping'}],'validate':async _0x13374d=>{input(_0x13374d);},'dryRun':async _0x224263=>checked(async()=>{const _0x633199=a26_0x5d7a93,{args:_0x1c45da,manifest:_0x1625d5,contract:_0x3be1be,code:_0x44e714}=await prepare(_0x224263),_0x31d2a2=new Set(_0x1625d5['errors'][_0x633199(0x1f1)](_0x11aa1e=>_0x11aa1e[_0x633199(0x1f2)]))[_0x633199(0x1fb)];return{'method':'POST','url':_0x633199(0x1fa)+encodeURIComponent(_0x224263['appCode'])+'/'+encodeURIComponent(_0x44e714)+'/import-batch','description':_0x633199(0x1f5),'body':{'schemaFingerprint':_0x3be1be[_0x633199(0x1dc)]},'validRows':Math[_0x633199(0x1ed)](0x0,_0x1625d5[_0x633199(0x1df)]['length']-_0x31d2a2),'invalidRows':_0x31d2a2,'invalidCells':_0x1625d5['errors']['length'],'emptyRows':_0x1625d5[_0x633199(0x1ce)]['length'],'expectedBatches':previewImportBatchCount(_0x1625d5,_0x3be1be,_0x1c45da[_0x633199(0x20b)]),'imageCount':_0x1625d5[_0x633199(0x219)]?.[_0x633199(0x1ec)]((_0x42e6b7,_0xb0d5dc)=>_0x42e6b7+_0xb0d5dc['hashes'][_0x633199(0x209)],0x0)??0x0,'uniqueImages':_0x1625d5['media']?.[_0x633199(0x209)]??0x0,'uniqueImageBytes':_0x1625d5[_0x633199(0x1db)]?.['reduce']((_0x4cc5e2,_0x5146c4)=>_0x4cc5e2+_0x5146c4[_0x633199(0x1fb)],0x0)??0x0,'errors':_0x1625d5[_0x633199(0x203)],'warnings':_0x1625d5['warnings'],'sheet':_0x1625d5[_0x633199(0x1d3)],'checkpoint':_0x1c45da[_0x633199(0x1f7)],'report':_0x1c45da[_0x633199(0x1fc)]};}),'execute':async _0x272282=>checked(async()=>{const _0x519a21=a26_0x5d7a93,{args:_0x3c16ab,manifest:_0x530e7e,contract:_0x3753c0,code:_0x18fac9}=await prepare(_0x272282);if(_0x530e7e['errors']['length']){await saveImportJson(_0x3c16ab[_0x519a21(0x1fc)],{'status':_0x519a21(0x1cc),'sourceRows':_0x530e7e[_0x519a21(0x1df)][_0x519a21(0x209)],'errors':_0x530e7e[_0x519a21(0x203)],'emptyRows':_0x530e7e[_0x519a21(0x1ce)],'warnings':_0x530e7e[_0x519a21(0x1d2)]});throw CliErrors['validation'](_0x519a21(0x1f6)+_0x530e7e[_0x519a21(0x203)][_0x519a21(0x209)]+_0x519a21(0x1e9),'See\x20'+_0x3c16ab[_0x519a21(0x1fc)]+'.');}const _0x4fba3f=_0x530e7e['imageFields']?.['length']?runImageExcelImport:_0x3753c0[_0x519a21(0x1e1)]===0x2?runAutoIdExcelImport:runExcelImport,_0x5fb5d2=await _0x4fba3f({..._0x3c16ab,'manifest':_0x530e7e,'contract':_0x3753c0,'appCode':_0x272282[_0x519a21(0x1cf)],'datasetCode':_0x18fac9,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x3c16ab[_0x519a21(0x1e3)],_0x3c16ab[_0x519a21(0x200)]],'imageApi':{'upload':(_0x526319,_0x4a2fef)=>uploadDatasetImportImage(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x526319,_0x4a2fef),'readback':(_0x219d45,_0x4404ec)=>readDatasetImportImage(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x219d45,_0x4404ec)},'api':{'write':(_0x460922,_0x4c31d4)=>createDatasetImportBatch(_0x272282['appCode'],_0x18fac9,{'schemaFingerprint':_0x3753c0[_0x519a21(0x1dc)],'items':_0x460922,..._0x4c31d4===undefined?{}:{'taskId':_0x4c31d4}}),'readback':_0x537e56=>readDatasetImportRows(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x537e56),'readTask':_0x166ac4=>readDatasetImportTaskRows(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x166ac4)}});return{'ok':!![],'data':_0x5fb5d2,'message':_0x519a21(0x1fd)+_0x5fb5d2[_0x519a21(0x21b)]+_0x519a21(0x1d4)};})};
1
+ const a26_0x6a37e8=a26_0x2282;(function(_0x452e8a,_0x22a9a7){const _0x252b9c=a26_0x2282,_0x2d72ef=_0x452e8a();while(!![]){try{const _0x41e9b9=parseInt(_0x252b9c(0x16c))/0x1+parseInt(_0x252b9c(0x17d))/0x2*(parseInt(_0x252b9c(0x1b7))/0x3)+-parseInt(_0x252b9c(0x1a0))/0x4+-parseInt(_0x252b9c(0x1a8))/0x5+-parseInt(_0x252b9c(0x17f))/0x6*(parseInt(_0x252b9c(0x1a3))/0x7)+-parseInt(_0x252b9c(0x18d))/0x8+parseInt(_0x252b9c(0x170))/0x9*(parseInt(_0x252b9c(0x179))/0xa);if(_0x41e9b9===_0x22a9a7)break;else _0x2d72ef['push'](_0x2d72ef['shift']());}catch(_0x21320c){_0x2d72ef['push'](_0x2d72ef['shift']());}}}(a26_0x2f2c,0x846c9));import{readFile,realpath}from'node:fs/promises';import{resolve}from'node:path';import{CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,getDatasetImportContract,createDatasetImportBatch,readDatasetImportRows,readDatasetImportTaskRows,uploadDatasetImportImage,readDatasetImportImage}from'../../core/api-client.js';import{getRuntimeDomain}from'../../constant/domain.js';import{CliError,CliErrors}from'../../errors.js';import{buildExcelManifest,normalizeImportFields}from'../../services/dataset-import/excel-reader.js';import{assertImportContract,assertImportPaths,runExcelImport,saveImportJson,resolveImportOutputPath}from'../../services/dataset-import/runner.js';function a26_0x2282(_0x3d55bd,_0x579a4e){_0x3d55bd=_0x3d55bd-0x169;const _0x2f2c9d=a26_0x2f2c();let _0x2282bb=_0x2f2c9d[_0x3d55bd];return _0x2282bb;}import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';import{runAutoIdExcelImport}from'../../services/dataset-import/auto-id-runner.js';import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function input(_0x279933){const _0x7279d0=a26_0x2282,_0xf00e3a=_0x279933[_0x7279d0(0x189)](_0x7279d0(0x1bb)),_0x36fc00=_0x279933['str'](_0x7279d0(0x19c));if(!_0xf00e3a||!_0x36fc00)throw CliErrors['validation'](_0x7279d0(0x19e));const _0x4d7aff=_0x279933['num'](_0x7279d0(0x16f),0x1),_0x46d290=_0x279933[_0x7279d0(0x18b)](_0x7279d0(0x194),0x1f4);if(!Number['isInteger'](_0x4d7aff)||_0x4d7aff<0x1||!Number[_0x7279d0(0x19a)](_0x46d290)||_0x46d290<0x1||_0x46d290>0x1f4)throw CliErrors['validation'](_0x7279d0(0x16a));const _0x2cac2a=resolve(_0x279933['str'](_0x7279d0(0x196))||_0xf00e3a+'.import-checkpoint.json'),_0x5b5cde=resolve(_0x279933[_0x7279d0(0x189)](_0x7279d0(0x184))||_0xf00e3a+_0x7279d0(0x178)),_0x510c46=[resolve(_0xf00e3a),resolve(_0x36fc00),_0x2cac2a,_0x5b5cde];if(new Set(_0x510c46)['size']!==_0x510c46[_0x7279d0(0x1b1)])throw CliErrors[_0x7279d0(0x197)](_0x7279d0(0x1b3));return{'file':resolve(_0xf00e3a),'mappingFile':resolve(_0x36fc00),'headerRow':_0x4d7aff,'batchSize':_0x46d290,'checkpoint':_0x2cac2a,'report':_0x5b5cde,'sheet':_0x279933['str']('sheet')||undefined,'resume':_0x279933[_0x7279d0(0x199)](_0x7279d0(0x17c))};}async function prepare(_0x3ab215){const _0x1adf69=a26_0x2282,_0x2ccbd1=input(_0x3ab215),_0x255085=_0x3ab215[_0x1adf69(0x189)]('code');[_0x2ccbd1[_0x1adf69(0x1bb)],_0x2ccbd1[_0x1adf69(0x185)],_0x2ccbd1[_0x1adf69(0x196)],_0x2ccbd1[_0x1adf69(0x184)]]=await Promise[_0x1adf69(0x1bd)]([realpath(_0x2ccbd1[_0x1adf69(0x1bb)]),realpath(_0x2ccbd1[_0x1adf69(0x185)]),resolveImportOutputPath(_0x2ccbd1[_0x1adf69(0x196)]),resolveImportOutputPath(_0x2ccbd1[_0x1adf69(0x184)])]),assertImportPaths(_0x2ccbd1['checkpoint'],_0x2ccbd1['report'],[_0x2ccbd1[_0x1adf69(0x1bb)],_0x2ccbd1[_0x1adf69(0x185)]]);let _0x299794;const _0x3bfe04=await readFile(_0x2ccbd1[_0x1adf69(0x185)]);if(_0x3bfe04['length']>0x400*0x400)throw CliErrors[_0x1adf69(0x197)](_0x1adf69(0x1aa));try{_0x299794=JSON[_0x1adf69(0x180)](_0x3bfe04[_0x1adf69(0x1bc)](_0x1adf69(0x1a1)));}catch{throw CliErrors[_0x1adf69(0x197)](_0x1adf69(0x18f));}if(!_0x299794||typeof _0x299794!==_0x1adf69(0x1af)||Array[_0x1adf69(0x1b5)](_0x299794)||Object[_0x1adf69(0x18e)](_0x299794)[_0x1adf69(0x195)](_0x2631f=>typeof _0x2631f!==_0x1adf69(0x182)))throw CliErrors[_0x1adf69(0x197)](_0x1adf69(0x19f));const _0x5c32f3=await getDatasetDetail(_0x255085),_0x185e8e=assertDatasetImportTarget(_0x5c32f3,_0x3ab215[_0x1adf69(0x19b)],_0x255085);if(_0x185e8e===_0x1adf69(0x193))throw CliErrors[_0x1adf69(0x197)](_0x1adf69(0x18a),_0x1adf69(0x1b2)+_0x255085+_0x1adf69(0x169)+_0x3ab215[_0x1adf69(0x19b)]+_0x1adf69(0x176)+_0x255085+'\x20--params\x20\x27<JSON\x20array>\x27\x20--dry-run\x20using\x20the\x20target\x20app\x27s\x20User\x20AK\x20and\x20runtime\x20permissions.\x20Dry-run\x20only\x20previews\x20the\x20request;\x20verify\x20written\x20rows\x20before\x20advancing\x20and\x20reconcile\x20unknown\x20outcomes\x20before\x20retrying.\x20This\x20DB_TABLE\x20route\x20does\x20not\x20support\x20import\x20checkpoints\x20or\x20--resume.\x20See\x20references/lovrabet-db-table-excel-import.md\x20in\x20the\x20built-in\x20Skill.\x20No\x20import\x20request\x20was\x20sent.');if(_0x185e8e!==_0x1adf69(0x1b4))throw CliErrors[_0x1adf69(0x197)](_0x1adf69(0x1c0),_0x1adf69(0x1ab));const _0x192404=await buildExcelManifest({..._0x2ccbd1,'mapping':_0x299794,'fields':normalizeImportFields(_0x5c32f3)}),_0x51d0b8=await getDatasetImportContract(_0x3ab215[_0x1adf69(0x19b)],_0x255085);assertImportContract(_0x51d0b8,_0x3ab215['appCode'],_0x255085),assertImageImportCapability(_0x51d0b8,_0x192404);if(_0x192404['imageFields']?.['length']){const _0x3b3e01=await resolveImportOutputPath(_0x2ccbd1[_0x1adf69(0x196)]+_0x1adf69(0x1ad)),_0xc70e65=await Promise[_0x1adf69(0x1bd)]([_0x3b3e01,_0x3b3e01+'.lock',_0x3b3e01+_0x1adf69(0x175),_0x2ccbd1['checkpoint']+_0x1adf69(0x16b),_0x2ccbd1['checkpoint']+'.lock.recovery'][_0x1adf69(0x1b6)](resolveImportOutputPath));assertImportPaths(_0x2ccbd1[_0x1adf69(0x196)],_0x2ccbd1['report'],[_0x2ccbd1['file'],_0x2ccbd1['mappingFile'],..._0xc70e65['slice'](0x0,0x3)]);}if(_0x2ccbd1[_0x1adf69(0x190)]>_0x51d0b8['maxBatchSize'])throw CliErrors['validation']('Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.');return{'args':_0x2ccbd1,'manifest':_0x192404,'contract':_0x51d0b8,'code':_0x255085};}function a26_0x2f2c(){const _0x1b4adb=['length','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','METADATA','isArray','map','59325RvvHVY','\x20records.','emptyRows','number','file','toString','all','POST','rows','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','.\x20Validate\x20fields\x20and\x20confirmed\x20unique\x20business\x20keys,\x20convert\x20Excel\x20rows\x20to\x20JSON,\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20limits.\x20Preview\x20one\x20batch\x20with\x20lovrabet\x20data\x20batchCreate\x20--appcode\x20','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','.lock','338064RUQyIn','data','Excel\x20contains\x20','header-row','9aeboiY','schemaVersion','boolean','reduce','message','.lock.recovery','\x20--code\x20','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','.import-report.json','16204690gUknUy','/client/','Excel\x20import\x20failed.','resume','22fNyXoe','warnings','6GBWmVG','parse','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','string','schemaFingerprint','report','mappingFile','1-based\x20Excel\x20header\x20row','sheet','imageCells','str','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','num','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','1678608nzZsXz','values','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','batchSize','import-excel','/import-batch','DB_TABLE','batch-size','some','checkpoint','validation','errors','bool','isInteger','appCode','mapping','Imported\x20and\x20verified\x20','--file\x20and\x20--mapping\x20are\x20required.','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','1470232eQsfDk','utf8','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','5738299hCUVUX','media','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','write','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','1182540YRDSEF','succeeded','Mapping\x20file\x20exceeds\x201\x20MB.','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','.rows.json','rowNumber','object','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping'];a26_0x2f2c=function(){return _0x1b4adb;};return a26_0x2f2c();}async function checked(_0x8547a4){const _0x3fc972=a26_0x2282;try{return await _0x8547a4();}catch(_0x21788f){if(_0x21788f instanceof CliError)throw _0x21788f;throw CliErrors[_0x3fc972(0x197)](_0x21788f[_0x3fc972(0x174)]||_0x3fc972(0x17b));}}export const dataImportExcel={'service':a26_0x6a37e8(0x16d),'command':a26_0x6a37e8(0x191),'risk':a26_0x6a37e8(0x1a6),'description':'Import\x20one\x20XLSX\x20worksheet\x20into\x20METADATA\x20with\x20checkpoint\x20recovery.\x20DB_TABLE\x20uses\x20lovrabet\x20data\x20batchCreate\x20after\x20mapping\x20and\x20validation;\x20that\x20route\x20has\x20no\x20import\x20checkpoint\x20or\x20--resume.','confirmationDescription':a26_0x6a37e8(0x181),'flags':[CODE_FLAG,{'name':a26_0x6a37e8(0x1bb),'type':'string','required':!![],'description':a26_0x6a37e8(0x177)},{'name':a26_0x6a37e8(0x19c),'type':a26_0x6a37e8(0x182),'required':!![],'description':a26_0x6a37e8(0x1a7)},{'name':a26_0x6a37e8(0x187),'type':'string','description':a26_0x6a37e8(0x1ac)},{'name':a26_0x6a37e8(0x16f),'type':a26_0x6a37e8(0x1ba),'default':0x1,'description':a26_0x6a37e8(0x186)},{'name':a26_0x6a37e8(0x194),'type':a26_0x6a37e8(0x1ba),'default':0x1f4,'description':'Maximum\x20records\x20per\x20request\x20(1..500)'},{'name':a26_0x6a37e8(0x196),'type':a26_0x6a37e8(0x182),'description':'Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)'},{'name':a26_0x6a37e8(0x184),'type':a26_0x6a37e8(0x182),'description':a26_0x6a37e8(0x18c)},{'name':a26_0x6a37e8(0x17c),'type':a26_0x6a37e8(0x172),'description':a26_0x6a37e8(0x1b0)}],'validate':async _0x3c8e63=>{input(_0x3c8e63);},'dryRun':async _0x16605e=>checked(async()=>{const _0x3523d8=a26_0x6a37e8,{args:_0x55703b,manifest:_0x2f46ca,contract:_0x3095d5,code:_0xec0f2}=await prepare(_0x16605e),_0x56edff=new Set(_0x2f46ca[_0x3523d8(0x198)][_0x3523d8(0x1b6)](_0xf54325=>_0xf54325[_0x3523d8(0x1ae)]))['size'];return{'method':_0x3523d8(0x1be),'url':_0x3523d8(0x17a)+encodeURIComponent(_0x16605e[_0x3523d8(0x19b)])+'/'+encodeURIComponent(_0xec0f2)+_0x3523d8(0x192),'description':_0x3523d8(0x1a5),'body':{'schemaFingerprint':_0x3095d5[_0x3523d8(0x183)]},'validRows':Math['max'](0x0,_0x2f46ca[_0x3523d8(0x1bf)][_0x3523d8(0x1b1)]-_0x56edff),'invalidRows':_0x56edff,'invalidCells':_0x2f46ca[_0x3523d8(0x198)]['length'],'emptyRows':_0x2f46ca['emptyRows'][_0x3523d8(0x1b1)],'expectedBatches':previewImportBatchCount(_0x2f46ca,_0x3095d5,_0x55703b[_0x3523d8(0x190)]),'imageCount':_0x2f46ca[_0x3523d8(0x188)]?.[_0x3523d8(0x173)]((_0x157282,_0x988999)=>_0x157282+_0x988999['hashes'][_0x3523d8(0x1b1)],0x0)??0x0,'uniqueImages':_0x2f46ca[_0x3523d8(0x1a4)]?.[_0x3523d8(0x1b1)]??0x0,'uniqueImageBytes':_0x2f46ca['media']?.[_0x3523d8(0x173)]((_0x81283,_0x432db0)=>_0x81283+_0x432db0['size'],0x0)??0x0,'errors':_0x2f46ca['errors'],'warnings':_0x2f46ca[_0x3523d8(0x17e)],'sheet':_0x2f46ca[_0x3523d8(0x187)],'checkpoint':_0x55703b[_0x3523d8(0x196)],'report':_0x55703b[_0x3523d8(0x184)]};}),'execute':async _0x3584a8=>checked(async()=>{const _0x3e84c6=a26_0x6a37e8,{args:_0x30eb89,manifest:_0x5dc1d9,contract:_0x5253de,code:_0x12afb3}=await prepare(_0x3584a8);if(_0x5dc1d9[_0x3e84c6(0x198)][_0x3e84c6(0x1b1)]){await saveImportJson(_0x30eb89[_0x3e84c6(0x184)],{'status':'invalid','sourceRows':_0x5dc1d9['rows'][_0x3e84c6(0x1b1)],'errors':_0x5dc1d9[_0x3e84c6(0x198)],'emptyRows':_0x5dc1d9[_0x3e84c6(0x1b9)],'warnings':_0x5dc1d9[_0x3e84c6(0x17e)]});throw CliErrors[_0x3e84c6(0x197)](_0x3e84c6(0x16e)+_0x5dc1d9['errors'][_0x3e84c6(0x1b1)]+_0x3e84c6(0x1a2),'See\x20'+_0x30eb89[_0x3e84c6(0x184)]+'.');}const _0x4e98c3=_0x5dc1d9['imageFields']?.[_0x3e84c6(0x1b1)]?runImageExcelImport:_0x5253de[_0x3e84c6(0x171)]===0x2?runAutoIdExcelImport:runExcelImport,_0x5d9209=await _0x4e98c3({..._0x30eb89,'manifest':_0x5dc1d9,'contract':_0x5253de,'appCode':_0x3584a8['appCode'],'datasetCode':_0x12afb3,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x30eb89['file'],_0x30eb89[_0x3e84c6(0x185)]],'imageApi':{'upload':(_0x219de6,_0xcc025d)=>uploadDatasetImportImage(_0x3584a8[_0x3e84c6(0x19b)],_0x12afb3,_0x219de6,_0xcc025d),'readback':(_0x578167,_0x351517)=>readDatasetImportImage(_0x3584a8[_0x3e84c6(0x19b)],_0x12afb3,_0x578167,_0x351517)},'api':{'write':(_0x49c710,_0x1e2e6e)=>createDatasetImportBatch(_0x3584a8[_0x3e84c6(0x19b)],_0x12afb3,{'schemaFingerprint':_0x5253de[_0x3e84c6(0x183)],'items':_0x49c710,..._0x1e2e6e===undefined?{}:{'taskId':_0x1e2e6e}}),'readback':_0x43e8b0=>readDatasetImportRows(_0x3584a8[_0x3e84c6(0x19b)],_0x12afb3,_0x43e8b0),'readTask':_0x271a31=>readDatasetImportTaskRows(_0x3584a8[_0x3e84c6(0x19b)],_0x12afb3,_0x271a31)}});return{'ok':!![],'data':_0x5d9209,'message':_0x3e84c6(0x19d)+_0x5d9209[_0x3e84c6(0x1a9)]+_0x3e84c6(0x1b8)};})};